rpc.pb.go 600 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: rpc.proto
  3. package etcdserverpb
  4. import (
  5. context "context"
  6. fmt "fmt"
  7. io "io"
  8. math "math"
  9. math_bits "math/bits"
  10. authpb "github.com/coreos/etcd/auth/authpb"
  11. mvccpb "github.com/coreos/etcd/mvcc/mvccpb"
  12. _ "github.com/gogo/protobuf/gogoproto"
  13. proto "github.com/golang/protobuf/proto"
  14. _ "google.golang.org/genproto/googleapis/api/annotations"
  15. grpc "google.golang.org/grpc"
  16. codes "google.golang.org/grpc/codes"
  17. status "google.golang.org/grpc/status"
  18. )
  19. // Reference imports to suppress errors if they are not otherwise used.
  20. var _ = proto.Marshal
  21. var _ = fmt.Errorf
  22. var _ = math.Inf
  23. // This is a compile-time assertion to ensure that this generated file
  24. // is compatible with the proto package it is being compiled against.
  25. // A compilation error at this line likely means your copy of the
  26. // proto package needs to be updated.
  27. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  28. type AlarmType int32
  29. const (
  30. AlarmType_NONE AlarmType = 0
  31. AlarmType_NOSPACE AlarmType = 1
  32. AlarmType_CORRUPT AlarmType = 2
  33. )
  34. var AlarmType_name = map[int32]string{
  35. 0: "NONE",
  36. 1: "NOSPACE",
  37. 2: "CORRUPT",
  38. }
  39. var AlarmType_value = map[string]int32{
  40. "NONE": 0,
  41. "NOSPACE": 1,
  42. "CORRUPT": 2,
  43. }
  44. func (x AlarmType) String() string {
  45. return proto.EnumName(AlarmType_name, int32(x))
  46. }
  47. func (AlarmType) EnumDescriptor() ([]byte, []int) {
  48. return fileDescriptor_77a6da22d6a3feb1, []int{0}
  49. }
  50. type RangeRequest_SortOrder int32
  51. const (
  52. RangeRequest_NONE RangeRequest_SortOrder = 0
  53. RangeRequest_ASCEND RangeRequest_SortOrder = 1
  54. RangeRequest_DESCEND RangeRequest_SortOrder = 2
  55. )
  56. var RangeRequest_SortOrder_name = map[int32]string{
  57. 0: "NONE",
  58. 1: "ASCEND",
  59. 2: "DESCEND",
  60. }
  61. var RangeRequest_SortOrder_value = map[string]int32{
  62. "NONE": 0,
  63. "ASCEND": 1,
  64. "DESCEND": 2,
  65. }
  66. func (x RangeRequest_SortOrder) String() string {
  67. return proto.EnumName(RangeRequest_SortOrder_name, int32(x))
  68. }
  69. func (RangeRequest_SortOrder) EnumDescriptor() ([]byte, []int) {
  70. return fileDescriptor_77a6da22d6a3feb1, []int{1, 0}
  71. }
  72. type RangeRequest_SortTarget int32
  73. const (
  74. RangeRequest_KEY RangeRequest_SortTarget = 0
  75. RangeRequest_VERSION RangeRequest_SortTarget = 1
  76. RangeRequest_CREATE RangeRequest_SortTarget = 2
  77. RangeRequest_MOD RangeRequest_SortTarget = 3
  78. RangeRequest_VALUE RangeRequest_SortTarget = 4
  79. )
  80. var RangeRequest_SortTarget_name = map[int32]string{
  81. 0: "KEY",
  82. 1: "VERSION",
  83. 2: "CREATE",
  84. 3: "MOD",
  85. 4: "VALUE",
  86. }
  87. var RangeRequest_SortTarget_value = map[string]int32{
  88. "KEY": 0,
  89. "VERSION": 1,
  90. "CREATE": 2,
  91. "MOD": 3,
  92. "VALUE": 4,
  93. }
  94. func (x RangeRequest_SortTarget) String() string {
  95. return proto.EnumName(RangeRequest_SortTarget_name, int32(x))
  96. }
  97. func (RangeRequest_SortTarget) EnumDescriptor() ([]byte, []int) {
  98. return fileDescriptor_77a6da22d6a3feb1, []int{1, 1}
  99. }
  100. type Compare_CompareResult int32
  101. const (
  102. Compare_EQUAL Compare_CompareResult = 0
  103. Compare_GREATER Compare_CompareResult = 1
  104. Compare_LESS Compare_CompareResult = 2
  105. Compare_NOT_EQUAL Compare_CompareResult = 3
  106. )
  107. var Compare_CompareResult_name = map[int32]string{
  108. 0: "EQUAL",
  109. 1: "GREATER",
  110. 2: "LESS",
  111. 3: "NOT_EQUAL",
  112. }
  113. var Compare_CompareResult_value = map[string]int32{
  114. "EQUAL": 0,
  115. "GREATER": 1,
  116. "LESS": 2,
  117. "NOT_EQUAL": 3,
  118. }
  119. func (x Compare_CompareResult) String() string {
  120. return proto.EnumName(Compare_CompareResult_name, int32(x))
  121. }
  122. func (Compare_CompareResult) EnumDescriptor() ([]byte, []int) {
  123. return fileDescriptor_77a6da22d6a3feb1, []int{9, 0}
  124. }
  125. type Compare_CompareTarget int32
  126. const (
  127. Compare_VERSION Compare_CompareTarget = 0
  128. Compare_CREATE Compare_CompareTarget = 1
  129. Compare_MOD Compare_CompareTarget = 2
  130. Compare_VALUE Compare_CompareTarget = 3
  131. Compare_LEASE Compare_CompareTarget = 4
  132. )
  133. var Compare_CompareTarget_name = map[int32]string{
  134. 0: "VERSION",
  135. 1: "CREATE",
  136. 2: "MOD",
  137. 3: "VALUE",
  138. 4: "LEASE",
  139. }
  140. var Compare_CompareTarget_value = map[string]int32{
  141. "VERSION": 0,
  142. "CREATE": 1,
  143. "MOD": 2,
  144. "VALUE": 3,
  145. "LEASE": 4,
  146. }
  147. func (x Compare_CompareTarget) String() string {
  148. return proto.EnumName(Compare_CompareTarget_name, int32(x))
  149. }
  150. func (Compare_CompareTarget) EnumDescriptor() ([]byte, []int) {
  151. return fileDescriptor_77a6da22d6a3feb1, []int{9, 1}
  152. }
  153. type WatchCreateRequest_FilterType int32
  154. const (
  155. // filter out put event.
  156. WatchCreateRequest_NOPUT WatchCreateRequest_FilterType = 0
  157. // filter out delete event.
  158. WatchCreateRequest_NODELETE WatchCreateRequest_FilterType = 1
  159. )
  160. var WatchCreateRequest_FilterType_name = map[int32]string{
  161. 0: "NOPUT",
  162. 1: "NODELETE",
  163. }
  164. var WatchCreateRequest_FilterType_value = map[string]int32{
  165. "NOPUT": 0,
  166. "NODELETE": 1,
  167. }
  168. func (x WatchCreateRequest_FilterType) String() string {
  169. return proto.EnumName(WatchCreateRequest_FilterType_name, int32(x))
  170. }
  171. func (WatchCreateRequest_FilterType) EnumDescriptor() ([]byte, []int) {
  172. return fileDescriptor_77a6da22d6a3feb1, []int{21, 0}
  173. }
  174. type AlarmRequest_AlarmAction int32
  175. const (
  176. AlarmRequest_GET AlarmRequest_AlarmAction = 0
  177. AlarmRequest_ACTIVATE AlarmRequest_AlarmAction = 1
  178. AlarmRequest_DEACTIVATE AlarmRequest_AlarmAction = 2
  179. )
  180. var AlarmRequest_AlarmAction_name = map[int32]string{
  181. 0: "GET",
  182. 1: "ACTIVATE",
  183. 2: "DEACTIVATE",
  184. }
  185. var AlarmRequest_AlarmAction_value = map[string]int32{
  186. "GET": 0,
  187. "ACTIVATE": 1,
  188. "DEACTIVATE": 2,
  189. }
  190. func (x AlarmRequest_AlarmAction) String() string {
  191. return proto.EnumName(AlarmRequest_AlarmAction_name, int32(x))
  192. }
  193. func (AlarmRequest_AlarmAction) EnumDescriptor() ([]byte, []int) {
  194. return fileDescriptor_77a6da22d6a3feb1, []int{49, 0}
  195. }
  196. type ResponseHeader struct {
  197. // cluster_id is the ID of the cluster which sent the response.
  198. ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
  199. // member_id is the ID of the member which sent the response.
  200. MemberId uint64 `protobuf:"varint,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
  201. // revision is the key-value store revision when the request was applied.
  202. // For watch progress responses, the header.revision indicates progress. All future events
  203. // recieved in this stream are guaranteed to have a higher revision number than the
  204. // header.revision number.
  205. Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"`
  206. // raft_term is the raft term when the request was applied.
  207. RaftTerm uint64 `protobuf:"varint,4,opt,name=raft_term,json=raftTerm,proto3" json:"raft_term,omitempty"`
  208. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  209. XXX_unrecognized []byte `json:"-"`
  210. XXX_sizecache int32 `json:"-"`
  211. }
  212. func (m *ResponseHeader) Reset() { *m = ResponseHeader{} }
  213. func (m *ResponseHeader) String() string { return proto.CompactTextString(m) }
  214. func (*ResponseHeader) ProtoMessage() {}
  215. func (*ResponseHeader) Descriptor() ([]byte, []int) {
  216. return fileDescriptor_77a6da22d6a3feb1, []int{0}
  217. }
  218. func (m *ResponseHeader) XXX_Unmarshal(b []byte) error {
  219. return m.Unmarshal(b)
  220. }
  221. func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  222. if deterministic {
  223. return xxx_messageInfo_ResponseHeader.Marshal(b, m, deterministic)
  224. } else {
  225. b = b[:cap(b)]
  226. n, err := m.MarshalToSizedBuffer(b)
  227. if err != nil {
  228. return nil, err
  229. }
  230. return b[:n], nil
  231. }
  232. }
  233. func (m *ResponseHeader) XXX_Merge(src proto.Message) {
  234. xxx_messageInfo_ResponseHeader.Merge(m, src)
  235. }
  236. func (m *ResponseHeader) XXX_Size() int {
  237. return m.Size()
  238. }
  239. func (m *ResponseHeader) XXX_DiscardUnknown() {
  240. xxx_messageInfo_ResponseHeader.DiscardUnknown(m)
  241. }
  242. var xxx_messageInfo_ResponseHeader proto.InternalMessageInfo
  243. func (m *ResponseHeader) GetClusterId() uint64 {
  244. if m != nil {
  245. return m.ClusterId
  246. }
  247. return 0
  248. }
  249. func (m *ResponseHeader) GetMemberId() uint64 {
  250. if m != nil {
  251. return m.MemberId
  252. }
  253. return 0
  254. }
  255. func (m *ResponseHeader) GetRevision() int64 {
  256. if m != nil {
  257. return m.Revision
  258. }
  259. return 0
  260. }
  261. func (m *ResponseHeader) GetRaftTerm() uint64 {
  262. if m != nil {
  263. return m.RaftTerm
  264. }
  265. return 0
  266. }
  267. type RangeRequest struct {
  268. // key is the first key for the range. If range_end is not given, the request only looks up key.
  269. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  270. // range_end is the upper bound on the requested range [key, range_end).
  271. // If range_end is '\0', the range is all keys >= key.
  272. // If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
  273. // then the range request gets all keys prefixed with key.
  274. // If both key and range_end are '\0', then the range request returns all keys.
  275. RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
  276. // limit is a limit on the number of keys returned for the request. When limit is set to 0,
  277. // it is treated as no limit.
  278. Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
  279. // revision is the point-in-time of the key-value store to use for the range.
  280. // If revision is less or equal to zero, the range is over the newest key-value store.
  281. // If the revision has been compacted, ErrCompacted is returned as a response.
  282. Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"`
  283. // sort_order is the order for returned sorted results.
  284. SortOrder RangeRequest_SortOrder `protobuf:"varint,5,opt,name=sort_order,json=sortOrder,proto3,enum=etcdserverpb.RangeRequest_SortOrder" json:"sort_order,omitempty"`
  285. // sort_target is the key-value field to use for sorting.
  286. SortTarget RangeRequest_SortTarget `protobuf:"varint,6,opt,name=sort_target,json=sortTarget,proto3,enum=etcdserverpb.RangeRequest_SortTarget" json:"sort_target,omitempty"`
  287. // serializable sets the range request to use serializable member-local reads.
  288. // Range requests are linearizable by default; linearizable requests have higher
  289. // latency and lower throughput than serializable requests but reflect the current
  290. // consensus of the cluster. For better performance, in exchange for possible stale reads,
  291. // a serializable range request is served locally without needing to reach consensus
  292. // with other nodes in the cluster.
  293. Serializable bool `protobuf:"varint,7,opt,name=serializable,proto3" json:"serializable,omitempty"`
  294. // keys_only when set returns only the keys and not the values.
  295. KeysOnly bool `protobuf:"varint,8,opt,name=keys_only,json=keysOnly,proto3" json:"keys_only,omitempty"`
  296. // count_only when set returns only the count of the keys in the range.
  297. CountOnly bool `protobuf:"varint,9,opt,name=count_only,json=countOnly,proto3" json:"count_only,omitempty"`
  298. // min_mod_revision is the lower bound for returned key mod revisions; all keys with
  299. // lesser mod revisions will be filtered away.
  300. MinModRevision int64 `protobuf:"varint,10,opt,name=min_mod_revision,json=minModRevision,proto3" json:"min_mod_revision,omitempty"`
  301. // max_mod_revision is the upper bound for returned key mod revisions; all keys with
  302. // greater mod revisions will be filtered away.
  303. MaxModRevision int64 `protobuf:"varint,11,opt,name=max_mod_revision,json=maxModRevision,proto3" json:"max_mod_revision,omitempty"`
  304. // min_create_revision is the lower bound for returned key create revisions; all keys with
  305. // lesser create trevisions will be filtered away.
  306. MinCreateRevision int64 `protobuf:"varint,12,opt,name=min_create_revision,json=minCreateRevision,proto3" json:"min_create_revision,omitempty"`
  307. // max_create_revision is the upper bound for returned key create revisions; all keys with
  308. // greater create revisions will be filtered away.
  309. MaxCreateRevision int64 `protobuf:"varint,13,opt,name=max_create_revision,json=maxCreateRevision,proto3" json:"max_create_revision,omitempty"`
  310. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  311. XXX_unrecognized []byte `json:"-"`
  312. XXX_sizecache int32 `json:"-"`
  313. }
  314. func (m *RangeRequest) Reset() { *m = RangeRequest{} }
  315. func (m *RangeRequest) String() string { return proto.CompactTextString(m) }
  316. func (*RangeRequest) ProtoMessage() {}
  317. func (*RangeRequest) Descriptor() ([]byte, []int) {
  318. return fileDescriptor_77a6da22d6a3feb1, []int{1}
  319. }
  320. func (m *RangeRequest) XXX_Unmarshal(b []byte) error {
  321. return m.Unmarshal(b)
  322. }
  323. func (m *RangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  324. if deterministic {
  325. return xxx_messageInfo_RangeRequest.Marshal(b, m, deterministic)
  326. } else {
  327. b = b[:cap(b)]
  328. n, err := m.MarshalToSizedBuffer(b)
  329. if err != nil {
  330. return nil, err
  331. }
  332. return b[:n], nil
  333. }
  334. }
  335. func (m *RangeRequest) XXX_Merge(src proto.Message) {
  336. xxx_messageInfo_RangeRequest.Merge(m, src)
  337. }
  338. func (m *RangeRequest) XXX_Size() int {
  339. return m.Size()
  340. }
  341. func (m *RangeRequest) XXX_DiscardUnknown() {
  342. xxx_messageInfo_RangeRequest.DiscardUnknown(m)
  343. }
  344. var xxx_messageInfo_RangeRequest proto.InternalMessageInfo
  345. func (m *RangeRequest) GetKey() []byte {
  346. if m != nil {
  347. return m.Key
  348. }
  349. return nil
  350. }
  351. func (m *RangeRequest) GetRangeEnd() []byte {
  352. if m != nil {
  353. return m.RangeEnd
  354. }
  355. return nil
  356. }
  357. func (m *RangeRequest) GetLimit() int64 {
  358. if m != nil {
  359. return m.Limit
  360. }
  361. return 0
  362. }
  363. func (m *RangeRequest) GetRevision() int64 {
  364. if m != nil {
  365. return m.Revision
  366. }
  367. return 0
  368. }
  369. func (m *RangeRequest) GetSortOrder() RangeRequest_SortOrder {
  370. if m != nil {
  371. return m.SortOrder
  372. }
  373. return RangeRequest_NONE
  374. }
  375. func (m *RangeRequest) GetSortTarget() RangeRequest_SortTarget {
  376. if m != nil {
  377. return m.SortTarget
  378. }
  379. return RangeRequest_KEY
  380. }
  381. func (m *RangeRequest) GetSerializable() bool {
  382. if m != nil {
  383. return m.Serializable
  384. }
  385. return false
  386. }
  387. func (m *RangeRequest) GetKeysOnly() bool {
  388. if m != nil {
  389. return m.KeysOnly
  390. }
  391. return false
  392. }
  393. func (m *RangeRequest) GetCountOnly() bool {
  394. if m != nil {
  395. return m.CountOnly
  396. }
  397. return false
  398. }
  399. func (m *RangeRequest) GetMinModRevision() int64 {
  400. if m != nil {
  401. return m.MinModRevision
  402. }
  403. return 0
  404. }
  405. func (m *RangeRequest) GetMaxModRevision() int64 {
  406. if m != nil {
  407. return m.MaxModRevision
  408. }
  409. return 0
  410. }
  411. func (m *RangeRequest) GetMinCreateRevision() int64 {
  412. if m != nil {
  413. return m.MinCreateRevision
  414. }
  415. return 0
  416. }
  417. func (m *RangeRequest) GetMaxCreateRevision() int64 {
  418. if m != nil {
  419. return m.MaxCreateRevision
  420. }
  421. return 0
  422. }
  423. type RangeResponse struct {
  424. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  425. // kvs is the list of key-value pairs matched by the range request.
  426. // kvs is empty when count is requested.
  427. Kvs []*mvccpb.KeyValue `protobuf:"bytes,2,rep,name=kvs,proto3" json:"kvs,omitempty"`
  428. // more indicates if there are more keys to return in the requested range.
  429. More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"`
  430. // count is set to the number of keys within the range when requested.
  431. Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
  432. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  433. XXX_unrecognized []byte `json:"-"`
  434. XXX_sizecache int32 `json:"-"`
  435. }
  436. func (m *RangeResponse) Reset() { *m = RangeResponse{} }
  437. func (m *RangeResponse) String() string { return proto.CompactTextString(m) }
  438. func (*RangeResponse) ProtoMessage() {}
  439. func (*RangeResponse) Descriptor() ([]byte, []int) {
  440. return fileDescriptor_77a6da22d6a3feb1, []int{2}
  441. }
  442. func (m *RangeResponse) XXX_Unmarshal(b []byte) error {
  443. return m.Unmarshal(b)
  444. }
  445. func (m *RangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  446. if deterministic {
  447. return xxx_messageInfo_RangeResponse.Marshal(b, m, deterministic)
  448. } else {
  449. b = b[:cap(b)]
  450. n, err := m.MarshalToSizedBuffer(b)
  451. if err != nil {
  452. return nil, err
  453. }
  454. return b[:n], nil
  455. }
  456. }
  457. func (m *RangeResponse) XXX_Merge(src proto.Message) {
  458. xxx_messageInfo_RangeResponse.Merge(m, src)
  459. }
  460. func (m *RangeResponse) XXX_Size() int {
  461. return m.Size()
  462. }
  463. func (m *RangeResponse) XXX_DiscardUnknown() {
  464. xxx_messageInfo_RangeResponse.DiscardUnknown(m)
  465. }
  466. var xxx_messageInfo_RangeResponse proto.InternalMessageInfo
  467. func (m *RangeResponse) GetHeader() *ResponseHeader {
  468. if m != nil {
  469. return m.Header
  470. }
  471. return nil
  472. }
  473. func (m *RangeResponse) GetKvs() []*mvccpb.KeyValue {
  474. if m != nil {
  475. return m.Kvs
  476. }
  477. return nil
  478. }
  479. func (m *RangeResponse) GetMore() bool {
  480. if m != nil {
  481. return m.More
  482. }
  483. return false
  484. }
  485. func (m *RangeResponse) GetCount() int64 {
  486. if m != nil {
  487. return m.Count
  488. }
  489. return 0
  490. }
  491. type PutRequest struct {
  492. // key is the key, in bytes, to put into the key-value store.
  493. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  494. // value is the value, in bytes, to associate with the key in the key-value store.
  495. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  496. // lease is the lease ID to associate with the key in the key-value store. A lease
  497. // value of 0 indicates no lease.
  498. Lease int64 `protobuf:"varint,3,opt,name=lease,proto3" json:"lease,omitempty"`
  499. // If prev_kv is set, etcd gets the previous key-value pair before changing it.
  500. // The previous key-value pair will be returned in the put response.
  501. PrevKv bool `protobuf:"varint,4,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
  502. // If ignore_value is set, etcd updates the key using its current value.
  503. // Returns an error if the key does not exist.
  504. IgnoreValue bool `protobuf:"varint,5,opt,name=ignore_value,json=ignoreValue,proto3" json:"ignore_value,omitempty"`
  505. // If ignore_lease is set, etcd updates the key using its current lease.
  506. // Returns an error if the key does not exist.
  507. IgnoreLease bool `protobuf:"varint,6,opt,name=ignore_lease,json=ignoreLease,proto3" json:"ignore_lease,omitempty"`
  508. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  509. XXX_unrecognized []byte `json:"-"`
  510. XXX_sizecache int32 `json:"-"`
  511. }
  512. func (m *PutRequest) Reset() { *m = PutRequest{} }
  513. func (m *PutRequest) String() string { return proto.CompactTextString(m) }
  514. func (*PutRequest) ProtoMessage() {}
  515. func (*PutRequest) Descriptor() ([]byte, []int) {
  516. return fileDescriptor_77a6da22d6a3feb1, []int{3}
  517. }
  518. func (m *PutRequest) XXX_Unmarshal(b []byte) error {
  519. return m.Unmarshal(b)
  520. }
  521. func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  522. if deterministic {
  523. return xxx_messageInfo_PutRequest.Marshal(b, m, deterministic)
  524. } else {
  525. b = b[:cap(b)]
  526. n, err := m.MarshalToSizedBuffer(b)
  527. if err != nil {
  528. return nil, err
  529. }
  530. return b[:n], nil
  531. }
  532. }
  533. func (m *PutRequest) XXX_Merge(src proto.Message) {
  534. xxx_messageInfo_PutRequest.Merge(m, src)
  535. }
  536. func (m *PutRequest) XXX_Size() int {
  537. return m.Size()
  538. }
  539. func (m *PutRequest) XXX_DiscardUnknown() {
  540. xxx_messageInfo_PutRequest.DiscardUnknown(m)
  541. }
  542. var xxx_messageInfo_PutRequest proto.InternalMessageInfo
  543. func (m *PutRequest) GetKey() []byte {
  544. if m != nil {
  545. return m.Key
  546. }
  547. return nil
  548. }
  549. func (m *PutRequest) GetValue() []byte {
  550. if m != nil {
  551. return m.Value
  552. }
  553. return nil
  554. }
  555. func (m *PutRequest) GetLease() int64 {
  556. if m != nil {
  557. return m.Lease
  558. }
  559. return 0
  560. }
  561. func (m *PutRequest) GetPrevKv() bool {
  562. if m != nil {
  563. return m.PrevKv
  564. }
  565. return false
  566. }
  567. func (m *PutRequest) GetIgnoreValue() bool {
  568. if m != nil {
  569. return m.IgnoreValue
  570. }
  571. return false
  572. }
  573. func (m *PutRequest) GetIgnoreLease() bool {
  574. if m != nil {
  575. return m.IgnoreLease
  576. }
  577. return false
  578. }
  579. type PutResponse struct {
  580. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  581. // if prev_kv is set in the request, the previous key-value pair will be returned.
  582. PrevKv *mvccpb.KeyValue `protobuf:"bytes,2,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
  583. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  584. XXX_unrecognized []byte `json:"-"`
  585. XXX_sizecache int32 `json:"-"`
  586. }
  587. func (m *PutResponse) Reset() { *m = PutResponse{} }
  588. func (m *PutResponse) String() string { return proto.CompactTextString(m) }
  589. func (*PutResponse) ProtoMessage() {}
  590. func (*PutResponse) Descriptor() ([]byte, []int) {
  591. return fileDescriptor_77a6da22d6a3feb1, []int{4}
  592. }
  593. func (m *PutResponse) XXX_Unmarshal(b []byte) error {
  594. return m.Unmarshal(b)
  595. }
  596. func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  597. if deterministic {
  598. return xxx_messageInfo_PutResponse.Marshal(b, m, deterministic)
  599. } else {
  600. b = b[:cap(b)]
  601. n, err := m.MarshalToSizedBuffer(b)
  602. if err != nil {
  603. return nil, err
  604. }
  605. return b[:n], nil
  606. }
  607. }
  608. func (m *PutResponse) XXX_Merge(src proto.Message) {
  609. xxx_messageInfo_PutResponse.Merge(m, src)
  610. }
  611. func (m *PutResponse) XXX_Size() int {
  612. return m.Size()
  613. }
  614. func (m *PutResponse) XXX_DiscardUnknown() {
  615. xxx_messageInfo_PutResponse.DiscardUnknown(m)
  616. }
  617. var xxx_messageInfo_PutResponse proto.InternalMessageInfo
  618. func (m *PutResponse) GetHeader() *ResponseHeader {
  619. if m != nil {
  620. return m.Header
  621. }
  622. return nil
  623. }
  624. func (m *PutResponse) GetPrevKv() *mvccpb.KeyValue {
  625. if m != nil {
  626. return m.PrevKv
  627. }
  628. return nil
  629. }
  630. type DeleteRangeRequest struct {
  631. // key is the first key to delete in the range.
  632. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  633. // range_end is the key following the last key to delete for the range [key, range_end).
  634. // If range_end is not given, the range is defined to contain only the key argument.
  635. // If range_end is one bit larger than the given key, then the range is all the keys
  636. // with the prefix (the given key).
  637. // If range_end is '\0', the range is all keys greater than or equal to the key argument.
  638. RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
  639. // If prev_kv is set, etcd gets the previous key-value pairs before deleting it.
  640. // The previous key-value pairs will be returned in the delete response.
  641. PrevKv bool `protobuf:"varint,3,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
  642. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  643. XXX_unrecognized []byte `json:"-"`
  644. XXX_sizecache int32 `json:"-"`
  645. }
  646. func (m *DeleteRangeRequest) Reset() { *m = DeleteRangeRequest{} }
  647. func (m *DeleteRangeRequest) String() string { return proto.CompactTextString(m) }
  648. func (*DeleteRangeRequest) ProtoMessage() {}
  649. func (*DeleteRangeRequest) Descriptor() ([]byte, []int) {
  650. return fileDescriptor_77a6da22d6a3feb1, []int{5}
  651. }
  652. func (m *DeleteRangeRequest) XXX_Unmarshal(b []byte) error {
  653. return m.Unmarshal(b)
  654. }
  655. func (m *DeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  656. if deterministic {
  657. return xxx_messageInfo_DeleteRangeRequest.Marshal(b, m, deterministic)
  658. } else {
  659. b = b[:cap(b)]
  660. n, err := m.MarshalToSizedBuffer(b)
  661. if err != nil {
  662. return nil, err
  663. }
  664. return b[:n], nil
  665. }
  666. }
  667. func (m *DeleteRangeRequest) XXX_Merge(src proto.Message) {
  668. xxx_messageInfo_DeleteRangeRequest.Merge(m, src)
  669. }
  670. func (m *DeleteRangeRequest) XXX_Size() int {
  671. return m.Size()
  672. }
  673. func (m *DeleteRangeRequest) XXX_DiscardUnknown() {
  674. xxx_messageInfo_DeleteRangeRequest.DiscardUnknown(m)
  675. }
  676. var xxx_messageInfo_DeleteRangeRequest proto.InternalMessageInfo
  677. func (m *DeleteRangeRequest) GetKey() []byte {
  678. if m != nil {
  679. return m.Key
  680. }
  681. return nil
  682. }
  683. func (m *DeleteRangeRequest) GetRangeEnd() []byte {
  684. if m != nil {
  685. return m.RangeEnd
  686. }
  687. return nil
  688. }
  689. func (m *DeleteRangeRequest) GetPrevKv() bool {
  690. if m != nil {
  691. return m.PrevKv
  692. }
  693. return false
  694. }
  695. type DeleteRangeResponse struct {
  696. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  697. // deleted is the number of keys deleted by the delete range request.
  698. Deleted int64 `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
  699. // if prev_kv is set in the request, the previous key-value pairs will be returned.
  700. PrevKvs []*mvccpb.KeyValue `protobuf:"bytes,3,rep,name=prev_kvs,json=prevKvs,proto3" json:"prev_kvs,omitempty"`
  701. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  702. XXX_unrecognized []byte `json:"-"`
  703. XXX_sizecache int32 `json:"-"`
  704. }
  705. func (m *DeleteRangeResponse) Reset() { *m = DeleteRangeResponse{} }
  706. func (m *DeleteRangeResponse) String() string { return proto.CompactTextString(m) }
  707. func (*DeleteRangeResponse) ProtoMessage() {}
  708. func (*DeleteRangeResponse) Descriptor() ([]byte, []int) {
  709. return fileDescriptor_77a6da22d6a3feb1, []int{6}
  710. }
  711. func (m *DeleteRangeResponse) XXX_Unmarshal(b []byte) error {
  712. return m.Unmarshal(b)
  713. }
  714. func (m *DeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  715. if deterministic {
  716. return xxx_messageInfo_DeleteRangeResponse.Marshal(b, m, deterministic)
  717. } else {
  718. b = b[:cap(b)]
  719. n, err := m.MarshalToSizedBuffer(b)
  720. if err != nil {
  721. return nil, err
  722. }
  723. return b[:n], nil
  724. }
  725. }
  726. func (m *DeleteRangeResponse) XXX_Merge(src proto.Message) {
  727. xxx_messageInfo_DeleteRangeResponse.Merge(m, src)
  728. }
  729. func (m *DeleteRangeResponse) XXX_Size() int {
  730. return m.Size()
  731. }
  732. func (m *DeleteRangeResponse) XXX_DiscardUnknown() {
  733. xxx_messageInfo_DeleteRangeResponse.DiscardUnknown(m)
  734. }
  735. var xxx_messageInfo_DeleteRangeResponse proto.InternalMessageInfo
  736. func (m *DeleteRangeResponse) GetHeader() *ResponseHeader {
  737. if m != nil {
  738. return m.Header
  739. }
  740. return nil
  741. }
  742. func (m *DeleteRangeResponse) GetDeleted() int64 {
  743. if m != nil {
  744. return m.Deleted
  745. }
  746. return 0
  747. }
  748. func (m *DeleteRangeResponse) GetPrevKvs() []*mvccpb.KeyValue {
  749. if m != nil {
  750. return m.PrevKvs
  751. }
  752. return nil
  753. }
  754. type RequestOp struct {
  755. // request is a union of request types accepted by a transaction.
  756. //
  757. // Types that are valid to be assigned to Request:
  758. // *RequestOp_RequestRange
  759. // *RequestOp_RequestPut
  760. // *RequestOp_RequestDeleteRange
  761. // *RequestOp_RequestTxn
  762. Request isRequestOp_Request `protobuf_oneof:"request"`
  763. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  764. XXX_unrecognized []byte `json:"-"`
  765. XXX_sizecache int32 `json:"-"`
  766. }
  767. func (m *RequestOp) Reset() { *m = RequestOp{} }
  768. func (m *RequestOp) String() string { return proto.CompactTextString(m) }
  769. func (*RequestOp) ProtoMessage() {}
  770. func (*RequestOp) Descriptor() ([]byte, []int) {
  771. return fileDescriptor_77a6da22d6a3feb1, []int{7}
  772. }
  773. func (m *RequestOp) XXX_Unmarshal(b []byte) error {
  774. return m.Unmarshal(b)
  775. }
  776. func (m *RequestOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  777. if deterministic {
  778. return xxx_messageInfo_RequestOp.Marshal(b, m, deterministic)
  779. } else {
  780. b = b[:cap(b)]
  781. n, err := m.MarshalToSizedBuffer(b)
  782. if err != nil {
  783. return nil, err
  784. }
  785. return b[:n], nil
  786. }
  787. }
  788. func (m *RequestOp) XXX_Merge(src proto.Message) {
  789. xxx_messageInfo_RequestOp.Merge(m, src)
  790. }
  791. func (m *RequestOp) XXX_Size() int {
  792. return m.Size()
  793. }
  794. func (m *RequestOp) XXX_DiscardUnknown() {
  795. xxx_messageInfo_RequestOp.DiscardUnknown(m)
  796. }
  797. var xxx_messageInfo_RequestOp proto.InternalMessageInfo
  798. type isRequestOp_Request interface {
  799. isRequestOp_Request()
  800. MarshalTo([]byte) (int, error)
  801. Size() int
  802. }
  803. type RequestOp_RequestRange struct {
  804. RequestRange *RangeRequest `protobuf:"bytes,1,opt,name=request_range,json=requestRange,proto3,oneof"`
  805. }
  806. type RequestOp_RequestPut struct {
  807. RequestPut *PutRequest `protobuf:"bytes,2,opt,name=request_put,json=requestPut,proto3,oneof"`
  808. }
  809. type RequestOp_RequestDeleteRange struct {
  810. RequestDeleteRange *DeleteRangeRequest `protobuf:"bytes,3,opt,name=request_delete_range,json=requestDeleteRange,proto3,oneof"`
  811. }
  812. type RequestOp_RequestTxn struct {
  813. RequestTxn *TxnRequest `protobuf:"bytes,4,opt,name=request_txn,json=requestTxn,proto3,oneof"`
  814. }
  815. func (*RequestOp_RequestRange) isRequestOp_Request() {}
  816. func (*RequestOp_RequestPut) isRequestOp_Request() {}
  817. func (*RequestOp_RequestDeleteRange) isRequestOp_Request() {}
  818. func (*RequestOp_RequestTxn) isRequestOp_Request() {}
  819. func (m *RequestOp) GetRequest() isRequestOp_Request {
  820. if m != nil {
  821. return m.Request
  822. }
  823. return nil
  824. }
  825. func (m *RequestOp) GetRequestRange() *RangeRequest {
  826. if x, ok := m.GetRequest().(*RequestOp_RequestRange); ok {
  827. return x.RequestRange
  828. }
  829. return nil
  830. }
  831. func (m *RequestOp) GetRequestPut() *PutRequest {
  832. if x, ok := m.GetRequest().(*RequestOp_RequestPut); ok {
  833. return x.RequestPut
  834. }
  835. return nil
  836. }
  837. func (m *RequestOp) GetRequestDeleteRange() *DeleteRangeRequest {
  838. if x, ok := m.GetRequest().(*RequestOp_RequestDeleteRange); ok {
  839. return x.RequestDeleteRange
  840. }
  841. return nil
  842. }
  843. func (m *RequestOp) GetRequestTxn() *TxnRequest {
  844. if x, ok := m.GetRequest().(*RequestOp_RequestTxn); ok {
  845. return x.RequestTxn
  846. }
  847. return nil
  848. }
  849. // XXX_OneofFuncs is for the internal use of the proto package.
  850. func (*RequestOp) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  851. return _RequestOp_OneofMarshaler, _RequestOp_OneofUnmarshaler, _RequestOp_OneofSizer, []interface{}{
  852. (*RequestOp_RequestRange)(nil),
  853. (*RequestOp_RequestPut)(nil),
  854. (*RequestOp_RequestDeleteRange)(nil),
  855. (*RequestOp_RequestTxn)(nil),
  856. }
  857. }
  858. func _RequestOp_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  859. m := msg.(*RequestOp)
  860. // request
  861. switch x := m.Request.(type) {
  862. case *RequestOp_RequestRange:
  863. _ = b.EncodeVarint(1<<3 | proto.WireBytes)
  864. if err := b.EncodeMessage(x.RequestRange); err != nil {
  865. return err
  866. }
  867. case *RequestOp_RequestPut:
  868. _ = b.EncodeVarint(2<<3 | proto.WireBytes)
  869. if err := b.EncodeMessage(x.RequestPut); err != nil {
  870. return err
  871. }
  872. case *RequestOp_RequestDeleteRange:
  873. _ = b.EncodeVarint(3<<3 | proto.WireBytes)
  874. if err := b.EncodeMessage(x.RequestDeleteRange); err != nil {
  875. return err
  876. }
  877. case *RequestOp_RequestTxn:
  878. _ = b.EncodeVarint(4<<3 | proto.WireBytes)
  879. if err := b.EncodeMessage(x.RequestTxn); err != nil {
  880. return err
  881. }
  882. case nil:
  883. default:
  884. return fmt.Errorf("RequestOp.Request has unexpected type %T", x)
  885. }
  886. return nil
  887. }
  888. func _RequestOp_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  889. m := msg.(*RequestOp)
  890. switch tag {
  891. case 1: // request.request_range
  892. if wire != proto.WireBytes {
  893. return true, proto.ErrInternalBadWireType
  894. }
  895. msg := new(RangeRequest)
  896. err := b.DecodeMessage(msg)
  897. m.Request = &RequestOp_RequestRange{msg}
  898. return true, err
  899. case 2: // request.request_put
  900. if wire != proto.WireBytes {
  901. return true, proto.ErrInternalBadWireType
  902. }
  903. msg := new(PutRequest)
  904. err := b.DecodeMessage(msg)
  905. m.Request = &RequestOp_RequestPut{msg}
  906. return true, err
  907. case 3: // request.request_delete_range
  908. if wire != proto.WireBytes {
  909. return true, proto.ErrInternalBadWireType
  910. }
  911. msg := new(DeleteRangeRequest)
  912. err := b.DecodeMessage(msg)
  913. m.Request = &RequestOp_RequestDeleteRange{msg}
  914. return true, err
  915. case 4: // request.request_txn
  916. if wire != proto.WireBytes {
  917. return true, proto.ErrInternalBadWireType
  918. }
  919. msg := new(TxnRequest)
  920. err := b.DecodeMessage(msg)
  921. m.Request = &RequestOp_RequestTxn{msg}
  922. return true, err
  923. default:
  924. return false, nil
  925. }
  926. }
  927. func _RequestOp_OneofSizer(msg proto.Message) (n int) {
  928. m := msg.(*RequestOp)
  929. // request
  930. switch x := m.Request.(type) {
  931. case *RequestOp_RequestRange:
  932. s := proto.Size(x.RequestRange)
  933. n += 1 // tag and wire
  934. n += proto.SizeVarint(uint64(s))
  935. n += s
  936. case *RequestOp_RequestPut:
  937. s := proto.Size(x.RequestPut)
  938. n += 1 // tag and wire
  939. n += proto.SizeVarint(uint64(s))
  940. n += s
  941. case *RequestOp_RequestDeleteRange:
  942. s := proto.Size(x.RequestDeleteRange)
  943. n += 1 // tag and wire
  944. n += proto.SizeVarint(uint64(s))
  945. n += s
  946. case *RequestOp_RequestTxn:
  947. s := proto.Size(x.RequestTxn)
  948. n += 1 // tag and wire
  949. n += proto.SizeVarint(uint64(s))
  950. n += s
  951. case nil:
  952. default:
  953. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  954. }
  955. return n
  956. }
  957. type ResponseOp struct {
  958. // response is a union of response types returned by a transaction.
  959. //
  960. // Types that are valid to be assigned to Response:
  961. // *ResponseOp_ResponseRange
  962. // *ResponseOp_ResponsePut
  963. // *ResponseOp_ResponseDeleteRange
  964. // *ResponseOp_ResponseTxn
  965. Response isResponseOp_Response `protobuf_oneof:"response"`
  966. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  967. XXX_unrecognized []byte `json:"-"`
  968. XXX_sizecache int32 `json:"-"`
  969. }
  970. func (m *ResponseOp) Reset() { *m = ResponseOp{} }
  971. func (m *ResponseOp) String() string { return proto.CompactTextString(m) }
  972. func (*ResponseOp) ProtoMessage() {}
  973. func (*ResponseOp) Descriptor() ([]byte, []int) {
  974. return fileDescriptor_77a6da22d6a3feb1, []int{8}
  975. }
  976. func (m *ResponseOp) XXX_Unmarshal(b []byte) error {
  977. return m.Unmarshal(b)
  978. }
  979. func (m *ResponseOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  980. if deterministic {
  981. return xxx_messageInfo_ResponseOp.Marshal(b, m, deterministic)
  982. } else {
  983. b = b[:cap(b)]
  984. n, err := m.MarshalToSizedBuffer(b)
  985. if err != nil {
  986. return nil, err
  987. }
  988. return b[:n], nil
  989. }
  990. }
  991. func (m *ResponseOp) XXX_Merge(src proto.Message) {
  992. xxx_messageInfo_ResponseOp.Merge(m, src)
  993. }
  994. func (m *ResponseOp) XXX_Size() int {
  995. return m.Size()
  996. }
  997. func (m *ResponseOp) XXX_DiscardUnknown() {
  998. xxx_messageInfo_ResponseOp.DiscardUnknown(m)
  999. }
  1000. var xxx_messageInfo_ResponseOp proto.InternalMessageInfo
  1001. type isResponseOp_Response interface {
  1002. isResponseOp_Response()
  1003. MarshalTo([]byte) (int, error)
  1004. Size() int
  1005. }
  1006. type ResponseOp_ResponseRange struct {
  1007. ResponseRange *RangeResponse `protobuf:"bytes,1,opt,name=response_range,json=responseRange,proto3,oneof"`
  1008. }
  1009. type ResponseOp_ResponsePut struct {
  1010. ResponsePut *PutResponse `protobuf:"bytes,2,opt,name=response_put,json=responsePut,proto3,oneof"`
  1011. }
  1012. type ResponseOp_ResponseDeleteRange struct {
  1013. ResponseDeleteRange *DeleteRangeResponse `protobuf:"bytes,3,opt,name=response_delete_range,json=responseDeleteRange,proto3,oneof"`
  1014. }
  1015. type ResponseOp_ResponseTxn struct {
  1016. ResponseTxn *TxnResponse `protobuf:"bytes,4,opt,name=response_txn,json=responseTxn,proto3,oneof"`
  1017. }
  1018. func (*ResponseOp_ResponseRange) isResponseOp_Response() {}
  1019. func (*ResponseOp_ResponsePut) isResponseOp_Response() {}
  1020. func (*ResponseOp_ResponseDeleteRange) isResponseOp_Response() {}
  1021. func (*ResponseOp_ResponseTxn) isResponseOp_Response() {}
  1022. func (m *ResponseOp) GetResponse() isResponseOp_Response {
  1023. if m != nil {
  1024. return m.Response
  1025. }
  1026. return nil
  1027. }
  1028. func (m *ResponseOp) GetResponseRange() *RangeResponse {
  1029. if x, ok := m.GetResponse().(*ResponseOp_ResponseRange); ok {
  1030. return x.ResponseRange
  1031. }
  1032. return nil
  1033. }
  1034. func (m *ResponseOp) GetResponsePut() *PutResponse {
  1035. if x, ok := m.GetResponse().(*ResponseOp_ResponsePut); ok {
  1036. return x.ResponsePut
  1037. }
  1038. return nil
  1039. }
  1040. func (m *ResponseOp) GetResponseDeleteRange() *DeleteRangeResponse {
  1041. if x, ok := m.GetResponse().(*ResponseOp_ResponseDeleteRange); ok {
  1042. return x.ResponseDeleteRange
  1043. }
  1044. return nil
  1045. }
  1046. func (m *ResponseOp) GetResponseTxn() *TxnResponse {
  1047. if x, ok := m.GetResponse().(*ResponseOp_ResponseTxn); ok {
  1048. return x.ResponseTxn
  1049. }
  1050. return nil
  1051. }
  1052. // XXX_OneofFuncs is for the internal use of the proto package.
  1053. func (*ResponseOp) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  1054. return _ResponseOp_OneofMarshaler, _ResponseOp_OneofUnmarshaler, _ResponseOp_OneofSizer, []interface{}{
  1055. (*ResponseOp_ResponseRange)(nil),
  1056. (*ResponseOp_ResponsePut)(nil),
  1057. (*ResponseOp_ResponseDeleteRange)(nil),
  1058. (*ResponseOp_ResponseTxn)(nil),
  1059. }
  1060. }
  1061. func _ResponseOp_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  1062. m := msg.(*ResponseOp)
  1063. // response
  1064. switch x := m.Response.(type) {
  1065. case *ResponseOp_ResponseRange:
  1066. _ = b.EncodeVarint(1<<3 | proto.WireBytes)
  1067. if err := b.EncodeMessage(x.ResponseRange); err != nil {
  1068. return err
  1069. }
  1070. case *ResponseOp_ResponsePut:
  1071. _ = b.EncodeVarint(2<<3 | proto.WireBytes)
  1072. if err := b.EncodeMessage(x.ResponsePut); err != nil {
  1073. return err
  1074. }
  1075. case *ResponseOp_ResponseDeleteRange:
  1076. _ = b.EncodeVarint(3<<3 | proto.WireBytes)
  1077. if err := b.EncodeMessage(x.ResponseDeleteRange); err != nil {
  1078. return err
  1079. }
  1080. case *ResponseOp_ResponseTxn:
  1081. _ = b.EncodeVarint(4<<3 | proto.WireBytes)
  1082. if err := b.EncodeMessage(x.ResponseTxn); err != nil {
  1083. return err
  1084. }
  1085. case nil:
  1086. default:
  1087. return fmt.Errorf("ResponseOp.Response has unexpected type %T", x)
  1088. }
  1089. return nil
  1090. }
  1091. func _ResponseOp_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  1092. m := msg.(*ResponseOp)
  1093. switch tag {
  1094. case 1: // response.response_range
  1095. if wire != proto.WireBytes {
  1096. return true, proto.ErrInternalBadWireType
  1097. }
  1098. msg := new(RangeResponse)
  1099. err := b.DecodeMessage(msg)
  1100. m.Response = &ResponseOp_ResponseRange{msg}
  1101. return true, err
  1102. case 2: // response.response_put
  1103. if wire != proto.WireBytes {
  1104. return true, proto.ErrInternalBadWireType
  1105. }
  1106. msg := new(PutResponse)
  1107. err := b.DecodeMessage(msg)
  1108. m.Response = &ResponseOp_ResponsePut{msg}
  1109. return true, err
  1110. case 3: // response.response_delete_range
  1111. if wire != proto.WireBytes {
  1112. return true, proto.ErrInternalBadWireType
  1113. }
  1114. msg := new(DeleteRangeResponse)
  1115. err := b.DecodeMessage(msg)
  1116. m.Response = &ResponseOp_ResponseDeleteRange{msg}
  1117. return true, err
  1118. case 4: // response.response_txn
  1119. if wire != proto.WireBytes {
  1120. return true, proto.ErrInternalBadWireType
  1121. }
  1122. msg := new(TxnResponse)
  1123. err := b.DecodeMessage(msg)
  1124. m.Response = &ResponseOp_ResponseTxn{msg}
  1125. return true, err
  1126. default:
  1127. return false, nil
  1128. }
  1129. }
  1130. func _ResponseOp_OneofSizer(msg proto.Message) (n int) {
  1131. m := msg.(*ResponseOp)
  1132. // response
  1133. switch x := m.Response.(type) {
  1134. case *ResponseOp_ResponseRange:
  1135. s := proto.Size(x.ResponseRange)
  1136. n += 1 // tag and wire
  1137. n += proto.SizeVarint(uint64(s))
  1138. n += s
  1139. case *ResponseOp_ResponsePut:
  1140. s := proto.Size(x.ResponsePut)
  1141. n += 1 // tag and wire
  1142. n += proto.SizeVarint(uint64(s))
  1143. n += s
  1144. case *ResponseOp_ResponseDeleteRange:
  1145. s := proto.Size(x.ResponseDeleteRange)
  1146. n += 1 // tag and wire
  1147. n += proto.SizeVarint(uint64(s))
  1148. n += s
  1149. case *ResponseOp_ResponseTxn:
  1150. s := proto.Size(x.ResponseTxn)
  1151. n += 1 // tag and wire
  1152. n += proto.SizeVarint(uint64(s))
  1153. n += s
  1154. case nil:
  1155. default:
  1156. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1157. }
  1158. return n
  1159. }
  1160. type Compare struct {
  1161. // result is logical comparison operation for this comparison.
  1162. Result Compare_CompareResult `protobuf:"varint,1,opt,name=result,proto3,enum=etcdserverpb.Compare_CompareResult" json:"result,omitempty"`
  1163. // target is the key-value field to inspect for the comparison.
  1164. Target Compare_CompareTarget `protobuf:"varint,2,opt,name=target,proto3,enum=etcdserverpb.Compare_CompareTarget" json:"target,omitempty"`
  1165. // key is the subject key for the comparison operation.
  1166. Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
  1167. // Types that are valid to be assigned to TargetUnion:
  1168. // *Compare_Version
  1169. // *Compare_CreateRevision
  1170. // *Compare_ModRevision
  1171. // *Compare_Value
  1172. // *Compare_Lease
  1173. TargetUnion isCompare_TargetUnion `protobuf_oneof:"target_union"`
  1174. // range_end compares the given target to all keys in the range [key, range_end).
  1175. // See RangeRequest for more details on key ranges.
  1176. RangeEnd []byte `protobuf:"bytes,64,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
  1177. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1178. XXX_unrecognized []byte `json:"-"`
  1179. XXX_sizecache int32 `json:"-"`
  1180. }
  1181. func (m *Compare) Reset() { *m = Compare{} }
  1182. func (m *Compare) String() string { return proto.CompactTextString(m) }
  1183. func (*Compare) ProtoMessage() {}
  1184. func (*Compare) Descriptor() ([]byte, []int) {
  1185. return fileDescriptor_77a6da22d6a3feb1, []int{9}
  1186. }
  1187. func (m *Compare) XXX_Unmarshal(b []byte) error {
  1188. return m.Unmarshal(b)
  1189. }
  1190. func (m *Compare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1191. if deterministic {
  1192. return xxx_messageInfo_Compare.Marshal(b, m, deterministic)
  1193. } else {
  1194. b = b[:cap(b)]
  1195. n, err := m.MarshalToSizedBuffer(b)
  1196. if err != nil {
  1197. return nil, err
  1198. }
  1199. return b[:n], nil
  1200. }
  1201. }
  1202. func (m *Compare) XXX_Merge(src proto.Message) {
  1203. xxx_messageInfo_Compare.Merge(m, src)
  1204. }
  1205. func (m *Compare) XXX_Size() int {
  1206. return m.Size()
  1207. }
  1208. func (m *Compare) XXX_DiscardUnknown() {
  1209. xxx_messageInfo_Compare.DiscardUnknown(m)
  1210. }
  1211. var xxx_messageInfo_Compare proto.InternalMessageInfo
  1212. type isCompare_TargetUnion interface {
  1213. isCompare_TargetUnion()
  1214. MarshalTo([]byte) (int, error)
  1215. Size() int
  1216. }
  1217. type Compare_Version struct {
  1218. Version int64 `protobuf:"varint,4,opt,name=version,proto3,oneof"`
  1219. }
  1220. type Compare_CreateRevision struct {
  1221. CreateRevision int64 `protobuf:"varint,5,opt,name=create_revision,json=createRevision,proto3,oneof"`
  1222. }
  1223. type Compare_ModRevision struct {
  1224. ModRevision int64 `protobuf:"varint,6,opt,name=mod_revision,json=modRevision,proto3,oneof"`
  1225. }
  1226. type Compare_Value struct {
  1227. Value []byte `protobuf:"bytes,7,opt,name=value,proto3,oneof"`
  1228. }
  1229. type Compare_Lease struct {
  1230. Lease int64 `protobuf:"varint,8,opt,name=lease,proto3,oneof"`
  1231. }
  1232. func (*Compare_Version) isCompare_TargetUnion() {}
  1233. func (*Compare_CreateRevision) isCompare_TargetUnion() {}
  1234. func (*Compare_ModRevision) isCompare_TargetUnion() {}
  1235. func (*Compare_Value) isCompare_TargetUnion() {}
  1236. func (*Compare_Lease) isCompare_TargetUnion() {}
  1237. func (m *Compare) GetTargetUnion() isCompare_TargetUnion {
  1238. if m != nil {
  1239. return m.TargetUnion
  1240. }
  1241. return nil
  1242. }
  1243. func (m *Compare) GetResult() Compare_CompareResult {
  1244. if m != nil {
  1245. return m.Result
  1246. }
  1247. return Compare_EQUAL
  1248. }
  1249. func (m *Compare) GetTarget() Compare_CompareTarget {
  1250. if m != nil {
  1251. return m.Target
  1252. }
  1253. return Compare_VERSION
  1254. }
  1255. func (m *Compare) GetKey() []byte {
  1256. if m != nil {
  1257. return m.Key
  1258. }
  1259. return nil
  1260. }
  1261. func (m *Compare) GetVersion() int64 {
  1262. if x, ok := m.GetTargetUnion().(*Compare_Version); ok {
  1263. return x.Version
  1264. }
  1265. return 0
  1266. }
  1267. func (m *Compare) GetCreateRevision() int64 {
  1268. if x, ok := m.GetTargetUnion().(*Compare_CreateRevision); ok {
  1269. return x.CreateRevision
  1270. }
  1271. return 0
  1272. }
  1273. func (m *Compare) GetModRevision() int64 {
  1274. if x, ok := m.GetTargetUnion().(*Compare_ModRevision); ok {
  1275. return x.ModRevision
  1276. }
  1277. return 0
  1278. }
  1279. func (m *Compare) GetValue() []byte {
  1280. if x, ok := m.GetTargetUnion().(*Compare_Value); ok {
  1281. return x.Value
  1282. }
  1283. return nil
  1284. }
  1285. func (m *Compare) GetLease() int64 {
  1286. if x, ok := m.GetTargetUnion().(*Compare_Lease); ok {
  1287. return x.Lease
  1288. }
  1289. return 0
  1290. }
  1291. func (m *Compare) GetRangeEnd() []byte {
  1292. if m != nil {
  1293. return m.RangeEnd
  1294. }
  1295. return nil
  1296. }
  1297. // XXX_OneofFuncs is for the internal use of the proto package.
  1298. func (*Compare) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  1299. return _Compare_OneofMarshaler, _Compare_OneofUnmarshaler, _Compare_OneofSizer, []interface{}{
  1300. (*Compare_Version)(nil),
  1301. (*Compare_CreateRevision)(nil),
  1302. (*Compare_ModRevision)(nil),
  1303. (*Compare_Value)(nil),
  1304. (*Compare_Lease)(nil),
  1305. }
  1306. }
  1307. func _Compare_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  1308. m := msg.(*Compare)
  1309. // target_union
  1310. switch x := m.TargetUnion.(type) {
  1311. case *Compare_Version:
  1312. _ = b.EncodeVarint(4<<3 | proto.WireVarint)
  1313. _ = b.EncodeVarint(uint64(x.Version))
  1314. case *Compare_CreateRevision:
  1315. _ = b.EncodeVarint(5<<3 | proto.WireVarint)
  1316. _ = b.EncodeVarint(uint64(x.CreateRevision))
  1317. case *Compare_ModRevision:
  1318. _ = b.EncodeVarint(6<<3 | proto.WireVarint)
  1319. _ = b.EncodeVarint(uint64(x.ModRevision))
  1320. case *Compare_Value:
  1321. _ = b.EncodeVarint(7<<3 | proto.WireBytes)
  1322. _ = b.EncodeRawBytes(x.Value)
  1323. case *Compare_Lease:
  1324. _ = b.EncodeVarint(8<<3 | proto.WireVarint)
  1325. _ = b.EncodeVarint(uint64(x.Lease))
  1326. case nil:
  1327. default:
  1328. return fmt.Errorf("Compare.TargetUnion has unexpected type %T", x)
  1329. }
  1330. return nil
  1331. }
  1332. func _Compare_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  1333. m := msg.(*Compare)
  1334. switch tag {
  1335. case 4: // target_union.version
  1336. if wire != proto.WireVarint {
  1337. return true, proto.ErrInternalBadWireType
  1338. }
  1339. x, err := b.DecodeVarint()
  1340. m.TargetUnion = &Compare_Version{int64(x)}
  1341. return true, err
  1342. case 5: // target_union.create_revision
  1343. if wire != proto.WireVarint {
  1344. return true, proto.ErrInternalBadWireType
  1345. }
  1346. x, err := b.DecodeVarint()
  1347. m.TargetUnion = &Compare_CreateRevision{int64(x)}
  1348. return true, err
  1349. case 6: // target_union.mod_revision
  1350. if wire != proto.WireVarint {
  1351. return true, proto.ErrInternalBadWireType
  1352. }
  1353. x, err := b.DecodeVarint()
  1354. m.TargetUnion = &Compare_ModRevision{int64(x)}
  1355. return true, err
  1356. case 7: // target_union.value
  1357. if wire != proto.WireBytes {
  1358. return true, proto.ErrInternalBadWireType
  1359. }
  1360. x, err := b.DecodeRawBytes(true)
  1361. m.TargetUnion = &Compare_Value{x}
  1362. return true, err
  1363. case 8: // target_union.lease
  1364. if wire != proto.WireVarint {
  1365. return true, proto.ErrInternalBadWireType
  1366. }
  1367. x, err := b.DecodeVarint()
  1368. m.TargetUnion = &Compare_Lease{int64(x)}
  1369. return true, err
  1370. default:
  1371. return false, nil
  1372. }
  1373. }
  1374. func _Compare_OneofSizer(msg proto.Message) (n int) {
  1375. m := msg.(*Compare)
  1376. // target_union
  1377. switch x := m.TargetUnion.(type) {
  1378. case *Compare_Version:
  1379. n += 1 // tag and wire
  1380. n += proto.SizeVarint(uint64(x.Version))
  1381. case *Compare_CreateRevision:
  1382. n += 1 // tag and wire
  1383. n += proto.SizeVarint(uint64(x.CreateRevision))
  1384. case *Compare_ModRevision:
  1385. n += 1 // tag and wire
  1386. n += proto.SizeVarint(uint64(x.ModRevision))
  1387. case *Compare_Value:
  1388. n += 1 // tag and wire
  1389. n += proto.SizeVarint(uint64(len(x.Value)))
  1390. n += len(x.Value)
  1391. case *Compare_Lease:
  1392. n += 1 // tag and wire
  1393. n += proto.SizeVarint(uint64(x.Lease))
  1394. case nil:
  1395. default:
  1396. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1397. }
  1398. return n
  1399. }
  1400. // From google paxosdb paper:
  1401. // Our implementation hinges around a powerful primitive which we call MultiOp. All other database
  1402. // operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically
  1403. // and consists of three components:
  1404. // 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check
  1405. // for the absence or presence of a value, or compare with a given value. Two different tests in the guard
  1406. // may apply to the same or different entries in the database. All tests in the guard are applied and
  1407. // MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise
  1408. // it executes f op (see item 3 below).
  1409. // 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or
  1410. // lookup operation, and applies to a single database entry. Two different operations in the list may apply
  1411. // to the same or different entries in the database. These operations are executed
  1412. // if guard evaluates to
  1413. // true.
  1414. // 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.
  1415. type TxnRequest struct {
  1416. // compare is a list of predicates representing a conjunction of terms.
  1417. // If the comparisons succeed, then the success requests will be processed in order,
  1418. // and the response will contain their respective responses in order.
  1419. // If the comparisons fail, then the failure requests will be processed in order,
  1420. // and the response will contain their respective responses in order.
  1421. Compare []*Compare `protobuf:"bytes,1,rep,name=compare,proto3" json:"compare,omitempty"`
  1422. // success is a list of requests which will be applied when compare evaluates to true.
  1423. Success []*RequestOp `protobuf:"bytes,2,rep,name=success,proto3" json:"success,omitempty"`
  1424. // failure is a list of requests which will be applied when compare evaluates to false.
  1425. Failure []*RequestOp `protobuf:"bytes,3,rep,name=failure,proto3" json:"failure,omitempty"`
  1426. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1427. XXX_unrecognized []byte `json:"-"`
  1428. XXX_sizecache int32 `json:"-"`
  1429. }
  1430. func (m *TxnRequest) Reset() { *m = TxnRequest{} }
  1431. func (m *TxnRequest) String() string { return proto.CompactTextString(m) }
  1432. func (*TxnRequest) ProtoMessage() {}
  1433. func (*TxnRequest) Descriptor() ([]byte, []int) {
  1434. return fileDescriptor_77a6da22d6a3feb1, []int{10}
  1435. }
  1436. func (m *TxnRequest) XXX_Unmarshal(b []byte) error {
  1437. return m.Unmarshal(b)
  1438. }
  1439. func (m *TxnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1440. if deterministic {
  1441. return xxx_messageInfo_TxnRequest.Marshal(b, m, deterministic)
  1442. } else {
  1443. b = b[:cap(b)]
  1444. n, err := m.MarshalToSizedBuffer(b)
  1445. if err != nil {
  1446. return nil, err
  1447. }
  1448. return b[:n], nil
  1449. }
  1450. }
  1451. func (m *TxnRequest) XXX_Merge(src proto.Message) {
  1452. xxx_messageInfo_TxnRequest.Merge(m, src)
  1453. }
  1454. func (m *TxnRequest) XXX_Size() int {
  1455. return m.Size()
  1456. }
  1457. func (m *TxnRequest) XXX_DiscardUnknown() {
  1458. xxx_messageInfo_TxnRequest.DiscardUnknown(m)
  1459. }
  1460. var xxx_messageInfo_TxnRequest proto.InternalMessageInfo
  1461. func (m *TxnRequest) GetCompare() []*Compare {
  1462. if m != nil {
  1463. return m.Compare
  1464. }
  1465. return nil
  1466. }
  1467. func (m *TxnRequest) GetSuccess() []*RequestOp {
  1468. if m != nil {
  1469. return m.Success
  1470. }
  1471. return nil
  1472. }
  1473. func (m *TxnRequest) GetFailure() []*RequestOp {
  1474. if m != nil {
  1475. return m.Failure
  1476. }
  1477. return nil
  1478. }
  1479. type TxnResponse struct {
  1480. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  1481. // succeeded is set to true if the compare evaluated to true or false otherwise.
  1482. Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"`
  1483. // responses is a list of responses corresponding to the results from applying
  1484. // success if succeeded is true or failure if succeeded is false.
  1485. Responses []*ResponseOp `protobuf:"bytes,3,rep,name=responses,proto3" json:"responses,omitempty"`
  1486. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1487. XXX_unrecognized []byte `json:"-"`
  1488. XXX_sizecache int32 `json:"-"`
  1489. }
  1490. func (m *TxnResponse) Reset() { *m = TxnResponse{} }
  1491. func (m *TxnResponse) String() string { return proto.CompactTextString(m) }
  1492. func (*TxnResponse) ProtoMessage() {}
  1493. func (*TxnResponse) Descriptor() ([]byte, []int) {
  1494. return fileDescriptor_77a6da22d6a3feb1, []int{11}
  1495. }
  1496. func (m *TxnResponse) XXX_Unmarshal(b []byte) error {
  1497. return m.Unmarshal(b)
  1498. }
  1499. func (m *TxnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1500. if deterministic {
  1501. return xxx_messageInfo_TxnResponse.Marshal(b, m, deterministic)
  1502. } else {
  1503. b = b[:cap(b)]
  1504. n, err := m.MarshalToSizedBuffer(b)
  1505. if err != nil {
  1506. return nil, err
  1507. }
  1508. return b[:n], nil
  1509. }
  1510. }
  1511. func (m *TxnResponse) XXX_Merge(src proto.Message) {
  1512. xxx_messageInfo_TxnResponse.Merge(m, src)
  1513. }
  1514. func (m *TxnResponse) XXX_Size() int {
  1515. return m.Size()
  1516. }
  1517. func (m *TxnResponse) XXX_DiscardUnknown() {
  1518. xxx_messageInfo_TxnResponse.DiscardUnknown(m)
  1519. }
  1520. var xxx_messageInfo_TxnResponse proto.InternalMessageInfo
  1521. func (m *TxnResponse) GetHeader() *ResponseHeader {
  1522. if m != nil {
  1523. return m.Header
  1524. }
  1525. return nil
  1526. }
  1527. func (m *TxnResponse) GetSucceeded() bool {
  1528. if m != nil {
  1529. return m.Succeeded
  1530. }
  1531. return false
  1532. }
  1533. func (m *TxnResponse) GetResponses() []*ResponseOp {
  1534. if m != nil {
  1535. return m.Responses
  1536. }
  1537. return nil
  1538. }
  1539. // CompactionRequest compacts the key-value store up to a given revision. All superseded keys
  1540. // with a revision less than the compaction revision will be removed.
  1541. type CompactionRequest struct {
  1542. // revision is the key-value store revision for the compaction operation.
  1543. Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
  1544. // physical is set so the RPC will wait until the compaction is physically
  1545. // applied to the local database such that compacted entries are totally
  1546. // removed from the backend database.
  1547. Physical bool `protobuf:"varint,2,opt,name=physical,proto3" json:"physical,omitempty"`
  1548. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1549. XXX_unrecognized []byte `json:"-"`
  1550. XXX_sizecache int32 `json:"-"`
  1551. }
  1552. func (m *CompactionRequest) Reset() { *m = CompactionRequest{} }
  1553. func (m *CompactionRequest) String() string { return proto.CompactTextString(m) }
  1554. func (*CompactionRequest) ProtoMessage() {}
  1555. func (*CompactionRequest) Descriptor() ([]byte, []int) {
  1556. return fileDescriptor_77a6da22d6a3feb1, []int{12}
  1557. }
  1558. func (m *CompactionRequest) XXX_Unmarshal(b []byte) error {
  1559. return m.Unmarshal(b)
  1560. }
  1561. func (m *CompactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1562. if deterministic {
  1563. return xxx_messageInfo_CompactionRequest.Marshal(b, m, deterministic)
  1564. } else {
  1565. b = b[:cap(b)]
  1566. n, err := m.MarshalToSizedBuffer(b)
  1567. if err != nil {
  1568. return nil, err
  1569. }
  1570. return b[:n], nil
  1571. }
  1572. }
  1573. func (m *CompactionRequest) XXX_Merge(src proto.Message) {
  1574. xxx_messageInfo_CompactionRequest.Merge(m, src)
  1575. }
  1576. func (m *CompactionRequest) XXX_Size() int {
  1577. return m.Size()
  1578. }
  1579. func (m *CompactionRequest) XXX_DiscardUnknown() {
  1580. xxx_messageInfo_CompactionRequest.DiscardUnknown(m)
  1581. }
  1582. var xxx_messageInfo_CompactionRequest proto.InternalMessageInfo
  1583. func (m *CompactionRequest) GetRevision() int64 {
  1584. if m != nil {
  1585. return m.Revision
  1586. }
  1587. return 0
  1588. }
  1589. func (m *CompactionRequest) GetPhysical() bool {
  1590. if m != nil {
  1591. return m.Physical
  1592. }
  1593. return false
  1594. }
  1595. type CompactionResponse struct {
  1596. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  1597. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1598. XXX_unrecognized []byte `json:"-"`
  1599. XXX_sizecache int32 `json:"-"`
  1600. }
  1601. func (m *CompactionResponse) Reset() { *m = CompactionResponse{} }
  1602. func (m *CompactionResponse) String() string { return proto.CompactTextString(m) }
  1603. func (*CompactionResponse) ProtoMessage() {}
  1604. func (*CompactionResponse) Descriptor() ([]byte, []int) {
  1605. return fileDescriptor_77a6da22d6a3feb1, []int{13}
  1606. }
  1607. func (m *CompactionResponse) XXX_Unmarshal(b []byte) error {
  1608. return m.Unmarshal(b)
  1609. }
  1610. func (m *CompactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1611. if deterministic {
  1612. return xxx_messageInfo_CompactionResponse.Marshal(b, m, deterministic)
  1613. } else {
  1614. b = b[:cap(b)]
  1615. n, err := m.MarshalToSizedBuffer(b)
  1616. if err != nil {
  1617. return nil, err
  1618. }
  1619. return b[:n], nil
  1620. }
  1621. }
  1622. func (m *CompactionResponse) XXX_Merge(src proto.Message) {
  1623. xxx_messageInfo_CompactionResponse.Merge(m, src)
  1624. }
  1625. func (m *CompactionResponse) XXX_Size() int {
  1626. return m.Size()
  1627. }
  1628. func (m *CompactionResponse) XXX_DiscardUnknown() {
  1629. xxx_messageInfo_CompactionResponse.DiscardUnknown(m)
  1630. }
  1631. var xxx_messageInfo_CompactionResponse proto.InternalMessageInfo
  1632. func (m *CompactionResponse) GetHeader() *ResponseHeader {
  1633. if m != nil {
  1634. return m.Header
  1635. }
  1636. return nil
  1637. }
  1638. type HashRequest struct {
  1639. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1640. XXX_unrecognized []byte `json:"-"`
  1641. XXX_sizecache int32 `json:"-"`
  1642. }
  1643. func (m *HashRequest) Reset() { *m = HashRequest{} }
  1644. func (m *HashRequest) String() string { return proto.CompactTextString(m) }
  1645. func (*HashRequest) ProtoMessage() {}
  1646. func (*HashRequest) Descriptor() ([]byte, []int) {
  1647. return fileDescriptor_77a6da22d6a3feb1, []int{14}
  1648. }
  1649. func (m *HashRequest) XXX_Unmarshal(b []byte) error {
  1650. return m.Unmarshal(b)
  1651. }
  1652. func (m *HashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1653. if deterministic {
  1654. return xxx_messageInfo_HashRequest.Marshal(b, m, deterministic)
  1655. } else {
  1656. b = b[:cap(b)]
  1657. n, err := m.MarshalToSizedBuffer(b)
  1658. if err != nil {
  1659. return nil, err
  1660. }
  1661. return b[:n], nil
  1662. }
  1663. }
  1664. func (m *HashRequest) XXX_Merge(src proto.Message) {
  1665. xxx_messageInfo_HashRequest.Merge(m, src)
  1666. }
  1667. func (m *HashRequest) XXX_Size() int {
  1668. return m.Size()
  1669. }
  1670. func (m *HashRequest) XXX_DiscardUnknown() {
  1671. xxx_messageInfo_HashRequest.DiscardUnknown(m)
  1672. }
  1673. var xxx_messageInfo_HashRequest proto.InternalMessageInfo
  1674. type HashKVRequest struct {
  1675. // revision is the key-value store revision for the hash operation.
  1676. Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
  1677. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1678. XXX_unrecognized []byte `json:"-"`
  1679. XXX_sizecache int32 `json:"-"`
  1680. }
  1681. func (m *HashKVRequest) Reset() { *m = HashKVRequest{} }
  1682. func (m *HashKVRequest) String() string { return proto.CompactTextString(m) }
  1683. func (*HashKVRequest) ProtoMessage() {}
  1684. func (*HashKVRequest) Descriptor() ([]byte, []int) {
  1685. return fileDescriptor_77a6da22d6a3feb1, []int{15}
  1686. }
  1687. func (m *HashKVRequest) XXX_Unmarshal(b []byte) error {
  1688. return m.Unmarshal(b)
  1689. }
  1690. func (m *HashKVRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1691. if deterministic {
  1692. return xxx_messageInfo_HashKVRequest.Marshal(b, m, deterministic)
  1693. } else {
  1694. b = b[:cap(b)]
  1695. n, err := m.MarshalToSizedBuffer(b)
  1696. if err != nil {
  1697. return nil, err
  1698. }
  1699. return b[:n], nil
  1700. }
  1701. }
  1702. func (m *HashKVRequest) XXX_Merge(src proto.Message) {
  1703. xxx_messageInfo_HashKVRequest.Merge(m, src)
  1704. }
  1705. func (m *HashKVRequest) XXX_Size() int {
  1706. return m.Size()
  1707. }
  1708. func (m *HashKVRequest) XXX_DiscardUnknown() {
  1709. xxx_messageInfo_HashKVRequest.DiscardUnknown(m)
  1710. }
  1711. var xxx_messageInfo_HashKVRequest proto.InternalMessageInfo
  1712. func (m *HashKVRequest) GetRevision() int64 {
  1713. if m != nil {
  1714. return m.Revision
  1715. }
  1716. return 0
  1717. }
  1718. type HashKVResponse struct {
  1719. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  1720. // hash is the hash value computed from the responding member's MVCC keys up to a given revision.
  1721. Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"`
  1722. // compact_revision is the compacted revision of key-value store when hash begins.
  1723. CompactRevision int64 `protobuf:"varint,3,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"`
  1724. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1725. XXX_unrecognized []byte `json:"-"`
  1726. XXX_sizecache int32 `json:"-"`
  1727. }
  1728. func (m *HashKVResponse) Reset() { *m = HashKVResponse{} }
  1729. func (m *HashKVResponse) String() string { return proto.CompactTextString(m) }
  1730. func (*HashKVResponse) ProtoMessage() {}
  1731. func (*HashKVResponse) Descriptor() ([]byte, []int) {
  1732. return fileDescriptor_77a6da22d6a3feb1, []int{16}
  1733. }
  1734. func (m *HashKVResponse) XXX_Unmarshal(b []byte) error {
  1735. return m.Unmarshal(b)
  1736. }
  1737. func (m *HashKVResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1738. if deterministic {
  1739. return xxx_messageInfo_HashKVResponse.Marshal(b, m, deterministic)
  1740. } else {
  1741. b = b[:cap(b)]
  1742. n, err := m.MarshalToSizedBuffer(b)
  1743. if err != nil {
  1744. return nil, err
  1745. }
  1746. return b[:n], nil
  1747. }
  1748. }
  1749. func (m *HashKVResponse) XXX_Merge(src proto.Message) {
  1750. xxx_messageInfo_HashKVResponse.Merge(m, src)
  1751. }
  1752. func (m *HashKVResponse) XXX_Size() int {
  1753. return m.Size()
  1754. }
  1755. func (m *HashKVResponse) XXX_DiscardUnknown() {
  1756. xxx_messageInfo_HashKVResponse.DiscardUnknown(m)
  1757. }
  1758. var xxx_messageInfo_HashKVResponse proto.InternalMessageInfo
  1759. func (m *HashKVResponse) GetHeader() *ResponseHeader {
  1760. if m != nil {
  1761. return m.Header
  1762. }
  1763. return nil
  1764. }
  1765. func (m *HashKVResponse) GetHash() uint32 {
  1766. if m != nil {
  1767. return m.Hash
  1768. }
  1769. return 0
  1770. }
  1771. func (m *HashKVResponse) GetCompactRevision() int64 {
  1772. if m != nil {
  1773. return m.CompactRevision
  1774. }
  1775. return 0
  1776. }
  1777. type HashResponse struct {
  1778. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  1779. // hash is the hash value computed from the responding member's KV's backend.
  1780. Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"`
  1781. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1782. XXX_unrecognized []byte `json:"-"`
  1783. XXX_sizecache int32 `json:"-"`
  1784. }
  1785. func (m *HashResponse) Reset() { *m = HashResponse{} }
  1786. func (m *HashResponse) String() string { return proto.CompactTextString(m) }
  1787. func (*HashResponse) ProtoMessage() {}
  1788. func (*HashResponse) Descriptor() ([]byte, []int) {
  1789. return fileDescriptor_77a6da22d6a3feb1, []int{17}
  1790. }
  1791. func (m *HashResponse) XXX_Unmarshal(b []byte) error {
  1792. return m.Unmarshal(b)
  1793. }
  1794. func (m *HashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1795. if deterministic {
  1796. return xxx_messageInfo_HashResponse.Marshal(b, m, deterministic)
  1797. } else {
  1798. b = b[:cap(b)]
  1799. n, err := m.MarshalToSizedBuffer(b)
  1800. if err != nil {
  1801. return nil, err
  1802. }
  1803. return b[:n], nil
  1804. }
  1805. }
  1806. func (m *HashResponse) XXX_Merge(src proto.Message) {
  1807. xxx_messageInfo_HashResponse.Merge(m, src)
  1808. }
  1809. func (m *HashResponse) XXX_Size() int {
  1810. return m.Size()
  1811. }
  1812. func (m *HashResponse) XXX_DiscardUnknown() {
  1813. xxx_messageInfo_HashResponse.DiscardUnknown(m)
  1814. }
  1815. var xxx_messageInfo_HashResponse proto.InternalMessageInfo
  1816. func (m *HashResponse) GetHeader() *ResponseHeader {
  1817. if m != nil {
  1818. return m.Header
  1819. }
  1820. return nil
  1821. }
  1822. func (m *HashResponse) GetHash() uint32 {
  1823. if m != nil {
  1824. return m.Hash
  1825. }
  1826. return 0
  1827. }
  1828. type SnapshotRequest struct {
  1829. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1830. XXX_unrecognized []byte `json:"-"`
  1831. XXX_sizecache int32 `json:"-"`
  1832. }
  1833. func (m *SnapshotRequest) Reset() { *m = SnapshotRequest{} }
  1834. func (m *SnapshotRequest) String() string { return proto.CompactTextString(m) }
  1835. func (*SnapshotRequest) ProtoMessage() {}
  1836. func (*SnapshotRequest) Descriptor() ([]byte, []int) {
  1837. return fileDescriptor_77a6da22d6a3feb1, []int{18}
  1838. }
  1839. func (m *SnapshotRequest) XXX_Unmarshal(b []byte) error {
  1840. return m.Unmarshal(b)
  1841. }
  1842. func (m *SnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1843. if deterministic {
  1844. return xxx_messageInfo_SnapshotRequest.Marshal(b, m, deterministic)
  1845. } else {
  1846. b = b[:cap(b)]
  1847. n, err := m.MarshalToSizedBuffer(b)
  1848. if err != nil {
  1849. return nil, err
  1850. }
  1851. return b[:n], nil
  1852. }
  1853. }
  1854. func (m *SnapshotRequest) XXX_Merge(src proto.Message) {
  1855. xxx_messageInfo_SnapshotRequest.Merge(m, src)
  1856. }
  1857. func (m *SnapshotRequest) XXX_Size() int {
  1858. return m.Size()
  1859. }
  1860. func (m *SnapshotRequest) XXX_DiscardUnknown() {
  1861. xxx_messageInfo_SnapshotRequest.DiscardUnknown(m)
  1862. }
  1863. var xxx_messageInfo_SnapshotRequest proto.InternalMessageInfo
  1864. type SnapshotResponse struct {
  1865. // header has the current key-value store information. The first header in the snapshot
  1866. // stream indicates the point in time of the snapshot.
  1867. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  1868. // remaining_bytes is the number of blob bytes to be sent after this message
  1869. RemainingBytes uint64 `protobuf:"varint,2,opt,name=remaining_bytes,json=remainingBytes,proto3" json:"remaining_bytes,omitempty"`
  1870. // blob contains the next chunk of the snapshot in the snapshot stream.
  1871. Blob []byte `protobuf:"bytes,3,opt,name=blob,proto3" json:"blob,omitempty"`
  1872. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1873. XXX_unrecognized []byte `json:"-"`
  1874. XXX_sizecache int32 `json:"-"`
  1875. }
  1876. func (m *SnapshotResponse) Reset() { *m = SnapshotResponse{} }
  1877. func (m *SnapshotResponse) String() string { return proto.CompactTextString(m) }
  1878. func (*SnapshotResponse) ProtoMessage() {}
  1879. func (*SnapshotResponse) Descriptor() ([]byte, []int) {
  1880. return fileDescriptor_77a6da22d6a3feb1, []int{19}
  1881. }
  1882. func (m *SnapshotResponse) XXX_Unmarshal(b []byte) error {
  1883. return m.Unmarshal(b)
  1884. }
  1885. func (m *SnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1886. if deterministic {
  1887. return xxx_messageInfo_SnapshotResponse.Marshal(b, m, deterministic)
  1888. } else {
  1889. b = b[:cap(b)]
  1890. n, err := m.MarshalToSizedBuffer(b)
  1891. if err != nil {
  1892. return nil, err
  1893. }
  1894. return b[:n], nil
  1895. }
  1896. }
  1897. func (m *SnapshotResponse) XXX_Merge(src proto.Message) {
  1898. xxx_messageInfo_SnapshotResponse.Merge(m, src)
  1899. }
  1900. func (m *SnapshotResponse) XXX_Size() int {
  1901. return m.Size()
  1902. }
  1903. func (m *SnapshotResponse) XXX_DiscardUnknown() {
  1904. xxx_messageInfo_SnapshotResponse.DiscardUnknown(m)
  1905. }
  1906. var xxx_messageInfo_SnapshotResponse proto.InternalMessageInfo
  1907. func (m *SnapshotResponse) GetHeader() *ResponseHeader {
  1908. if m != nil {
  1909. return m.Header
  1910. }
  1911. return nil
  1912. }
  1913. func (m *SnapshotResponse) GetRemainingBytes() uint64 {
  1914. if m != nil {
  1915. return m.RemainingBytes
  1916. }
  1917. return 0
  1918. }
  1919. func (m *SnapshotResponse) GetBlob() []byte {
  1920. if m != nil {
  1921. return m.Blob
  1922. }
  1923. return nil
  1924. }
  1925. type WatchRequest struct {
  1926. // request_union is a request to either create a new watcher or cancel an existing watcher.
  1927. //
  1928. // Types that are valid to be assigned to RequestUnion:
  1929. // *WatchRequest_CreateRequest
  1930. // *WatchRequest_CancelRequest
  1931. // *WatchRequest_ProgressRequest
  1932. RequestUnion isWatchRequest_RequestUnion `protobuf_oneof:"request_union"`
  1933. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1934. XXX_unrecognized []byte `json:"-"`
  1935. XXX_sizecache int32 `json:"-"`
  1936. }
  1937. func (m *WatchRequest) Reset() { *m = WatchRequest{} }
  1938. func (m *WatchRequest) String() string { return proto.CompactTextString(m) }
  1939. func (*WatchRequest) ProtoMessage() {}
  1940. func (*WatchRequest) Descriptor() ([]byte, []int) {
  1941. return fileDescriptor_77a6da22d6a3feb1, []int{20}
  1942. }
  1943. func (m *WatchRequest) XXX_Unmarshal(b []byte) error {
  1944. return m.Unmarshal(b)
  1945. }
  1946. func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1947. if deterministic {
  1948. return xxx_messageInfo_WatchRequest.Marshal(b, m, deterministic)
  1949. } else {
  1950. b = b[:cap(b)]
  1951. n, err := m.MarshalToSizedBuffer(b)
  1952. if err != nil {
  1953. return nil, err
  1954. }
  1955. return b[:n], nil
  1956. }
  1957. }
  1958. func (m *WatchRequest) XXX_Merge(src proto.Message) {
  1959. xxx_messageInfo_WatchRequest.Merge(m, src)
  1960. }
  1961. func (m *WatchRequest) XXX_Size() int {
  1962. return m.Size()
  1963. }
  1964. func (m *WatchRequest) XXX_DiscardUnknown() {
  1965. xxx_messageInfo_WatchRequest.DiscardUnknown(m)
  1966. }
  1967. var xxx_messageInfo_WatchRequest proto.InternalMessageInfo
  1968. type isWatchRequest_RequestUnion interface {
  1969. isWatchRequest_RequestUnion()
  1970. MarshalTo([]byte) (int, error)
  1971. Size() int
  1972. }
  1973. type WatchRequest_CreateRequest struct {
  1974. CreateRequest *WatchCreateRequest `protobuf:"bytes,1,opt,name=create_request,json=createRequest,proto3,oneof"`
  1975. }
  1976. type WatchRequest_CancelRequest struct {
  1977. CancelRequest *WatchCancelRequest `protobuf:"bytes,2,opt,name=cancel_request,json=cancelRequest,proto3,oneof"`
  1978. }
  1979. type WatchRequest_ProgressRequest struct {
  1980. ProgressRequest *WatchProgressRequest `protobuf:"bytes,3,opt,name=progress_request,json=progressRequest,proto3,oneof"`
  1981. }
  1982. func (*WatchRequest_CreateRequest) isWatchRequest_RequestUnion() {}
  1983. func (*WatchRequest_CancelRequest) isWatchRequest_RequestUnion() {}
  1984. func (*WatchRequest_ProgressRequest) isWatchRequest_RequestUnion() {}
  1985. func (m *WatchRequest) GetRequestUnion() isWatchRequest_RequestUnion {
  1986. if m != nil {
  1987. return m.RequestUnion
  1988. }
  1989. return nil
  1990. }
  1991. func (m *WatchRequest) GetCreateRequest() *WatchCreateRequest {
  1992. if x, ok := m.GetRequestUnion().(*WatchRequest_CreateRequest); ok {
  1993. return x.CreateRequest
  1994. }
  1995. return nil
  1996. }
  1997. func (m *WatchRequest) GetCancelRequest() *WatchCancelRequest {
  1998. if x, ok := m.GetRequestUnion().(*WatchRequest_CancelRequest); ok {
  1999. return x.CancelRequest
  2000. }
  2001. return nil
  2002. }
  2003. func (m *WatchRequest) GetProgressRequest() *WatchProgressRequest {
  2004. if x, ok := m.GetRequestUnion().(*WatchRequest_ProgressRequest); ok {
  2005. return x.ProgressRequest
  2006. }
  2007. return nil
  2008. }
  2009. // XXX_OneofFuncs is for the internal use of the proto package.
  2010. func (*WatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  2011. return _WatchRequest_OneofMarshaler, _WatchRequest_OneofUnmarshaler, _WatchRequest_OneofSizer, []interface{}{
  2012. (*WatchRequest_CreateRequest)(nil),
  2013. (*WatchRequest_CancelRequest)(nil),
  2014. (*WatchRequest_ProgressRequest)(nil),
  2015. }
  2016. }
  2017. func _WatchRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  2018. m := msg.(*WatchRequest)
  2019. // request_union
  2020. switch x := m.RequestUnion.(type) {
  2021. case *WatchRequest_CreateRequest:
  2022. _ = b.EncodeVarint(1<<3 | proto.WireBytes)
  2023. if err := b.EncodeMessage(x.CreateRequest); err != nil {
  2024. return err
  2025. }
  2026. case *WatchRequest_CancelRequest:
  2027. _ = b.EncodeVarint(2<<3 | proto.WireBytes)
  2028. if err := b.EncodeMessage(x.CancelRequest); err != nil {
  2029. return err
  2030. }
  2031. case *WatchRequest_ProgressRequest:
  2032. _ = b.EncodeVarint(3<<3 | proto.WireBytes)
  2033. if err := b.EncodeMessage(x.ProgressRequest); err != nil {
  2034. return err
  2035. }
  2036. case nil:
  2037. default:
  2038. return fmt.Errorf("WatchRequest.RequestUnion has unexpected type %T", x)
  2039. }
  2040. return nil
  2041. }
  2042. func _WatchRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  2043. m := msg.(*WatchRequest)
  2044. switch tag {
  2045. case 1: // request_union.create_request
  2046. if wire != proto.WireBytes {
  2047. return true, proto.ErrInternalBadWireType
  2048. }
  2049. msg := new(WatchCreateRequest)
  2050. err := b.DecodeMessage(msg)
  2051. m.RequestUnion = &WatchRequest_CreateRequest{msg}
  2052. return true, err
  2053. case 2: // request_union.cancel_request
  2054. if wire != proto.WireBytes {
  2055. return true, proto.ErrInternalBadWireType
  2056. }
  2057. msg := new(WatchCancelRequest)
  2058. err := b.DecodeMessage(msg)
  2059. m.RequestUnion = &WatchRequest_CancelRequest{msg}
  2060. return true, err
  2061. case 3: // request_union.progress_request
  2062. if wire != proto.WireBytes {
  2063. return true, proto.ErrInternalBadWireType
  2064. }
  2065. msg := new(WatchProgressRequest)
  2066. err := b.DecodeMessage(msg)
  2067. m.RequestUnion = &WatchRequest_ProgressRequest{msg}
  2068. return true, err
  2069. default:
  2070. return false, nil
  2071. }
  2072. }
  2073. func _WatchRequest_OneofSizer(msg proto.Message) (n int) {
  2074. m := msg.(*WatchRequest)
  2075. // request_union
  2076. switch x := m.RequestUnion.(type) {
  2077. case *WatchRequest_CreateRequest:
  2078. s := proto.Size(x.CreateRequest)
  2079. n += 1 // tag and wire
  2080. n += proto.SizeVarint(uint64(s))
  2081. n += s
  2082. case *WatchRequest_CancelRequest:
  2083. s := proto.Size(x.CancelRequest)
  2084. n += 1 // tag and wire
  2085. n += proto.SizeVarint(uint64(s))
  2086. n += s
  2087. case *WatchRequest_ProgressRequest:
  2088. s := proto.Size(x.ProgressRequest)
  2089. n += 1 // tag and wire
  2090. n += proto.SizeVarint(uint64(s))
  2091. n += s
  2092. case nil:
  2093. default:
  2094. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  2095. }
  2096. return n
  2097. }
  2098. type WatchCreateRequest struct {
  2099. // key is the key to register for watching.
  2100. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  2101. // range_end is the end of the range [key, range_end) to watch. If range_end is not given,
  2102. // only the key argument is watched. If range_end is equal to '\0', all keys greater than
  2103. // or equal to the key argument are watched.
  2104. // If the range_end is one bit larger than the given key,
  2105. // then all keys with the prefix (the given key) will be watched.
  2106. RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
  2107. // start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
  2108. StartRevision int64 `protobuf:"varint,3,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"`
  2109. // progress_notify is set so that the etcd server will periodically send a WatchResponse with
  2110. // no events to the new watcher if there are no recent events. It is useful when clients
  2111. // wish to recover a disconnected watcher starting from a recent known revision.
  2112. // The etcd server may decide how often it will send notifications based on current load.
  2113. ProgressNotify bool `protobuf:"varint,4,opt,name=progress_notify,json=progressNotify,proto3" json:"progress_notify,omitempty"`
  2114. // filters filter the events at server side before it sends back to the watcher.
  2115. Filters []WatchCreateRequest_FilterType `protobuf:"varint,5,rep,packed,name=filters,proto3,enum=etcdserverpb.WatchCreateRequest_FilterType" json:"filters,omitempty"`
  2116. // If prev_kv is set, created watcher gets the previous KV before the event happens.
  2117. // If the previous KV is already compacted, nothing will be returned.
  2118. PrevKv bool `protobuf:"varint,6,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
  2119. // If watch_id is provided and non-zero, it will be assigned to this watcher.
  2120. // Since creating a watcher in etcd is not a synchronous operation,
  2121. // this can be used ensure that ordering is correct when creating multiple
  2122. // watchers on the same stream. Creating a watcher with an ID already in
  2123. // use on the stream will cause an error to be returned.
  2124. WatchId int64 `protobuf:"varint,7,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"`
  2125. // fragment enables splitting large revisions into multiple watch responses.
  2126. Fragment bool `protobuf:"varint,8,opt,name=fragment,proto3" json:"fragment,omitempty"`
  2127. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2128. XXX_unrecognized []byte `json:"-"`
  2129. XXX_sizecache int32 `json:"-"`
  2130. }
  2131. func (m *WatchCreateRequest) Reset() { *m = WatchCreateRequest{} }
  2132. func (m *WatchCreateRequest) String() string { return proto.CompactTextString(m) }
  2133. func (*WatchCreateRequest) ProtoMessage() {}
  2134. func (*WatchCreateRequest) Descriptor() ([]byte, []int) {
  2135. return fileDescriptor_77a6da22d6a3feb1, []int{21}
  2136. }
  2137. func (m *WatchCreateRequest) XXX_Unmarshal(b []byte) error {
  2138. return m.Unmarshal(b)
  2139. }
  2140. func (m *WatchCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2141. if deterministic {
  2142. return xxx_messageInfo_WatchCreateRequest.Marshal(b, m, deterministic)
  2143. } else {
  2144. b = b[:cap(b)]
  2145. n, err := m.MarshalToSizedBuffer(b)
  2146. if err != nil {
  2147. return nil, err
  2148. }
  2149. return b[:n], nil
  2150. }
  2151. }
  2152. func (m *WatchCreateRequest) XXX_Merge(src proto.Message) {
  2153. xxx_messageInfo_WatchCreateRequest.Merge(m, src)
  2154. }
  2155. func (m *WatchCreateRequest) XXX_Size() int {
  2156. return m.Size()
  2157. }
  2158. func (m *WatchCreateRequest) XXX_DiscardUnknown() {
  2159. xxx_messageInfo_WatchCreateRequest.DiscardUnknown(m)
  2160. }
  2161. var xxx_messageInfo_WatchCreateRequest proto.InternalMessageInfo
  2162. func (m *WatchCreateRequest) GetKey() []byte {
  2163. if m != nil {
  2164. return m.Key
  2165. }
  2166. return nil
  2167. }
  2168. func (m *WatchCreateRequest) GetRangeEnd() []byte {
  2169. if m != nil {
  2170. return m.RangeEnd
  2171. }
  2172. return nil
  2173. }
  2174. func (m *WatchCreateRequest) GetStartRevision() int64 {
  2175. if m != nil {
  2176. return m.StartRevision
  2177. }
  2178. return 0
  2179. }
  2180. func (m *WatchCreateRequest) GetProgressNotify() bool {
  2181. if m != nil {
  2182. return m.ProgressNotify
  2183. }
  2184. return false
  2185. }
  2186. func (m *WatchCreateRequest) GetFilters() []WatchCreateRequest_FilterType {
  2187. if m != nil {
  2188. return m.Filters
  2189. }
  2190. return nil
  2191. }
  2192. func (m *WatchCreateRequest) GetPrevKv() bool {
  2193. if m != nil {
  2194. return m.PrevKv
  2195. }
  2196. return false
  2197. }
  2198. func (m *WatchCreateRequest) GetWatchId() int64 {
  2199. if m != nil {
  2200. return m.WatchId
  2201. }
  2202. return 0
  2203. }
  2204. func (m *WatchCreateRequest) GetFragment() bool {
  2205. if m != nil {
  2206. return m.Fragment
  2207. }
  2208. return false
  2209. }
  2210. type WatchCancelRequest struct {
  2211. // watch_id is the watcher id to cancel so that no more events are transmitted.
  2212. WatchId int64 `protobuf:"varint,1,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"`
  2213. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2214. XXX_unrecognized []byte `json:"-"`
  2215. XXX_sizecache int32 `json:"-"`
  2216. }
  2217. func (m *WatchCancelRequest) Reset() { *m = WatchCancelRequest{} }
  2218. func (m *WatchCancelRequest) String() string { return proto.CompactTextString(m) }
  2219. func (*WatchCancelRequest) ProtoMessage() {}
  2220. func (*WatchCancelRequest) Descriptor() ([]byte, []int) {
  2221. return fileDescriptor_77a6da22d6a3feb1, []int{22}
  2222. }
  2223. func (m *WatchCancelRequest) XXX_Unmarshal(b []byte) error {
  2224. return m.Unmarshal(b)
  2225. }
  2226. func (m *WatchCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2227. if deterministic {
  2228. return xxx_messageInfo_WatchCancelRequest.Marshal(b, m, deterministic)
  2229. } else {
  2230. b = b[:cap(b)]
  2231. n, err := m.MarshalToSizedBuffer(b)
  2232. if err != nil {
  2233. return nil, err
  2234. }
  2235. return b[:n], nil
  2236. }
  2237. }
  2238. func (m *WatchCancelRequest) XXX_Merge(src proto.Message) {
  2239. xxx_messageInfo_WatchCancelRequest.Merge(m, src)
  2240. }
  2241. func (m *WatchCancelRequest) XXX_Size() int {
  2242. return m.Size()
  2243. }
  2244. func (m *WatchCancelRequest) XXX_DiscardUnknown() {
  2245. xxx_messageInfo_WatchCancelRequest.DiscardUnknown(m)
  2246. }
  2247. var xxx_messageInfo_WatchCancelRequest proto.InternalMessageInfo
  2248. func (m *WatchCancelRequest) GetWatchId() int64 {
  2249. if m != nil {
  2250. return m.WatchId
  2251. }
  2252. return 0
  2253. }
  2254. // Requests the a watch stream progress status be sent in the watch response stream as soon as
  2255. // possible.
  2256. type WatchProgressRequest struct {
  2257. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2258. XXX_unrecognized []byte `json:"-"`
  2259. XXX_sizecache int32 `json:"-"`
  2260. }
  2261. func (m *WatchProgressRequest) Reset() { *m = WatchProgressRequest{} }
  2262. func (m *WatchProgressRequest) String() string { return proto.CompactTextString(m) }
  2263. func (*WatchProgressRequest) ProtoMessage() {}
  2264. func (*WatchProgressRequest) Descriptor() ([]byte, []int) {
  2265. return fileDescriptor_77a6da22d6a3feb1, []int{23}
  2266. }
  2267. func (m *WatchProgressRequest) XXX_Unmarshal(b []byte) error {
  2268. return m.Unmarshal(b)
  2269. }
  2270. func (m *WatchProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2271. if deterministic {
  2272. return xxx_messageInfo_WatchProgressRequest.Marshal(b, m, deterministic)
  2273. } else {
  2274. b = b[:cap(b)]
  2275. n, err := m.MarshalToSizedBuffer(b)
  2276. if err != nil {
  2277. return nil, err
  2278. }
  2279. return b[:n], nil
  2280. }
  2281. }
  2282. func (m *WatchProgressRequest) XXX_Merge(src proto.Message) {
  2283. xxx_messageInfo_WatchProgressRequest.Merge(m, src)
  2284. }
  2285. func (m *WatchProgressRequest) XXX_Size() int {
  2286. return m.Size()
  2287. }
  2288. func (m *WatchProgressRequest) XXX_DiscardUnknown() {
  2289. xxx_messageInfo_WatchProgressRequest.DiscardUnknown(m)
  2290. }
  2291. var xxx_messageInfo_WatchProgressRequest proto.InternalMessageInfo
  2292. type WatchResponse struct {
  2293. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  2294. // watch_id is the ID of the watcher that corresponds to the response.
  2295. WatchId int64 `protobuf:"varint,2,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"`
  2296. // created is set to true if the response is for a create watch request.
  2297. // The client should record the watch_id and expect to receive events for
  2298. // the created watcher from the same stream.
  2299. // All events sent to the created watcher will attach with the same watch_id.
  2300. Created bool `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"`
  2301. // canceled is set to true if the response is for a cancel watch request.
  2302. // No further events will be sent to the canceled watcher.
  2303. Canceled bool `protobuf:"varint,4,opt,name=canceled,proto3" json:"canceled,omitempty"`
  2304. // compact_revision is set to the minimum index if a watcher tries to watch
  2305. // at a compacted index.
  2306. //
  2307. // This happens when creating a watcher at a compacted revision or the watcher cannot
  2308. // catch up with the progress of the key-value store.
  2309. //
  2310. // The client should treat the watcher as canceled and should not try to create any
  2311. // watcher with the same start_revision again.
  2312. CompactRevision int64 `protobuf:"varint,5,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"`
  2313. // cancel_reason indicates the reason for canceling the watcher.
  2314. CancelReason string `protobuf:"bytes,6,opt,name=cancel_reason,json=cancelReason,proto3" json:"cancel_reason,omitempty"`
  2315. // framgment is true if large watch response was split over multiple responses.
  2316. Fragment bool `protobuf:"varint,7,opt,name=fragment,proto3" json:"fragment,omitempty"`
  2317. Events []*mvccpb.Event `protobuf:"bytes,11,rep,name=events,proto3" json:"events,omitempty"`
  2318. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2319. XXX_unrecognized []byte `json:"-"`
  2320. XXX_sizecache int32 `json:"-"`
  2321. }
  2322. func (m *WatchResponse) Reset() { *m = WatchResponse{} }
  2323. func (m *WatchResponse) String() string { return proto.CompactTextString(m) }
  2324. func (*WatchResponse) ProtoMessage() {}
  2325. func (*WatchResponse) Descriptor() ([]byte, []int) {
  2326. return fileDescriptor_77a6da22d6a3feb1, []int{24}
  2327. }
  2328. func (m *WatchResponse) XXX_Unmarshal(b []byte) error {
  2329. return m.Unmarshal(b)
  2330. }
  2331. func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2332. if deterministic {
  2333. return xxx_messageInfo_WatchResponse.Marshal(b, m, deterministic)
  2334. } else {
  2335. b = b[:cap(b)]
  2336. n, err := m.MarshalToSizedBuffer(b)
  2337. if err != nil {
  2338. return nil, err
  2339. }
  2340. return b[:n], nil
  2341. }
  2342. }
  2343. func (m *WatchResponse) XXX_Merge(src proto.Message) {
  2344. xxx_messageInfo_WatchResponse.Merge(m, src)
  2345. }
  2346. func (m *WatchResponse) XXX_Size() int {
  2347. return m.Size()
  2348. }
  2349. func (m *WatchResponse) XXX_DiscardUnknown() {
  2350. xxx_messageInfo_WatchResponse.DiscardUnknown(m)
  2351. }
  2352. var xxx_messageInfo_WatchResponse proto.InternalMessageInfo
  2353. func (m *WatchResponse) GetHeader() *ResponseHeader {
  2354. if m != nil {
  2355. return m.Header
  2356. }
  2357. return nil
  2358. }
  2359. func (m *WatchResponse) GetWatchId() int64 {
  2360. if m != nil {
  2361. return m.WatchId
  2362. }
  2363. return 0
  2364. }
  2365. func (m *WatchResponse) GetCreated() bool {
  2366. if m != nil {
  2367. return m.Created
  2368. }
  2369. return false
  2370. }
  2371. func (m *WatchResponse) GetCanceled() bool {
  2372. if m != nil {
  2373. return m.Canceled
  2374. }
  2375. return false
  2376. }
  2377. func (m *WatchResponse) GetCompactRevision() int64 {
  2378. if m != nil {
  2379. return m.CompactRevision
  2380. }
  2381. return 0
  2382. }
  2383. func (m *WatchResponse) GetCancelReason() string {
  2384. if m != nil {
  2385. return m.CancelReason
  2386. }
  2387. return ""
  2388. }
  2389. func (m *WatchResponse) GetFragment() bool {
  2390. if m != nil {
  2391. return m.Fragment
  2392. }
  2393. return false
  2394. }
  2395. func (m *WatchResponse) GetEvents() []*mvccpb.Event {
  2396. if m != nil {
  2397. return m.Events
  2398. }
  2399. return nil
  2400. }
  2401. type LeaseGrantRequest struct {
  2402. // TTL is the advisory time-to-live in seconds. Expired lease will return -1.
  2403. TTL int64 `protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
  2404. // ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
  2405. ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
  2406. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2407. XXX_unrecognized []byte `json:"-"`
  2408. XXX_sizecache int32 `json:"-"`
  2409. }
  2410. func (m *LeaseGrantRequest) Reset() { *m = LeaseGrantRequest{} }
  2411. func (m *LeaseGrantRequest) String() string { return proto.CompactTextString(m) }
  2412. func (*LeaseGrantRequest) ProtoMessage() {}
  2413. func (*LeaseGrantRequest) Descriptor() ([]byte, []int) {
  2414. return fileDescriptor_77a6da22d6a3feb1, []int{25}
  2415. }
  2416. func (m *LeaseGrantRequest) XXX_Unmarshal(b []byte) error {
  2417. return m.Unmarshal(b)
  2418. }
  2419. func (m *LeaseGrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2420. if deterministic {
  2421. return xxx_messageInfo_LeaseGrantRequest.Marshal(b, m, deterministic)
  2422. } else {
  2423. b = b[:cap(b)]
  2424. n, err := m.MarshalToSizedBuffer(b)
  2425. if err != nil {
  2426. return nil, err
  2427. }
  2428. return b[:n], nil
  2429. }
  2430. }
  2431. func (m *LeaseGrantRequest) XXX_Merge(src proto.Message) {
  2432. xxx_messageInfo_LeaseGrantRequest.Merge(m, src)
  2433. }
  2434. func (m *LeaseGrantRequest) XXX_Size() int {
  2435. return m.Size()
  2436. }
  2437. func (m *LeaseGrantRequest) XXX_DiscardUnknown() {
  2438. xxx_messageInfo_LeaseGrantRequest.DiscardUnknown(m)
  2439. }
  2440. var xxx_messageInfo_LeaseGrantRequest proto.InternalMessageInfo
  2441. func (m *LeaseGrantRequest) GetTTL() int64 {
  2442. if m != nil {
  2443. return m.TTL
  2444. }
  2445. return 0
  2446. }
  2447. func (m *LeaseGrantRequest) GetID() int64 {
  2448. if m != nil {
  2449. return m.ID
  2450. }
  2451. return 0
  2452. }
  2453. type LeaseGrantResponse struct {
  2454. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  2455. // ID is the lease ID for the granted lease.
  2456. ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
  2457. // TTL is the server chosen lease time-to-live in seconds.
  2458. TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
  2459. Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
  2460. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2461. XXX_unrecognized []byte `json:"-"`
  2462. XXX_sizecache int32 `json:"-"`
  2463. }
  2464. func (m *LeaseGrantResponse) Reset() { *m = LeaseGrantResponse{} }
  2465. func (m *LeaseGrantResponse) String() string { return proto.CompactTextString(m) }
  2466. func (*LeaseGrantResponse) ProtoMessage() {}
  2467. func (*LeaseGrantResponse) Descriptor() ([]byte, []int) {
  2468. return fileDescriptor_77a6da22d6a3feb1, []int{26}
  2469. }
  2470. func (m *LeaseGrantResponse) XXX_Unmarshal(b []byte) error {
  2471. return m.Unmarshal(b)
  2472. }
  2473. func (m *LeaseGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2474. if deterministic {
  2475. return xxx_messageInfo_LeaseGrantResponse.Marshal(b, m, deterministic)
  2476. } else {
  2477. b = b[:cap(b)]
  2478. n, err := m.MarshalToSizedBuffer(b)
  2479. if err != nil {
  2480. return nil, err
  2481. }
  2482. return b[:n], nil
  2483. }
  2484. }
  2485. func (m *LeaseGrantResponse) XXX_Merge(src proto.Message) {
  2486. xxx_messageInfo_LeaseGrantResponse.Merge(m, src)
  2487. }
  2488. func (m *LeaseGrantResponse) XXX_Size() int {
  2489. return m.Size()
  2490. }
  2491. func (m *LeaseGrantResponse) XXX_DiscardUnknown() {
  2492. xxx_messageInfo_LeaseGrantResponse.DiscardUnknown(m)
  2493. }
  2494. var xxx_messageInfo_LeaseGrantResponse proto.InternalMessageInfo
  2495. func (m *LeaseGrantResponse) GetHeader() *ResponseHeader {
  2496. if m != nil {
  2497. return m.Header
  2498. }
  2499. return nil
  2500. }
  2501. func (m *LeaseGrantResponse) GetID() int64 {
  2502. if m != nil {
  2503. return m.ID
  2504. }
  2505. return 0
  2506. }
  2507. func (m *LeaseGrantResponse) GetTTL() int64 {
  2508. if m != nil {
  2509. return m.TTL
  2510. }
  2511. return 0
  2512. }
  2513. func (m *LeaseGrantResponse) GetError() string {
  2514. if m != nil {
  2515. return m.Error
  2516. }
  2517. return ""
  2518. }
  2519. type LeaseRevokeRequest struct {
  2520. // ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
  2521. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
  2522. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2523. XXX_unrecognized []byte `json:"-"`
  2524. XXX_sizecache int32 `json:"-"`
  2525. }
  2526. func (m *LeaseRevokeRequest) Reset() { *m = LeaseRevokeRequest{} }
  2527. func (m *LeaseRevokeRequest) String() string { return proto.CompactTextString(m) }
  2528. func (*LeaseRevokeRequest) ProtoMessage() {}
  2529. func (*LeaseRevokeRequest) Descriptor() ([]byte, []int) {
  2530. return fileDescriptor_77a6da22d6a3feb1, []int{27}
  2531. }
  2532. func (m *LeaseRevokeRequest) XXX_Unmarshal(b []byte) error {
  2533. return m.Unmarshal(b)
  2534. }
  2535. func (m *LeaseRevokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2536. if deterministic {
  2537. return xxx_messageInfo_LeaseRevokeRequest.Marshal(b, m, deterministic)
  2538. } else {
  2539. b = b[:cap(b)]
  2540. n, err := m.MarshalToSizedBuffer(b)
  2541. if err != nil {
  2542. return nil, err
  2543. }
  2544. return b[:n], nil
  2545. }
  2546. }
  2547. func (m *LeaseRevokeRequest) XXX_Merge(src proto.Message) {
  2548. xxx_messageInfo_LeaseRevokeRequest.Merge(m, src)
  2549. }
  2550. func (m *LeaseRevokeRequest) XXX_Size() int {
  2551. return m.Size()
  2552. }
  2553. func (m *LeaseRevokeRequest) XXX_DiscardUnknown() {
  2554. xxx_messageInfo_LeaseRevokeRequest.DiscardUnknown(m)
  2555. }
  2556. var xxx_messageInfo_LeaseRevokeRequest proto.InternalMessageInfo
  2557. func (m *LeaseRevokeRequest) GetID() int64 {
  2558. if m != nil {
  2559. return m.ID
  2560. }
  2561. return 0
  2562. }
  2563. type LeaseRevokeResponse struct {
  2564. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  2565. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2566. XXX_unrecognized []byte `json:"-"`
  2567. XXX_sizecache int32 `json:"-"`
  2568. }
  2569. func (m *LeaseRevokeResponse) Reset() { *m = LeaseRevokeResponse{} }
  2570. func (m *LeaseRevokeResponse) String() string { return proto.CompactTextString(m) }
  2571. func (*LeaseRevokeResponse) ProtoMessage() {}
  2572. func (*LeaseRevokeResponse) Descriptor() ([]byte, []int) {
  2573. return fileDescriptor_77a6da22d6a3feb1, []int{28}
  2574. }
  2575. func (m *LeaseRevokeResponse) XXX_Unmarshal(b []byte) error {
  2576. return m.Unmarshal(b)
  2577. }
  2578. func (m *LeaseRevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2579. if deterministic {
  2580. return xxx_messageInfo_LeaseRevokeResponse.Marshal(b, m, deterministic)
  2581. } else {
  2582. b = b[:cap(b)]
  2583. n, err := m.MarshalToSizedBuffer(b)
  2584. if err != nil {
  2585. return nil, err
  2586. }
  2587. return b[:n], nil
  2588. }
  2589. }
  2590. func (m *LeaseRevokeResponse) XXX_Merge(src proto.Message) {
  2591. xxx_messageInfo_LeaseRevokeResponse.Merge(m, src)
  2592. }
  2593. func (m *LeaseRevokeResponse) XXX_Size() int {
  2594. return m.Size()
  2595. }
  2596. func (m *LeaseRevokeResponse) XXX_DiscardUnknown() {
  2597. xxx_messageInfo_LeaseRevokeResponse.DiscardUnknown(m)
  2598. }
  2599. var xxx_messageInfo_LeaseRevokeResponse proto.InternalMessageInfo
  2600. func (m *LeaseRevokeResponse) GetHeader() *ResponseHeader {
  2601. if m != nil {
  2602. return m.Header
  2603. }
  2604. return nil
  2605. }
  2606. type LeaseKeepAliveRequest struct {
  2607. // ID is the lease ID for the lease to keep alive.
  2608. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
  2609. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2610. XXX_unrecognized []byte `json:"-"`
  2611. XXX_sizecache int32 `json:"-"`
  2612. }
  2613. func (m *LeaseKeepAliveRequest) Reset() { *m = LeaseKeepAliveRequest{} }
  2614. func (m *LeaseKeepAliveRequest) String() string { return proto.CompactTextString(m) }
  2615. func (*LeaseKeepAliveRequest) ProtoMessage() {}
  2616. func (*LeaseKeepAliveRequest) Descriptor() ([]byte, []int) {
  2617. return fileDescriptor_77a6da22d6a3feb1, []int{29}
  2618. }
  2619. func (m *LeaseKeepAliveRequest) XXX_Unmarshal(b []byte) error {
  2620. return m.Unmarshal(b)
  2621. }
  2622. func (m *LeaseKeepAliveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2623. if deterministic {
  2624. return xxx_messageInfo_LeaseKeepAliveRequest.Marshal(b, m, deterministic)
  2625. } else {
  2626. b = b[:cap(b)]
  2627. n, err := m.MarshalToSizedBuffer(b)
  2628. if err != nil {
  2629. return nil, err
  2630. }
  2631. return b[:n], nil
  2632. }
  2633. }
  2634. func (m *LeaseKeepAliveRequest) XXX_Merge(src proto.Message) {
  2635. xxx_messageInfo_LeaseKeepAliveRequest.Merge(m, src)
  2636. }
  2637. func (m *LeaseKeepAliveRequest) XXX_Size() int {
  2638. return m.Size()
  2639. }
  2640. func (m *LeaseKeepAliveRequest) XXX_DiscardUnknown() {
  2641. xxx_messageInfo_LeaseKeepAliveRequest.DiscardUnknown(m)
  2642. }
  2643. var xxx_messageInfo_LeaseKeepAliveRequest proto.InternalMessageInfo
  2644. func (m *LeaseKeepAliveRequest) GetID() int64 {
  2645. if m != nil {
  2646. return m.ID
  2647. }
  2648. return 0
  2649. }
  2650. type LeaseKeepAliveResponse struct {
  2651. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  2652. // ID is the lease ID from the keep alive request.
  2653. ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
  2654. // TTL is the new time-to-live for the lease.
  2655. TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
  2656. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2657. XXX_unrecognized []byte `json:"-"`
  2658. XXX_sizecache int32 `json:"-"`
  2659. }
  2660. func (m *LeaseKeepAliveResponse) Reset() { *m = LeaseKeepAliveResponse{} }
  2661. func (m *LeaseKeepAliveResponse) String() string { return proto.CompactTextString(m) }
  2662. func (*LeaseKeepAliveResponse) ProtoMessage() {}
  2663. func (*LeaseKeepAliveResponse) Descriptor() ([]byte, []int) {
  2664. return fileDescriptor_77a6da22d6a3feb1, []int{30}
  2665. }
  2666. func (m *LeaseKeepAliveResponse) XXX_Unmarshal(b []byte) error {
  2667. return m.Unmarshal(b)
  2668. }
  2669. func (m *LeaseKeepAliveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2670. if deterministic {
  2671. return xxx_messageInfo_LeaseKeepAliveResponse.Marshal(b, m, deterministic)
  2672. } else {
  2673. b = b[:cap(b)]
  2674. n, err := m.MarshalToSizedBuffer(b)
  2675. if err != nil {
  2676. return nil, err
  2677. }
  2678. return b[:n], nil
  2679. }
  2680. }
  2681. func (m *LeaseKeepAliveResponse) XXX_Merge(src proto.Message) {
  2682. xxx_messageInfo_LeaseKeepAliveResponse.Merge(m, src)
  2683. }
  2684. func (m *LeaseKeepAliveResponse) XXX_Size() int {
  2685. return m.Size()
  2686. }
  2687. func (m *LeaseKeepAliveResponse) XXX_DiscardUnknown() {
  2688. xxx_messageInfo_LeaseKeepAliveResponse.DiscardUnknown(m)
  2689. }
  2690. var xxx_messageInfo_LeaseKeepAliveResponse proto.InternalMessageInfo
  2691. func (m *LeaseKeepAliveResponse) GetHeader() *ResponseHeader {
  2692. if m != nil {
  2693. return m.Header
  2694. }
  2695. return nil
  2696. }
  2697. func (m *LeaseKeepAliveResponse) GetID() int64 {
  2698. if m != nil {
  2699. return m.ID
  2700. }
  2701. return 0
  2702. }
  2703. func (m *LeaseKeepAliveResponse) GetTTL() int64 {
  2704. if m != nil {
  2705. return m.TTL
  2706. }
  2707. return 0
  2708. }
  2709. type LeaseTimeToLiveRequest struct {
  2710. // ID is the lease ID for the lease.
  2711. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
  2712. // keys is true to query all the keys attached to this lease.
  2713. Keys bool `protobuf:"varint,2,opt,name=keys,proto3" json:"keys,omitempty"`
  2714. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2715. XXX_unrecognized []byte `json:"-"`
  2716. XXX_sizecache int32 `json:"-"`
  2717. }
  2718. func (m *LeaseTimeToLiveRequest) Reset() { *m = LeaseTimeToLiveRequest{} }
  2719. func (m *LeaseTimeToLiveRequest) String() string { return proto.CompactTextString(m) }
  2720. func (*LeaseTimeToLiveRequest) ProtoMessage() {}
  2721. func (*LeaseTimeToLiveRequest) Descriptor() ([]byte, []int) {
  2722. return fileDescriptor_77a6da22d6a3feb1, []int{31}
  2723. }
  2724. func (m *LeaseTimeToLiveRequest) XXX_Unmarshal(b []byte) error {
  2725. return m.Unmarshal(b)
  2726. }
  2727. func (m *LeaseTimeToLiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2728. if deterministic {
  2729. return xxx_messageInfo_LeaseTimeToLiveRequest.Marshal(b, m, deterministic)
  2730. } else {
  2731. b = b[:cap(b)]
  2732. n, err := m.MarshalToSizedBuffer(b)
  2733. if err != nil {
  2734. return nil, err
  2735. }
  2736. return b[:n], nil
  2737. }
  2738. }
  2739. func (m *LeaseTimeToLiveRequest) XXX_Merge(src proto.Message) {
  2740. xxx_messageInfo_LeaseTimeToLiveRequest.Merge(m, src)
  2741. }
  2742. func (m *LeaseTimeToLiveRequest) XXX_Size() int {
  2743. return m.Size()
  2744. }
  2745. func (m *LeaseTimeToLiveRequest) XXX_DiscardUnknown() {
  2746. xxx_messageInfo_LeaseTimeToLiveRequest.DiscardUnknown(m)
  2747. }
  2748. var xxx_messageInfo_LeaseTimeToLiveRequest proto.InternalMessageInfo
  2749. func (m *LeaseTimeToLiveRequest) GetID() int64 {
  2750. if m != nil {
  2751. return m.ID
  2752. }
  2753. return 0
  2754. }
  2755. func (m *LeaseTimeToLiveRequest) GetKeys() bool {
  2756. if m != nil {
  2757. return m.Keys
  2758. }
  2759. return false
  2760. }
  2761. type LeaseTimeToLiveResponse struct {
  2762. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  2763. // ID is the lease ID from the keep alive request.
  2764. ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
  2765. // TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
  2766. TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
  2767. // GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
  2768. GrantedTTL int64 `protobuf:"varint,4,opt,name=grantedTTL,proto3" json:"grantedTTL,omitempty"`
  2769. // Keys is the list of keys attached to this lease.
  2770. Keys [][]byte `protobuf:"bytes,5,rep,name=keys,proto3" json:"keys,omitempty"`
  2771. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2772. XXX_unrecognized []byte `json:"-"`
  2773. XXX_sizecache int32 `json:"-"`
  2774. }
  2775. func (m *LeaseTimeToLiveResponse) Reset() { *m = LeaseTimeToLiveResponse{} }
  2776. func (m *LeaseTimeToLiveResponse) String() string { return proto.CompactTextString(m) }
  2777. func (*LeaseTimeToLiveResponse) ProtoMessage() {}
  2778. func (*LeaseTimeToLiveResponse) Descriptor() ([]byte, []int) {
  2779. return fileDescriptor_77a6da22d6a3feb1, []int{32}
  2780. }
  2781. func (m *LeaseTimeToLiveResponse) XXX_Unmarshal(b []byte) error {
  2782. return m.Unmarshal(b)
  2783. }
  2784. func (m *LeaseTimeToLiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2785. if deterministic {
  2786. return xxx_messageInfo_LeaseTimeToLiveResponse.Marshal(b, m, deterministic)
  2787. } else {
  2788. b = b[:cap(b)]
  2789. n, err := m.MarshalToSizedBuffer(b)
  2790. if err != nil {
  2791. return nil, err
  2792. }
  2793. return b[:n], nil
  2794. }
  2795. }
  2796. func (m *LeaseTimeToLiveResponse) XXX_Merge(src proto.Message) {
  2797. xxx_messageInfo_LeaseTimeToLiveResponse.Merge(m, src)
  2798. }
  2799. func (m *LeaseTimeToLiveResponse) XXX_Size() int {
  2800. return m.Size()
  2801. }
  2802. func (m *LeaseTimeToLiveResponse) XXX_DiscardUnknown() {
  2803. xxx_messageInfo_LeaseTimeToLiveResponse.DiscardUnknown(m)
  2804. }
  2805. var xxx_messageInfo_LeaseTimeToLiveResponse proto.InternalMessageInfo
  2806. func (m *LeaseTimeToLiveResponse) GetHeader() *ResponseHeader {
  2807. if m != nil {
  2808. return m.Header
  2809. }
  2810. return nil
  2811. }
  2812. func (m *LeaseTimeToLiveResponse) GetID() int64 {
  2813. if m != nil {
  2814. return m.ID
  2815. }
  2816. return 0
  2817. }
  2818. func (m *LeaseTimeToLiveResponse) GetTTL() int64 {
  2819. if m != nil {
  2820. return m.TTL
  2821. }
  2822. return 0
  2823. }
  2824. func (m *LeaseTimeToLiveResponse) GetGrantedTTL() int64 {
  2825. if m != nil {
  2826. return m.GrantedTTL
  2827. }
  2828. return 0
  2829. }
  2830. func (m *LeaseTimeToLiveResponse) GetKeys() [][]byte {
  2831. if m != nil {
  2832. return m.Keys
  2833. }
  2834. return nil
  2835. }
  2836. type LeaseLeasesRequest struct {
  2837. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2838. XXX_unrecognized []byte `json:"-"`
  2839. XXX_sizecache int32 `json:"-"`
  2840. }
  2841. func (m *LeaseLeasesRequest) Reset() { *m = LeaseLeasesRequest{} }
  2842. func (m *LeaseLeasesRequest) String() string { return proto.CompactTextString(m) }
  2843. func (*LeaseLeasesRequest) ProtoMessage() {}
  2844. func (*LeaseLeasesRequest) Descriptor() ([]byte, []int) {
  2845. return fileDescriptor_77a6da22d6a3feb1, []int{33}
  2846. }
  2847. func (m *LeaseLeasesRequest) XXX_Unmarshal(b []byte) error {
  2848. return m.Unmarshal(b)
  2849. }
  2850. func (m *LeaseLeasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2851. if deterministic {
  2852. return xxx_messageInfo_LeaseLeasesRequest.Marshal(b, m, deterministic)
  2853. } else {
  2854. b = b[:cap(b)]
  2855. n, err := m.MarshalToSizedBuffer(b)
  2856. if err != nil {
  2857. return nil, err
  2858. }
  2859. return b[:n], nil
  2860. }
  2861. }
  2862. func (m *LeaseLeasesRequest) XXX_Merge(src proto.Message) {
  2863. xxx_messageInfo_LeaseLeasesRequest.Merge(m, src)
  2864. }
  2865. func (m *LeaseLeasesRequest) XXX_Size() int {
  2866. return m.Size()
  2867. }
  2868. func (m *LeaseLeasesRequest) XXX_DiscardUnknown() {
  2869. xxx_messageInfo_LeaseLeasesRequest.DiscardUnknown(m)
  2870. }
  2871. var xxx_messageInfo_LeaseLeasesRequest proto.InternalMessageInfo
  2872. type LeaseStatus struct {
  2873. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
  2874. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2875. XXX_unrecognized []byte `json:"-"`
  2876. XXX_sizecache int32 `json:"-"`
  2877. }
  2878. func (m *LeaseStatus) Reset() { *m = LeaseStatus{} }
  2879. func (m *LeaseStatus) String() string { return proto.CompactTextString(m) }
  2880. func (*LeaseStatus) ProtoMessage() {}
  2881. func (*LeaseStatus) Descriptor() ([]byte, []int) {
  2882. return fileDescriptor_77a6da22d6a3feb1, []int{34}
  2883. }
  2884. func (m *LeaseStatus) XXX_Unmarshal(b []byte) error {
  2885. return m.Unmarshal(b)
  2886. }
  2887. func (m *LeaseStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2888. if deterministic {
  2889. return xxx_messageInfo_LeaseStatus.Marshal(b, m, deterministic)
  2890. } else {
  2891. b = b[:cap(b)]
  2892. n, err := m.MarshalToSizedBuffer(b)
  2893. if err != nil {
  2894. return nil, err
  2895. }
  2896. return b[:n], nil
  2897. }
  2898. }
  2899. func (m *LeaseStatus) XXX_Merge(src proto.Message) {
  2900. xxx_messageInfo_LeaseStatus.Merge(m, src)
  2901. }
  2902. func (m *LeaseStatus) XXX_Size() int {
  2903. return m.Size()
  2904. }
  2905. func (m *LeaseStatus) XXX_DiscardUnknown() {
  2906. xxx_messageInfo_LeaseStatus.DiscardUnknown(m)
  2907. }
  2908. var xxx_messageInfo_LeaseStatus proto.InternalMessageInfo
  2909. func (m *LeaseStatus) GetID() int64 {
  2910. if m != nil {
  2911. return m.ID
  2912. }
  2913. return 0
  2914. }
  2915. type LeaseLeasesResponse struct {
  2916. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  2917. Leases []*LeaseStatus `protobuf:"bytes,2,rep,name=leases,proto3" json:"leases,omitempty"`
  2918. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2919. XXX_unrecognized []byte `json:"-"`
  2920. XXX_sizecache int32 `json:"-"`
  2921. }
  2922. func (m *LeaseLeasesResponse) Reset() { *m = LeaseLeasesResponse{} }
  2923. func (m *LeaseLeasesResponse) String() string { return proto.CompactTextString(m) }
  2924. func (*LeaseLeasesResponse) ProtoMessage() {}
  2925. func (*LeaseLeasesResponse) Descriptor() ([]byte, []int) {
  2926. return fileDescriptor_77a6da22d6a3feb1, []int{35}
  2927. }
  2928. func (m *LeaseLeasesResponse) XXX_Unmarshal(b []byte) error {
  2929. return m.Unmarshal(b)
  2930. }
  2931. func (m *LeaseLeasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2932. if deterministic {
  2933. return xxx_messageInfo_LeaseLeasesResponse.Marshal(b, m, deterministic)
  2934. } else {
  2935. b = b[:cap(b)]
  2936. n, err := m.MarshalToSizedBuffer(b)
  2937. if err != nil {
  2938. return nil, err
  2939. }
  2940. return b[:n], nil
  2941. }
  2942. }
  2943. func (m *LeaseLeasesResponse) XXX_Merge(src proto.Message) {
  2944. xxx_messageInfo_LeaseLeasesResponse.Merge(m, src)
  2945. }
  2946. func (m *LeaseLeasesResponse) XXX_Size() int {
  2947. return m.Size()
  2948. }
  2949. func (m *LeaseLeasesResponse) XXX_DiscardUnknown() {
  2950. xxx_messageInfo_LeaseLeasesResponse.DiscardUnknown(m)
  2951. }
  2952. var xxx_messageInfo_LeaseLeasesResponse proto.InternalMessageInfo
  2953. func (m *LeaseLeasesResponse) GetHeader() *ResponseHeader {
  2954. if m != nil {
  2955. return m.Header
  2956. }
  2957. return nil
  2958. }
  2959. func (m *LeaseLeasesResponse) GetLeases() []*LeaseStatus {
  2960. if m != nil {
  2961. return m.Leases
  2962. }
  2963. return nil
  2964. }
  2965. type Member struct {
  2966. // ID is the member ID for this member.
  2967. ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
  2968. // name is the human-readable name of the member. If the member is not started, the name will be an empty string.
  2969. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  2970. // peerURLs is the list of URLs the member exposes to the cluster for communication.
  2971. PeerURLs []string `protobuf:"bytes,3,rep,name=peerURLs,proto3" json:"peerURLs,omitempty"`
  2972. // clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
  2973. ClientURLs []string `protobuf:"bytes,4,rep,name=clientURLs,proto3" json:"clientURLs,omitempty"`
  2974. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2975. XXX_unrecognized []byte `json:"-"`
  2976. XXX_sizecache int32 `json:"-"`
  2977. }
  2978. func (m *Member) Reset() { *m = Member{} }
  2979. func (m *Member) String() string { return proto.CompactTextString(m) }
  2980. func (*Member) ProtoMessage() {}
  2981. func (*Member) Descriptor() ([]byte, []int) {
  2982. return fileDescriptor_77a6da22d6a3feb1, []int{36}
  2983. }
  2984. func (m *Member) XXX_Unmarshal(b []byte) error {
  2985. return m.Unmarshal(b)
  2986. }
  2987. func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2988. if deterministic {
  2989. return xxx_messageInfo_Member.Marshal(b, m, deterministic)
  2990. } else {
  2991. b = b[:cap(b)]
  2992. n, err := m.MarshalToSizedBuffer(b)
  2993. if err != nil {
  2994. return nil, err
  2995. }
  2996. return b[:n], nil
  2997. }
  2998. }
  2999. func (m *Member) XXX_Merge(src proto.Message) {
  3000. xxx_messageInfo_Member.Merge(m, src)
  3001. }
  3002. func (m *Member) XXX_Size() int {
  3003. return m.Size()
  3004. }
  3005. func (m *Member) XXX_DiscardUnknown() {
  3006. xxx_messageInfo_Member.DiscardUnknown(m)
  3007. }
  3008. var xxx_messageInfo_Member proto.InternalMessageInfo
  3009. func (m *Member) GetID() uint64 {
  3010. if m != nil {
  3011. return m.ID
  3012. }
  3013. return 0
  3014. }
  3015. func (m *Member) GetName() string {
  3016. if m != nil {
  3017. return m.Name
  3018. }
  3019. return ""
  3020. }
  3021. func (m *Member) GetPeerURLs() []string {
  3022. if m != nil {
  3023. return m.PeerURLs
  3024. }
  3025. return nil
  3026. }
  3027. func (m *Member) GetClientURLs() []string {
  3028. if m != nil {
  3029. return m.ClientURLs
  3030. }
  3031. return nil
  3032. }
  3033. type MemberAddRequest struct {
  3034. // peerURLs is the list of URLs the added member will use to communicate with the cluster.
  3035. PeerURLs []string `protobuf:"bytes,1,rep,name=peerURLs,proto3" json:"peerURLs,omitempty"`
  3036. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3037. XXX_unrecognized []byte `json:"-"`
  3038. XXX_sizecache int32 `json:"-"`
  3039. }
  3040. func (m *MemberAddRequest) Reset() { *m = MemberAddRequest{} }
  3041. func (m *MemberAddRequest) String() string { return proto.CompactTextString(m) }
  3042. func (*MemberAddRequest) ProtoMessage() {}
  3043. func (*MemberAddRequest) Descriptor() ([]byte, []int) {
  3044. return fileDescriptor_77a6da22d6a3feb1, []int{37}
  3045. }
  3046. func (m *MemberAddRequest) XXX_Unmarshal(b []byte) error {
  3047. return m.Unmarshal(b)
  3048. }
  3049. func (m *MemberAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3050. if deterministic {
  3051. return xxx_messageInfo_MemberAddRequest.Marshal(b, m, deterministic)
  3052. } else {
  3053. b = b[:cap(b)]
  3054. n, err := m.MarshalToSizedBuffer(b)
  3055. if err != nil {
  3056. return nil, err
  3057. }
  3058. return b[:n], nil
  3059. }
  3060. }
  3061. func (m *MemberAddRequest) XXX_Merge(src proto.Message) {
  3062. xxx_messageInfo_MemberAddRequest.Merge(m, src)
  3063. }
  3064. func (m *MemberAddRequest) XXX_Size() int {
  3065. return m.Size()
  3066. }
  3067. func (m *MemberAddRequest) XXX_DiscardUnknown() {
  3068. xxx_messageInfo_MemberAddRequest.DiscardUnknown(m)
  3069. }
  3070. var xxx_messageInfo_MemberAddRequest proto.InternalMessageInfo
  3071. func (m *MemberAddRequest) GetPeerURLs() []string {
  3072. if m != nil {
  3073. return m.PeerURLs
  3074. }
  3075. return nil
  3076. }
  3077. type MemberAddResponse struct {
  3078. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  3079. // member is the member information for the added member.
  3080. Member *Member `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"`
  3081. // members is a list of all members after adding the new member.
  3082. Members []*Member `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
  3083. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3084. XXX_unrecognized []byte `json:"-"`
  3085. XXX_sizecache int32 `json:"-"`
  3086. }
  3087. func (m *MemberAddResponse) Reset() { *m = MemberAddResponse{} }
  3088. func (m *MemberAddResponse) String() string { return proto.CompactTextString(m) }
  3089. func (*MemberAddResponse) ProtoMessage() {}
  3090. func (*MemberAddResponse) Descriptor() ([]byte, []int) {
  3091. return fileDescriptor_77a6da22d6a3feb1, []int{38}
  3092. }
  3093. func (m *MemberAddResponse) XXX_Unmarshal(b []byte) error {
  3094. return m.Unmarshal(b)
  3095. }
  3096. func (m *MemberAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3097. if deterministic {
  3098. return xxx_messageInfo_MemberAddResponse.Marshal(b, m, deterministic)
  3099. } else {
  3100. b = b[:cap(b)]
  3101. n, err := m.MarshalToSizedBuffer(b)
  3102. if err != nil {
  3103. return nil, err
  3104. }
  3105. return b[:n], nil
  3106. }
  3107. }
  3108. func (m *MemberAddResponse) XXX_Merge(src proto.Message) {
  3109. xxx_messageInfo_MemberAddResponse.Merge(m, src)
  3110. }
  3111. func (m *MemberAddResponse) XXX_Size() int {
  3112. return m.Size()
  3113. }
  3114. func (m *MemberAddResponse) XXX_DiscardUnknown() {
  3115. xxx_messageInfo_MemberAddResponse.DiscardUnknown(m)
  3116. }
  3117. var xxx_messageInfo_MemberAddResponse proto.InternalMessageInfo
  3118. func (m *MemberAddResponse) GetHeader() *ResponseHeader {
  3119. if m != nil {
  3120. return m.Header
  3121. }
  3122. return nil
  3123. }
  3124. func (m *MemberAddResponse) GetMember() *Member {
  3125. if m != nil {
  3126. return m.Member
  3127. }
  3128. return nil
  3129. }
  3130. func (m *MemberAddResponse) GetMembers() []*Member {
  3131. if m != nil {
  3132. return m.Members
  3133. }
  3134. return nil
  3135. }
  3136. type MemberRemoveRequest struct {
  3137. // ID is the member ID of the member to remove.
  3138. ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
  3139. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3140. XXX_unrecognized []byte `json:"-"`
  3141. XXX_sizecache int32 `json:"-"`
  3142. }
  3143. func (m *MemberRemoveRequest) Reset() { *m = MemberRemoveRequest{} }
  3144. func (m *MemberRemoveRequest) String() string { return proto.CompactTextString(m) }
  3145. func (*MemberRemoveRequest) ProtoMessage() {}
  3146. func (*MemberRemoveRequest) Descriptor() ([]byte, []int) {
  3147. return fileDescriptor_77a6da22d6a3feb1, []int{39}
  3148. }
  3149. func (m *MemberRemoveRequest) XXX_Unmarshal(b []byte) error {
  3150. return m.Unmarshal(b)
  3151. }
  3152. func (m *MemberRemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3153. if deterministic {
  3154. return xxx_messageInfo_MemberRemoveRequest.Marshal(b, m, deterministic)
  3155. } else {
  3156. b = b[:cap(b)]
  3157. n, err := m.MarshalToSizedBuffer(b)
  3158. if err != nil {
  3159. return nil, err
  3160. }
  3161. return b[:n], nil
  3162. }
  3163. }
  3164. func (m *MemberRemoveRequest) XXX_Merge(src proto.Message) {
  3165. xxx_messageInfo_MemberRemoveRequest.Merge(m, src)
  3166. }
  3167. func (m *MemberRemoveRequest) XXX_Size() int {
  3168. return m.Size()
  3169. }
  3170. func (m *MemberRemoveRequest) XXX_DiscardUnknown() {
  3171. xxx_messageInfo_MemberRemoveRequest.DiscardUnknown(m)
  3172. }
  3173. var xxx_messageInfo_MemberRemoveRequest proto.InternalMessageInfo
  3174. func (m *MemberRemoveRequest) GetID() uint64 {
  3175. if m != nil {
  3176. return m.ID
  3177. }
  3178. return 0
  3179. }
  3180. type MemberRemoveResponse struct {
  3181. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  3182. // members is a list of all members after removing the member.
  3183. Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
  3184. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3185. XXX_unrecognized []byte `json:"-"`
  3186. XXX_sizecache int32 `json:"-"`
  3187. }
  3188. func (m *MemberRemoveResponse) Reset() { *m = MemberRemoveResponse{} }
  3189. func (m *MemberRemoveResponse) String() string { return proto.CompactTextString(m) }
  3190. func (*MemberRemoveResponse) ProtoMessage() {}
  3191. func (*MemberRemoveResponse) Descriptor() ([]byte, []int) {
  3192. return fileDescriptor_77a6da22d6a3feb1, []int{40}
  3193. }
  3194. func (m *MemberRemoveResponse) XXX_Unmarshal(b []byte) error {
  3195. return m.Unmarshal(b)
  3196. }
  3197. func (m *MemberRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3198. if deterministic {
  3199. return xxx_messageInfo_MemberRemoveResponse.Marshal(b, m, deterministic)
  3200. } else {
  3201. b = b[:cap(b)]
  3202. n, err := m.MarshalToSizedBuffer(b)
  3203. if err != nil {
  3204. return nil, err
  3205. }
  3206. return b[:n], nil
  3207. }
  3208. }
  3209. func (m *MemberRemoveResponse) XXX_Merge(src proto.Message) {
  3210. xxx_messageInfo_MemberRemoveResponse.Merge(m, src)
  3211. }
  3212. func (m *MemberRemoveResponse) XXX_Size() int {
  3213. return m.Size()
  3214. }
  3215. func (m *MemberRemoveResponse) XXX_DiscardUnknown() {
  3216. xxx_messageInfo_MemberRemoveResponse.DiscardUnknown(m)
  3217. }
  3218. var xxx_messageInfo_MemberRemoveResponse proto.InternalMessageInfo
  3219. func (m *MemberRemoveResponse) GetHeader() *ResponseHeader {
  3220. if m != nil {
  3221. return m.Header
  3222. }
  3223. return nil
  3224. }
  3225. func (m *MemberRemoveResponse) GetMembers() []*Member {
  3226. if m != nil {
  3227. return m.Members
  3228. }
  3229. return nil
  3230. }
  3231. type MemberUpdateRequest struct {
  3232. // ID is the member ID of the member to update.
  3233. ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
  3234. // peerURLs is the new list of URLs the member will use to communicate with the cluster.
  3235. PeerURLs []string `protobuf:"bytes,2,rep,name=peerURLs,proto3" json:"peerURLs,omitempty"`
  3236. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3237. XXX_unrecognized []byte `json:"-"`
  3238. XXX_sizecache int32 `json:"-"`
  3239. }
  3240. func (m *MemberUpdateRequest) Reset() { *m = MemberUpdateRequest{} }
  3241. func (m *MemberUpdateRequest) String() string { return proto.CompactTextString(m) }
  3242. func (*MemberUpdateRequest) ProtoMessage() {}
  3243. func (*MemberUpdateRequest) Descriptor() ([]byte, []int) {
  3244. return fileDescriptor_77a6da22d6a3feb1, []int{41}
  3245. }
  3246. func (m *MemberUpdateRequest) XXX_Unmarshal(b []byte) error {
  3247. return m.Unmarshal(b)
  3248. }
  3249. func (m *MemberUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3250. if deterministic {
  3251. return xxx_messageInfo_MemberUpdateRequest.Marshal(b, m, deterministic)
  3252. } else {
  3253. b = b[:cap(b)]
  3254. n, err := m.MarshalToSizedBuffer(b)
  3255. if err != nil {
  3256. return nil, err
  3257. }
  3258. return b[:n], nil
  3259. }
  3260. }
  3261. func (m *MemberUpdateRequest) XXX_Merge(src proto.Message) {
  3262. xxx_messageInfo_MemberUpdateRequest.Merge(m, src)
  3263. }
  3264. func (m *MemberUpdateRequest) XXX_Size() int {
  3265. return m.Size()
  3266. }
  3267. func (m *MemberUpdateRequest) XXX_DiscardUnknown() {
  3268. xxx_messageInfo_MemberUpdateRequest.DiscardUnknown(m)
  3269. }
  3270. var xxx_messageInfo_MemberUpdateRequest proto.InternalMessageInfo
  3271. func (m *MemberUpdateRequest) GetID() uint64 {
  3272. if m != nil {
  3273. return m.ID
  3274. }
  3275. return 0
  3276. }
  3277. func (m *MemberUpdateRequest) GetPeerURLs() []string {
  3278. if m != nil {
  3279. return m.PeerURLs
  3280. }
  3281. return nil
  3282. }
  3283. type MemberUpdateResponse struct {
  3284. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  3285. // members is a list of all members after updating the member.
  3286. Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
  3287. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3288. XXX_unrecognized []byte `json:"-"`
  3289. XXX_sizecache int32 `json:"-"`
  3290. }
  3291. func (m *MemberUpdateResponse) Reset() { *m = MemberUpdateResponse{} }
  3292. func (m *MemberUpdateResponse) String() string { return proto.CompactTextString(m) }
  3293. func (*MemberUpdateResponse) ProtoMessage() {}
  3294. func (*MemberUpdateResponse) Descriptor() ([]byte, []int) {
  3295. return fileDescriptor_77a6da22d6a3feb1, []int{42}
  3296. }
  3297. func (m *MemberUpdateResponse) XXX_Unmarshal(b []byte) error {
  3298. return m.Unmarshal(b)
  3299. }
  3300. func (m *MemberUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3301. if deterministic {
  3302. return xxx_messageInfo_MemberUpdateResponse.Marshal(b, m, deterministic)
  3303. } else {
  3304. b = b[:cap(b)]
  3305. n, err := m.MarshalToSizedBuffer(b)
  3306. if err != nil {
  3307. return nil, err
  3308. }
  3309. return b[:n], nil
  3310. }
  3311. }
  3312. func (m *MemberUpdateResponse) XXX_Merge(src proto.Message) {
  3313. xxx_messageInfo_MemberUpdateResponse.Merge(m, src)
  3314. }
  3315. func (m *MemberUpdateResponse) XXX_Size() int {
  3316. return m.Size()
  3317. }
  3318. func (m *MemberUpdateResponse) XXX_DiscardUnknown() {
  3319. xxx_messageInfo_MemberUpdateResponse.DiscardUnknown(m)
  3320. }
  3321. var xxx_messageInfo_MemberUpdateResponse proto.InternalMessageInfo
  3322. func (m *MemberUpdateResponse) GetHeader() *ResponseHeader {
  3323. if m != nil {
  3324. return m.Header
  3325. }
  3326. return nil
  3327. }
  3328. func (m *MemberUpdateResponse) GetMembers() []*Member {
  3329. if m != nil {
  3330. return m.Members
  3331. }
  3332. return nil
  3333. }
  3334. type MemberListRequest struct {
  3335. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3336. XXX_unrecognized []byte `json:"-"`
  3337. XXX_sizecache int32 `json:"-"`
  3338. }
  3339. func (m *MemberListRequest) Reset() { *m = MemberListRequest{} }
  3340. func (m *MemberListRequest) String() string { return proto.CompactTextString(m) }
  3341. func (*MemberListRequest) ProtoMessage() {}
  3342. func (*MemberListRequest) Descriptor() ([]byte, []int) {
  3343. return fileDescriptor_77a6da22d6a3feb1, []int{43}
  3344. }
  3345. func (m *MemberListRequest) XXX_Unmarshal(b []byte) error {
  3346. return m.Unmarshal(b)
  3347. }
  3348. func (m *MemberListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3349. if deterministic {
  3350. return xxx_messageInfo_MemberListRequest.Marshal(b, m, deterministic)
  3351. } else {
  3352. b = b[:cap(b)]
  3353. n, err := m.MarshalToSizedBuffer(b)
  3354. if err != nil {
  3355. return nil, err
  3356. }
  3357. return b[:n], nil
  3358. }
  3359. }
  3360. func (m *MemberListRequest) XXX_Merge(src proto.Message) {
  3361. xxx_messageInfo_MemberListRequest.Merge(m, src)
  3362. }
  3363. func (m *MemberListRequest) XXX_Size() int {
  3364. return m.Size()
  3365. }
  3366. func (m *MemberListRequest) XXX_DiscardUnknown() {
  3367. xxx_messageInfo_MemberListRequest.DiscardUnknown(m)
  3368. }
  3369. var xxx_messageInfo_MemberListRequest proto.InternalMessageInfo
  3370. type MemberListResponse struct {
  3371. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  3372. // members is a list of all members associated with the cluster.
  3373. Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
  3374. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3375. XXX_unrecognized []byte `json:"-"`
  3376. XXX_sizecache int32 `json:"-"`
  3377. }
  3378. func (m *MemberListResponse) Reset() { *m = MemberListResponse{} }
  3379. func (m *MemberListResponse) String() string { return proto.CompactTextString(m) }
  3380. func (*MemberListResponse) ProtoMessage() {}
  3381. func (*MemberListResponse) Descriptor() ([]byte, []int) {
  3382. return fileDescriptor_77a6da22d6a3feb1, []int{44}
  3383. }
  3384. func (m *MemberListResponse) XXX_Unmarshal(b []byte) error {
  3385. return m.Unmarshal(b)
  3386. }
  3387. func (m *MemberListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3388. if deterministic {
  3389. return xxx_messageInfo_MemberListResponse.Marshal(b, m, deterministic)
  3390. } else {
  3391. b = b[:cap(b)]
  3392. n, err := m.MarshalToSizedBuffer(b)
  3393. if err != nil {
  3394. return nil, err
  3395. }
  3396. return b[:n], nil
  3397. }
  3398. }
  3399. func (m *MemberListResponse) XXX_Merge(src proto.Message) {
  3400. xxx_messageInfo_MemberListResponse.Merge(m, src)
  3401. }
  3402. func (m *MemberListResponse) XXX_Size() int {
  3403. return m.Size()
  3404. }
  3405. func (m *MemberListResponse) XXX_DiscardUnknown() {
  3406. xxx_messageInfo_MemberListResponse.DiscardUnknown(m)
  3407. }
  3408. var xxx_messageInfo_MemberListResponse proto.InternalMessageInfo
  3409. func (m *MemberListResponse) GetHeader() *ResponseHeader {
  3410. if m != nil {
  3411. return m.Header
  3412. }
  3413. return nil
  3414. }
  3415. func (m *MemberListResponse) GetMembers() []*Member {
  3416. if m != nil {
  3417. return m.Members
  3418. }
  3419. return nil
  3420. }
  3421. type DefragmentRequest struct {
  3422. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3423. XXX_unrecognized []byte `json:"-"`
  3424. XXX_sizecache int32 `json:"-"`
  3425. }
  3426. func (m *DefragmentRequest) Reset() { *m = DefragmentRequest{} }
  3427. func (m *DefragmentRequest) String() string { return proto.CompactTextString(m) }
  3428. func (*DefragmentRequest) ProtoMessage() {}
  3429. func (*DefragmentRequest) Descriptor() ([]byte, []int) {
  3430. return fileDescriptor_77a6da22d6a3feb1, []int{45}
  3431. }
  3432. func (m *DefragmentRequest) XXX_Unmarshal(b []byte) error {
  3433. return m.Unmarshal(b)
  3434. }
  3435. func (m *DefragmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3436. if deterministic {
  3437. return xxx_messageInfo_DefragmentRequest.Marshal(b, m, deterministic)
  3438. } else {
  3439. b = b[:cap(b)]
  3440. n, err := m.MarshalToSizedBuffer(b)
  3441. if err != nil {
  3442. return nil, err
  3443. }
  3444. return b[:n], nil
  3445. }
  3446. }
  3447. func (m *DefragmentRequest) XXX_Merge(src proto.Message) {
  3448. xxx_messageInfo_DefragmentRequest.Merge(m, src)
  3449. }
  3450. func (m *DefragmentRequest) XXX_Size() int {
  3451. return m.Size()
  3452. }
  3453. func (m *DefragmentRequest) XXX_DiscardUnknown() {
  3454. xxx_messageInfo_DefragmentRequest.DiscardUnknown(m)
  3455. }
  3456. var xxx_messageInfo_DefragmentRequest proto.InternalMessageInfo
  3457. type DefragmentResponse struct {
  3458. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  3459. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3460. XXX_unrecognized []byte `json:"-"`
  3461. XXX_sizecache int32 `json:"-"`
  3462. }
  3463. func (m *DefragmentResponse) Reset() { *m = DefragmentResponse{} }
  3464. func (m *DefragmentResponse) String() string { return proto.CompactTextString(m) }
  3465. func (*DefragmentResponse) ProtoMessage() {}
  3466. func (*DefragmentResponse) Descriptor() ([]byte, []int) {
  3467. return fileDescriptor_77a6da22d6a3feb1, []int{46}
  3468. }
  3469. func (m *DefragmentResponse) XXX_Unmarshal(b []byte) error {
  3470. return m.Unmarshal(b)
  3471. }
  3472. func (m *DefragmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3473. if deterministic {
  3474. return xxx_messageInfo_DefragmentResponse.Marshal(b, m, deterministic)
  3475. } else {
  3476. b = b[:cap(b)]
  3477. n, err := m.MarshalToSizedBuffer(b)
  3478. if err != nil {
  3479. return nil, err
  3480. }
  3481. return b[:n], nil
  3482. }
  3483. }
  3484. func (m *DefragmentResponse) XXX_Merge(src proto.Message) {
  3485. xxx_messageInfo_DefragmentResponse.Merge(m, src)
  3486. }
  3487. func (m *DefragmentResponse) XXX_Size() int {
  3488. return m.Size()
  3489. }
  3490. func (m *DefragmentResponse) XXX_DiscardUnknown() {
  3491. xxx_messageInfo_DefragmentResponse.DiscardUnknown(m)
  3492. }
  3493. var xxx_messageInfo_DefragmentResponse proto.InternalMessageInfo
  3494. func (m *DefragmentResponse) GetHeader() *ResponseHeader {
  3495. if m != nil {
  3496. return m.Header
  3497. }
  3498. return nil
  3499. }
  3500. type MoveLeaderRequest struct {
  3501. // targetID is the node ID for the new leader.
  3502. TargetID uint64 `protobuf:"varint,1,opt,name=targetID,proto3" json:"targetID,omitempty"`
  3503. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3504. XXX_unrecognized []byte `json:"-"`
  3505. XXX_sizecache int32 `json:"-"`
  3506. }
  3507. func (m *MoveLeaderRequest) Reset() { *m = MoveLeaderRequest{} }
  3508. func (m *MoveLeaderRequest) String() string { return proto.CompactTextString(m) }
  3509. func (*MoveLeaderRequest) ProtoMessage() {}
  3510. func (*MoveLeaderRequest) Descriptor() ([]byte, []int) {
  3511. return fileDescriptor_77a6da22d6a3feb1, []int{47}
  3512. }
  3513. func (m *MoveLeaderRequest) XXX_Unmarshal(b []byte) error {
  3514. return m.Unmarshal(b)
  3515. }
  3516. func (m *MoveLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3517. if deterministic {
  3518. return xxx_messageInfo_MoveLeaderRequest.Marshal(b, m, deterministic)
  3519. } else {
  3520. b = b[:cap(b)]
  3521. n, err := m.MarshalToSizedBuffer(b)
  3522. if err != nil {
  3523. return nil, err
  3524. }
  3525. return b[:n], nil
  3526. }
  3527. }
  3528. func (m *MoveLeaderRequest) XXX_Merge(src proto.Message) {
  3529. xxx_messageInfo_MoveLeaderRequest.Merge(m, src)
  3530. }
  3531. func (m *MoveLeaderRequest) XXX_Size() int {
  3532. return m.Size()
  3533. }
  3534. func (m *MoveLeaderRequest) XXX_DiscardUnknown() {
  3535. xxx_messageInfo_MoveLeaderRequest.DiscardUnknown(m)
  3536. }
  3537. var xxx_messageInfo_MoveLeaderRequest proto.InternalMessageInfo
  3538. func (m *MoveLeaderRequest) GetTargetID() uint64 {
  3539. if m != nil {
  3540. return m.TargetID
  3541. }
  3542. return 0
  3543. }
  3544. type MoveLeaderResponse struct {
  3545. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  3546. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3547. XXX_unrecognized []byte `json:"-"`
  3548. XXX_sizecache int32 `json:"-"`
  3549. }
  3550. func (m *MoveLeaderResponse) Reset() { *m = MoveLeaderResponse{} }
  3551. func (m *MoveLeaderResponse) String() string { return proto.CompactTextString(m) }
  3552. func (*MoveLeaderResponse) ProtoMessage() {}
  3553. func (*MoveLeaderResponse) Descriptor() ([]byte, []int) {
  3554. return fileDescriptor_77a6da22d6a3feb1, []int{48}
  3555. }
  3556. func (m *MoveLeaderResponse) XXX_Unmarshal(b []byte) error {
  3557. return m.Unmarshal(b)
  3558. }
  3559. func (m *MoveLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3560. if deterministic {
  3561. return xxx_messageInfo_MoveLeaderResponse.Marshal(b, m, deterministic)
  3562. } else {
  3563. b = b[:cap(b)]
  3564. n, err := m.MarshalToSizedBuffer(b)
  3565. if err != nil {
  3566. return nil, err
  3567. }
  3568. return b[:n], nil
  3569. }
  3570. }
  3571. func (m *MoveLeaderResponse) XXX_Merge(src proto.Message) {
  3572. xxx_messageInfo_MoveLeaderResponse.Merge(m, src)
  3573. }
  3574. func (m *MoveLeaderResponse) XXX_Size() int {
  3575. return m.Size()
  3576. }
  3577. func (m *MoveLeaderResponse) XXX_DiscardUnknown() {
  3578. xxx_messageInfo_MoveLeaderResponse.DiscardUnknown(m)
  3579. }
  3580. var xxx_messageInfo_MoveLeaderResponse proto.InternalMessageInfo
  3581. func (m *MoveLeaderResponse) GetHeader() *ResponseHeader {
  3582. if m != nil {
  3583. return m.Header
  3584. }
  3585. return nil
  3586. }
  3587. type AlarmRequest struct {
  3588. // action is the kind of alarm request to issue. The action
  3589. // may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
  3590. // raised alarm.
  3591. Action AlarmRequest_AlarmAction `protobuf:"varint,1,opt,name=action,proto3,enum=etcdserverpb.AlarmRequest_AlarmAction" json:"action,omitempty"`
  3592. // memberID is the ID of the member associated with the alarm. If memberID is 0, the
  3593. // alarm request covers all members.
  3594. MemberID uint64 `protobuf:"varint,2,opt,name=memberID,proto3" json:"memberID,omitempty"`
  3595. // alarm is the type of alarm to consider for this request.
  3596. Alarm AlarmType `protobuf:"varint,3,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"`
  3597. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3598. XXX_unrecognized []byte `json:"-"`
  3599. XXX_sizecache int32 `json:"-"`
  3600. }
  3601. func (m *AlarmRequest) Reset() { *m = AlarmRequest{} }
  3602. func (m *AlarmRequest) String() string { return proto.CompactTextString(m) }
  3603. func (*AlarmRequest) ProtoMessage() {}
  3604. func (*AlarmRequest) Descriptor() ([]byte, []int) {
  3605. return fileDescriptor_77a6da22d6a3feb1, []int{49}
  3606. }
  3607. func (m *AlarmRequest) XXX_Unmarshal(b []byte) error {
  3608. return m.Unmarshal(b)
  3609. }
  3610. func (m *AlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3611. if deterministic {
  3612. return xxx_messageInfo_AlarmRequest.Marshal(b, m, deterministic)
  3613. } else {
  3614. b = b[:cap(b)]
  3615. n, err := m.MarshalToSizedBuffer(b)
  3616. if err != nil {
  3617. return nil, err
  3618. }
  3619. return b[:n], nil
  3620. }
  3621. }
  3622. func (m *AlarmRequest) XXX_Merge(src proto.Message) {
  3623. xxx_messageInfo_AlarmRequest.Merge(m, src)
  3624. }
  3625. func (m *AlarmRequest) XXX_Size() int {
  3626. return m.Size()
  3627. }
  3628. func (m *AlarmRequest) XXX_DiscardUnknown() {
  3629. xxx_messageInfo_AlarmRequest.DiscardUnknown(m)
  3630. }
  3631. var xxx_messageInfo_AlarmRequest proto.InternalMessageInfo
  3632. func (m *AlarmRequest) GetAction() AlarmRequest_AlarmAction {
  3633. if m != nil {
  3634. return m.Action
  3635. }
  3636. return AlarmRequest_GET
  3637. }
  3638. func (m *AlarmRequest) GetMemberID() uint64 {
  3639. if m != nil {
  3640. return m.MemberID
  3641. }
  3642. return 0
  3643. }
  3644. func (m *AlarmRequest) GetAlarm() AlarmType {
  3645. if m != nil {
  3646. return m.Alarm
  3647. }
  3648. return AlarmType_NONE
  3649. }
  3650. type AlarmMember struct {
  3651. // memberID is the ID of the member associated with the raised alarm.
  3652. MemberID uint64 `protobuf:"varint,1,opt,name=memberID,proto3" json:"memberID,omitempty"`
  3653. // alarm is the type of alarm which has been raised.
  3654. Alarm AlarmType `protobuf:"varint,2,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"`
  3655. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3656. XXX_unrecognized []byte `json:"-"`
  3657. XXX_sizecache int32 `json:"-"`
  3658. }
  3659. func (m *AlarmMember) Reset() { *m = AlarmMember{} }
  3660. func (m *AlarmMember) String() string { return proto.CompactTextString(m) }
  3661. func (*AlarmMember) ProtoMessage() {}
  3662. func (*AlarmMember) Descriptor() ([]byte, []int) {
  3663. return fileDescriptor_77a6da22d6a3feb1, []int{50}
  3664. }
  3665. func (m *AlarmMember) XXX_Unmarshal(b []byte) error {
  3666. return m.Unmarshal(b)
  3667. }
  3668. func (m *AlarmMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3669. if deterministic {
  3670. return xxx_messageInfo_AlarmMember.Marshal(b, m, deterministic)
  3671. } else {
  3672. b = b[:cap(b)]
  3673. n, err := m.MarshalToSizedBuffer(b)
  3674. if err != nil {
  3675. return nil, err
  3676. }
  3677. return b[:n], nil
  3678. }
  3679. }
  3680. func (m *AlarmMember) XXX_Merge(src proto.Message) {
  3681. xxx_messageInfo_AlarmMember.Merge(m, src)
  3682. }
  3683. func (m *AlarmMember) XXX_Size() int {
  3684. return m.Size()
  3685. }
  3686. func (m *AlarmMember) XXX_DiscardUnknown() {
  3687. xxx_messageInfo_AlarmMember.DiscardUnknown(m)
  3688. }
  3689. var xxx_messageInfo_AlarmMember proto.InternalMessageInfo
  3690. func (m *AlarmMember) GetMemberID() uint64 {
  3691. if m != nil {
  3692. return m.MemberID
  3693. }
  3694. return 0
  3695. }
  3696. func (m *AlarmMember) GetAlarm() AlarmType {
  3697. if m != nil {
  3698. return m.Alarm
  3699. }
  3700. return AlarmType_NONE
  3701. }
  3702. type AlarmResponse struct {
  3703. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  3704. // alarms is a list of alarms associated with the alarm request.
  3705. Alarms []*AlarmMember `protobuf:"bytes,2,rep,name=alarms,proto3" json:"alarms,omitempty"`
  3706. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3707. XXX_unrecognized []byte `json:"-"`
  3708. XXX_sizecache int32 `json:"-"`
  3709. }
  3710. func (m *AlarmResponse) Reset() { *m = AlarmResponse{} }
  3711. func (m *AlarmResponse) String() string { return proto.CompactTextString(m) }
  3712. func (*AlarmResponse) ProtoMessage() {}
  3713. func (*AlarmResponse) Descriptor() ([]byte, []int) {
  3714. return fileDescriptor_77a6da22d6a3feb1, []int{51}
  3715. }
  3716. func (m *AlarmResponse) XXX_Unmarshal(b []byte) error {
  3717. return m.Unmarshal(b)
  3718. }
  3719. func (m *AlarmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3720. if deterministic {
  3721. return xxx_messageInfo_AlarmResponse.Marshal(b, m, deterministic)
  3722. } else {
  3723. b = b[:cap(b)]
  3724. n, err := m.MarshalToSizedBuffer(b)
  3725. if err != nil {
  3726. return nil, err
  3727. }
  3728. return b[:n], nil
  3729. }
  3730. }
  3731. func (m *AlarmResponse) XXX_Merge(src proto.Message) {
  3732. xxx_messageInfo_AlarmResponse.Merge(m, src)
  3733. }
  3734. func (m *AlarmResponse) XXX_Size() int {
  3735. return m.Size()
  3736. }
  3737. func (m *AlarmResponse) XXX_DiscardUnknown() {
  3738. xxx_messageInfo_AlarmResponse.DiscardUnknown(m)
  3739. }
  3740. var xxx_messageInfo_AlarmResponse proto.InternalMessageInfo
  3741. func (m *AlarmResponse) GetHeader() *ResponseHeader {
  3742. if m != nil {
  3743. return m.Header
  3744. }
  3745. return nil
  3746. }
  3747. func (m *AlarmResponse) GetAlarms() []*AlarmMember {
  3748. if m != nil {
  3749. return m.Alarms
  3750. }
  3751. return nil
  3752. }
  3753. type StatusRequest struct {
  3754. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3755. XXX_unrecognized []byte `json:"-"`
  3756. XXX_sizecache int32 `json:"-"`
  3757. }
  3758. func (m *StatusRequest) Reset() { *m = StatusRequest{} }
  3759. func (m *StatusRequest) String() string { return proto.CompactTextString(m) }
  3760. func (*StatusRequest) ProtoMessage() {}
  3761. func (*StatusRequest) Descriptor() ([]byte, []int) {
  3762. return fileDescriptor_77a6da22d6a3feb1, []int{52}
  3763. }
  3764. func (m *StatusRequest) XXX_Unmarshal(b []byte) error {
  3765. return m.Unmarshal(b)
  3766. }
  3767. func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3768. if deterministic {
  3769. return xxx_messageInfo_StatusRequest.Marshal(b, m, deterministic)
  3770. } else {
  3771. b = b[:cap(b)]
  3772. n, err := m.MarshalToSizedBuffer(b)
  3773. if err != nil {
  3774. return nil, err
  3775. }
  3776. return b[:n], nil
  3777. }
  3778. }
  3779. func (m *StatusRequest) XXX_Merge(src proto.Message) {
  3780. xxx_messageInfo_StatusRequest.Merge(m, src)
  3781. }
  3782. func (m *StatusRequest) XXX_Size() int {
  3783. return m.Size()
  3784. }
  3785. func (m *StatusRequest) XXX_DiscardUnknown() {
  3786. xxx_messageInfo_StatusRequest.DiscardUnknown(m)
  3787. }
  3788. var xxx_messageInfo_StatusRequest proto.InternalMessageInfo
  3789. type StatusResponse struct {
  3790. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  3791. // version is the cluster protocol version used by the responding member.
  3792. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
  3793. // dbSize is the size of the backend database, in bytes, of the responding member.
  3794. DbSize int64 `protobuf:"varint,3,opt,name=dbSize,proto3" json:"dbSize,omitempty"`
  3795. // leader is the member ID which the responding member believes is the current leader.
  3796. Leader uint64 `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"`
  3797. // raftIndex is the current raft index of the responding member.
  3798. RaftIndex uint64 `protobuf:"varint,5,opt,name=raftIndex,proto3" json:"raftIndex,omitempty"`
  3799. // raftTerm is the current raft term of the responding member.
  3800. RaftTerm uint64 `protobuf:"varint,6,opt,name=raftTerm,proto3" json:"raftTerm,omitempty"`
  3801. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3802. XXX_unrecognized []byte `json:"-"`
  3803. XXX_sizecache int32 `json:"-"`
  3804. }
  3805. func (m *StatusResponse) Reset() { *m = StatusResponse{} }
  3806. func (m *StatusResponse) String() string { return proto.CompactTextString(m) }
  3807. func (*StatusResponse) ProtoMessage() {}
  3808. func (*StatusResponse) Descriptor() ([]byte, []int) {
  3809. return fileDescriptor_77a6da22d6a3feb1, []int{53}
  3810. }
  3811. func (m *StatusResponse) XXX_Unmarshal(b []byte) error {
  3812. return m.Unmarshal(b)
  3813. }
  3814. func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3815. if deterministic {
  3816. return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic)
  3817. } else {
  3818. b = b[:cap(b)]
  3819. n, err := m.MarshalToSizedBuffer(b)
  3820. if err != nil {
  3821. return nil, err
  3822. }
  3823. return b[:n], nil
  3824. }
  3825. }
  3826. func (m *StatusResponse) XXX_Merge(src proto.Message) {
  3827. xxx_messageInfo_StatusResponse.Merge(m, src)
  3828. }
  3829. func (m *StatusResponse) XXX_Size() int {
  3830. return m.Size()
  3831. }
  3832. func (m *StatusResponse) XXX_DiscardUnknown() {
  3833. xxx_messageInfo_StatusResponse.DiscardUnknown(m)
  3834. }
  3835. var xxx_messageInfo_StatusResponse proto.InternalMessageInfo
  3836. func (m *StatusResponse) GetHeader() *ResponseHeader {
  3837. if m != nil {
  3838. return m.Header
  3839. }
  3840. return nil
  3841. }
  3842. func (m *StatusResponse) GetVersion() string {
  3843. if m != nil {
  3844. return m.Version
  3845. }
  3846. return ""
  3847. }
  3848. func (m *StatusResponse) GetDbSize() int64 {
  3849. if m != nil {
  3850. return m.DbSize
  3851. }
  3852. return 0
  3853. }
  3854. func (m *StatusResponse) GetLeader() uint64 {
  3855. if m != nil {
  3856. return m.Leader
  3857. }
  3858. return 0
  3859. }
  3860. func (m *StatusResponse) GetRaftIndex() uint64 {
  3861. if m != nil {
  3862. return m.RaftIndex
  3863. }
  3864. return 0
  3865. }
  3866. func (m *StatusResponse) GetRaftTerm() uint64 {
  3867. if m != nil {
  3868. return m.RaftTerm
  3869. }
  3870. return 0
  3871. }
  3872. type AuthEnableRequest struct {
  3873. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3874. XXX_unrecognized []byte `json:"-"`
  3875. XXX_sizecache int32 `json:"-"`
  3876. }
  3877. func (m *AuthEnableRequest) Reset() { *m = AuthEnableRequest{} }
  3878. func (m *AuthEnableRequest) String() string { return proto.CompactTextString(m) }
  3879. func (*AuthEnableRequest) ProtoMessage() {}
  3880. func (*AuthEnableRequest) Descriptor() ([]byte, []int) {
  3881. return fileDescriptor_77a6da22d6a3feb1, []int{54}
  3882. }
  3883. func (m *AuthEnableRequest) XXX_Unmarshal(b []byte) error {
  3884. return m.Unmarshal(b)
  3885. }
  3886. func (m *AuthEnableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3887. if deterministic {
  3888. return xxx_messageInfo_AuthEnableRequest.Marshal(b, m, deterministic)
  3889. } else {
  3890. b = b[:cap(b)]
  3891. n, err := m.MarshalToSizedBuffer(b)
  3892. if err != nil {
  3893. return nil, err
  3894. }
  3895. return b[:n], nil
  3896. }
  3897. }
  3898. func (m *AuthEnableRequest) XXX_Merge(src proto.Message) {
  3899. xxx_messageInfo_AuthEnableRequest.Merge(m, src)
  3900. }
  3901. func (m *AuthEnableRequest) XXX_Size() int {
  3902. return m.Size()
  3903. }
  3904. func (m *AuthEnableRequest) XXX_DiscardUnknown() {
  3905. xxx_messageInfo_AuthEnableRequest.DiscardUnknown(m)
  3906. }
  3907. var xxx_messageInfo_AuthEnableRequest proto.InternalMessageInfo
  3908. type AuthDisableRequest struct {
  3909. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3910. XXX_unrecognized []byte `json:"-"`
  3911. XXX_sizecache int32 `json:"-"`
  3912. }
  3913. func (m *AuthDisableRequest) Reset() { *m = AuthDisableRequest{} }
  3914. func (m *AuthDisableRequest) String() string { return proto.CompactTextString(m) }
  3915. func (*AuthDisableRequest) ProtoMessage() {}
  3916. func (*AuthDisableRequest) Descriptor() ([]byte, []int) {
  3917. return fileDescriptor_77a6da22d6a3feb1, []int{55}
  3918. }
  3919. func (m *AuthDisableRequest) XXX_Unmarshal(b []byte) error {
  3920. return m.Unmarshal(b)
  3921. }
  3922. func (m *AuthDisableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3923. if deterministic {
  3924. return xxx_messageInfo_AuthDisableRequest.Marshal(b, m, deterministic)
  3925. } else {
  3926. b = b[:cap(b)]
  3927. n, err := m.MarshalToSizedBuffer(b)
  3928. if err != nil {
  3929. return nil, err
  3930. }
  3931. return b[:n], nil
  3932. }
  3933. }
  3934. func (m *AuthDisableRequest) XXX_Merge(src proto.Message) {
  3935. xxx_messageInfo_AuthDisableRequest.Merge(m, src)
  3936. }
  3937. func (m *AuthDisableRequest) XXX_Size() int {
  3938. return m.Size()
  3939. }
  3940. func (m *AuthDisableRequest) XXX_DiscardUnknown() {
  3941. xxx_messageInfo_AuthDisableRequest.DiscardUnknown(m)
  3942. }
  3943. var xxx_messageInfo_AuthDisableRequest proto.InternalMessageInfo
  3944. type AuthenticateRequest struct {
  3945. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  3946. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  3947. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3948. XXX_unrecognized []byte `json:"-"`
  3949. XXX_sizecache int32 `json:"-"`
  3950. }
  3951. func (m *AuthenticateRequest) Reset() { *m = AuthenticateRequest{} }
  3952. func (m *AuthenticateRequest) String() string { return proto.CompactTextString(m) }
  3953. func (*AuthenticateRequest) ProtoMessage() {}
  3954. func (*AuthenticateRequest) Descriptor() ([]byte, []int) {
  3955. return fileDescriptor_77a6da22d6a3feb1, []int{56}
  3956. }
  3957. func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error {
  3958. return m.Unmarshal(b)
  3959. }
  3960. func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3961. if deterministic {
  3962. return xxx_messageInfo_AuthenticateRequest.Marshal(b, m, deterministic)
  3963. } else {
  3964. b = b[:cap(b)]
  3965. n, err := m.MarshalToSizedBuffer(b)
  3966. if err != nil {
  3967. return nil, err
  3968. }
  3969. return b[:n], nil
  3970. }
  3971. }
  3972. func (m *AuthenticateRequest) XXX_Merge(src proto.Message) {
  3973. xxx_messageInfo_AuthenticateRequest.Merge(m, src)
  3974. }
  3975. func (m *AuthenticateRequest) XXX_Size() int {
  3976. return m.Size()
  3977. }
  3978. func (m *AuthenticateRequest) XXX_DiscardUnknown() {
  3979. xxx_messageInfo_AuthenticateRequest.DiscardUnknown(m)
  3980. }
  3981. var xxx_messageInfo_AuthenticateRequest proto.InternalMessageInfo
  3982. func (m *AuthenticateRequest) GetName() string {
  3983. if m != nil {
  3984. return m.Name
  3985. }
  3986. return ""
  3987. }
  3988. func (m *AuthenticateRequest) GetPassword() string {
  3989. if m != nil {
  3990. return m.Password
  3991. }
  3992. return ""
  3993. }
  3994. type AuthUserAddRequest struct {
  3995. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  3996. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  3997. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3998. XXX_unrecognized []byte `json:"-"`
  3999. XXX_sizecache int32 `json:"-"`
  4000. }
  4001. func (m *AuthUserAddRequest) Reset() { *m = AuthUserAddRequest{} }
  4002. func (m *AuthUserAddRequest) String() string { return proto.CompactTextString(m) }
  4003. func (*AuthUserAddRequest) ProtoMessage() {}
  4004. func (*AuthUserAddRequest) Descriptor() ([]byte, []int) {
  4005. return fileDescriptor_77a6da22d6a3feb1, []int{57}
  4006. }
  4007. func (m *AuthUserAddRequest) XXX_Unmarshal(b []byte) error {
  4008. return m.Unmarshal(b)
  4009. }
  4010. func (m *AuthUserAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4011. if deterministic {
  4012. return xxx_messageInfo_AuthUserAddRequest.Marshal(b, m, deterministic)
  4013. } else {
  4014. b = b[:cap(b)]
  4015. n, err := m.MarshalToSizedBuffer(b)
  4016. if err != nil {
  4017. return nil, err
  4018. }
  4019. return b[:n], nil
  4020. }
  4021. }
  4022. func (m *AuthUserAddRequest) XXX_Merge(src proto.Message) {
  4023. xxx_messageInfo_AuthUserAddRequest.Merge(m, src)
  4024. }
  4025. func (m *AuthUserAddRequest) XXX_Size() int {
  4026. return m.Size()
  4027. }
  4028. func (m *AuthUserAddRequest) XXX_DiscardUnknown() {
  4029. xxx_messageInfo_AuthUserAddRequest.DiscardUnknown(m)
  4030. }
  4031. var xxx_messageInfo_AuthUserAddRequest proto.InternalMessageInfo
  4032. func (m *AuthUserAddRequest) GetName() string {
  4033. if m != nil {
  4034. return m.Name
  4035. }
  4036. return ""
  4037. }
  4038. func (m *AuthUserAddRequest) GetPassword() string {
  4039. if m != nil {
  4040. return m.Password
  4041. }
  4042. return ""
  4043. }
  4044. type AuthUserGetRequest struct {
  4045. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  4046. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4047. XXX_unrecognized []byte `json:"-"`
  4048. XXX_sizecache int32 `json:"-"`
  4049. }
  4050. func (m *AuthUserGetRequest) Reset() { *m = AuthUserGetRequest{} }
  4051. func (m *AuthUserGetRequest) String() string { return proto.CompactTextString(m) }
  4052. func (*AuthUserGetRequest) ProtoMessage() {}
  4053. func (*AuthUserGetRequest) Descriptor() ([]byte, []int) {
  4054. return fileDescriptor_77a6da22d6a3feb1, []int{58}
  4055. }
  4056. func (m *AuthUserGetRequest) XXX_Unmarshal(b []byte) error {
  4057. return m.Unmarshal(b)
  4058. }
  4059. func (m *AuthUserGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4060. if deterministic {
  4061. return xxx_messageInfo_AuthUserGetRequest.Marshal(b, m, deterministic)
  4062. } else {
  4063. b = b[:cap(b)]
  4064. n, err := m.MarshalToSizedBuffer(b)
  4065. if err != nil {
  4066. return nil, err
  4067. }
  4068. return b[:n], nil
  4069. }
  4070. }
  4071. func (m *AuthUserGetRequest) XXX_Merge(src proto.Message) {
  4072. xxx_messageInfo_AuthUserGetRequest.Merge(m, src)
  4073. }
  4074. func (m *AuthUserGetRequest) XXX_Size() int {
  4075. return m.Size()
  4076. }
  4077. func (m *AuthUserGetRequest) XXX_DiscardUnknown() {
  4078. xxx_messageInfo_AuthUserGetRequest.DiscardUnknown(m)
  4079. }
  4080. var xxx_messageInfo_AuthUserGetRequest proto.InternalMessageInfo
  4081. func (m *AuthUserGetRequest) GetName() string {
  4082. if m != nil {
  4083. return m.Name
  4084. }
  4085. return ""
  4086. }
  4087. type AuthUserDeleteRequest struct {
  4088. // name is the name of the user to delete.
  4089. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  4090. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4091. XXX_unrecognized []byte `json:"-"`
  4092. XXX_sizecache int32 `json:"-"`
  4093. }
  4094. func (m *AuthUserDeleteRequest) Reset() { *m = AuthUserDeleteRequest{} }
  4095. func (m *AuthUserDeleteRequest) String() string { return proto.CompactTextString(m) }
  4096. func (*AuthUserDeleteRequest) ProtoMessage() {}
  4097. func (*AuthUserDeleteRequest) Descriptor() ([]byte, []int) {
  4098. return fileDescriptor_77a6da22d6a3feb1, []int{59}
  4099. }
  4100. func (m *AuthUserDeleteRequest) XXX_Unmarshal(b []byte) error {
  4101. return m.Unmarshal(b)
  4102. }
  4103. func (m *AuthUserDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4104. if deterministic {
  4105. return xxx_messageInfo_AuthUserDeleteRequest.Marshal(b, m, deterministic)
  4106. } else {
  4107. b = b[:cap(b)]
  4108. n, err := m.MarshalToSizedBuffer(b)
  4109. if err != nil {
  4110. return nil, err
  4111. }
  4112. return b[:n], nil
  4113. }
  4114. }
  4115. func (m *AuthUserDeleteRequest) XXX_Merge(src proto.Message) {
  4116. xxx_messageInfo_AuthUserDeleteRequest.Merge(m, src)
  4117. }
  4118. func (m *AuthUserDeleteRequest) XXX_Size() int {
  4119. return m.Size()
  4120. }
  4121. func (m *AuthUserDeleteRequest) XXX_DiscardUnknown() {
  4122. xxx_messageInfo_AuthUserDeleteRequest.DiscardUnknown(m)
  4123. }
  4124. var xxx_messageInfo_AuthUserDeleteRequest proto.InternalMessageInfo
  4125. func (m *AuthUserDeleteRequest) GetName() string {
  4126. if m != nil {
  4127. return m.Name
  4128. }
  4129. return ""
  4130. }
  4131. type AuthUserChangePasswordRequest struct {
  4132. // name is the name of the user whose password is being changed.
  4133. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  4134. // password is the new password for the user.
  4135. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  4136. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4137. XXX_unrecognized []byte `json:"-"`
  4138. XXX_sizecache int32 `json:"-"`
  4139. }
  4140. func (m *AuthUserChangePasswordRequest) Reset() { *m = AuthUserChangePasswordRequest{} }
  4141. func (m *AuthUserChangePasswordRequest) String() string { return proto.CompactTextString(m) }
  4142. func (*AuthUserChangePasswordRequest) ProtoMessage() {}
  4143. func (*AuthUserChangePasswordRequest) Descriptor() ([]byte, []int) {
  4144. return fileDescriptor_77a6da22d6a3feb1, []int{60}
  4145. }
  4146. func (m *AuthUserChangePasswordRequest) XXX_Unmarshal(b []byte) error {
  4147. return m.Unmarshal(b)
  4148. }
  4149. func (m *AuthUserChangePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4150. if deterministic {
  4151. return xxx_messageInfo_AuthUserChangePasswordRequest.Marshal(b, m, deterministic)
  4152. } else {
  4153. b = b[:cap(b)]
  4154. n, err := m.MarshalToSizedBuffer(b)
  4155. if err != nil {
  4156. return nil, err
  4157. }
  4158. return b[:n], nil
  4159. }
  4160. }
  4161. func (m *AuthUserChangePasswordRequest) XXX_Merge(src proto.Message) {
  4162. xxx_messageInfo_AuthUserChangePasswordRequest.Merge(m, src)
  4163. }
  4164. func (m *AuthUserChangePasswordRequest) XXX_Size() int {
  4165. return m.Size()
  4166. }
  4167. func (m *AuthUserChangePasswordRequest) XXX_DiscardUnknown() {
  4168. xxx_messageInfo_AuthUserChangePasswordRequest.DiscardUnknown(m)
  4169. }
  4170. var xxx_messageInfo_AuthUserChangePasswordRequest proto.InternalMessageInfo
  4171. func (m *AuthUserChangePasswordRequest) GetName() string {
  4172. if m != nil {
  4173. return m.Name
  4174. }
  4175. return ""
  4176. }
  4177. func (m *AuthUserChangePasswordRequest) GetPassword() string {
  4178. if m != nil {
  4179. return m.Password
  4180. }
  4181. return ""
  4182. }
  4183. type AuthUserGrantRoleRequest struct {
  4184. // user is the name of the user which should be granted a given role.
  4185. User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
  4186. // role is the name of the role to grant to the user.
  4187. Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
  4188. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4189. XXX_unrecognized []byte `json:"-"`
  4190. XXX_sizecache int32 `json:"-"`
  4191. }
  4192. func (m *AuthUserGrantRoleRequest) Reset() { *m = AuthUserGrantRoleRequest{} }
  4193. func (m *AuthUserGrantRoleRequest) String() string { return proto.CompactTextString(m) }
  4194. func (*AuthUserGrantRoleRequest) ProtoMessage() {}
  4195. func (*AuthUserGrantRoleRequest) Descriptor() ([]byte, []int) {
  4196. return fileDescriptor_77a6da22d6a3feb1, []int{61}
  4197. }
  4198. func (m *AuthUserGrantRoleRequest) XXX_Unmarshal(b []byte) error {
  4199. return m.Unmarshal(b)
  4200. }
  4201. func (m *AuthUserGrantRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4202. if deterministic {
  4203. return xxx_messageInfo_AuthUserGrantRoleRequest.Marshal(b, m, deterministic)
  4204. } else {
  4205. b = b[:cap(b)]
  4206. n, err := m.MarshalToSizedBuffer(b)
  4207. if err != nil {
  4208. return nil, err
  4209. }
  4210. return b[:n], nil
  4211. }
  4212. }
  4213. func (m *AuthUserGrantRoleRequest) XXX_Merge(src proto.Message) {
  4214. xxx_messageInfo_AuthUserGrantRoleRequest.Merge(m, src)
  4215. }
  4216. func (m *AuthUserGrantRoleRequest) XXX_Size() int {
  4217. return m.Size()
  4218. }
  4219. func (m *AuthUserGrantRoleRequest) XXX_DiscardUnknown() {
  4220. xxx_messageInfo_AuthUserGrantRoleRequest.DiscardUnknown(m)
  4221. }
  4222. var xxx_messageInfo_AuthUserGrantRoleRequest proto.InternalMessageInfo
  4223. func (m *AuthUserGrantRoleRequest) GetUser() string {
  4224. if m != nil {
  4225. return m.User
  4226. }
  4227. return ""
  4228. }
  4229. func (m *AuthUserGrantRoleRequest) GetRole() string {
  4230. if m != nil {
  4231. return m.Role
  4232. }
  4233. return ""
  4234. }
  4235. type AuthUserRevokeRoleRequest struct {
  4236. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  4237. Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
  4238. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4239. XXX_unrecognized []byte `json:"-"`
  4240. XXX_sizecache int32 `json:"-"`
  4241. }
  4242. func (m *AuthUserRevokeRoleRequest) Reset() { *m = AuthUserRevokeRoleRequest{} }
  4243. func (m *AuthUserRevokeRoleRequest) String() string { return proto.CompactTextString(m) }
  4244. func (*AuthUserRevokeRoleRequest) ProtoMessage() {}
  4245. func (*AuthUserRevokeRoleRequest) Descriptor() ([]byte, []int) {
  4246. return fileDescriptor_77a6da22d6a3feb1, []int{62}
  4247. }
  4248. func (m *AuthUserRevokeRoleRequest) XXX_Unmarshal(b []byte) error {
  4249. return m.Unmarshal(b)
  4250. }
  4251. func (m *AuthUserRevokeRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4252. if deterministic {
  4253. return xxx_messageInfo_AuthUserRevokeRoleRequest.Marshal(b, m, deterministic)
  4254. } else {
  4255. b = b[:cap(b)]
  4256. n, err := m.MarshalToSizedBuffer(b)
  4257. if err != nil {
  4258. return nil, err
  4259. }
  4260. return b[:n], nil
  4261. }
  4262. }
  4263. func (m *AuthUserRevokeRoleRequest) XXX_Merge(src proto.Message) {
  4264. xxx_messageInfo_AuthUserRevokeRoleRequest.Merge(m, src)
  4265. }
  4266. func (m *AuthUserRevokeRoleRequest) XXX_Size() int {
  4267. return m.Size()
  4268. }
  4269. func (m *AuthUserRevokeRoleRequest) XXX_DiscardUnknown() {
  4270. xxx_messageInfo_AuthUserRevokeRoleRequest.DiscardUnknown(m)
  4271. }
  4272. var xxx_messageInfo_AuthUserRevokeRoleRequest proto.InternalMessageInfo
  4273. func (m *AuthUserRevokeRoleRequest) GetName() string {
  4274. if m != nil {
  4275. return m.Name
  4276. }
  4277. return ""
  4278. }
  4279. func (m *AuthUserRevokeRoleRequest) GetRole() string {
  4280. if m != nil {
  4281. return m.Role
  4282. }
  4283. return ""
  4284. }
  4285. type AuthRoleAddRequest struct {
  4286. // name is the name of the role to add to the authentication system.
  4287. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  4288. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4289. XXX_unrecognized []byte `json:"-"`
  4290. XXX_sizecache int32 `json:"-"`
  4291. }
  4292. func (m *AuthRoleAddRequest) Reset() { *m = AuthRoleAddRequest{} }
  4293. func (m *AuthRoleAddRequest) String() string { return proto.CompactTextString(m) }
  4294. func (*AuthRoleAddRequest) ProtoMessage() {}
  4295. func (*AuthRoleAddRequest) Descriptor() ([]byte, []int) {
  4296. return fileDescriptor_77a6da22d6a3feb1, []int{63}
  4297. }
  4298. func (m *AuthRoleAddRequest) XXX_Unmarshal(b []byte) error {
  4299. return m.Unmarshal(b)
  4300. }
  4301. func (m *AuthRoleAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4302. if deterministic {
  4303. return xxx_messageInfo_AuthRoleAddRequest.Marshal(b, m, deterministic)
  4304. } else {
  4305. b = b[:cap(b)]
  4306. n, err := m.MarshalToSizedBuffer(b)
  4307. if err != nil {
  4308. return nil, err
  4309. }
  4310. return b[:n], nil
  4311. }
  4312. }
  4313. func (m *AuthRoleAddRequest) XXX_Merge(src proto.Message) {
  4314. xxx_messageInfo_AuthRoleAddRequest.Merge(m, src)
  4315. }
  4316. func (m *AuthRoleAddRequest) XXX_Size() int {
  4317. return m.Size()
  4318. }
  4319. func (m *AuthRoleAddRequest) XXX_DiscardUnknown() {
  4320. xxx_messageInfo_AuthRoleAddRequest.DiscardUnknown(m)
  4321. }
  4322. var xxx_messageInfo_AuthRoleAddRequest proto.InternalMessageInfo
  4323. func (m *AuthRoleAddRequest) GetName() string {
  4324. if m != nil {
  4325. return m.Name
  4326. }
  4327. return ""
  4328. }
  4329. type AuthRoleGetRequest struct {
  4330. Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
  4331. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4332. XXX_unrecognized []byte `json:"-"`
  4333. XXX_sizecache int32 `json:"-"`
  4334. }
  4335. func (m *AuthRoleGetRequest) Reset() { *m = AuthRoleGetRequest{} }
  4336. func (m *AuthRoleGetRequest) String() string { return proto.CompactTextString(m) }
  4337. func (*AuthRoleGetRequest) ProtoMessage() {}
  4338. func (*AuthRoleGetRequest) Descriptor() ([]byte, []int) {
  4339. return fileDescriptor_77a6da22d6a3feb1, []int{64}
  4340. }
  4341. func (m *AuthRoleGetRequest) XXX_Unmarshal(b []byte) error {
  4342. return m.Unmarshal(b)
  4343. }
  4344. func (m *AuthRoleGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4345. if deterministic {
  4346. return xxx_messageInfo_AuthRoleGetRequest.Marshal(b, m, deterministic)
  4347. } else {
  4348. b = b[:cap(b)]
  4349. n, err := m.MarshalToSizedBuffer(b)
  4350. if err != nil {
  4351. return nil, err
  4352. }
  4353. return b[:n], nil
  4354. }
  4355. }
  4356. func (m *AuthRoleGetRequest) XXX_Merge(src proto.Message) {
  4357. xxx_messageInfo_AuthRoleGetRequest.Merge(m, src)
  4358. }
  4359. func (m *AuthRoleGetRequest) XXX_Size() int {
  4360. return m.Size()
  4361. }
  4362. func (m *AuthRoleGetRequest) XXX_DiscardUnknown() {
  4363. xxx_messageInfo_AuthRoleGetRequest.DiscardUnknown(m)
  4364. }
  4365. var xxx_messageInfo_AuthRoleGetRequest proto.InternalMessageInfo
  4366. func (m *AuthRoleGetRequest) GetRole() string {
  4367. if m != nil {
  4368. return m.Role
  4369. }
  4370. return ""
  4371. }
  4372. type AuthUserListRequest struct {
  4373. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4374. XXX_unrecognized []byte `json:"-"`
  4375. XXX_sizecache int32 `json:"-"`
  4376. }
  4377. func (m *AuthUserListRequest) Reset() { *m = AuthUserListRequest{} }
  4378. func (m *AuthUserListRequest) String() string { return proto.CompactTextString(m) }
  4379. func (*AuthUserListRequest) ProtoMessage() {}
  4380. func (*AuthUserListRequest) Descriptor() ([]byte, []int) {
  4381. return fileDescriptor_77a6da22d6a3feb1, []int{65}
  4382. }
  4383. func (m *AuthUserListRequest) XXX_Unmarshal(b []byte) error {
  4384. return m.Unmarshal(b)
  4385. }
  4386. func (m *AuthUserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4387. if deterministic {
  4388. return xxx_messageInfo_AuthUserListRequest.Marshal(b, m, deterministic)
  4389. } else {
  4390. b = b[:cap(b)]
  4391. n, err := m.MarshalToSizedBuffer(b)
  4392. if err != nil {
  4393. return nil, err
  4394. }
  4395. return b[:n], nil
  4396. }
  4397. }
  4398. func (m *AuthUserListRequest) XXX_Merge(src proto.Message) {
  4399. xxx_messageInfo_AuthUserListRequest.Merge(m, src)
  4400. }
  4401. func (m *AuthUserListRequest) XXX_Size() int {
  4402. return m.Size()
  4403. }
  4404. func (m *AuthUserListRequest) XXX_DiscardUnknown() {
  4405. xxx_messageInfo_AuthUserListRequest.DiscardUnknown(m)
  4406. }
  4407. var xxx_messageInfo_AuthUserListRequest proto.InternalMessageInfo
  4408. type AuthRoleListRequest struct {
  4409. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4410. XXX_unrecognized []byte `json:"-"`
  4411. XXX_sizecache int32 `json:"-"`
  4412. }
  4413. func (m *AuthRoleListRequest) Reset() { *m = AuthRoleListRequest{} }
  4414. func (m *AuthRoleListRequest) String() string { return proto.CompactTextString(m) }
  4415. func (*AuthRoleListRequest) ProtoMessage() {}
  4416. func (*AuthRoleListRequest) Descriptor() ([]byte, []int) {
  4417. return fileDescriptor_77a6da22d6a3feb1, []int{66}
  4418. }
  4419. func (m *AuthRoleListRequest) XXX_Unmarshal(b []byte) error {
  4420. return m.Unmarshal(b)
  4421. }
  4422. func (m *AuthRoleListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4423. if deterministic {
  4424. return xxx_messageInfo_AuthRoleListRequest.Marshal(b, m, deterministic)
  4425. } else {
  4426. b = b[:cap(b)]
  4427. n, err := m.MarshalToSizedBuffer(b)
  4428. if err != nil {
  4429. return nil, err
  4430. }
  4431. return b[:n], nil
  4432. }
  4433. }
  4434. func (m *AuthRoleListRequest) XXX_Merge(src proto.Message) {
  4435. xxx_messageInfo_AuthRoleListRequest.Merge(m, src)
  4436. }
  4437. func (m *AuthRoleListRequest) XXX_Size() int {
  4438. return m.Size()
  4439. }
  4440. func (m *AuthRoleListRequest) XXX_DiscardUnknown() {
  4441. xxx_messageInfo_AuthRoleListRequest.DiscardUnknown(m)
  4442. }
  4443. var xxx_messageInfo_AuthRoleListRequest proto.InternalMessageInfo
  4444. type AuthRoleDeleteRequest struct {
  4445. Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
  4446. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4447. XXX_unrecognized []byte `json:"-"`
  4448. XXX_sizecache int32 `json:"-"`
  4449. }
  4450. func (m *AuthRoleDeleteRequest) Reset() { *m = AuthRoleDeleteRequest{} }
  4451. func (m *AuthRoleDeleteRequest) String() string { return proto.CompactTextString(m) }
  4452. func (*AuthRoleDeleteRequest) ProtoMessage() {}
  4453. func (*AuthRoleDeleteRequest) Descriptor() ([]byte, []int) {
  4454. return fileDescriptor_77a6da22d6a3feb1, []int{67}
  4455. }
  4456. func (m *AuthRoleDeleteRequest) XXX_Unmarshal(b []byte) error {
  4457. return m.Unmarshal(b)
  4458. }
  4459. func (m *AuthRoleDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4460. if deterministic {
  4461. return xxx_messageInfo_AuthRoleDeleteRequest.Marshal(b, m, deterministic)
  4462. } else {
  4463. b = b[:cap(b)]
  4464. n, err := m.MarshalToSizedBuffer(b)
  4465. if err != nil {
  4466. return nil, err
  4467. }
  4468. return b[:n], nil
  4469. }
  4470. }
  4471. func (m *AuthRoleDeleteRequest) XXX_Merge(src proto.Message) {
  4472. xxx_messageInfo_AuthRoleDeleteRequest.Merge(m, src)
  4473. }
  4474. func (m *AuthRoleDeleteRequest) XXX_Size() int {
  4475. return m.Size()
  4476. }
  4477. func (m *AuthRoleDeleteRequest) XXX_DiscardUnknown() {
  4478. xxx_messageInfo_AuthRoleDeleteRequest.DiscardUnknown(m)
  4479. }
  4480. var xxx_messageInfo_AuthRoleDeleteRequest proto.InternalMessageInfo
  4481. func (m *AuthRoleDeleteRequest) GetRole() string {
  4482. if m != nil {
  4483. return m.Role
  4484. }
  4485. return ""
  4486. }
  4487. type AuthRoleGrantPermissionRequest struct {
  4488. // name is the name of the role which will be granted the permission.
  4489. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  4490. // perm is the permission to grant to the role.
  4491. Perm *authpb.Permission `protobuf:"bytes,2,opt,name=perm,proto3" json:"perm,omitempty"`
  4492. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4493. XXX_unrecognized []byte `json:"-"`
  4494. XXX_sizecache int32 `json:"-"`
  4495. }
  4496. func (m *AuthRoleGrantPermissionRequest) Reset() { *m = AuthRoleGrantPermissionRequest{} }
  4497. func (m *AuthRoleGrantPermissionRequest) String() string { return proto.CompactTextString(m) }
  4498. func (*AuthRoleGrantPermissionRequest) ProtoMessage() {}
  4499. func (*AuthRoleGrantPermissionRequest) Descriptor() ([]byte, []int) {
  4500. return fileDescriptor_77a6da22d6a3feb1, []int{68}
  4501. }
  4502. func (m *AuthRoleGrantPermissionRequest) XXX_Unmarshal(b []byte) error {
  4503. return m.Unmarshal(b)
  4504. }
  4505. func (m *AuthRoleGrantPermissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4506. if deterministic {
  4507. return xxx_messageInfo_AuthRoleGrantPermissionRequest.Marshal(b, m, deterministic)
  4508. } else {
  4509. b = b[:cap(b)]
  4510. n, err := m.MarshalToSizedBuffer(b)
  4511. if err != nil {
  4512. return nil, err
  4513. }
  4514. return b[:n], nil
  4515. }
  4516. }
  4517. func (m *AuthRoleGrantPermissionRequest) XXX_Merge(src proto.Message) {
  4518. xxx_messageInfo_AuthRoleGrantPermissionRequest.Merge(m, src)
  4519. }
  4520. func (m *AuthRoleGrantPermissionRequest) XXX_Size() int {
  4521. return m.Size()
  4522. }
  4523. func (m *AuthRoleGrantPermissionRequest) XXX_DiscardUnknown() {
  4524. xxx_messageInfo_AuthRoleGrantPermissionRequest.DiscardUnknown(m)
  4525. }
  4526. var xxx_messageInfo_AuthRoleGrantPermissionRequest proto.InternalMessageInfo
  4527. func (m *AuthRoleGrantPermissionRequest) GetName() string {
  4528. if m != nil {
  4529. return m.Name
  4530. }
  4531. return ""
  4532. }
  4533. func (m *AuthRoleGrantPermissionRequest) GetPerm() *authpb.Permission {
  4534. if m != nil {
  4535. return m.Perm
  4536. }
  4537. return nil
  4538. }
  4539. type AuthRoleRevokePermissionRequest struct {
  4540. Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
  4541. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
  4542. RangeEnd string `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
  4543. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4544. XXX_unrecognized []byte `json:"-"`
  4545. XXX_sizecache int32 `json:"-"`
  4546. }
  4547. func (m *AuthRoleRevokePermissionRequest) Reset() { *m = AuthRoleRevokePermissionRequest{} }
  4548. func (m *AuthRoleRevokePermissionRequest) String() string { return proto.CompactTextString(m) }
  4549. func (*AuthRoleRevokePermissionRequest) ProtoMessage() {}
  4550. func (*AuthRoleRevokePermissionRequest) Descriptor() ([]byte, []int) {
  4551. return fileDescriptor_77a6da22d6a3feb1, []int{69}
  4552. }
  4553. func (m *AuthRoleRevokePermissionRequest) XXX_Unmarshal(b []byte) error {
  4554. return m.Unmarshal(b)
  4555. }
  4556. func (m *AuthRoleRevokePermissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4557. if deterministic {
  4558. return xxx_messageInfo_AuthRoleRevokePermissionRequest.Marshal(b, m, deterministic)
  4559. } else {
  4560. b = b[:cap(b)]
  4561. n, err := m.MarshalToSizedBuffer(b)
  4562. if err != nil {
  4563. return nil, err
  4564. }
  4565. return b[:n], nil
  4566. }
  4567. }
  4568. func (m *AuthRoleRevokePermissionRequest) XXX_Merge(src proto.Message) {
  4569. xxx_messageInfo_AuthRoleRevokePermissionRequest.Merge(m, src)
  4570. }
  4571. func (m *AuthRoleRevokePermissionRequest) XXX_Size() int {
  4572. return m.Size()
  4573. }
  4574. func (m *AuthRoleRevokePermissionRequest) XXX_DiscardUnknown() {
  4575. xxx_messageInfo_AuthRoleRevokePermissionRequest.DiscardUnknown(m)
  4576. }
  4577. var xxx_messageInfo_AuthRoleRevokePermissionRequest proto.InternalMessageInfo
  4578. func (m *AuthRoleRevokePermissionRequest) GetRole() string {
  4579. if m != nil {
  4580. return m.Role
  4581. }
  4582. return ""
  4583. }
  4584. func (m *AuthRoleRevokePermissionRequest) GetKey() string {
  4585. if m != nil {
  4586. return m.Key
  4587. }
  4588. return ""
  4589. }
  4590. func (m *AuthRoleRevokePermissionRequest) GetRangeEnd() string {
  4591. if m != nil {
  4592. return m.RangeEnd
  4593. }
  4594. return ""
  4595. }
  4596. type AuthEnableResponse struct {
  4597. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  4598. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4599. XXX_unrecognized []byte `json:"-"`
  4600. XXX_sizecache int32 `json:"-"`
  4601. }
  4602. func (m *AuthEnableResponse) Reset() { *m = AuthEnableResponse{} }
  4603. func (m *AuthEnableResponse) String() string { return proto.CompactTextString(m) }
  4604. func (*AuthEnableResponse) ProtoMessage() {}
  4605. func (*AuthEnableResponse) Descriptor() ([]byte, []int) {
  4606. return fileDescriptor_77a6da22d6a3feb1, []int{70}
  4607. }
  4608. func (m *AuthEnableResponse) XXX_Unmarshal(b []byte) error {
  4609. return m.Unmarshal(b)
  4610. }
  4611. func (m *AuthEnableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4612. if deterministic {
  4613. return xxx_messageInfo_AuthEnableResponse.Marshal(b, m, deterministic)
  4614. } else {
  4615. b = b[:cap(b)]
  4616. n, err := m.MarshalToSizedBuffer(b)
  4617. if err != nil {
  4618. return nil, err
  4619. }
  4620. return b[:n], nil
  4621. }
  4622. }
  4623. func (m *AuthEnableResponse) XXX_Merge(src proto.Message) {
  4624. xxx_messageInfo_AuthEnableResponse.Merge(m, src)
  4625. }
  4626. func (m *AuthEnableResponse) XXX_Size() int {
  4627. return m.Size()
  4628. }
  4629. func (m *AuthEnableResponse) XXX_DiscardUnknown() {
  4630. xxx_messageInfo_AuthEnableResponse.DiscardUnknown(m)
  4631. }
  4632. var xxx_messageInfo_AuthEnableResponse proto.InternalMessageInfo
  4633. func (m *AuthEnableResponse) GetHeader() *ResponseHeader {
  4634. if m != nil {
  4635. return m.Header
  4636. }
  4637. return nil
  4638. }
  4639. type AuthDisableResponse struct {
  4640. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  4641. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4642. XXX_unrecognized []byte `json:"-"`
  4643. XXX_sizecache int32 `json:"-"`
  4644. }
  4645. func (m *AuthDisableResponse) Reset() { *m = AuthDisableResponse{} }
  4646. func (m *AuthDisableResponse) String() string { return proto.CompactTextString(m) }
  4647. func (*AuthDisableResponse) ProtoMessage() {}
  4648. func (*AuthDisableResponse) Descriptor() ([]byte, []int) {
  4649. return fileDescriptor_77a6da22d6a3feb1, []int{71}
  4650. }
  4651. func (m *AuthDisableResponse) XXX_Unmarshal(b []byte) error {
  4652. return m.Unmarshal(b)
  4653. }
  4654. func (m *AuthDisableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4655. if deterministic {
  4656. return xxx_messageInfo_AuthDisableResponse.Marshal(b, m, deterministic)
  4657. } else {
  4658. b = b[:cap(b)]
  4659. n, err := m.MarshalToSizedBuffer(b)
  4660. if err != nil {
  4661. return nil, err
  4662. }
  4663. return b[:n], nil
  4664. }
  4665. }
  4666. func (m *AuthDisableResponse) XXX_Merge(src proto.Message) {
  4667. xxx_messageInfo_AuthDisableResponse.Merge(m, src)
  4668. }
  4669. func (m *AuthDisableResponse) XXX_Size() int {
  4670. return m.Size()
  4671. }
  4672. func (m *AuthDisableResponse) XXX_DiscardUnknown() {
  4673. xxx_messageInfo_AuthDisableResponse.DiscardUnknown(m)
  4674. }
  4675. var xxx_messageInfo_AuthDisableResponse proto.InternalMessageInfo
  4676. func (m *AuthDisableResponse) GetHeader() *ResponseHeader {
  4677. if m != nil {
  4678. return m.Header
  4679. }
  4680. return nil
  4681. }
  4682. type AuthenticateResponse struct {
  4683. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  4684. // token is an authorized token that can be used in succeeding RPCs
  4685. Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
  4686. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4687. XXX_unrecognized []byte `json:"-"`
  4688. XXX_sizecache int32 `json:"-"`
  4689. }
  4690. func (m *AuthenticateResponse) Reset() { *m = AuthenticateResponse{} }
  4691. func (m *AuthenticateResponse) String() string { return proto.CompactTextString(m) }
  4692. func (*AuthenticateResponse) ProtoMessage() {}
  4693. func (*AuthenticateResponse) Descriptor() ([]byte, []int) {
  4694. return fileDescriptor_77a6da22d6a3feb1, []int{72}
  4695. }
  4696. func (m *AuthenticateResponse) XXX_Unmarshal(b []byte) error {
  4697. return m.Unmarshal(b)
  4698. }
  4699. func (m *AuthenticateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4700. if deterministic {
  4701. return xxx_messageInfo_AuthenticateResponse.Marshal(b, m, deterministic)
  4702. } else {
  4703. b = b[:cap(b)]
  4704. n, err := m.MarshalToSizedBuffer(b)
  4705. if err != nil {
  4706. return nil, err
  4707. }
  4708. return b[:n], nil
  4709. }
  4710. }
  4711. func (m *AuthenticateResponse) XXX_Merge(src proto.Message) {
  4712. xxx_messageInfo_AuthenticateResponse.Merge(m, src)
  4713. }
  4714. func (m *AuthenticateResponse) XXX_Size() int {
  4715. return m.Size()
  4716. }
  4717. func (m *AuthenticateResponse) XXX_DiscardUnknown() {
  4718. xxx_messageInfo_AuthenticateResponse.DiscardUnknown(m)
  4719. }
  4720. var xxx_messageInfo_AuthenticateResponse proto.InternalMessageInfo
  4721. func (m *AuthenticateResponse) GetHeader() *ResponseHeader {
  4722. if m != nil {
  4723. return m.Header
  4724. }
  4725. return nil
  4726. }
  4727. func (m *AuthenticateResponse) GetToken() string {
  4728. if m != nil {
  4729. return m.Token
  4730. }
  4731. return ""
  4732. }
  4733. type AuthUserAddResponse struct {
  4734. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  4735. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4736. XXX_unrecognized []byte `json:"-"`
  4737. XXX_sizecache int32 `json:"-"`
  4738. }
  4739. func (m *AuthUserAddResponse) Reset() { *m = AuthUserAddResponse{} }
  4740. func (m *AuthUserAddResponse) String() string { return proto.CompactTextString(m) }
  4741. func (*AuthUserAddResponse) ProtoMessage() {}
  4742. func (*AuthUserAddResponse) Descriptor() ([]byte, []int) {
  4743. return fileDescriptor_77a6da22d6a3feb1, []int{73}
  4744. }
  4745. func (m *AuthUserAddResponse) XXX_Unmarshal(b []byte) error {
  4746. return m.Unmarshal(b)
  4747. }
  4748. func (m *AuthUserAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4749. if deterministic {
  4750. return xxx_messageInfo_AuthUserAddResponse.Marshal(b, m, deterministic)
  4751. } else {
  4752. b = b[:cap(b)]
  4753. n, err := m.MarshalToSizedBuffer(b)
  4754. if err != nil {
  4755. return nil, err
  4756. }
  4757. return b[:n], nil
  4758. }
  4759. }
  4760. func (m *AuthUserAddResponse) XXX_Merge(src proto.Message) {
  4761. xxx_messageInfo_AuthUserAddResponse.Merge(m, src)
  4762. }
  4763. func (m *AuthUserAddResponse) XXX_Size() int {
  4764. return m.Size()
  4765. }
  4766. func (m *AuthUserAddResponse) XXX_DiscardUnknown() {
  4767. xxx_messageInfo_AuthUserAddResponse.DiscardUnknown(m)
  4768. }
  4769. var xxx_messageInfo_AuthUserAddResponse proto.InternalMessageInfo
  4770. func (m *AuthUserAddResponse) GetHeader() *ResponseHeader {
  4771. if m != nil {
  4772. return m.Header
  4773. }
  4774. return nil
  4775. }
  4776. type AuthUserGetResponse struct {
  4777. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  4778. Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
  4779. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4780. XXX_unrecognized []byte `json:"-"`
  4781. XXX_sizecache int32 `json:"-"`
  4782. }
  4783. func (m *AuthUserGetResponse) Reset() { *m = AuthUserGetResponse{} }
  4784. func (m *AuthUserGetResponse) String() string { return proto.CompactTextString(m) }
  4785. func (*AuthUserGetResponse) ProtoMessage() {}
  4786. func (*AuthUserGetResponse) Descriptor() ([]byte, []int) {
  4787. return fileDescriptor_77a6da22d6a3feb1, []int{74}
  4788. }
  4789. func (m *AuthUserGetResponse) XXX_Unmarshal(b []byte) error {
  4790. return m.Unmarshal(b)
  4791. }
  4792. func (m *AuthUserGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4793. if deterministic {
  4794. return xxx_messageInfo_AuthUserGetResponse.Marshal(b, m, deterministic)
  4795. } else {
  4796. b = b[:cap(b)]
  4797. n, err := m.MarshalToSizedBuffer(b)
  4798. if err != nil {
  4799. return nil, err
  4800. }
  4801. return b[:n], nil
  4802. }
  4803. }
  4804. func (m *AuthUserGetResponse) XXX_Merge(src proto.Message) {
  4805. xxx_messageInfo_AuthUserGetResponse.Merge(m, src)
  4806. }
  4807. func (m *AuthUserGetResponse) XXX_Size() int {
  4808. return m.Size()
  4809. }
  4810. func (m *AuthUserGetResponse) XXX_DiscardUnknown() {
  4811. xxx_messageInfo_AuthUserGetResponse.DiscardUnknown(m)
  4812. }
  4813. var xxx_messageInfo_AuthUserGetResponse proto.InternalMessageInfo
  4814. func (m *AuthUserGetResponse) GetHeader() *ResponseHeader {
  4815. if m != nil {
  4816. return m.Header
  4817. }
  4818. return nil
  4819. }
  4820. func (m *AuthUserGetResponse) GetRoles() []string {
  4821. if m != nil {
  4822. return m.Roles
  4823. }
  4824. return nil
  4825. }
  4826. type AuthUserDeleteResponse struct {
  4827. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  4828. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4829. XXX_unrecognized []byte `json:"-"`
  4830. XXX_sizecache int32 `json:"-"`
  4831. }
  4832. func (m *AuthUserDeleteResponse) Reset() { *m = AuthUserDeleteResponse{} }
  4833. func (m *AuthUserDeleteResponse) String() string { return proto.CompactTextString(m) }
  4834. func (*AuthUserDeleteResponse) ProtoMessage() {}
  4835. func (*AuthUserDeleteResponse) Descriptor() ([]byte, []int) {
  4836. return fileDescriptor_77a6da22d6a3feb1, []int{75}
  4837. }
  4838. func (m *AuthUserDeleteResponse) XXX_Unmarshal(b []byte) error {
  4839. return m.Unmarshal(b)
  4840. }
  4841. func (m *AuthUserDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4842. if deterministic {
  4843. return xxx_messageInfo_AuthUserDeleteResponse.Marshal(b, m, deterministic)
  4844. } else {
  4845. b = b[:cap(b)]
  4846. n, err := m.MarshalToSizedBuffer(b)
  4847. if err != nil {
  4848. return nil, err
  4849. }
  4850. return b[:n], nil
  4851. }
  4852. }
  4853. func (m *AuthUserDeleteResponse) XXX_Merge(src proto.Message) {
  4854. xxx_messageInfo_AuthUserDeleteResponse.Merge(m, src)
  4855. }
  4856. func (m *AuthUserDeleteResponse) XXX_Size() int {
  4857. return m.Size()
  4858. }
  4859. func (m *AuthUserDeleteResponse) XXX_DiscardUnknown() {
  4860. xxx_messageInfo_AuthUserDeleteResponse.DiscardUnknown(m)
  4861. }
  4862. var xxx_messageInfo_AuthUserDeleteResponse proto.InternalMessageInfo
  4863. func (m *AuthUserDeleteResponse) GetHeader() *ResponseHeader {
  4864. if m != nil {
  4865. return m.Header
  4866. }
  4867. return nil
  4868. }
  4869. type AuthUserChangePasswordResponse struct {
  4870. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  4871. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4872. XXX_unrecognized []byte `json:"-"`
  4873. XXX_sizecache int32 `json:"-"`
  4874. }
  4875. func (m *AuthUserChangePasswordResponse) Reset() { *m = AuthUserChangePasswordResponse{} }
  4876. func (m *AuthUserChangePasswordResponse) String() string { return proto.CompactTextString(m) }
  4877. func (*AuthUserChangePasswordResponse) ProtoMessage() {}
  4878. func (*AuthUserChangePasswordResponse) Descriptor() ([]byte, []int) {
  4879. return fileDescriptor_77a6da22d6a3feb1, []int{76}
  4880. }
  4881. func (m *AuthUserChangePasswordResponse) XXX_Unmarshal(b []byte) error {
  4882. return m.Unmarshal(b)
  4883. }
  4884. func (m *AuthUserChangePasswordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4885. if deterministic {
  4886. return xxx_messageInfo_AuthUserChangePasswordResponse.Marshal(b, m, deterministic)
  4887. } else {
  4888. b = b[:cap(b)]
  4889. n, err := m.MarshalToSizedBuffer(b)
  4890. if err != nil {
  4891. return nil, err
  4892. }
  4893. return b[:n], nil
  4894. }
  4895. }
  4896. func (m *AuthUserChangePasswordResponse) XXX_Merge(src proto.Message) {
  4897. xxx_messageInfo_AuthUserChangePasswordResponse.Merge(m, src)
  4898. }
  4899. func (m *AuthUserChangePasswordResponse) XXX_Size() int {
  4900. return m.Size()
  4901. }
  4902. func (m *AuthUserChangePasswordResponse) XXX_DiscardUnknown() {
  4903. xxx_messageInfo_AuthUserChangePasswordResponse.DiscardUnknown(m)
  4904. }
  4905. var xxx_messageInfo_AuthUserChangePasswordResponse proto.InternalMessageInfo
  4906. func (m *AuthUserChangePasswordResponse) GetHeader() *ResponseHeader {
  4907. if m != nil {
  4908. return m.Header
  4909. }
  4910. return nil
  4911. }
  4912. type AuthUserGrantRoleResponse struct {
  4913. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  4914. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4915. XXX_unrecognized []byte `json:"-"`
  4916. XXX_sizecache int32 `json:"-"`
  4917. }
  4918. func (m *AuthUserGrantRoleResponse) Reset() { *m = AuthUserGrantRoleResponse{} }
  4919. func (m *AuthUserGrantRoleResponse) String() string { return proto.CompactTextString(m) }
  4920. func (*AuthUserGrantRoleResponse) ProtoMessage() {}
  4921. func (*AuthUserGrantRoleResponse) Descriptor() ([]byte, []int) {
  4922. return fileDescriptor_77a6da22d6a3feb1, []int{77}
  4923. }
  4924. func (m *AuthUserGrantRoleResponse) XXX_Unmarshal(b []byte) error {
  4925. return m.Unmarshal(b)
  4926. }
  4927. func (m *AuthUserGrantRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4928. if deterministic {
  4929. return xxx_messageInfo_AuthUserGrantRoleResponse.Marshal(b, m, deterministic)
  4930. } else {
  4931. b = b[:cap(b)]
  4932. n, err := m.MarshalToSizedBuffer(b)
  4933. if err != nil {
  4934. return nil, err
  4935. }
  4936. return b[:n], nil
  4937. }
  4938. }
  4939. func (m *AuthUserGrantRoleResponse) XXX_Merge(src proto.Message) {
  4940. xxx_messageInfo_AuthUserGrantRoleResponse.Merge(m, src)
  4941. }
  4942. func (m *AuthUserGrantRoleResponse) XXX_Size() int {
  4943. return m.Size()
  4944. }
  4945. func (m *AuthUserGrantRoleResponse) XXX_DiscardUnknown() {
  4946. xxx_messageInfo_AuthUserGrantRoleResponse.DiscardUnknown(m)
  4947. }
  4948. var xxx_messageInfo_AuthUserGrantRoleResponse proto.InternalMessageInfo
  4949. func (m *AuthUserGrantRoleResponse) GetHeader() *ResponseHeader {
  4950. if m != nil {
  4951. return m.Header
  4952. }
  4953. return nil
  4954. }
  4955. type AuthUserRevokeRoleResponse struct {
  4956. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  4957. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4958. XXX_unrecognized []byte `json:"-"`
  4959. XXX_sizecache int32 `json:"-"`
  4960. }
  4961. func (m *AuthUserRevokeRoleResponse) Reset() { *m = AuthUserRevokeRoleResponse{} }
  4962. func (m *AuthUserRevokeRoleResponse) String() string { return proto.CompactTextString(m) }
  4963. func (*AuthUserRevokeRoleResponse) ProtoMessage() {}
  4964. func (*AuthUserRevokeRoleResponse) Descriptor() ([]byte, []int) {
  4965. return fileDescriptor_77a6da22d6a3feb1, []int{78}
  4966. }
  4967. func (m *AuthUserRevokeRoleResponse) XXX_Unmarshal(b []byte) error {
  4968. return m.Unmarshal(b)
  4969. }
  4970. func (m *AuthUserRevokeRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4971. if deterministic {
  4972. return xxx_messageInfo_AuthUserRevokeRoleResponse.Marshal(b, m, deterministic)
  4973. } else {
  4974. b = b[:cap(b)]
  4975. n, err := m.MarshalToSizedBuffer(b)
  4976. if err != nil {
  4977. return nil, err
  4978. }
  4979. return b[:n], nil
  4980. }
  4981. }
  4982. func (m *AuthUserRevokeRoleResponse) XXX_Merge(src proto.Message) {
  4983. xxx_messageInfo_AuthUserRevokeRoleResponse.Merge(m, src)
  4984. }
  4985. func (m *AuthUserRevokeRoleResponse) XXX_Size() int {
  4986. return m.Size()
  4987. }
  4988. func (m *AuthUserRevokeRoleResponse) XXX_DiscardUnknown() {
  4989. xxx_messageInfo_AuthUserRevokeRoleResponse.DiscardUnknown(m)
  4990. }
  4991. var xxx_messageInfo_AuthUserRevokeRoleResponse proto.InternalMessageInfo
  4992. func (m *AuthUserRevokeRoleResponse) GetHeader() *ResponseHeader {
  4993. if m != nil {
  4994. return m.Header
  4995. }
  4996. return nil
  4997. }
  4998. type AuthRoleAddResponse struct {
  4999. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  5000. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5001. XXX_unrecognized []byte `json:"-"`
  5002. XXX_sizecache int32 `json:"-"`
  5003. }
  5004. func (m *AuthRoleAddResponse) Reset() { *m = AuthRoleAddResponse{} }
  5005. func (m *AuthRoleAddResponse) String() string { return proto.CompactTextString(m) }
  5006. func (*AuthRoleAddResponse) ProtoMessage() {}
  5007. func (*AuthRoleAddResponse) Descriptor() ([]byte, []int) {
  5008. return fileDescriptor_77a6da22d6a3feb1, []int{79}
  5009. }
  5010. func (m *AuthRoleAddResponse) XXX_Unmarshal(b []byte) error {
  5011. return m.Unmarshal(b)
  5012. }
  5013. func (m *AuthRoleAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5014. if deterministic {
  5015. return xxx_messageInfo_AuthRoleAddResponse.Marshal(b, m, deterministic)
  5016. } else {
  5017. b = b[:cap(b)]
  5018. n, err := m.MarshalToSizedBuffer(b)
  5019. if err != nil {
  5020. return nil, err
  5021. }
  5022. return b[:n], nil
  5023. }
  5024. }
  5025. func (m *AuthRoleAddResponse) XXX_Merge(src proto.Message) {
  5026. xxx_messageInfo_AuthRoleAddResponse.Merge(m, src)
  5027. }
  5028. func (m *AuthRoleAddResponse) XXX_Size() int {
  5029. return m.Size()
  5030. }
  5031. func (m *AuthRoleAddResponse) XXX_DiscardUnknown() {
  5032. xxx_messageInfo_AuthRoleAddResponse.DiscardUnknown(m)
  5033. }
  5034. var xxx_messageInfo_AuthRoleAddResponse proto.InternalMessageInfo
  5035. func (m *AuthRoleAddResponse) GetHeader() *ResponseHeader {
  5036. if m != nil {
  5037. return m.Header
  5038. }
  5039. return nil
  5040. }
  5041. type AuthRoleGetResponse struct {
  5042. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  5043. Perm []*authpb.Permission `protobuf:"bytes,2,rep,name=perm,proto3" json:"perm,omitempty"`
  5044. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5045. XXX_unrecognized []byte `json:"-"`
  5046. XXX_sizecache int32 `json:"-"`
  5047. }
  5048. func (m *AuthRoleGetResponse) Reset() { *m = AuthRoleGetResponse{} }
  5049. func (m *AuthRoleGetResponse) String() string { return proto.CompactTextString(m) }
  5050. func (*AuthRoleGetResponse) ProtoMessage() {}
  5051. func (*AuthRoleGetResponse) Descriptor() ([]byte, []int) {
  5052. return fileDescriptor_77a6da22d6a3feb1, []int{80}
  5053. }
  5054. func (m *AuthRoleGetResponse) XXX_Unmarshal(b []byte) error {
  5055. return m.Unmarshal(b)
  5056. }
  5057. func (m *AuthRoleGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5058. if deterministic {
  5059. return xxx_messageInfo_AuthRoleGetResponse.Marshal(b, m, deterministic)
  5060. } else {
  5061. b = b[:cap(b)]
  5062. n, err := m.MarshalToSizedBuffer(b)
  5063. if err != nil {
  5064. return nil, err
  5065. }
  5066. return b[:n], nil
  5067. }
  5068. }
  5069. func (m *AuthRoleGetResponse) XXX_Merge(src proto.Message) {
  5070. xxx_messageInfo_AuthRoleGetResponse.Merge(m, src)
  5071. }
  5072. func (m *AuthRoleGetResponse) XXX_Size() int {
  5073. return m.Size()
  5074. }
  5075. func (m *AuthRoleGetResponse) XXX_DiscardUnknown() {
  5076. xxx_messageInfo_AuthRoleGetResponse.DiscardUnknown(m)
  5077. }
  5078. var xxx_messageInfo_AuthRoleGetResponse proto.InternalMessageInfo
  5079. func (m *AuthRoleGetResponse) GetHeader() *ResponseHeader {
  5080. if m != nil {
  5081. return m.Header
  5082. }
  5083. return nil
  5084. }
  5085. func (m *AuthRoleGetResponse) GetPerm() []*authpb.Permission {
  5086. if m != nil {
  5087. return m.Perm
  5088. }
  5089. return nil
  5090. }
  5091. type AuthRoleListResponse struct {
  5092. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  5093. Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
  5094. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5095. XXX_unrecognized []byte `json:"-"`
  5096. XXX_sizecache int32 `json:"-"`
  5097. }
  5098. func (m *AuthRoleListResponse) Reset() { *m = AuthRoleListResponse{} }
  5099. func (m *AuthRoleListResponse) String() string { return proto.CompactTextString(m) }
  5100. func (*AuthRoleListResponse) ProtoMessage() {}
  5101. func (*AuthRoleListResponse) Descriptor() ([]byte, []int) {
  5102. return fileDescriptor_77a6da22d6a3feb1, []int{81}
  5103. }
  5104. func (m *AuthRoleListResponse) XXX_Unmarshal(b []byte) error {
  5105. return m.Unmarshal(b)
  5106. }
  5107. func (m *AuthRoleListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5108. if deterministic {
  5109. return xxx_messageInfo_AuthRoleListResponse.Marshal(b, m, deterministic)
  5110. } else {
  5111. b = b[:cap(b)]
  5112. n, err := m.MarshalToSizedBuffer(b)
  5113. if err != nil {
  5114. return nil, err
  5115. }
  5116. return b[:n], nil
  5117. }
  5118. }
  5119. func (m *AuthRoleListResponse) XXX_Merge(src proto.Message) {
  5120. xxx_messageInfo_AuthRoleListResponse.Merge(m, src)
  5121. }
  5122. func (m *AuthRoleListResponse) XXX_Size() int {
  5123. return m.Size()
  5124. }
  5125. func (m *AuthRoleListResponse) XXX_DiscardUnknown() {
  5126. xxx_messageInfo_AuthRoleListResponse.DiscardUnknown(m)
  5127. }
  5128. var xxx_messageInfo_AuthRoleListResponse proto.InternalMessageInfo
  5129. func (m *AuthRoleListResponse) GetHeader() *ResponseHeader {
  5130. if m != nil {
  5131. return m.Header
  5132. }
  5133. return nil
  5134. }
  5135. func (m *AuthRoleListResponse) GetRoles() []string {
  5136. if m != nil {
  5137. return m.Roles
  5138. }
  5139. return nil
  5140. }
  5141. type AuthUserListResponse struct {
  5142. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  5143. Users []string `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
  5144. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5145. XXX_unrecognized []byte `json:"-"`
  5146. XXX_sizecache int32 `json:"-"`
  5147. }
  5148. func (m *AuthUserListResponse) Reset() { *m = AuthUserListResponse{} }
  5149. func (m *AuthUserListResponse) String() string { return proto.CompactTextString(m) }
  5150. func (*AuthUserListResponse) ProtoMessage() {}
  5151. func (*AuthUserListResponse) Descriptor() ([]byte, []int) {
  5152. return fileDescriptor_77a6da22d6a3feb1, []int{82}
  5153. }
  5154. func (m *AuthUserListResponse) XXX_Unmarshal(b []byte) error {
  5155. return m.Unmarshal(b)
  5156. }
  5157. func (m *AuthUserListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5158. if deterministic {
  5159. return xxx_messageInfo_AuthUserListResponse.Marshal(b, m, deterministic)
  5160. } else {
  5161. b = b[:cap(b)]
  5162. n, err := m.MarshalToSizedBuffer(b)
  5163. if err != nil {
  5164. return nil, err
  5165. }
  5166. return b[:n], nil
  5167. }
  5168. }
  5169. func (m *AuthUserListResponse) XXX_Merge(src proto.Message) {
  5170. xxx_messageInfo_AuthUserListResponse.Merge(m, src)
  5171. }
  5172. func (m *AuthUserListResponse) XXX_Size() int {
  5173. return m.Size()
  5174. }
  5175. func (m *AuthUserListResponse) XXX_DiscardUnknown() {
  5176. xxx_messageInfo_AuthUserListResponse.DiscardUnknown(m)
  5177. }
  5178. var xxx_messageInfo_AuthUserListResponse proto.InternalMessageInfo
  5179. func (m *AuthUserListResponse) GetHeader() *ResponseHeader {
  5180. if m != nil {
  5181. return m.Header
  5182. }
  5183. return nil
  5184. }
  5185. func (m *AuthUserListResponse) GetUsers() []string {
  5186. if m != nil {
  5187. return m.Users
  5188. }
  5189. return nil
  5190. }
  5191. type AuthRoleDeleteResponse struct {
  5192. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  5193. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5194. XXX_unrecognized []byte `json:"-"`
  5195. XXX_sizecache int32 `json:"-"`
  5196. }
  5197. func (m *AuthRoleDeleteResponse) Reset() { *m = AuthRoleDeleteResponse{} }
  5198. func (m *AuthRoleDeleteResponse) String() string { return proto.CompactTextString(m) }
  5199. func (*AuthRoleDeleteResponse) ProtoMessage() {}
  5200. func (*AuthRoleDeleteResponse) Descriptor() ([]byte, []int) {
  5201. return fileDescriptor_77a6da22d6a3feb1, []int{83}
  5202. }
  5203. func (m *AuthRoleDeleteResponse) XXX_Unmarshal(b []byte) error {
  5204. return m.Unmarshal(b)
  5205. }
  5206. func (m *AuthRoleDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5207. if deterministic {
  5208. return xxx_messageInfo_AuthRoleDeleteResponse.Marshal(b, m, deterministic)
  5209. } else {
  5210. b = b[:cap(b)]
  5211. n, err := m.MarshalToSizedBuffer(b)
  5212. if err != nil {
  5213. return nil, err
  5214. }
  5215. return b[:n], nil
  5216. }
  5217. }
  5218. func (m *AuthRoleDeleteResponse) XXX_Merge(src proto.Message) {
  5219. xxx_messageInfo_AuthRoleDeleteResponse.Merge(m, src)
  5220. }
  5221. func (m *AuthRoleDeleteResponse) XXX_Size() int {
  5222. return m.Size()
  5223. }
  5224. func (m *AuthRoleDeleteResponse) XXX_DiscardUnknown() {
  5225. xxx_messageInfo_AuthRoleDeleteResponse.DiscardUnknown(m)
  5226. }
  5227. var xxx_messageInfo_AuthRoleDeleteResponse proto.InternalMessageInfo
  5228. func (m *AuthRoleDeleteResponse) GetHeader() *ResponseHeader {
  5229. if m != nil {
  5230. return m.Header
  5231. }
  5232. return nil
  5233. }
  5234. type AuthRoleGrantPermissionResponse struct {
  5235. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  5236. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5237. XXX_unrecognized []byte `json:"-"`
  5238. XXX_sizecache int32 `json:"-"`
  5239. }
  5240. func (m *AuthRoleGrantPermissionResponse) Reset() { *m = AuthRoleGrantPermissionResponse{} }
  5241. func (m *AuthRoleGrantPermissionResponse) String() string { return proto.CompactTextString(m) }
  5242. func (*AuthRoleGrantPermissionResponse) ProtoMessage() {}
  5243. func (*AuthRoleGrantPermissionResponse) Descriptor() ([]byte, []int) {
  5244. return fileDescriptor_77a6da22d6a3feb1, []int{84}
  5245. }
  5246. func (m *AuthRoleGrantPermissionResponse) XXX_Unmarshal(b []byte) error {
  5247. return m.Unmarshal(b)
  5248. }
  5249. func (m *AuthRoleGrantPermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5250. if deterministic {
  5251. return xxx_messageInfo_AuthRoleGrantPermissionResponse.Marshal(b, m, deterministic)
  5252. } else {
  5253. b = b[:cap(b)]
  5254. n, err := m.MarshalToSizedBuffer(b)
  5255. if err != nil {
  5256. return nil, err
  5257. }
  5258. return b[:n], nil
  5259. }
  5260. }
  5261. func (m *AuthRoleGrantPermissionResponse) XXX_Merge(src proto.Message) {
  5262. xxx_messageInfo_AuthRoleGrantPermissionResponse.Merge(m, src)
  5263. }
  5264. func (m *AuthRoleGrantPermissionResponse) XXX_Size() int {
  5265. return m.Size()
  5266. }
  5267. func (m *AuthRoleGrantPermissionResponse) XXX_DiscardUnknown() {
  5268. xxx_messageInfo_AuthRoleGrantPermissionResponse.DiscardUnknown(m)
  5269. }
  5270. var xxx_messageInfo_AuthRoleGrantPermissionResponse proto.InternalMessageInfo
  5271. func (m *AuthRoleGrantPermissionResponse) GetHeader() *ResponseHeader {
  5272. if m != nil {
  5273. return m.Header
  5274. }
  5275. return nil
  5276. }
  5277. type AuthRoleRevokePermissionResponse struct {
  5278. Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  5279. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5280. XXX_unrecognized []byte `json:"-"`
  5281. XXX_sizecache int32 `json:"-"`
  5282. }
  5283. func (m *AuthRoleRevokePermissionResponse) Reset() { *m = AuthRoleRevokePermissionResponse{} }
  5284. func (m *AuthRoleRevokePermissionResponse) String() string { return proto.CompactTextString(m) }
  5285. func (*AuthRoleRevokePermissionResponse) ProtoMessage() {}
  5286. func (*AuthRoleRevokePermissionResponse) Descriptor() ([]byte, []int) {
  5287. return fileDescriptor_77a6da22d6a3feb1, []int{85}
  5288. }
  5289. func (m *AuthRoleRevokePermissionResponse) XXX_Unmarshal(b []byte) error {
  5290. return m.Unmarshal(b)
  5291. }
  5292. func (m *AuthRoleRevokePermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5293. if deterministic {
  5294. return xxx_messageInfo_AuthRoleRevokePermissionResponse.Marshal(b, m, deterministic)
  5295. } else {
  5296. b = b[:cap(b)]
  5297. n, err := m.MarshalToSizedBuffer(b)
  5298. if err != nil {
  5299. return nil, err
  5300. }
  5301. return b[:n], nil
  5302. }
  5303. }
  5304. func (m *AuthRoleRevokePermissionResponse) XXX_Merge(src proto.Message) {
  5305. xxx_messageInfo_AuthRoleRevokePermissionResponse.Merge(m, src)
  5306. }
  5307. func (m *AuthRoleRevokePermissionResponse) XXX_Size() int {
  5308. return m.Size()
  5309. }
  5310. func (m *AuthRoleRevokePermissionResponse) XXX_DiscardUnknown() {
  5311. xxx_messageInfo_AuthRoleRevokePermissionResponse.DiscardUnknown(m)
  5312. }
  5313. var xxx_messageInfo_AuthRoleRevokePermissionResponse proto.InternalMessageInfo
  5314. func (m *AuthRoleRevokePermissionResponse) GetHeader() *ResponseHeader {
  5315. if m != nil {
  5316. return m.Header
  5317. }
  5318. return nil
  5319. }
  5320. func init() {
  5321. proto.RegisterEnum("etcdserverpb.AlarmType", AlarmType_name, AlarmType_value)
  5322. proto.RegisterEnum("etcdserverpb.RangeRequest_SortOrder", RangeRequest_SortOrder_name, RangeRequest_SortOrder_value)
  5323. proto.RegisterEnum("etcdserverpb.RangeRequest_SortTarget", RangeRequest_SortTarget_name, RangeRequest_SortTarget_value)
  5324. proto.RegisterEnum("etcdserverpb.Compare_CompareResult", Compare_CompareResult_name, Compare_CompareResult_value)
  5325. proto.RegisterEnum("etcdserverpb.Compare_CompareTarget", Compare_CompareTarget_name, Compare_CompareTarget_value)
  5326. proto.RegisterEnum("etcdserverpb.WatchCreateRequest_FilterType", WatchCreateRequest_FilterType_name, WatchCreateRequest_FilterType_value)
  5327. proto.RegisterEnum("etcdserverpb.AlarmRequest_AlarmAction", AlarmRequest_AlarmAction_name, AlarmRequest_AlarmAction_value)
  5328. proto.RegisterType((*ResponseHeader)(nil), "etcdserverpb.ResponseHeader")
  5329. proto.RegisterType((*RangeRequest)(nil), "etcdserverpb.RangeRequest")
  5330. proto.RegisterType((*RangeResponse)(nil), "etcdserverpb.RangeResponse")
  5331. proto.RegisterType((*PutRequest)(nil), "etcdserverpb.PutRequest")
  5332. proto.RegisterType((*PutResponse)(nil), "etcdserverpb.PutResponse")
  5333. proto.RegisterType((*DeleteRangeRequest)(nil), "etcdserverpb.DeleteRangeRequest")
  5334. proto.RegisterType((*DeleteRangeResponse)(nil), "etcdserverpb.DeleteRangeResponse")
  5335. proto.RegisterType((*RequestOp)(nil), "etcdserverpb.RequestOp")
  5336. proto.RegisterType((*ResponseOp)(nil), "etcdserverpb.ResponseOp")
  5337. proto.RegisterType((*Compare)(nil), "etcdserverpb.Compare")
  5338. proto.RegisterType((*TxnRequest)(nil), "etcdserverpb.TxnRequest")
  5339. proto.RegisterType((*TxnResponse)(nil), "etcdserverpb.TxnResponse")
  5340. proto.RegisterType((*CompactionRequest)(nil), "etcdserverpb.CompactionRequest")
  5341. proto.RegisterType((*CompactionResponse)(nil), "etcdserverpb.CompactionResponse")
  5342. proto.RegisterType((*HashRequest)(nil), "etcdserverpb.HashRequest")
  5343. proto.RegisterType((*HashKVRequest)(nil), "etcdserverpb.HashKVRequest")
  5344. proto.RegisterType((*HashKVResponse)(nil), "etcdserverpb.HashKVResponse")
  5345. proto.RegisterType((*HashResponse)(nil), "etcdserverpb.HashResponse")
  5346. proto.RegisterType((*SnapshotRequest)(nil), "etcdserverpb.SnapshotRequest")
  5347. proto.RegisterType((*SnapshotResponse)(nil), "etcdserverpb.SnapshotResponse")
  5348. proto.RegisterType((*WatchRequest)(nil), "etcdserverpb.WatchRequest")
  5349. proto.RegisterType((*WatchCreateRequest)(nil), "etcdserverpb.WatchCreateRequest")
  5350. proto.RegisterType((*WatchCancelRequest)(nil), "etcdserverpb.WatchCancelRequest")
  5351. proto.RegisterType((*WatchProgressRequest)(nil), "etcdserverpb.WatchProgressRequest")
  5352. proto.RegisterType((*WatchResponse)(nil), "etcdserverpb.WatchResponse")
  5353. proto.RegisterType((*LeaseGrantRequest)(nil), "etcdserverpb.LeaseGrantRequest")
  5354. proto.RegisterType((*LeaseGrantResponse)(nil), "etcdserverpb.LeaseGrantResponse")
  5355. proto.RegisterType((*LeaseRevokeRequest)(nil), "etcdserverpb.LeaseRevokeRequest")
  5356. proto.RegisterType((*LeaseRevokeResponse)(nil), "etcdserverpb.LeaseRevokeResponse")
  5357. proto.RegisterType((*LeaseKeepAliveRequest)(nil), "etcdserverpb.LeaseKeepAliveRequest")
  5358. proto.RegisterType((*LeaseKeepAliveResponse)(nil), "etcdserverpb.LeaseKeepAliveResponse")
  5359. proto.RegisterType((*LeaseTimeToLiveRequest)(nil), "etcdserverpb.LeaseTimeToLiveRequest")
  5360. proto.RegisterType((*LeaseTimeToLiveResponse)(nil), "etcdserverpb.LeaseTimeToLiveResponse")
  5361. proto.RegisterType((*LeaseLeasesRequest)(nil), "etcdserverpb.LeaseLeasesRequest")
  5362. proto.RegisterType((*LeaseStatus)(nil), "etcdserverpb.LeaseStatus")
  5363. proto.RegisterType((*LeaseLeasesResponse)(nil), "etcdserverpb.LeaseLeasesResponse")
  5364. proto.RegisterType((*Member)(nil), "etcdserverpb.Member")
  5365. proto.RegisterType((*MemberAddRequest)(nil), "etcdserverpb.MemberAddRequest")
  5366. proto.RegisterType((*MemberAddResponse)(nil), "etcdserverpb.MemberAddResponse")
  5367. proto.RegisterType((*MemberRemoveRequest)(nil), "etcdserverpb.MemberRemoveRequest")
  5368. proto.RegisterType((*MemberRemoveResponse)(nil), "etcdserverpb.MemberRemoveResponse")
  5369. proto.RegisterType((*MemberUpdateRequest)(nil), "etcdserverpb.MemberUpdateRequest")
  5370. proto.RegisterType((*MemberUpdateResponse)(nil), "etcdserverpb.MemberUpdateResponse")
  5371. proto.RegisterType((*MemberListRequest)(nil), "etcdserverpb.MemberListRequest")
  5372. proto.RegisterType((*MemberListResponse)(nil), "etcdserverpb.MemberListResponse")
  5373. proto.RegisterType((*DefragmentRequest)(nil), "etcdserverpb.DefragmentRequest")
  5374. proto.RegisterType((*DefragmentResponse)(nil), "etcdserverpb.DefragmentResponse")
  5375. proto.RegisterType((*MoveLeaderRequest)(nil), "etcdserverpb.MoveLeaderRequest")
  5376. proto.RegisterType((*MoveLeaderResponse)(nil), "etcdserverpb.MoveLeaderResponse")
  5377. proto.RegisterType((*AlarmRequest)(nil), "etcdserverpb.AlarmRequest")
  5378. proto.RegisterType((*AlarmMember)(nil), "etcdserverpb.AlarmMember")
  5379. proto.RegisterType((*AlarmResponse)(nil), "etcdserverpb.AlarmResponse")
  5380. proto.RegisterType((*StatusRequest)(nil), "etcdserverpb.StatusRequest")
  5381. proto.RegisterType((*StatusResponse)(nil), "etcdserverpb.StatusResponse")
  5382. proto.RegisterType((*AuthEnableRequest)(nil), "etcdserverpb.AuthEnableRequest")
  5383. proto.RegisterType((*AuthDisableRequest)(nil), "etcdserverpb.AuthDisableRequest")
  5384. proto.RegisterType((*AuthenticateRequest)(nil), "etcdserverpb.AuthenticateRequest")
  5385. proto.RegisterType((*AuthUserAddRequest)(nil), "etcdserverpb.AuthUserAddRequest")
  5386. proto.RegisterType((*AuthUserGetRequest)(nil), "etcdserverpb.AuthUserGetRequest")
  5387. proto.RegisterType((*AuthUserDeleteRequest)(nil), "etcdserverpb.AuthUserDeleteRequest")
  5388. proto.RegisterType((*AuthUserChangePasswordRequest)(nil), "etcdserverpb.AuthUserChangePasswordRequest")
  5389. proto.RegisterType((*AuthUserGrantRoleRequest)(nil), "etcdserverpb.AuthUserGrantRoleRequest")
  5390. proto.RegisterType((*AuthUserRevokeRoleRequest)(nil), "etcdserverpb.AuthUserRevokeRoleRequest")
  5391. proto.RegisterType((*AuthRoleAddRequest)(nil), "etcdserverpb.AuthRoleAddRequest")
  5392. proto.RegisterType((*AuthRoleGetRequest)(nil), "etcdserverpb.AuthRoleGetRequest")
  5393. proto.RegisterType((*AuthUserListRequest)(nil), "etcdserverpb.AuthUserListRequest")
  5394. proto.RegisterType((*AuthRoleListRequest)(nil), "etcdserverpb.AuthRoleListRequest")
  5395. proto.RegisterType((*AuthRoleDeleteRequest)(nil), "etcdserverpb.AuthRoleDeleteRequest")
  5396. proto.RegisterType((*AuthRoleGrantPermissionRequest)(nil), "etcdserverpb.AuthRoleGrantPermissionRequest")
  5397. proto.RegisterType((*AuthRoleRevokePermissionRequest)(nil), "etcdserverpb.AuthRoleRevokePermissionRequest")
  5398. proto.RegisterType((*AuthEnableResponse)(nil), "etcdserverpb.AuthEnableResponse")
  5399. proto.RegisterType((*AuthDisableResponse)(nil), "etcdserverpb.AuthDisableResponse")
  5400. proto.RegisterType((*AuthenticateResponse)(nil), "etcdserverpb.AuthenticateResponse")
  5401. proto.RegisterType((*AuthUserAddResponse)(nil), "etcdserverpb.AuthUserAddResponse")
  5402. proto.RegisterType((*AuthUserGetResponse)(nil), "etcdserverpb.AuthUserGetResponse")
  5403. proto.RegisterType((*AuthUserDeleteResponse)(nil), "etcdserverpb.AuthUserDeleteResponse")
  5404. proto.RegisterType((*AuthUserChangePasswordResponse)(nil), "etcdserverpb.AuthUserChangePasswordResponse")
  5405. proto.RegisterType((*AuthUserGrantRoleResponse)(nil), "etcdserverpb.AuthUserGrantRoleResponse")
  5406. proto.RegisterType((*AuthUserRevokeRoleResponse)(nil), "etcdserverpb.AuthUserRevokeRoleResponse")
  5407. proto.RegisterType((*AuthRoleAddResponse)(nil), "etcdserverpb.AuthRoleAddResponse")
  5408. proto.RegisterType((*AuthRoleGetResponse)(nil), "etcdserverpb.AuthRoleGetResponse")
  5409. proto.RegisterType((*AuthRoleListResponse)(nil), "etcdserverpb.AuthRoleListResponse")
  5410. proto.RegisterType((*AuthUserListResponse)(nil), "etcdserverpb.AuthUserListResponse")
  5411. proto.RegisterType((*AuthRoleDeleteResponse)(nil), "etcdserverpb.AuthRoleDeleteResponse")
  5412. proto.RegisterType((*AuthRoleGrantPermissionResponse)(nil), "etcdserverpb.AuthRoleGrantPermissionResponse")
  5413. proto.RegisterType((*AuthRoleRevokePermissionResponse)(nil), "etcdserverpb.AuthRoleRevokePermissionResponse")
  5414. }
  5415. func init() { proto.RegisterFile("rpc.proto", fileDescriptor_77a6da22d6a3feb1) }
  5416. var fileDescriptor_77a6da22d6a3feb1 = []byte{
  5417. // 3711 bytes of a gzipped FileDescriptorProto
  5418. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5b, 0x5b, 0x73, 0x1b, 0x47,
  5419. 0x76, 0xe6, 0x00, 0x04, 0x40, 0x1c, 0x5c, 0x08, 0x35, 0x29, 0x09, 0x84, 0x24, 0x8a, 0x6a, 0xdd,
  5420. 0xa8, 0x8b, 0x09, 0x9b, 0x76, 0xf2, 0xa0, 0xa4, 0x5c, 0xa6, 0x48, 0x58, 0xa4, 0x49, 0x91, 0xf4,
  5421. 0x10, 0x94, 0x9d, 0x2a, 0x27, 0xac, 0x21, 0xd0, 0x22, 0x11, 0x02, 0x33, 0xc8, 0xcc, 0x00, 0x22,
  5422. 0x15, 0x57, 0x52, 0xe5, 0x38, 0xae, 0x3c, 0xc7, 0x55, 0xa9, 0x24, 0xaf, 0x5b, 0x5b, 0x2e, 0xff,
  5423. 0x82, 0xfd, 0x0b, 0x5b, 0xfb, 0xb2, 0xbb, 0xb5, 0x7f, 0x60, 0xcb, 0xbb, 0x2f, 0xfb, 0x0b, 0xf6,
  5424. 0xf2, 0xb4, 0xd5, 0xb7, 0x99, 0x9e, 0x1b, 0x48, 0x1b, 0xb6, 0x5f, 0xa8, 0xe9, 0xd3, 0xa7, 0xcf,
  5425. 0x39, 0x7d, 0xba, 0xcf, 0x39, 0xdd, 0x5f, 0x43, 0x90, 0xb7, 0xfb, 0xad, 0xa5, 0xbe, 0x6d, 0xb9,
  5426. 0x16, 0x2a, 0x12, 0xb7, 0xd5, 0x76, 0x88, 0x3d, 0x24, 0x76, 0xff, 0xb0, 0x36, 0x7b, 0x64, 0x1d,
  5427. 0x59, 0xac, 0xa3, 0x4e, 0xbf, 0x38, 0x4f, 0x6d, 0x8e, 0xf2, 0xd4, 0x7b, 0xc3, 0x56, 0x8b, 0xfd,
  5428. 0xe9, 0x1f, 0xd6, 0x4f, 0x86, 0xa2, 0xeb, 0x1a, 0xeb, 0x32, 0x06, 0xee, 0x31, 0xfb, 0xd3, 0x3f,
  5429. 0x64, 0xff, 0x88, 0xce, 0xeb, 0x47, 0x96, 0x75, 0xd4, 0x25, 0x75, 0xa3, 0xdf, 0xa9, 0x1b, 0xa6,
  5430. 0x69, 0xb9, 0x86, 0xdb, 0xb1, 0x4c, 0x87, 0xf7, 0xe2, 0xff, 0xd4, 0xa0, 0xac, 0x13, 0xa7, 0x6f,
  5431. 0x99, 0x0e, 0x59, 0x27, 0x46, 0x9b, 0xd8, 0xe8, 0x06, 0x40, 0xab, 0x3b, 0x70, 0x5c, 0x62, 0x1f,
  5432. 0x74, 0xda, 0x55, 0x6d, 0x41, 0x5b, 0x9c, 0xd4, 0xf3, 0x82, 0xb2, 0xd1, 0x46, 0xd7, 0x20, 0xdf,
  5433. 0x23, 0xbd, 0x43, 0xde, 0x9b, 0x62, 0xbd, 0x53, 0x9c, 0xb0, 0xd1, 0x46, 0x35, 0x98, 0xb2, 0xc9,
  5434. 0xb0, 0xe3, 0x74, 0x2c, 0xb3, 0x9a, 0x5e, 0xd0, 0x16, 0xd3, 0xba, 0xd7, 0xa6, 0x03, 0x6d, 0xe3,
  5435. 0xa5, 0x7b, 0xe0, 0x12, 0xbb, 0x57, 0x9d, 0xe4, 0x03, 0x29, 0xa1, 0x49, 0xec, 0x1e, 0xfe, 0x3c,
  5436. 0x03, 0x45, 0xdd, 0x30, 0x8f, 0x88, 0x4e, 0xfe, 0x65, 0x40, 0x1c, 0x17, 0x55, 0x20, 0x7d, 0x42,
  5437. 0xce, 0x98, 0xfa, 0xa2, 0x4e, 0x3f, 0xf9, 0x78, 0xf3, 0x88, 0x1c, 0x10, 0x93, 0x2b, 0x2e, 0xd2,
  5438. 0xf1, 0xe6, 0x11, 0x69, 0x98, 0x6d, 0x34, 0x0b, 0x99, 0x6e, 0xa7, 0xd7, 0x71, 0x85, 0x56, 0xde,
  5439. 0x08, 0x98, 0x33, 0x19, 0x32, 0x67, 0x15, 0xc0, 0xb1, 0x6c, 0xf7, 0xc0, 0xb2, 0xdb, 0xc4, 0xae,
  5440. 0x66, 0x16, 0xb4, 0xc5, 0xf2, 0xf2, 0x9d, 0x25, 0x75, 0x21, 0x96, 0x54, 0x83, 0x96, 0xf6, 0x2c,
  5441. 0xdb, 0xdd, 0xa1, 0xbc, 0x7a, 0xde, 0x91, 0x9f, 0xe8, 0x7d, 0x28, 0x30, 0x21, 0xae, 0x61, 0x1f,
  5442. 0x11, 0xb7, 0x9a, 0x65, 0x52, 0xee, 0x9e, 0x23, 0xa5, 0xc9, 0x98, 0x75, 0xa6, 0x9e, 0x7f, 0x23,
  5443. 0x0c, 0x45, 0x87, 0xd8, 0x1d, 0xa3, 0xdb, 0x79, 0x6d, 0x1c, 0x76, 0x49, 0x35, 0xb7, 0xa0, 0x2d,
  5444. 0x4e, 0xe9, 0x01, 0x1a, 0x9d, 0xff, 0x09, 0x39, 0x73, 0x0e, 0x2c, 0xb3, 0x7b, 0x56, 0x9d, 0x62,
  5445. 0x0c, 0x53, 0x94, 0xb0, 0x63, 0x76, 0xcf, 0xd8, 0xa2, 0x59, 0x03, 0xd3, 0xe5, 0xbd, 0x79, 0xd6,
  5446. 0x9b, 0x67, 0x14, 0xd6, 0xbd, 0x08, 0x95, 0x5e, 0xc7, 0x3c, 0xe8, 0x59, 0xed, 0x03, 0xcf, 0x21,
  5447. 0xc0, 0x1c, 0x52, 0xee, 0x75, 0xcc, 0xe7, 0x56, 0x5b, 0x97, 0x6e, 0xa1, 0x9c, 0xc6, 0x69, 0x90,
  5448. 0xb3, 0x20, 0x38, 0x8d, 0x53, 0x95, 0x73, 0x09, 0x66, 0xa8, 0xcc, 0x96, 0x4d, 0x0c, 0x97, 0xf8,
  5449. 0xcc, 0x45, 0xc6, 0x7c, 0xa9, 0xd7, 0x31, 0x57, 0x59, 0x4f, 0x80, 0xdf, 0x38, 0x8d, 0xf0, 0x97,
  5450. 0x04, 0xbf, 0x71, 0x1a, 0xe4, 0xc7, 0x4b, 0x90, 0xf7, 0x7c, 0x8e, 0xa6, 0x60, 0x72, 0x7b, 0x67,
  5451. 0xbb, 0x51, 0x99, 0x40, 0x00, 0xd9, 0x95, 0xbd, 0xd5, 0xc6, 0xf6, 0x5a, 0x45, 0x43, 0x05, 0xc8,
  5452. 0xad, 0x35, 0x78, 0x23, 0x85, 0x9f, 0x02, 0xf8, 0xde, 0x45, 0x39, 0x48, 0x6f, 0x36, 0xfe, 0xa1,
  5453. 0x32, 0x41, 0x79, 0x5e, 0x34, 0xf4, 0xbd, 0x8d, 0x9d, 0xed, 0x8a, 0x46, 0x07, 0xaf, 0xea, 0x8d,
  5454. 0x95, 0x66, 0xa3, 0x92, 0xa2, 0x1c, 0xcf, 0x77, 0xd6, 0x2a, 0x69, 0x94, 0x87, 0xcc, 0x8b, 0x95,
  5455. 0xad, 0xfd, 0x46, 0x65, 0x12, 0x7f, 0xa9, 0x41, 0x49, 0xac, 0x17, 0x8f, 0x09, 0xf4, 0x0e, 0x64,
  5456. 0x8f, 0x59, 0x5c, 0xb0, 0xad, 0x58, 0x58, 0xbe, 0x1e, 0x5a, 0xdc, 0x40, 0xec, 0xe8, 0x82, 0x17,
  5457. 0x61, 0x48, 0x9f, 0x0c, 0x9d, 0x6a, 0x6a, 0x21, 0xbd, 0x58, 0x58, 0xae, 0x2c, 0xf1, 0x80, 0x5d,
  5458. 0xda, 0x24, 0x67, 0x2f, 0x8c, 0xee, 0x80, 0xe8, 0xb4, 0x13, 0x21, 0x98, 0xec, 0x59, 0x36, 0x61,
  5459. 0x3b, 0x76, 0x4a, 0x67, 0xdf, 0x74, 0x1b, 0xb3, 0x45, 0x13, 0xbb, 0x95, 0x37, 0xf0, 0xd7, 0x1a,
  5460. 0xc0, 0xee, 0xc0, 0x4d, 0x0e, 0x8d, 0x59, 0xc8, 0x0c, 0xa9, 0x60, 0x11, 0x16, 0xbc, 0xc1, 0x62,
  5461. 0x82, 0x18, 0x0e, 0xf1, 0x62, 0x82, 0x36, 0xd0, 0x55, 0xc8, 0xf5, 0x6d, 0x32, 0x3c, 0x38, 0x19,
  5462. 0x32, 0x25, 0x53, 0x7a, 0x96, 0x36, 0x37, 0x87, 0xe8, 0x16, 0x14, 0x3b, 0x47, 0xa6, 0x65, 0x93,
  5463. 0x03, 0x2e, 0x2b, 0xc3, 0x7a, 0x0b, 0x9c, 0xc6, 0xec, 0x56, 0x58, 0xb8, 0xe0, 0xac, 0xca, 0xb2,
  5464. 0x45, 0x49, 0xd8, 0x84, 0x02, 0x33, 0x75, 0x2c, 0xf7, 0x3d, 0xf0, 0x6d, 0x4c, 0xb1, 0x61, 0x51,
  5465. 0x17, 0x0a, 0xab, 0xf1, 0x27, 0x80, 0xd6, 0x48, 0x97, 0xb8, 0x64, 0x9c, 0xec, 0xa1, 0xf8, 0x24,
  5466. 0xad, 0xfa, 0x04, 0xff, 0xb7, 0x06, 0x33, 0x01, 0xf1, 0x63, 0x4d, 0xab, 0x0a, 0xb9, 0x36, 0x13,
  5467. 0xc6, 0x2d, 0x48, 0xeb, 0xb2, 0x89, 0x1e, 0xc1, 0x94, 0x30, 0xc0, 0xa9, 0xa6, 0x13, 0x36, 0x4d,
  5468. 0x8e, 0xdb, 0xe4, 0xe0, 0xaf, 0x53, 0x90, 0x17, 0x13, 0xdd, 0xe9, 0xa3, 0x15, 0x28, 0xd9, 0xbc,
  5469. 0x71, 0xc0, 0xe6, 0x23, 0x2c, 0xaa, 0x25, 0x27, 0xa1, 0xf5, 0x09, 0xbd, 0x28, 0x86, 0x30, 0x32,
  5470. 0xfa, 0x3b, 0x28, 0x48, 0x11, 0xfd, 0x81, 0x2b, 0x5c, 0x5e, 0x0d, 0x0a, 0xf0, 0xf7, 0xdf, 0xfa,
  5471. 0x84, 0x0e, 0x82, 0x7d, 0x77, 0xe0, 0xa2, 0x26, 0xcc, 0xca, 0xc1, 0x7c, 0x36, 0xc2, 0x8c, 0x34,
  5472. 0x93, 0xb2, 0x10, 0x94, 0x12, 0x5d, 0xaa, 0xf5, 0x09, 0x1d, 0x89, 0xf1, 0x4a, 0xa7, 0x6a, 0x92,
  5473. 0x7b, 0xca, 0x93, 0x77, 0xc4, 0xa4, 0xe6, 0xa9, 0x19, 0x35, 0xa9, 0x79, 0x6a, 0x3e, 0xcd, 0x43,
  5474. 0x4e, 0xb4, 0xf0, 0xcf, 0x52, 0x00, 0x72, 0x35, 0x76, 0xfa, 0x68, 0x0d, 0xca, 0xb6, 0x68, 0x05,
  5475. 0xbc, 0x75, 0x2d, 0xd6, 0x5b, 0x62, 0x11, 0x27, 0xf4, 0x92, 0x1c, 0xc4, 0x8d, 0x7b, 0x17, 0x8a,
  5476. 0x9e, 0x14, 0xdf, 0x61, 0x73, 0x31, 0x0e, 0xf3, 0x24, 0x14, 0xe4, 0x00, 0xea, 0xb2, 0x8f, 0xe0,
  5477. 0xb2, 0x37, 0x3e, 0xc6, 0x67, 0xb7, 0x46, 0xf8, 0xcc, 0x13, 0x38, 0x23, 0x25, 0xa8, 0x5e, 0x53,
  5478. 0x0d, 0xf3, 0xdd, 0x36, 0x17, 0xe3, 0xb6, 0xa8, 0x61, 0xd4, 0x71, 0x40, 0xeb, 0x25, 0x6f, 0xe2,
  5479. 0x3f, 0xa4, 0x21, 0xb7, 0x6a, 0xf5, 0xfa, 0x86, 0x4d, 0x57, 0x23, 0x6b, 0x13, 0x67, 0xd0, 0x75,
  5480. 0x99, 0xbb, 0xca, 0xcb, 0xb7, 0x83, 0x12, 0x05, 0x9b, 0xfc, 0x57, 0x67, 0xac, 0xba, 0x18, 0x42,
  5481. 0x07, 0x8b, 0xf2, 0x98, 0xba, 0xc0, 0x60, 0x51, 0x1c, 0xc5, 0x10, 0x19, 0xc8, 0x69, 0x3f, 0x90,
  5482. 0x6b, 0x90, 0x1b, 0x12, 0xdb, 0x2f, 0xe9, 0xeb, 0x13, 0xba, 0x24, 0xa0, 0x07, 0x30, 0x1d, 0x2e,
  5483. 0x2f, 0x19, 0xc1, 0x53, 0x6e, 0x05, 0xab, 0xd1, 0x6d, 0x28, 0x06, 0x6a, 0x5c, 0x56, 0xf0, 0x15,
  5484. 0x7a, 0x4a, 0x89, 0xbb, 0x22, 0xf3, 0x2a, 0xad, 0xc7, 0xc5, 0xf5, 0x09, 0x99, 0x59, 0xaf, 0xc8,
  5485. 0xcc, 0x3a, 0x25, 0x46, 0x89, 0xdc, 0x1a, 0x48, 0x32, 0xef, 0x05, 0x93, 0x0c, 0x7e, 0x0f, 0x4a,
  5486. 0x01, 0x07, 0xd1, 0xba, 0xd3, 0xf8, 0x70, 0x7f, 0x65, 0x8b, 0x17, 0xa9, 0x67, 0xac, 0x2e, 0xe9,
  5487. 0x15, 0x8d, 0xd6, 0xba, 0xad, 0xc6, 0xde, 0x5e, 0x25, 0x85, 0x4a, 0x90, 0xdf, 0xde, 0x69, 0x1e,
  5488. 0x70, 0xae, 0x34, 0x7e, 0xe6, 0x49, 0x10, 0x45, 0x4e, 0xa9, 0x6d, 0x13, 0x4a, 0x6d, 0xd3, 0x64,
  5489. 0x6d, 0x4b, 0xf9, 0xb5, 0x8d, 0x95, 0xb9, 0xad, 0xc6, 0xca, 0x5e, 0xa3, 0x32, 0xf9, 0xb4, 0x0c,
  5490. 0x45, 0xee, 0xdf, 0x83, 0x81, 0x49, 0x4b, 0xed, 0x4f, 0x34, 0x00, 0x3f, 0x9a, 0x50, 0x1d, 0x72,
  5491. 0x2d, 0xae, 0xa7, 0xaa, 0xb1, 0x64, 0x74, 0x39, 0x76, 0xc9, 0x74, 0xc9, 0x85, 0xde, 0x82, 0x9c,
  5492. 0x33, 0x68, 0xb5, 0x88, 0x23, 0x4b, 0xde, 0xd5, 0x70, 0x3e, 0x14, 0xd9, 0x4a, 0x97, 0x7c, 0x74,
  5493. 0xc8, 0x4b, 0xa3, 0xd3, 0x1d, 0xb0, 0x02, 0x38, 0x7a, 0x88, 0xe0, 0xc3, 0xff, 0xa7, 0x41, 0x41,
  5494. 0xd9, 0xbc, 0xdf, 0x31, 0x09, 0x5f, 0x87, 0x3c, 0xb3, 0x81, 0xb4, 0x45, 0x1a, 0x9e, 0xd2, 0x7d,
  5495. 0x02, 0xfa, 0x5b, 0xc8, 0xcb, 0x08, 0x90, 0x99, 0xb8, 0x1a, 0x2f, 0x76, 0xa7, 0xaf, 0xfb, 0xac,
  5496. 0x78, 0x13, 0x2e, 0x31, 0xaf, 0xb4, 0xe8, 0xe1, 0x5a, 0xfa, 0x51, 0x3d, 0x7e, 0x6a, 0xa1, 0xe3,
  5497. 0x67, 0x0d, 0xa6, 0xfa, 0xc7, 0x67, 0x4e, 0xa7, 0x65, 0x74, 0x85, 0x15, 0x5e, 0x1b, 0x7f, 0x00,
  5498. 0x48, 0x15, 0x36, 0xce, 0x74, 0x71, 0x09, 0x0a, 0xeb, 0x86, 0x73, 0x2c, 0x4c, 0xc2, 0x8f, 0xa0,
  5499. 0x44, 0x9b, 0x9b, 0x2f, 0x2e, 0x60, 0x23, 0xbb, 0x1c, 0x48, 0xee, 0xb1, 0x7c, 0x8e, 0x60, 0xf2,
  5500. 0xd8, 0x70, 0x8e, 0xd9, 0x44, 0x4b, 0x3a, 0xfb, 0x46, 0x0f, 0xa0, 0xd2, 0xe2, 0x93, 0x3c, 0x08,
  5501. 0x5d, 0x19, 0xa6, 0x05, 0xdd, 0x3b, 0x09, 0x7e, 0x0c, 0x45, 0x3e, 0x87, 0xef, 0xdb, 0x08, 0x7c,
  5502. 0x09, 0xa6, 0xf7, 0x4c, 0xa3, 0xef, 0x1c, 0x5b, 0xb2, 0xba, 0xd1, 0x49, 0x57, 0x7c, 0xda, 0x58,
  5503. 0x1a, 0xef, 0xc3, 0xb4, 0x4d, 0x7a, 0x46, 0xc7, 0xec, 0x98, 0x47, 0x07, 0x87, 0x67, 0x2e, 0x71,
  5504. 0xc4, 0x85, 0xa9, 0xec, 0x91, 0x9f, 0x52, 0x2a, 0x35, 0xed, 0xb0, 0x6b, 0x1d, 0x8a, 0x34, 0xc7,
  5505. 0xbe, 0xf1, 0x17, 0x29, 0x28, 0x7e, 0x64, 0xb8, 0x2d, 0xb9, 0x74, 0x68, 0x03, 0xca, 0x5e, 0x72,
  5506. 0x63, 0x14, 0x61, 0x4b, 0xa8, 0xc4, 0xb2, 0x31, 0xf2, 0x28, 0x2d, 0xab, 0x63, 0xa9, 0xa5, 0x12,
  5507. 0x98, 0x28, 0xc3, 0x6c, 0x91, 0xae, 0x27, 0x2a, 0x95, 0x2c, 0x8a, 0x31, 0xaa, 0xa2, 0x54, 0x02,
  5508. 0xda, 0x81, 0x4a, 0xdf, 0xb6, 0x8e, 0x6c, 0xe2, 0x38, 0x9e, 0x30, 0x5e, 0xc6, 0x70, 0x8c, 0xb0,
  5509. 0x5d, 0xc1, 0xea, 0x8b, 0x9b, 0xee, 0x07, 0x49, 0x4f, 0xa7, 0xfd, 0xf3, 0x0c, 0x4f, 0x4e, 0xbf,
  5510. 0x4e, 0x01, 0x8a, 0x4e, 0xea, 0xdb, 0x1e, 0xf1, 0xee, 0x42, 0xd9, 0x71, 0x0d, 0x3b, 0xb2, 0xd9,
  5511. 0x4a, 0x8c, 0xea, 0x65, 0xfc, 0xfb, 0xe0, 0x19, 0x74, 0x60, 0x5a, 0x6e, 0xe7, 0xe5, 0x99, 0x38,
  5512. 0x25, 0x97, 0x25, 0x79, 0x9b, 0x51, 0x51, 0x03, 0x72, 0x2f, 0x3b, 0x5d, 0x97, 0xd8, 0x4e, 0x35,
  5513. 0xb3, 0x90, 0x5e, 0x2c, 0x2f, 0x3f, 0x3a, 0x6f, 0x19, 0x96, 0xde, 0x67, 0xfc, 0xcd, 0xb3, 0x3e,
  5514. 0xd1, 0xe5, 0x58, 0xf5, 0xe4, 0x99, 0x0d, 0x9c, 0xc6, 0xe7, 0x60, 0xea, 0x15, 0x15, 0x41, 0x6f,
  5515. 0xd9, 0x39, 0x7e, 0x58, 0x64, 0x6d, 0x7e, 0xc9, 0x7e, 0x69, 0x1b, 0x47, 0x3d, 0x62, 0xba, 0xf2,
  5516. 0x1e, 0x28, 0xdb, 0xf8, 0x2e, 0x80, 0xaf, 0x86, 0xa6, 0xfc, 0xed, 0x9d, 0xdd, 0xfd, 0x66, 0x65,
  5517. 0x02, 0x15, 0x61, 0x6a, 0x7b, 0x67, 0xad, 0xb1, 0xd5, 0xa0, 0xf5, 0x01, 0xd7, 0xa5, 0x4b, 0x03,
  5518. 0x6b, 0xa9, 0xea, 0xd4, 0x02, 0x3a, 0xf1, 0x15, 0x98, 0x8d, 0x5b, 0x40, 0x7a, 0x16, 0x2d, 0x89,
  5519. 0x5d, 0x3a, 0x56, 0xa8, 0xa8, 0xaa, 0x53, 0xc1, 0xe9, 0x56, 0x21, 0xc7, 0x77, 0x6f, 0x5b, 0x1c,
  5520. 0xce, 0x65, 0x93, 0x3a, 0x82, 0x6f, 0x46, 0xd2, 0x16, 0xab, 0xe4, 0xb5, 0x63, 0xd3, 0x4b, 0x26,
  5521. 0x36, 0xbd, 0xa0, 0xdb, 0x50, 0xf2, 0xa2, 0xc1, 0x70, 0xc4, 0x59, 0x20, 0xaf, 0x17, 0xe5, 0x46,
  5522. 0xa7, 0xb4, 0x80, 0xd3, 0x73, 0x41, 0xa7, 0xa3, 0xbb, 0x90, 0x25, 0x43, 0x62, 0xba, 0x4e, 0xb5,
  5523. 0xc0, 0x2a, 0x46, 0x49, 0x9e, 0xdd, 0x1b, 0x94, 0xaa, 0x8b, 0x4e, 0xfc, 0x37, 0x70, 0x89, 0xdd,
  5524. 0x91, 0x9e, 0xd9, 0x86, 0xa9, 0x5e, 0xe6, 0x9a, 0xcd, 0x2d, 0xe1, 0x6e, 0xfa, 0x89, 0xca, 0x90,
  5525. 0xda, 0x58, 0x13, 0x4e, 0x48, 0x6d, 0xac, 0xe1, 0xcf, 0x34, 0x40, 0xea, 0xb8, 0xb1, 0xfc, 0x1c,
  5526. 0x12, 0x2e, 0xd5, 0xa7, 0x7d, 0xf5, 0xb3, 0x90, 0x21, 0xb6, 0x6d, 0xd9, 0xcc, 0xa3, 0x79, 0x9d,
  5527. 0x37, 0xf0, 0x1d, 0x61, 0x83, 0x4e, 0x86, 0xd6, 0x89, 0x17, 0x83, 0x5c, 0x9a, 0xe6, 0x99, 0xba,
  5528. 0x09, 0x33, 0x01, 0xae, 0xb1, 0x2a, 0xd7, 0x7d, 0xb8, 0xcc, 0x84, 0x6d, 0x12, 0xd2, 0x5f, 0xe9,
  5529. 0x76, 0x86, 0x89, 0x5a, 0xfb, 0x70, 0x25, 0xcc, 0xf8, 0xc3, 0xfa, 0x08, 0xff, 0xbd, 0xd0, 0xd8,
  5530. 0xec, 0xf4, 0x48, 0xd3, 0xda, 0x4a, 0xb6, 0x8d, 0x66, 0xf6, 0x13, 0x72, 0xe6, 0x88, 0x12, 0xcf,
  5531. 0xbe, 0xf1, 0x4f, 0x35, 0xb8, 0x1a, 0x19, 0xfe, 0x03, 0xaf, 0xea, 0x3c, 0xc0, 0x11, 0xdd, 0x3e,
  5532. 0xa4, 0x4d, 0x3b, 0x38, 0xba, 0xa0, 0x50, 0x3c, 0x3b, 0x69, 0x2e, 0x2b, 0x0a, 0x3b, 0x67, 0xc5,
  5533. 0x9a, 0xb3, 0x3f, 0x5e, 0xc4, 0xdf, 0x80, 0x02, 0x23, 0xec, 0xb9, 0x86, 0x3b, 0x70, 0x22, 0x8b,
  5534. 0xf1, 0x6f, 0x62, 0x0b, 0xc8, 0x41, 0x63, 0xcd, 0xeb, 0x2d, 0xc8, 0xb2, 0x83, 0xb5, 0x3c, 0x56,
  5535. 0x86, 0x6e, 0x32, 0x8a, 0x1d, 0xba, 0x60, 0xc4, 0xc7, 0x90, 0x7d, 0xce, 0xd0, 0x48, 0xc5, 0xb2,
  5536. 0x49, 0xb9, 0x14, 0xa6, 0xd1, 0xe3, 0x18, 0x49, 0x5e, 0x67, 0xdf, 0xec, 0x14, 0x46, 0x88, 0xbd,
  5537. 0xaf, 0x6f, 0xf1, 0xd3, 0x5e, 0x5e, 0xf7, 0xda, 0xd4, 0x65, 0xad, 0x6e, 0x87, 0x98, 0x2e, 0xeb,
  5538. 0x9d, 0x64, 0xbd, 0x0a, 0x05, 0x2f, 0x41, 0x85, 0x6b, 0x5a, 0x69, 0xb7, 0x95, 0xd3, 0x94, 0x27,
  5539. 0x4f, 0x0b, 0xca, 0xc3, 0x5f, 0x69, 0x70, 0x49, 0x19, 0x30, 0x96, 0x63, 0x1e, 0x43, 0x96, 0x63,
  5540. 0xae, 0xa2, 0x70, 0xcf, 0x06, 0x47, 0x71, 0x35, 0xba, 0xe0, 0x41, 0x4b, 0x90, 0xe3, 0x5f, 0xf2,
  5541. 0x48, 0x1b, 0xcf, 0x2e, 0x99, 0xf0, 0x5d, 0x98, 0x11, 0x24, 0xd2, 0xb3, 0xe2, 0xf6, 0x36, 0x73,
  5542. 0x28, 0xfe, 0x14, 0x66, 0x83, 0x6c, 0x63, 0x4d, 0x49, 0x31, 0x32, 0x75, 0x11, 0x23, 0x57, 0xa4,
  5543. 0x91, 0xfb, 0xfd, 0xb6, 0x72, 0x2c, 0x08, 0xaf, 0xba, 0xba, 0x22, 0xa9, 0xd0, 0x8a, 0x78, 0x13,
  5544. 0x90, 0x22, 0x7e, 0xd4, 0x09, 0xcc, 0xc8, 0xed, 0xb0, 0xd5, 0x71, 0xbc, 0xd3, 0xe7, 0x6b, 0x40,
  5545. 0x2a, 0xf1, 0xc7, 0x36, 0x68, 0x8d, 0xc8, 0xa2, 0x26, 0x0d, 0xfa, 0x00, 0x90, 0x4a, 0x1c, 0x2b,
  5546. 0xa3, 0xd7, 0xe1, 0xd2, 0x73, 0x6b, 0x48, 0x53, 0x03, 0xa5, 0xfa, 0x21, 0xc3, 0xef, 0xa2, 0xde,
  5547. 0xb2, 0x79, 0x6d, 0xaa, 0x5c, 0x1d, 0x30, 0x96, 0xf2, 0x5f, 0x6a, 0x50, 0x5c, 0xe9, 0x1a, 0x76,
  5548. 0x4f, 0x2a, 0x7e, 0x17, 0xb2, 0xfc, 0x86, 0x25, 0x40, 0x8d, 0x7b, 0x41, 0x31, 0x2a, 0x2f, 0x6f,
  5549. 0xac, 0xf0, 0xfb, 0x98, 0x18, 0x45, 0x0d, 0x17, 0xef, 0x1e, 0x6b, 0xa1, 0x77, 0x90, 0x35, 0xf4,
  5550. 0x06, 0x64, 0x0c, 0x3a, 0x84, 0xa5, 0xe0, 0x72, 0xf8, 0x6e, 0xcb, 0xa4, 0xb1, 0x73, 0x20, 0xe7,
  5551. 0xc2, 0xef, 0x40, 0x41, 0xd1, 0x40, 0x6f, 0xef, 0xcf, 0x1a, 0xe2, 0xd0, 0xb6, 0xb2, 0xda, 0xdc,
  5552. 0x78, 0xc1, 0x2f, 0xf5, 0x65, 0x80, 0xb5, 0x86, 0xd7, 0x4e, 0xe1, 0x8f, 0xc5, 0x28, 0x91, 0xef,
  5553. 0x54, 0x7b, 0xb4, 0x24, 0x7b, 0x52, 0x17, 0xb2, 0xe7, 0x14, 0x4a, 0x62, 0xfa, 0xe3, 0xa6, 0x6f,
  5554. 0x26, 0x2f, 0x21, 0x7d, 0x2b, 0xc6, 0xeb, 0x82, 0x11, 0x4f, 0x43, 0x49, 0x24, 0x74, 0xb1, 0xff,
  5555. 0x7e, 0xa1, 0x41, 0x59, 0x52, 0xc6, 0x05, 0x5f, 0x25, 0x6e, 0xc4, 0x2b, 0x80, 0x87, 0x1a, 0x5d,
  5556. 0x81, 0x6c, 0xfb, 0x70, 0xaf, 0xf3, 0x5a, 0x02, 0xe5, 0xa2, 0x45, 0xe9, 0x5d, 0xae, 0x87, 0xbf,
  5557. 0x56, 0x89, 0x16, 0xba, 0xce, 0x1f, 0xb2, 0x36, 0xcc, 0x36, 0x39, 0x65, 0x67, 0xca, 0x49, 0xdd,
  5558. 0x27, 0xb0, 0x0b, 0xb5, 0x78, 0xd5, 0x62, 0x07, 0x49, 0xf5, 0x95, 0x6b, 0x06, 0x2e, 0xad, 0x0c,
  5559. 0xdc, 0xe3, 0x86, 0x69, 0x1c, 0x76, 0x65, 0xc6, 0xa2, 0x65, 0x96, 0x12, 0xd7, 0x3a, 0x8e, 0x4a,
  5560. 0x6d, 0xc0, 0x0c, 0xa5, 0x12, 0xd3, 0xed, 0xb4, 0x94, 0xf4, 0x26, 0x8b, 0x98, 0x16, 0x2a, 0x62,
  5561. 0x86, 0xe3, 0xbc, 0xb2, 0xec, 0xb6, 0x98, 0x9a, 0xd7, 0xc6, 0x6b, 0x5c, 0xf8, 0xbe, 0x13, 0x28,
  5562. 0x53, 0xdf, 0x56, 0xca, 0xa2, 0x2f, 0xe5, 0x19, 0x71, 0x47, 0x48, 0xc1, 0x8f, 0xe0, 0xb2, 0xe4,
  5563. 0x14, 0xc0, 0xe4, 0x08, 0xe6, 0x1d, 0xb8, 0x21, 0x99, 0x57, 0x8f, 0xe9, 0x45, 0x6d, 0x57, 0x28,
  5564. 0xfc, 0xae, 0x76, 0x3e, 0x85, 0xaa, 0x67, 0x27, 0x3b, 0x2c, 0x5b, 0x5d, 0xd5, 0x80, 0x81, 0x23,
  5565. 0xf6, 0x4c, 0x5e, 0x67, 0xdf, 0x94, 0x66, 0x5b, 0x5d, 0xef, 0x48, 0x40, 0xbf, 0xf1, 0x2a, 0xcc,
  5566. 0x49, 0x19, 0xe2, 0x18, 0x1b, 0x14, 0x12, 0x31, 0x28, 0x4e, 0x88, 0x70, 0x18, 0x1d, 0x3a, 0xda,
  5567. 0xed, 0x2a, 0x67, 0xd0, 0xb5, 0x4c, 0xa6, 0xa6, 0xc8, 0xbc, 0xcc, 0x77, 0x04, 0x35, 0x4c, 0xad,
  5568. 0x18, 0x82, 0x4c, 0x05, 0xa8, 0x64, 0xb1, 0x10, 0x94, 0x1c, 0x59, 0x88, 0x88, 0xe8, 0x4f, 0x60,
  5569. 0xde, 0x33, 0x82, 0xfa, 0x6d, 0x97, 0xd8, 0xbd, 0x8e, 0xe3, 0x28, 0x50, 0x56, 0xdc, 0xc4, 0xef,
  5570. 0xc1, 0x64, 0x9f, 0x88, 0x9c, 0x52, 0x58, 0x46, 0x4b, 0xfc, 0xed, 0x79, 0x49, 0x19, 0xcc, 0xfa,
  5571. 0x71, 0x1b, 0x6e, 0x4a, 0xe9, 0xdc, 0xa3, 0xb1, 0xe2, 0xc3, 0x46, 0xc9, 0x0b, 0x3e, 0x77, 0x6b,
  5572. 0xf4, 0x82, 0x9f, 0xe6, 0x6b, 0xef, 0xc1, 0xab, 0x1f, 0x70, 0x47, 0xca, 0xd8, 0x1a, 0xab, 0x56,
  5573. 0x6c, 0x72, 0x9f, 0x7a, 0x21, 0x39, 0x96, 0xb0, 0x43, 0x98, 0x0d, 0x46, 0xf2, 0x58, 0x69, 0x6c,
  5574. 0x16, 0x32, 0xae, 0x75, 0x42, 0x64, 0x12, 0xe3, 0x0d, 0x69, 0xb0, 0x17, 0xe6, 0x63, 0x19, 0x6c,
  5575. 0xf8, 0xc2, 0xd8, 0x96, 0x1c, 0xd7, 0x5e, 0xba, 0x9a, 0xf2, 0xf0, 0xc5, 0x1b, 0x78, 0x1b, 0xae,
  5576. 0x84, 0xd3, 0xc4, 0x58, 0x26, 0xbf, 0xe0, 0x1b, 0x38, 0x2e, 0x93, 0x8c, 0x25, 0xf7, 0x43, 0x3f,
  5577. 0x19, 0x28, 0x09, 0x65, 0x2c, 0x91, 0x3a, 0xd4, 0xe2, 0xf2, 0xcb, 0xf7, 0xb1, 0x5f, 0xbd, 0x74,
  5578. 0x33, 0x96, 0x30, 0xc7, 0x17, 0x36, 0xfe, 0xf2, 0xfb, 0x39, 0x22, 0x3d, 0x32, 0x47, 0x88, 0x20,
  5579. 0xf1, 0xb3, 0xd8, 0x0f, 0xb0, 0xe9, 0x84, 0x0e, 0x3f, 0x81, 0x8e, 0xab, 0x83, 0xd6, 0x10, 0x4f,
  5580. 0x07, 0x6b, 0xc8, 0x8d, 0xad, 0xa6, 0xdd, 0xb1, 0x16, 0xe3, 0x23, 0x3f, 0x77, 0x46, 0x32, 0xf3,
  5581. 0x58, 0x82, 0x3f, 0x86, 0x85, 0xe4, 0xa4, 0x3c, 0x8e, 0xe4, 0x87, 0x75, 0xc8, 0x7b, 0x07, 0x4a,
  5582. 0xe5, 0x77, 0x1b, 0x05, 0xc8, 0x6d, 0xef, 0xec, 0xed, 0xae, 0xac, 0x36, 0xf8, 0x0f, 0x37, 0x56,
  5583. 0x77, 0x74, 0x7d, 0x7f, 0xb7, 0x59, 0x49, 0x2d, 0xff, 0x29, 0x0d, 0xa9, 0xcd, 0x17, 0xe8, 0x1f,
  5584. 0x21, 0xc3, 0x5f, 0x31, 0x47, 0x3c, 0x5d, 0xd7, 0x46, 0x3d, 0xd4, 0xe2, 0x6b, 0x9f, 0xfd, 0xe6,
  5585. 0xf7, 0x5f, 0xa6, 0x2e, 0xe3, 0x4a, 0x7d, 0xf8, 0xf6, 0x21, 0x71, 0x8d, 0xfa, 0xc9, 0xb0, 0xce,
  5586. 0xea, 0xc3, 0x13, 0xed, 0x21, 0xda, 0x87, 0xf4, 0xee, 0xc0, 0x45, 0x89, 0xcf, 0xda, 0xb5, 0xe4,
  5587. 0xf7, 0x5b, 0x3c, 0xc7, 0x04, 0xcf, 0xe0, 0xb2, 0x22, 0xb8, 0x3f, 0x70, 0xa9, 0xd8, 0x01, 0x14,
  5588. 0xd4, 0x17, 0xd8, 0x73, 0xdf, 0xbb, 0x6b, 0xe7, 0xbf, 0xee, 0xe2, 0x5b, 0x4c, 0xdd, 0x35, 0x7c,
  5589. 0x45, 0x51, 0xc7, 0xdf, 0x89, 0xd5, 0xd9, 0x34, 0x4f, 0x4d, 0x94, 0xf8, 0x22, 0x5e, 0x4b, 0x7e,
  5590. 0xf4, 0x8d, 0x9d, 0x8d, 0x7b, 0x6a, 0x52, 0xb1, 0xa6, 0x78, 0xf3, 0x6d, 0xb9, 0xe8, 0x66, 0xcc,
  5591. 0x9b, 0x9f, 0xfa, 0xba, 0x55, 0x5b, 0x48, 0x66, 0x10, 0x8a, 0x16, 0x98, 0xa2, 0x1a, 0xbe, 0xac,
  5592. 0x28, 0x6a, 0x79, 0x6c, 0x4f, 0xb4, 0x87, 0xcb, 0x47, 0x90, 0x61, 0xe8, 0x31, 0xfa, 0x27, 0xf9,
  5593. 0x51, 0x8b, 0x81, 0xd1, 0x13, 0x16, 0x3f, 0x80, 0x3b, 0xe3, 0x2a, 0x53, 0x86, 0x70, 0x49, 0x2a,
  5594. 0x63, 0xf8, 0xf1, 0x13, 0xed, 0xe1, 0xa2, 0xf6, 0xa6, 0xb6, 0xfc, 0xc7, 0x49, 0xc8, 0x30, 0xb8,
  5595. 0x08, 0x59, 0x00, 0x3e, 0x9a, 0x1a, 0x9e, 0x65, 0x04, 0x9f, 0x0d, 0xcf, 0x32, 0x0a, 0xc4, 0xe2,
  5596. 0x79, 0xa6, 0xb8, 0x8a, 0x67, 0xa4, 0x62, 0x86, 0x44, 0xd5, 0x19, 0xb8, 0x46, 0x7d, 0x3a, 0x14,
  5597. 0x80, 0x19, 0x0f, 0x33, 0x14, 0x27, 0x30, 0x80, 0xaa, 0x86, 0x77, 0x48, 0x0c, 0xa2, 0x8a, 0x31,
  5598. 0xd3, 0x79, 0x1d, 0x5f, 0x55, 0x3c, 0xcb, 0xd5, 0xda, 0x8c, 0x91, 0xea, 0xfd, 0x0f, 0x0d, 0xca,
  5599. 0x41, 0x5c, 0x14, 0xdd, 0x8e, 0x91, 0x1c, 0x86, 0x57, 0x6b, 0x77, 0x46, 0x33, 0x25, 0x59, 0xc0,
  5600. 0xd5, 0x9f, 0x10, 0xd2, 0x37, 0x28, 0xa3, 0x70, 0x3c, 0xfa, 0x42, 0x83, 0xe9, 0x10, 0xd8, 0x89,
  5601. 0xe2, 0x34, 0x44, 0xa0, 0xd4, 0xda, 0xdd, 0x73, 0xb8, 0x84, 0x21, 0xf7, 0x98, 0x21, 0x0b, 0xf8,
  5602. 0x5a, 0xc4, 0x15, 0x6e, 0xa7, 0x47, 0x5c, 0x4b, 0x18, 0xe3, 0x2d, 0x03, 0x07, 0x26, 0x63, 0x97,
  5603. 0x21, 0x00, 0x74, 0xc6, 0x2e, 0x43, 0x10, 0xd5, 0x1c, 0xb1, 0x0c, 0x1c, 0x8d, 0xa4, 0x5b, 0xfc,
  5604. 0xcf, 0x69, 0xc8, 0xad, 0xf2, 0x5f, 0x4f, 0x22, 0x07, 0xf2, 0x1e, 0x02, 0x88, 0xe6, 0xe3, 0xd0,
  5605. 0x18, 0xff, 0xb6, 0x50, 0xbb, 0x99, 0xd8, 0x2f, 0xb4, 0xdf, 0x65, 0xda, 0x6f, 0xe2, 0x9a, 0xd4,
  5606. 0x2e, 0x7e, 0xa4, 0x59, 0xe7, 0xd7, 0xfe, 0xba, 0xd1, 0x6e, 0xd3, 0x89, 0xff, 0x3b, 0x14, 0x55,
  5607. 0x98, 0x0e, 0xdd, 0x8a, 0x45, 0x81, 0x54, 0xa4, 0xaf, 0x86, 0x47, 0xb1, 0x08, 0xed, 0x8b, 0x4c,
  5608. 0x3b, 0xc6, 0x37, 0x12, 0xb4, 0xdb, 0x8c, 0x3d, 0x60, 0x00, 0x87, 0xd9, 0xe2, 0x0d, 0x08, 0xa0,
  5609. 0x78, 0xf1, 0x06, 0x04, 0x51, 0xba, 0x73, 0x0d, 0x18, 0x30, 0x76, 0x6a, 0xc0, 0x2b, 0x00, 0x1f,
  5610. 0x54, 0x43, 0xb1, 0x7e, 0x55, 0xae, 0x4e, 0xe1, 0x90, 0x8f, 0xe2, 0x71, 0xd1, 0x3d, 0x17, 0x52,
  5611. 0xdd, 0xed, 0x38, 0x34, 0xf4, 0x97, 0xbf, 0xca, 0x42, 0xe1, 0xb9, 0xd1, 0x31, 0x5d, 0x62, 0x1a,
  5612. 0x66, 0x8b, 0xa0, 0x97, 0x90, 0x61, 0xa5, 0x31, 0x9c, 0xe5, 0x54, 0xac, 0x29, 0x9c, 0xe5, 0x02,
  5613. 0x40, 0x0c, 0xbe, 0xc3, 0x34, 0xcf, 0xe3, 0x39, 0xa9, 0xb9, 0xe7, 0x8b, 0xaf, 0x33, 0x0c, 0x85,
  5614. 0x4e, 0xf8, 0x9f, 0x21, 0x2b, 0xe0, 0xf9, 0x90, 0xb0, 0x00, 0xb6, 0x52, 0xbb, 0x1e, 0xdf, 0x99,
  5615. 0xb4, 0xbd, 0x54, 0x55, 0x0e, 0xe3, 0xa5, 0xba, 0x5e, 0x03, 0xf8, 0x00, 0x61, 0xd8, 0xb9, 0x11,
  5616. 0x3c, 0xb1, 0xb6, 0x90, 0xcc, 0x20, 0xf4, 0x3e, 0x60, 0x7a, 0x6f, 0xe3, 0xf9, 0x38, 0xbd, 0x6d,
  5617. 0x8f, 0x9f, 0xea, 0x3e, 0x84, 0xc9, 0x75, 0xc3, 0x39, 0x46, 0xa1, 0x62, 0xa7, 0xfc, 0xe0, 0xa1,
  5618. 0x56, 0x8b, 0xeb, 0x12, 0x9a, 0x6e, 0x33, 0x4d, 0x37, 0x70, 0x35, 0x4e, 0xd3, 0xb1, 0xe1, 0xd0,
  5619. 0xea, 0x81, 0x8e, 0x21, 0xcb, 0x7f, 0x03, 0x11, 0xf6, 0x65, 0xe0, 0x77, 0x14, 0x61, 0x5f, 0x06,
  5620. 0x7f, 0x36, 0x71, 0x31, 0x4d, 0x2e, 0x4c, 0xc9, 0x1f, 0x1e, 0xa0, 0x1b, 0xa1, 0xa5, 0x09, 0xfe,
  5621. 0x48, 0xa1, 0x36, 0x9f, 0xd4, 0x2d, 0xf4, 0xdd, 0x67, 0xfa, 0x6e, 0xe1, 0xeb, 0xb1, 0x6b, 0x27,
  5622. 0xb8, 0x9f, 0x68, 0x0f, 0xdf, 0xd4, 0x68, 0x99, 0x00, 0x1f, 0x64, 0x8d, 0x44, 0x47, 0x18, 0xaf,
  5623. 0x8d, 0x44, 0x47, 0x04, 0x9f, 0xc5, 0xcb, 0x4c, 0xf9, 0x63, 0x7c, 0x3f, 0x4e, 0xb9, 0x6b, 0x1b,
  5624. 0xa6, 0xf3, 0x92, 0xd8, 0x6f, 0x70, 0x30, 0xcd, 0x39, 0xee, 0xf4, 0x69, 0xa4, 0xfc, 0x65, 0x1a,
  5625. 0x26, 0xe9, 0x79, 0x94, 0x96, 0x67, 0xff, 0x1a, 0x1f, 0xb6, 0x26, 0x02, 0x9e, 0x85, 0xad, 0x89,
  5626. 0x22, 0x00, 0xd1, 0xf2, 0xcc, 0x7e, 0x27, 0x4f, 0x18, 0x13, 0xf5, 0xba, 0x03, 0x05, 0xe5, 0xae,
  5627. 0x8f, 0x62, 0x04, 0x06, 0x91, 0xb9, 0x70, 0x5d, 0x88, 0x01, 0x0a, 0xf0, 0x4d, 0xa6, 0x73, 0x0e,
  5628. 0xcf, 0x06, 0x74, 0xb6, 0x39, 0x17, 0x55, 0xfa, 0xaf, 0x50, 0x54, 0x31, 0x01, 0x14, 0x23, 0x33,
  5629. 0x84, 0xfc, 0x85, 0x53, 0x62, 0x1c, 0xa4, 0x10, 0xcd, 0x0e, 0xde, 0xff, 0x09, 0x90, 0xac, 0x54,
  5630. 0x79, 0x1f, 0x72, 0x02, 0x28, 0x88, 0x9b, 0x6d, 0x10, 0x2a, 0x8c, 0x9b, 0x6d, 0x08, 0x65, 0x88,
  5631. 0x1e, 0xf3, 0x98, 0x56, 0x7a, 0x1f, 0x92, 0x25, 0x48, 0x68, 0x7c, 0x46, 0xdc, 0x24, 0x8d, 0x3e,
  5632. 0xf6, 0x95, 0xa4, 0x51, 0xb9, 0x8b, 0x8e, 0xd2, 0x78, 0x44, 0x5c, 0x11, 0x4b, 0xf2, 0x9e, 0x87,
  5633. 0x12, 0x04, 0xaa, 0x29, 0x1f, 0x8f, 0x62, 0x49, 0x3a, 0x95, 0xfb, 0x4a, 0x45, 0xbe, 0x47, 0x9f,
  5634. 0x02, 0xf8, 0x90, 0x46, 0xf8, 0xb4, 0x15, 0x8b, 0x8b, 0x86, 0x4f, 0x5b, 0xf1, 0xa8, 0x48, 0x34,
  5635. 0x7f, 0xf8, 0xba, 0xf9, 0xc5, 0x80, 0x6a, 0xff, 0x1f, 0x0d, 0x50, 0x14, 0x01, 0x41, 0x8f, 0xe2,
  5636. 0x35, 0xc4, 0x22, 0xae, 0xb5, 0xc7, 0x17, 0x63, 0x4e, 0x2a, 0x11, 0xbe, 0x59, 0x2d, 0x36, 0xa2,
  5637. 0xff, 0x8a, 0x1a, 0xf6, 0xb9, 0x06, 0xa5, 0x00, 0x84, 0x82, 0xee, 0x25, 0xac, 0x71, 0x08, 0xb4,
  5638. 0xad, 0xdd, 0x3f, 0x97, 0x2f, 0xe9, 0x24, 0xa6, 0xec, 0x08, 0x79, 0x10, 0xff, 0x2f, 0x0d, 0xca,
  5639. 0x41, 0xd8, 0x05, 0x25, 0xc8, 0x8f, 0x00, 0xbf, 0xb5, 0xc5, 0xf3, 0x19, 0xcf, 0x5f, 0x2a, 0xff,
  5640. 0x6c, 0xde, 0x87, 0x9c, 0x00, 0x6b, 0xe2, 0x02, 0x22, 0x08, 0x1b, 0xc7, 0x05, 0x44, 0x08, 0xe9,
  5641. 0x49, 0x08, 0x08, 0xdb, 0xea, 0x12, 0x25, 0x04, 0x05, 0xa2, 0x93, 0xa4, 0x71, 0x74, 0x08, 0x86,
  5642. 0xe0, 0xa0, 0x51, 0x1a, 0xfd, 0x10, 0x94, 0x70, 0x0e, 0x4a, 0x10, 0x78, 0x4e, 0x08, 0x86, 0xd1,
  5643. 0xa0, 0x84, 0x10, 0x64, 0x4a, 0x95, 0x10, 0xf4, 0xc1, 0x97, 0xb8, 0x10, 0x8c, 0x20, 0xe2, 0x71,
  5644. 0x21, 0x18, 0xc5, 0x6f, 0x12, 0xd6, 0x95, 0xe9, 0x0e, 0x84, 0xe0, 0x4c, 0x0c, 0x56, 0x83, 0x1e,
  5645. 0x27, 0x38, 0x34, 0x16, 0x6c, 0xaf, 0xbd, 0x71, 0x41, 0xee, 0x91, 0x7b, 0x9f, 0x2f, 0x85, 0xdc,
  5646. 0xfb, 0xff, 0xaf, 0xc1, 0x6c, 0x1c, 0xd6, 0x83, 0x12, 0x74, 0x25, 0x00, 0xf5, 0xb5, 0xa5, 0x8b,
  5647. 0xb2, 0x9f, 0xef, 0x35, 0x2f, 0x1a, 0x9e, 0x56, 0x7e, 0xfe, 0xcd, 0xbc, 0xf6, 0xab, 0x6f, 0xe6,
  5648. 0xb5, 0xdf, 0x7e, 0x33, 0xaf, 0xfd, 0xef, 0xef, 0xe6, 0x27, 0x0e, 0xb3, 0xec, 0x7f, 0xa7, 0xbd,
  5649. 0xfd, 0xd7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x77, 0x6b, 0x63, 0x24, 0x37, 0x00, 0x00,
  5650. }
  5651. // Reference imports to suppress errors if they are not otherwise used.
  5652. var _ context.Context
  5653. var _ grpc.ClientConn
  5654. // This is a compile-time assertion to ensure that this generated file
  5655. // is compatible with the grpc package it is being compiled against.
  5656. const _ = grpc.SupportPackageIsVersion4
  5657. // KVClient is the client API for KV service.
  5658. //
  5659. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  5660. type KVClient interface {
  5661. // Range gets the keys in the range from the key-value store.
  5662. Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error)
  5663. // Put puts the given key into the key-value store.
  5664. // A put request increments the revision of the key-value store
  5665. // and generates one event in the event history.
  5666. Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error)
  5667. // DeleteRange deletes the given range from the key-value store.
  5668. // A delete request increments the revision of the key-value store
  5669. // and generates a delete event in the event history for every deleted key.
  5670. DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error)
  5671. // Txn processes multiple requests in a single transaction.
  5672. // A txn request increments the revision of the key-value store
  5673. // and generates events with the same revision for every completed request.
  5674. // It is not allowed to modify the same key several times within one txn.
  5675. Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error)
  5676. // Compact compacts the event history in the etcd key-value store. The key-value
  5677. // store should be periodically compacted or the event history will continue to grow
  5678. // indefinitely.
  5679. Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error)
  5680. }
  5681. type kVClient struct {
  5682. cc *grpc.ClientConn
  5683. }
  5684. func NewKVClient(cc *grpc.ClientConn) KVClient {
  5685. return &kVClient{cc}
  5686. }
  5687. func (c *kVClient) Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error) {
  5688. out := new(RangeResponse)
  5689. err := c.cc.Invoke(ctx, "/etcdserverpb.KV/Range", in, out, opts...)
  5690. if err != nil {
  5691. return nil, err
  5692. }
  5693. return out, nil
  5694. }
  5695. func (c *kVClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) {
  5696. out := new(PutResponse)
  5697. err := c.cc.Invoke(ctx, "/etcdserverpb.KV/Put", in, out, opts...)
  5698. if err != nil {
  5699. return nil, err
  5700. }
  5701. return out, nil
  5702. }
  5703. func (c *kVClient) DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error) {
  5704. out := new(DeleteRangeResponse)
  5705. err := c.cc.Invoke(ctx, "/etcdserverpb.KV/DeleteRange", in, out, opts...)
  5706. if err != nil {
  5707. return nil, err
  5708. }
  5709. return out, nil
  5710. }
  5711. func (c *kVClient) Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error) {
  5712. out := new(TxnResponse)
  5713. err := c.cc.Invoke(ctx, "/etcdserverpb.KV/Txn", in, out, opts...)
  5714. if err != nil {
  5715. return nil, err
  5716. }
  5717. return out, nil
  5718. }
  5719. func (c *kVClient) Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error) {
  5720. out := new(CompactionResponse)
  5721. err := c.cc.Invoke(ctx, "/etcdserverpb.KV/Compact", in, out, opts...)
  5722. if err != nil {
  5723. return nil, err
  5724. }
  5725. return out, nil
  5726. }
  5727. // KVServer is the server API for KV service.
  5728. type KVServer interface {
  5729. // Range gets the keys in the range from the key-value store.
  5730. Range(context.Context, *RangeRequest) (*RangeResponse, error)
  5731. // Put puts the given key into the key-value store.
  5732. // A put request increments the revision of the key-value store
  5733. // and generates one event in the event history.
  5734. Put(context.Context, *PutRequest) (*PutResponse, error)
  5735. // DeleteRange deletes the given range from the key-value store.
  5736. // A delete request increments the revision of the key-value store
  5737. // and generates a delete event in the event history for every deleted key.
  5738. DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error)
  5739. // Txn processes multiple requests in a single transaction.
  5740. // A txn request increments the revision of the key-value store
  5741. // and generates events with the same revision for every completed request.
  5742. // It is not allowed to modify the same key several times within one txn.
  5743. Txn(context.Context, *TxnRequest) (*TxnResponse, error)
  5744. // Compact compacts the event history in the etcd key-value store. The key-value
  5745. // store should be periodically compacted or the event history will continue to grow
  5746. // indefinitely.
  5747. Compact(context.Context, *CompactionRequest) (*CompactionResponse, error)
  5748. }
  5749. // UnimplementedKVServer can be embedded to have forward compatible implementations.
  5750. type UnimplementedKVServer struct {
  5751. }
  5752. func (*UnimplementedKVServer) Range(ctx context.Context, req *RangeRequest) (*RangeResponse, error) {
  5753. return nil, status.Errorf(codes.Unimplemented, "method Range not implemented")
  5754. }
  5755. func (*UnimplementedKVServer) Put(ctx context.Context, req *PutRequest) (*PutResponse, error) {
  5756. return nil, status.Errorf(codes.Unimplemented, "method Put not implemented")
  5757. }
  5758. func (*UnimplementedKVServer) DeleteRange(ctx context.Context, req *DeleteRangeRequest) (*DeleteRangeResponse, error) {
  5759. return nil, status.Errorf(codes.Unimplemented, "method DeleteRange not implemented")
  5760. }
  5761. func (*UnimplementedKVServer) Txn(ctx context.Context, req *TxnRequest) (*TxnResponse, error) {
  5762. return nil, status.Errorf(codes.Unimplemented, "method Txn not implemented")
  5763. }
  5764. func (*UnimplementedKVServer) Compact(ctx context.Context, req *CompactionRequest) (*CompactionResponse, error) {
  5765. return nil, status.Errorf(codes.Unimplemented, "method Compact not implemented")
  5766. }
  5767. func RegisterKVServer(s *grpc.Server, srv KVServer) {
  5768. s.RegisterService(&_KV_serviceDesc, srv)
  5769. }
  5770. func _KV_Range_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5771. in := new(RangeRequest)
  5772. if err := dec(in); err != nil {
  5773. return nil, err
  5774. }
  5775. if interceptor == nil {
  5776. return srv.(KVServer).Range(ctx, in)
  5777. }
  5778. info := &grpc.UnaryServerInfo{
  5779. Server: srv,
  5780. FullMethod: "/etcdserverpb.KV/Range",
  5781. }
  5782. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5783. return srv.(KVServer).Range(ctx, req.(*RangeRequest))
  5784. }
  5785. return interceptor(ctx, in, info, handler)
  5786. }
  5787. func _KV_Put_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5788. in := new(PutRequest)
  5789. if err := dec(in); err != nil {
  5790. return nil, err
  5791. }
  5792. if interceptor == nil {
  5793. return srv.(KVServer).Put(ctx, in)
  5794. }
  5795. info := &grpc.UnaryServerInfo{
  5796. Server: srv,
  5797. FullMethod: "/etcdserverpb.KV/Put",
  5798. }
  5799. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5800. return srv.(KVServer).Put(ctx, req.(*PutRequest))
  5801. }
  5802. return interceptor(ctx, in, info, handler)
  5803. }
  5804. func _KV_DeleteRange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5805. in := new(DeleteRangeRequest)
  5806. if err := dec(in); err != nil {
  5807. return nil, err
  5808. }
  5809. if interceptor == nil {
  5810. return srv.(KVServer).DeleteRange(ctx, in)
  5811. }
  5812. info := &grpc.UnaryServerInfo{
  5813. Server: srv,
  5814. FullMethod: "/etcdserverpb.KV/DeleteRange",
  5815. }
  5816. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5817. return srv.(KVServer).DeleteRange(ctx, req.(*DeleteRangeRequest))
  5818. }
  5819. return interceptor(ctx, in, info, handler)
  5820. }
  5821. func _KV_Txn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5822. in := new(TxnRequest)
  5823. if err := dec(in); err != nil {
  5824. return nil, err
  5825. }
  5826. if interceptor == nil {
  5827. return srv.(KVServer).Txn(ctx, in)
  5828. }
  5829. info := &grpc.UnaryServerInfo{
  5830. Server: srv,
  5831. FullMethod: "/etcdserverpb.KV/Txn",
  5832. }
  5833. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5834. return srv.(KVServer).Txn(ctx, req.(*TxnRequest))
  5835. }
  5836. return interceptor(ctx, in, info, handler)
  5837. }
  5838. func _KV_Compact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5839. in := new(CompactionRequest)
  5840. if err := dec(in); err != nil {
  5841. return nil, err
  5842. }
  5843. if interceptor == nil {
  5844. return srv.(KVServer).Compact(ctx, in)
  5845. }
  5846. info := &grpc.UnaryServerInfo{
  5847. Server: srv,
  5848. FullMethod: "/etcdserverpb.KV/Compact",
  5849. }
  5850. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5851. return srv.(KVServer).Compact(ctx, req.(*CompactionRequest))
  5852. }
  5853. return interceptor(ctx, in, info, handler)
  5854. }
  5855. var _KV_serviceDesc = grpc.ServiceDesc{
  5856. ServiceName: "etcdserverpb.KV",
  5857. HandlerType: (*KVServer)(nil),
  5858. Methods: []grpc.MethodDesc{
  5859. {
  5860. MethodName: "Range",
  5861. Handler: _KV_Range_Handler,
  5862. },
  5863. {
  5864. MethodName: "Put",
  5865. Handler: _KV_Put_Handler,
  5866. },
  5867. {
  5868. MethodName: "DeleteRange",
  5869. Handler: _KV_DeleteRange_Handler,
  5870. },
  5871. {
  5872. MethodName: "Txn",
  5873. Handler: _KV_Txn_Handler,
  5874. },
  5875. {
  5876. MethodName: "Compact",
  5877. Handler: _KV_Compact_Handler,
  5878. },
  5879. },
  5880. Streams: []grpc.StreamDesc{},
  5881. Metadata: "rpc.proto",
  5882. }
  5883. // WatchClient is the client API for Watch service.
  5884. //
  5885. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  5886. type WatchClient interface {
  5887. // Watch watches for events happening or that have happened. Both input and output
  5888. // are streams; the input stream is for creating and canceling watchers and the output
  5889. // stream sends events. One watch RPC can watch on multiple key ranges, streaming events
  5890. // for several watches at once. The entire event history can be watched starting from the
  5891. // last compaction revision.
  5892. Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error)
  5893. }
  5894. type watchClient struct {
  5895. cc *grpc.ClientConn
  5896. }
  5897. func NewWatchClient(cc *grpc.ClientConn) WatchClient {
  5898. return &watchClient{cc}
  5899. }
  5900. func (c *watchClient) Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error) {
  5901. stream, err := c.cc.NewStream(ctx, &_Watch_serviceDesc.Streams[0], "/etcdserverpb.Watch/Watch", opts...)
  5902. if err != nil {
  5903. return nil, err
  5904. }
  5905. x := &watchWatchClient{stream}
  5906. return x, nil
  5907. }
  5908. type Watch_WatchClient interface {
  5909. Send(*WatchRequest) error
  5910. Recv() (*WatchResponse, error)
  5911. grpc.ClientStream
  5912. }
  5913. type watchWatchClient struct {
  5914. grpc.ClientStream
  5915. }
  5916. func (x *watchWatchClient) Send(m *WatchRequest) error {
  5917. return x.ClientStream.SendMsg(m)
  5918. }
  5919. func (x *watchWatchClient) Recv() (*WatchResponse, error) {
  5920. m := new(WatchResponse)
  5921. if err := x.ClientStream.RecvMsg(m); err != nil {
  5922. return nil, err
  5923. }
  5924. return m, nil
  5925. }
  5926. // WatchServer is the server API for Watch service.
  5927. type WatchServer interface {
  5928. // Watch watches for events happening or that have happened. Both input and output
  5929. // are streams; the input stream is for creating and canceling watchers and the output
  5930. // stream sends events. One watch RPC can watch on multiple key ranges, streaming events
  5931. // for several watches at once. The entire event history can be watched starting from the
  5932. // last compaction revision.
  5933. Watch(Watch_WatchServer) error
  5934. }
  5935. // UnimplementedWatchServer can be embedded to have forward compatible implementations.
  5936. type UnimplementedWatchServer struct {
  5937. }
  5938. func (*UnimplementedWatchServer) Watch(srv Watch_WatchServer) error {
  5939. return status.Errorf(codes.Unimplemented, "method Watch not implemented")
  5940. }
  5941. func RegisterWatchServer(s *grpc.Server, srv WatchServer) {
  5942. s.RegisterService(&_Watch_serviceDesc, srv)
  5943. }
  5944. func _Watch_Watch_Handler(srv interface{}, stream grpc.ServerStream) error {
  5945. return srv.(WatchServer).Watch(&watchWatchServer{stream})
  5946. }
  5947. type Watch_WatchServer interface {
  5948. Send(*WatchResponse) error
  5949. Recv() (*WatchRequest, error)
  5950. grpc.ServerStream
  5951. }
  5952. type watchWatchServer struct {
  5953. grpc.ServerStream
  5954. }
  5955. func (x *watchWatchServer) Send(m *WatchResponse) error {
  5956. return x.ServerStream.SendMsg(m)
  5957. }
  5958. func (x *watchWatchServer) Recv() (*WatchRequest, error) {
  5959. m := new(WatchRequest)
  5960. if err := x.ServerStream.RecvMsg(m); err != nil {
  5961. return nil, err
  5962. }
  5963. return m, nil
  5964. }
  5965. var _Watch_serviceDesc = grpc.ServiceDesc{
  5966. ServiceName: "etcdserverpb.Watch",
  5967. HandlerType: (*WatchServer)(nil),
  5968. Methods: []grpc.MethodDesc{},
  5969. Streams: []grpc.StreamDesc{
  5970. {
  5971. StreamName: "Watch",
  5972. Handler: _Watch_Watch_Handler,
  5973. ServerStreams: true,
  5974. ClientStreams: true,
  5975. },
  5976. },
  5977. Metadata: "rpc.proto",
  5978. }
  5979. // LeaseClient is the client API for Lease service.
  5980. //
  5981. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  5982. type LeaseClient interface {
  5983. // LeaseGrant creates a lease which expires if the server does not receive a keepAlive
  5984. // within a given time to live period. All keys attached to the lease will be expired and
  5985. // deleted if the lease expires. Each expired key generates a delete event in the event history.
  5986. LeaseGrant(ctx context.Context, in *LeaseGrantRequest, opts ...grpc.CallOption) (*LeaseGrantResponse, error)
  5987. // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
  5988. LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error)
  5989. // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
  5990. // to the server and streaming keep alive responses from the server to the client.
  5991. LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (Lease_LeaseKeepAliveClient, error)
  5992. // LeaseTimeToLive retrieves lease information.
  5993. LeaseTimeToLive(ctx context.Context, in *LeaseTimeToLiveRequest, opts ...grpc.CallOption) (*LeaseTimeToLiveResponse, error)
  5994. // LeaseLeases lists all existing leases.
  5995. LeaseLeases(ctx context.Context, in *LeaseLeasesRequest, opts ...grpc.CallOption) (*LeaseLeasesResponse, error)
  5996. }
  5997. type leaseClient struct {
  5998. cc *grpc.ClientConn
  5999. }
  6000. func NewLeaseClient(cc *grpc.ClientConn) LeaseClient {
  6001. return &leaseClient{cc}
  6002. }
  6003. func (c *leaseClient) LeaseGrant(ctx context.Context, in *LeaseGrantRequest, opts ...grpc.CallOption) (*LeaseGrantResponse, error) {
  6004. out := new(LeaseGrantResponse)
  6005. err := c.cc.Invoke(ctx, "/etcdserverpb.Lease/LeaseGrant", in, out, opts...)
  6006. if err != nil {
  6007. return nil, err
  6008. }
  6009. return out, nil
  6010. }
  6011. func (c *leaseClient) LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error) {
  6012. out := new(LeaseRevokeResponse)
  6013. err := c.cc.Invoke(ctx, "/etcdserverpb.Lease/LeaseRevoke", in, out, opts...)
  6014. if err != nil {
  6015. return nil, err
  6016. }
  6017. return out, nil
  6018. }
  6019. func (c *leaseClient) LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (Lease_LeaseKeepAliveClient, error) {
  6020. stream, err := c.cc.NewStream(ctx, &_Lease_serviceDesc.Streams[0], "/etcdserverpb.Lease/LeaseKeepAlive", opts...)
  6021. if err != nil {
  6022. return nil, err
  6023. }
  6024. x := &leaseLeaseKeepAliveClient{stream}
  6025. return x, nil
  6026. }
  6027. type Lease_LeaseKeepAliveClient interface {
  6028. Send(*LeaseKeepAliveRequest) error
  6029. Recv() (*LeaseKeepAliveResponse, error)
  6030. grpc.ClientStream
  6031. }
  6032. type leaseLeaseKeepAliveClient struct {
  6033. grpc.ClientStream
  6034. }
  6035. func (x *leaseLeaseKeepAliveClient) Send(m *LeaseKeepAliveRequest) error {
  6036. return x.ClientStream.SendMsg(m)
  6037. }
  6038. func (x *leaseLeaseKeepAliveClient) Recv() (*LeaseKeepAliveResponse, error) {
  6039. m := new(LeaseKeepAliveResponse)
  6040. if err := x.ClientStream.RecvMsg(m); err != nil {
  6041. return nil, err
  6042. }
  6043. return m, nil
  6044. }
  6045. func (c *leaseClient) LeaseTimeToLive(ctx context.Context, in *LeaseTimeToLiveRequest, opts ...grpc.CallOption) (*LeaseTimeToLiveResponse, error) {
  6046. out := new(LeaseTimeToLiveResponse)
  6047. err := c.cc.Invoke(ctx, "/etcdserverpb.Lease/LeaseTimeToLive", in, out, opts...)
  6048. if err != nil {
  6049. return nil, err
  6050. }
  6051. return out, nil
  6052. }
  6053. func (c *leaseClient) LeaseLeases(ctx context.Context, in *LeaseLeasesRequest, opts ...grpc.CallOption) (*LeaseLeasesResponse, error) {
  6054. out := new(LeaseLeasesResponse)
  6055. err := c.cc.Invoke(ctx, "/etcdserverpb.Lease/LeaseLeases", in, out, opts...)
  6056. if err != nil {
  6057. return nil, err
  6058. }
  6059. return out, nil
  6060. }
  6061. // LeaseServer is the server API for Lease service.
  6062. type LeaseServer interface {
  6063. // LeaseGrant creates a lease which expires if the server does not receive a keepAlive
  6064. // within a given time to live period. All keys attached to the lease will be expired and
  6065. // deleted if the lease expires. Each expired key generates a delete event in the event history.
  6066. LeaseGrant(context.Context, *LeaseGrantRequest) (*LeaseGrantResponse, error)
  6067. // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
  6068. LeaseRevoke(context.Context, *LeaseRevokeRequest) (*LeaseRevokeResponse, error)
  6069. // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
  6070. // to the server and streaming keep alive responses from the server to the client.
  6071. LeaseKeepAlive(Lease_LeaseKeepAliveServer) error
  6072. // LeaseTimeToLive retrieves lease information.
  6073. LeaseTimeToLive(context.Context, *LeaseTimeToLiveRequest) (*LeaseTimeToLiveResponse, error)
  6074. // LeaseLeases lists all existing leases.
  6075. LeaseLeases(context.Context, *LeaseLeasesRequest) (*LeaseLeasesResponse, error)
  6076. }
  6077. // UnimplementedLeaseServer can be embedded to have forward compatible implementations.
  6078. type UnimplementedLeaseServer struct {
  6079. }
  6080. func (*UnimplementedLeaseServer) LeaseGrant(ctx context.Context, req *LeaseGrantRequest) (*LeaseGrantResponse, error) {
  6081. return nil, status.Errorf(codes.Unimplemented, "method LeaseGrant not implemented")
  6082. }
  6083. func (*UnimplementedLeaseServer) LeaseRevoke(ctx context.Context, req *LeaseRevokeRequest) (*LeaseRevokeResponse, error) {
  6084. return nil, status.Errorf(codes.Unimplemented, "method LeaseRevoke not implemented")
  6085. }
  6086. func (*UnimplementedLeaseServer) LeaseKeepAlive(srv Lease_LeaseKeepAliveServer) error {
  6087. return status.Errorf(codes.Unimplemented, "method LeaseKeepAlive not implemented")
  6088. }
  6089. func (*UnimplementedLeaseServer) LeaseTimeToLive(ctx context.Context, req *LeaseTimeToLiveRequest) (*LeaseTimeToLiveResponse, error) {
  6090. return nil, status.Errorf(codes.Unimplemented, "method LeaseTimeToLive not implemented")
  6091. }
  6092. func (*UnimplementedLeaseServer) LeaseLeases(ctx context.Context, req *LeaseLeasesRequest) (*LeaseLeasesResponse, error) {
  6093. return nil, status.Errorf(codes.Unimplemented, "method LeaseLeases not implemented")
  6094. }
  6095. func RegisterLeaseServer(s *grpc.Server, srv LeaseServer) {
  6096. s.RegisterService(&_Lease_serviceDesc, srv)
  6097. }
  6098. func _Lease_LeaseGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6099. in := new(LeaseGrantRequest)
  6100. if err := dec(in); err != nil {
  6101. return nil, err
  6102. }
  6103. if interceptor == nil {
  6104. return srv.(LeaseServer).LeaseGrant(ctx, in)
  6105. }
  6106. info := &grpc.UnaryServerInfo{
  6107. Server: srv,
  6108. FullMethod: "/etcdserverpb.Lease/LeaseGrant",
  6109. }
  6110. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6111. return srv.(LeaseServer).LeaseGrant(ctx, req.(*LeaseGrantRequest))
  6112. }
  6113. return interceptor(ctx, in, info, handler)
  6114. }
  6115. func _Lease_LeaseRevoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6116. in := new(LeaseRevokeRequest)
  6117. if err := dec(in); err != nil {
  6118. return nil, err
  6119. }
  6120. if interceptor == nil {
  6121. return srv.(LeaseServer).LeaseRevoke(ctx, in)
  6122. }
  6123. info := &grpc.UnaryServerInfo{
  6124. Server: srv,
  6125. FullMethod: "/etcdserverpb.Lease/LeaseRevoke",
  6126. }
  6127. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6128. return srv.(LeaseServer).LeaseRevoke(ctx, req.(*LeaseRevokeRequest))
  6129. }
  6130. return interceptor(ctx, in, info, handler)
  6131. }
  6132. func _Lease_LeaseKeepAlive_Handler(srv interface{}, stream grpc.ServerStream) error {
  6133. return srv.(LeaseServer).LeaseKeepAlive(&leaseLeaseKeepAliveServer{stream})
  6134. }
  6135. type Lease_LeaseKeepAliveServer interface {
  6136. Send(*LeaseKeepAliveResponse) error
  6137. Recv() (*LeaseKeepAliveRequest, error)
  6138. grpc.ServerStream
  6139. }
  6140. type leaseLeaseKeepAliveServer struct {
  6141. grpc.ServerStream
  6142. }
  6143. func (x *leaseLeaseKeepAliveServer) Send(m *LeaseKeepAliveResponse) error {
  6144. return x.ServerStream.SendMsg(m)
  6145. }
  6146. func (x *leaseLeaseKeepAliveServer) Recv() (*LeaseKeepAliveRequest, error) {
  6147. m := new(LeaseKeepAliveRequest)
  6148. if err := x.ServerStream.RecvMsg(m); err != nil {
  6149. return nil, err
  6150. }
  6151. return m, nil
  6152. }
  6153. func _Lease_LeaseTimeToLive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6154. in := new(LeaseTimeToLiveRequest)
  6155. if err := dec(in); err != nil {
  6156. return nil, err
  6157. }
  6158. if interceptor == nil {
  6159. return srv.(LeaseServer).LeaseTimeToLive(ctx, in)
  6160. }
  6161. info := &grpc.UnaryServerInfo{
  6162. Server: srv,
  6163. FullMethod: "/etcdserverpb.Lease/LeaseTimeToLive",
  6164. }
  6165. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6166. return srv.(LeaseServer).LeaseTimeToLive(ctx, req.(*LeaseTimeToLiveRequest))
  6167. }
  6168. return interceptor(ctx, in, info, handler)
  6169. }
  6170. func _Lease_LeaseLeases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6171. in := new(LeaseLeasesRequest)
  6172. if err := dec(in); err != nil {
  6173. return nil, err
  6174. }
  6175. if interceptor == nil {
  6176. return srv.(LeaseServer).LeaseLeases(ctx, in)
  6177. }
  6178. info := &grpc.UnaryServerInfo{
  6179. Server: srv,
  6180. FullMethod: "/etcdserverpb.Lease/LeaseLeases",
  6181. }
  6182. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6183. return srv.(LeaseServer).LeaseLeases(ctx, req.(*LeaseLeasesRequest))
  6184. }
  6185. return interceptor(ctx, in, info, handler)
  6186. }
  6187. var _Lease_serviceDesc = grpc.ServiceDesc{
  6188. ServiceName: "etcdserverpb.Lease",
  6189. HandlerType: (*LeaseServer)(nil),
  6190. Methods: []grpc.MethodDesc{
  6191. {
  6192. MethodName: "LeaseGrant",
  6193. Handler: _Lease_LeaseGrant_Handler,
  6194. },
  6195. {
  6196. MethodName: "LeaseRevoke",
  6197. Handler: _Lease_LeaseRevoke_Handler,
  6198. },
  6199. {
  6200. MethodName: "LeaseTimeToLive",
  6201. Handler: _Lease_LeaseTimeToLive_Handler,
  6202. },
  6203. {
  6204. MethodName: "LeaseLeases",
  6205. Handler: _Lease_LeaseLeases_Handler,
  6206. },
  6207. },
  6208. Streams: []grpc.StreamDesc{
  6209. {
  6210. StreamName: "LeaseKeepAlive",
  6211. Handler: _Lease_LeaseKeepAlive_Handler,
  6212. ServerStreams: true,
  6213. ClientStreams: true,
  6214. },
  6215. },
  6216. Metadata: "rpc.proto",
  6217. }
  6218. // ClusterClient is the client API for Cluster service.
  6219. //
  6220. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  6221. type ClusterClient interface {
  6222. // MemberAdd adds a member into the cluster.
  6223. MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error)
  6224. // MemberRemove removes an existing member from the cluster.
  6225. MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error)
  6226. // MemberUpdate updates the member configuration.
  6227. MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error)
  6228. // MemberList lists all the members in the cluster.
  6229. MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error)
  6230. }
  6231. type clusterClient struct {
  6232. cc *grpc.ClientConn
  6233. }
  6234. func NewClusterClient(cc *grpc.ClientConn) ClusterClient {
  6235. return &clusterClient{cc}
  6236. }
  6237. func (c *clusterClient) MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error) {
  6238. out := new(MemberAddResponse)
  6239. err := c.cc.Invoke(ctx, "/etcdserverpb.Cluster/MemberAdd", in, out, opts...)
  6240. if err != nil {
  6241. return nil, err
  6242. }
  6243. return out, nil
  6244. }
  6245. func (c *clusterClient) MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error) {
  6246. out := new(MemberRemoveResponse)
  6247. err := c.cc.Invoke(ctx, "/etcdserverpb.Cluster/MemberRemove", in, out, opts...)
  6248. if err != nil {
  6249. return nil, err
  6250. }
  6251. return out, nil
  6252. }
  6253. func (c *clusterClient) MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error) {
  6254. out := new(MemberUpdateResponse)
  6255. err := c.cc.Invoke(ctx, "/etcdserverpb.Cluster/MemberUpdate", in, out, opts...)
  6256. if err != nil {
  6257. return nil, err
  6258. }
  6259. return out, nil
  6260. }
  6261. func (c *clusterClient) MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error) {
  6262. out := new(MemberListResponse)
  6263. err := c.cc.Invoke(ctx, "/etcdserverpb.Cluster/MemberList", in, out, opts...)
  6264. if err != nil {
  6265. return nil, err
  6266. }
  6267. return out, nil
  6268. }
  6269. // ClusterServer is the server API for Cluster service.
  6270. type ClusterServer interface {
  6271. // MemberAdd adds a member into the cluster.
  6272. MemberAdd(context.Context, *MemberAddRequest) (*MemberAddResponse, error)
  6273. // MemberRemove removes an existing member from the cluster.
  6274. MemberRemove(context.Context, *MemberRemoveRequest) (*MemberRemoveResponse, error)
  6275. // MemberUpdate updates the member configuration.
  6276. MemberUpdate(context.Context, *MemberUpdateRequest) (*MemberUpdateResponse, error)
  6277. // MemberList lists all the members in the cluster.
  6278. MemberList(context.Context, *MemberListRequest) (*MemberListResponse, error)
  6279. }
  6280. // UnimplementedClusterServer can be embedded to have forward compatible implementations.
  6281. type UnimplementedClusterServer struct {
  6282. }
  6283. func (*UnimplementedClusterServer) MemberAdd(ctx context.Context, req *MemberAddRequest) (*MemberAddResponse, error) {
  6284. return nil, status.Errorf(codes.Unimplemented, "method MemberAdd not implemented")
  6285. }
  6286. func (*UnimplementedClusterServer) MemberRemove(ctx context.Context, req *MemberRemoveRequest) (*MemberRemoveResponse, error) {
  6287. return nil, status.Errorf(codes.Unimplemented, "method MemberRemove not implemented")
  6288. }
  6289. func (*UnimplementedClusterServer) MemberUpdate(ctx context.Context, req *MemberUpdateRequest) (*MemberUpdateResponse, error) {
  6290. return nil, status.Errorf(codes.Unimplemented, "method MemberUpdate not implemented")
  6291. }
  6292. func (*UnimplementedClusterServer) MemberList(ctx context.Context, req *MemberListRequest) (*MemberListResponse, error) {
  6293. return nil, status.Errorf(codes.Unimplemented, "method MemberList not implemented")
  6294. }
  6295. func RegisterClusterServer(s *grpc.Server, srv ClusterServer) {
  6296. s.RegisterService(&_Cluster_serviceDesc, srv)
  6297. }
  6298. func _Cluster_MemberAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6299. in := new(MemberAddRequest)
  6300. if err := dec(in); err != nil {
  6301. return nil, err
  6302. }
  6303. if interceptor == nil {
  6304. return srv.(ClusterServer).MemberAdd(ctx, in)
  6305. }
  6306. info := &grpc.UnaryServerInfo{
  6307. Server: srv,
  6308. FullMethod: "/etcdserverpb.Cluster/MemberAdd",
  6309. }
  6310. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6311. return srv.(ClusterServer).MemberAdd(ctx, req.(*MemberAddRequest))
  6312. }
  6313. return interceptor(ctx, in, info, handler)
  6314. }
  6315. func _Cluster_MemberRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6316. in := new(MemberRemoveRequest)
  6317. if err := dec(in); err != nil {
  6318. return nil, err
  6319. }
  6320. if interceptor == nil {
  6321. return srv.(ClusterServer).MemberRemove(ctx, in)
  6322. }
  6323. info := &grpc.UnaryServerInfo{
  6324. Server: srv,
  6325. FullMethod: "/etcdserverpb.Cluster/MemberRemove",
  6326. }
  6327. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6328. return srv.(ClusterServer).MemberRemove(ctx, req.(*MemberRemoveRequest))
  6329. }
  6330. return interceptor(ctx, in, info, handler)
  6331. }
  6332. func _Cluster_MemberUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6333. in := new(MemberUpdateRequest)
  6334. if err := dec(in); err != nil {
  6335. return nil, err
  6336. }
  6337. if interceptor == nil {
  6338. return srv.(ClusterServer).MemberUpdate(ctx, in)
  6339. }
  6340. info := &grpc.UnaryServerInfo{
  6341. Server: srv,
  6342. FullMethod: "/etcdserverpb.Cluster/MemberUpdate",
  6343. }
  6344. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6345. return srv.(ClusterServer).MemberUpdate(ctx, req.(*MemberUpdateRequest))
  6346. }
  6347. return interceptor(ctx, in, info, handler)
  6348. }
  6349. func _Cluster_MemberList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6350. in := new(MemberListRequest)
  6351. if err := dec(in); err != nil {
  6352. return nil, err
  6353. }
  6354. if interceptor == nil {
  6355. return srv.(ClusterServer).MemberList(ctx, in)
  6356. }
  6357. info := &grpc.UnaryServerInfo{
  6358. Server: srv,
  6359. FullMethod: "/etcdserverpb.Cluster/MemberList",
  6360. }
  6361. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6362. return srv.(ClusterServer).MemberList(ctx, req.(*MemberListRequest))
  6363. }
  6364. return interceptor(ctx, in, info, handler)
  6365. }
  6366. var _Cluster_serviceDesc = grpc.ServiceDesc{
  6367. ServiceName: "etcdserverpb.Cluster",
  6368. HandlerType: (*ClusterServer)(nil),
  6369. Methods: []grpc.MethodDesc{
  6370. {
  6371. MethodName: "MemberAdd",
  6372. Handler: _Cluster_MemberAdd_Handler,
  6373. },
  6374. {
  6375. MethodName: "MemberRemove",
  6376. Handler: _Cluster_MemberRemove_Handler,
  6377. },
  6378. {
  6379. MethodName: "MemberUpdate",
  6380. Handler: _Cluster_MemberUpdate_Handler,
  6381. },
  6382. {
  6383. MethodName: "MemberList",
  6384. Handler: _Cluster_MemberList_Handler,
  6385. },
  6386. },
  6387. Streams: []grpc.StreamDesc{},
  6388. Metadata: "rpc.proto",
  6389. }
  6390. // MaintenanceClient is the client API for Maintenance service.
  6391. //
  6392. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  6393. type MaintenanceClient interface {
  6394. // Alarm activates, deactivates, and queries alarms regarding cluster health.
  6395. Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error)
  6396. // Status gets the status of the member.
  6397. Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
  6398. // Defragment defragments a member's backend database to recover storage space.
  6399. Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error)
  6400. // Hash computes the hash of the KV's backend.
  6401. // This is designed for testing; do not use this in production when there
  6402. // are ongoing transactions.
  6403. Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error)
  6404. // HashKV computes the hash of all MVCC keys up to a given revision.
  6405. HashKV(ctx context.Context, in *HashKVRequest, opts ...grpc.CallOption) (*HashKVResponse, error)
  6406. // Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
  6407. Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (Maintenance_SnapshotClient, error)
  6408. // MoveLeader requests current leader node to transfer its leadership to transferee.
  6409. MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error)
  6410. }
  6411. type maintenanceClient struct {
  6412. cc *grpc.ClientConn
  6413. }
  6414. func NewMaintenanceClient(cc *grpc.ClientConn) MaintenanceClient {
  6415. return &maintenanceClient{cc}
  6416. }
  6417. func (c *maintenanceClient) Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error) {
  6418. out := new(AlarmResponse)
  6419. err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/Alarm", in, out, opts...)
  6420. if err != nil {
  6421. return nil, err
  6422. }
  6423. return out, nil
  6424. }
  6425. func (c *maintenanceClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) {
  6426. out := new(StatusResponse)
  6427. err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/Status", in, out, opts...)
  6428. if err != nil {
  6429. return nil, err
  6430. }
  6431. return out, nil
  6432. }
  6433. func (c *maintenanceClient) Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error) {
  6434. out := new(DefragmentResponse)
  6435. err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/Defragment", in, out, opts...)
  6436. if err != nil {
  6437. return nil, err
  6438. }
  6439. return out, nil
  6440. }
  6441. func (c *maintenanceClient) Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error) {
  6442. out := new(HashResponse)
  6443. err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/Hash", in, out, opts...)
  6444. if err != nil {
  6445. return nil, err
  6446. }
  6447. return out, nil
  6448. }
  6449. func (c *maintenanceClient) HashKV(ctx context.Context, in *HashKVRequest, opts ...grpc.CallOption) (*HashKVResponse, error) {
  6450. out := new(HashKVResponse)
  6451. err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/HashKV", in, out, opts...)
  6452. if err != nil {
  6453. return nil, err
  6454. }
  6455. return out, nil
  6456. }
  6457. func (c *maintenanceClient) Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (Maintenance_SnapshotClient, error) {
  6458. stream, err := c.cc.NewStream(ctx, &_Maintenance_serviceDesc.Streams[0], "/etcdserverpb.Maintenance/Snapshot", opts...)
  6459. if err != nil {
  6460. return nil, err
  6461. }
  6462. x := &maintenanceSnapshotClient{stream}
  6463. if err := x.ClientStream.SendMsg(in); err != nil {
  6464. return nil, err
  6465. }
  6466. if err := x.ClientStream.CloseSend(); err != nil {
  6467. return nil, err
  6468. }
  6469. return x, nil
  6470. }
  6471. type Maintenance_SnapshotClient interface {
  6472. Recv() (*SnapshotResponse, error)
  6473. grpc.ClientStream
  6474. }
  6475. type maintenanceSnapshotClient struct {
  6476. grpc.ClientStream
  6477. }
  6478. func (x *maintenanceSnapshotClient) Recv() (*SnapshotResponse, error) {
  6479. m := new(SnapshotResponse)
  6480. if err := x.ClientStream.RecvMsg(m); err != nil {
  6481. return nil, err
  6482. }
  6483. return m, nil
  6484. }
  6485. func (c *maintenanceClient) MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error) {
  6486. out := new(MoveLeaderResponse)
  6487. err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/MoveLeader", in, out, opts...)
  6488. if err != nil {
  6489. return nil, err
  6490. }
  6491. return out, nil
  6492. }
  6493. // MaintenanceServer is the server API for Maintenance service.
  6494. type MaintenanceServer interface {
  6495. // Alarm activates, deactivates, and queries alarms regarding cluster health.
  6496. Alarm(context.Context, *AlarmRequest) (*AlarmResponse, error)
  6497. // Status gets the status of the member.
  6498. Status(context.Context, *StatusRequest) (*StatusResponse, error)
  6499. // Defragment defragments a member's backend database to recover storage space.
  6500. Defragment(context.Context, *DefragmentRequest) (*DefragmentResponse, error)
  6501. // Hash computes the hash of the KV's backend.
  6502. // This is designed for testing; do not use this in production when there
  6503. // are ongoing transactions.
  6504. Hash(context.Context, *HashRequest) (*HashResponse, error)
  6505. // HashKV computes the hash of all MVCC keys up to a given revision.
  6506. HashKV(context.Context, *HashKVRequest) (*HashKVResponse, error)
  6507. // Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
  6508. Snapshot(*SnapshotRequest, Maintenance_SnapshotServer) error
  6509. // MoveLeader requests current leader node to transfer its leadership to transferee.
  6510. MoveLeader(context.Context, *MoveLeaderRequest) (*MoveLeaderResponse, error)
  6511. }
  6512. // UnimplementedMaintenanceServer can be embedded to have forward compatible implementations.
  6513. type UnimplementedMaintenanceServer struct {
  6514. }
  6515. func (*UnimplementedMaintenanceServer) Alarm(ctx context.Context, req *AlarmRequest) (*AlarmResponse, error) {
  6516. return nil, status.Errorf(codes.Unimplemented, "method Alarm not implemented")
  6517. }
  6518. func (*UnimplementedMaintenanceServer) Status(ctx context.Context, req *StatusRequest) (*StatusResponse, error) {
  6519. return nil, status.Errorf(codes.Unimplemented, "method Status not implemented")
  6520. }
  6521. func (*UnimplementedMaintenanceServer) Defragment(ctx context.Context, req *DefragmentRequest) (*DefragmentResponse, error) {
  6522. return nil, status.Errorf(codes.Unimplemented, "method Defragment not implemented")
  6523. }
  6524. func (*UnimplementedMaintenanceServer) Hash(ctx context.Context, req *HashRequest) (*HashResponse, error) {
  6525. return nil, status.Errorf(codes.Unimplemented, "method Hash not implemented")
  6526. }
  6527. func (*UnimplementedMaintenanceServer) HashKV(ctx context.Context, req *HashKVRequest) (*HashKVResponse, error) {
  6528. return nil, status.Errorf(codes.Unimplemented, "method HashKV not implemented")
  6529. }
  6530. func (*UnimplementedMaintenanceServer) Snapshot(req *SnapshotRequest, srv Maintenance_SnapshotServer) error {
  6531. return status.Errorf(codes.Unimplemented, "method Snapshot not implemented")
  6532. }
  6533. func (*UnimplementedMaintenanceServer) MoveLeader(ctx context.Context, req *MoveLeaderRequest) (*MoveLeaderResponse, error) {
  6534. return nil, status.Errorf(codes.Unimplemented, "method MoveLeader not implemented")
  6535. }
  6536. func RegisterMaintenanceServer(s *grpc.Server, srv MaintenanceServer) {
  6537. s.RegisterService(&_Maintenance_serviceDesc, srv)
  6538. }
  6539. func _Maintenance_Alarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6540. in := new(AlarmRequest)
  6541. if err := dec(in); err != nil {
  6542. return nil, err
  6543. }
  6544. if interceptor == nil {
  6545. return srv.(MaintenanceServer).Alarm(ctx, in)
  6546. }
  6547. info := &grpc.UnaryServerInfo{
  6548. Server: srv,
  6549. FullMethod: "/etcdserverpb.Maintenance/Alarm",
  6550. }
  6551. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6552. return srv.(MaintenanceServer).Alarm(ctx, req.(*AlarmRequest))
  6553. }
  6554. return interceptor(ctx, in, info, handler)
  6555. }
  6556. func _Maintenance_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6557. in := new(StatusRequest)
  6558. if err := dec(in); err != nil {
  6559. return nil, err
  6560. }
  6561. if interceptor == nil {
  6562. return srv.(MaintenanceServer).Status(ctx, in)
  6563. }
  6564. info := &grpc.UnaryServerInfo{
  6565. Server: srv,
  6566. FullMethod: "/etcdserverpb.Maintenance/Status",
  6567. }
  6568. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6569. return srv.(MaintenanceServer).Status(ctx, req.(*StatusRequest))
  6570. }
  6571. return interceptor(ctx, in, info, handler)
  6572. }
  6573. func _Maintenance_Defragment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6574. in := new(DefragmentRequest)
  6575. if err := dec(in); err != nil {
  6576. return nil, err
  6577. }
  6578. if interceptor == nil {
  6579. return srv.(MaintenanceServer).Defragment(ctx, in)
  6580. }
  6581. info := &grpc.UnaryServerInfo{
  6582. Server: srv,
  6583. FullMethod: "/etcdserverpb.Maintenance/Defragment",
  6584. }
  6585. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6586. return srv.(MaintenanceServer).Defragment(ctx, req.(*DefragmentRequest))
  6587. }
  6588. return interceptor(ctx, in, info, handler)
  6589. }
  6590. func _Maintenance_Hash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6591. in := new(HashRequest)
  6592. if err := dec(in); err != nil {
  6593. return nil, err
  6594. }
  6595. if interceptor == nil {
  6596. return srv.(MaintenanceServer).Hash(ctx, in)
  6597. }
  6598. info := &grpc.UnaryServerInfo{
  6599. Server: srv,
  6600. FullMethod: "/etcdserverpb.Maintenance/Hash",
  6601. }
  6602. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6603. return srv.(MaintenanceServer).Hash(ctx, req.(*HashRequest))
  6604. }
  6605. return interceptor(ctx, in, info, handler)
  6606. }
  6607. func _Maintenance_HashKV_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6608. in := new(HashKVRequest)
  6609. if err := dec(in); err != nil {
  6610. return nil, err
  6611. }
  6612. if interceptor == nil {
  6613. return srv.(MaintenanceServer).HashKV(ctx, in)
  6614. }
  6615. info := &grpc.UnaryServerInfo{
  6616. Server: srv,
  6617. FullMethod: "/etcdserverpb.Maintenance/HashKV",
  6618. }
  6619. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6620. return srv.(MaintenanceServer).HashKV(ctx, req.(*HashKVRequest))
  6621. }
  6622. return interceptor(ctx, in, info, handler)
  6623. }
  6624. func _Maintenance_Snapshot_Handler(srv interface{}, stream grpc.ServerStream) error {
  6625. m := new(SnapshotRequest)
  6626. if err := stream.RecvMsg(m); err != nil {
  6627. return err
  6628. }
  6629. return srv.(MaintenanceServer).Snapshot(m, &maintenanceSnapshotServer{stream})
  6630. }
  6631. type Maintenance_SnapshotServer interface {
  6632. Send(*SnapshotResponse) error
  6633. grpc.ServerStream
  6634. }
  6635. type maintenanceSnapshotServer struct {
  6636. grpc.ServerStream
  6637. }
  6638. func (x *maintenanceSnapshotServer) Send(m *SnapshotResponse) error {
  6639. return x.ServerStream.SendMsg(m)
  6640. }
  6641. func _Maintenance_MoveLeader_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6642. in := new(MoveLeaderRequest)
  6643. if err := dec(in); err != nil {
  6644. return nil, err
  6645. }
  6646. if interceptor == nil {
  6647. return srv.(MaintenanceServer).MoveLeader(ctx, in)
  6648. }
  6649. info := &grpc.UnaryServerInfo{
  6650. Server: srv,
  6651. FullMethod: "/etcdserverpb.Maintenance/MoveLeader",
  6652. }
  6653. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6654. return srv.(MaintenanceServer).MoveLeader(ctx, req.(*MoveLeaderRequest))
  6655. }
  6656. return interceptor(ctx, in, info, handler)
  6657. }
  6658. var _Maintenance_serviceDesc = grpc.ServiceDesc{
  6659. ServiceName: "etcdserverpb.Maintenance",
  6660. HandlerType: (*MaintenanceServer)(nil),
  6661. Methods: []grpc.MethodDesc{
  6662. {
  6663. MethodName: "Alarm",
  6664. Handler: _Maintenance_Alarm_Handler,
  6665. },
  6666. {
  6667. MethodName: "Status",
  6668. Handler: _Maintenance_Status_Handler,
  6669. },
  6670. {
  6671. MethodName: "Defragment",
  6672. Handler: _Maintenance_Defragment_Handler,
  6673. },
  6674. {
  6675. MethodName: "Hash",
  6676. Handler: _Maintenance_Hash_Handler,
  6677. },
  6678. {
  6679. MethodName: "HashKV",
  6680. Handler: _Maintenance_HashKV_Handler,
  6681. },
  6682. {
  6683. MethodName: "MoveLeader",
  6684. Handler: _Maintenance_MoveLeader_Handler,
  6685. },
  6686. },
  6687. Streams: []grpc.StreamDesc{
  6688. {
  6689. StreamName: "Snapshot",
  6690. Handler: _Maintenance_Snapshot_Handler,
  6691. ServerStreams: true,
  6692. },
  6693. },
  6694. Metadata: "rpc.proto",
  6695. }
  6696. // AuthClient is the client API for Auth service.
  6697. //
  6698. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  6699. type AuthClient interface {
  6700. // AuthEnable enables authentication.
  6701. AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error)
  6702. // AuthDisable disables authentication.
  6703. AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error)
  6704. // Authenticate processes an authenticate request.
  6705. Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
  6706. // UserAdd adds a new user.
  6707. UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error)
  6708. // UserGet gets detailed user information.
  6709. UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, error)
  6710. // UserList gets a list of all users.
  6711. UserList(ctx context.Context, in *AuthUserListRequest, opts ...grpc.CallOption) (*AuthUserListResponse, error)
  6712. // UserDelete deletes a specified user.
  6713. UserDelete(ctx context.Context, in *AuthUserDeleteRequest, opts ...grpc.CallOption) (*AuthUserDeleteResponse, error)
  6714. // UserChangePassword changes the password of a specified user.
  6715. UserChangePassword(ctx context.Context, in *AuthUserChangePasswordRequest, opts ...grpc.CallOption) (*AuthUserChangePasswordResponse, error)
  6716. // UserGrant grants a role to a specified user.
  6717. UserGrantRole(ctx context.Context, in *AuthUserGrantRoleRequest, opts ...grpc.CallOption) (*AuthUserGrantRoleResponse, error)
  6718. // UserRevokeRole revokes a role of specified user.
  6719. UserRevokeRole(ctx context.Context, in *AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (*AuthUserRevokeRoleResponse, error)
  6720. // RoleAdd adds a new role.
  6721. RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error)
  6722. // RoleGet gets detailed role information.
  6723. RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error)
  6724. // RoleList gets lists of all roles.
  6725. RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error)
  6726. // RoleDelete deletes a specified role.
  6727. RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error)
  6728. // RoleGrantPermission grants a permission of a specified key or range to a specified role.
  6729. RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error)
  6730. // RoleRevokePermission revokes a key or range permission of a specified role.
  6731. RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error)
  6732. }
  6733. type authClient struct {
  6734. cc *grpc.ClientConn
  6735. }
  6736. func NewAuthClient(cc *grpc.ClientConn) AuthClient {
  6737. return &authClient{cc}
  6738. }
  6739. func (c *authClient) AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error) {
  6740. out := new(AuthEnableResponse)
  6741. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/AuthEnable", in, out, opts...)
  6742. if err != nil {
  6743. return nil, err
  6744. }
  6745. return out, nil
  6746. }
  6747. func (c *authClient) AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error) {
  6748. out := new(AuthDisableResponse)
  6749. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/AuthDisable", in, out, opts...)
  6750. if err != nil {
  6751. return nil, err
  6752. }
  6753. return out, nil
  6754. }
  6755. func (c *authClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) {
  6756. out := new(AuthenticateResponse)
  6757. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/Authenticate", in, out, opts...)
  6758. if err != nil {
  6759. return nil, err
  6760. }
  6761. return out, nil
  6762. }
  6763. func (c *authClient) UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error) {
  6764. out := new(AuthUserAddResponse)
  6765. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserAdd", in, out, opts...)
  6766. if err != nil {
  6767. return nil, err
  6768. }
  6769. return out, nil
  6770. }
  6771. func (c *authClient) UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, error) {
  6772. out := new(AuthUserGetResponse)
  6773. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserGet", in, out, opts...)
  6774. if err != nil {
  6775. return nil, err
  6776. }
  6777. return out, nil
  6778. }
  6779. func (c *authClient) UserList(ctx context.Context, in *AuthUserListRequest, opts ...grpc.CallOption) (*AuthUserListResponse, error) {
  6780. out := new(AuthUserListResponse)
  6781. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserList", in, out, opts...)
  6782. if err != nil {
  6783. return nil, err
  6784. }
  6785. return out, nil
  6786. }
  6787. func (c *authClient) UserDelete(ctx context.Context, in *AuthUserDeleteRequest, opts ...grpc.CallOption) (*AuthUserDeleteResponse, error) {
  6788. out := new(AuthUserDeleteResponse)
  6789. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserDelete", in, out, opts...)
  6790. if err != nil {
  6791. return nil, err
  6792. }
  6793. return out, nil
  6794. }
  6795. func (c *authClient) UserChangePassword(ctx context.Context, in *AuthUserChangePasswordRequest, opts ...grpc.CallOption) (*AuthUserChangePasswordResponse, error) {
  6796. out := new(AuthUserChangePasswordResponse)
  6797. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserChangePassword", in, out, opts...)
  6798. if err != nil {
  6799. return nil, err
  6800. }
  6801. return out, nil
  6802. }
  6803. func (c *authClient) UserGrantRole(ctx context.Context, in *AuthUserGrantRoleRequest, opts ...grpc.CallOption) (*AuthUserGrantRoleResponse, error) {
  6804. out := new(AuthUserGrantRoleResponse)
  6805. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserGrantRole", in, out, opts...)
  6806. if err != nil {
  6807. return nil, err
  6808. }
  6809. return out, nil
  6810. }
  6811. func (c *authClient) UserRevokeRole(ctx context.Context, in *AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (*AuthUserRevokeRoleResponse, error) {
  6812. out := new(AuthUserRevokeRoleResponse)
  6813. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserRevokeRole", in, out, opts...)
  6814. if err != nil {
  6815. return nil, err
  6816. }
  6817. return out, nil
  6818. }
  6819. func (c *authClient) RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error) {
  6820. out := new(AuthRoleAddResponse)
  6821. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleAdd", in, out, opts...)
  6822. if err != nil {
  6823. return nil, err
  6824. }
  6825. return out, nil
  6826. }
  6827. func (c *authClient) RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error) {
  6828. out := new(AuthRoleGetResponse)
  6829. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleGet", in, out, opts...)
  6830. if err != nil {
  6831. return nil, err
  6832. }
  6833. return out, nil
  6834. }
  6835. func (c *authClient) RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error) {
  6836. out := new(AuthRoleListResponse)
  6837. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleList", in, out, opts...)
  6838. if err != nil {
  6839. return nil, err
  6840. }
  6841. return out, nil
  6842. }
  6843. func (c *authClient) RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error) {
  6844. out := new(AuthRoleDeleteResponse)
  6845. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleDelete", in, out, opts...)
  6846. if err != nil {
  6847. return nil, err
  6848. }
  6849. return out, nil
  6850. }
  6851. func (c *authClient) RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error) {
  6852. out := new(AuthRoleGrantPermissionResponse)
  6853. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleGrantPermission", in, out, opts...)
  6854. if err != nil {
  6855. return nil, err
  6856. }
  6857. return out, nil
  6858. }
  6859. func (c *authClient) RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error) {
  6860. out := new(AuthRoleRevokePermissionResponse)
  6861. err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleRevokePermission", in, out, opts...)
  6862. if err != nil {
  6863. return nil, err
  6864. }
  6865. return out, nil
  6866. }
  6867. // AuthServer is the server API for Auth service.
  6868. type AuthServer interface {
  6869. // AuthEnable enables authentication.
  6870. AuthEnable(context.Context, *AuthEnableRequest) (*AuthEnableResponse, error)
  6871. // AuthDisable disables authentication.
  6872. AuthDisable(context.Context, *AuthDisableRequest) (*AuthDisableResponse, error)
  6873. // Authenticate processes an authenticate request.
  6874. Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
  6875. // UserAdd adds a new user.
  6876. UserAdd(context.Context, *AuthUserAddRequest) (*AuthUserAddResponse, error)
  6877. // UserGet gets detailed user information.
  6878. UserGet(context.Context, *AuthUserGetRequest) (*AuthUserGetResponse, error)
  6879. // UserList gets a list of all users.
  6880. UserList(context.Context, *AuthUserListRequest) (*AuthUserListResponse, error)
  6881. // UserDelete deletes a specified user.
  6882. UserDelete(context.Context, *AuthUserDeleteRequest) (*AuthUserDeleteResponse, error)
  6883. // UserChangePassword changes the password of a specified user.
  6884. UserChangePassword(context.Context, *AuthUserChangePasswordRequest) (*AuthUserChangePasswordResponse, error)
  6885. // UserGrant grants a role to a specified user.
  6886. UserGrantRole(context.Context, *AuthUserGrantRoleRequest) (*AuthUserGrantRoleResponse, error)
  6887. // UserRevokeRole revokes a role of specified user.
  6888. UserRevokeRole(context.Context, *AuthUserRevokeRoleRequest) (*AuthUserRevokeRoleResponse, error)
  6889. // RoleAdd adds a new role.
  6890. RoleAdd(context.Context, *AuthRoleAddRequest) (*AuthRoleAddResponse, error)
  6891. // RoleGet gets detailed role information.
  6892. RoleGet(context.Context, *AuthRoleGetRequest) (*AuthRoleGetResponse, error)
  6893. // RoleList gets lists of all roles.
  6894. RoleList(context.Context, *AuthRoleListRequest) (*AuthRoleListResponse, error)
  6895. // RoleDelete deletes a specified role.
  6896. RoleDelete(context.Context, *AuthRoleDeleteRequest) (*AuthRoleDeleteResponse, error)
  6897. // RoleGrantPermission grants a permission of a specified key or range to a specified role.
  6898. RoleGrantPermission(context.Context, *AuthRoleGrantPermissionRequest) (*AuthRoleGrantPermissionResponse, error)
  6899. // RoleRevokePermission revokes a key or range permission of a specified role.
  6900. RoleRevokePermission(context.Context, *AuthRoleRevokePermissionRequest) (*AuthRoleRevokePermissionResponse, error)
  6901. }
  6902. // UnimplementedAuthServer can be embedded to have forward compatible implementations.
  6903. type UnimplementedAuthServer struct {
  6904. }
  6905. func (*UnimplementedAuthServer) AuthEnable(ctx context.Context, req *AuthEnableRequest) (*AuthEnableResponse, error) {
  6906. return nil, status.Errorf(codes.Unimplemented, "method AuthEnable not implemented")
  6907. }
  6908. func (*UnimplementedAuthServer) AuthDisable(ctx context.Context, req *AuthDisableRequest) (*AuthDisableResponse, error) {
  6909. return nil, status.Errorf(codes.Unimplemented, "method AuthDisable not implemented")
  6910. }
  6911. func (*UnimplementedAuthServer) Authenticate(ctx context.Context, req *AuthenticateRequest) (*AuthenticateResponse, error) {
  6912. return nil, status.Errorf(codes.Unimplemented, "method Authenticate not implemented")
  6913. }
  6914. func (*UnimplementedAuthServer) UserAdd(ctx context.Context, req *AuthUserAddRequest) (*AuthUserAddResponse, error) {
  6915. return nil, status.Errorf(codes.Unimplemented, "method UserAdd not implemented")
  6916. }
  6917. func (*UnimplementedAuthServer) UserGet(ctx context.Context, req *AuthUserGetRequest) (*AuthUserGetResponse, error) {
  6918. return nil, status.Errorf(codes.Unimplemented, "method UserGet not implemented")
  6919. }
  6920. func (*UnimplementedAuthServer) UserList(ctx context.Context, req *AuthUserListRequest) (*AuthUserListResponse, error) {
  6921. return nil, status.Errorf(codes.Unimplemented, "method UserList not implemented")
  6922. }
  6923. func (*UnimplementedAuthServer) UserDelete(ctx context.Context, req *AuthUserDeleteRequest) (*AuthUserDeleteResponse, error) {
  6924. return nil, status.Errorf(codes.Unimplemented, "method UserDelete not implemented")
  6925. }
  6926. func (*UnimplementedAuthServer) UserChangePassword(ctx context.Context, req *AuthUserChangePasswordRequest) (*AuthUserChangePasswordResponse, error) {
  6927. return nil, status.Errorf(codes.Unimplemented, "method UserChangePassword not implemented")
  6928. }
  6929. func (*UnimplementedAuthServer) UserGrantRole(ctx context.Context, req *AuthUserGrantRoleRequest) (*AuthUserGrantRoleResponse, error) {
  6930. return nil, status.Errorf(codes.Unimplemented, "method UserGrantRole not implemented")
  6931. }
  6932. func (*UnimplementedAuthServer) UserRevokeRole(ctx context.Context, req *AuthUserRevokeRoleRequest) (*AuthUserRevokeRoleResponse, error) {
  6933. return nil, status.Errorf(codes.Unimplemented, "method UserRevokeRole not implemented")
  6934. }
  6935. func (*UnimplementedAuthServer) RoleAdd(ctx context.Context, req *AuthRoleAddRequest) (*AuthRoleAddResponse, error) {
  6936. return nil, status.Errorf(codes.Unimplemented, "method RoleAdd not implemented")
  6937. }
  6938. func (*UnimplementedAuthServer) RoleGet(ctx context.Context, req *AuthRoleGetRequest) (*AuthRoleGetResponse, error) {
  6939. return nil, status.Errorf(codes.Unimplemented, "method RoleGet not implemented")
  6940. }
  6941. func (*UnimplementedAuthServer) RoleList(ctx context.Context, req *AuthRoleListRequest) (*AuthRoleListResponse, error) {
  6942. return nil, status.Errorf(codes.Unimplemented, "method RoleList not implemented")
  6943. }
  6944. func (*UnimplementedAuthServer) RoleDelete(ctx context.Context, req *AuthRoleDeleteRequest) (*AuthRoleDeleteResponse, error) {
  6945. return nil, status.Errorf(codes.Unimplemented, "method RoleDelete not implemented")
  6946. }
  6947. func (*UnimplementedAuthServer) RoleGrantPermission(ctx context.Context, req *AuthRoleGrantPermissionRequest) (*AuthRoleGrantPermissionResponse, error) {
  6948. return nil, status.Errorf(codes.Unimplemented, "method RoleGrantPermission not implemented")
  6949. }
  6950. func (*UnimplementedAuthServer) RoleRevokePermission(ctx context.Context, req *AuthRoleRevokePermissionRequest) (*AuthRoleRevokePermissionResponse, error) {
  6951. return nil, status.Errorf(codes.Unimplemented, "method RoleRevokePermission not implemented")
  6952. }
  6953. func RegisterAuthServer(s *grpc.Server, srv AuthServer) {
  6954. s.RegisterService(&_Auth_serviceDesc, srv)
  6955. }
  6956. func _Auth_AuthEnable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6957. in := new(AuthEnableRequest)
  6958. if err := dec(in); err != nil {
  6959. return nil, err
  6960. }
  6961. if interceptor == nil {
  6962. return srv.(AuthServer).AuthEnable(ctx, in)
  6963. }
  6964. info := &grpc.UnaryServerInfo{
  6965. Server: srv,
  6966. FullMethod: "/etcdserverpb.Auth/AuthEnable",
  6967. }
  6968. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6969. return srv.(AuthServer).AuthEnable(ctx, req.(*AuthEnableRequest))
  6970. }
  6971. return interceptor(ctx, in, info, handler)
  6972. }
  6973. func _Auth_AuthDisable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6974. in := new(AuthDisableRequest)
  6975. if err := dec(in); err != nil {
  6976. return nil, err
  6977. }
  6978. if interceptor == nil {
  6979. return srv.(AuthServer).AuthDisable(ctx, in)
  6980. }
  6981. info := &grpc.UnaryServerInfo{
  6982. Server: srv,
  6983. FullMethod: "/etcdserverpb.Auth/AuthDisable",
  6984. }
  6985. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  6986. return srv.(AuthServer).AuthDisable(ctx, req.(*AuthDisableRequest))
  6987. }
  6988. return interceptor(ctx, in, info, handler)
  6989. }
  6990. func _Auth_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  6991. in := new(AuthenticateRequest)
  6992. if err := dec(in); err != nil {
  6993. return nil, err
  6994. }
  6995. if interceptor == nil {
  6996. return srv.(AuthServer).Authenticate(ctx, in)
  6997. }
  6998. info := &grpc.UnaryServerInfo{
  6999. Server: srv,
  7000. FullMethod: "/etcdserverpb.Auth/Authenticate",
  7001. }
  7002. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  7003. return srv.(AuthServer).Authenticate(ctx, req.(*AuthenticateRequest))
  7004. }
  7005. return interceptor(ctx, in, info, handler)
  7006. }
  7007. func _Auth_UserAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  7008. in := new(AuthUserAddRequest)
  7009. if err := dec(in); err != nil {
  7010. return nil, err
  7011. }
  7012. if interceptor == nil {
  7013. return srv.(AuthServer).UserAdd(ctx, in)
  7014. }
  7015. info := &grpc.UnaryServerInfo{
  7016. Server: srv,
  7017. FullMethod: "/etcdserverpb.Auth/UserAdd",
  7018. }
  7019. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  7020. return srv.(AuthServer).UserAdd(ctx, req.(*AuthUserAddRequest))
  7021. }
  7022. return interceptor(ctx, in, info, handler)
  7023. }
  7024. func _Auth_UserGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  7025. in := new(AuthUserGetRequest)
  7026. if err := dec(in); err != nil {
  7027. return nil, err
  7028. }
  7029. if interceptor == nil {
  7030. return srv.(AuthServer).UserGet(ctx, in)
  7031. }
  7032. info := &grpc.UnaryServerInfo{
  7033. Server: srv,
  7034. FullMethod: "/etcdserverpb.Auth/UserGet",
  7035. }
  7036. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  7037. return srv.(AuthServer).UserGet(ctx, req.(*AuthUserGetRequest))
  7038. }
  7039. return interceptor(ctx, in, info, handler)
  7040. }
  7041. func _Auth_UserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  7042. in := new(AuthUserListRequest)
  7043. if err := dec(in); err != nil {
  7044. return nil, err
  7045. }
  7046. if interceptor == nil {
  7047. return srv.(AuthServer).UserList(ctx, in)
  7048. }
  7049. info := &grpc.UnaryServerInfo{
  7050. Server: srv,
  7051. FullMethod: "/etcdserverpb.Auth/UserList",
  7052. }
  7053. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  7054. return srv.(AuthServer).UserList(ctx, req.(*AuthUserListRequest))
  7055. }
  7056. return interceptor(ctx, in, info, handler)
  7057. }
  7058. func _Auth_UserDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  7059. in := new(AuthUserDeleteRequest)
  7060. if err := dec(in); err != nil {
  7061. return nil, err
  7062. }
  7063. if interceptor == nil {
  7064. return srv.(AuthServer).UserDelete(ctx, in)
  7065. }
  7066. info := &grpc.UnaryServerInfo{
  7067. Server: srv,
  7068. FullMethod: "/etcdserverpb.Auth/UserDelete",
  7069. }
  7070. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  7071. return srv.(AuthServer).UserDelete(ctx, req.(*AuthUserDeleteRequest))
  7072. }
  7073. return interceptor(ctx, in, info, handler)
  7074. }
  7075. func _Auth_UserChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  7076. in := new(AuthUserChangePasswordRequest)
  7077. if err := dec(in); err != nil {
  7078. return nil, err
  7079. }
  7080. if interceptor == nil {
  7081. return srv.(AuthServer).UserChangePassword(ctx, in)
  7082. }
  7083. info := &grpc.UnaryServerInfo{
  7084. Server: srv,
  7085. FullMethod: "/etcdserverpb.Auth/UserChangePassword",
  7086. }
  7087. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  7088. return srv.(AuthServer).UserChangePassword(ctx, req.(*AuthUserChangePasswordRequest))
  7089. }
  7090. return interceptor(ctx, in, info, handler)
  7091. }
  7092. func _Auth_UserGrantRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  7093. in := new(AuthUserGrantRoleRequest)
  7094. if err := dec(in); err != nil {
  7095. return nil, err
  7096. }
  7097. if interceptor == nil {
  7098. return srv.(AuthServer).UserGrantRole(ctx, in)
  7099. }
  7100. info := &grpc.UnaryServerInfo{
  7101. Server: srv,
  7102. FullMethod: "/etcdserverpb.Auth/UserGrantRole",
  7103. }
  7104. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  7105. return srv.(AuthServer).UserGrantRole(ctx, req.(*AuthUserGrantRoleRequest))
  7106. }
  7107. return interceptor(ctx, in, info, handler)
  7108. }
  7109. func _Auth_UserRevokeRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  7110. in := new(AuthUserRevokeRoleRequest)
  7111. if err := dec(in); err != nil {
  7112. return nil, err
  7113. }
  7114. if interceptor == nil {
  7115. return srv.(AuthServer).UserRevokeRole(ctx, in)
  7116. }
  7117. info := &grpc.UnaryServerInfo{
  7118. Server: srv,
  7119. FullMethod: "/etcdserverpb.Auth/UserRevokeRole",
  7120. }
  7121. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  7122. return srv.(AuthServer).UserRevokeRole(ctx, req.(*AuthUserRevokeRoleRequest))
  7123. }
  7124. return interceptor(ctx, in, info, handler)
  7125. }
  7126. func _Auth_RoleAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  7127. in := new(AuthRoleAddRequest)
  7128. if err := dec(in); err != nil {
  7129. return nil, err
  7130. }
  7131. if interceptor == nil {
  7132. return srv.(AuthServer).RoleAdd(ctx, in)
  7133. }
  7134. info := &grpc.UnaryServerInfo{
  7135. Server: srv,
  7136. FullMethod: "/etcdserverpb.Auth/RoleAdd",
  7137. }
  7138. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  7139. return srv.(AuthServer).RoleAdd(ctx, req.(*AuthRoleAddRequest))
  7140. }
  7141. return interceptor(ctx, in, info, handler)
  7142. }
  7143. func _Auth_RoleGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  7144. in := new(AuthRoleGetRequest)
  7145. if err := dec(in); err != nil {
  7146. return nil, err
  7147. }
  7148. if interceptor == nil {
  7149. return srv.(AuthServer).RoleGet(ctx, in)
  7150. }
  7151. info := &grpc.UnaryServerInfo{
  7152. Server: srv,
  7153. FullMethod: "/etcdserverpb.Auth/RoleGet",
  7154. }
  7155. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  7156. return srv.(AuthServer).RoleGet(ctx, req.(*AuthRoleGetRequest))
  7157. }
  7158. return interceptor(ctx, in, info, handler)
  7159. }
  7160. func _Auth_RoleList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  7161. in := new(AuthRoleListRequest)
  7162. if err := dec(in); err != nil {
  7163. return nil, err
  7164. }
  7165. if interceptor == nil {
  7166. return srv.(AuthServer).RoleList(ctx, in)
  7167. }
  7168. info := &grpc.UnaryServerInfo{
  7169. Server: srv,
  7170. FullMethod: "/etcdserverpb.Auth/RoleList",
  7171. }
  7172. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  7173. return srv.(AuthServer).RoleList(ctx, req.(*AuthRoleListRequest))
  7174. }
  7175. return interceptor(ctx, in, info, handler)
  7176. }
  7177. func _Auth_RoleDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  7178. in := new(AuthRoleDeleteRequest)
  7179. if err := dec(in); err != nil {
  7180. return nil, err
  7181. }
  7182. if interceptor == nil {
  7183. return srv.(AuthServer).RoleDelete(ctx, in)
  7184. }
  7185. info := &grpc.UnaryServerInfo{
  7186. Server: srv,
  7187. FullMethod: "/etcdserverpb.Auth/RoleDelete",
  7188. }
  7189. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  7190. return srv.(AuthServer).RoleDelete(ctx, req.(*AuthRoleDeleteRequest))
  7191. }
  7192. return interceptor(ctx, in, info, handler)
  7193. }
  7194. func _Auth_RoleGrantPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  7195. in := new(AuthRoleGrantPermissionRequest)
  7196. if err := dec(in); err != nil {
  7197. return nil, err
  7198. }
  7199. if interceptor == nil {
  7200. return srv.(AuthServer).RoleGrantPermission(ctx, in)
  7201. }
  7202. info := &grpc.UnaryServerInfo{
  7203. Server: srv,
  7204. FullMethod: "/etcdserverpb.Auth/RoleGrantPermission",
  7205. }
  7206. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  7207. return srv.(AuthServer).RoleGrantPermission(ctx, req.(*AuthRoleGrantPermissionRequest))
  7208. }
  7209. return interceptor(ctx, in, info, handler)
  7210. }
  7211. func _Auth_RoleRevokePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  7212. in := new(AuthRoleRevokePermissionRequest)
  7213. if err := dec(in); err != nil {
  7214. return nil, err
  7215. }
  7216. if interceptor == nil {
  7217. return srv.(AuthServer).RoleRevokePermission(ctx, in)
  7218. }
  7219. info := &grpc.UnaryServerInfo{
  7220. Server: srv,
  7221. FullMethod: "/etcdserverpb.Auth/RoleRevokePermission",
  7222. }
  7223. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  7224. return srv.(AuthServer).RoleRevokePermission(ctx, req.(*AuthRoleRevokePermissionRequest))
  7225. }
  7226. return interceptor(ctx, in, info, handler)
  7227. }
  7228. var _Auth_serviceDesc = grpc.ServiceDesc{
  7229. ServiceName: "etcdserverpb.Auth",
  7230. HandlerType: (*AuthServer)(nil),
  7231. Methods: []grpc.MethodDesc{
  7232. {
  7233. MethodName: "AuthEnable",
  7234. Handler: _Auth_AuthEnable_Handler,
  7235. },
  7236. {
  7237. MethodName: "AuthDisable",
  7238. Handler: _Auth_AuthDisable_Handler,
  7239. },
  7240. {
  7241. MethodName: "Authenticate",
  7242. Handler: _Auth_Authenticate_Handler,
  7243. },
  7244. {
  7245. MethodName: "UserAdd",
  7246. Handler: _Auth_UserAdd_Handler,
  7247. },
  7248. {
  7249. MethodName: "UserGet",
  7250. Handler: _Auth_UserGet_Handler,
  7251. },
  7252. {
  7253. MethodName: "UserList",
  7254. Handler: _Auth_UserList_Handler,
  7255. },
  7256. {
  7257. MethodName: "UserDelete",
  7258. Handler: _Auth_UserDelete_Handler,
  7259. },
  7260. {
  7261. MethodName: "UserChangePassword",
  7262. Handler: _Auth_UserChangePassword_Handler,
  7263. },
  7264. {
  7265. MethodName: "UserGrantRole",
  7266. Handler: _Auth_UserGrantRole_Handler,
  7267. },
  7268. {
  7269. MethodName: "UserRevokeRole",
  7270. Handler: _Auth_UserRevokeRole_Handler,
  7271. },
  7272. {
  7273. MethodName: "RoleAdd",
  7274. Handler: _Auth_RoleAdd_Handler,
  7275. },
  7276. {
  7277. MethodName: "RoleGet",
  7278. Handler: _Auth_RoleGet_Handler,
  7279. },
  7280. {
  7281. MethodName: "RoleList",
  7282. Handler: _Auth_RoleList_Handler,
  7283. },
  7284. {
  7285. MethodName: "RoleDelete",
  7286. Handler: _Auth_RoleDelete_Handler,
  7287. },
  7288. {
  7289. MethodName: "RoleGrantPermission",
  7290. Handler: _Auth_RoleGrantPermission_Handler,
  7291. },
  7292. {
  7293. MethodName: "RoleRevokePermission",
  7294. Handler: _Auth_RoleRevokePermission_Handler,
  7295. },
  7296. },
  7297. Streams: []grpc.StreamDesc{},
  7298. Metadata: "rpc.proto",
  7299. }
  7300. func (m *ResponseHeader) Marshal() (dAtA []byte, err error) {
  7301. size := m.Size()
  7302. dAtA = make([]byte, size)
  7303. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7304. if err != nil {
  7305. return nil, err
  7306. }
  7307. return dAtA[:n], nil
  7308. }
  7309. func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) {
  7310. size := m.Size()
  7311. return m.MarshalToSizedBuffer(dAtA[:size])
  7312. }
  7313. func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7314. i := len(dAtA)
  7315. _ = i
  7316. var l int
  7317. _ = l
  7318. if m.XXX_unrecognized != nil {
  7319. i -= len(m.XXX_unrecognized)
  7320. copy(dAtA[i:], m.XXX_unrecognized)
  7321. }
  7322. if m.RaftTerm != 0 {
  7323. i = encodeVarintRpc(dAtA, i, uint64(m.RaftTerm))
  7324. i--
  7325. dAtA[i] = 0x20
  7326. }
  7327. if m.Revision != 0 {
  7328. i = encodeVarintRpc(dAtA, i, uint64(m.Revision))
  7329. i--
  7330. dAtA[i] = 0x18
  7331. }
  7332. if m.MemberId != 0 {
  7333. i = encodeVarintRpc(dAtA, i, uint64(m.MemberId))
  7334. i--
  7335. dAtA[i] = 0x10
  7336. }
  7337. if m.ClusterId != 0 {
  7338. i = encodeVarintRpc(dAtA, i, uint64(m.ClusterId))
  7339. i--
  7340. dAtA[i] = 0x8
  7341. }
  7342. return len(dAtA) - i, nil
  7343. }
  7344. func (m *RangeRequest) Marshal() (dAtA []byte, err error) {
  7345. size := m.Size()
  7346. dAtA = make([]byte, size)
  7347. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7348. if err != nil {
  7349. return nil, err
  7350. }
  7351. return dAtA[:n], nil
  7352. }
  7353. func (m *RangeRequest) MarshalTo(dAtA []byte) (int, error) {
  7354. size := m.Size()
  7355. return m.MarshalToSizedBuffer(dAtA[:size])
  7356. }
  7357. func (m *RangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7358. i := len(dAtA)
  7359. _ = i
  7360. var l int
  7361. _ = l
  7362. if m.XXX_unrecognized != nil {
  7363. i -= len(m.XXX_unrecognized)
  7364. copy(dAtA[i:], m.XXX_unrecognized)
  7365. }
  7366. if m.MaxCreateRevision != 0 {
  7367. i = encodeVarintRpc(dAtA, i, uint64(m.MaxCreateRevision))
  7368. i--
  7369. dAtA[i] = 0x68
  7370. }
  7371. if m.MinCreateRevision != 0 {
  7372. i = encodeVarintRpc(dAtA, i, uint64(m.MinCreateRevision))
  7373. i--
  7374. dAtA[i] = 0x60
  7375. }
  7376. if m.MaxModRevision != 0 {
  7377. i = encodeVarintRpc(dAtA, i, uint64(m.MaxModRevision))
  7378. i--
  7379. dAtA[i] = 0x58
  7380. }
  7381. if m.MinModRevision != 0 {
  7382. i = encodeVarintRpc(dAtA, i, uint64(m.MinModRevision))
  7383. i--
  7384. dAtA[i] = 0x50
  7385. }
  7386. if m.CountOnly {
  7387. i--
  7388. if m.CountOnly {
  7389. dAtA[i] = 1
  7390. } else {
  7391. dAtA[i] = 0
  7392. }
  7393. i--
  7394. dAtA[i] = 0x48
  7395. }
  7396. if m.KeysOnly {
  7397. i--
  7398. if m.KeysOnly {
  7399. dAtA[i] = 1
  7400. } else {
  7401. dAtA[i] = 0
  7402. }
  7403. i--
  7404. dAtA[i] = 0x40
  7405. }
  7406. if m.Serializable {
  7407. i--
  7408. if m.Serializable {
  7409. dAtA[i] = 1
  7410. } else {
  7411. dAtA[i] = 0
  7412. }
  7413. i--
  7414. dAtA[i] = 0x38
  7415. }
  7416. if m.SortTarget != 0 {
  7417. i = encodeVarintRpc(dAtA, i, uint64(m.SortTarget))
  7418. i--
  7419. dAtA[i] = 0x30
  7420. }
  7421. if m.SortOrder != 0 {
  7422. i = encodeVarintRpc(dAtA, i, uint64(m.SortOrder))
  7423. i--
  7424. dAtA[i] = 0x28
  7425. }
  7426. if m.Revision != 0 {
  7427. i = encodeVarintRpc(dAtA, i, uint64(m.Revision))
  7428. i--
  7429. dAtA[i] = 0x20
  7430. }
  7431. if m.Limit != 0 {
  7432. i = encodeVarintRpc(dAtA, i, uint64(m.Limit))
  7433. i--
  7434. dAtA[i] = 0x18
  7435. }
  7436. if len(m.RangeEnd) > 0 {
  7437. i -= len(m.RangeEnd)
  7438. copy(dAtA[i:], m.RangeEnd)
  7439. i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd)))
  7440. i--
  7441. dAtA[i] = 0x12
  7442. }
  7443. if len(m.Key) > 0 {
  7444. i -= len(m.Key)
  7445. copy(dAtA[i:], m.Key)
  7446. i = encodeVarintRpc(dAtA, i, uint64(len(m.Key)))
  7447. i--
  7448. dAtA[i] = 0xa
  7449. }
  7450. return len(dAtA) - i, nil
  7451. }
  7452. func (m *RangeResponse) Marshal() (dAtA []byte, err error) {
  7453. size := m.Size()
  7454. dAtA = make([]byte, size)
  7455. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7456. if err != nil {
  7457. return nil, err
  7458. }
  7459. return dAtA[:n], nil
  7460. }
  7461. func (m *RangeResponse) MarshalTo(dAtA []byte) (int, error) {
  7462. size := m.Size()
  7463. return m.MarshalToSizedBuffer(dAtA[:size])
  7464. }
  7465. func (m *RangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7466. i := len(dAtA)
  7467. _ = i
  7468. var l int
  7469. _ = l
  7470. if m.XXX_unrecognized != nil {
  7471. i -= len(m.XXX_unrecognized)
  7472. copy(dAtA[i:], m.XXX_unrecognized)
  7473. }
  7474. if m.Count != 0 {
  7475. i = encodeVarintRpc(dAtA, i, uint64(m.Count))
  7476. i--
  7477. dAtA[i] = 0x20
  7478. }
  7479. if m.More {
  7480. i--
  7481. if m.More {
  7482. dAtA[i] = 1
  7483. } else {
  7484. dAtA[i] = 0
  7485. }
  7486. i--
  7487. dAtA[i] = 0x18
  7488. }
  7489. if len(m.Kvs) > 0 {
  7490. for iNdEx := len(m.Kvs) - 1; iNdEx >= 0; iNdEx-- {
  7491. {
  7492. size, err := m.Kvs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7493. if err != nil {
  7494. return 0, err
  7495. }
  7496. i -= size
  7497. i = encodeVarintRpc(dAtA, i, uint64(size))
  7498. }
  7499. i--
  7500. dAtA[i] = 0x12
  7501. }
  7502. }
  7503. if m.Header != nil {
  7504. {
  7505. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  7506. if err != nil {
  7507. return 0, err
  7508. }
  7509. i -= size
  7510. i = encodeVarintRpc(dAtA, i, uint64(size))
  7511. }
  7512. i--
  7513. dAtA[i] = 0xa
  7514. }
  7515. return len(dAtA) - i, nil
  7516. }
  7517. func (m *PutRequest) Marshal() (dAtA []byte, err error) {
  7518. size := m.Size()
  7519. dAtA = make([]byte, size)
  7520. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7521. if err != nil {
  7522. return nil, err
  7523. }
  7524. return dAtA[:n], nil
  7525. }
  7526. func (m *PutRequest) MarshalTo(dAtA []byte) (int, error) {
  7527. size := m.Size()
  7528. return m.MarshalToSizedBuffer(dAtA[:size])
  7529. }
  7530. func (m *PutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7531. i := len(dAtA)
  7532. _ = i
  7533. var l int
  7534. _ = l
  7535. if m.XXX_unrecognized != nil {
  7536. i -= len(m.XXX_unrecognized)
  7537. copy(dAtA[i:], m.XXX_unrecognized)
  7538. }
  7539. if m.IgnoreLease {
  7540. i--
  7541. if m.IgnoreLease {
  7542. dAtA[i] = 1
  7543. } else {
  7544. dAtA[i] = 0
  7545. }
  7546. i--
  7547. dAtA[i] = 0x30
  7548. }
  7549. if m.IgnoreValue {
  7550. i--
  7551. if m.IgnoreValue {
  7552. dAtA[i] = 1
  7553. } else {
  7554. dAtA[i] = 0
  7555. }
  7556. i--
  7557. dAtA[i] = 0x28
  7558. }
  7559. if m.PrevKv {
  7560. i--
  7561. if m.PrevKv {
  7562. dAtA[i] = 1
  7563. } else {
  7564. dAtA[i] = 0
  7565. }
  7566. i--
  7567. dAtA[i] = 0x20
  7568. }
  7569. if m.Lease != 0 {
  7570. i = encodeVarintRpc(dAtA, i, uint64(m.Lease))
  7571. i--
  7572. dAtA[i] = 0x18
  7573. }
  7574. if len(m.Value) > 0 {
  7575. i -= len(m.Value)
  7576. copy(dAtA[i:], m.Value)
  7577. i = encodeVarintRpc(dAtA, i, uint64(len(m.Value)))
  7578. i--
  7579. dAtA[i] = 0x12
  7580. }
  7581. if len(m.Key) > 0 {
  7582. i -= len(m.Key)
  7583. copy(dAtA[i:], m.Key)
  7584. i = encodeVarintRpc(dAtA, i, uint64(len(m.Key)))
  7585. i--
  7586. dAtA[i] = 0xa
  7587. }
  7588. return len(dAtA) - i, nil
  7589. }
  7590. func (m *PutResponse) Marshal() (dAtA []byte, err error) {
  7591. size := m.Size()
  7592. dAtA = make([]byte, size)
  7593. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7594. if err != nil {
  7595. return nil, err
  7596. }
  7597. return dAtA[:n], nil
  7598. }
  7599. func (m *PutResponse) MarshalTo(dAtA []byte) (int, error) {
  7600. size := m.Size()
  7601. return m.MarshalToSizedBuffer(dAtA[:size])
  7602. }
  7603. func (m *PutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7604. i := len(dAtA)
  7605. _ = i
  7606. var l int
  7607. _ = l
  7608. if m.XXX_unrecognized != nil {
  7609. i -= len(m.XXX_unrecognized)
  7610. copy(dAtA[i:], m.XXX_unrecognized)
  7611. }
  7612. if m.PrevKv != nil {
  7613. {
  7614. size, err := m.PrevKv.MarshalToSizedBuffer(dAtA[:i])
  7615. if err != nil {
  7616. return 0, err
  7617. }
  7618. i -= size
  7619. i = encodeVarintRpc(dAtA, i, uint64(size))
  7620. }
  7621. i--
  7622. dAtA[i] = 0x12
  7623. }
  7624. if m.Header != nil {
  7625. {
  7626. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  7627. if err != nil {
  7628. return 0, err
  7629. }
  7630. i -= size
  7631. i = encodeVarintRpc(dAtA, i, uint64(size))
  7632. }
  7633. i--
  7634. dAtA[i] = 0xa
  7635. }
  7636. return len(dAtA) - i, nil
  7637. }
  7638. func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error) {
  7639. size := m.Size()
  7640. dAtA = make([]byte, size)
  7641. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7642. if err != nil {
  7643. return nil, err
  7644. }
  7645. return dAtA[:n], nil
  7646. }
  7647. func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error) {
  7648. size := m.Size()
  7649. return m.MarshalToSizedBuffer(dAtA[:size])
  7650. }
  7651. func (m *DeleteRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7652. i := len(dAtA)
  7653. _ = i
  7654. var l int
  7655. _ = l
  7656. if m.XXX_unrecognized != nil {
  7657. i -= len(m.XXX_unrecognized)
  7658. copy(dAtA[i:], m.XXX_unrecognized)
  7659. }
  7660. if m.PrevKv {
  7661. i--
  7662. if m.PrevKv {
  7663. dAtA[i] = 1
  7664. } else {
  7665. dAtA[i] = 0
  7666. }
  7667. i--
  7668. dAtA[i] = 0x18
  7669. }
  7670. if len(m.RangeEnd) > 0 {
  7671. i -= len(m.RangeEnd)
  7672. copy(dAtA[i:], m.RangeEnd)
  7673. i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd)))
  7674. i--
  7675. dAtA[i] = 0x12
  7676. }
  7677. if len(m.Key) > 0 {
  7678. i -= len(m.Key)
  7679. copy(dAtA[i:], m.Key)
  7680. i = encodeVarintRpc(dAtA, i, uint64(len(m.Key)))
  7681. i--
  7682. dAtA[i] = 0xa
  7683. }
  7684. return len(dAtA) - i, nil
  7685. }
  7686. func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error) {
  7687. size := m.Size()
  7688. dAtA = make([]byte, size)
  7689. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7690. if err != nil {
  7691. return nil, err
  7692. }
  7693. return dAtA[:n], nil
  7694. }
  7695. func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error) {
  7696. size := m.Size()
  7697. return m.MarshalToSizedBuffer(dAtA[:size])
  7698. }
  7699. func (m *DeleteRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7700. i := len(dAtA)
  7701. _ = i
  7702. var l int
  7703. _ = l
  7704. if m.XXX_unrecognized != nil {
  7705. i -= len(m.XXX_unrecognized)
  7706. copy(dAtA[i:], m.XXX_unrecognized)
  7707. }
  7708. if len(m.PrevKvs) > 0 {
  7709. for iNdEx := len(m.PrevKvs) - 1; iNdEx >= 0; iNdEx-- {
  7710. {
  7711. size, err := m.PrevKvs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7712. if err != nil {
  7713. return 0, err
  7714. }
  7715. i -= size
  7716. i = encodeVarintRpc(dAtA, i, uint64(size))
  7717. }
  7718. i--
  7719. dAtA[i] = 0x1a
  7720. }
  7721. }
  7722. if m.Deleted != 0 {
  7723. i = encodeVarintRpc(dAtA, i, uint64(m.Deleted))
  7724. i--
  7725. dAtA[i] = 0x10
  7726. }
  7727. if m.Header != nil {
  7728. {
  7729. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  7730. if err != nil {
  7731. return 0, err
  7732. }
  7733. i -= size
  7734. i = encodeVarintRpc(dAtA, i, uint64(size))
  7735. }
  7736. i--
  7737. dAtA[i] = 0xa
  7738. }
  7739. return len(dAtA) - i, nil
  7740. }
  7741. func (m *RequestOp) Marshal() (dAtA []byte, err error) {
  7742. size := m.Size()
  7743. dAtA = make([]byte, size)
  7744. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7745. if err != nil {
  7746. return nil, err
  7747. }
  7748. return dAtA[:n], nil
  7749. }
  7750. func (m *RequestOp) MarshalTo(dAtA []byte) (int, error) {
  7751. size := m.Size()
  7752. return m.MarshalToSizedBuffer(dAtA[:size])
  7753. }
  7754. func (m *RequestOp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7755. i := len(dAtA)
  7756. _ = i
  7757. var l int
  7758. _ = l
  7759. if m.XXX_unrecognized != nil {
  7760. i -= len(m.XXX_unrecognized)
  7761. copy(dAtA[i:], m.XXX_unrecognized)
  7762. }
  7763. if m.Request != nil {
  7764. {
  7765. size := m.Request.Size()
  7766. i -= size
  7767. if _, err := m.Request.MarshalTo(dAtA[i:]); err != nil {
  7768. return 0, err
  7769. }
  7770. }
  7771. }
  7772. return len(dAtA) - i, nil
  7773. }
  7774. func (m *RequestOp_RequestRange) MarshalTo(dAtA []byte) (int, error) {
  7775. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  7776. }
  7777. func (m *RequestOp_RequestRange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7778. i := len(dAtA)
  7779. if m.RequestRange != nil {
  7780. {
  7781. size, err := m.RequestRange.MarshalToSizedBuffer(dAtA[:i])
  7782. if err != nil {
  7783. return 0, err
  7784. }
  7785. i -= size
  7786. i = encodeVarintRpc(dAtA, i, uint64(size))
  7787. }
  7788. i--
  7789. dAtA[i] = 0xa
  7790. }
  7791. return len(dAtA) - i, nil
  7792. }
  7793. func (m *RequestOp_RequestPut) MarshalTo(dAtA []byte) (int, error) {
  7794. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  7795. }
  7796. func (m *RequestOp_RequestPut) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7797. i := len(dAtA)
  7798. if m.RequestPut != nil {
  7799. {
  7800. size, err := m.RequestPut.MarshalToSizedBuffer(dAtA[:i])
  7801. if err != nil {
  7802. return 0, err
  7803. }
  7804. i -= size
  7805. i = encodeVarintRpc(dAtA, i, uint64(size))
  7806. }
  7807. i--
  7808. dAtA[i] = 0x12
  7809. }
  7810. return len(dAtA) - i, nil
  7811. }
  7812. func (m *RequestOp_RequestDeleteRange) MarshalTo(dAtA []byte) (int, error) {
  7813. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  7814. }
  7815. func (m *RequestOp_RequestDeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7816. i := len(dAtA)
  7817. if m.RequestDeleteRange != nil {
  7818. {
  7819. size, err := m.RequestDeleteRange.MarshalToSizedBuffer(dAtA[:i])
  7820. if err != nil {
  7821. return 0, err
  7822. }
  7823. i -= size
  7824. i = encodeVarintRpc(dAtA, i, uint64(size))
  7825. }
  7826. i--
  7827. dAtA[i] = 0x1a
  7828. }
  7829. return len(dAtA) - i, nil
  7830. }
  7831. func (m *RequestOp_RequestTxn) MarshalTo(dAtA []byte) (int, error) {
  7832. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  7833. }
  7834. func (m *RequestOp_RequestTxn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7835. i := len(dAtA)
  7836. if m.RequestTxn != nil {
  7837. {
  7838. size, err := m.RequestTxn.MarshalToSizedBuffer(dAtA[:i])
  7839. if err != nil {
  7840. return 0, err
  7841. }
  7842. i -= size
  7843. i = encodeVarintRpc(dAtA, i, uint64(size))
  7844. }
  7845. i--
  7846. dAtA[i] = 0x22
  7847. }
  7848. return len(dAtA) - i, nil
  7849. }
  7850. func (m *ResponseOp) Marshal() (dAtA []byte, err error) {
  7851. size := m.Size()
  7852. dAtA = make([]byte, size)
  7853. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7854. if err != nil {
  7855. return nil, err
  7856. }
  7857. return dAtA[:n], nil
  7858. }
  7859. func (m *ResponseOp) MarshalTo(dAtA []byte) (int, error) {
  7860. size := m.Size()
  7861. return m.MarshalToSizedBuffer(dAtA[:size])
  7862. }
  7863. func (m *ResponseOp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7864. i := len(dAtA)
  7865. _ = i
  7866. var l int
  7867. _ = l
  7868. if m.XXX_unrecognized != nil {
  7869. i -= len(m.XXX_unrecognized)
  7870. copy(dAtA[i:], m.XXX_unrecognized)
  7871. }
  7872. if m.Response != nil {
  7873. {
  7874. size := m.Response.Size()
  7875. i -= size
  7876. if _, err := m.Response.MarshalTo(dAtA[i:]); err != nil {
  7877. return 0, err
  7878. }
  7879. }
  7880. }
  7881. return len(dAtA) - i, nil
  7882. }
  7883. func (m *ResponseOp_ResponseRange) MarshalTo(dAtA []byte) (int, error) {
  7884. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  7885. }
  7886. func (m *ResponseOp_ResponseRange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7887. i := len(dAtA)
  7888. if m.ResponseRange != nil {
  7889. {
  7890. size, err := m.ResponseRange.MarshalToSizedBuffer(dAtA[:i])
  7891. if err != nil {
  7892. return 0, err
  7893. }
  7894. i -= size
  7895. i = encodeVarintRpc(dAtA, i, uint64(size))
  7896. }
  7897. i--
  7898. dAtA[i] = 0xa
  7899. }
  7900. return len(dAtA) - i, nil
  7901. }
  7902. func (m *ResponseOp_ResponsePut) MarshalTo(dAtA []byte) (int, error) {
  7903. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  7904. }
  7905. func (m *ResponseOp_ResponsePut) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7906. i := len(dAtA)
  7907. if m.ResponsePut != nil {
  7908. {
  7909. size, err := m.ResponsePut.MarshalToSizedBuffer(dAtA[:i])
  7910. if err != nil {
  7911. return 0, err
  7912. }
  7913. i -= size
  7914. i = encodeVarintRpc(dAtA, i, uint64(size))
  7915. }
  7916. i--
  7917. dAtA[i] = 0x12
  7918. }
  7919. return len(dAtA) - i, nil
  7920. }
  7921. func (m *ResponseOp_ResponseDeleteRange) MarshalTo(dAtA []byte) (int, error) {
  7922. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  7923. }
  7924. func (m *ResponseOp_ResponseDeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7925. i := len(dAtA)
  7926. if m.ResponseDeleteRange != nil {
  7927. {
  7928. size, err := m.ResponseDeleteRange.MarshalToSizedBuffer(dAtA[:i])
  7929. if err != nil {
  7930. return 0, err
  7931. }
  7932. i -= size
  7933. i = encodeVarintRpc(dAtA, i, uint64(size))
  7934. }
  7935. i--
  7936. dAtA[i] = 0x1a
  7937. }
  7938. return len(dAtA) - i, nil
  7939. }
  7940. func (m *ResponseOp_ResponseTxn) MarshalTo(dAtA []byte) (int, error) {
  7941. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  7942. }
  7943. func (m *ResponseOp_ResponseTxn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7944. i := len(dAtA)
  7945. if m.ResponseTxn != nil {
  7946. {
  7947. size, err := m.ResponseTxn.MarshalToSizedBuffer(dAtA[:i])
  7948. if err != nil {
  7949. return 0, err
  7950. }
  7951. i -= size
  7952. i = encodeVarintRpc(dAtA, i, uint64(size))
  7953. }
  7954. i--
  7955. dAtA[i] = 0x22
  7956. }
  7957. return len(dAtA) - i, nil
  7958. }
  7959. func (m *Compare) Marshal() (dAtA []byte, err error) {
  7960. size := m.Size()
  7961. dAtA = make([]byte, size)
  7962. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7963. if err != nil {
  7964. return nil, err
  7965. }
  7966. return dAtA[:n], nil
  7967. }
  7968. func (m *Compare) MarshalTo(dAtA []byte) (int, error) {
  7969. size := m.Size()
  7970. return m.MarshalToSizedBuffer(dAtA[:size])
  7971. }
  7972. func (m *Compare) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7973. i := len(dAtA)
  7974. _ = i
  7975. var l int
  7976. _ = l
  7977. if m.XXX_unrecognized != nil {
  7978. i -= len(m.XXX_unrecognized)
  7979. copy(dAtA[i:], m.XXX_unrecognized)
  7980. }
  7981. if len(m.RangeEnd) > 0 {
  7982. i -= len(m.RangeEnd)
  7983. copy(dAtA[i:], m.RangeEnd)
  7984. i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd)))
  7985. i--
  7986. dAtA[i] = 0x4
  7987. i--
  7988. dAtA[i] = 0x82
  7989. }
  7990. if m.TargetUnion != nil {
  7991. {
  7992. size := m.TargetUnion.Size()
  7993. i -= size
  7994. if _, err := m.TargetUnion.MarshalTo(dAtA[i:]); err != nil {
  7995. return 0, err
  7996. }
  7997. }
  7998. }
  7999. if len(m.Key) > 0 {
  8000. i -= len(m.Key)
  8001. copy(dAtA[i:], m.Key)
  8002. i = encodeVarintRpc(dAtA, i, uint64(len(m.Key)))
  8003. i--
  8004. dAtA[i] = 0x1a
  8005. }
  8006. if m.Target != 0 {
  8007. i = encodeVarintRpc(dAtA, i, uint64(m.Target))
  8008. i--
  8009. dAtA[i] = 0x10
  8010. }
  8011. if m.Result != 0 {
  8012. i = encodeVarintRpc(dAtA, i, uint64(m.Result))
  8013. i--
  8014. dAtA[i] = 0x8
  8015. }
  8016. return len(dAtA) - i, nil
  8017. }
  8018. func (m *Compare_Version) MarshalTo(dAtA []byte) (int, error) {
  8019. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  8020. }
  8021. func (m *Compare_Version) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8022. i := len(dAtA)
  8023. i = encodeVarintRpc(dAtA, i, uint64(m.Version))
  8024. i--
  8025. dAtA[i] = 0x20
  8026. return len(dAtA) - i, nil
  8027. }
  8028. func (m *Compare_CreateRevision) MarshalTo(dAtA []byte) (int, error) {
  8029. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  8030. }
  8031. func (m *Compare_CreateRevision) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8032. i := len(dAtA)
  8033. i = encodeVarintRpc(dAtA, i, uint64(m.CreateRevision))
  8034. i--
  8035. dAtA[i] = 0x28
  8036. return len(dAtA) - i, nil
  8037. }
  8038. func (m *Compare_ModRevision) MarshalTo(dAtA []byte) (int, error) {
  8039. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  8040. }
  8041. func (m *Compare_ModRevision) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8042. i := len(dAtA)
  8043. i = encodeVarintRpc(dAtA, i, uint64(m.ModRevision))
  8044. i--
  8045. dAtA[i] = 0x30
  8046. return len(dAtA) - i, nil
  8047. }
  8048. func (m *Compare_Value) MarshalTo(dAtA []byte) (int, error) {
  8049. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  8050. }
  8051. func (m *Compare_Value) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8052. i := len(dAtA)
  8053. if m.Value != nil {
  8054. i -= len(m.Value)
  8055. copy(dAtA[i:], m.Value)
  8056. i = encodeVarintRpc(dAtA, i, uint64(len(m.Value)))
  8057. i--
  8058. dAtA[i] = 0x3a
  8059. }
  8060. return len(dAtA) - i, nil
  8061. }
  8062. func (m *Compare_Lease) MarshalTo(dAtA []byte) (int, error) {
  8063. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  8064. }
  8065. func (m *Compare_Lease) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8066. i := len(dAtA)
  8067. i = encodeVarintRpc(dAtA, i, uint64(m.Lease))
  8068. i--
  8069. dAtA[i] = 0x40
  8070. return len(dAtA) - i, nil
  8071. }
  8072. func (m *TxnRequest) Marshal() (dAtA []byte, err error) {
  8073. size := m.Size()
  8074. dAtA = make([]byte, size)
  8075. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8076. if err != nil {
  8077. return nil, err
  8078. }
  8079. return dAtA[:n], nil
  8080. }
  8081. func (m *TxnRequest) MarshalTo(dAtA []byte) (int, error) {
  8082. size := m.Size()
  8083. return m.MarshalToSizedBuffer(dAtA[:size])
  8084. }
  8085. func (m *TxnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8086. i := len(dAtA)
  8087. _ = i
  8088. var l int
  8089. _ = l
  8090. if m.XXX_unrecognized != nil {
  8091. i -= len(m.XXX_unrecognized)
  8092. copy(dAtA[i:], m.XXX_unrecognized)
  8093. }
  8094. if len(m.Failure) > 0 {
  8095. for iNdEx := len(m.Failure) - 1; iNdEx >= 0; iNdEx-- {
  8096. {
  8097. size, err := m.Failure[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  8098. if err != nil {
  8099. return 0, err
  8100. }
  8101. i -= size
  8102. i = encodeVarintRpc(dAtA, i, uint64(size))
  8103. }
  8104. i--
  8105. dAtA[i] = 0x1a
  8106. }
  8107. }
  8108. if len(m.Success) > 0 {
  8109. for iNdEx := len(m.Success) - 1; iNdEx >= 0; iNdEx-- {
  8110. {
  8111. size, err := m.Success[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  8112. if err != nil {
  8113. return 0, err
  8114. }
  8115. i -= size
  8116. i = encodeVarintRpc(dAtA, i, uint64(size))
  8117. }
  8118. i--
  8119. dAtA[i] = 0x12
  8120. }
  8121. }
  8122. if len(m.Compare) > 0 {
  8123. for iNdEx := len(m.Compare) - 1; iNdEx >= 0; iNdEx-- {
  8124. {
  8125. size, err := m.Compare[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  8126. if err != nil {
  8127. return 0, err
  8128. }
  8129. i -= size
  8130. i = encodeVarintRpc(dAtA, i, uint64(size))
  8131. }
  8132. i--
  8133. dAtA[i] = 0xa
  8134. }
  8135. }
  8136. return len(dAtA) - i, nil
  8137. }
  8138. func (m *TxnResponse) Marshal() (dAtA []byte, err error) {
  8139. size := m.Size()
  8140. dAtA = make([]byte, size)
  8141. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8142. if err != nil {
  8143. return nil, err
  8144. }
  8145. return dAtA[:n], nil
  8146. }
  8147. func (m *TxnResponse) MarshalTo(dAtA []byte) (int, error) {
  8148. size := m.Size()
  8149. return m.MarshalToSizedBuffer(dAtA[:size])
  8150. }
  8151. func (m *TxnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8152. i := len(dAtA)
  8153. _ = i
  8154. var l int
  8155. _ = l
  8156. if m.XXX_unrecognized != nil {
  8157. i -= len(m.XXX_unrecognized)
  8158. copy(dAtA[i:], m.XXX_unrecognized)
  8159. }
  8160. if len(m.Responses) > 0 {
  8161. for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- {
  8162. {
  8163. size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  8164. if err != nil {
  8165. return 0, err
  8166. }
  8167. i -= size
  8168. i = encodeVarintRpc(dAtA, i, uint64(size))
  8169. }
  8170. i--
  8171. dAtA[i] = 0x1a
  8172. }
  8173. }
  8174. if m.Succeeded {
  8175. i--
  8176. if m.Succeeded {
  8177. dAtA[i] = 1
  8178. } else {
  8179. dAtA[i] = 0
  8180. }
  8181. i--
  8182. dAtA[i] = 0x10
  8183. }
  8184. if m.Header != nil {
  8185. {
  8186. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  8187. if err != nil {
  8188. return 0, err
  8189. }
  8190. i -= size
  8191. i = encodeVarintRpc(dAtA, i, uint64(size))
  8192. }
  8193. i--
  8194. dAtA[i] = 0xa
  8195. }
  8196. return len(dAtA) - i, nil
  8197. }
  8198. func (m *CompactionRequest) Marshal() (dAtA []byte, err error) {
  8199. size := m.Size()
  8200. dAtA = make([]byte, size)
  8201. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8202. if err != nil {
  8203. return nil, err
  8204. }
  8205. return dAtA[:n], nil
  8206. }
  8207. func (m *CompactionRequest) MarshalTo(dAtA []byte) (int, error) {
  8208. size := m.Size()
  8209. return m.MarshalToSizedBuffer(dAtA[:size])
  8210. }
  8211. func (m *CompactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8212. i := len(dAtA)
  8213. _ = i
  8214. var l int
  8215. _ = l
  8216. if m.XXX_unrecognized != nil {
  8217. i -= len(m.XXX_unrecognized)
  8218. copy(dAtA[i:], m.XXX_unrecognized)
  8219. }
  8220. if m.Physical {
  8221. i--
  8222. if m.Physical {
  8223. dAtA[i] = 1
  8224. } else {
  8225. dAtA[i] = 0
  8226. }
  8227. i--
  8228. dAtA[i] = 0x10
  8229. }
  8230. if m.Revision != 0 {
  8231. i = encodeVarintRpc(dAtA, i, uint64(m.Revision))
  8232. i--
  8233. dAtA[i] = 0x8
  8234. }
  8235. return len(dAtA) - i, nil
  8236. }
  8237. func (m *CompactionResponse) Marshal() (dAtA []byte, err error) {
  8238. size := m.Size()
  8239. dAtA = make([]byte, size)
  8240. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8241. if err != nil {
  8242. return nil, err
  8243. }
  8244. return dAtA[:n], nil
  8245. }
  8246. func (m *CompactionResponse) MarshalTo(dAtA []byte) (int, error) {
  8247. size := m.Size()
  8248. return m.MarshalToSizedBuffer(dAtA[:size])
  8249. }
  8250. func (m *CompactionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8251. i := len(dAtA)
  8252. _ = i
  8253. var l int
  8254. _ = l
  8255. if m.XXX_unrecognized != nil {
  8256. i -= len(m.XXX_unrecognized)
  8257. copy(dAtA[i:], m.XXX_unrecognized)
  8258. }
  8259. if m.Header != nil {
  8260. {
  8261. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  8262. if err != nil {
  8263. return 0, err
  8264. }
  8265. i -= size
  8266. i = encodeVarintRpc(dAtA, i, uint64(size))
  8267. }
  8268. i--
  8269. dAtA[i] = 0xa
  8270. }
  8271. return len(dAtA) - i, nil
  8272. }
  8273. func (m *HashRequest) Marshal() (dAtA []byte, err error) {
  8274. size := m.Size()
  8275. dAtA = make([]byte, size)
  8276. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8277. if err != nil {
  8278. return nil, err
  8279. }
  8280. return dAtA[:n], nil
  8281. }
  8282. func (m *HashRequest) MarshalTo(dAtA []byte) (int, error) {
  8283. size := m.Size()
  8284. return m.MarshalToSizedBuffer(dAtA[:size])
  8285. }
  8286. func (m *HashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8287. i := len(dAtA)
  8288. _ = i
  8289. var l int
  8290. _ = l
  8291. if m.XXX_unrecognized != nil {
  8292. i -= len(m.XXX_unrecognized)
  8293. copy(dAtA[i:], m.XXX_unrecognized)
  8294. }
  8295. return len(dAtA) - i, nil
  8296. }
  8297. func (m *HashKVRequest) Marshal() (dAtA []byte, err error) {
  8298. size := m.Size()
  8299. dAtA = make([]byte, size)
  8300. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8301. if err != nil {
  8302. return nil, err
  8303. }
  8304. return dAtA[:n], nil
  8305. }
  8306. func (m *HashKVRequest) MarshalTo(dAtA []byte) (int, error) {
  8307. size := m.Size()
  8308. return m.MarshalToSizedBuffer(dAtA[:size])
  8309. }
  8310. func (m *HashKVRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8311. i := len(dAtA)
  8312. _ = i
  8313. var l int
  8314. _ = l
  8315. if m.XXX_unrecognized != nil {
  8316. i -= len(m.XXX_unrecognized)
  8317. copy(dAtA[i:], m.XXX_unrecognized)
  8318. }
  8319. if m.Revision != 0 {
  8320. i = encodeVarintRpc(dAtA, i, uint64(m.Revision))
  8321. i--
  8322. dAtA[i] = 0x8
  8323. }
  8324. return len(dAtA) - i, nil
  8325. }
  8326. func (m *HashKVResponse) Marshal() (dAtA []byte, err error) {
  8327. size := m.Size()
  8328. dAtA = make([]byte, size)
  8329. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8330. if err != nil {
  8331. return nil, err
  8332. }
  8333. return dAtA[:n], nil
  8334. }
  8335. func (m *HashKVResponse) MarshalTo(dAtA []byte) (int, error) {
  8336. size := m.Size()
  8337. return m.MarshalToSizedBuffer(dAtA[:size])
  8338. }
  8339. func (m *HashKVResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8340. i := len(dAtA)
  8341. _ = i
  8342. var l int
  8343. _ = l
  8344. if m.XXX_unrecognized != nil {
  8345. i -= len(m.XXX_unrecognized)
  8346. copy(dAtA[i:], m.XXX_unrecognized)
  8347. }
  8348. if m.CompactRevision != 0 {
  8349. i = encodeVarintRpc(dAtA, i, uint64(m.CompactRevision))
  8350. i--
  8351. dAtA[i] = 0x18
  8352. }
  8353. if m.Hash != 0 {
  8354. i = encodeVarintRpc(dAtA, i, uint64(m.Hash))
  8355. i--
  8356. dAtA[i] = 0x10
  8357. }
  8358. if m.Header != nil {
  8359. {
  8360. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  8361. if err != nil {
  8362. return 0, err
  8363. }
  8364. i -= size
  8365. i = encodeVarintRpc(dAtA, i, uint64(size))
  8366. }
  8367. i--
  8368. dAtA[i] = 0xa
  8369. }
  8370. return len(dAtA) - i, nil
  8371. }
  8372. func (m *HashResponse) Marshal() (dAtA []byte, err error) {
  8373. size := m.Size()
  8374. dAtA = make([]byte, size)
  8375. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8376. if err != nil {
  8377. return nil, err
  8378. }
  8379. return dAtA[:n], nil
  8380. }
  8381. func (m *HashResponse) MarshalTo(dAtA []byte) (int, error) {
  8382. size := m.Size()
  8383. return m.MarshalToSizedBuffer(dAtA[:size])
  8384. }
  8385. func (m *HashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8386. i := len(dAtA)
  8387. _ = i
  8388. var l int
  8389. _ = l
  8390. if m.XXX_unrecognized != nil {
  8391. i -= len(m.XXX_unrecognized)
  8392. copy(dAtA[i:], m.XXX_unrecognized)
  8393. }
  8394. if m.Hash != 0 {
  8395. i = encodeVarintRpc(dAtA, i, uint64(m.Hash))
  8396. i--
  8397. dAtA[i] = 0x10
  8398. }
  8399. if m.Header != nil {
  8400. {
  8401. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  8402. if err != nil {
  8403. return 0, err
  8404. }
  8405. i -= size
  8406. i = encodeVarintRpc(dAtA, i, uint64(size))
  8407. }
  8408. i--
  8409. dAtA[i] = 0xa
  8410. }
  8411. return len(dAtA) - i, nil
  8412. }
  8413. func (m *SnapshotRequest) Marshal() (dAtA []byte, err error) {
  8414. size := m.Size()
  8415. dAtA = make([]byte, size)
  8416. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8417. if err != nil {
  8418. return nil, err
  8419. }
  8420. return dAtA[:n], nil
  8421. }
  8422. func (m *SnapshotRequest) MarshalTo(dAtA []byte) (int, error) {
  8423. size := m.Size()
  8424. return m.MarshalToSizedBuffer(dAtA[:size])
  8425. }
  8426. func (m *SnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8427. i := len(dAtA)
  8428. _ = i
  8429. var l int
  8430. _ = l
  8431. if m.XXX_unrecognized != nil {
  8432. i -= len(m.XXX_unrecognized)
  8433. copy(dAtA[i:], m.XXX_unrecognized)
  8434. }
  8435. return len(dAtA) - i, nil
  8436. }
  8437. func (m *SnapshotResponse) Marshal() (dAtA []byte, err error) {
  8438. size := m.Size()
  8439. dAtA = make([]byte, size)
  8440. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8441. if err != nil {
  8442. return nil, err
  8443. }
  8444. return dAtA[:n], nil
  8445. }
  8446. func (m *SnapshotResponse) MarshalTo(dAtA []byte) (int, error) {
  8447. size := m.Size()
  8448. return m.MarshalToSizedBuffer(dAtA[:size])
  8449. }
  8450. func (m *SnapshotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8451. i := len(dAtA)
  8452. _ = i
  8453. var l int
  8454. _ = l
  8455. if m.XXX_unrecognized != nil {
  8456. i -= len(m.XXX_unrecognized)
  8457. copy(dAtA[i:], m.XXX_unrecognized)
  8458. }
  8459. if len(m.Blob) > 0 {
  8460. i -= len(m.Blob)
  8461. copy(dAtA[i:], m.Blob)
  8462. i = encodeVarintRpc(dAtA, i, uint64(len(m.Blob)))
  8463. i--
  8464. dAtA[i] = 0x1a
  8465. }
  8466. if m.RemainingBytes != 0 {
  8467. i = encodeVarintRpc(dAtA, i, uint64(m.RemainingBytes))
  8468. i--
  8469. dAtA[i] = 0x10
  8470. }
  8471. if m.Header != nil {
  8472. {
  8473. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  8474. if err != nil {
  8475. return 0, err
  8476. }
  8477. i -= size
  8478. i = encodeVarintRpc(dAtA, i, uint64(size))
  8479. }
  8480. i--
  8481. dAtA[i] = 0xa
  8482. }
  8483. return len(dAtA) - i, nil
  8484. }
  8485. func (m *WatchRequest) Marshal() (dAtA []byte, err error) {
  8486. size := m.Size()
  8487. dAtA = make([]byte, size)
  8488. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8489. if err != nil {
  8490. return nil, err
  8491. }
  8492. return dAtA[:n], nil
  8493. }
  8494. func (m *WatchRequest) MarshalTo(dAtA []byte) (int, error) {
  8495. size := m.Size()
  8496. return m.MarshalToSizedBuffer(dAtA[:size])
  8497. }
  8498. func (m *WatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8499. i := len(dAtA)
  8500. _ = i
  8501. var l int
  8502. _ = l
  8503. if m.XXX_unrecognized != nil {
  8504. i -= len(m.XXX_unrecognized)
  8505. copy(dAtA[i:], m.XXX_unrecognized)
  8506. }
  8507. if m.RequestUnion != nil {
  8508. {
  8509. size := m.RequestUnion.Size()
  8510. i -= size
  8511. if _, err := m.RequestUnion.MarshalTo(dAtA[i:]); err != nil {
  8512. return 0, err
  8513. }
  8514. }
  8515. }
  8516. return len(dAtA) - i, nil
  8517. }
  8518. func (m *WatchRequest_CreateRequest) MarshalTo(dAtA []byte) (int, error) {
  8519. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  8520. }
  8521. func (m *WatchRequest_CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8522. i := len(dAtA)
  8523. if m.CreateRequest != nil {
  8524. {
  8525. size, err := m.CreateRequest.MarshalToSizedBuffer(dAtA[:i])
  8526. if err != nil {
  8527. return 0, err
  8528. }
  8529. i -= size
  8530. i = encodeVarintRpc(dAtA, i, uint64(size))
  8531. }
  8532. i--
  8533. dAtA[i] = 0xa
  8534. }
  8535. return len(dAtA) - i, nil
  8536. }
  8537. func (m *WatchRequest_CancelRequest) MarshalTo(dAtA []byte) (int, error) {
  8538. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  8539. }
  8540. func (m *WatchRequest_CancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8541. i := len(dAtA)
  8542. if m.CancelRequest != nil {
  8543. {
  8544. size, err := m.CancelRequest.MarshalToSizedBuffer(dAtA[:i])
  8545. if err != nil {
  8546. return 0, err
  8547. }
  8548. i -= size
  8549. i = encodeVarintRpc(dAtA, i, uint64(size))
  8550. }
  8551. i--
  8552. dAtA[i] = 0x12
  8553. }
  8554. return len(dAtA) - i, nil
  8555. }
  8556. func (m *WatchRequest_ProgressRequest) MarshalTo(dAtA []byte) (int, error) {
  8557. return m.MarshalToSizedBuffer(dAtA[:m.Size()])
  8558. }
  8559. func (m *WatchRequest_ProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8560. i := len(dAtA)
  8561. if m.ProgressRequest != nil {
  8562. {
  8563. size, err := m.ProgressRequest.MarshalToSizedBuffer(dAtA[:i])
  8564. if err != nil {
  8565. return 0, err
  8566. }
  8567. i -= size
  8568. i = encodeVarintRpc(dAtA, i, uint64(size))
  8569. }
  8570. i--
  8571. dAtA[i] = 0x1a
  8572. }
  8573. return len(dAtA) - i, nil
  8574. }
  8575. func (m *WatchCreateRequest) Marshal() (dAtA []byte, err error) {
  8576. size := m.Size()
  8577. dAtA = make([]byte, size)
  8578. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8579. if err != nil {
  8580. return nil, err
  8581. }
  8582. return dAtA[:n], nil
  8583. }
  8584. func (m *WatchCreateRequest) MarshalTo(dAtA []byte) (int, error) {
  8585. size := m.Size()
  8586. return m.MarshalToSizedBuffer(dAtA[:size])
  8587. }
  8588. func (m *WatchCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8589. i := len(dAtA)
  8590. _ = i
  8591. var l int
  8592. _ = l
  8593. if m.XXX_unrecognized != nil {
  8594. i -= len(m.XXX_unrecognized)
  8595. copy(dAtA[i:], m.XXX_unrecognized)
  8596. }
  8597. if m.Fragment {
  8598. i--
  8599. if m.Fragment {
  8600. dAtA[i] = 1
  8601. } else {
  8602. dAtA[i] = 0
  8603. }
  8604. i--
  8605. dAtA[i] = 0x40
  8606. }
  8607. if m.WatchId != 0 {
  8608. i = encodeVarintRpc(dAtA, i, uint64(m.WatchId))
  8609. i--
  8610. dAtA[i] = 0x38
  8611. }
  8612. if m.PrevKv {
  8613. i--
  8614. if m.PrevKv {
  8615. dAtA[i] = 1
  8616. } else {
  8617. dAtA[i] = 0
  8618. }
  8619. i--
  8620. dAtA[i] = 0x30
  8621. }
  8622. if len(m.Filters) > 0 {
  8623. dAtA22 := make([]byte, len(m.Filters)*10)
  8624. var j21 int
  8625. for _, num := range m.Filters {
  8626. for num >= 1<<7 {
  8627. dAtA22[j21] = uint8(uint64(num)&0x7f | 0x80)
  8628. num >>= 7
  8629. j21++
  8630. }
  8631. dAtA22[j21] = uint8(num)
  8632. j21++
  8633. }
  8634. i -= j21
  8635. copy(dAtA[i:], dAtA22[:j21])
  8636. i = encodeVarintRpc(dAtA, i, uint64(j21))
  8637. i--
  8638. dAtA[i] = 0x2a
  8639. }
  8640. if m.ProgressNotify {
  8641. i--
  8642. if m.ProgressNotify {
  8643. dAtA[i] = 1
  8644. } else {
  8645. dAtA[i] = 0
  8646. }
  8647. i--
  8648. dAtA[i] = 0x20
  8649. }
  8650. if m.StartRevision != 0 {
  8651. i = encodeVarintRpc(dAtA, i, uint64(m.StartRevision))
  8652. i--
  8653. dAtA[i] = 0x18
  8654. }
  8655. if len(m.RangeEnd) > 0 {
  8656. i -= len(m.RangeEnd)
  8657. copy(dAtA[i:], m.RangeEnd)
  8658. i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd)))
  8659. i--
  8660. dAtA[i] = 0x12
  8661. }
  8662. if len(m.Key) > 0 {
  8663. i -= len(m.Key)
  8664. copy(dAtA[i:], m.Key)
  8665. i = encodeVarintRpc(dAtA, i, uint64(len(m.Key)))
  8666. i--
  8667. dAtA[i] = 0xa
  8668. }
  8669. return len(dAtA) - i, nil
  8670. }
  8671. func (m *WatchCancelRequest) Marshal() (dAtA []byte, err error) {
  8672. size := m.Size()
  8673. dAtA = make([]byte, size)
  8674. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8675. if err != nil {
  8676. return nil, err
  8677. }
  8678. return dAtA[:n], nil
  8679. }
  8680. func (m *WatchCancelRequest) MarshalTo(dAtA []byte) (int, error) {
  8681. size := m.Size()
  8682. return m.MarshalToSizedBuffer(dAtA[:size])
  8683. }
  8684. func (m *WatchCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8685. i := len(dAtA)
  8686. _ = i
  8687. var l int
  8688. _ = l
  8689. if m.XXX_unrecognized != nil {
  8690. i -= len(m.XXX_unrecognized)
  8691. copy(dAtA[i:], m.XXX_unrecognized)
  8692. }
  8693. if m.WatchId != 0 {
  8694. i = encodeVarintRpc(dAtA, i, uint64(m.WatchId))
  8695. i--
  8696. dAtA[i] = 0x8
  8697. }
  8698. return len(dAtA) - i, nil
  8699. }
  8700. func (m *WatchProgressRequest) Marshal() (dAtA []byte, err error) {
  8701. size := m.Size()
  8702. dAtA = make([]byte, size)
  8703. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8704. if err != nil {
  8705. return nil, err
  8706. }
  8707. return dAtA[:n], nil
  8708. }
  8709. func (m *WatchProgressRequest) MarshalTo(dAtA []byte) (int, error) {
  8710. size := m.Size()
  8711. return m.MarshalToSizedBuffer(dAtA[:size])
  8712. }
  8713. func (m *WatchProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8714. i := len(dAtA)
  8715. _ = i
  8716. var l int
  8717. _ = l
  8718. if m.XXX_unrecognized != nil {
  8719. i -= len(m.XXX_unrecognized)
  8720. copy(dAtA[i:], m.XXX_unrecognized)
  8721. }
  8722. return len(dAtA) - i, nil
  8723. }
  8724. func (m *WatchResponse) Marshal() (dAtA []byte, err error) {
  8725. size := m.Size()
  8726. dAtA = make([]byte, size)
  8727. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8728. if err != nil {
  8729. return nil, err
  8730. }
  8731. return dAtA[:n], nil
  8732. }
  8733. func (m *WatchResponse) MarshalTo(dAtA []byte) (int, error) {
  8734. size := m.Size()
  8735. return m.MarshalToSizedBuffer(dAtA[:size])
  8736. }
  8737. func (m *WatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8738. i := len(dAtA)
  8739. _ = i
  8740. var l int
  8741. _ = l
  8742. if m.XXX_unrecognized != nil {
  8743. i -= len(m.XXX_unrecognized)
  8744. copy(dAtA[i:], m.XXX_unrecognized)
  8745. }
  8746. if len(m.Events) > 0 {
  8747. for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- {
  8748. {
  8749. size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  8750. if err != nil {
  8751. return 0, err
  8752. }
  8753. i -= size
  8754. i = encodeVarintRpc(dAtA, i, uint64(size))
  8755. }
  8756. i--
  8757. dAtA[i] = 0x5a
  8758. }
  8759. }
  8760. if m.Fragment {
  8761. i--
  8762. if m.Fragment {
  8763. dAtA[i] = 1
  8764. } else {
  8765. dAtA[i] = 0
  8766. }
  8767. i--
  8768. dAtA[i] = 0x38
  8769. }
  8770. if len(m.CancelReason) > 0 {
  8771. i -= len(m.CancelReason)
  8772. copy(dAtA[i:], m.CancelReason)
  8773. i = encodeVarintRpc(dAtA, i, uint64(len(m.CancelReason)))
  8774. i--
  8775. dAtA[i] = 0x32
  8776. }
  8777. if m.CompactRevision != 0 {
  8778. i = encodeVarintRpc(dAtA, i, uint64(m.CompactRevision))
  8779. i--
  8780. dAtA[i] = 0x28
  8781. }
  8782. if m.Canceled {
  8783. i--
  8784. if m.Canceled {
  8785. dAtA[i] = 1
  8786. } else {
  8787. dAtA[i] = 0
  8788. }
  8789. i--
  8790. dAtA[i] = 0x20
  8791. }
  8792. if m.Created {
  8793. i--
  8794. if m.Created {
  8795. dAtA[i] = 1
  8796. } else {
  8797. dAtA[i] = 0
  8798. }
  8799. i--
  8800. dAtA[i] = 0x18
  8801. }
  8802. if m.WatchId != 0 {
  8803. i = encodeVarintRpc(dAtA, i, uint64(m.WatchId))
  8804. i--
  8805. dAtA[i] = 0x10
  8806. }
  8807. if m.Header != nil {
  8808. {
  8809. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  8810. if err != nil {
  8811. return 0, err
  8812. }
  8813. i -= size
  8814. i = encodeVarintRpc(dAtA, i, uint64(size))
  8815. }
  8816. i--
  8817. dAtA[i] = 0xa
  8818. }
  8819. return len(dAtA) - i, nil
  8820. }
  8821. func (m *LeaseGrantRequest) Marshal() (dAtA []byte, err error) {
  8822. size := m.Size()
  8823. dAtA = make([]byte, size)
  8824. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8825. if err != nil {
  8826. return nil, err
  8827. }
  8828. return dAtA[:n], nil
  8829. }
  8830. func (m *LeaseGrantRequest) MarshalTo(dAtA []byte) (int, error) {
  8831. size := m.Size()
  8832. return m.MarshalToSizedBuffer(dAtA[:size])
  8833. }
  8834. func (m *LeaseGrantRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8835. i := len(dAtA)
  8836. _ = i
  8837. var l int
  8838. _ = l
  8839. if m.XXX_unrecognized != nil {
  8840. i -= len(m.XXX_unrecognized)
  8841. copy(dAtA[i:], m.XXX_unrecognized)
  8842. }
  8843. if m.ID != 0 {
  8844. i = encodeVarintRpc(dAtA, i, uint64(m.ID))
  8845. i--
  8846. dAtA[i] = 0x10
  8847. }
  8848. if m.TTL != 0 {
  8849. i = encodeVarintRpc(dAtA, i, uint64(m.TTL))
  8850. i--
  8851. dAtA[i] = 0x8
  8852. }
  8853. return len(dAtA) - i, nil
  8854. }
  8855. func (m *LeaseGrantResponse) Marshal() (dAtA []byte, err error) {
  8856. size := m.Size()
  8857. dAtA = make([]byte, size)
  8858. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8859. if err != nil {
  8860. return nil, err
  8861. }
  8862. return dAtA[:n], nil
  8863. }
  8864. func (m *LeaseGrantResponse) MarshalTo(dAtA []byte) (int, error) {
  8865. size := m.Size()
  8866. return m.MarshalToSizedBuffer(dAtA[:size])
  8867. }
  8868. func (m *LeaseGrantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8869. i := len(dAtA)
  8870. _ = i
  8871. var l int
  8872. _ = l
  8873. if m.XXX_unrecognized != nil {
  8874. i -= len(m.XXX_unrecognized)
  8875. copy(dAtA[i:], m.XXX_unrecognized)
  8876. }
  8877. if len(m.Error) > 0 {
  8878. i -= len(m.Error)
  8879. copy(dAtA[i:], m.Error)
  8880. i = encodeVarintRpc(dAtA, i, uint64(len(m.Error)))
  8881. i--
  8882. dAtA[i] = 0x22
  8883. }
  8884. if m.TTL != 0 {
  8885. i = encodeVarintRpc(dAtA, i, uint64(m.TTL))
  8886. i--
  8887. dAtA[i] = 0x18
  8888. }
  8889. if m.ID != 0 {
  8890. i = encodeVarintRpc(dAtA, i, uint64(m.ID))
  8891. i--
  8892. dAtA[i] = 0x10
  8893. }
  8894. if m.Header != nil {
  8895. {
  8896. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  8897. if err != nil {
  8898. return 0, err
  8899. }
  8900. i -= size
  8901. i = encodeVarintRpc(dAtA, i, uint64(size))
  8902. }
  8903. i--
  8904. dAtA[i] = 0xa
  8905. }
  8906. return len(dAtA) - i, nil
  8907. }
  8908. func (m *LeaseRevokeRequest) Marshal() (dAtA []byte, err error) {
  8909. size := m.Size()
  8910. dAtA = make([]byte, size)
  8911. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8912. if err != nil {
  8913. return nil, err
  8914. }
  8915. return dAtA[:n], nil
  8916. }
  8917. func (m *LeaseRevokeRequest) MarshalTo(dAtA []byte) (int, error) {
  8918. size := m.Size()
  8919. return m.MarshalToSizedBuffer(dAtA[:size])
  8920. }
  8921. func (m *LeaseRevokeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8922. i := len(dAtA)
  8923. _ = i
  8924. var l int
  8925. _ = l
  8926. if m.XXX_unrecognized != nil {
  8927. i -= len(m.XXX_unrecognized)
  8928. copy(dAtA[i:], m.XXX_unrecognized)
  8929. }
  8930. if m.ID != 0 {
  8931. i = encodeVarintRpc(dAtA, i, uint64(m.ID))
  8932. i--
  8933. dAtA[i] = 0x8
  8934. }
  8935. return len(dAtA) - i, nil
  8936. }
  8937. func (m *LeaseRevokeResponse) Marshal() (dAtA []byte, err error) {
  8938. size := m.Size()
  8939. dAtA = make([]byte, size)
  8940. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8941. if err != nil {
  8942. return nil, err
  8943. }
  8944. return dAtA[:n], nil
  8945. }
  8946. func (m *LeaseRevokeResponse) MarshalTo(dAtA []byte) (int, error) {
  8947. size := m.Size()
  8948. return m.MarshalToSizedBuffer(dAtA[:size])
  8949. }
  8950. func (m *LeaseRevokeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8951. i := len(dAtA)
  8952. _ = i
  8953. var l int
  8954. _ = l
  8955. if m.XXX_unrecognized != nil {
  8956. i -= len(m.XXX_unrecognized)
  8957. copy(dAtA[i:], m.XXX_unrecognized)
  8958. }
  8959. if m.Header != nil {
  8960. {
  8961. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  8962. if err != nil {
  8963. return 0, err
  8964. }
  8965. i -= size
  8966. i = encodeVarintRpc(dAtA, i, uint64(size))
  8967. }
  8968. i--
  8969. dAtA[i] = 0xa
  8970. }
  8971. return len(dAtA) - i, nil
  8972. }
  8973. func (m *LeaseKeepAliveRequest) Marshal() (dAtA []byte, err error) {
  8974. size := m.Size()
  8975. dAtA = make([]byte, size)
  8976. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8977. if err != nil {
  8978. return nil, err
  8979. }
  8980. return dAtA[:n], nil
  8981. }
  8982. func (m *LeaseKeepAliveRequest) MarshalTo(dAtA []byte) (int, error) {
  8983. size := m.Size()
  8984. return m.MarshalToSizedBuffer(dAtA[:size])
  8985. }
  8986. func (m *LeaseKeepAliveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8987. i := len(dAtA)
  8988. _ = i
  8989. var l int
  8990. _ = l
  8991. if m.XXX_unrecognized != nil {
  8992. i -= len(m.XXX_unrecognized)
  8993. copy(dAtA[i:], m.XXX_unrecognized)
  8994. }
  8995. if m.ID != 0 {
  8996. i = encodeVarintRpc(dAtA, i, uint64(m.ID))
  8997. i--
  8998. dAtA[i] = 0x8
  8999. }
  9000. return len(dAtA) - i, nil
  9001. }
  9002. func (m *LeaseKeepAliveResponse) Marshal() (dAtA []byte, err error) {
  9003. size := m.Size()
  9004. dAtA = make([]byte, size)
  9005. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9006. if err != nil {
  9007. return nil, err
  9008. }
  9009. return dAtA[:n], nil
  9010. }
  9011. func (m *LeaseKeepAliveResponse) MarshalTo(dAtA []byte) (int, error) {
  9012. size := m.Size()
  9013. return m.MarshalToSizedBuffer(dAtA[:size])
  9014. }
  9015. func (m *LeaseKeepAliveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9016. i := len(dAtA)
  9017. _ = i
  9018. var l int
  9019. _ = l
  9020. if m.XXX_unrecognized != nil {
  9021. i -= len(m.XXX_unrecognized)
  9022. copy(dAtA[i:], m.XXX_unrecognized)
  9023. }
  9024. if m.TTL != 0 {
  9025. i = encodeVarintRpc(dAtA, i, uint64(m.TTL))
  9026. i--
  9027. dAtA[i] = 0x18
  9028. }
  9029. if m.ID != 0 {
  9030. i = encodeVarintRpc(dAtA, i, uint64(m.ID))
  9031. i--
  9032. dAtA[i] = 0x10
  9033. }
  9034. if m.Header != nil {
  9035. {
  9036. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  9037. if err != nil {
  9038. return 0, err
  9039. }
  9040. i -= size
  9041. i = encodeVarintRpc(dAtA, i, uint64(size))
  9042. }
  9043. i--
  9044. dAtA[i] = 0xa
  9045. }
  9046. return len(dAtA) - i, nil
  9047. }
  9048. func (m *LeaseTimeToLiveRequest) Marshal() (dAtA []byte, err error) {
  9049. size := m.Size()
  9050. dAtA = make([]byte, size)
  9051. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9052. if err != nil {
  9053. return nil, err
  9054. }
  9055. return dAtA[:n], nil
  9056. }
  9057. func (m *LeaseTimeToLiveRequest) MarshalTo(dAtA []byte) (int, error) {
  9058. size := m.Size()
  9059. return m.MarshalToSizedBuffer(dAtA[:size])
  9060. }
  9061. func (m *LeaseTimeToLiveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9062. i := len(dAtA)
  9063. _ = i
  9064. var l int
  9065. _ = l
  9066. if m.XXX_unrecognized != nil {
  9067. i -= len(m.XXX_unrecognized)
  9068. copy(dAtA[i:], m.XXX_unrecognized)
  9069. }
  9070. if m.Keys {
  9071. i--
  9072. if m.Keys {
  9073. dAtA[i] = 1
  9074. } else {
  9075. dAtA[i] = 0
  9076. }
  9077. i--
  9078. dAtA[i] = 0x10
  9079. }
  9080. if m.ID != 0 {
  9081. i = encodeVarintRpc(dAtA, i, uint64(m.ID))
  9082. i--
  9083. dAtA[i] = 0x8
  9084. }
  9085. return len(dAtA) - i, nil
  9086. }
  9087. func (m *LeaseTimeToLiveResponse) Marshal() (dAtA []byte, err error) {
  9088. size := m.Size()
  9089. dAtA = make([]byte, size)
  9090. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9091. if err != nil {
  9092. return nil, err
  9093. }
  9094. return dAtA[:n], nil
  9095. }
  9096. func (m *LeaseTimeToLiveResponse) MarshalTo(dAtA []byte) (int, error) {
  9097. size := m.Size()
  9098. return m.MarshalToSizedBuffer(dAtA[:size])
  9099. }
  9100. func (m *LeaseTimeToLiveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9101. i := len(dAtA)
  9102. _ = i
  9103. var l int
  9104. _ = l
  9105. if m.XXX_unrecognized != nil {
  9106. i -= len(m.XXX_unrecognized)
  9107. copy(dAtA[i:], m.XXX_unrecognized)
  9108. }
  9109. if len(m.Keys) > 0 {
  9110. for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- {
  9111. i -= len(m.Keys[iNdEx])
  9112. copy(dAtA[i:], m.Keys[iNdEx])
  9113. i = encodeVarintRpc(dAtA, i, uint64(len(m.Keys[iNdEx])))
  9114. i--
  9115. dAtA[i] = 0x2a
  9116. }
  9117. }
  9118. if m.GrantedTTL != 0 {
  9119. i = encodeVarintRpc(dAtA, i, uint64(m.GrantedTTL))
  9120. i--
  9121. dAtA[i] = 0x20
  9122. }
  9123. if m.TTL != 0 {
  9124. i = encodeVarintRpc(dAtA, i, uint64(m.TTL))
  9125. i--
  9126. dAtA[i] = 0x18
  9127. }
  9128. if m.ID != 0 {
  9129. i = encodeVarintRpc(dAtA, i, uint64(m.ID))
  9130. i--
  9131. dAtA[i] = 0x10
  9132. }
  9133. if m.Header != nil {
  9134. {
  9135. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  9136. if err != nil {
  9137. return 0, err
  9138. }
  9139. i -= size
  9140. i = encodeVarintRpc(dAtA, i, uint64(size))
  9141. }
  9142. i--
  9143. dAtA[i] = 0xa
  9144. }
  9145. return len(dAtA) - i, nil
  9146. }
  9147. func (m *LeaseLeasesRequest) Marshal() (dAtA []byte, err error) {
  9148. size := m.Size()
  9149. dAtA = make([]byte, size)
  9150. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9151. if err != nil {
  9152. return nil, err
  9153. }
  9154. return dAtA[:n], nil
  9155. }
  9156. func (m *LeaseLeasesRequest) MarshalTo(dAtA []byte) (int, error) {
  9157. size := m.Size()
  9158. return m.MarshalToSizedBuffer(dAtA[:size])
  9159. }
  9160. func (m *LeaseLeasesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9161. i := len(dAtA)
  9162. _ = i
  9163. var l int
  9164. _ = l
  9165. if m.XXX_unrecognized != nil {
  9166. i -= len(m.XXX_unrecognized)
  9167. copy(dAtA[i:], m.XXX_unrecognized)
  9168. }
  9169. return len(dAtA) - i, nil
  9170. }
  9171. func (m *LeaseStatus) Marshal() (dAtA []byte, err error) {
  9172. size := m.Size()
  9173. dAtA = make([]byte, size)
  9174. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9175. if err != nil {
  9176. return nil, err
  9177. }
  9178. return dAtA[:n], nil
  9179. }
  9180. func (m *LeaseStatus) MarshalTo(dAtA []byte) (int, error) {
  9181. size := m.Size()
  9182. return m.MarshalToSizedBuffer(dAtA[:size])
  9183. }
  9184. func (m *LeaseStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9185. i := len(dAtA)
  9186. _ = i
  9187. var l int
  9188. _ = l
  9189. if m.XXX_unrecognized != nil {
  9190. i -= len(m.XXX_unrecognized)
  9191. copy(dAtA[i:], m.XXX_unrecognized)
  9192. }
  9193. if m.ID != 0 {
  9194. i = encodeVarintRpc(dAtA, i, uint64(m.ID))
  9195. i--
  9196. dAtA[i] = 0x8
  9197. }
  9198. return len(dAtA) - i, nil
  9199. }
  9200. func (m *LeaseLeasesResponse) Marshal() (dAtA []byte, err error) {
  9201. size := m.Size()
  9202. dAtA = make([]byte, size)
  9203. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9204. if err != nil {
  9205. return nil, err
  9206. }
  9207. return dAtA[:n], nil
  9208. }
  9209. func (m *LeaseLeasesResponse) MarshalTo(dAtA []byte) (int, error) {
  9210. size := m.Size()
  9211. return m.MarshalToSizedBuffer(dAtA[:size])
  9212. }
  9213. func (m *LeaseLeasesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9214. i := len(dAtA)
  9215. _ = i
  9216. var l int
  9217. _ = l
  9218. if m.XXX_unrecognized != nil {
  9219. i -= len(m.XXX_unrecognized)
  9220. copy(dAtA[i:], m.XXX_unrecognized)
  9221. }
  9222. if len(m.Leases) > 0 {
  9223. for iNdEx := len(m.Leases) - 1; iNdEx >= 0; iNdEx-- {
  9224. {
  9225. size, err := m.Leases[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  9226. if err != nil {
  9227. return 0, err
  9228. }
  9229. i -= size
  9230. i = encodeVarintRpc(dAtA, i, uint64(size))
  9231. }
  9232. i--
  9233. dAtA[i] = 0x12
  9234. }
  9235. }
  9236. if m.Header != nil {
  9237. {
  9238. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  9239. if err != nil {
  9240. return 0, err
  9241. }
  9242. i -= size
  9243. i = encodeVarintRpc(dAtA, i, uint64(size))
  9244. }
  9245. i--
  9246. dAtA[i] = 0xa
  9247. }
  9248. return len(dAtA) - i, nil
  9249. }
  9250. func (m *Member) Marshal() (dAtA []byte, err error) {
  9251. size := m.Size()
  9252. dAtA = make([]byte, size)
  9253. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9254. if err != nil {
  9255. return nil, err
  9256. }
  9257. return dAtA[:n], nil
  9258. }
  9259. func (m *Member) MarshalTo(dAtA []byte) (int, error) {
  9260. size := m.Size()
  9261. return m.MarshalToSizedBuffer(dAtA[:size])
  9262. }
  9263. func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9264. i := len(dAtA)
  9265. _ = i
  9266. var l int
  9267. _ = l
  9268. if m.XXX_unrecognized != nil {
  9269. i -= len(m.XXX_unrecognized)
  9270. copy(dAtA[i:], m.XXX_unrecognized)
  9271. }
  9272. if len(m.ClientURLs) > 0 {
  9273. for iNdEx := len(m.ClientURLs) - 1; iNdEx >= 0; iNdEx-- {
  9274. i -= len(m.ClientURLs[iNdEx])
  9275. copy(dAtA[i:], m.ClientURLs[iNdEx])
  9276. i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientURLs[iNdEx])))
  9277. i--
  9278. dAtA[i] = 0x22
  9279. }
  9280. }
  9281. if len(m.PeerURLs) > 0 {
  9282. for iNdEx := len(m.PeerURLs) - 1; iNdEx >= 0; iNdEx-- {
  9283. i -= len(m.PeerURLs[iNdEx])
  9284. copy(dAtA[i:], m.PeerURLs[iNdEx])
  9285. i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerURLs[iNdEx])))
  9286. i--
  9287. dAtA[i] = 0x1a
  9288. }
  9289. }
  9290. if len(m.Name) > 0 {
  9291. i -= len(m.Name)
  9292. copy(dAtA[i:], m.Name)
  9293. i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
  9294. i--
  9295. dAtA[i] = 0x12
  9296. }
  9297. if m.ID != 0 {
  9298. i = encodeVarintRpc(dAtA, i, uint64(m.ID))
  9299. i--
  9300. dAtA[i] = 0x8
  9301. }
  9302. return len(dAtA) - i, nil
  9303. }
  9304. func (m *MemberAddRequest) Marshal() (dAtA []byte, err error) {
  9305. size := m.Size()
  9306. dAtA = make([]byte, size)
  9307. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9308. if err != nil {
  9309. return nil, err
  9310. }
  9311. return dAtA[:n], nil
  9312. }
  9313. func (m *MemberAddRequest) MarshalTo(dAtA []byte) (int, error) {
  9314. size := m.Size()
  9315. return m.MarshalToSizedBuffer(dAtA[:size])
  9316. }
  9317. func (m *MemberAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9318. i := len(dAtA)
  9319. _ = i
  9320. var l int
  9321. _ = l
  9322. if m.XXX_unrecognized != nil {
  9323. i -= len(m.XXX_unrecognized)
  9324. copy(dAtA[i:], m.XXX_unrecognized)
  9325. }
  9326. if len(m.PeerURLs) > 0 {
  9327. for iNdEx := len(m.PeerURLs) - 1; iNdEx >= 0; iNdEx-- {
  9328. i -= len(m.PeerURLs[iNdEx])
  9329. copy(dAtA[i:], m.PeerURLs[iNdEx])
  9330. i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerURLs[iNdEx])))
  9331. i--
  9332. dAtA[i] = 0xa
  9333. }
  9334. }
  9335. return len(dAtA) - i, nil
  9336. }
  9337. func (m *MemberAddResponse) Marshal() (dAtA []byte, err error) {
  9338. size := m.Size()
  9339. dAtA = make([]byte, size)
  9340. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9341. if err != nil {
  9342. return nil, err
  9343. }
  9344. return dAtA[:n], nil
  9345. }
  9346. func (m *MemberAddResponse) MarshalTo(dAtA []byte) (int, error) {
  9347. size := m.Size()
  9348. return m.MarshalToSizedBuffer(dAtA[:size])
  9349. }
  9350. func (m *MemberAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9351. i := len(dAtA)
  9352. _ = i
  9353. var l int
  9354. _ = l
  9355. if m.XXX_unrecognized != nil {
  9356. i -= len(m.XXX_unrecognized)
  9357. copy(dAtA[i:], m.XXX_unrecognized)
  9358. }
  9359. if len(m.Members) > 0 {
  9360. for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- {
  9361. {
  9362. size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  9363. if err != nil {
  9364. return 0, err
  9365. }
  9366. i -= size
  9367. i = encodeVarintRpc(dAtA, i, uint64(size))
  9368. }
  9369. i--
  9370. dAtA[i] = 0x1a
  9371. }
  9372. }
  9373. if m.Member != nil {
  9374. {
  9375. size, err := m.Member.MarshalToSizedBuffer(dAtA[:i])
  9376. if err != nil {
  9377. return 0, err
  9378. }
  9379. i -= size
  9380. i = encodeVarintRpc(dAtA, i, uint64(size))
  9381. }
  9382. i--
  9383. dAtA[i] = 0x12
  9384. }
  9385. if m.Header != nil {
  9386. {
  9387. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  9388. if err != nil {
  9389. return 0, err
  9390. }
  9391. i -= size
  9392. i = encodeVarintRpc(dAtA, i, uint64(size))
  9393. }
  9394. i--
  9395. dAtA[i] = 0xa
  9396. }
  9397. return len(dAtA) - i, nil
  9398. }
  9399. func (m *MemberRemoveRequest) Marshal() (dAtA []byte, err error) {
  9400. size := m.Size()
  9401. dAtA = make([]byte, size)
  9402. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9403. if err != nil {
  9404. return nil, err
  9405. }
  9406. return dAtA[:n], nil
  9407. }
  9408. func (m *MemberRemoveRequest) MarshalTo(dAtA []byte) (int, error) {
  9409. size := m.Size()
  9410. return m.MarshalToSizedBuffer(dAtA[:size])
  9411. }
  9412. func (m *MemberRemoveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9413. i := len(dAtA)
  9414. _ = i
  9415. var l int
  9416. _ = l
  9417. if m.XXX_unrecognized != nil {
  9418. i -= len(m.XXX_unrecognized)
  9419. copy(dAtA[i:], m.XXX_unrecognized)
  9420. }
  9421. if m.ID != 0 {
  9422. i = encodeVarintRpc(dAtA, i, uint64(m.ID))
  9423. i--
  9424. dAtA[i] = 0x8
  9425. }
  9426. return len(dAtA) - i, nil
  9427. }
  9428. func (m *MemberRemoveResponse) Marshal() (dAtA []byte, err error) {
  9429. size := m.Size()
  9430. dAtA = make([]byte, size)
  9431. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9432. if err != nil {
  9433. return nil, err
  9434. }
  9435. return dAtA[:n], nil
  9436. }
  9437. func (m *MemberRemoveResponse) MarshalTo(dAtA []byte) (int, error) {
  9438. size := m.Size()
  9439. return m.MarshalToSizedBuffer(dAtA[:size])
  9440. }
  9441. func (m *MemberRemoveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9442. i := len(dAtA)
  9443. _ = i
  9444. var l int
  9445. _ = l
  9446. if m.XXX_unrecognized != nil {
  9447. i -= len(m.XXX_unrecognized)
  9448. copy(dAtA[i:], m.XXX_unrecognized)
  9449. }
  9450. if len(m.Members) > 0 {
  9451. for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- {
  9452. {
  9453. size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  9454. if err != nil {
  9455. return 0, err
  9456. }
  9457. i -= size
  9458. i = encodeVarintRpc(dAtA, i, uint64(size))
  9459. }
  9460. i--
  9461. dAtA[i] = 0x12
  9462. }
  9463. }
  9464. if m.Header != nil {
  9465. {
  9466. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  9467. if err != nil {
  9468. return 0, err
  9469. }
  9470. i -= size
  9471. i = encodeVarintRpc(dAtA, i, uint64(size))
  9472. }
  9473. i--
  9474. dAtA[i] = 0xa
  9475. }
  9476. return len(dAtA) - i, nil
  9477. }
  9478. func (m *MemberUpdateRequest) Marshal() (dAtA []byte, err error) {
  9479. size := m.Size()
  9480. dAtA = make([]byte, size)
  9481. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9482. if err != nil {
  9483. return nil, err
  9484. }
  9485. return dAtA[:n], nil
  9486. }
  9487. func (m *MemberUpdateRequest) MarshalTo(dAtA []byte) (int, error) {
  9488. size := m.Size()
  9489. return m.MarshalToSizedBuffer(dAtA[:size])
  9490. }
  9491. func (m *MemberUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9492. i := len(dAtA)
  9493. _ = i
  9494. var l int
  9495. _ = l
  9496. if m.XXX_unrecognized != nil {
  9497. i -= len(m.XXX_unrecognized)
  9498. copy(dAtA[i:], m.XXX_unrecognized)
  9499. }
  9500. if len(m.PeerURLs) > 0 {
  9501. for iNdEx := len(m.PeerURLs) - 1; iNdEx >= 0; iNdEx-- {
  9502. i -= len(m.PeerURLs[iNdEx])
  9503. copy(dAtA[i:], m.PeerURLs[iNdEx])
  9504. i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerURLs[iNdEx])))
  9505. i--
  9506. dAtA[i] = 0x12
  9507. }
  9508. }
  9509. if m.ID != 0 {
  9510. i = encodeVarintRpc(dAtA, i, uint64(m.ID))
  9511. i--
  9512. dAtA[i] = 0x8
  9513. }
  9514. return len(dAtA) - i, nil
  9515. }
  9516. func (m *MemberUpdateResponse) Marshal() (dAtA []byte, err error) {
  9517. size := m.Size()
  9518. dAtA = make([]byte, size)
  9519. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9520. if err != nil {
  9521. return nil, err
  9522. }
  9523. return dAtA[:n], nil
  9524. }
  9525. func (m *MemberUpdateResponse) MarshalTo(dAtA []byte) (int, error) {
  9526. size := m.Size()
  9527. return m.MarshalToSizedBuffer(dAtA[:size])
  9528. }
  9529. func (m *MemberUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9530. i := len(dAtA)
  9531. _ = i
  9532. var l int
  9533. _ = l
  9534. if m.XXX_unrecognized != nil {
  9535. i -= len(m.XXX_unrecognized)
  9536. copy(dAtA[i:], m.XXX_unrecognized)
  9537. }
  9538. if len(m.Members) > 0 {
  9539. for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- {
  9540. {
  9541. size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  9542. if err != nil {
  9543. return 0, err
  9544. }
  9545. i -= size
  9546. i = encodeVarintRpc(dAtA, i, uint64(size))
  9547. }
  9548. i--
  9549. dAtA[i] = 0x12
  9550. }
  9551. }
  9552. if m.Header != nil {
  9553. {
  9554. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  9555. if err != nil {
  9556. return 0, err
  9557. }
  9558. i -= size
  9559. i = encodeVarintRpc(dAtA, i, uint64(size))
  9560. }
  9561. i--
  9562. dAtA[i] = 0xa
  9563. }
  9564. return len(dAtA) - i, nil
  9565. }
  9566. func (m *MemberListRequest) Marshal() (dAtA []byte, err error) {
  9567. size := m.Size()
  9568. dAtA = make([]byte, size)
  9569. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9570. if err != nil {
  9571. return nil, err
  9572. }
  9573. return dAtA[:n], nil
  9574. }
  9575. func (m *MemberListRequest) MarshalTo(dAtA []byte) (int, error) {
  9576. size := m.Size()
  9577. return m.MarshalToSizedBuffer(dAtA[:size])
  9578. }
  9579. func (m *MemberListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9580. i := len(dAtA)
  9581. _ = i
  9582. var l int
  9583. _ = l
  9584. if m.XXX_unrecognized != nil {
  9585. i -= len(m.XXX_unrecognized)
  9586. copy(dAtA[i:], m.XXX_unrecognized)
  9587. }
  9588. return len(dAtA) - i, nil
  9589. }
  9590. func (m *MemberListResponse) Marshal() (dAtA []byte, err error) {
  9591. size := m.Size()
  9592. dAtA = make([]byte, size)
  9593. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9594. if err != nil {
  9595. return nil, err
  9596. }
  9597. return dAtA[:n], nil
  9598. }
  9599. func (m *MemberListResponse) MarshalTo(dAtA []byte) (int, error) {
  9600. size := m.Size()
  9601. return m.MarshalToSizedBuffer(dAtA[:size])
  9602. }
  9603. func (m *MemberListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9604. i := len(dAtA)
  9605. _ = i
  9606. var l int
  9607. _ = l
  9608. if m.XXX_unrecognized != nil {
  9609. i -= len(m.XXX_unrecognized)
  9610. copy(dAtA[i:], m.XXX_unrecognized)
  9611. }
  9612. if len(m.Members) > 0 {
  9613. for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- {
  9614. {
  9615. size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  9616. if err != nil {
  9617. return 0, err
  9618. }
  9619. i -= size
  9620. i = encodeVarintRpc(dAtA, i, uint64(size))
  9621. }
  9622. i--
  9623. dAtA[i] = 0x12
  9624. }
  9625. }
  9626. if m.Header != nil {
  9627. {
  9628. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  9629. if err != nil {
  9630. return 0, err
  9631. }
  9632. i -= size
  9633. i = encodeVarintRpc(dAtA, i, uint64(size))
  9634. }
  9635. i--
  9636. dAtA[i] = 0xa
  9637. }
  9638. return len(dAtA) - i, nil
  9639. }
  9640. func (m *DefragmentRequest) Marshal() (dAtA []byte, err error) {
  9641. size := m.Size()
  9642. dAtA = make([]byte, size)
  9643. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9644. if err != nil {
  9645. return nil, err
  9646. }
  9647. return dAtA[:n], nil
  9648. }
  9649. func (m *DefragmentRequest) MarshalTo(dAtA []byte) (int, error) {
  9650. size := m.Size()
  9651. return m.MarshalToSizedBuffer(dAtA[:size])
  9652. }
  9653. func (m *DefragmentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9654. i := len(dAtA)
  9655. _ = i
  9656. var l int
  9657. _ = l
  9658. if m.XXX_unrecognized != nil {
  9659. i -= len(m.XXX_unrecognized)
  9660. copy(dAtA[i:], m.XXX_unrecognized)
  9661. }
  9662. return len(dAtA) - i, nil
  9663. }
  9664. func (m *DefragmentResponse) Marshal() (dAtA []byte, err error) {
  9665. size := m.Size()
  9666. dAtA = make([]byte, size)
  9667. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9668. if err != nil {
  9669. return nil, err
  9670. }
  9671. return dAtA[:n], nil
  9672. }
  9673. func (m *DefragmentResponse) MarshalTo(dAtA []byte) (int, error) {
  9674. size := m.Size()
  9675. return m.MarshalToSizedBuffer(dAtA[:size])
  9676. }
  9677. func (m *DefragmentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9678. i := len(dAtA)
  9679. _ = i
  9680. var l int
  9681. _ = l
  9682. if m.XXX_unrecognized != nil {
  9683. i -= len(m.XXX_unrecognized)
  9684. copy(dAtA[i:], m.XXX_unrecognized)
  9685. }
  9686. if m.Header != nil {
  9687. {
  9688. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  9689. if err != nil {
  9690. return 0, err
  9691. }
  9692. i -= size
  9693. i = encodeVarintRpc(dAtA, i, uint64(size))
  9694. }
  9695. i--
  9696. dAtA[i] = 0xa
  9697. }
  9698. return len(dAtA) - i, nil
  9699. }
  9700. func (m *MoveLeaderRequest) Marshal() (dAtA []byte, err error) {
  9701. size := m.Size()
  9702. dAtA = make([]byte, size)
  9703. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9704. if err != nil {
  9705. return nil, err
  9706. }
  9707. return dAtA[:n], nil
  9708. }
  9709. func (m *MoveLeaderRequest) MarshalTo(dAtA []byte) (int, error) {
  9710. size := m.Size()
  9711. return m.MarshalToSizedBuffer(dAtA[:size])
  9712. }
  9713. func (m *MoveLeaderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9714. i := len(dAtA)
  9715. _ = i
  9716. var l int
  9717. _ = l
  9718. if m.XXX_unrecognized != nil {
  9719. i -= len(m.XXX_unrecognized)
  9720. copy(dAtA[i:], m.XXX_unrecognized)
  9721. }
  9722. if m.TargetID != 0 {
  9723. i = encodeVarintRpc(dAtA, i, uint64(m.TargetID))
  9724. i--
  9725. dAtA[i] = 0x8
  9726. }
  9727. return len(dAtA) - i, nil
  9728. }
  9729. func (m *MoveLeaderResponse) Marshal() (dAtA []byte, err error) {
  9730. size := m.Size()
  9731. dAtA = make([]byte, size)
  9732. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9733. if err != nil {
  9734. return nil, err
  9735. }
  9736. return dAtA[:n], nil
  9737. }
  9738. func (m *MoveLeaderResponse) MarshalTo(dAtA []byte) (int, error) {
  9739. size := m.Size()
  9740. return m.MarshalToSizedBuffer(dAtA[:size])
  9741. }
  9742. func (m *MoveLeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9743. i := len(dAtA)
  9744. _ = i
  9745. var l int
  9746. _ = l
  9747. if m.XXX_unrecognized != nil {
  9748. i -= len(m.XXX_unrecognized)
  9749. copy(dAtA[i:], m.XXX_unrecognized)
  9750. }
  9751. if m.Header != nil {
  9752. {
  9753. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  9754. if err != nil {
  9755. return 0, err
  9756. }
  9757. i -= size
  9758. i = encodeVarintRpc(dAtA, i, uint64(size))
  9759. }
  9760. i--
  9761. dAtA[i] = 0xa
  9762. }
  9763. return len(dAtA) - i, nil
  9764. }
  9765. func (m *AlarmRequest) Marshal() (dAtA []byte, err error) {
  9766. size := m.Size()
  9767. dAtA = make([]byte, size)
  9768. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9769. if err != nil {
  9770. return nil, err
  9771. }
  9772. return dAtA[:n], nil
  9773. }
  9774. func (m *AlarmRequest) MarshalTo(dAtA []byte) (int, error) {
  9775. size := m.Size()
  9776. return m.MarshalToSizedBuffer(dAtA[:size])
  9777. }
  9778. func (m *AlarmRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9779. i := len(dAtA)
  9780. _ = i
  9781. var l int
  9782. _ = l
  9783. if m.XXX_unrecognized != nil {
  9784. i -= len(m.XXX_unrecognized)
  9785. copy(dAtA[i:], m.XXX_unrecognized)
  9786. }
  9787. if m.Alarm != 0 {
  9788. i = encodeVarintRpc(dAtA, i, uint64(m.Alarm))
  9789. i--
  9790. dAtA[i] = 0x18
  9791. }
  9792. if m.MemberID != 0 {
  9793. i = encodeVarintRpc(dAtA, i, uint64(m.MemberID))
  9794. i--
  9795. dAtA[i] = 0x10
  9796. }
  9797. if m.Action != 0 {
  9798. i = encodeVarintRpc(dAtA, i, uint64(m.Action))
  9799. i--
  9800. dAtA[i] = 0x8
  9801. }
  9802. return len(dAtA) - i, nil
  9803. }
  9804. func (m *AlarmMember) Marshal() (dAtA []byte, err error) {
  9805. size := m.Size()
  9806. dAtA = make([]byte, size)
  9807. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9808. if err != nil {
  9809. return nil, err
  9810. }
  9811. return dAtA[:n], nil
  9812. }
  9813. func (m *AlarmMember) MarshalTo(dAtA []byte) (int, error) {
  9814. size := m.Size()
  9815. return m.MarshalToSizedBuffer(dAtA[:size])
  9816. }
  9817. func (m *AlarmMember) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9818. i := len(dAtA)
  9819. _ = i
  9820. var l int
  9821. _ = l
  9822. if m.XXX_unrecognized != nil {
  9823. i -= len(m.XXX_unrecognized)
  9824. copy(dAtA[i:], m.XXX_unrecognized)
  9825. }
  9826. if m.Alarm != 0 {
  9827. i = encodeVarintRpc(dAtA, i, uint64(m.Alarm))
  9828. i--
  9829. dAtA[i] = 0x10
  9830. }
  9831. if m.MemberID != 0 {
  9832. i = encodeVarintRpc(dAtA, i, uint64(m.MemberID))
  9833. i--
  9834. dAtA[i] = 0x8
  9835. }
  9836. return len(dAtA) - i, nil
  9837. }
  9838. func (m *AlarmResponse) Marshal() (dAtA []byte, err error) {
  9839. size := m.Size()
  9840. dAtA = make([]byte, size)
  9841. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9842. if err != nil {
  9843. return nil, err
  9844. }
  9845. return dAtA[:n], nil
  9846. }
  9847. func (m *AlarmResponse) MarshalTo(dAtA []byte) (int, error) {
  9848. size := m.Size()
  9849. return m.MarshalToSizedBuffer(dAtA[:size])
  9850. }
  9851. func (m *AlarmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9852. i := len(dAtA)
  9853. _ = i
  9854. var l int
  9855. _ = l
  9856. if m.XXX_unrecognized != nil {
  9857. i -= len(m.XXX_unrecognized)
  9858. copy(dAtA[i:], m.XXX_unrecognized)
  9859. }
  9860. if len(m.Alarms) > 0 {
  9861. for iNdEx := len(m.Alarms) - 1; iNdEx >= 0; iNdEx-- {
  9862. {
  9863. size, err := m.Alarms[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  9864. if err != nil {
  9865. return 0, err
  9866. }
  9867. i -= size
  9868. i = encodeVarintRpc(dAtA, i, uint64(size))
  9869. }
  9870. i--
  9871. dAtA[i] = 0x12
  9872. }
  9873. }
  9874. if m.Header != nil {
  9875. {
  9876. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  9877. if err != nil {
  9878. return 0, err
  9879. }
  9880. i -= size
  9881. i = encodeVarintRpc(dAtA, i, uint64(size))
  9882. }
  9883. i--
  9884. dAtA[i] = 0xa
  9885. }
  9886. return len(dAtA) - i, nil
  9887. }
  9888. func (m *StatusRequest) Marshal() (dAtA []byte, err error) {
  9889. size := m.Size()
  9890. dAtA = make([]byte, size)
  9891. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9892. if err != nil {
  9893. return nil, err
  9894. }
  9895. return dAtA[:n], nil
  9896. }
  9897. func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error) {
  9898. size := m.Size()
  9899. return m.MarshalToSizedBuffer(dAtA[:size])
  9900. }
  9901. func (m *StatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9902. i := len(dAtA)
  9903. _ = i
  9904. var l int
  9905. _ = l
  9906. if m.XXX_unrecognized != nil {
  9907. i -= len(m.XXX_unrecognized)
  9908. copy(dAtA[i:], m.XXX_unrecognized)
  9909. }
  9910. return len(dAtA) - i, nil
  9911. }
  9912. func (m *StatusResponse) Marshal() (dAtA []byte, err error) {
  9913. size := m.Size()
  9914. dAtA = make([]byte, size)
  9915. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9916. if err != nil {
  9917. return nil, err
  9918. }
  9919. return dAtA[:n], nil
  9920. }
  9921. func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error) {
  9922. size := m.Size()
  9923. return m.MarshalToSizedBuffer(dAtA[:size])
  9924. }
  9925. func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9926. i := len(dAtA)
  9927. _ = i
  9928. var l int
  9929. _ = l
  9930. if m.XXX_unrecognized != nil {
  9931. i -= len(m.XXX_unrecognized)
  9932. copy(dAtA[i:], m.XXX_unrecognized)
  9933. }
  9934. if m.RaftTerm != 0 {
  9935. i = encodeVarintRpc(dAtA, i, uint64(m.RaftTerm))
  9936. i--
  9937. dAtA[i] = 0x30
  9938. }
  9939. if m.RaftIndex != 0 {
  9940. i = encodeVarintRpc(dAtA, i, uint64(m.RaftIndex))
  9941. i--
  9942. dAtA[i] = 0x28
  9943. }
  9944. if m.Leader != 0 {
  9945. i = encodeVarintRpc(dAtA, i, uint64(m.Leader))
  9946. i--
  9947. dAtA[i] = 0x20
  9948. }
  9949. if m.DbSize != 0 {
  9950. i = encodeVarintRpc(dAtA, i, uint64(m.DbSize))
  9951. i--
  9952. dAtA[i] = 0x18
  9953. }
  9954. if len(m.Version) > 0 {
  9955. i -= len(m.Version)
  9956. copy(dAtA[i:], m.Version)
  9957. i = encodeVarintRpc(dAtA, i, uint64(len(m.Version)))
  9958. i--
  9959. dAtA[i] = 0x12
  9960. }
  9961. if m.Header != nil {
  9962. {
  9963. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  9964. if err != nil {
  9965. return 0, err
  9966. }
  9967. i -= size
  9968. i = encodeVarintRpc(dAtA, i, uint64(size))
  9969. }
  9970. i--
  9971. dAtA[i] = 0xa
  9972. }
  9973. return len(dAtA) - i, nil
  9974. }
  9975. func (m *AuthEnableRequest) Marshal() (dAtA []byte, err error) {
  9976. size := m.Size()
  9977. dAtA = make([]byte, size)
  9978. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  9979. if err != nil {
  9980. return nil, err
  9981. }
  9982. return dAtA[:n], nil
  9983. }
  9984. func (m *AuthEnableRequest) MarshalTo(dAtA []byte) (int, error) {
  9985. size := m.Size()
  9986. return m.MarshalToSizedBuffer(dAtA[:size])
  9987. }
  9988. func (m *AuthEnableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  9989. i := len(dAtA)
  9990. _ = i
  9991. var l int
  9992. _ = l
  9993. if m.XXX_unrecognized != nil {
  9994. i -= len(m.XXX_unrecognized)
  9995. copy(dAtA[i:], m.XXX_unrecognized)
  9996. }
  9997. return len(dAtA) - i, nil
  9998. }
  9999. func (m *AuthDisableRequest) Marshal() (dAtA []byte, err error) {
  10000. size := m.Size()
  10001. dAtA = make([]byte, size)
  10002. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10003. if err != nil {
  10004. return nil, err
  10005. }
  10006. return dAtA[:n], nil
  10007. }
  10008. func (m *AuthDisableRequest) MarshalTo(dAtA []byte) (int, error) {
  10009. size := m.Size()
  10010. return m.MarshalToSizedBuffer(dAtA[:size])
  10011. }
  10012. func (m *AuthDisableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10013. i := len(dAtA)
  10014. _ = i
  10015. var l int
  10016. _ = l
  10017. if m.XXX_unrecognized != nil {
  10018. i -= len(m.XXX_unrecognized)
  10019. copy(dAtA[i:], m.XXX_unrecognized)
  10020. }
  10021. return len(dAtA) - i, nil
  10022. }
  10023. func (m *AuthenticateRequest) Marshal() (dAtA []byte, err error) {
  10024. size := m.Size()
  10025. dAtA = make([]byte, size)
  10026. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10027. if err != nil {
  10028. return nil, err
  10029. }
  10030. return dAtA[:n], nil
  10031. }
  10032. func (m *AuthenticateRequest) MarshalTo(dAtA []byte) (int, error) {
  10033. size := m.Size()
  10034. return m.MarshalToSizedBuffer(dAtA[:size])
  10035. }
  10036. func (m *AuthenticateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10037. i := len(dAtA)
  10038. _ = i
  10039. var l int
  10040. _ = l
  10041. if m.XXX_unrecognized != nil {
  10042. i -= len(m.XXX_unrecognized)
  10043. copy(dAtA[i:], m.XXX_unrecognized)
  10044. }
  10045. if len(m.Password) > 0 {
  10046. i -= len(m.Password)
  10047. copy(dAtA[i:], m.Password)
  10048. i = encodeVarintRpc(dAtA, i, uint64(len(m.Password)))
  10049. i--
  10050. dAtA[i] = 0x12
  10051. }
  10052. if len(m.Name) > 0 {
  10053. i -= len(m.Name)
  10054. copy(dAtA[i:], m.Name)
  10055. i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
  10056. i--
  10057. dAtA[i] = 0xa
  10058. }
  10059. return len(dAtA) - i, nil
  10060. }
  10061. func (m *AuthUserAddRequest) Marshal() (dAtA []byte, err error) {
  10062. size := m.Size()
  10063. dAtA = make([]byte, size)
  10064. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10065. if err != nil {
  10066. return nil, err
  10067. }
  10068. return dAtA[:n], nil
  10069. }
  10070. func (m *AuthUserAddRequest) MarshalTo(dAtA []byte) (int, error) {
  10071. size := m.Size()
  10072. return m.MarshalToSizedBuffer(dAtA[:size])
  10073. }
  10074. func (m *AuthUserAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10075. i := len(dAtA)
  10076. _ = i
  10077. var l int
  10078. _ = l
  10079. if m.XXX_unrecognized != nil {
  10080. i -= len(m.XXX_unrecognized)
  10081. copy(dAtA[i:], m.XXX_unrecognized)
  10082. }
  10083. if len(m.Password) > 0 {
  10084. i -= len(m.Password)
  10085. copy(dAtA[i:], m.Password)
  10086. i = encodeVarintRpc(dAtA, i, uint64(len(m.Password)))
  10087. i--
  10088. dAtA[i] = 0x12
  10089. }
  10090. if len(m.Name) > 0 {
  10091. i -= len(m.Name)
  10092. copy(dAtA[i:], m.Name)
  10093. i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
  10094. i--
  10095. dAtA[i] = 0xa
  10096. }
  10097. return len(dAtA) - i, nil
  10098. }
  10099. func (m *AuthUserGetRequest) Marshal() (dAtA []byte, err error) {
  10100. size := m.Size()
  10101. dAtA = make([]byte, size)
  10102. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10103. if err != nil {
  10104. return nil, err
  10105. }
  10106. return dAtA[:n], nil
  10107. }
  10108. func (m *AuthUserGetRequest) MarshalTo(dAtA []byte) (int, error) {
  10109. size := m.Size()
  10110. return m.MarshalToSizedBuffer(dAtA[:size])
  10111. }
  10112. func (m *AuthUserGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10113. i := len(dAtA)
  10114. _ = i
  10115. var l int
  10116. _ = l
  10117. if m.XXX_unrecognized != nil {
  10118. i -= len(m.XXX_unrecognized)
  10119. copy(dAtA[i:], m.XXX_unrecognized)
  10120. }
  10121. if len(m.Name) > 0 {
  10122. i -= len(m.Name)
  10123. copy(dAtA[i:], m.Name)
  10124. i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
  10125. i--
  10126. dAtA[i] = 0xa
  10127. }
  10128. return len(dAtA) - i, nil
  10129. }
  10130. func (m *AuthUserDeleteRequest) Marshal() (dAtA []byte, err error) {
  10131. size := m.Size()
  10132. dAtA = make([]byte, size)
  10133. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10134. if err != nil {
  10135. return nil, err
  10136. }
  10137. return dAtA[:n], nil
  10138. }
  10139. func (m *AuthUserDeleteRequest) MarshalTo(dAtA []byte) (int, error) {
  10140. size := m.Size()
  10141. return m.MarshalToSizedBuffer(dAtA[:size])
  10142. }
  10143. func (m *AuthUserDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10144. i := len(dAtA)
  10145. _ = i
  10146. var l int
  10147. _ = l
  10148. if m.XXX_unrecognized != nil {
  10149. i -= len(m.XXX_unrecognized)
  10150. copy(dAtA[i:], m.XXX_unrecognized)
  10151. }
  10152. if len(m.Name) > 0 {
  10153. i -= len(m.Name)
  10154. copy(dAtA[i:], m.Name)
  10155. i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
  10156. i--
  10157. dAtA[i] = 0xa
  10158. }
  10159. return len(dAtA) - i, nil
  10160. }
  10161. func (m *AuthUserChangePasswordRequest) Marshal() (dAtA []byte, err error) {
  10162. size := m.Size()
  10163. dAtA = make([]byte, size)
  10164. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10165. if err != nil {
  10166. return nil, err
  10167. }
  10168. return dAtA[:n], nil
  10169. }
  10170. func (m *AuthUserChangePasswordRequest) MarshalTo(dAtA []byte) (int, error) {
  10171. size := m.Size()
  10172. return m.MarshalToSizedBuffer(dAtA[:size])
  10173. }
  10174. func (m *AuthUserChangePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10175. i := len(dAtA)
  10176. _ = i
  10177. var l int
  10178. _ = l
  10179. if m.XXX_unrecognized != nil {
  10180. i -= len(m.XXX_unrecognized)
  10181. copy(dAtA[i:], m.XXX_unrecognized)
  10182. }
  10183. if len(m.Password) > 0 {
  10184. i -= len(m.Password)
  10185. copy(dAtA[i:], m.Password)
  10186. i = encodeVarintRpc(dAtA, i, uint64(len(m.Password)))
  10187. i--
  10188. dAtA[i] = 0x12
  10189. }
  10190. if len(m.Name) > 0 {
  10191. i -= len(m.Name)
  10192. copy(dAtA[i:], m.Name)
  10193. i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
  10194. i--
  10195. dAtA[i] = 0xa
  10196. }
  10197. return len(dAtA) - i, nil
  10198. }
  10199. func (m *AuthUserGrantRoleRequest) Marshal() (dAtA []byte, err error) {
  10200. size := m.Size()
  10201. dAtA = make([]byte, size)
  10202. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10203. if err != nil {
  10204. return nil, err
  10205. }
  10206. return dAtA[:n], nil
  10207. }
  10208. func (m *AuthUserGrantRoleRequest) MarshalTo(dAtA []byte) (int, error) {
  10209. size := m.Size()
  10210. return m.MarshalToSizedBuffer(dAtA[:size])
  10211. }
  10212. func (m *AuthUserGrantRoleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10213. i := len(dAtA)
  10214. _ = i
  10215. var l int
  10216. _ = l
  10217. if m.XXX_unrecognized != nil {
  10218. i -= len(m.XXX_unrecognized)
  10219. copy(dAtA[i:], m.XXX_unrecognized)
  10220. }
  10221. if len(m.Role) > 0 {
  10222. i -= len(m.Role)
  10223. copy(dAtA[i:], m.Role)
  10224. i = encodeVarintRpc(dAtA, i, uint64(len(m.Role)))
  10225. i--
  10226. dAtA[i] = 0x12
  10227. }
  10228. if len(m.User) > 0 {
  10229. i -= len(m.User)
  10230. copy(dAtA[i:], m.User)
  10231. i = encodeVarintRpc(dAtA, i, uint64(len(m.User)))
  10232. i--
  10233. dAtA[i] = 0xa
  10234. }
  10235. return len(dAtA) - i, nil
  10236. }
  10237. func (m *AuthUserRevokeRoleRequest) Marshal() (dAtA []byte, err error) {
  10238. size := m.Size()
  10239. dAtA = make([]byte, size)
  10240. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10241. if err != nil {
  10242. return nil, err
  10243. }
  10244. return dAtA[:n], nil
  10245. }
  10246. func (m *AuthUserRevokeRoleRequest) MarshalTo(dAtA []byte) (int, error) {
  10247. size := m.Size()
  10248. return m.MarshalToSizedBuffer(dAtA[:size])
  10249. }
  10250. func (m *AuthUserRevokeRoleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10251. i := len(dAtA)
  10252. _ = i
  10253. var l int
  10254. _ = l
  10255. if m.XXX_unrecognized != nil {
  10256. i -= len(m.XXX_unrecognized)
  10257. copy(dAtA[i:], m.XXX_unrecognized)
  10258. }
  10259. if len(m.Role) > 0 {
  10260. i -= len(m.Role)
  10261. copy(dAtA[i:], m.Role)
  10262. i = encodeVarintRpc(dAtA, i, uint64(len(m.Role)))
  10263. i--
  10264. dAtA[i] = 0x12
  10265. }
  10266. if len(m.Name) > 0 {
  10267. i -= len(m.Name)
  10268. copy(dAtA[i:], m.Name)
  10269. i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
  10270. i--
  10271. dAtA[i] = 0xa
  10272. }
  10273. return len(dAtA) - i, nil
  10274. }
  10275. func (m *AuthRoleAddRequest) Marshal() (dAtA []byte, err error) {
  10276. size := m.Size()
  10277. dAtA = make([]byte, size)
  10278. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10279. if err != nil {
  10280. return nil, err
  10281. }
  10282. return dAtA[:n], nil
  10283. }
  10284. func (m *AuthRoleAddRequest) MarshalTo(dAtA []byte) (int, error) {
  10285. size := m.Size()
  10286. return m.MarshalToSizedBuffer(dAtA[:size])
  10287. }
  10288. func (m *AuthRoleAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10289. i := len(dAtA)
  10290. _ = i
  10291. var l int
  10292. _ = l
  10293. if m.XXX_unrecognized != nil {
  10294. i -= len(m.XXX_unrecognized)
  10295. copy(dAtA[i:], m.XXX_unrecognized)
  10296. }
  10297. if len(m.Name) > 0 {
  10298. i -= len(m.Name)
  10299. copy(dAtA[i:], m.Name)
  10300. i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
  10301. i--
  10302. dAtA[i] = 0xa
  10303. }
  10304. return len(dAtA) - i, nil
  10305. }
  10306. func (m *AuthRoleGetRequest) Marshal() (dAtA []byte, err error) {
  10307. size := m.Size()
  10308. dAtA = make([]byte, size)
  10309. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10310. if err != nil {
  10311. return nil, err
  10312. }
  10313. return dAtA[:n], nil
  10314. }
  10315. func (m *AuthRoleGetRequest) MarshalTo(dAtA []byte) (int, error) {
  10316. size := m.Size()
  10317. return m.MarshalToSizedBuffer(dAtA[:size])
  10318. }
  10319. func (m *AuthRoleGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10320. i := len(dAtA)
  10321. _ = i
  10322. var l int
  10323. _ = l
  10324. if m.XXX_unrecognized != nil {
  10325. i -= len(m.XXX_unrecognized)
  10326. copy(dAtA[i:], m.XXX_unrecognized)
  10327. }
  10328. if len(m.Role) > 0 {
  10329. i -= len(m.Role)
  10330. copy(dAtA[i:], m.Role)
  10331. i = encodeVarintRpc(dAtA, i, uint64(len(m.Role)))
  10332. i--
  10333. dAtA[i] = 0xa
  10334. }
  10335. return len(dAtA) - i, nil
  10336. }
  10337. func (m *AuthUserListRequest) Marshal() (dAtA []byte, err error) {
  10338. size := m.Size()
  10339. dAtA = make([]byte, size)
  10340. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10341. if err != nil {
  10342. return nil, err
  10343. }
  10344. return dAtA[:n], nil
  10345. }
  10346. func (m *AuthUserListRequest) MarshalTo(dAtA []byte) (int, error) {
  10347. size := m.Size()
  10348. return m.MarshalToSizedBuffer(dAtA[:size])
  10349. }
  10350. func (m *AuthUserListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10351. i := len(dAtA)
  10352. _ = i
  10353. var l int
  10354. _ = l
  10355. if m.XXX_unrecognized != nil {
  10356. i -= len(m.XXX_unrecognized)
  10357. copy(dAtA[i:], m.XXX_unrecognized)
  10358. }
  10359. return len(dAtA) - i, nil
  10360. }
  10361. func (m *AuthRoleListRequest) Marshal() (dAtA []byte, err error) {
  10362. size := m.Size()
  10363. dAtA = make([]byte, size)
  10364. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10365. if err != nil {
  10366. return nil, err
  10367. }
  10368. return dAtA[:n], nil
  10369. }
  10370. func (m *AuthRoleListRequest) MarshalTo(dAtA []byte) (int, error) {
  10371. size := m.Size()
  10372. return m.MarshalToSizedBuffer(dAtA[:size])
  10373. }
  10374. func (m *AuthRoleListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10375. i := len(dAtA)
  10376. _ = i
  10377. var l int
  10378. _ = l
  10379. if m.XXX_unrecognized != nil {
  10380. i -= len(m.XXX_unrecognized)
  10381. copy(dAtA[i:], m.XXX_unrecognized)
  10382. }
  10383. return len(dAtA) - i, nil
  10384. }
  10385. func (m *AuthRoleDeleteRequest) Marshal() (dAtA []byte, err error) {
  10386. size := m.Size()
  10387. dAtA = make([]byte, size)
  10388. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10389. if err != nil {
  10390. return nil, err
  10391. }
  10392. return dAtA[:n], nil
  10393. }
  10394. func (m *AuthRoleDeleteRequest) MarshalTo(dAtA []byte) (int, error) {
  10395. size := m.Size()
  10396. return m.MarshalToSizedBuffer(dAtA[:size])
  10397. }
  10398. func (m *AuthRoleDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10399. i := len(dAtA)
  10400. _ = i
  10401. var l int
  10402. _ = l
  10403. if m.XXX_unrecognized != nil {
  10404. i -= len(m.XXX_unrecognized)
  10405. copy(dAtA[i:], m.XXX_unrecognized)
  10406. }
  10407. if len(m.Role) > 0 {
  10408. i -= len(m.Role)
  10409. copy(dAtA[i:], m.Role)
  10410. i = encodeVarintRpc(dAtA, i, uint64(len(m.Role)))
  10411. i--
  10412. dAtA[i] = 0xa
  10413. }
  10414. return len(dAtA) - i, nil
  10415. }
  10416. func (m *AuthRoleGrantPermissionRequest) Marshal() (dAtA []byte, err error) {
  10417. size := m.Size()
  10418. dAtA = make([]byte, size)
  10419. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10420. if err != nil {
  10421. return nil, err
  10422. }
  10423. return dAtA[:n], nil
  10424. }
  10425. func (m *AuthRoleGrantPermissionRequest) MarshalTo(dAtA []byte) (int, error) {
  10426. size := m.Size()
  10427. return m.MarshalToSizedBuffer(dAtA[:size])
  10428. }
  10429. func (m *AuthRoleGrantPermissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10430. i := len(dAtA)
  10431. _ = i
  10432. var l int
  10433. _ = l
  10434. if m.XXX_unrecognized != nil {
  10435. i -= len(m.XXX_unrecognized)
  10436. copy(dAtA[i:], m.XXX_unrecognized)
  10437. }
  10438. if m.Perm != nil {
  10439. {
  10440. size, err := m.Perm.MarshalToSizedBuffer(dAtA[:i])
  10441. if err != nil {
  10442. return 0, err
  10443. }
  10444. i -= size
  10445. i = encodeVarintRpc(dAtA, i, uint64(size))
  10446. }
  10447. i--
  10448. dAtA[i] = 0x12
  10449. }
  10450. if len(m.Name) > 0 {
  10451. i -= len(m.Name)
  10452. copy(dAtA[i:], m.Name)
  10453. i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
  10454. i--
  10455. dAtA[i] = 0xa
  10456. }
  10457. return len(dAtA) - i, nil
  10458. }
  10459. func (m *AuthRoleRevokePermissionRequest) Marshal() (dAtA []byte, err error) {
  10460. size := m.Size()
  10461. dAtA = make([]byte, size)
  10462. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10463. if err != nil {
  10464. return nil, err
  10465. }
  10466. return dAtA[:n], nil
  10467. }
  10468. func (m *AuthRoleRevokePermissionRequest) MarshalTo(dAtA []byte) (int, error) {
  10469. size := m.Size()
  10470. return m.MarshalToSizedBuffer(dAtA[:size])
  10471. }
  10472. func (m *AuthRoleRevokePermissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10473. i := len(dAtA)
  10474. _ = i
  10475. var l int
  10476. _ = l
  10477. if m.XXX_unrecognized != nil {
  10478. i -= len(m.XXX_unrecognized)
  10479. copy(dAtA[i:], m.XXX_unrecognized)
  10480. }
  10481. if len(m.RangeEnd) > 0 {
  10482. i -= len(m.RangeEnd)
  10483. copy(dAtA[i:], m.RangeEnd)
  10484. i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd)))
  10485. i--
  10486. dAtA[i] = 0x1a
  10487. }
  10488. if len(m.Key) > 0 {
  10489. i -= len(m.Key)
  10490. copy(dAtA[i:], m.Key)
  10491. i = encodeVarintRpc(dAtA, i, uint64(len(m.Key)))
  10492. i--
  10493. dAtA[i] = 0x12
  10494. }
  10495. if len(m.Role) > 0 {
  10496. i -= len(m.Role)
  10497. copy(dAtA[i:], m.Role)
  10498. i = encodeVarintRpc(dAtA, i, uint64(len(m.Role)))
  10499. i--
  10500. dAtA[i] = 0xa
  10501. }
  10502. return len(dAtA) - i, nil
  10503. }
  10504. func (m *AuthEnableResponse) Marshal() (dAtA []byte, err error) {
  10505. size := m.Size()
  10506. dAtA = make([]byte, size)
  10507. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10508. if err != nil {
  10509. return nil, err
  10510. }
  10511. return dAtA[:n], nil
  10512. }
  10513. func (m *AuthEnableResponse) MarshalTo(dAtA []byte) (int, error) {
  10514. size := m.Size()
  10515. return m.MarshalToSizedBuffer(dAtA[:size])
  10516. }
  10517. func (m *AuthEnableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10518. i := len(dAtA)
  10519. _ = i
  10520. var l int
  10521. _ = l
  10522. if m.XXX_unrecognized != nil {
  10523. i -= len(m.XXX_unrecognized)
  10524. copy(dAtA[i:], m.XXX_unrecognized)
  10525. }
  10526. if m.Header != nil {
  10527. {
  10528. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  10529. if err != nil {
  10530. return 0, err
  10531. }
  10532. i -= size
  10533. i = encodeVarintRpc(dAtA, i, uint64(size))
  10534. }
  10535. i--
  10536. dAtA[i] = 0xa
  10537. }
  10538. return len(dAtA) - i, nil
  10539. }
  10540. func (m *AuthDisableResponse) Marshal() (dAtA []byte, err error) {
  10541. size := m.Size()
  10542. dAtA = make([]byte, size)
  10543. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10544. if err != nil {
  10545. return nil, err
  10546. }
  10547. return dAtA[:n], nil
  10548. }
  10549. func (m *AuthDisableResponse) MarshalTo(dAtA []byte) (int, error) {
  10550. size := m.Size()
  10551. return m.MarshalToSizedBuffer(dAtA[:size])
  10552. }
  10553. func (m *AuthDisableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10554. i := len(dAtA)
  10555. _ = i
  10556. var l int
  10557. _ = l
  10558. if m.XXX_unrecognized != nil {
  10559. i -= len(m.XXX_unrecognized)
  10560. copy(dAtA[i:], m.XXX_unrecognized)
  10561. }
  10562. if m.Header != nil {
  10563. {
  10564. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  10565. if err != nil {
  10566. return 0, err
  10567. }
  10568. i -= size
  10569. i = encodeVarintRpc(dAtA, i, uint64(size))
  10570. }
  10571. i--
  10572. dAtA[i] = 0xa
  10573. }
  10574. return len(dAtA) - i, nil
  10575. }
  10576. func (m *AuthenticateResponse) Marshal() (dAtA []byte, err error) {
  10577. size := m.Size()
  10578. dAtA = make([]byte, size)
  10579. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10580. if err != nil {
  10581. return nil, err
  10582. }
  10583. return dAtA[:n], nil
  10584. }
  10585. func (m *AuthenticateResponse) MarshalTo(dAtA []byte) (int, error) {
  10586. size := m.Size()
  10587. return m.MarshalToSizedBuffer(dAtA[:size])
  10588. }
  10589. func (m *AuthenticateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10590. i := len(dAtA)
  10591. _ = i
  10592. var l int
  10593. _ = l
  10594. if m.XXX_unrecognized != nil {
  10595. i -= len(m.XXX_unrecognized)
  10596. copy(dAtA[i:], m.XXX_unrecognized)
  10597. }
  10598. if len(m.Token) > 0 {
  10599. i -= len(m.Token)
  10600. copy(dAtA[i:], m.Token)
  10601. i = encodeVarintRpc(dAtA, i, uint64(len(m.Token)))
  10602. i--
  10603. dAtA[i] = 0x12
  10604. }
  10605. if m.Header != nil {
  10606. {
  10607. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  10608. if err != nil {
  10609. return 0, err
  10610. }
  10611. i -= size
  10612. i = encodeVarintRpc(dAtA, i, uint64(size))
  10613. }
  10614. i--
  10615. dAtA[i] = 0xa
  10616. }
  10617. return len(dAtA) - i, nil
  10618. }
  10619. func (m *AuthUserAddResponse) Marshal() (dAtA []byte, err error) {
  10620. size := m.Size()
  10621. dAtA = make([]byte, size)
  10622. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10623. if err != nil {
  10624. return nil, err
  10625. }
  10626. return dAtA[:n], nil
  10627. }
  10628. func (m *AuthUserAddResponse) MarshalTo(dAtA []byte) (int, error) {
  10629. size := m.Size()
  10630. return m.MarshalToSizedBuffer(dAtA[:size])
  10631. }
  10632. func (m *AuthUserAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10633. i := len(dAtA)
  10634. _ = i
  10635. var l int
  10636. _ = l
  10637. if m.XXX_unrecognized != nil {
  10638. i -= len(m.XXX_unrecognized)
  10639. copy(dAtA[i:], m.XXX_unrecognized)
  10640. }
  10641. if m.Header != nil {
  10642. {
  10643. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  10644. if err != nil {
  10645. return 0, err
  10646. }
  10647. i -= size
  10648. i = encodeVarintRpc(dAtA, i, uint64(size))
  10649. }
  10650. i--
  10651. dAtA[i] = 0xa
  10652. }
  10653. return len(dAtA) - i, nil
  10654. }
  10655. func (m *AuthUserGetResponse) Marshal() (dAtA []byte, err error) {
  10656. size := m.Size()
  10657. dAtA = make([]byte, size)
  10658. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10659. if err != nil {
  10660. return nil, err
  10661. }
  10662. return dAtA[:n], nil
  10663. }
  10664. func (m *AuthUserGetResponse) MarshalTo(dAtA []byte) (int, error) {
  10665. size := m.Size()
  10666. return m.MarshalToSizedBuffer(dAtA[:size])
  10667. }
  10668. func (m *AuthUserGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10669. i := len(dAtA)
  10670. _ = i
  10671. var l int
  10672. _ = l
  10673. if m.XXX_unrecognized != nil {
  10674. i -= len(m.XXX_unrecognized)
  10675. copy(dAtA[i:], m.XXX_unrecognized)
  10676. }
  10677. if len(m.Roles) > 0 {
  10678. for iNdEx := len(m.Roles) - 1; iNdEx >= 0; iNdEx-- {
  10679. i -= len(m.Roles[iNdEx])
  10680. copy(dAtA[i:], m.Roles[iNdEx])
  10681. i = encodeVarintRpc(dAtA, i, uint64(len(m.Roles[iNdEx])))
  10682. i--
  10683. dAtA[i] = 0x12
  10684. }
  10685. }
  10686. if m.Header != nil {
  10687. {
  10688. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  10689. if err != nil {
  10690. return 0, err
  10691. }
  10692. i -= size
  10693. i = encodeVarintRpc(dAtA, i, uint64(size))
  10694. }
  10695. i--
  10696. dAtA[i] = 0xa
  10697. }
  10698. return len(dAtA) - i, nil
  10699. }
  10700. func (m *AuthUserDeleteResponse) Marshal() (dAtA []byte, err error) {
  10701. size := m.Size()
  10702. dAtA = make([]byte, size)
  10703. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10704. if err != nil {
  10705. return nil, err
  10706. }
  10707. return dAtA[:n], nil
  10708. }
  10709. func (m *AuthUserDeleteResponse) MarshalTo(dAtA []byte) (int, error) {
  10710. size := m.Size()
  10711. return m.MarshalToSizedBuffer(dAtA[:size])
  10712. }
  10713. func (m *AuthUserDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10714. i := len(dAtA)
  10715. _ = i
  10716. var l int
  10717. _ = l
  10718. if m.XXX_unrecognized != nil {
  10719. i -= len(m.XXX_unrecognized)
  10720. copy(dAtA[i:], m.XXX_unrecognized)
  10721. }
  10722. if m.Header != nil {
  10723. {
  10724. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  10725. if err != nil {
  10726. return 0, err
  10727. }
  10728. i -= size
  10729. i = encodeVarintRpc(dAtA, i, uint64(size))
  10730. }
  10731. i--
  10732. dAtA[i] = 0xa
  10733. }
  10734. return len(dAtA) - i, nil
  10735. }
  10736. func (m *AuthUserChangePasswordResponse) Marshal() (dAtA []byte, err error) {
  10737. size := m.Size()
  10738. dAtA = make([]byte, size)
  10739. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10740. if err != nil {
  10741. return nil, err
  10742. }
  10743. return dAtA[:n], nil
  10744. }
  10745. func (m *AuthUserChangePasswordResponse) MarshalTo(dAtA []byte) (int, error) {
  10746. size := m.Size()
  10747. return m.MarshalToSizedBuffer(dAtA[:size])
  10748. }
  10749. func (m *AuthUserChangePasswordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10750. i := len(dAtA)
  10751. _ = i
  10752. var l int
  10753. _ = l
  10754. if m.XXX_unrecognized != nil {
  10755. i -= len(m.XXX_unrecognized)
  10756. copy(dAtA[i:], m.XXX_unrecognized)
  10757. }
  10758. if m.Header != nil {
  10759. {
  10760. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  10761. if err != nil {
  10762. return 0, err
  10763. }
  10764. i -= size
  10765. i = encodeVarintRpc(dAtA, i, uint64(size))
  10766. }
  10767. i--
  10768. dAtA[i] = 0xa
  10769. }
  10770. return len(dAtA) - i, nil
  10771. }
  10772. func (m *AuthUserGrantRoleResponse) Marshal() (dAtA []byte, err error) {
  10773. size := m.Size()
  10774. dAtA = make([]byte, size)
  10775. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10776. if err != nil {
  10777. return nil, err
  10778. }
  10779. return dAtA[:n], nil
  10780. }
  10781. func (m *AuthUserGrantRoleResponse) MarshalTo(dAtA []byte) (int, error) {
  10782. size := m.Size()
  10783. return m.MarshalToSizedBuffer(dAtA[:size])
  10784. }
  10785. func (m *AuthUserGrantRoleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10786. i := len(dAtA)
  10787. _ = i
  10788. var l int
  10789. _ = l
  10790. if m.XXX_unrecognized != nil {
  10791. i -= len(m.XXX_unrecognized)
  10792. copy(dAtA[i:], m.XXX_unrecognized)
  10793. }
  10794. if m.Header != nil {
  10795. {
  10796. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  10797. if err != nil {
  10798. return 0, err
  10799. }
  10800. i -= size
  10801. i = encodeVarintRpc(dAtA, i, uint64(size))
  10802. }
  10803. i--
  10804. dAtA[i] = 0xa
  10805. }
  10806. return len(dAtA) - i, nil
  10807. }
  10808. func (m *AuthUserRevokeRoleResponse) Marshal() (dAtA []byte, err error) {
  10809. size := m.Size()
  10810. dAtA = make([]byte, size)
  10811. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10812. if err != nil {
  10813. return nil, err
  10814. }
  10815. return dAtA[:n], nil
  10816. }
  10817. func (m *AuthUserRevokeRoleResponse) MarshalTo(dAtA []byte) (int, error) {
  10818. size := m.Size()
  10819. return m.MarshalToSizedBuffer(dAtA[:size])
  10820. }
  10821. func (m *AuthUserRevokeRoleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10822. i := len(dAtA)
  10823. _ = i
  10824. var l int
  10825. _ = l
  10826. if m.XXX_unrecognized != nil {
  10827. i -= len(m.XXX_unrecognized)
  10828. copy(dAtA[i:], m.XXX_unrecognized)
  10829. }
  10830. if m.Header != nil {
  10831. {
  10832. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  10833. if err != nil {
  10834. return 0, err
  10835. }
  10836. i -= size
  10837. i = encodeVarintRpc(dAtA, i, uint64(size))
  10838. }
  10839. i--
  10840. dAtA[i] = 0xa
  10841. }
  10842. return len(dAtA) - i, nil
  10843. }
  10844. func (m *AuthRoleAddResponse) Marshal() (dAtA []byte, err error) {
  10845. size := m.Size()
  10846. dAtA = make([]byte, size)
  10847. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10848. if err != nil {
  10849. return nil, err
  10850. }
  10851. return dAtA[:n], nil
  10852. }
  10853. func (m *AuthRoleAddResponse) MarshalTo(dAtA []byte) (int, error) {
  10854. size := m.Size()
  10855. return m.MarshalToSizedBuffer(dAtA[:size])
  10856. }
  10857. func (m *AuthRoleAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10858. i := len(dAtA)
  10859. _ = i
  10860. var l int
  10861. _ = l
  10862. if m.XXX_unrecognized != nil {
  10863. i -= len(m.XXX_unrecognized)
  10864. copy(dAtA[i:], m.XXX_unrecognized)
  10865. }
  10866. if m.Header != nil {
  10867. {
  10868. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  10869. if err != nil {
  10870. return 0, err
  10871. }
  10872. i -= size
  10873. i = encodeVarintRpc(dAtA, i, uint64(size))
  10874. }
  10875. i--
  10876. dAtA[i] = 0xa
  10877. }
  10878. return len(dAtA) - i, nil
  10879. }
  10880. func (m *AuthRoleGetResponse) Marshal() (dAtA []byte, err error) {
  10881. size := m.Size()
  10882. dAtA = make([]byte, size)
  10883. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10884. if err != nil {
  10885. return nil, err
  10886. }
  10887. return dAtA[:n], nil
  10888. }
  10889. func (m *AuthRoleGetResponse) MarshalTo(dAtA []byte) (int, error) {
  10890. size := m.Size()
  10891. return m.MarshalToSizedBuffer(dAtA[:size])
  10892. }
  10893. func (m *AuthRoleGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10894. i := len(dAtA)
  10895. _ = i
  10896. var l int
  10897. _ = l
  10898. if m.XXX_unrecognized != nil {
  10899. i -= len(m.XXX_unrecognized)
  10900. copy(dAtA[i:], m.XXX_unrecognized)
  10901. }
  10902. if len(m.Perm) > 0 {
  10903. for iNdEx := len(m.Perm) - 1; iNdEx >= 0; iNdEx-- {
  10904. {
  10905. size, err := m.Perm[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  10906. if err != nil {
  10907. return 0, err
  10908. }
  10909. i -= size
  10910. i = encodeVarintRpc(dAtA, i, uint64(size))
  10911. }
  10912. i--
  10913. dAtA[i] = 0x12
  10914. }
  10915. }
  10916. if m.Header != nil {
  10917. {
  10918. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  10919. if err != nil {
  10920. return 0, err
  10921. }
  10922. i -= size
  10923. i = encodeVarintRpc(dAtA, i, uint64(size))
  10924. }
  10925. i--
  10926. dAtA[i] = 0xa
  10927. }
  10928. return len(dAtA) - i, nil
  10929. }
  10930. func (m *AuthRoleListResponse) Marshal() (dAtA []byte, err error) {
  10931. size := m.Size()
  10932. dAtA = make([]byte, size)
  10933. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10934. if err != nil {
  10935. return nil, err
  10936. }
  10937. return dAtA[:n], nil
  10938. }
  10939. func (m *AuthRoleListResponse) MarshalTo(dAtA []byte) (int, error) {
  10940. size := m.Size()
  10941. return m.MarshalToSizedBuffer(dAtA[:size])
  10942. }
  10943. func (m *AuthRoleListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10944. i := len(dAtA)
  10945. _ = i
  10946. var l int
  10947. _ = l
  10948. if m.XXX_unrecognized != nil {
  10949. i -= len(m.XXX_unrecognized)
  10950. copy(dAtA[i:], m.XXX_unrecognized)
  10951. }
  10952. if len(m.Roles) > 0 {
  10953. for iNdEx := len(m.Roles) - 1; iNdEx >= 0; iNdEx-- {
  10954. i -= len(m.Roles[iNdEx])
  10955. copy(dAtA[i:], m.Roles[iNdEx])
  10956. i = encodeVarintRpc(dAtA, i, uint64(len(m.Roles[iNdEx])))
  10957. i--
  10958. dAtA[i] = 0x12
  10959. }
  10960. }
  10961. if m.Header != nil {
  10962. {
  10963. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  10964. if err != nil {
  10965. return 0, err
  10966. }
  10967. i -= size
  10968. i = encodeVarintRpc(dAtA, i, uint64(size))
  10969. }
  10970. i--
  10971. dAtA[i] = 0xa
  10972. }
  10973. return len(dAtA) - i, nil
  10974. }
  10975. func (m *AuthUserListResponse) Marshal() (dAtA []byte, err error) {
  10976. size := m.Size()
  10977. dAtA = make([]byte, size)
  10978. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10979. if err != nil {
  10980. return nil, err
  10981. }
  10982. return dAtA[:n], nil
  10983. }
  10984. func (m *AuthUserListResponse) MarshalTo(dAtA []byte) (int, error) {
  10985. size := m.Size()
  10986. return m.MarshalToSizedBuffer(dAtA[:size])
  10987. }
  10988. func (m *AuthUserListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10989. i := len(dAtA)
  10990. _ = i
  10991. var l int
  10992. _ = l
  10993. if m.XXX_unrecognized != nil {
  10994. i -= len(m.XXX_unrecognized)
  10995. copy(dAtA[i:], m.XXX_unrecognized)
  10996. }
  10997. if len(m.Users) > 0 {
  10998. for iNdEx := len(m.Users) - 1; iNdEx >= 0; iNdEx-- {
  10999. i -= len(m.Users[iNdEx])
  11000. copy(dAtA[i:], m.Users[iNdEx])
  11001. i = encodeVarintRpc(dAtA, i, uint64(len(m.Users[iNdEx])))
  11002. i--
  11003. dAtA[i] = 0x12
  11004. }
  11005. }
  11006. if m.Header != nil {
  11007. {
  11008. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  11009. if err != nil {
  11010. return 0, err
  11011. }
  11012. i -= size
  11013. i = encodeVarintRpc(dAtA, i, uint64(size))
  11014. }
  11015. i--
  11016. dAtA[i] = 0xa
  11017. }
  11018. return len(dAtA) - i, nil
  11019. }
  11020. func (m *AuthRoleDeleteResponse) Marshal() (dAtA []byte, err error) {
  11021. size := m.Size()
  11022. dAtA = make([]byte, size)
  11023. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11024. if err != nil {
  11025. return nil, err
  11026. }
  11027. return dAtA[:n], nil
  11028. }
  11029. func (m *AuthRoleDeleteResponse) MarshalTo(dAtA []byte) (int, error) {
  11030. size := m.Size()
  11031. return m.MarshalToSizedBuffer(dAtA[:size])
  11032. }
  11033. func (m *AuthRoleDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11034. i := len(dAtA)
  11035. _ = i
  11036. var l int
  11037. _ = l
  11038. if m.XXX_unrecognized != nil {
  11039. i -= len(m.XXX_unrecognized)
  11040. copy(dAtA[i:], m.XXX_unrecognized)
  11041. }
  11042. if m.Header != nil {
  11043. {
  11044. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  11045. if err != nil {
  11046. return 0, err
  11047. }
  11048. i -= size
  11049. i = encodeVarintRpc(dAtA, i, uint64(size))
  11050. }
  11051. i--
  11052. dAtA[i] = 0xa
  11053. }
  11054. return len(dAtA) - i, nil
  11055. }
  11056. func (m *AuthRoleGrantPermissionResponse) Marshal() (dAtA []byte, err error) {
  11057. size := m.Size()
  11058. dAtA = make([]byte, size)
  11059. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11060. if err != nil {
  11061. return nil, err
  11062. }
  11063. return dAtA[:n], nil
  11064. }
  11065. func (m *AuthRoleGrantPermissionResponse) MarshalTo(dAtA []byte) (int, error) {
  11066. size := m.Size()
  11067. return m.MarshalToSizedBuffer(dAtA[:size])
  11068. }
  11069. func (m *AuthRoleGrantPermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11070. i := len(dAtA)
  11071. _ = i
  11072. var l int
  11073. _ = l
  11074. if m.XXX_unrecognized != nil {
  11075. i -= len(m.XXX_unrecognized)
  11076. copy(dAtA[i:], m.XXX_unrecognized)
  11077. }
  11078. if m.Header != nil {
  11079. {
  11080. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  11081. if err != nil {
  11082. return 0, err
  11083. }
  11084. i -= size
  11085. i = encodeVarintRpc(dAtA, i, uint64(size))
  11086. }
  11087. i--
  11088. dAtA[i] = 0xa
  11089. }
  11090. return len(dAtA) - i, nil
  11091. }
  11092. func (m *AuthRoleRevokePermissionResponse) Marshal() (dAtA []byte, err error) {
  11093. size := m.Size()
  11094. dAtA = make([]byte, size)
  11095. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11096. if err != nil {
  11097. return nil, err
  11098. }
  11099. return dAtA[:n], nil
  11100. }
  11101. func (m *AuthRoleRevokePermissionResponse) MarshalTo(dAtA []byte) (int, error) {
  11102. size := m.Size()
  11103. return m.MarshalToSizedBuffer(dAtA[:size])
  11104. }
  11105. func (m *AuthRoleRevokePermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11106. i := len(dAtA)
  11107. _ = i
  11108. var l int
  11109. _ = l
  11110. if m.XXX_unrecognized != nil {
  11111. i -= len(m.XXX_unrecognized)
  11112. copy(dAtA[i:], m.XXX_unrecognized)
  11113. }
  11114. if m.Header != nil {
  11115. {
  11116. size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  11117. if err != nil {
  11118. return 0, err
  11119. }
  11120. i -= size
  11121. i = encodeVarintRpc(dAtA, i, uint64(size))
  11122. }
  11123. i--
  11124. dAtA[i] = 0xa
  11125. }
  11126. return len(dAtA) - i, nil
  11127. }
  11128. func encodeVarintRpc(dAtA []byte, offset int, v uint64) int {
  11129. offset -= sovRpc(v)
  11130. base := offset
  11131. for v >= 1<<7 {
  11132. dAtA[offset] = uint8(v&0x7f | 0x80)
  11133. v >>= 7
  11134. offset++
  11135. }
  11136. dAtA[offset] = uint8(v)
  11137. return base
  11138. }
  11139. func (m *ResponseHeader) Size() (n int) {
  11140. if m == nil {
  11141. return 0
  11142. }
  11143. var l int
  11144. _ = l
  11145. if m.ClusterId != 0 {
  11146. n += 1 + sovRpc(uint64(m.ClusterId))
  11147. }
  11148. if m.MemberId != 0 {
  11149. n += 1 + sovRpc(uint64(m.MemberId))
  11150. }
  11151. if m.Revision != 0 {
  11152. n += 1 + sovRpc(uint64(m.Revision))
  11153. }
  11154. if m.RaftTerm != 0 {
  11155. n += 1 + sovRpc(uint64(m.RaftTerm))
  11156. }
  11157. if m.XXX_unrecognized != nil {
  11158. n += len(m.XXX_unrecognized)
  11159. }
  11160. return n
  11161. }
  11162. func (m *RangeRequest) Size() (n int) {
  11163. if m == nil {
  11164. return 0
  11165. }
  11166. var l int
  11167. _ = l
  11168. l = len(m.Key)
  11169. if l > 0 {
  11170. n += 1 + l + sovRpc(uint64(l))
  11171. }
  11172. l = len(m.RangeEnd)
  11173. if l > 0 {
  11174. n += 1 + l + sovRpc(uint64(l))
  11175. }
  11176. if m.Limit != 0 {
  11177. n += 1 + sovRpc(uint64(m.Limit))
  11178. }
  11179. if m.Revision != 0 {
  11180. n += 1 + sovRpc(uint64(m.Revision))
  11181. }
  11182. if m.SortOrder != 0 {
  11183. n += 1 + sovRpc(uint64(m.SortOrder))
  11184. }
  11185. if m.SortTarget != 0 {
  11186. n += 1 + sovRpc(uint64(m.SortTarget))
  11187. }
  11188. if m.Serializable {
  11189. n += 2
  11190. }
  11191. if m.KeysOnly {
  11192. n += 2
  11193. }
  11194. if m.CountOnly {
  11195. n += 2
  11196. }
  11197. if m.MinModRevision != 0 {
  11198. n += 1 + sovRpc(uint64(m.MinModRevision))
  11199. }
  11200. if m.MaxModRevision != 0 {
  11201. n += 1 + sovRpc(uint64(m.MaxModRevision))
  11202. }
  11203. if m.MinCreateRevision != 0 {
  11204. n += 1 + sovRpc(uint64(m.MinCreateRevision))
  11205. }
  11206. if m.MaxCreateRevision != 0 {
  11207. n += 1 + sovRpc(uint64(m.MaxCreateRevision))
  11208. }
  11209. if m.XXX_unrecognized != nil {
  11210. n += len(m.XXX_unrecognized)
  11211. }
  11212. return n
  11213. }
  11214. func (m *RangeResponse) Size() (n int) {
  11215. if m == nil {
  11216. return 0
  11217. }
  11218. var l int
  11219. _ = l
  11220. if m.Header != nil {
  11221. l = m.Header.Size()
  11222. n += 1 + l + sovRpc(uint64(l))
  11223. }
  11224. if len(m.Kvs) > 0 {
  11225. for _, e := range m.Kvs {
  11226. l = e.Size()
  11227. n += 1 + l + sovRpc(uint64(l))
  11228. }
  11229. }
  11230. if m.More {
  11231. n += 2
  11232. }
  11233. if m.Count != 0 {
  11234. n += 1 + sovRpc(uint64(m.Count))
  11235. }
  11236. if m.XXX_unrecognized != nil {
  11237. n += len(m.XXX_unrecognized)
  11238. }
  11239. return n
  11240. }
  11241. func (m *PutRequest) Size() (n int) {
  11242. if m == nil {
  11243. return 0
  11244. }
  11245. var l int
  11246. _ = l
  11247. l = len(m.Key)
  11248. if l > 0 {
  11249. n += 1 + l + sovRpc(uint64(l))
  11250. }
  11251. l = len(m.Value)
  11252. if l > 0 {
  11253. n += 1 + l + sovRpc(uint64(l))
  11254. }
  11255. if m.Lease != 0 {
  11256. n += 1 + sovRpc(uint64(m.Lease))
  11257. }
  11258. if m.PrevKv {
  11259. n += 2
  11260. }
  11261. if m.IgnoreValue {
  11262. n += 2
  11263. }
  11264. if m.IgnoreLease {
  11265. n += 2
  11266. }
  11267. if m.XXX_unrecognized != nil {
  11268. n += len(m.XXX_unrecognized)
  11269. }
  11270. return n
  11271. }
  11272. func (m *PutResponse) Size() (n int) {
  11273. if m == nil {
  11274. return 0
  11275. }
  11276. var l int
  11277. _ = l
  11278. if m.Header != nil {
  11279. l = m.Header.Size()
  11280. n += 1 + l + sovRpc(uint64(l))
  11281. }
  11282. if m.PrevKv != nil {
  11283. l = m.PrevKv.Size()
  11284. n += 1 + l + sovRpc(uint64(l))
  11285. }
  11286. if m.XXX_unrecognized != nil {
  11287. n += len(m.XXX_unrecognized)
  11288. }
  11289. return n
  11290. }
  11291. func (m *DeleteRangeRequest) Size() (n int) {
  11292. if m == nil {
  11293. return 0
  11294. }
  11295. var l int
  11296. _ = l
  11297. l = len(m.Key)
  11298. if l > 0 {
  11299. n += 1 + l + sovRpc(uint64(l))
  11300. }
  11301. l = len(m.RangeEnd)
  11302. if l > 0 {
  11303. n += 1 + l + sovRpc(uint64(l))
  11304. }
  11305. if m.PrevKv {
  11306. n += 2
  11307. }
  11308. if m.XXX_unrecognized != nil {
  11309. n += len(m.XXX_unrecognized)
  11310. }
  11311. return n
  11312. }
  11313. func (m *DeleteRangeResponse) Size() (n int) {
  11314. if m == nil {
  11315. return 0
  11316. }
  11317. var l int
  11318. _ = l
  11319. if m.Header != nil {
  11320. l = m.Header.Size()
  11321. n += 1 + l + sovRpc(uint64(l))
  11322. }
  11323. if m.Deleted != 0 {
  11324. n += 1 + sovRpc(uint64(m.Deleted))
  11325. }
  11326. if len(m.PrevKvs) > 0 {
  11327. for _, e := range m.PrevKvs {
  11328. l = e.Size()
  11329. n += 1 + l + sovRpc(uint64(l))
  11330. }
  11331. }
  11332. if m.XXX_unrecognized != nil {
  11333. n += len(m.XXX_unrecognized)
  11334. }
  11335. return n
  11336. }
  11337. func (m *RequestOp) Size() (n int) {
  11338. if m == nil {
  11339. return 0
  11340. }
  11341. var l int
  11342. _ = l
  11343. if m.Request != nil {
  11344. n += m.Request.Size()
  11345. }
  11346. if m.XXX_unrecognized != nil {
  11347. n += len(m.XXX_unrecognized)
  11348. }
  11349. return n
  11350. }
  11351. func (m *RequestOp_RequestRange) Size() (n int) {
  11352. if m == nil {
  11353. return 0
  11354. }
  11355. var l int
  11356. _ = l
  11357. if m.RequestRange != nil {
  11358. l = m.RequestRange.Size()
  11359. n += 1 + l + sovRpc(uint64(l))
  11360. }
  11361. return n
  11362. }
  11363. func (m *RequestOp_RequestPut) Size() (n int) {
  11364. if m == nil {
  11365. return 0
  11366. }
  11367. var l int
  11368. _ = l
  11369. if m.RequestPut != nil {
  11370. l = m.RequestPut.Size()
  11371. n += 1 + l + sovRpc(uint64(l))
  11372. }
  11373. return n
  11374. }
  11375. func (m *RequestOp_RequestDeleteRange) Size() (n int) {
  11376. if m == nil {
  11377. return 0
  11378. }
  11379. var l int
  11380. _ = l
  11381. if m.RequestDeleteRange != nil {
  11382. l = m.RequestDeleteRange.Size()
  11383. n += 1 + l + sovRpc(uint64(l))
  11384. }
  11385. return n
  11386. }
  11387. func (m *RequestOp_RequestTxn) Size() (n int) {
  11388. if m == nil {
  11389. return 0
  11390. }
  11391. var l int
  11392. _ = l
  11393. if m.RequestTxn != nil {
  11394. l = m.RequestTxn.Size()
  11395. n += 1 + l + sovRpc(uint64(l))
  11396. }
  11397. return n
  11398. }
  11399. func (m *ResponseOp) Size() (n int) {
  11400. if m == nil {
  11401. return 0
  11402. }
  11403. var l int
  11404. _ = l
  11405. if m.Response != nil {
  11406. n += m.Response.Size()
  11407. }
  11408. if m.XXX_unrecognized != nil {
  11409. n += len(m.XXX_unrecognized)
  11410. }
  11411. return n
  11412. }
  11413. func (m *ResponseOp_ResponseRange) Size() (n int) {
  11414. if m == nil {
  11415. return 0
  11416. }
  11417. var l int
  11418. _ = l
  11419. if m.ResponseRange != nil {
  11420. l = m.ResponseRange.Size()
  11421. n += 1 + l + sovRpc(uint64(l))
  11422. }
  11423. return n
  11424. }
  11425. func (m *ResponseOp_ResponsePut) Size() (n int) {
  11426. if m == nil {
  11427. return 0
  11428. }
  11429. var l int
  11430. _ = l
  11431. if m.ResponsePut != nil {
  11432. l = m.ResponsePut.Size()
  11433. n += 1 + l + sovRpc(uint64(l))
  11434. }
  11435. return n
  11436. }
  11437. func (m *ResponseOp_ResponseDeleteRange) Size() (n int) {
  11438. if m == nil {
  11439. return 0
  11440. }
  11441. var l int
  11442. _ = l
  11443. if m.ResponseDeleteRange != nil {
  11444. l = m.ResponseDeleteRange.Size()
  11445. n += 1 + l + sovRpc(uint64(l))
  11446. }
  11447. return n
  11448. }
  11449. func (m *ResponseOp_ResponseTxn) Size() (n int) {
  11450. if m == nil {
  11451. return 0
  11452. }
  11453. var l int
  11454. _ = l
  11455. if m.ResponseTxn != nil {
  11456. l = m.ResponseTxn.Size()
  11457. n += 1 + l + sovRpc(uint64(l))
  11458. }
  11459. return n
  11460. }
  11461. func (m *Compare) Size() (n int) {
  11462. if m == nil {
  11463. return 0
  11464. }
  11465. var l int
  11466. _ = l
  11467. if m.Result != 0 {
  11468. n += 1 + sovRpc(uint64(m.Result))
  11469. }
  11470. if m.Target != 0 {
  11471. n += 1 + sovRpc(uint64(m.Target))
  11472. }
  11473. l = len(m.Key)
  11474. if l > 0 {
  11475. n += 1 + l + sovRpc(uint64(l))
  11476. }
  11477. if m.TargetUnion != nil {
  11478. n += m.TargetUnion.Size()
  11479. }
  11480. l = len(m.RangeEnd)
  11481. if l > 0 {
  11482. n += 2 + l + sovRpc(uint64(l))
  11483. }
  11484. if m.XXX_unrecognized != nil {
  11485. n += len(m.XXX_unrecognized)
  11486. }
  11487. return n
  11488. }
  11489. func (m *Compare_Version) Size() (n int) {
  11490. if m == nil {
  11491. return 0
  11492. }
  11493. var l int
  11494. _ = l
  11495. n += 1 + sovRpc(uint64(m.Version))
  11496. return n
  11497. }
  11498. func (m *Compare_CreateRevision) Size() (n int) {
  11499. if m == nil {
  11500. return 0
  11501. }
  11502. var l int
  11503. _ = l
  11504. n += 1 + sovRpc(uint64(m.CreateRevision))
  11505. return n
  11506. }
  11507. func (m *Compare_ModRevision) Size() (n int) {
  11508. if m == nil {
  11509. return 0
  11510. }
  11511. var l int
  11512. _ = l
  11513. n += 1 + sovRpc(uint64(m.ModRevision))
  11514. return n
  11515. }
  11516. func (m *Compare_Value) Size() (n int) {
  11517. if m == nil {
  11518. return 0
  11519. }
  11520. var l int
  11521. _ = l
  11522. if m.Value != nil {
  11523. l = len(m.Value)
  11524. n += 1 + l + sovRpc(uint64(l))
  11525. }
  11526. return n
  11527. }
  11528. func (m *Compare_Lease) Size() (n int) {
  11529. if m == nil {
  11530. return 0
  11531. }
  11532. var l int
  11533. _ = l
  11534. n += 1 + sovRpc(uint64(m.Lease))
  11535. return n
  11536. }
  11537. func (m *TxnRequest) Size() (n int) {
  11538. if m == nil {
  11539. return 0
  11540. }
  11541. var l int
  11542. _ = l
  11543. if len(m.Compare) > 0 {
  11544. for _, e := range m.Compare {
  11545. l = e.Size()
  11546. n += 1 + l + sovRpc(uint64(l))
  11547. }
  11548. }
  11549. if len(m.Success) > 0 {
  11550. for _, e := range m.Success {
  11551. l = e.Size()
  11552. n += 1 + l + sovRpc(uint64(l))
  11553. }
  11554. }
  11555. if len(m.Failure) > 0 {
  11556. for _, e := range m.Failure {
  11557. l = e.Size()
  11558. n += 1 + l + sovRpc(uint64(l))
  11559. }
  11560. }
  11561. if m.XXX_unrecognized != nil {
  11562. n += len(m.XXX_unrecognized)
  11563. }
  11564. return n
  11565. }
  11566. func (m *TxnResponse) Size() (n int) {
  11567. if m == nil {
  11568. return 0
  11569. }
  11570. var l int
  11571. _ = l
  11572. if m.Header != nil {
  11573. l = m.Header.Size()
  11574. n += 1 + l + sovRpc(uint64(l))
  11575. }
  11576. if m.Succeeded {
  11577. n += 2
  11578. }
  11579. if len(m.Responses) > 0 {
  11580. for _, e := range m.Responses {
  11581. l = e.Size()
  11582. n += 1 + l + sovRpc(uint64(l))
  11583. }
  11584. }
  11585. if m.XXX_unrecognized != nil {
  11586. n += len(m.XXX_unrecognized)
  11587. }
  11588. return n
  11589. }
  11590. func (m *CompactionRequest) Size() (n int) {
  11591. if m == nil {
  11592. return 0
  11593. }
  11594. var l int
  11595. _ = l
  11596. if m.Revision != 0 {
  11597. n += 1 + sovRpc(uint64(m.Revision))
  11598. }
  11599. if m.Physical {
  11600. n += 2
  11601. }
  11602. if m.XXX_unrecognized != nil {
  11603. n += len(m.XXX_unrecognized)
  11604. }
  11605. return n
  11606. }
  11607. func (m *CompactionResponse) Size() (n int) {
  11608. if m == nil {
  11609. return 0
  11610. }
  11611. var l int
  11612. _ = l
  11613. if m.Header != nil {
  11614. l = m.Header.Size()
  11615. n += 1 + l + sovRpc(uint64(l))
  11616. }
  11617. if m.XXX_unrecognized != nil {
  11618. n += len(m.XXX_unrecognized)
  11619. }
  11620. return n
  11621. }
  11622. func (m *HashRequest) Size() (n int) {
  11623. if m == nil {
  11624. return 0
  11625. }
  11626. var l int
  11627. _ = l
  11628. if m.XXX_unrecognized != nil {
  11629. n += len(m.XXX_unrecognized)
  11630. }
  11631. return n
  11632. }
  11633. func (m *HashKVRequest) Size() (n int) {
  11634. if m == nil {
  11635. return 0
  11636. }
  11637. var l int
  11638. _ = l
  11639. if m.Revision != 0 {
  11640. n += 1 + sovRpc(uint64(m.Revision))
  11641. }
  11642. if m.XXX_unrecognized != nil {
  11643. n += len(m.XXX_unrecognized)
  11644. }
  11645. return n
  11646. }
  11647. func (m *HashKVResponse) Size() (n int) {
  11648. if m == nil {
  11649. return 0
  11650. }
  11651. var l int
  11652. _ = l
  11653. if m.Header != nil {
  11654. l = m.Header.Size()
  11655. n += 1 + l + sovRpc(uint64(l))
  11656. }
  11657. if m.Hash != 0 {
  11658. n += 1 + sovRpc(uint64(m.Hash))
  11659. }
  11660. if m.CompactRevision != 0 {
  11661. n += 1 + sovRpc(uint64(m.CompactRevision))
  11662. }
  11663. if m.XXX_unrecognized != nil {
  11664. n += len(m.XXX_unrecognized)
  11665. }
  11666. return n
  11667. }
  11668. func (m *HashResponse) Size() (n int) {
  11669. if m == nil {
  11670. return 0
  11671. }
  11672. var l int
  11673. _ = l
  11674. if m.Header != nil {
  11675. l = m.Header.Size()
  11676. n += 1 + l + sovRpc(uint64(l))
  11677. }
  11678. if m.Hash != 0 {
  11679. n += 1 + sovRpc(uint64(m.Hash))
  11680. }
  11681. if m.XXX_unrecognized != nil {
  11682. n += len(m.XXX_unrecognized)
  11683. }
  11684. return n
  11685. }
  11686. func (m *SnapshotRequest) Size() (n int) {
  11687. if m == nil {
  11688. return 0
  11689. }
  11690. var l int
  11691. _ = l
  11692. if m.XXX_unrecognized != nil {
  11693. n += len(m.XXX_unrecognized)
  11694. }
  11695. return n
  11696. }
  11697. func (m *SnapshotResponse) Size() (n int) {
  11698. if m == nil {
  11699. return 0
  11700. }
  11701. var l int
  11702. _ = l
  11703. if m.Header != nil {
  11704. l = m.Header.Size()
  11705. n += 1 + l + sovRpc(uint64(l))
  11706. }
  11707. if m.RemainingBytes != 0 {
  11708. n += 1 + sovRpc(uint64(m.RemainingBytes))
  11709. }
  11710. l = len(m.Blob)
  11711. if l > 0 {
  11712. n += 1 + l + sovRpc(uint64(l))
  11713. }
  11714. if m.XXX_unrecognized != nil {
  11715. n += len(m.XXX_unrecognized)
  11716. }
  11717. return n
  11718. }
  11719. func (m *WatchRequest) Size() (n int) {
  11720. if m == nil {
  11721. return 0
  11722. }
  11723. var l int
  11724. _ = l
  11725. if m.RequestUnion != nil {
  11726. n += m.RequestUnion.Size()
  11727. }
  11728. if m.XXX_unrecognized != nil {
  11729. n += len(m.XXX_unrecognized)
  11730. }
  11731. return n
  11732. }
  11733. func (m *WatchRequest_CreateRequest) Size() (n int) {
  11734. if m == nil {
  11735. return 0
  11736. }
  11737. var l int
  11738. _ = l
  11739. if m.CreateRequest != nil {
  11740. l = m.CreateRequest.Size()
  11741. n += 1 + l + sovRpc(uint64(l))
  11742. }
  11743. return n
  11744. }
  11745. func (m *WatchRequest_CancelRequest) Size() (n int) {
  11746. if m == nil {
  11747. return 0
  11748. }
  11749. var l int
  11750. _ = l
  11751. if m.CancelRequest != nil {
  11752. l = m.CancelRequest.Size()
  11753. n += 1 + l + sovRpc(uint64(l))
  11754. }
  11755. return n
  11756. }
  11757. func (m *WatchRequest_ProgressRequest) Size() (n int) {
  11758. if m == nil {
  11759. return 0
  11760. }
  11761. var l int
  11762. _ = l
  11763. if m.ProgressRequest != nil {
  11764. l = m.ProgressRequest.Size()
  11765. n += 1 + l + sovRpc(uint64(l))
  11766. }
  11767. return n
  11768. }
  11769. func (m *WatchCreateRequest) Size() (n int) {
  11770. if m == nil {
  11771. return 0
  11772. }
  11773. var l int
  11774. _ = l
  11775. l = len(m.Key)
  11776. if l > 0 {
  11777. n += 1 + l + sovRpc(uint64(l))
  11778. }
  11779. l = len(m.RangeEnd)
  11780. if l > 0 {
  11781. n += 1 + l + sovRpc(uint64(l))
  11782. }
  11783. if m.StartRevision != 0 {
  11784. n += 1 + sovRpc(uint64(m.StartRevision))
  11785. }
  11786. if m.ProgressNotify {
  11787. n += 2
  11788. }
  11789. if len(m.Filters) > 0 {
  11790. l = 0
  11791. for _, e := range m.Filters {
  11792. l += sovRpc(uint64(e))
  11793. }
  11794. n += 1 + sovRpc(uint64(l)) + l
  11795. }
  11796. if m.PrevKv {
  11797. n += 2
  11798. }
  11799. if m.WatchId != 0 {
  11800. n += 1 + sovRpc(uint64(m.WatchId))
  11801. }
  11802. if m.Fragment {
  11803. n += 2
  11804. }
  11805. if m.XXX_unrecognized != nil {
  11806. n += len(m.XXX_unrecognized)
  11807. }
  11808. return n
  11809. }
  11810. func (m *WatchCancelRequest) Size() (n int) {
  11811. if m == nil {
  11812. return 0
  11813. }
  11814. var l int
  11815. _ = l
  11816. if m.WatchId != 0 {
  11817. n += 1 + sovRpc(uint64(m.WatchId))
  11818. }
  11819. if m.XXX_unrecognized != nil {
  11820. n += len(m.XXX_unrecognized)
  11821. }
  11822. return n
  11823. }
  11824. func (m *WatchProgressRequest) Size() (n int) {
  11825. if m == nil {
  11826. return 0
  11827. }
  11828. var l int
  11829. _ = l
  11830. if m.XXX_unrecognized != nil {
  11831. n += len(m.XXX_unrecognized)
  11832. }
  11833. return n
  11834. }
  11835. func (m *WatchResponse) Size() (n int) {
  11836. if m == nil {
  11837. return 0
  11838. }
  11839. var l int
  11840. _ = l
  11841. if m.Header != nil {
  11842. l = m.Header.Size()
  11843. n += 1 + l + sovRpc(uint64(l))
  11844. }
  11845. if m.WatchId != 0 {
  11846. n += 1 + sovRpc(uint64(m.WatchId))
  11847. }
  11848. if m.Created {
  11849. n += 2
  11850. }
  11851. if m.Canceled {
  11852. n += 2
  11853. }
  11854. if m.CompactRevision != 0 {
  11855. n += 1 + sovRpc(uint64(m.CompactRevision))
  11856. }
  11857. l = len(m.CancelReason)
  11858. if l > 0 {
  11859. n += 1 + l + sovRpc(uint64(l))
  11860. }
  11861. if m.Fragment {
  11862. n += 2
  11863. }
  11864. if len(m.Events) > 0 {
  11865. for _, e := range m.Events {
  11866. l = e.Size()
  11867. n += 1 + l + sovRpc(uint64(l))
  11868. }
  11869. }
  11870. if m.XXX_unrecognized != nil {
  11871. n += len(m.XXX_unrecognized)
  11872. }
  11873. return n
  11874. }
  11875. func (m *LeaseGrantRequest) Size() (n int) {
  11876. if m == nil {
  11877. return 0
  11878. }
  11879. var l int
  11880. _ = l
  11881. if m.TTL != 0 {
  11882. n += 1 + sovRpc(uint64(m.TTL))
  11883. }
  11884. if m.ID != 0 {
  11885. n += 1 + sovRpc(uint64(m.ID))
  11886. }
  11887. if m.XXX_unrecognized != nil {
  11888. n += len(m.XXX_unrecognized)
  11889. }
  11890. return n
  11891. }
  11892. func (m *LeaseGrantResponse) Size() (n int) {
  11893. if m == nil {
  11894. return 0
  11895. }
  11896. var l int
  11897. _ = l
  11898. if m.Header != nil {
  11899. l = m.Header.Size()
  11900. n += 1 + l + sovRpc(uint64(l))
  11901. }
  11902. if m.ID != 0 {
  11903. n += 1 + sovRpc(uint64(m.ID))
  11904. }
  11905. if m.TTL != 0 {
  11906. n += 1 + sovRpc(uint64(m.TTL))
  11907. }
  11908. l = len(m.Error)
  11909. if l > 0 {
  11910. n += 1 + l + sovRpc(uint64(l))
  11911. }
  11912. if m.XXX_unrecognized != nil {
  11913. n += len(m.XXX_unrecognized)
  11914. }
  11915. return n
  11916. }
  11917. func (m *LeaseRevokeRequest) Size() (n int) {
  11918. if m == nil {
  11919. return 0
  11920. }
  11921. var l int
  11922. _ = l
  11923. if m.ID != 0 {
  11924. n += 1 + sovRpc(uint64(m.ID))
  11925. }
  11926. if m.XXX_unrecognized != nil {
  11927. n += len(m.XXX_unrecognized)
  11928. }
  11929. return n
  11930. }
  11931. func (m *LeaseRevokeResponse) Size() (n int) {
  11932. if m == nil {
  11933. return 0
  11934. }
  11935. var l int
  11936. _ = l
  11937. if m.Header != nil {
  11938. l = m.Header.Size()
  11939. n += 1 + l + sovRpc(uint64(l))
  11940. }
  11941. if m.XXX_unrecognized != nil {
  11942. n += len(m.XXX_unrecognized)
  11943. }
  11944. return n
  11945. }
  11946. func (m *LeaseKeepAliveRequest) Size() (n int) {
  11947. if m == nil {
  11948. return 0
  11949. }
  11950. var l int
  11951. _ = l
  11952. if m.ID != 0 {
  11953. n += 1 + sovRpc(uint64(m.ID))
  11954. }
  11955. if m.XXX_unrecognized != nil {
  11956. n += len(m.XXX_unrecognized)
  11957. }
  11958. return n
  11959. }
  11960. func (m *LeaseKeepAliveResponse) Size() (n int) {
  11961. if m == nil {
  11962. return 0
  11963. }
  11964. var l int
  11965. _ = l
  11966. if m.Header != nil {
  11967. l = m.Header.Size()
  11968. n += 1 + l + sovRpc(uint64(l))
  11969. }
  11970. if m.ID != 0 {
  11971. n += 1 + sovRpc(uint64(m.ID))
  11972. }
  11973. if m.TTL != 0 {
  11974. n += 1 + sovRpc(uint64(m.TTL))
  11975. }
  11976. if m.XXX_unrecognized != nil {
  11977. n += len(m.XXX_unrecognized)
  11978. }
  11979. return n
  11980. }
  11981. func (m *LeaseTimeToLiveRequest) Size() (n int) {
  11982. if m == nil {
  11983. return 0
  11984. }
  11985. var l int
  11986. _ = l
  11987. if m.ID != 0 {
  11988. n += 1 + sovRpc(uint64(m.ID))
  11989. }
  11990. if m.Keys {
  11991. n += 2
  11992. }
  11993. if m.XXX_unrecognized != nil {
  11994. n += len(m.XXX_unrecognized)
  11995. }
  11996. return n
  11997. }
  11998. func (m *LeaseTimeToLiveResponse) Size() (n int) {
  11999. if m == nil {
  12000. return 0
  12001. }
  12002. var l int
  12003. _ = l
  12004. if m.Header != nil {
  12005. l = m.Header.Size()
  12006. n += 1 + l + sovRpc(uint64(l))
  12007. }
  12008. if m.ID != 0 {
  12009. n += 1 + sovRpc(uint64(m.ID))
  12010. }
  12011. if m.TTL != 0 {
  12012. n += 1 + sovRpc(uint64(m.TTL))
  12013. }
  12014. if m.GrantedTTL != 0 {
  12015. n += 1 + sovRpc(uint64(m.GrantedTTL))
  12016. }
  12017. if len(m.Keys) > 0 {
  12018. for _, b := range m.Keys {
  12019. l = len(b)
  12020. n += 1 + l + sovRpc(uint64(l))
  12021. }
  12022. }
  12023. if m.XXX_unrecognized != nil {
  12024. n += len(m.XXX_unrecognized)
  12025. }
  12026. return n
  12027. }
  12028. func (m *LeaseLeasesRequest) Size() (n int) {
  12029. if m == nil {
  12030. return 0
  12031. }
  12032. var l int
  12033. _ = l
  12034. if m.XXX_unrecognized != nil {
  12035. n += len(m.XXX_unrecognized)
  12036. }
  12037. return n
  12038. }
  12039. func (m *LeaseStatus) Size() (n int) {
  12040. if m == nil {
  12041. return 0
  12042. }
  12043. var l int
  12044. _ = l
  12045. if m.ID != 0 {
  12046. n += 1 + sovRpc(uint64(m.ID))
  12047. }
  12048. if m.XXX_unrecognized != nil {
  12049. n += len(m.XXX_unrecognized)
  12050. }
  12051. return n
  12052. }
  12053. func (m *LeaseLeasesResponse) Size() (n int) {
  12054. if m == nil {
  12055. return 0
  12056. }
  12057. var l int
  12058. _ = l
  12059. if m.Header != nil {
  12060. l = m.Header.Size()
  12061. n += 1 + l + sovRpc(uint64(l))
  12062. }
  12063. if len(m.Leases) > 0 {
  12064. for _, e := range m.Leases {
  12065. l = e.Size()
  12066. n += 1 + l + sovRpc(uint64(l))
  12067. }
  12068. }
  12069. if m.XXX_unrecognized != nil {
  12070. n += len(m.XXX_unrecognized)
  12071. }
  12072. return n
  12073. }
  12074. func (m *Member) Size() (n int) {
  12075. if m == nil {
  12076. return 0
  12077. }
  12078. var l int
  12079. _ = l
  12080. if m.ID != 0 {
  12081. n += 1 + sovRpc(uint64(m.ID))
  12082. }
  12083. l = len(m.Name)
  12084. if l > 0 {
  12085. n += 1 + l + sovRpc(uint64(l))
  12086. }
  12087. if len(m.PeerURLs) > 0 {
  12088. for _, s := range m.PeerURLs {
  12089. l = len(s)
  12090. n += 1 + l + sovRpc(uint64(l))
  12091. }
  12092. }
  12093. if len(m.ClientURLs) > 0 {
  12094. for _, s := range m.ClientURLs {
  12095. l = len(s)
  12096. n += 1 + l + sovRpc(uint64(l))
  12097. }
  12098. }
  12099. if m.XXX_unrecognized != nil {
  12100. n += len(m.XXX_unrecognized)
  12101. }
  12102. return n
  12103. }
  12104. func (m *MemberAddRequest) Size() (n int) {
  12105. if m == nil {
  12106. return 0
  12107. }
  12108. var l int
  12109. _ = l
  12110. if len(m.PeerURLs) > 0 {
  12111. for _, s := range m.PeerURLs {
  12112. l = len(s)
  12113. n += 1 + l + sovRpc(uint64(l))
  12114. }
  12115. }
  12116. if m.XXX_unrecognized != nil {
  12117. n += len(m.XXX_unrecognized)
  12118. }
  12119. return n
  12120. }
  12121. func (m *MemberAddResponse) Size() (n int) {
  12122. if m == nil {
  12123. return 0
  12124. }
  12125. var l int
  12126. _ = l
  12127. if m.Header != nil {
  12128. l = m.Header.Size()
  12129. n += 1 + l + sovRpc(uint64(l))
  12130. }
  12131. if m.Member != nil {
  12132. l = m.Member.Size()
  12133. n += 1 + l + sovRpc(uint64(l))
  12134. }
  12135. if len(m.Members) > 0 {
  12136. for _, e := range m.Members {
  12137. l = e.Size()
  12138. n += 1 + l + sovRpc(uint64(l))
  12139. }
  12140. }
  12141. if m.XXX_unrecognized != nil {
  12142. n += len(m.XXX_unrecognized)
  12143. }
  12144. return n
  12145. }
  12146. func (m *MemberRemoveRequest) Size() (n int) {
  12147. if m == nil {
  12148. return 0
  12149. }
  12150. var l int
  12151. _ = l
  12152. if m.ID != 0 {
  12153. n += 1 + sovRpc(uint64(m.ID))
  12154. }
  12155. if m.XXX_unrecognized != nil {
  12156. n += len(m.XXX_unrecognized)
  12157. }
  12158. return n
  12159. }
  12160. func (m *MemberRemoveResponse) Size() (n int) {
  12161. if m == nil {
  12162. return 0
  12163. }
  12164. var l int
  12165. _ = l
  12166. if m.Header != nil {
  12167. l = m.Header.Size()
  12168. n += 1 + l + sovRpc(uint64(l))
  12169. }
  12170. if len(m.Members) > 0 {
  12171. for _, e := range m.Members {
  12172. l = e.Size()
  12173. n += 1 + l + sovRpc(uint64(l))
  12174. }
  12175. }
  12176. if m.XXX_unrecognized != nil {
  12177. n += len(m.XXX_unrecognized)
  12178. }
  12179. return n
  12180. }
  12181. func (m *MemberUpdateRequest) Size() (n int) {
  12182. if m == nil {
  12183. return 0
  12184. }
  12185. var l int
  12186. _ = l
  12187. if m.ID != 0 {
  12188. n += 1 + sovRpc(uint64(m.ID))
  12189. }
  12190. if len(m.PeerURLs) > 0 {
  12191. for _, s := range m.PeerURLs {
  12192. l = len(s)
  12193. n += 1 + l + sovRpc(uint64(l))
  12194. }
  12195. }
  12196. if m.XXX_unrecognized != nil {
  12197. n += len(m.XXX_unrecognized)
  12198. }
  12199. return n
  12200. }
  12201. func (m *MemberUpdateResponse) Size() (n int) {
  12202. if m == nil {
  12203. return 0
  12204. }
  12205. var l int
  12206. _ = l
  12207. if m.Header != nil {
  12208. l = m.Header.Size()
  12209. n += 1 + l + sovRpc(uint64(l))
  12210. }
  12211. if len(m.Members) > 0 {
  12212. for _, e := range m.Members {
  12213. l = e.Size()
  12214. n += 1 + l + sovRpc(uint64(l))
  12215. }
  12216. }
  12217. if m.XXX_unrecognized != nil {
  12218. n += len(m.XXX_unrecognized)
  12219. }
  12220. return n
  12221. }
  12222. func (m *MemberListRequest) Size() (n int) {
  12223. if m == nil {
  12224. return 0
  12225. }
  12226. var l int
  12227. _ = l
  12228. if m.XXX_unrecognized != nil {
  12229. n += len(m.XXX_unrecognized)
  12230. }
  12231. return n
  12232. }
  12233. func (m *MemberListResponse) Size() (n int) {
  12234. if m == nil {
  12235. return 0
  12236. }
  12237. var l int
  12238. _ = l
  12239. if m.Header != nil {
  12240. l = m.Header.Size()
  12241. n += 1 + l + sovRpc(uint64(l))
  12242. }
  12243. if len(m.Members) > 0 {
  12244. for _, e := range m.Members {
  12245. l = e.Size()
  12246. n += 1 + l + sovRpc(uint64(l))
  12247. }
  12248. }
  12249. if m.XXX_unrecognized != nil {
  12250. n += len(m.XXX_unrecognized)
  12251. }
  12252. return n
  12253. }
  12254. func (m *DefragmentRequest) Size() (n int) {
  12255. if m == nil {
  12256. return 0
  12257. }
  12258. var l int
  12259. _ = l
  12260. if m.XXX_unrecognized != nil {
  12261. n += len(m.XXX_unrecognized)
  12262. }
  12263. return n
  12264. }
  12265. func (m *DefragmentResponse) Size() (n int) {
  12266. if m == nil {
  12267. return 0
  12268. }
  12269. var l int
  12270. _ = l
  12271. if m.Header != nil {
  12272. l = m.Header.Size()
  12273. n += 1 + l + sovRpc(uint64(l))
  12274. }
  12275. if m.XXX_unrecognized != nil {
  12276. n += len(m.XXX_unrecognized)
  12277. }
  12278. return n
  12279. }
  12280. func (m *MoveLeaderRequest) Size() (n int) {
  12281. if m == nil {
  12282. return 0
  12283. }
  12284. var l int
  12285. _ = l
  12286. if m.TargetID != 0 {
  12287. n += 1 + sovRpc(uint64(m.TargetID))
  12288. }
  12289. if m.XXX_unrecognized != nil {
  12290. n += len(m.XXX_unrecognized)
  12291. }
  12292. return n
  12293. }
  12294. func (m *MoveLeaderResponse) Size() (n int) {
  12295. if m == nil {
  12296. return 0
  12297. }
  12298. var l int
  12299. _ = l
  12300. if m.Header != nil {
  12301. l = m.Header.Size()
  12302. n += 1 + l + sovRpc(uint64(l))
  12303. }
  12304. if m.XXX_unrecognized != nil {
  12305. n += len(m.XXX_unrecognized)
  12306. }
  12307. return n
  12308. }
  12309. func (m *AlarmRequest) Size() (n int) {
  12310. if m == nil {
  12311. return 0
  12312. }
  12313. var l int
  12314. _ = l
  12315. if m.Action != 0 {
  12316. n += 1 + sovRpc(uint64(m.Action))
  12317. }
  12318. if m.MemberID != 0 {
  12319. n += 1 + sovRpc(uint64(m.MemberID))
  12320. }
  12321. if m.Alarm != 0 {
  12322. n += 1 + sovRpc(uint64(m.Alarm))
  12323. }
  12324. if m.XXX_unrecognized != nil {
  12325. n += len(m.XXX_unrecognized)
  12326. }
  12327. return n
  12328. }
  12329. func (m *AlarmMember) Size() (n int) {
  12330. if m == nil {
  12331. return 0
  12332. }
  12333. var l int
  12334. _ = l
  12335. if m.MemberID != 0 {
  12336. n += 1 + sovRpc(uint64(m.MemberID))
  12337. }
  12338. if m.Alarm != 0 {
  12339. n += 1 + sovRpc(uint64(m.Alarm))
  12340. }
  12341. if m.XXX_unrecognized != nil {
  12342. n += len(m.XXX_unrecognized)
  12343. }
  12344. return n
  12345. }
  12346. func (m *AlarmResponse) Size() (n int) {
  12347. if m == nil {
  12348. return 0
  12349. }
  12350. var l int
  12351. _ = l
  12352. if m.Header != nil {
  12353. l = m.Header.Size()
  12354. n += 1 + l + sovRpc(uint64(l))
  12355. }
  12356. if len(m.Alarms) > 0 {
  12357. for _, e := range m.Alarms {
  12358. l = e.Size()
  12359. n += 1 + l + sovRpc(uint64(l))
  12360. }
  12361. }
  12362. if m.XXX_unrecognized != nil {
  12363. n += len(m.XXX_unrecognized)
  12364. }
  12365. return n
  12366. }
  12367. func (m *StatusRequest) Size() (n int) {
  12368. if m == nil {
  12369. return 0
  12370. }
  12371. var l int
  12372. _ = l
  12373. if m.XXX_unrecognized != nil {
  12374. n += len(m.XXX_unrecognized)
  12375. }
  12376. return n
  12377. }
  12378. func (m *StatusResponse) Size() (n int) {
  12379. if m == nil {
  12380. return 0
  12381. }
  12382. var l int
  12383. _ = l
  12384. if m.Header != nil {
  12385. l = m.Header.Size()
  12386. n += 1 + l + sovRpc(uint64(l))
  12387. }
  12388. l = len(m.Version)
  12389. if l > 0 {
  12390. n += 1 + l + sovRpc(uint64(l))
  12391. }
  12392. if m.DbSize != 0 {
  12393. n += 1 + sovRpc(uint64(m.DbSize))
  12394. }
  12395. if m.Leader != 0 {
  12396. n += 1 + sovRpc(uint64(m.Leader))
  12397. }
  12398. if m.RaftIndex != 0 {
  12399. n += 1 + sovRpc(uint64(m.RaftIndex))
  12400. }
  12401. if m.RaftTerm != 0 {
  12402. n += 1 + sovRpc(uint64(m.RaftTerm))
  12403. }
  12404. if m.XXX_unrecognized != nil {
  12405. n += len(m.XXX_unrecognized)
  12406. }
  12407. return n
  12408. }
  12409. func (m *AuthEnableRequest) Size() (n int) {
  12410. if m == nil {
  12411. return 0
  12412. }
  12413. var l int
  12414. _ = l
  12415. if m.XXX_unrecognized != nil {
  12416. n += len(m.XXX_unrecognized)
  12417. }
  12418. return n
  12419. }
  12420. func (m *AuthDisableRequest) Size() (n int) {
  12421. if m == nil {
  12422. return 0
  12423. }
  12424. var l int
  12425. _ = l
  12426. if m.XXX_unrecognized != nil {
  12427. n += len(m.XXX_unrecognized)
  12428. }
  12429. return n
  12430. }
  12431. func (m *AuthenticateRequest) Size() (n int) {
  12432. if m == nil {
  12433. return 0
  12434. }
  12435. var l int
  12436. _ = l
  12437. l = len(m.Name)
  12438. if l > 0 {
  12439. n += 1 + l + sovRpc(uint64(l))
  12440. }
  12441. l = len(m.Password)
  12442. if l > 0 {
  12443. n += 1 + l + sovRpc(uint64(l))
  12444. }
  12445. if m.XXX_unrecognized != nil {
  12446. n += len(m.XXX_unrecognized)
  12447. }
  12448. return n
  12449. }
  12450. func (m *AuthUserAddRequest) Size() (n int) {
  12451. if m == nil {
  12452. return 0
  12453. }
  12454. var l int
  12455. _ = l
  12456. l = len(m.Name)
  12457. if l > 0 {
  12458. n += 1 + l + sovRpc(uint64(l))
  12459. }
  12460. l = len(m.Password)
  12461. if l > 0 {
  12462. n += 1 + l + sovRpc(uint64(l))
  12463. }
  12464. if m.XXX_unrecognized != nil {
  12465. n += len(m.XXX_unrecognized)
  12466. }
  12467. return n
  12468. }
  12469. func (m *AuthUserGetRequest) Size() (n int) {
  12470. if m == nil {
  12471. return 0
  12472. }
  12473. var l int
  12474. _ = l
  12475. l = len(m.Name)
  12476. if l > 0 {
  12477. n += 1 + l + sovRpc(uint64(l))
  12478. }
  12479. if m.XXX_unrecognized != nil {
  12480. n += len(m.XXX_unrecognized)
  12481. }
  12482. return n
  12483. }
  12484. func (m *AuthUserDeleteRequest) Size() (n int) {
  12485. if m == nil {
  12486. return 0
  12487. }
  12488. var l int
  12489. _ = l
  12490. l = len(m.Name)
  12491. if l > 0 {
  12492. n += 1 + l + sovRpc(uint64(l))
  12493. }
  12494. if m.XXX_unrecognized != nil {
  12495. n += len(m.XXX_unrecognized)
  12496. }
  12497. return n
  12498. }
  12499. func (m *AuthUserChangePasswordRequest) Size() (n int) {
  12500. if m == nil {
  12501. return 0
  12502. }
  12503. var l int
  12504. _ = l
  12505. l = len(m.Name)
  12506. if l > 0 {
  12507. n += 1 + l + sovRpc(uint64(l))
  12508. }
  12509. l = len(m.Password)
  12510. if l > 0 {
  12511. n += 1 + l + sovRpc(uint64(l))
  12512. }
  12513. if m.XXX_unrecognized != nil {
  12514. n += len(m.XXX_unrecognized)
  12515. }
  12516. return n
  12517. }
  12518. func (m *AuthUserGrantRoleRequest) Size() (n int) {
  12519. if m == nil {
  12520. return 0
  12521. }
  12522. var l int
  12523. _ = l
  12524. l = len(m.User)
  12525. if l > 0 {
  12526. n += 1 + l + sovRpc(uint64(l))
  12527. }
  12528. l = len(m.Role)
  12529. if l > 0 {
  12530. n += 1 + l + sovRpc(uint64(l))
  12531. }
  12532. if m.XXX_unrecognized != nil {
  12533. n += len(m.XXX_unrecognized)
  12534. }
  12535. return n
  12536. }
  12537. func (m *AuthUserRevokeRoleRequest) Size() (n int) {
  12538. if m == nil {
  12539. return 0
  12540. }
  12541. var l int
  12542. _ = l
  12543. l = len(m.Name)
  12544. if l > 0 {
  12545. n += 1 + l + sovRpc(uint64(l))
  12546. }
  12547. l = len(m.Role)
  12548. if l > 0 {
  12549. n += 1 + l + sovRpc(uint64(l))
  12550. }
  12551. if m.XXX_unrecognized != nil {
  12552. n += len(m.XXX_unrecognized)
  12553. }
  12554. return n
  12555. }
  12556. func (m *AuthRoleAddRequest) Size() (n int) {
  12557. if m == nil {
  12558. return 0
  12559. }
  12560. var l int
  12561. _ = l
  12562. l = len(m.Name)
  12563. if l > 0 {
  12564. n += 1 + l + sovRpc(uint64(l))
  12565. }
  12566. if m.XXX_unrecognized != nil {
  12567. n += len(m.XXX_unrecognized)
  12568. }
  12569. return n
  12570. }
  12571. func (m *AuthRoleGetRequest) Size() (n int) {
  12572. if m == nil {
  12573. return 0
  12574. }
  12575. var l int
  12576. _ = l
  12577. l = len(m.Role)
  12578. if l > 0 {
  12579. n += 1 + l + sovRpc(uint64(l))
  12580. }
  12581. if m.XXX_unrecognized != nil {
  12582. n += len(m.XXX_unrecognized)
  12583. }
  12584. return n
  12585. }
  12586. func (m *AuthUserListRequest) Size() (n int) {
  12587. if m == nil {
  12588. return 0
  12589. }
  12590. var l int
  12591. _ = l
  12592. if m.XXX_unrecognized != nil {
  12593. n += len(m.XXX_unrecognized)
  12594. }
  12595. return n
  12596. }
  12597. func (m *AuthRoleListRequest) Size() (n int) {
  12598. if m == nil {
  12599. return 0
  12600. }
  12601. var l int
  12602. _ = l
  12603. if m.XXX_unrecognized != nil {
  12604. n += len(m.XXX_unrecognized)
  12605. }
  12606. return n
  12607. }
  12608. func (m *AuthRoleDeleteRequest) Size() (n int) {
  12609. if m == nil {
  12610. return 0
  12611. }
  12612. var l int
  12613. _ = l
  12614. l = len(m.Role)
  12615. if l > 0 {
  12616. n += 1 + l + sovRpc(uint64(l))
  12617. }
  12618. if m.XXX_unrecognized != nil {
  12619. n += len(m.XXX_unrecognized)
  12620. }
  12621. return n
  12622. }
  12623. func (m *AuthRoleGrantPermissionRequest) Size() (n int) {
  12624. if m == nil {
  12625. return 0
  12626. }
  12627. var l int
  12628. _ = l
  12629. l = len(m.Name)
  12630. if l > 0 {
  12631. n += 1 + l + sovRpc(uint64(l))
  12632. }
  12633. if m.Perm != nil {
  12634. l = m.Perm.Size()
  12635. n += 1 + l + sovRpc(uint64(l))
  12636. }
  12637. if m.XXX_unrecognized != nil {
  12638. n += len(m.XXX_unrecognized)
  12639. }
  12640. return n
  12641. }
  12642. func (m *AuthRoleRevokePermissionRequest) Size() (n int) {
  12643. if m == nil {
  12644. return 0
  12645. }
  12646. var l int
  12647. _ = l
  12648. l = len(m.Role)
  12649. if l > 0 {
  12650. n += 1 + l + sovRpc(uint64(l))
  12651. }
  12652. l = len(m.Key)
  12653. if l > 0 {
  12654. n += 1 + l + sovRpc(uint64(l))
  12655. }
  12656. l = len(m.RangeEnd)
  12657. if l > 0 {
  12658. n += 1 + l + sovRpc(uint64(l))
  12659. }
  12660. if m.XXX_unrecognized != nil {
  12661. n += len(m.XXX_unrecognized)
  12662. }
  12663. return n
  12664. }
  12665. func (m *AuthEnableResponse) Size() (n int) {
  12666. if m == nil {
  12667. return 0
  12668. }
  12669. var l int
  12670. _ = l
  12671. if m.Header != nil {
  12672. l = m.Header.Size()
  12673. n += 1 + l + sovRpc(uint64(l))
  12674. }
  12675. if m.XXX_unrecognized != nil {
  12676. n += len(m.XXX_unrecognized)
  12677. }
  12678. return n
  12679. }
  12680. func (m *AuthDisableResponse) Size() (n int) {
  12681. if m == nil {
  12682. return 0
  12683. }
  12684. var l int
  12685. _ = l
  12686. if m.Header != nil {
  12687. l = m.Header.Size()
  12688. n += 1 + l + sovRpc(uint64(l))
  12689. }
  12690. if m.XXX_unrecognized != nil {
  12691. n += len(m.XXX_unrecognized)
  12692. }
  12693. return n
  12694. }
  12695. func (m *AuthenticateResponse) Size() (n int) {
  12696. if m == nil {
  12697. return 0
  12698. }
  12699. var l int
  12700. _ = l
  12701. if m.Header != nil {
  12702. l = m.Header.Size()
  12703. n += 1 + l + sovRpc(uint64(l))
  12704. }
  12705. l = len(m.Token)
  12706. if l > 0 {
  12707. n += 1 + l + sovRpc(uint64(l))
  12708. }
  12709. if m.XXX_unrecognized != nil {
  12710. n += len(m.XXX_unrecognized)
  12711. }
  12712. return n
  12713. }
  12714. func (m *AuthUserAddResponse) Size() (n int) {
  12715. if m == nil {
  12716. return 0
  12717. }
  12718. var l int
  12719. _ = l
  12720. if m.Header != nil {
  12721. l = m.Header.Size()
  12722. n += 1 + l + sovRpc(uint64(l))
  12723. }
  12724. if m.XXX_unrecognized != nil {
  12725. n += len(m.XXX_unrecognized)
  12726. }
  12727. return n
  12728. }
  12729. func (m *AuthUserGetResponse) Size() (n int) {
  12730. if m == nil {
  12731. return 0
  12732. }
  12733. var l int
  12734. _ = l
  12735. if m.Header != nil {
  12736. l = m.Header.Size()
  12737. n += 1 + l + sovRpc(uint64(l))
  12738. }
  12739. if len(m.Roles) > 0 {
  12740. for _, s := range m.Roles {
  12741. l = len(s)
  12742. n += 1 + l + sovRpc(uint64(l))
  12743. }
  12744. }
  12745. if m.XXX_unrecognized != nil {
  12746. n += len(m.XXX_unrecognized)
  12747. }
  12748. return n
  12749. }
  12750. func (m *AuthUserDeleteResponse) Size() (n int) {
  12751. if m == nil {
  12752. return 0
  12753. }
  12754. var l int
  12755. _ = l
  12756. if m.Header != nil {
  12757. l = m.Header.Size()
  12758. n += 1 + l + sovRpc(uint64(l))
  12759. }
  12760. if m.XXX_unrecognized != nil {
  12761. n += len(m.XXX_unrecognized)
  12762. }
  12763. return n
  12764. }
  12765. func (m *AuthUserChangePasswordResponse) Size() (n int) {
  12766. if m == nil {
  12767. return 0
  12768. }
  12769. var l int
  12770. _ = l
  12771. if m.Header != nil {
  12772. l = m.Header.Size()
  12773. n += 1 + l + sovRpc(uint64(l))
  12774. }
  12775. if m.XXX_unrecognized != nil {
  12776. n += len(m.XXX_unrecognized)
  12777. }
  12778. return n
  12779. }
  12780. func (m *AuthUserGrantRoleResponse) Size() (n int) {
  12781. if m == nil {
  12782. return 0
  12783. }
  12784. var l int
  12785. _ = l
  12786. if m.Header != nil {
  12787. l = m.Header.Size()
  12788. n += 1 + l + sovRpc(uint64(l))
  12789. }
  12790. if m.XXX_unrecognized != nil {
  12791. n += len(m.XXX_unrecognized)
  12792. }
  12793. return n
  12794. }
  12795. func (m *AuthUserRevokeRoleResponse) Size() (n int) {
  12796. if m == nil {
  12797. return 0
  12798. }
  12799. var l int
  12800. _ = l
  12801. if m.Header != nil {
  12802. l = m.Header.Size()
  12803. n += 1 + l + sovRpc(uint64(l))
  12804. }
  12805. if m.XXX_unrecognized != nil {
  12806. n += len(m.XXX_unrecognized)
  12807. }
  12808. return n
  12809. }
  12810. func (m *AuthRoleAddResponse) Size() (n int) {
  12811. if m == nil {
  12812. return 0
  12813. }
  12814. var l int
  12815. _ = l
  12816. if m.Header != nil {
  12817. l = m.Header.Size()
  12818. n += 1 + l + sovRpc(uint64(l))
  12819. }
  12820. if m.XXX_unrecognized != nil {
  12821. n += len(m.XXX_unrecognized)
  12822. }
  12823. return n
  12824. }
  12825. func (m *AuthRoleGetResponse) Size() (n int) {
  12826. if m == nil {
  12827. return 0
  12828. }
  12829. var l int
  12830. _ = l
  12831. if m.Header != nil {
  12832. l = m.Header.Size()
  12833. n += 1 + l + sovRpc(uint64(l))
  12834. }
  12835. if len(m.Perm) > 0 {
  12836. for _, e := range m.Perm {
  12837. l = e.Size()
  12838. n += 1 + l + sovRpc(uint64(l))
  12839. }
  12840. }
  12841. if m.XXX_unrecognized != nil {
  12842. n += len(m.XXX_unrecognized)
  12843. }
  12844. return n
  12845. }
  12846. func (m *AuthRoleListResponse) Size() (n int) {
  12847. if m == nil {
  12848. return 0
  12849. }
  12850. var l int
  12851. _ = l
  12852. if m.Header != nil {
  12853. l = m.Header.Size()
  12854. n += 1 + l + sovRpc(uint64(l))
  12855. }
  12856. if len(m.Roles) > 0 {
  12857. for _, s := range m.Roles {
  12858. l = len(s)
  12859. n += 1 + l + sovRpc(uint64(l))
  12860. }
  12861. }
  12862. if m.XXX_unrecognized != nil {
  12863. n += len(m.XXX_unrecognized)
  12864. }
  12865. return n
  12866. }
  12867. func (m *AuthUserListResponse) Size() (n int) {
  12868. if m == nil {
  12869. return 0
  12870. }
  12871. var l int
  12872. _ = l
  12873. if m.Header != nil {
  12874. l = m.Header.Size()
  12875. n += 1 + l + sovRpc(uint64(l))
  12876. }
  12877. if len(m.Users) > 0 {
  12878. for _, s := range m.Users {
  12879. l = len(s)
  12880. n += 1 + l + sovRpc(uint64(l))
  12881. }
  12882. }
  12883. if m.XXX_unrecognized != nil {
  12884. n += len(m.XXX_unrecognized)
  12885. }
  12886. return n
  12887. }
  12888. func (m *AuthRoleDeleteResponse) Size() (n int) {
  12889. if m == nil {
  12890. return 0
  12891. }
  12892. var l int
  12893. _ = l
  12894. if m.Header != nil {
  12895. l = m.Header.Size()
  12896. n += 1 + l + sovRpc(uint64(l))
  12897. }
  12898. if m.XXX_unrecognized != nil {
  12899. n += len(m.XXX_unrecognized)
  12900. }
  12901. return n
  12902. }
  12903. func (m *AuthRoleGrantPermissionResponse) Size() (n int) {
  12904. if m == nil {
  12905. return 0
  12906. }
  12907. var l int
  12908. _ = l
  12909. if m.Header != nil {
  12910. l = m.Header.Size()
  12911. n += 1 + l + sovRpc(uint64(l))
  12912. }
  12913. if m.XXX_unrecognized != nil {
  12914. n += len(m.XXX_unrecognized)
  12915. }
  12916. return n
  12917. }
  12918. func (m *AuthRoleRevokePermissionResponse) Size() (n int) {
  12919. if m == nil {
  12920. return 0
  12921. }
  12922. var l int
  12923. _ = l
  12924. if m.Header != nil {
  12925. l = m.Header.Size()
  12926. n += 1 + l + sovRpc(uint64(l))
  12927. }
  12928. if m.XXX_unrecognized != nil {
  12929. n += len(m.XXX_unrecognized)
  12930. }
  12931. return n
  12932. }
  12933. func sovRpc(x uint64) (n int) {
  12934. return (math_bits.Len64(x|1) + 6) / 7
  12935. }
  12936. func sozRpc(x uint64) (n int) {
  12937. return sovRpc(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  12938. }
  12939. func (m *ResponseHeader) Unmarshal(dAtA []byte) error {
  12940. l := len(dAtA)
  12941. iNdEx := 0
  12942. for iNdEx < l {
  12943. preIndex := iNdEx
  12944. var wire uint64
  12945. for shift := uint(0); ; shift += 7 {
  12946. if shift >= 64 {
  12947. return ErrIntOverflowRpc
  12948. }
  12949. if iNdEx >= l {
  12950. return io.ErrUnexpectedEOF
  12951. }
  12952. b := dAtA[iNdEx]
  12953. iNdEx++
  12954. wire |= uint64(b&0x7F) << shift
  12955. if b < 0x80 {
  12956. break
  12957. }
  12958. }
  12959. fieldNum := int32(wire >> 3)
  12960. wireType := int(wire & 0x7)
  12961. if wireType == 4 {
  12962. return fmt.Errorf("proto: ResponseHeader: wiretype end group for non-group")
  12963. }
  12964. if fieldNum <= 0 {
  12965. return fmt.Errorf("proto: ResponseHeader: illegal tag %d (wire type %d)", fieldNum, wire)
  12966. }
  12967. switch fieldNum {
  12968. case 1:
  12969. if wireType != 0 {
  12970. return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType)
  12971. }
  12972. m.ClusterId = 0
  12973. for shift := uint(0); ; shift += 7 {
  12974. if shift >= 64 {
  12975. return ErrIntOverflowRpc
  12976. }
  12977. if iNdEx >= l {
  12978. return io.ErrUnexpectedEOF
  12979. }
  12980. b := dAtA[iNdEx]
  12981. iNdEx++
  12982. m.ClusterId |= uint64(b&0x7F) << shift
  12983. if b < 0x80 {
  12984. break
  12985. }
  12986. }
  12987. case 2:
  12988. if wireType != 0 {
  12989. return fmt.Errorf("proto: wrong wireType = %d for field MemberId", wireType)
  12990. }
  12991. m.MemberId = 0
  12992. for shift := uint(0); ; shift += 7 {
  12993. if shift >= 64 {
  12994. return ErrIntOverflowRpc
  12995. }
  12996. if iNdEx >= l {
  12997. return io.ErrUnexpectedEOF
  12998. }
  12999. b := dAtA[iNdEx]
  13000. iNdEx++
  13001. m.MemberId |= uint64(b&0x7F) << shift
  13002. if b < 0x80 {
  13003. break
  13004. }
  13005. }
  13006. case 3:
  13007. if wireType != 0 {
  13008. return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType)
  13009. }
  13010. m.Revision = 0
  13011. for shift := uint(0); ; shift += 7 {
  13012. if shift >= 64 {
  13013. return ErrIntOverflowRpc
  13014. }
  13015. if iNdEx >= l {
  13016. return io.ErrUnexpectedEOF
  13017. }
  13018. b := dAtA[iNdEx]
  13019. iNdEx++
  13020. m.Revision |= int64(b&0x7F) << shift
  13021. if b < 0x80 {
  13022. break
  13023. }
  13024. }
  13025. case 4:
  13026. if wireType != 0 {
  13027. return fmt.Errorf("proto: wrong wireType = %d for field RaftTerm", wireType)
  13028. }
  13029. m.RaftTerm = 0
  13030. for shift := uint(0); ; shift += 7 {
  13031. if shift >= 64 {
  13032. return ErrIntOverflowRpc
  13033. }
  13034. if iNdEx >= l {
  13035. return io.ErrUnexpectedEOF
  13036. }
  13037. b := dAtA[iNdEx]
  13038. iNdEx++
  13039. m.RaftTerm |= uint64(b&0x7F) << shift
  13040. if b < 0x80 {
  13041. break
  13042. }
  13043. }
  13044. default:
  13045. iNdEx = preIndex
  13046. skippy, err := skipRpc(dAtA[iNdEx:])
  13047. if err != nil {
  13048. return err
  13049. }
  13050. if skippy < 0 {
  13051. return ErrInvalidLengthRpc
  13052. }
  13053. if (iNdEx + skippy) < 0 {
  13054. return ErrInvalidLengthRpc
  13055. }
  13056. if (iNdEx + skippy) > l {
  13057. return io.ErrUnexpectedEOF
  13058. }
  13059. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13060. iNdEx += skippy
  13061. }
  13062. }
  13063. if iNdEx > l {
  13064. return io.ErrUnexpectedEOF
  13065. }
  13066. return nil
  13067. }
  13068. func (m *RangeRequest) Unmarshal(dAtA []byte) error {
  13069. l := len(dAtA)
  13070. iNdEx := 0
  13071. for iNdEx < l {
  13072. preIndex := iNdEx
  13073. var wire uint64
  13074. for shift := uint(0); ; shift += 7 {
  13075. if shift >= 64 {
  13076. return ErrIntOverflowRpc
  13077. }
  13078. if iNdEx >= l {
  13079. return io.ErrUnexpectedEOF
  13080. }
  13081. b := dAtA[iNdEx]
  13082. iNdEx++
  13083. wire |= uint64(b&0x7F) << shift
  13084. if b < 0x80 {
  13085. break
  13086. }
  13087. }
  13088. fieldNum := int32(wire >> 3)
  13089. wireType := int(wire & 0x7)
  13090. if wireType == 4 {
  13091. return fmt.Errorf("proto: RangeRequest: wiretype end group for non-group")
  13092. }
  13093. if fieldNum <= 0 {
  13094. return fmt.Errorf("proto: RangeRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  13095. }
  13096. switch fieldNum {
  13097. case 1:
  13098. if wireType != 2 {
  13099. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  13100. }
  13101. var byteLen int
  13102. for shift := uint(0); ; shift += 7 {
  13103. if shift >= 64 {
  13104. return ErrIntOverflowRpc
  13105. }
  13106. if iNdEx >= l {
  13107. return io.ErrUnexpectedEOF
  13108. }
  13109. b := dAtA[iNdEx]
  13110. iNdEx++
  13111. byteLen |= int(b&0x7F) << shift
  13112. if b < 0x80 {
  13113. break
  13114. }
  13115. }
  13116. if byteLen < 0 {
  13117. return ErrInvalidLengthRpc
  13118. }
  13119. postIndex := iNdEx + byteLen
  13120. if postIndex < 0 {
  13121. return ErrInvalidLengthRpc
  13122. }
  13123. if postIndex > l {
  13124. return io.ErrUnexpectedEOF
  13125. }
  13126. m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
  13127. if m.Key == nil {
  13128. m.Key = []byte{}
  13129. }
  13130. iNdEx = postIndex
  13131. case 2:
  13132. if wireType != 2 {
  13133. return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType)
  13134. }
  13135. var byteLen int
  13136. for shift := uint(0); ; shift += 7 {
  13137. if shift >= 64 {
  13138. return ErrIntOverflowRpc
  13139. }
  13140. if iNdEx >= l {
  13141. return io.ErrUnexpectedEOF
  13142. }
  13143. b := dAtA[iNdEx]
  13144. iNdEx++
  13145. byteLen |= int(b&0x7F) << shift
  13146. if b < 0x80 {
  13147. break
  13148. }
  13149. }
  13150. if byteLen < 0 {
  13151. return ErrInvalidLengthRpc
  13152. }
  13153. postIndex := iNdEx + byteLen
  13154. if postIndex < 0 {
  13155. return ErrInvalidLengthRpc
  13156. }
  13157. if postIndex > l {
  13158. return io.ErrUnexpectedEOF
  13159. }
  13160. m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...)
  13161. if m.RangeEnd == nil {
  13162. m.RangeEnd = []byte{}
  13163. }
  13164. iNdEx = postIndex
  13165. case 3:
  13166. if wireType != 0 {
  13167. return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
  13168. }
  13169. m.Limit = 0
  13170. for shift := uint(0); ; shift += 7 {
  13171. if shift >= 64 {
  13172. return ErrIntOverflowRpc
  13173. }
  13174. if iNdEx >= l {
  13175. return io.ErrUnexpectedEOF
  13176. }
  13177. b := dAtA[iNdEx]
  13178. iNdEx++
  13179. m.Limit |= int64(b&0x7F) << shift
  13180. if b < 0x80 {
  13181. break
  13182. }
  13183. }
  13184. case 4:
  13185. if wireType != 0 {
  13186. return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType)
  13187. }
  13188. m.Revision = 0
  13189. for shift := uint(0); ; shift += 7 {
  13190. if shift >= 64 {
  13191. return ErrIntOverflowRpc
  13192. }
  13193. if iNdEx >= l {
  13194. return io.ErrUnexpectedEOF
  13195. }
  13196. b := dAtA[iNdEx]
  13197. iNdEx++
  13198. m.Revision |= int64(b&0x7F) << shift
  13199. if b < 0x80 {
  13200. break
  13201. }
  13202. }
  13203. case 5:
  13204. if wireType != 0 {
  13205. return fmt.Errorf("proto: wrong wireType = %d for field SortOrder", wireType)
  13206. }
  13207. m.SortOrder = 0
  13208. for shift := uint(0); ; shift += 7 {
  13209. if shift >= 64 {
  13210. return ErrIntOverflowRpc
  13211. }
  13212. if iNdEx >= l {
  13213. return io.ErrUnexpectedEOF
  13214. }
  13215. b := dAtA[iNdEx]
  13216. iNdEx++
  13217. m.SortOrder |= RangeRequest_SortOrder(b&0x7F) << shift
  13218. if b < 0x80 {
  13219. break
  13220. }
  13221. }
  13222. case 6:
  13223. if wireType != 0 {
  13224. return fmt.Errorf("proto: wrong wireType = %d for field SortTarget", wireType)
  13225. }
  13226. m.SortTarget = 0
  13227. for shift := uint(0); ; shift += 7 {
  13228. if shift >= 64 {
  13229. return ErrIntOverflowRpc
  13230. }
  13231. if iNdEx >= l {
  13232. return io.ErrUnexpectedEOF
  13233. }
  13234. b := dAtA[iNdEx]
  13235. iNdEx++
  13236. m.SortTarget |= RangeRequest_SortTarget(b&0x7F) << shift
  13237. if b < 0x80 {
  13238. break
  13239. }
  13240. }
  13241. case 7:
  13242. if wireType != 0 {
  13243. return fmt.Errorf("proto: wrong wireType = %d for field Serializable", wireType)
  13244. }
  13245. var v int
  13246. for shift := uint(0); ; shift += 7 {
  13247. if shift >= 64 {
  13248. return ErrIntOverflowRpc
  13249. }
  13250. if iNdEx >= l {
  13251. return io.ErrUnexpectedEOF
  13252. }
  13253. b := dAtA[iNdEx]
  13254. iNdEx++
  13255. v |= int(b&0x7F) << shift
  13256. if b < 0x80 {
  13257. break
  13258. }
  13259. }
  13260. m.Serializable = bool(v != 0)
  13261. case 8:
  13262. if wireType != 0 {
  13263. return fmt.Errorf("proto: wrong wireType = %d for field KeysOnly", wireType)
  13264. }
  13265. var v int
  13266. for shift := uint(0); ; shift += 7 {
  13267. if shift >= 64 {
  13268. return ErrIntOverflowRpc
  13269. }
  13270. if iNdEx >= l {
  13271. return io.ErrUnexpectedEOF
  13272. }
  13273. b := dAtA[iNdEx]
  13274. iNdEx++
  13275. v |= int(b&0x7F) << shift
  13276. if b < 0x80 {
  13277. break
  13278. }
  13279. }
  13280. m.KeysOnly = bool(v != 0)
  13281. case 9:
  13282. if wireType != 0 {
  13283. return fmt.Errorf("proto: wrong wireType = %d for field CountOnly", wireType)
  13284. }
  13285. var v int
  13286. for shift := uint(0); ; shift += 7 {
  13287. if shift >= 64 {
  13288. return ErrIntOverflowRpc
  13289. }
  13290. if iNdEx >= l {
  13291. return io.ErrUnexpectedEOF
  13292. }
  13293. b := dAtA[iNdEx]
  13294. iNdEx++
  13295. v |= int(b&0x7F) << shift
  13296. if b < 0x80 {
  13297. break
  13298. }
  13299. }
  13300. m.CountOnly = bool(v != 0)
  13301. case 10:
  13302. if wireType != 0 {
  13303. return fmt.Errorf("proto: wrong wireType = %d for field MinModRevision", wireType)
  13304. }
  13305. m.MinModRevision = 0
  13306. for shift := uint(0); ; shift += 7 {
  13307. if shift >= 64 {
  13308. return ErrIntOverflowRpc
  13309. }
  13310. if iNdEx >= l {
  13311. return io.ErrUnexpectedEOF
  13312. }
  13313. b := dAtA[iNdEx]
  13314. iNdEx++
  13315. m.MinModRevision |= int64(b&0x7F) << shift
  13316. if b < 0x80 {
  13317. break
  13318. }
  13319. }
  13320. case 11:
  13321. if wireType != 0 {
  13322. return fmt.Errorf("proto: wrong wireType = %d for field MaxModRevision", wireType)
  13323. }
  13324. m.MaxModRevision = 0
  13325. for shift := uint(0); ; shift += 7 {
  13326. if shift >= 64 {
  13327. return ErrIntOverflowRpc
  13328. }
  13329. if iNdEx >= l {
  13330. return io.ErrUnexpectedEOF
  13331. }
  13332. b := dAtA[iNdEx]
  13333. iNdEx++
  13334. m.MaxModRevision |= int64(b&0x7F) << shift
  13335. if b < 0x80 {
  13336. break
  13337. }
  13338. }
  13339. case 12:
  13340. if wireType != 0 {
  13341. return fmt.Errorf("proto: wrong wireType = %d for field MinCreateRevision", wireType)
  13342. }
  13343. m.MinCreateRevision = 0
  13344. for shift := uint(0); ; shift += 7 {
  13345. if shift >= 64 {
  13346. return ErrIntOverflowRpc
  13347. }
  13348. if iNdEx >= l {
  13349. return io.ErrUnexpectedEOF
  13350. }
  13351. b := dAtA[iNdEx]
  13352. iNdEx++
  13353. m.MinCreateRevision |= int64(b&0x7F) << shift
  13354. if b < 0x80 {
  13355. break
  13356. }
  13357. }
  13358. case 13:
  13359. if wireType != 0 {
  13360. return fmt.Errorf("proto: wrong wireType = %d for field MaxCreateRevision", wireType)
  13361. }
  13362. m.MaxCreateRevision = 0
  13363. for shift := uint(0); ; shift += 7 {
  13364. if shift >= 64 {
  13365. return ErrIntOverflowRpc
  13366. }
  13367. if iNdEx >= l {
  13368. return io.ErrUnexpectedEOF
  13369. }
  13370. b := dAtA[iNdEx]
  13371. iNdEx++
  13372. m.MaxCreateRevision |= int64(b&0x7F) << shift
  13373. if b < 0x80 {
  13374. break
  13375. }
  13376. }
  13377. default:
  13378. iNdEx = preIndex
  13379. skippy, err := skipRpc(dAtA[iNdEx:])
  13380. if err != nil {
  13381. return err
  13382. }
  13383. if skippy < 0 {
  13384. return ErrInvalidLengthRpc
  13385. }
  13386. if (iNdEx + skippy) < 0 {
  13387. return ErrInvalidLengthRpc
  13388. }
  13389. if (iNdEx + skippy) > l {
  13390. return io.ErrUnexpectedEOF
  13391. }
  13392. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13393. iNdEx += skippy
  13394. }
  13395. }
  13396. if iNdEx > l {
  13397. return io.ErrUnexpectedEOF
  13398. }
  13399. return nil
  13400. }
  13401. func (m *RangeResponse) Unmarshal(dAtA []byte) error {
  13402. l := len(dAtA)
  13403. iNdEx := 0
  13404. for iNdEx < l {
  13405. preIndex := iNdEx
  13406. var wire uint64
  13407. for shift := uint(0); ; shift += 7 {
  13408. if shift >= 64 {
  13409. return ErrIntOverflowRpc
  13410. }
  13411. if iNdEx >= l {
  13412. return io.ErrUnexpectedEOF
  13413. }
  13414. b := dAtA[iNdEx]
  13415. iNdEx++
  13416. wire |= uint64(b&0x7F) << shift
  13417. if b < 0x80 {
  13418. break
  13419. }
  13420. }
  13421. fieldNum := int32(wire >> 3)
  13422. wireType := int(wire & 0x7)
  13423. if wireType == 4 {
  13424. return fmt.Errorf("proto: RangeResponse: wiretype end group for non-group")
  13425. }
  13426. if fieldNum <= 0 {
  13427. return fmt.Errorf("proto: RangeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  13428. }
  13429. switch fieldNum {
  13430. case 1:
  13431. if wireType != 2 {
  13432. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  13433. }
  13434. var msglen int
  13435. for shift := uint(0); ; shift += 7 {
  13436. if shift >= 64 {
  13437. return ErrIntOverflowRpc
  13438. }
  13439. if iNdEx >= l {
  13440. return io.ErrUnexpectedEOF
  13441. }
  13442. b := dAtA[iNdEx]
  13443. iNdEx++
  13444. msglen |= int(b&0x7F) << shift
  13445. if b < 0x80 {
  13446. break
  13447. }
  13448. }
  13449. if msglen < 0 {
  13450. return ErrInvalidLengthRpc
  13451. }
  13452. postIndex := iNdEx + msglen
  13453. if postIndex < 0 {
  13454. return ErrInvalidLengthRpc
  13455. }
  13456. if postIndex > l {
  13457. return io.ErrUnexpectedEOF
  13458. }
  13459. if m.Header == nil {
  13460. m.Header = &ResponseHeader{}
  13461. }
  13462. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13463. return err
  13464. }
  13465. iNdEx = postIndex
  13466. case 2:
  13467. if wireType != 2 {
  13468. return fmt.Errorf("proto: wrong wireType = %d for field Kvs", wireType)
  13469. }
  13470. var msglen int
  13471. for shift := uint(0); ; shift += 7 {
  13472. if shift >= 64 {
  13473. return ErrIntOverflowRpc
  13474. }
  13475. if iNdEx >= l {
  13476. return io.ErrUnexpectedEOF
  13477. }
  13478. b := dAtA[iNdEx]
  13479. iNdEx++
  13480. msglen |= int(b&0x7F) << shift
  13481. if b < 0x80 {
  13482. break
  13483. }
  13484. }
  13485. if msglen < 0 {
  13486. return ErrInvalidLengthRpc
  13487. }
  13488. postIndex := iNdEx + msglen
  13489. if postIndex < 0 {
  13490. return ErrInvalidLengthRpc
  13491. }
  13492. if postIndex > l {
  13493. return io.ErrUnexpectedEOF
  13494. }
  13495. m.Kvs = append(m.Kvs, &mvccpb.KeyValue{})
  13496. if err := m.Kvs[len(m.Kvs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13497. return err
  13498. }
  13499. iNdEx = postIndex
  13500. case 3:
  13501. if wireType != 0 {
  13502. return fmt.Errorf("proto: wrong wireType = %d for field More", wireType)
  13503. }
  13504. var v int
  13505. for shift := uint(0); ; shift += 7 {
  13506. if shift >= 64 {
  13507. return ErrIntOverflowRpc
  13508. }
  13509. if iNdEx >= l {
  13510. return io.ErrUnexpectedEOF
  13511. }
  13512. b := dAtA[iNdEx]
  13513. iNdEx++
  13514. v |= int(b&0x7F) << shift
  13515. if b < 0x80 {
  13516. break
  13517. }
  13518. }
  13519. m.More = bool(v != 0)
  13520. case 4:
  13521. if wireType != 0 {
  13522. return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
  13523. }
  13524. m.Count = 0
  13525. for shift := uint(0); ; shift += 7 {
  13526. if shift >= 64 {
  13527. return ErrIntOverflowRpc
  13528. }
  13529. if iNdEx >= l {
  13530. return io.ErrUnexpectedEOF
  13531. }
  13532. b := dAtA[iNdEx]
  13533. iNdEx++
  13534. m.Count |= int64(b&0x7F) << shift
  13535. if b < 0x80 {
  13536. break
  13537. }
  13538. }
  13539. default:
  13540. iNdEx = preIndex
  13541. skippy, err := skipRpc(dAtA[iNdEx:])
  13542. if err != nil {
  13543. return err
  13544. }
  13545. if skippy < 0 {
  13546. return ErrInvalidLengthRpc
  13547. }
  13548. if (iNdEx + skippy) < 0 {
  13549. return ErrInvalidLengthRpc
  13550. }
  13551. if (iNdEx + skippy) > l {
  13552. return io.ErrUnexpectedEOF
  13553. }
  13554. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13555. iNdEx += skippy
  13556. }
  13557. }
  13558. if iNdEx > l {
  13559. return io.ErrUnexpectedEOF
  13560. }
  13561. return nil
  13562. }
  13563. func (m *PutRequest) Unmarshal(dAtA []byte) error {
  13564. l := len(dAtA)
  13565. iNdEx := 0
  13566. for iNdEx < l {
  13567. preIndex := iNdEx
  13568. var wire uint64
  13569. for shift := uint(0); ; shift += 7 {
  13570. if shift >= 64 {
  13571. return ErrIntOverflowRpc
  13572. }
  13573. if iNdEx >= l {
  13574. return io.ErrUnexpectedEOF
  13575. }
  13576. b := dAtA[iNdEx]
  13577. iNdEx++
  13578. wire |= uint64(b&0x7F) << shift
  13579. if b < 0x80 {
  13580. break
  13581. }
  13582. }
  13583. fieldNum := int32(wire >> 3)
  13584. wireType := int(wire & 0x7)
  13585. if wireType == 4 {
  13586. return fmt.Errorf("proto: PutRequest: wiretype end group for non-group")
  13587. }
  13588. if fieldNum <= 0 {
  13589. return fmt.Errorf("proto: PutRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  13590. }
  13591. switch fieldNum {
  13592. case 1:
  13593. if wireType != 2 {
  13594. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  13595. }
  13596. var byteLen int
  13597. for shift := uint(0); ; shift += 7 {
  13598. if shift >= 64 {
  13599. return ErrIntOverflowRpc
  13600. }
  13601. if iNdEx >= l {
  13602. return io.ErrUnexpectedEOF
  13603. }
  13604. b := dAtA[iNdEx]
  13605. iNdEx++
  13606. byteLen |= int(b&0x7F) << shift
  13607. if b < 0x80 {
  13608. break
  13609. }
  13610. }
  13611. if byteLen < 0 {
  13612. return ErrInvalidLengthRpc
  13613. }
  13614. postIndex := iNdEx + byteLen
  13615. if postIndex < 0 {
  13616. return ErrInvalidLengthRpc
  13617. }
  13618. if postIndex > l {
  13619. return io.ErrUnexpectedEOF
  13620. }
  13621. m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
  13622. if m.Key == nil {
  13623. m.Key = []byte{}
  13624. }
  13625. iNdEx = postIndex
  13626. case 2:
  13627. if wireType != 2 {
  13628. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  13629. }
  13630. var byteLen int
  13631. for shift := uint(0); ; shift += 7 {
  13632. if shift >= 64 {
  13633. return ErrIntOverflowRpc
  13634. }
  13635. if iNdEx >= l {
  13636. return io.ErrUnexpectedEOF
  13637. }
  13638. b := dAtA[iNdEx]
  13639. iNdEx++
  13640. byteLen |= int(b&0x7F) << shift
  13641. if b < 0x80 {
  13642. break
  13643. }
  13644. }
  13645. if byteLen < 0 {
  13646. return ErrInvalidLengthRpc
  13647. }
  13648. postIndex := iNdEx + byteLen
  13649. if postIndex < 0 {
  13650. return ErrInvalidLengthRpc
  13651. }
  13652. if postIndex > l {
  13653. return io.ErrUnexpectedEOF
  13654. }
  13655. m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
  13656. if m.Value == nil {
  13657. m.Value = []byte{}
  13658. }
  13659. iNdEx = postIndex
  13660. case 3:
  13661. if wireType != 0 {
  13662. return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType)
  13663. }
  13664. m.Lease = 0
  13665. for shift := uint(0); ; shift += 7 {
  13666. if shift >= 64 {
  13667. return ErrIntOverflowRpc
  13668. }
  13669. if iNdEx >= l {
  13670. return io.ErrUnexpectedEOF
  13671. }
  13672. b := dAtA[iNdEx]
  13673. iNdEx++
  13674. m.Lease |= int64(b&0x7F) << shift
  13675. if b < 0x80 {
  13676. break
  13677. }
  13678. }
  13679. case 4:
  13680. if wireType != 0 {
  13681. return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType)
  13682. }
  13683. var v int
  13684. for shift := uint(0); ; shift += 7 {
  13685. if shift >= 64 {
  13686. return ErrIntOverflowRpc
  13687. }
  13688. if iNdEx >= l {
  13689. return io.ErrUnexpectedEOF
  13690. }
  13691. b := dAtA[iNdEx]
  13692. iNdEx++
  13693. v |= int(b&0x7F) << shift
  13694. if b < 0x80 {
  13695. break
  13696. }
  13697. }
  13698. m.PrevKv = bool(v != 0)
  13699. case 5:
  13700. if wireType != 0 {
  13701. return fmt.Errorf("proto: wrong wireType = %d for field IgnoreValue", wireType)
  13702. }
  13703. var v int
  13704. for shift := uint(0); ; shift += 7 {
  13705. if shift >= 64 {
  13706. return ErrIntOverflowRpc
  13707. }
  13708. if iNdEx >= l {
  13709. return io.ErrUnexpectedEOF
  13710. }
  13711. b := dAtA[iNdEx]
  13712. iNdEx++
  13713. v |= int(b&0x7F) << shift
  13714. if b < 0x80 {
  13715. break
  13716. }
  13717. }
  13718. m.IgnoreValue = bool(v != 0)
  13719. case 6:
  13720. if wireType != 0 {
  13721. return fmt.Errorf("proto: wrong wireType = %d for field IgnoreLease", wireType)
  13722. }
  13723. var v int
  13724. for shift := uint(0); ; shift += 7 {
  13725. if shift >= 64 {
  13726. return ErrIntOverflowRpc
  13727. }
  13728. if iNdEx >= l {
  13729. return io.ErrUnexpectedEOF
  13730. }
  13731. b := dAtA[iNdEx]
  13732. iNdEx++
  13733. v |= int(b&0x7F) << shift
  13734. if b < 0x80 {
  13735. break
  13736. }
  13737. }
  13738. m.IgnoreLease = bool(v != 0)
  13739. default:
  13740. iNdEx = preIndex
  13741. skippy, err := skipRpc(dAtA[iNdEx:])
  13742. if err != nil {
  13743. return err
  13744. }
  13745. if skippy < 0 {
  13746. return ErrInvalidLengthRpc
  13747. }
  13748. if (iNdEx + skippy) < 0 {
  13749. return ErrInvalidLengthRpc
  13750. }
  13751. if (iNdEx + skippy) > l {
  13752. return io.ErrUnexpectedEOF
  13753. }
  13754. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13755. iNdEx += skippy
  13756. }
  13757. }
  13758. if iNdEx > l {
  13759. return io.ErrUnexpectedEOF
  13760. }
  13761. return nil
  13762. }
  13763. func (m *PutResponse) Unmarshal(dAtA []byte) error {
  13764. l := len(dAtA)
  13765. iNdEx := 0
  13766. for iNdEx < l {
  13767. preIndex := iNdEx
  13768. var wire uint64
  13769. for shift := uint(0); ; shift += 7 {
  13770. if shift >= 64 {
  13771. return ErrIntOverflowRpc
  13772. }
  13773. if iNdEx >= l {
  13774. return io.ErrUnexpectedEOF
  13775. }
  13776. b := dAtA[iNdEx]
  13777. iNdEx++
  13778. wire |= uint64(b&0x7F) << shift
  13779. if b < 0x80 {
  13780. break
  13781. }
  13782. }
  13783. fieldNum := int32(wire >> 3)
  13784. wireType := int(wire & 0x7)
  13785. if wireType == 4 {
  13786. return fmt.Errorf("proto: PutResponse: wiretype end group for non-group")
  13787. }
  13788. if fieldNum <= 0 {
  13789. return fmt.Errorf("proto: PutResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  13790. }
  13791. switch fieldNum {
  13792. case 1:
  13793. if wireType != 2 {
  13794. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  13795. }
  13796. var msglen int
  13797. for shift := uint(0); ; shift += 7 {
  13798. if shift >= 64 {
  13799. return ErrIntOverflowRpc
  13800. }
  13801. if iNdEx >= l {
  13802. return io.ErrUnexpectedEOF
  13803. }
  13804. b := dAtA[iNdEx]
  13805. iNdEx++
  13806. msglen |= int(b&0x7F) << shift
  13807. if b < 0x80 {
  13808. break
  13809. }
  13810. }
  13811. if msglen < 0 {
  13812. return ErrInvalidLengthRpc
  13813. }
  13814. postIndex := iNdEx + msglen
  13815. if postIndex < 0 {
  13816. return ErrInvalidLengthRpc
  13817. }
  13818. if postIndex > l {
  13819. return io.ErrUnexpectedEOF
  13820. }
  13821. if m.Header == nil {
  13822. m.Header = &ResponseHeader{}
  13823. }
  13824. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13825. return err
  13826. }
  13827. iNdEx = postIndex
  13828. case 2:
  13829. if wireType != 2 {
  13830. return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType)
  13831. }
  13832. var msglen int
  13833. for shift := uint(0); ; shift += 7 {
  13834. if shift >= 64 {
  13835. return ErrIntOverflowRpc
  13836. }
  13837. if iNdEx >= l {
  13838. return io.ErrUnexpectedEOF
  13839. }
  13840. b := dAtA[iNdEx]
  13841. iNdEx++
  13842. msglen |= int(b&0x7F) << shift
  13843. if b < 0x80 {
  13844. break
  13845. }
  13846. }
  13847. if msglen < 0 {
  13848. return ErrInvalidLengthRpc
  13849. }
  13850. postIndex := iNdEx + msglen
  13851. if postIndex < 0 {
  13852. return ErrInvalidLengthRpc
  13853. }
  13854. if postIndex > l {
  13855. return io.ErrUnexpectedEOF
  13856. }
  13857. if m.PrevKv == nil {
  13858. m.PrevKv = &mvccpb.KeyValue{}
  13859. }
  13860. if err := m.PrevKv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13861. return err
  13862. }
  13863. iNdEx = postIndex
  13864. default:
  13865. iNdEx = preIndex
  13866. skippy, err := skipRpc(dAtA[iNdEx:])
  13867. if err != nil {
  13868. return err
  13869. }
  13870. if skippy < 0 {
  13871. return ErrInvalidLengthRpc
  13872. }
  13873. if (iNdEx + skippy) < 0 {
  13874. return ErrInvalidLengthRpc
  13875. }
  13876. if (iNdEx + skippy) > l {
  13877. return io.ErrUnexpectedEOF
  13878. }
  13879. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13880. iNdEx += skippy
  13881. }
  13882. }
  13883. if iNdEx > l {
  13884. return io.ErrUnexpectedEOF
  13885. }
  13886. return nil
  13887. }
  13888. func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error {
  13889. l := len(dAtA)
  13890. iNdEx := 0
  13891. for iNdEx < l {
  13892. preIndex := iNdEx
  13893. var wire uint64
  13894. for shift := uint(0); ; shift += 7 {
  13895. if shift >= 64 {
  13896. return ErrIntOverflowRpc
  13897. }
  13898. if iNdEx >= l {
  13899. return io.ErrUnexpectedEOF
  13900. }
  13901. b := dAtA[iNdEx]
  13902. iNdEx++
  13903. wire |= uint64(b&0x7F) << shift
  13904. if b < 0x80 {
  13905. break
  13906. }
  13907. }
  13908. fieldNum := int32(wire >> 3)
  13909. wireType := int(wire & 0x7)
  13910. if wireType == 4 {
  13911. return fmt.Errorf("proto: DeleteRangeRequest: wiretype end group for non-group")
  13912. }
  13913. if fieldNum <= 0 {
  13914. return fmt.Errorf("proto: DeleteRangeRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  13915. }
  13916. switch fieldNum {
  13917. case 1:
  13918. if wireType != 2 {
  13919. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  13920. }
  13921. var byteLen int
  13922. for shift := uint(0); ; shift += 7 {
  13923. if shift >= 64 {
  13924. return ErrIntOverflowRpc
  13925. }
  13926. if iNdEx >= l {
  13927. return io.ErrUnexpectedEOF
  13928. }
  13929. b := dAtA[iNdEx]
  13930. iNdEx++
  13931. byteLen |= int(b&0x7F) << shift
  13932. if b < 0x80 {
  13933. break
  13934. }
  13935. }
  13936. if byteLen < 0 {
  13937. return ErrInvalidLengthRpc
  13938. }
  13939. postIndex := iNdEx + byteLen
  13940. if postIndex < 0 {
  13941. return ErrInvalidLengthRpc
  13942. }
  13943. if postIndex > l {
  13944. return io.ErrUnexpectedEOF
  13945. }
  13946. m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
  13947. if m.Key == nil {
  13948. m.Key = []byte{}
  13949. }
  13950. iNdEx = postIndex
  13951. case 2:
  13952. if wireType != 2 {
  13953. return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType)
  13954. }
  13955. var byteLen int
  13956. for shift := uint(0); ; shift += 7 {
  13957. if shift >= 64 {
  13958. return ErrIntOverflowRpc
  13959. }
  13960. if iNdEx >= l {
  13961. return io.ErrUnexpectedEOF
  13962. }
  13963. b := dAtA[iNdEx]
  13964. iNdEx++
  13965. byteLen |= int(b&0x7F) << shift
  13966. if b < 0x80 {
  13967. break
  13968. }
  13969. }
  13970. if byteLen < 0 {
  13971. return ErrInvalidLengthRpc
  13972. }
  13973. postIndex := iNdEx + byteLen
  13974. if postIndex < 0 {
  13975. return ErrInvalidLengthRpc
  13976. }
  13977. if postIndex > l {
  13978. return io.ErrUnexpectedEOF
  13979. }
  13980. m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...)
  13981. if m.RangeEnd == nil {
  13982. m.RangeEnd = []byte{}
  13983. }
  13984. iNdEx = postIndex
  13985. case 3:
  13986. if wireType != 0 {
  13987. return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType)
  13988. }
  13989. var v int
  13990. for shift := uint(0); ; shift += 7 {
  13991. if shift >= 64 {
  13992. return ErrIntOverflowRpc
  13993. }
  13994. if iNdEx >= l {
  13995. return io.ErrUnexpectedEOF
  13996. }
  13997. b := dAtA[iNdEx]
  13998. iNdEx++
  13999. v |= int(b&0x7F) << shift
  14000. if b < 0x80 {
  14001. break
  14002. }
  14003. }
  14004. m.PrevKv = bool(v != 0)
  14005. default:
  14006. iNdEx = preIndex
  14007. skippy, err := skipRpc(dAtA[iNdEx:])
  14008. if err != nil {
  14009. return err
  14010. }
  14011. if skippy < 0 {
  14012. return ErrInvalidLengthRpc
  14013. }
  14014. if (iNdEx + skippy) < 0 {
  14015. return ErrInvalidLengthRpc
  14016. }
  14017. if (iNdEx + skippy) > l {
  14018. return io.ErrUnexpectedEOF
  14019. }
  14020. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14021. iNdEx += skippy
  14022. }
  14023. }
  14024. if iNdEx > l {
  14025. return io.ErrUnexpectedEOF
  14026. }
  14027. return nil
  14028. }
  14029. func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error {
  14030. l := len(dAtA)
  14031. iNdEx := 0
  14032. for iNdEx < l {
  14033. preIndex := iNdEx
  14034. var wire uint64
  14035. for shift := uint(0); ; shift += 7 {
  14036. if shift >= 64 {
  14037. return ErrIntOverflowRpc
  14038. }
  14039. if iNdEx >= l {
  14040. return io.ErrUnexpectedEOF
  14041. }
  14042. b := dAtA[iNdEx]
  14043. iNdEx++
  14044. wire |= uint64(b&0x7F) << shift
  14045. if b < 0x80 {
  14046. break
  14047. }
  14048. }
  14049. fieldNum := int32(wire >> 3)
  14050. wireType := int(wire & 0x7)
  14051. if wireType == 4 {
  14052. return fmt.Errorf("proto: DeleteRangeResponse: wiretype end group for non-group")
  14053. }
  14054. if fieldNum <= 0 {
  14055. return fmt.Errorf("proto: DeleteRangeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  14056. }
  14057. switch fieldNum {
  14058. case 1:
  14059. if wireType != 2 {
  14060. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  14061. }
  14062. var msglen int
  14063. for shift := uint(0); ; shift += 7 {
  14064. if shift >= 64 {
  14065. return ErrIntOverflowRpc
  14066. }
  14067. if iNdEx >= l {
  14068. return io.ErrUnexpectedEOF
  14069. }
  14070. b := dAtA[iNdEx]
  14071. iNdEx++
  14072. msglen |= int(b&0x7F) << shift
  14073. if b < 0x80 {
  14074. break
  14075. }
  14076. }
  14077. if msglen < 0 {
  14078. return ErrInvalidLengthRpc
  14079. }
  14080. postIndex := iNdEx + msglen
  14081. if postIndex < 0 {
  14082. return ErrInvalidLengthRpc
  14083. }
  14084. if postIndex > l {
  14085. return io.ErrUnexpectedEOF
  14086. }
  14087. if m.Header == nil {
  14088. m.Header = &ResponseHeader{}
  14089. }
  14090. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14091. return err
  14092. }
  14093. iNdEx = postIndex
  14094. case 2:
  14095. if wireType != 0 {
  14096. return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType)
  14097. }
  14098. m.Deleted = 0
  14099. for shift := uint(0); ; shift += 7 {
  14100. if shift >= 64 {
  14101. return ErrIntOverflowRpc
  14102. }
  14103. if iNdEx >= l {
  14104. return io.ErrUnexpectedEOF
  14105. }
  14106. b := dAtA[iNdEx]
  14107. iNdEx++
  14108. m.Deleted |= int64(b&0x7F) << shift
  14109. if b < 0x80 {
  14110. break
  14111. }
  14112. }
  14113. case 3:
  14114. if wireType != 2 {
  14115. return fmt.Errorf("proto: wrong wireType = %d for field PrevKvs", wireType)
  14116. }
  14117. var msglen int
  14118. for shift := uint(0); ; shift += 7 {
  14119. if shift >= 64 {
  14120. return ErrIntOverflowRpc
  14121. }
  14122. if iNdEx >= l {
  14123. return io.ErrUnexpectedEOF
  14124. }
  14125. b := dAtA[iNdEx]
  14126. iNdEx++
  14127. msglen |= int(b&0x7F) << shift
  14128. if b < 0x80 {
  14129. break
  14130. }
  14131. }
  14132. if msglen < 0 {
  14133. return ErrInvalidLengthRpc
  14134. }
  14135. postIndex := iNdEx + msglen
  14136. if postIndex < 0 {
  14137. return ErrInvalidLengthRpc
  14138. }
  14139. if postIndex > l {
  14140. return io.ErrUnexpectedEOF
  14141. }
  14142. m.PrevKvs = append(m.PrevKvs, &mvccpb.KeyValue{})
  14143. if err := m.PrevKvs[len(m.PrevKvs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14144. return err
  14145. }
  14146. iNdEx = postIndex
  14147. default:
  14148. iNdEx = preIndex
  14149. skippy, err := skipRpc(dAtA[iNdEx:])
  14150. if err != nil {
  14151. return err
  14152. }
  14153. if skippy < 0 {
  14154. return ErrInvalidLengthRpc
  14155. }
  14156. if (iNdEx + skippy) < 0 {
  14157. return ErrInvalidLengthRpc
  14158. }
  14159. if (iNdEx + skippy) > l {
  14160. return io.ErrUnexpectedEOF
  14161. }
  14162. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14163. iNdEx += skippy
  14164. }
  14165. }
  14166. if iNdEx > l {
  14167. return io.ErrUnexpectedEOF
  14168. }
  14169. return nil
  14170. }
  14171. func (m *RequestOp) Unmarshal(dAtA []byte) error {
  14172. l := len(dAtA)
  14173. iNdEx := 0
  14174. for iNdEx < l {
  14175. preIndex := iNdEx
  14176. var wire uint64
  14177. for shift := uint(0); ; shift += 7 {
  14178. if shift >= 64 {
  14179. return ErrIntOverflowRpc
  14180. }
  14181. if iNdEx >= l {
  14182. return io.ErrUnexpectedEOF
  14183. }
  14184. b := dAtA[iNdEx]
  14185. iNdEx++
  14186. wire |= uint64(b&0x7F) << shift
  14187. if b < 0x80 {
  14188. break
  14189. }
  14190. }
  14191. fieldNum := int32(wire >> 3)
  14192. wireType := int(wire & 0x7)
  14193. if wireType == 4 {
  14194. return fmt.Errorf("proto: RequestOp: wiretype end group for non-group")
  14195. }
  14196. if fieldNum <= 0 {
  14197. return fmt.Errorf("proto: RequestOp: illegal tag %d (wire type %d)", fieldNum, wire)
  14198. }
  14199. switch fieldNum {
  14200. case 1:
  14201. if wireType != 2 {
  14202. return fmt.Errorf("proto: wrong wireType = %d for field RequestRange", wireType)
  14203. }
  14204. var msglen int
  14205. for shift := uint(0); ; shift += 7 {
  14206. if shift >= 64 {
  14207. return ErrIntOverflowRpc
  14208. }
  14209. if iNdEx >= l {
  14210. return io.ErrUnexpectedEOF
  14211. }
  14212. b := dAtA[iNdEx]
  14213. iNdEx++
  14214. msglen |= int(b&0x7F) << shift
  14215. if b < 0x80 {
  14216. break
  14217. }
  14218. }
  14219. if msglen < 0 {
  14220. return ErrInvalidLengthRpc
  14221. }
  14222. postIndex := iNdEx + msglen
  14223. if postIndex < 0 {
  14224. return ErrInvalidLengthRpc
  14225. }
  14226. if postIndex > l {
  14227. return io.ErrUnexpectedEOF
  14228. }
  14229. v := &RangeRequest{}
  14230. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14231. return err
  14232. }
  14233. m.Request = &RequestOp_RequestRange{v}
  14234. iNdEx = postIndex
  14235. case 2:
  14236. if wireType != 2 {
  14237. return fmt.Errorf("proto: wrong wireType = %d for field RequestPut", wireType)
  14238. }
  14239. var msglen int
  14240. for shift := uint(0); ; shift += 7 {
  14241. if shift >= 64 {
  14242. return ErrIntOverflowRpc
  14243. }
  14244. if iNdEx >= l {
  14245. return io.ErrUnexpectedEOF
  14246. }
  14247. b := dAtA[iNdEx]
  14248. iNdEx++
  14249. msglen |= int(b&0x7F) << shift
  14250. if b < 0x80 {
  14251. break
  14252. }
  14253. }
  14254. if msglen < 0 {
  14255. return ErrInvalidLengthRpc
  14256. }
  14257. postIndex := iNdEx + msglen
  14258. if postIndex < 0 {
  14259. return ErrInvalidLengthRpc
  14260. }
  14261. if postIndex > l {
  14262. return io.ErrUnexpectedEOF
  14263. }
  14264. v := &PutRequest{}
  14265. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14266. return err
  14267. }
  14268. m.Request = &RequestOp_RequestPut{v}
  14269. iNdEx = postIndex
  14270. case 3:
  14271. if wireType != 2 {
  14272. return fmt.Errorf("proto: wrong wireType = %d for field RequestDeleteRange", wireType)
  14273. }
  14274. var msglen int
  14275. for shift := uint(0); ; shift += 7 {
  14276. if shift >= 64 {
  14277. return ErrIntOverflowRpc
  14278. }
  14279. if iNdEx >= l {
  14280. return io.ErrUnexpectedEOF
  14281. }
  14282. b := dAtA[iNdEx]
  14283. iNdEx++
  14284. msglen |= int(b&0x7F) << shift
  14285. if b < 0x80 {
  14286. break
  14287. }
  14288. }
  14289. if msglen < 0 {
  14290. return ErrInvalidLengthRpc
  14291. }
  14292. postIndex := iNdEx + msglen
  14293. if postIndex < 0 {
  14294. return ErrInvalidLengthRpc
  14295. }
  14296. if postIndex > l {
  14297. return io.ErrUnexpectedEOF
  14298. }
  14299. v := &DeleteRangeRequest{}
  14300. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14301. return err
  14302. }
  14303. m.Request = &RequestOp_RequestDeleteRange{v}
  14304. iNdEx = postIndex
  14305. case 4:
  14306. if wireType != 2 {
  14307. return fmt.Errorf("proto: wrong wireType = %d for field RequestTxn", wireType)
  14308. }
  14309. var msglen int
  14310. for shift := uint(0); ; shift += 7 {
  14311. if shift >= 64 {
  14312. return ErrIntOverflowRpc
  14313. }
  14314. if iNdEx >= l {
  14315. return io.ErrUnexpectedEOF
  14316. }
  14317. b := dAtA[iNdEx]
  14318. iNdEx++
  14319. msglen |= int(b&0x7F) << shift
  14320. if b < 0x80 {
  14321. break
  14322. }
  14323. }
  14324. if msglen < 0 {
  14325. return ErrInvalidLengthRpc
  14326. }
  14327. postIndex := iNdEx + msglen
  14328. if postIndex < 0 {
  14329. return ErrInvalidLengthRpc
  14330. }
  14331. if postIndex > l {
  14332. return io.ErrUnexpectedEOF
  14333. }
  14334. v := &TxnRequest{}
  14335. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14336. return err
  14337. }
  14338. m.Request = &RequestOp_RequestTxn{v}
  14339. iNdEx = postIndex
  14340. default:
  14341. iNdEx = preIndex
  14342. skippy, err := skipRpc(dAtA[iNdEx:])
  14343. if err != nil {
  14344. return err
  14345. }
  14346. if skippy < 0 {
  14347. return ErrInvalidLengthRpc
  14348. }
  14349. if (iNdEx + skippy) < 0 {
  14350. return ErrInvalidLengthRpc
  14351. }
  14352. if (iNdEx + skippy) > l {
  14353. return io.ErrUnexpectedEOF
  14354. }
  14355. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14356. iNdEx += skippy
  14357. }
  14358. }
  14359. if iNdEx > l {
  14360. return io.ErrUnexpectedEOF
  14361. }
  14362. return nil
  14363. }
  14364. func (m *ResponseOp) Unmarshal(dAtA []byte) error {
  14365. l := len(dAtA)
  14366. iNdEx := 0
  14367. for iNdEx < l {
  14368. preIndex := iNdEx
  14369. var wire uint64
  14370. for shift := uint(0); ; shift += 7 {
  14371. if shift >= 64 {
  14372. return ErrIntOverflowRpc
  14373. }
  14374. if iNdEx >= l {
  14375. return io.ErrUnexpectedEOF
  14376. }
  14377. b := dAtA[iNdEx]
  14378. iNdEx++
  14379. wire |= uint64(b&0x7F) << shift
  14380. if b < 0x80 {
  14381. break
  14382. }
  14383. }
  14384. fieldNum := int32(wire >> 3)
  14385. wireType := int(wire & 0x7)
  14386. if wireType == 4 {
  14387. return fmt.Errorf("proto: ResponseOp: wiretype end group for non-group")
  14388. }
  14389. if fieldNum <= 0 {
  14390. return fmt.Errorf("proto: ResponseOp: illegal tag %d (wire type %d)", fieldNum, wire)
  14391. }
  14392. switch fieldNum {
  14393. case 1:
  14394. if wireType != 2 {
  14395. return fmt.Errorf("proto: wrong wireType = %d for field ResponseRange", wireType)
  14396. }
  14397. var msglen int
  14398. for shift := uint(0); ; shift += 7 {
  14399. if shift >= 64 {
  14400. return ErrIntOverflowRpc
  14401. }
  14402. if iNdEx >= l {
  14403. return io.ErrUnexpectedEOF
  14404. }
  14405. b := dAtA[iNdEx]
  14406. iNdEx++
  14407. msglen |= int(b&0x7F) << shift
  14408. if b < 0x80 {
  14409. break
  14410. }
  14411. }
  14412. if msglen < 0 {
  14413. return ErrInvalidLengthRpc
  14414. }
  14415. postIndex := iNdEx + msglen
  14416. if postIndex < 0 {
  14417. return ErrInvalidLengthRpc
  14418. }
  14419. if postIndex > l {
  14420. return io.ErrUnexpectedEOF
  14421. }
  14422. v := &RangeResponse{}
  14423. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14424. return err
  14425. }
  14426. m.Response = &ResponseOp_ResponseRange{v}
  14427. iNdEx = postIndex
  14428. case 2:
  14429. if wireType != 2 {
  14430. return fmt.Errorf("proto: wrong wireType = %d for field ResponsePut", wireType)
  14431. }
  14432. var msglen int
  14433. for shift := uint(0); ; shift += 7 {
  14434. if shift >= 64 {
  14435. return ErrIntOverflowRpc
  14436. }
  14437. if iNdEx >= l {
  14438. return io.ErrUnexpectedEOF
  14439. }
  14440. b := dAtA[iNdEx]
  14441. iNdEx++
  14442. msglen |= int(b&0x7F) << shift
  14443. if b < 0x80 {
  14444. break
  14445. }
  14446. }
  14447. if msglen < 0 {
  14448. return ErrInvalidLengthRpc
  14449. }
  14450. postIndex := iNdEx + msglen
  14451. if postIndex < 0 {
  14452. return ErrInvalidLengthRpc
  14453. }
  14454. if postIndex > l {
  14455. return io.ErrUnexpectedEOF
  14456. }
  14457. v := &PutResponse{}
  14458. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14459. return err
  14460. }
  14461. m.Response = &ResponseOp_ResponsePut{v}
  14462. iNdEx = postIndex
  14463. case 3:
  14464. if wireType != 2 {
  14465. return fmt.Errorf("proto: wrong wireType = %d for field ResponseDeleteRange", wireType)
  14466. }
  14467. var msglen int
  14468. for shift := uint(0); ; shift += 7 {
  14469. if shift >= 64 {
  14470. return ErrIntOverflowRpc
  14471. }
  14472. if iNdEx >= l {
  14473. return io.ErrUnexpectedEOF
  14474. }
  14475. b := dAtA[iNdEx]
  14476. iNdEx++
  14477. msglen |= int(b&0x7F) << shift
  14478. if b < 0x80 {
  14479. break
  14480. }
  14481. }
  14482. if msglen < 0 {
  14483. return ErrInvalidLengthRpc
  14484. }
  14485. postIndex := iNdEx + msglen
  14486. if postIndex < 0 {
  14487. return ErrInvalidLengthRpc
  14488. }
  14489. if postIndex > l {
  14490. return io.ErrUnexpectedEOF
  14491. }
  14492. v := &DeleteRangeResponse{}
  14493. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14494. return err
  14495. }
  14496. m.Response = &ResponseOp_ResponseDeleteRange{v}
  14497. iNdEx = postIndex
  14498. case 4:
  14499. if wireType != 2 {
  14500. return fmt.Errorf("proto: wrong wireType = %d for field ResponseTxn", wireType)
  14501. }
  14502. var msglen int
  14503. for shift := uint(0); ; shift += 7 {
  14504. if shift >= 64 {
  14505. return ErrIntOverflowRpc
  14506. }
  14507. if iNdEx >= l {
  14508. return io.ErrUnexpectedEOF
  14509. }
  14510. b := dAtA[iNdEx]
  14511. iNdEx++
  14512. msglen |= int(b&0x7F) << shift
  14513. if b < 0x80 {
  14514. break
  14515. }
  14516. }
  14517. if msglen < 0 {
  14518. return ErrInvalidLengthRpc
  14519. }
  14520. postIndex := iNdEx + msglen
  14521. if postIndex < 0 {
  14522. return ErrInvalidLengthRpc
  14523. }
  14524. if postIndex > l {
  14525. return io.ErrUnexpectedEOF
  14526. }
  14527. v := &TxnResponse{}
  14528. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14529. return err
  14530. }
  14531. m.Response = &ResponseOp_ResponseTxn{v}
  14532. iNdEx = postIndex
  14533. default:
  14534. iNdEx = preIndex
  14535. skippy, err := skipRpc(dAtA[iNdEx:])
  14536. if err != nil {
  14537. return err
  14538. }
  14539. if skippy < 0 {
  14540. return ErrInvalidLengthRpc
  14541. }
  14542. if (iNdEx + skippy) < 0 {
  14543. return ErrInvalidLengthRpc
  14544. }
  14545. if (iNdEx + skippy) > l {
  14546. return io.ErrUnexpectedEOF
  14547. }
  14548. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14549. iNdEx += skippy
  14550. }
  14551. }
  14552. if iNdEx > l {
  14553. return io.ErrUnexpectedEOF
  14554. }
  14555. return nil
  14556. }
  14557. func (m *Compare) Unmarshal(dAtA []byte) error {
  14558. l := len(dAtA)
  14559. iNdEx := 0
  14560. for iNdEx < l {
  14561. preIndex := iNdEx
  14562. var wire uint64
  14563. for shift := uint(0); ; shift += 7 {
  14564. if shift >= 64 {
  14565. return ErrIntOverflowRpc
  14566. }
  14567. if iNdEx >= l {
  14568. return io.ErrUnexpectedEOF
  14569. }
  14570. b := dAtA[iNdEx]
  14571. iNdEx++
  14572. wire |= uint64(b&0x7F) << shift
  14573. if b < 0x80 {
  14574. break
  14575. }
  14576. }
  14577. fieldNum := int32(wire >> 3)
  14578. wireType := int(wire & 0x7)
  14579. if wireType == 4 {
  14580. return fmt.Errorf("proto: Compare: wiretype end group for non-group")
  14581. }
  14582. if fieldNum <= 0 {
  14583. return fmt.Errorf("proto: Compare: illegal tag %d (wire type %d)", fieldNum, wire)
  14584. }
  14585. switch fieldNum {
  14586. case 1:
  14587. if wireType != 0 {
  14588. return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
  14589. }
  14590. m.Result = 0
  14591. for shift := uint(0); ; shift += 7 {
  14592. if shift >= 64 {
  14593. return ErrIntOverflowRpc
  14594. }
  14595. if iNdEx >= l {
  14596. return io.ErrUnexpectedEOF
  14597. }
  14598. b := dAtA[iNdEx]
  14599. iNdEx++
  14600. m.Result |= Compare_CompareResult(b&0x7F) << shift
  14601. if b < 0x80 {
  14602. break
  14603. }
  14604. }
  14605. case 2:
  14606. if wireType != 0 {
  14607. return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
  14608. }
  14609. m.Target = 0
  14610. for shift := uint(0); ; shift += 7 {
  14611. if shift >= 64 {
  14612. return ErrIntOverflowRpc
  14613. }
  14614. if iNdEx >= l {
  14615. return io.ErrUnexpectedEOF
  14616. }
  14617. b := dAtA[iNdEx]
  14618. iNdEx++
  14619. m.Target |= Compare_CompareTarget(b&0x7F) << shift
  14620. if b < 0x80 {
  14621. break
  14622. }
  14623. }
  14624. case 3:
  14625. if wireType != 2 {
  14626. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  14627. }
  14628. var byteLen int
  14629. for shift := uint(0); ; shift += 7 {
  14630. if shift >= 64 {
  14631. return ErrIntOverflowRpc
  14632. }
  14633. if iNdEx >= l {
  14634. return io.ErrUnexpectedEOF
  14635. }
  14636. b := dAtA[iNdEx]
  14637. iNdEx++
  14638. byteLen |= int(b&0x7F) << shift
  14639. if b < 0x80 {
  14640. break
  14641. }
  14642. }
  14643. if byteLen < 0 {
  14644. return ErrInvalidLengthRpc
  14645. }
  14646. postIndex := iNdEx + byteLen
  14647. if postIndex < 0 {
  14648. return ErrInvalidLengthRpc
  14649. }
  14650. if postIndex > l {
  14651. return io.ErrUnexpectedEOF
  14652. }
  14653. m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
  14654. if m.Key == nil {
  14655. m.Key = []byte{}
  14656. }
  14657. iNdEx = postIndex
  14658. case 4:
  14659. if wireType != 0 {
  14660. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  14661. }
  14662. var v int64
  14663. for shift := uint(0); ; shift += 7 {
  14664. if shift >= 64 {
  14665. return ErrIntOverflowRpc
  14666. }
  14667. if iNdEx >= l {
  14668. return io.ErrUnexpectedEOF
  14669. }
  14670. b := dAtA[iNdEx]
  14671. iNdEx++
  14672. v |= int64(b&0x7F) << shift
  14673. if b < 0x80 {
  14674. break
  14675. }
  14676. }
  14677. m.TargetUnion = &Compare_Version{v}
  14678. case 5:
  14679. if wireType != 0 {
  14680. return fmt.Errorf("proto: wrong wireType = %d for field CreateRevision", wireType)
  14681. }
  14682. var v int64
  14683. for shift := uint(0); ; shift += 7 {
  14684. if shift >= 64 {
  14685. return ErrIntOverflowRpc
  14686. }
  14687. if iNdEx >= l {
  14688. return io.ErrUnexpectedEOF
  14689. }
  14690. b := dAtA[iNdEx]
  14691. iNdEx++
  14692. v |= int64(b&0x7F) << shift
  14693. if b < 0x80 {
  14694. break
  14695. }
  14696. }
  14697. m.TargetUnion = &Compare_CreateRevision{v}
  14698. case 6:
  14699. if wireType != 0 {
  14700. return fmt.Errorf("proto: wrong wireType = %d for field ModRevision", wireType)
  14701. }
  14702. var v int64
  14703. for shift := uint(0); ; shift += 7 {
  14704. if shift >= 64 {
  14705. return ErrIntOverflowRpc
  14706. }
  14707. if iNdEx >= l {
  14708. return io.ErrUnexpectedEOF
  14709. }
  14710. b := dAtA[iNdEx]
  14711. iNdEx++
  14712. v |= int64(b&0x7F) << shift
  14713. if b < 0x80 {
  14714. break
  14715. }
  14716. }
  14717. m.TargetUnion = &Compare_ModRevision{v}
  14718. case 7:
  14719. if wireType != 2 {
  14720. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  14721. }
  14722. var byteLen int
  14723. for shift := uint(0); ; shift += 7 {
  14724. if shift >= 64 {
  14725. return ErrIntOverflowRpc
  14726. }
  14727. if iNdEx >= l {
  14728. return io.ErrUnexpectedEOF
  14729. }
  14730. b := dAtA[iNdEx]
  14731. iNdEx++
  14732. byteLen |= int(b&0x7F) << shift
  14733. if b < 0x80 {
  14734. break
  14735. }
  14736. }
  14737. if byteLen < 0 {
  14738. return ErrInvalidLengthRpc
  14739. }
  14740. postIndex := iNdEx + byteLen
  14741. if postIndex < 0 {
  14742. return ErrInvalidLengthRpc
  14743. }
  14744. if postIndex > l {
  14745. return io.ErrUnexpectedEOF
  14746. }
  14747. v := make([]byte, postIndex-iNdEx)
  14748. copy(v, dAtA[iNdEx:postIndex])
  14749. m.TargetUnion = &Compare_Value{v}
  14750. iNdEx = postIndex
  14751. case 8:
  14752. if wireType != 0 {
  14753. return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType)
  14754. }
  14755. var v int64
  14756. for shift := uint(0); ; shift += 7 {
  14757. if shift >= 64 {
  14758. return ErrIntOverflowRpc
  14759. }
  14760. if iNdEx >= l {
  14761. return io.ErrUnexpectedEOF
  14762. }
  14763. b := dAtA[iNdEx]
  14764. iNdEx++
  14765. v |= int64(b&0x7F) << shift
  14766. if b < 0x80 {
  14767. break
  14768. }
  14769. }
  14770. m.TargetUnion = &Compare_Lease{v}
  14771. case 64:
  14772. if wireType != 2 {
  14773. return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType)
  14774. }
  14775. var byteLen int
  14776. for shift := uint(0); ; shift += 7 {
  14777. if shift >= 64 {
  14778. return ErrIntOverflowRpc
  14779. }
  14780. if iNdEx >= l {
  14781. return io.ErrUnexpectedEOF
  14782. }
  14783. b := dAtA[iNdEx]
  14784. iNdEx++
  14785. byteLen |= int(b&0x7F) << shift
  14786. if b < 0x80 {
  14787. break
  14788. }
  14789. }
  14790. if byteLen < 0 {
  14791. return ErrInvalidLengthRpc
  14792. }
  14793. postIndex := iNdEx + byteLen
  14794. if postIndex < 0 {
  14795. return ErrInvalidLengthRpc
  14796. }
  14797. if postIndex > l {
  14798. return io.ErrUnexpectedEOF
  14799. }
  14800. m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...)
  14801. if m.RangeEnd == nil {
  14802. m.RangeEnd = []byte{}
  14803. }
  14804. iNdEx = postIndex
  14805. default:
  14806. iNdEx = preIndex
  14807. skippy, err := skipRpc(dAtA[iNdEx:])
  14808. if err != nil {
  14809. return err
  14810. }
  14811. if skippy < 0 {
  14812. return ErrInvalidLengthRpc
  14813. }
  14814. if (iNdEx + skippy) < 0 {
  14815. return ErrInvalidLengthRpc
  14816. }
  14817. if (iNdEx + skippy) > l {
  14818. return io.ErrUnexpectedEOF
  14819. }
  14820. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14821. iNdEx += skippy
  14822. }
  14823. }
  14824. if iNdEx > l {
  14825. return io.ErrUnexpectedEOF
  14826. }
  14827. return nil
  14828. }
  14829. func (m *TxnRequest) Unmarshal(dAtA []byte) error {
  14830. l := len(dAtA)
  14831. iNdEx := 0
  14832. for iNdEx < l {
  14833. preIndex := iNdEx
  14834. var wire uint64
  14835. for shift := uint(0); ; shift += 7 {
  14836. if shift >= 64 {
  14837. return ErrIntOverflowRpc
  14838. }
  14839. if iNdEx >= l {
  14840. return io.ErrUnexpectedEOF
  14841. }
  14842. b := dAtA[iNdEx]
  14843. iNdEx++
  14844. wire |= uint64(b&0x7F) << shift
  14845. if b < 0x80 {
  14846. break
  14847. }
  14848. }
  14849. fieldNum := int32(wire >> 3)
  14850. wireType := int(wire & 0x7)
  14851. if wireType == 4 {
  14852. return fmt.Errorf("proto: TxnRequest: wiretype end group for non-group")
  14853. }
  14854. if fieldNum <= 0 {
  14855. return fmt.Errorf("proto: TxnRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  14856. }
  14857. switch fieldNum {
  14858. case 1:
  14859. if wireType != 2 {
  14860. return fmt.Errorf("proto: wrong wireType = %d for field Compare", wireType)
  14861. }
  14862. var msglen int
  14863. for shift := uint(0); ; shift += 7 {
  14864. if shift >= 64 {
  14865. return ErrIntOverflowRpc
  14866. }
  14867. if iNdEx >= l {
  14868. return io.ErrUnexpectedEOF
  14869. }
  14870. b := dAtA[iNdEx]
  14871. iNdEx++
  14872. msglen |= int(b&0x7F) << shift
  14873. if b < 0x80 {
  14874. break
  14875. }
  14876. }
  14877. if msglen < 0 {
  14878. return ErrInvalidLengthRpc
  14879. }
  14880. postIndex := iNdEx + msglen
  14881. if postIndex < 0 {
  14882. return ErrInvalidLengthRpc
  14883. }
  14884. if postIndex > l {
  14885. return io.ErrUnexpectedEOF
  14886. }
  14887. m.Compare = append(m.Compare, &Compare{})
  14888. if err := m.Compare[len(m.Compare)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14889. return err
  14890. }
  14891. iNdEx = postIndex
  14892. case 2:
  14893. if wireType != 2 {
  14894. return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
  14895. }
  14896. var msglen int
  14897. for shift := uint(0); ; shift += 7 {
  14898. if shift >= 64 {
  14899. return ErrIntOverflowRpc
  14900. }
  14901. if iNdEx >= l {
  14902. return io.ErrUnexpectedEOF
  14903. }
  14904. b := dAtA[iNdEx]
  14905. iNdEx++
  14906. msglen |= int(b&0x7F) << shift
  14907. if b < 0x80 {
  14908. break
  14909. }
  14910. }
  14911. if msglen < 0 {
  14912. return ErrInvalidLengthRpc
  14913. }
  14914. postIndex := iNdEx + msglen
  14915. if postIndex < 0 {
  14916. return ErrInvalidLengthRpc
  14917. }
  14918. if postIndex > l {
  14919. return io.ErrUnexpectedEOF
  14920. }
  14921. m.Success = append(m.Success, &RequestOp{})
  14922. if err := m.Success[len(m.Success)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14923. return err
  14924. }
  14925. iNdEx = postIndex
  14926. case 3:
  14927. if wireType != 2 {
  14928. return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType)
  14929. }
  14930. var msglen int
  14931. for shift := uint(0); ; shift += 7 {
  14932. if shift >= 64 {
  14933. return ErrIntOverflowRpc
  14934. }
  14935. if iNdEx >= l {
  14936. return io.ErrUnexpectedEOF
  14937. }
  14938. b := dAtA[iNdEx]
  14939. iNdEx++
  14940. msglen |= int(b&0x7F) << shift
  14941. if b < 0x80 {
  14942. break
  14943. }
  14944. }
  14945. if msglen < 0 {
  14946. return ErrInvalidLengthRpc
  14947. }
  14948. postIndex := iNdEx + msglen
  14949. if postIndex < 0 {
  14950. return ErrInvalidLengthRpc
  14951. }
  14952. if postIndex > l {
  14953. return io.ErrUnexpectedEOF
  14954. }
  14955. m.Failure = append(m.Failure, &RequestOp{})
  14956. if err := m.Failure[len(m.Failure)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14957. return err
  14958. }
  14959. iNdEx = postIndex
  14960. default:
  14961. iNdEx = preIndex
  14962. skippy, err := skipRpc(dAtA[iNdEx:])
  14963. if err != nil {
  14964. return err
  14965. }
  14966. if skippy < 0 {
  14967. return ErrInvalidLengthRpc
  14968. }
  14969. if (iNdEx + skippy) < 0 {
  14970. return ErrInvalidLengthRpc
  14971. }
  14972. if (iNdEx + skippy) > l {
  14973. return io.ErrUnexpectedEOF
  14974. }
  14975. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14976. iNdEx += skippy
  14977. }
  14978. }
  14979. if iNdEx > l {
  14980. return io.ErrUnexpectedEOF
  14981. }
  14982. return nil
  14983. }
  14984. func (m *TxnResponse) Unmarshal(dAtA []byte) error {
  14985. l := len(dAtA)
  14986. iNdEx := 0
  14987. for iNdEx < l {
  14988. preIndex := iNdEx
  14989. var wire uint64
  14990. for shift := uint(0); ; shift += 7 {
  14991. if shift >= 64 {
  14992. return ErrIntOverflowRpc
  14993. }
  14994. if iNdEx >= l {
  14995. return io.ErrUnexpectedEOF
  14996. }
  14997. b := dAtA[iNdEx]
  14998. iNdEx++
  14999. wire |= uint64(b&0x7F) << shift
  15000. if b < 0x80 {
  15001. break
  15002. }
  15003. }
  15004. fieldNum := int32(wire >> 3)
  15005. wireType := int(wire & 0x7)
  15006. if wireType == 4 {
  15007. return fmt.Errorf("proto: TxnResponse: wiretype end group for non-group")
  15008. }
  15009. if fieldNum <= 0 {
  15010. return fmt.Errorf("proto: TxnResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  15011. }
  15012. switch fieldNum {
  15013. case 1:
  15014. if wireType != 2 {
  15015. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  15016. }
  15017. var msglen int
  15018. for shift := uint(0); ; shift += 7 {
  15019. if shift >= 64 {
  15020. return ErrIntOverflowRpc
  15021. }
  15022. if iNdEx >= l {
  15023. return io.ErrUnexpectedEOF
  15024. }
  15025. b := dAtA[iNdEx]
  15026. iNdEx++
  15027. msglen |= int(b&0x7F) << shift
  15028. if b < 0x80 {
  15029. break
  15030. }
  15031. }
  15032. if msglen < 0 {
  15033. return ErrInvalidLengthRpc
  15034. }
  15035. postIndex := iNdEx + msglen
  15036. if postIndex < 0 {
  15037. return ErrInvalidLengthRpc
  15038. }
  15039. if postIndex > l {
  15040. return io.ErrUnexpectedEOF
  15041. }
  15042. if m.Header == nil {
  15043. m.Header = &ResponseHeader{}
  15044. }
  15045. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  15046. return err
  15047. }
  15048. iNdEx = postIndex
  15049. case 2:
  15050. if wireType != 0 {
  15051. return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType)
  15052. }
  15053. var v int
  15054. for shift := uint(0); ; shift += 7 {
  15055. if shift >= 64 {
  15056. return ErrIntOverflowRpc
  15057. }
  15058. if iNdEx >= l {
  15059. return io.ErrUnexpectedEOF
  15060. }
  15061. b := dAtA[iNdEx]
  15062. iNdEx++
  15063. v |= int(b&0x7F) << shift
  15064. if b < 0x80 {
  15065. break
  15066. }
  15067. }
  15068. m.Succeeded = bool(v != 0)
  15069. case 3:
  15070. if wireType != 2 {
  15071. return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType)
  15072. }
  15073. var msglen int
  15074. for shift := uint(0); ; shift += 7 {
  15075. if shift >= 64 {
  15076. return ErrIntOverflowRpc
  15077. }
  15078. if iNdEx >= l {
  15079. return io.ErrUnexpectedEOF
  15080. }
  15081. b := dAtA[iNdEx]
  15082. iNdEx++
  15083. msglen |= int(b&0x7F) << shift
  15084. if b < 0x80 {
  15085. break
  15086. }
  15087. }
  15088. if msglen < 0 {
  15089. return ErrInvalidLengthRpc
  15090. }
  15091. postIndex := iNdEx + msglen
  15092. if postIndex < 0 {
  15093. return ErrInvalidLengthRpc
  15094. }
  15095. if postIndex > l {
  15096. return io.ErrUnexpectedEOF
  15097. }
  15098. m.Responses = append(m.Responses, &ResponseOp{})
  15099. if err := m.Responses[len(m.Responses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  15100. return err
  15101. }
  15102. iNdEx = postIndex
  15103. default:
  15104. iNdEx = preIndex
  15105. skippy, err := skipRpc(dAtA[iNdEx:])
  15106. if err != nil {
  15107. return err
  15108. }
  15109. if skippy < 0 {
  15110. return ErrInvalidLengthRpc
  15111. }
  15112. if (iNdEx + skippy) < 0 {
  15113. return ErrInvalidLengthRpc
  15114. }
  15115. if (iNdEx + skippy) > l {
  15116. return io.ErrUnexpectedEOF
  15117. }
  15118. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15119. iNdEx += skippy
  15120. }
  15121. }
  15122. if iNdEx > l {
  15123. return io.ErrUnexpectedEOF
  15124. }
  15125. return nil
  15126. }
  15127. func (m *CompactionRequest) Unmarshal(dAtA []byte) error {
  15128. l := len(dAtA)
  15129. iNdEx := 0
  15130. for iNdEx < l {
  15131. preIndex := iNdEx
  15132. var wire uint64
  15133. for shift := uint(0); ; shift += 7 {
  15134. if shift >= 64 {
  15135. return ErrIntOverflowRpc
  15136. }
  15137. if iNdEx >= l {
  15138. return io.ErrUnexpectedEOF
  15139. }
  15140. b := dAtA[iNdEx]
  15141. iNdEx++
  15142. wire |= uint64(b&0x7F) << shift
  15143. if b < 0x80 {
  15144. break
  15145. }
  15146. }
  15147. fieldNum := int32(wire >> 3)
  15148. wireType := int(wire & 0x7)
  15149. if wireType == 4 {
  15150. return fmt.Errorf("proto: CompactionRequest: wiretype end group for non-group")
  15151. }
  15152. if fieldNum <= 0 {
  15153. return fmt.Errorf("proto: CompactionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  15154. }
  15155. switch fieldNum {
  15156. case 1:
  15157. if wireType != 0 {
  15158. return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType)
  15159. }
  15160. m.Revision = 0
  15161. for shift := uint(0); ; shift += 7 {
  15162. if shift >= 64 {
  15163. return ErrIntOverflowRpc
  15164. }
  15165. if iNdEx >= l {
  15166. return io.ErrUnexpectedEOF
  15167. }
  15168. b := dAtA[iNdEx]
  15169. iNdEx++
  15170. m.Revision |= int64(b&0x7F) << shift
  15171. if b < 0x80 {
  15172. break
  15173. }
  15174. }
  15175. case 2:
  15176. if wireType != 0 {
  15177. return fmt.Errorf("proto: wrong wireType = %d for field Physical", wireType)
  15178. }
  15179. var v int
  15180. for shift := uint(0); ; shift += 7 {
  15181. if shift >= 64 {
  15182. return ErrIntOverflowRpc
  15183. }
  15184. if iNdEx >= l {
  15185. return io.ErrUnexpectedEOF
  15186. }
  15187. b := dAtA[iNdEx]
  15188. iNdEx++
  15189. v |= int(b&0x7F) << shift
  15190. if b < 0x80 {
  15191. break
  15192. }
  15193. }
  15194. m.Physical = bool(v != 0)
  15195. default:
  15196. iNdEx = preIndex
  15197. skippy, err := skipRpc(dAtA[iNdEx:])
  15198. if err != nil {
  15199. return err
  15200. }
  15201. if skippy < 0 {
  15202. return ErrInvalidLengthRpc
  15203. }
  15204. if (iNdEx + skippy) < 0 {
  15205. return ErrInvalidLengthRpc
  15206. }
  15207. if (iNdEx + skippy) > l {
  15208. return io.ErrUnexpectedEOF
  15209. }
  15210. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15211. iNdEx += skippy
  15212. }
  15213. }
  15214. if iNdEx > l {
  15215. return io.ErrUnexpectedEOF
  15216. }
  15217. return nil
  15218. }
  15219. func (m *CompactionResponse) Unmarshal(dAtA []byte) error {
  15220. l := len(dAtA)
  15221. iNdEx := 0
  15222. for iNdEx < l {
  15223. preIndex := iNdEx
  15224. var wire uint64
  15225. for shift := uint(0); ; shift += 7 {
  15226. if shift >= 64 {
  15227. return ErrIntOverflowRpc
  15228. }
  15229. if iNdEx >= l {
  15230. return io.ErrUnexpectedEOF
  15231. }
  15232. b := dAtA[iNdEx]
  15233. iNdEx++
  15234. wire |= uint64(b&0x7F) << shift
  15235. if b < 0x80 {
  15236. break
  15237. }
  15238. }
  15239. fieldNum := int32(wire >> 3)
  15240. wireType := int(wire & 0x7)
  15241. if wireType == 4 {
  15242. return fmt.Errorf("proto: CompactionResponse: wiretype end group for non-group")
  15243. }
  15244. if fieldNum <= 0 {
  15245. return fmt.Errorf("proto: CompactionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  15246. }
  15247. switch fieldNum {
  15248. case 1:
  15249. if wireType != 2 {
  15250. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  15251. }
  15252. var msglen int
  15253. for shift := uint(0); ; shift += 7 {
  15254. if shift >= 64 {
  15255. return ErrIntOverflowRpc
  15256. }
  15257. if iNdEx >= l {
  15258. return io.ErrUnexpectedEOF
  15259. }
  15260. b := dAtA[iNdEx]
  15261. iNdEx++
  15262. msglen |= int(b&0x7F) << shift
  15263. if b < 0x80 {
  15264. break
  15265. }
  15266. }
  15267. if msglen < 0 {
  15268. return ErrInvalidLengthRpc
  15269. }
  15270. postIndex := iNdEx + msglen
  15271. if postIndex < 0 {
  15272. return ErrInvalidLengthRpc
  15273. }
  15274. if postIndex > l {
  15275. return io.ErrUnexpectedEOF
  15276. }
  15277. if m.Header == nil {
  15278. m.Header = &ResponseHeader{}
  15279. }
  15280. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  15281. return err
  15282. }
  15283. iNdEx = postIndex
  15284. default:
  15285. iNdEx = preIndex
  15286. skippy, err := skipRpc(dAtA[iNdEx:])
  15287. if err != nil {
  15288. return err
  15289. }
  15290. if skippy < 0 {
  15291. return ErrInvalidLengthRpc
  15292. }
  15293. if (iNdEx + skippy) < 0 {
  15294. return ErrInvalidLengthRpc
  15295. }
  15296. if (iNdEx + skippy) > l {
  15297. return io.ErrUnexpectedEOF
  15298. }
  15299. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15300. iNdEx += skippy
  15301. }
  15302. }
  15303. if iNdEx > l {
  15304. return io.ErrUnexpectedEOF
  15305. }
  15306. return nil
  15307. }
  15308. func (m *HashRequest) Unmarshal(dAtA []byte) error {
  15309. l := len(dAtA)
  15310. iNdEx := 0
  15311. for iNdEx < l {
  15312. preIndex := iNdEx
  15313. var wire uint64
  15314. for shift := uint(0); ; shift += 7 {
  15315. if shift >= 64 {
  15316. return ErrIntOverflowRpc
  15317. }
  15318. if iNdEx >= l {
  15319. return io.ErrUnexpectedEOF
  15320. }
  15321. b := dAtA[iNdEx]
  15322. iNdEx++
  15323. wire |= uint64(b&0x7F) << shift
  15324. if b < 0x80 {
  15325. break
  15326. }
  15327. }
  15328. fieldNum := int32(wire >> 3)
  15329. wireType := int(wire & 0x7)
  15330. if wireType == 4 {
  15331. return fmt.Errorf("proto: HashRequest: wiretype end group for non-group")
  15332. }
  15333. if fieldNum <= 0 {
  15334. return fmt.Errorf("proto: HashRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  15335. }
  15336. switch fieldNum {
  15337. default:
  15338. iNdEx = preIndex
  15339. skippy, err := skipRpc(dAtA[iNdEx:])
  15340. if err != nil {
  15341. return err
  15342. }
  15343. if skippy < 0 {
  15344. return ErrInvalidLengthRpc
  15345. }
  15346. if (iNdEx + skippy) < 0 {
  15347. return ErrInvalidLengthRpc
  15348. }
  15349. if (iNdEx + skippy) > l {
  15350. return io.ErrUnexpectedEOF
  15351. }
  15352. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15353. iNdEx += skippy
  15354. }
  15355. }
  15356. if iNdEx > l {
  15357. return io.ErrUnexpectedEOF
  15358. }
  15359. return nil
  15360. }
  15361. func (m *HashKVRequest) Unmarshal(dAtA []byte) error {
  15362. l := len(dAtA)
  15363. iNdEx := 0
  15364. for iNdEx < l {
  15365. preIndex := iNdEx
  15366. var wire uint64
  15367. for shift := uint(0); ; shift += 7 {
  15368. if shift >= 64 {
  15369. return ErrIntOverflowRpc
  15370. }
  15371. if iNdEx >= l {
  15372. return io.ErrUnexpectedEOF
  15373. }
  15374. b := dAtA[iNdEx]
  15375. iNdEx++
  15376. wire |= uint64(b&0x7F) << shift
  15377. if b < 0x80 {
  15378. break
  15379. }
  15380. }
  15381. fieldNum := int32(wire >> 3)
  15382. wireType := int(wire & 0x7)
  15383. if wireType == 4 {
  15384. return fmt.Errorf("proto: HashKVRequest: wiretype end group for non-group")
  15385. }
  15386. if fieldNum <= 0 {
  15387. return fmt.Errorf("proto: HashKVRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  15388. }
  15389. switch fieldNum {
  15390. case 1:
  15391. if wireType != 0 {
  15392. return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType)
  15393. }
  15394. m.Revision = 0
  15395. for shift := uint(0); ; shift += 7 {
  15396. if shift >= 64 {
  15397. return ErrIntOverflowRpc
  15398. }
  15399. if iNdEx >= l {
  15400. return io.ErrUnexpectedEOF
  15401. }
  15402. b := dAtA[iNdEx]
  15403. iNdEx++
  15404. m.Revision |= int64(b&0x7F) << shift
  15405. if b < 0x80 {
  15406. break
  15407. }
  15408. }
  15409. default:
  15410. iNdEx = preIndex
  15411. skippy, err := skipRpc(dAtA[iNdEx:])
  15412. if err != nil {
  15413. return err
  15414. }
  15415. if skippy < 0 {
  15416. return ErrInvalidLengthRpc
  15417. }
  15418. if (iNdEx + skippy) < 0 {
  15419. return ErrInvalidLengthRpc
  15420. }
  15421. if (iNdEx + skippy) > l {
  15422. return io.ErrUnexpectedEOF
  15423. }
  15424. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15425. iNdEx += skippy
  15426. }
  15427. }
  15428. if iNdEx > l {
  15429. return io.ErrUnexpectedEOF
  15430. }
  15431. return nil
  15432. }
  15433. func (m *HashKVResponse) Unmarshal(dAtA []byte) error {
  15434. l := len(dAtA)
  15435. iNdEx := 0
  15436. for iNdEx < l {
  15437. preIndex := iNdEx
  15438. var wire uint64
  15439. for shift := uint(0); ; shift += 7 {
  15440. if shift >= 64 {
  15441. return ErrIntOverflowRpc
  15442. }
  15443. if iNdEx >= l {
  15444. return io.ErrUnexpectedEOF
  15445. }
  15446. b := dAtA[iNdEx]
  15447. iNdEx++
  15448. wire |= uint64(b&0x7F) << shift
  15449. if b < 0x80 {
  15450. break
  15451. }
  15452. }
  15453. fieldNum := int32(wire >> 3)
  15454. wireType := int(wire & 0x7)
  15455. if wireType == 4 {
  15456. return fmt.Errorf("proto: HashKVResponse: wiretype end group for non-group")
  15457. }
  15458. if fieldNum <= 0 {
  15459. return fmt.Errorf("proto: HashKVResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  15460. }
  15461. switch fieldNum {
  15462. case 1:
  15463. if wireType != 2 {
  15464. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  15465. }
  15466. var msglen int
  15467. for shift := uint(0); ; shift += 7 {
  15468. if shift >= 64 {
  15469. return ErrIntOverflowRpc
  15470. }
  15471. if iNdEx >= l {
  15472. return io.ErrUnexpectedEOF
  15473. }
  15474. b := dAtA[iNdEx]
  15475. iNdEx++
  15476. msglen |= int(b&0x7F) << shift
  15477. if b < 0x80 {
  15478. break
  15479. }
  15480. }
  15481. if msglen < 0 {
  15482. return ErrInvalidLengthRpc
  15483. }
  15484. postIndex := iNdEx + msglen
  15485. if postIndex < 0 {
  15486. return ErrInvalidLengthRpc
  15487. }
  15488. if postIndex > l {
  15489. return io.ErrUnexpectedEOF
  15490. }
  15491. if m.Header == nil {
  15492. m.Header = &ResponseHeader{}
  15493. }
  15494. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  15495. return err
  15496. }
  15497. iNdEx = postIndex
  15498. case 2:
  15499. if wireType != 0 {
  15500. return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  15501. }
  15502. m.Hash = 0
  15503. for shift := uint(0); ; shift += 7 {
  15504. if shift >= 64 {
  15505. return ErrIntOverflowRpc
  15506. }
  15507. if iNdEx >= l {
  15508. return io.ErrUnexpectedEOF
  15509. }
  15510. b := dAtA[iNdEx]
  15511. iNdEx++
  15512. m.Hash |= uint32(b&0x7F) << shift
  15513. if b < 0x80 {
  15514. break
  15515. }
  15516. }
  15517. case 3:
  15518. if wireType != 0 {
  15519. return fmt.Errorf("proto: wrong wireType = %d for field CompactRevision", wireType)
  15520. }
  15521. m.CompactRevision = 0
  15522. for shift := uint(0); ; shift += 7 {
  15523. if shift >= 64 {
  15524. return ErrIntOverflowRpc
  15525. }
  15526. if iNdEx >= l {
  15527. return io.ErrUnexpectedEOF
  15528. }
  15529. b := dAtA[iNdEx]
  15530. iNdEx++
  15531. m.CompactRevision |= int64(b&0x7F) << shift
  15532. if b < 0x80 {
  15533. break
  15534. }
  15535. }
  15536. default:
  15537. iNdEx = preIndex
  15538. skippy, err := skipRpc(dAtA[iNdEx:])
  15539. if err != nil {
  15540. return err
  15541. }
  15542. if skippy < 0 {
  15543. return ErrInvalidLengthRpc
  15544. }
  15545. if (iNdEx + skippy) < 0 {
  15546. return ErrInvalidLengthRpc
  15547. }
  15548. if (iNdEx + skippy) > l {
  15549. return io.ErrUnexpectedEOF
  15550. }
  15551. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15552. iNdEx += skippy
  15553. }
  15554. }
  15555. if iNdEx > l {
  15556. return io.ErrUnexpectedEOF
  15557. }
  15558. return nil
  15559. }
  15560. func (m *HashResponse) Unmarshal(dAtA []byte) error {
  15561. l := len(dAtA)
  15562. iNdEx := 0
  15563. for iNdEx < l {
  15564. preIndex := iNdEx
  15565. var wire uint64
  15566. for shift := uint(0); ; shift += 7 {
  15567. if shift >= 64 {
  15568. return ErrIntOverflowRpc
  15569. }
  15570. if iNdEx >= l {
  15571. return io.ErrUnexpectedEOF
  15572. }
  15573. b := dAtA[iNdEx]
  15574. iNdEx++
  15575. wire |= uint64(b&0x7F) << shift
  15576. if b < 0x80 {
  15577. break
  15578. }
  15579. }
  15580. fieldNum := int32(wire >> 3)
  15581. wireType := int(wire & 0x7)
  15582. if wireType == 4 {
  15583. return fmt.Errorf("proto: HashResponse: wiretype end group for non-group")
  15584. }
  15585. if fieldNum <= 0 {
  15586. return fmt.Errorf("proto: HashResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  15587. }
  15588. switch fieldNum {
  15589. case 1:
  15590. if wireType != 2 {
  15591. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  15592. }
  15593. var msglen int
  15594. for shift := uint(0); ; shift += 7 {
  15595. if shift >= 64 {
  15596. return ErrIntOverflowRpc
  15597. }
  15598. if iNdEx >= l {
  15599. return io.ErrUnexpectedEOF
  15600. }
  15601. b := dAtA[iNdEx]
  15602. iNdEx++
  15603. msglen |= int(b&0x7F) << shift
  15604. if b < 0x80 {
  15605. break
  15606. }
  15607. }
  15608. if msglen < 0 {
  15609. return ErrInvalidLengthRpc
  15610. }
  15611. postIndex := iNdEx + msglen
  15612. if postIndex < 0 {
  15613. return ErrInvalidLengthRpc
  15614. }
  15615. if postIndex > l {
  15616. return io.ErrUnexpectedEOF
  15617. }
  15618. if m.Header == nil {
  15619. m.Header = &ResponseHeader{}
  15620. }
  15621. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  15622. return err
  15623. }
  15624. iNdEx = postIndex
  15625. case 2:
  15626. if wireType != 0 {
  15627. return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  15628. }
  15629. m.Hash = 0
  15630. for shift := uint(0); ; shift += 7 {
  15631. if shift >= 64 {
  15632. return ErrIntOverflowRpc
  15633. }
  15634. if iNdEx >= l {
  15635. return io.ErrUnexpectedEOF
  15636. }
  15637. b := dAtA[iNdEx]
  15638. iNdEx++
  15639. m.Hash |= uint32(b&0x7F) << shift
  15640. if b < 0x80 {
  15641. break
  15642. }
  15643. }
  15644. default:
  15645. iNdEx = preIndex
  15646. skippy, err := skipRpc(dAtA[iNdEx:])
  15647. if err != nil {
  15648. return err
  15649. }
  15650. if skippy < 0 {
  15651. return ErrInvalidLengthRpc
  15652. }
  15653. if (iNdEx + skippy) < 0 {
  15654. return ErrInvalidLengthRpc
  15655. }
  15656. if (iNdEx + skippy) > l {
  15657. return io.ErrUnexpectedEOF
  15658. }
  15659. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15660. iNdEx += skippy
  15661. }
  15662. }
  15663. if iNdEx > l {
  15664. return io.ErrUnexpectedEOF
  15665. }
  15666. return nil
  15667. }
  15668. func (m *SnapshotRequest) Unmarshal(dAtA []byte) error {
  15669. l := len(dAtA)
  15670. iNdEx := 0
  15671. for iNdEx < l {
  15672. preIndex := iNdEx
  15673. var wire uint64
  15674. for shift := uint(0); ; shift += 7 {
  15675. if shift >= 64 {
  15676. return ErrIntOverflowRpc
  15677. }
  15678. if iNdEx >= l {
  15679. return io.ErrUnexpectedEOF
  15680. }
  15681. b := dAtA[iNdEx]
  15682. iNdEx++
  15683. wire |= uint64(b&0x7F) << shift
  15684. if b < 0x80 {
  15685. break
  15686. }
  15687. }
  15688. fieldNum := int32(wire >> 3)
  15689. wireType := int(wire & 0x7)
  15690. if wireType == 4 {
  15691. return fmt.Errorf("proto: SnapshotRequest: wiretype end group for non-group")
  15692. }
  15693. if fieldNum <= 0 {
  15694. return fmt.Errorf("proto: SnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  15695. }
  15696. switch fieldNum {
  15697. default:
  15698. iNdEx = preIndex
  15699. skippy, err := skipRpc(dAtA[iNdEx:])
  15700. if err != nil {
  15701. return err
  15702. }
  15703. if skippy < 0 {
  15704. return ErrInvalidLengthRpc
  15705. }
  15706. if (iNdEx + skippy) < 0 {
  15707. return ErrInvalidLengthRpc
  15708. }
  15709. if (iNdEx + skippy) > l {
  15710. return io.ErrUnexpectedEOF
  15711. }
  15712. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15713. iNdEx += skippy
  15714. }
  15715. }
  15716. if iNdEx > l {
  15717. return io.ErrUnexpectedEOF
  15718. }
  15719. return nil
  15720. }
  15721. func (m *SnapshotResponse) Unmarshal(dAtA []byte) error {
  15722. l := len(dAtA)
  15723. iNdEx := 0
  15724. for iNdEx < l {
  15725. preIndex := iNdEx
  15726. var wire uint64
  15727. for shift := uint(0); ; shift += 7 {
  15728. if shift >= 64 {
  15729. return ErrIntOverflowRpc
  15730. }
  15731. if iNdEx >= l {
  15732. return io.ErrUnexpectedEOF
  15733. }
  15734. b := dAtA[iNdEx]
  15735. iNdEx++
  15736. wire |= uint64(b&0x7F) << shift
  15737. if b < 0x80 {
  15738. break
  15739. }
  15740. }
  15741. fieldNum := int32(wire >> 3)
  15742. wireType := int(wire & 0x7)
  15743. if wireType == 4 {
  15744. return fmt.Errorf("proto: SnapshotResponse: wiretype end group for non-group")
  15745. }
  15746. if fieldNum <= 0 {
  15747. return fmt.Errorf("proto: SnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  15748. }
  15749. switch fieldNum {
  15750. case 1:
  15751. if wireType != 2 {
  15752. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  15753. }
  15754. var msglen int
  15755. for shift := uint(0); ; shift += 7 {
  15756. if shift >= 64 {
  15757. return ErrIntOverflowRpc
  15758. }
  15759. if iNdEx >= l {
  15760. return io.ErrUnexpectedEOF
  15761. }
  15762. b := dAtA[iNdEx]
  15763. iNdEx++
  15764. msglen |= int(b&0x7F) << shift
  15765. if b < 0x80 {
  15766. break
  15767. }
  15768. }
  15769. if msglen < 0 {
  15770. return ErrInvalidLengthRpc
  15771. }
  15772. postIndex := iNdEx + msglen
  15773. if postIndex < 0 {
  15774. return ErrInvalidLengthRpc
  15775. }
  15776. if postIndex > l {
  15777. return io.ErrUnexpectedEOF
  15778. }
  15779. if m.Header == nil {
  15780. m.Header = &ResponseHeader{}
  15781. }
  15782. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  15783. return err
  15784. }
  15785. iNdEx = postIndex
  15786. case 2:
  15787. if wireType != 0 {
  15788. return fmt.Errorf("proto: wrong wireType = %d for field RemainingBytes", wireType)
  15789. }
  15790. m.RemainingBytes = 0
  15791. for shift := uint(0); ; shift += 7 {
  15792. if shift >= 64 {
  15793. return ErrIntOverflowRpc
  15794. }
  15795. if iNdEx >= l {
  15796. return io.ErrUnexpectedEOF
  15797. }
  15798. b := dAtA[iNdEx]
  15799. iNdEx++
  15800. m.RemainingBytes |= uint64(b&0x7F) << shift
  15801. if b < 0x80 {
  15802. break
  15803. }
  15804. }
  15805. case 3:
  15806. if wireType != 2 {
  15807. return fmt.Errorf("proto: wrong wireType = %d for field Blob", wireType)
  15808. }
  15809. var byteLen int
  15810. for shift := uint(0); ; shift += 7 {
  15811. if shift >= 64 {
  15812. return ErrIntOverflowRpc
  15813. }
  15814. if iNdEx >= l {
  15815. return io.ErrUnexpectedEOF
  15816. }
  15817. b := dAtA[iNdEx]
  15818. iNdEx++
  15819. byteLen |= int(b&0x7F) << shift
  15820. if b < 0x80 {
  15821. break
  15822. }
  15823. }
  15824. if byteLen < 0 {
  15825. return ErrInvalidLengthRpc
  15826. }
  15827. postIndex := iNdEx + byteLen
  15828. if postIndex < 0 {
  15829. return ErrInvalidLengthRpc
  15830. }
  15831. if postIndex > l {
  15832. return io.ErrUnexpectedEOF
  15833. }
  15834. m.Blob = append(m.Blob[:0], dAtA[iNdEx:postIndex]...)
  15835. if m.Blob == nil {
  15836. m.Blob = []byte{}
  15837. }
  15838. iNdEx = postIndex
  15839. default:
  15840. iNdEx = preIndex
  15841. skippy, err := skipRpc(dAtA[iNdEx:])
  15842. if err != nil {
  15843. return err
  15844. }
  15845. if skippy < 0 {
  15846. return ErrInvalidLengthRpc
  15847. }
  15848. if (iNdEx + skippy) < 0 {
  15849. return ErrInvalidLengthRpc
  15850. }
  15851. if (iNdEx + skippy) > l {
  15852. return io.ErrUnexpectedEOF
  15853. }
  15854. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15855. iNdEx += skippy
  15856. }
  15857. }
  15858. if iNdEx > l {
  15859. return io.ErrUnexpectedEOF
  15860. }
  15861. return nil
  15862. }
  15863. func (m *WatchRequest) Unmarshal(dAtA []byte) error {
  15864. l := len(dAtA)
  15865. iNdEx := 0
  15866. for iNdEx < l {
  15867. preIndex := iNdEx
  15868. var wire uint64
  15869. for shift := uint(0); ; shift += 7 {
  15870. if shift >= 64 {
  15871. return ErrIntOverflowRpc
  15872. }
  15873. if iNdEx >= l {
  15874. return io.ErrUnexpectedEOF
  15875. }
  15876. b := dAtA[iNdEx]
  15877. iNdEx++
  15878. wire |= uint64(b&0x7F) << shift
  15879. if b < 0x80 {
  15880. break
  15881. }
  15882. }
  15883. fieldNum := int32(wire >> 3)
  15884. wireType := int(wire & 0x7)
  15885. if wireType == 4 {
  15886. return fmt.Errorf("proto: WatchRequest: wiretype end group for non-group")
  15887. }
  15888. if fieldNum <= 0 {
  15889. return fmt.Errorf("proto: WatchRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  15890. }
  15891. switch fieldNum {
  15892. case 1:
  15893. if wireType != 2 {
  15894. return fmt.Errorf("proto: wrong wireType = %d for field CreateRequest", wireType)
  15895. }
  15896. var msglen int
  15897. for shift := uint(0); ; shift += 7 {
  15898. if shift >= 64 {
  15899. return ErrIntOverflowRpc
  15900. }
  15901. if iNdEx >= l {
  15902. return io.ErrUnexpectedEOF
  15903. }
  15904. b := dAtA[iNdEx]
  15905. iNdEx++
  15906. msglen |= int(b&0x7F) << shift
  15907. if b < 0x80 {
  15908. break
  15909. }
  15910. }
  15911. if msglen < 0 {
  15912. return ErrInvalidLengthRpc
  15913. }
  15914. postIndex := iNdEx + msglen
  15915. if postIndex < 0 {
  15916. return ErrInvalidLengthRpc
  15917. }
  15918. if postIndex > l {
  15919. return io.ErrUnexpectedEOF
  15920. }
  15921. v := &WatchCreateRequest{}
  15922. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  15923. return err
  15924. }
  15925. m.RequestUnion = &WatchRequest_CreateRequest{v}
  15926. iNdEx = postIndex
  15927. case 2:
  15928. if wireType != 2 {
  15929. return fmt.Errorf("proto: wrong wireType = %d for field CancelRequest", wireType)
  15930. }
  15931. var msglen int
  15932. for shift := uint(0); ; shift += 7 {
  15933. if shift >= 64 {
  15934. return ErrIntOverflowRpc
  15935. }
  15936. if iNdEx >= l {
  15937. return io.ErrUnexpectedEOF
  15938. }
  15939. b := dAtA[iNdEx]
  15940. iNdEx++
  15941. msglen |= int(b&0x7F) << shift
  15942. if b < 0x80 {
  15943. break
  15944. }
  15945. }
  15946. if msglen < 0 {
  15947. return ErrInvalidLengthRpc
  15948. }
  15949. postIndex := iNdEx + msglen
  15950. if postIndex < 0 {
  15951. return ErrInvalidLengthRpc
  15952. }
  15953. if postIndex > l {
  15954. return io.ErrUnexpectedEOF
  15955. }
  15956. v := &WatchCancelRequest{}
  15957. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  15958. return err
  15959. }
  15960. m.RequestUnion = &WatchRequest_CancelRequest{v}
  15961. iNdEx = postIndex
  15962. case 3:
  15963. if wireType != 2 {
  15964. return fmt.Errorf("proto: wrong wireType = %d for field ProgressRequest", wireType)
  15965. }
  15966. var msglen int
  15967. for shift := uint(0); ; shift += 7 {
  15968. if shift >= 64 {
  15969. return ErrIntOverflowRpc
  15970. }
  15971. if iNdEx >= l {
  15972. return io.ErrUnexpectedEOF
  15973. }
  15974. b := dAtA[iNdEx]
  15975. iNdEx++
  15976. msglen |= int(b&0x7F) << shift
  15977. if b < 0x80 {
  15978. break
  15979. }
  15980. }
  15981. if msglen < 0 {
  15982. return ErrInvalidLengthRpc
  15983. }
  15984. postIndex := iNdEx + msglen
  15985. if postIndex < 0 {
  15986. return ErrInvalidLengthRpc
  15987. }
  15988. if postIndex > l {
  15989. return io.ErrUnexpectedEOF
  15990. }
  15991. v := &WatchProgressRequest{}
  15992. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  15993. return err
  15994. }
  15995. m.RequestUnion = &WatchRequest_ProgressRequest{v}
  15996. iNdEx = postIndex
  15997. default:
  15998. iNdEx = preIndex
  15999. skippy, err := skipRpc(dAtA[iNdEx:])
  16000. if err != nil {
  16001. return err
  16002. }
  16003. if skippy < 0 {
  16004. return ErrInvalidLengthRpc
  16005. }
  16006. if (iNdEx + skippy) < 0 {
  16007. return ErrInvalidLengthRpc
  16008. }
  16009. if (iNdEx + skippy) > l {
  16010. return io.ErrUnexpectedEOF
  16011. }
  16012. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16013. iNdEx += skippy
  16014. }
  16015. }
  16016. if iNdEx > l {
  16017. return io.ErrUnexpectedEOF
  16018. }
  16019. return nil
  16020. }
  16021. func (m *WatchCreateRequest) Unmarshal(dAtA []byte) error {
  16022. l := len(dAtA)
  16023. iNdEx := 0
  16024. for iNdEx < l {
  16025. preIndex := iNdEx
  16026. var wire uint64
  16027. for shift := uint(0); ; shift += 7 {
  16028. if shift >= 64 {
  16029. return ErrIntOverflowRpc
  16030. }
  16031. if iNdEx >= l {
  16032. return io.ErrUnexpectedEOF
  16033. }
  16034. b := dAtA[iNdEx]
  16035. iNdEx++
  16036. wire |= uint64(b&0x7F) << shift
  16037. if b < 0x80 {
  16038. break
  16039. }
  16040. }
  16041. fieldNum := int32(wire >> 3)
  16042. wireType := int(wire & 0x7)
  16043. if wireType == 4 {
  16044. return fmt.Errorf("proto: WatchCreateRequest: wiretype end group for non-group")
  16045. }
  16046. if fieldNum <= 0 {
  16047. return fmt.Errorf("proto: WatchCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  16048. }
  16049. switch fieldNum {
  16050. case 1:
  16051. if wireType != 2 {
  16052. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  16053. }
  16054. var byteLen int
  16055. for shift := uint(0); ; shift += 7 {
  16056. if shift >= 64 {
  16057. return ErrIntOverflowRpc
  16058. }
  16059. if iNdEx >= l {
  16060. return io.ErrUnexpectedEOF
  16061. }
  16062. b := dAtA[iNdEx]
  16063. iNdEx++
  16064. byteLen |= int(b&0x7F) << shift
  16065. if b < 0x80 {
  16066. break
  16067. }
  16068. }
  16069. if byteLen < 0 {
  16070. return ErrInvalidLengthRpc
  16071. }
  16072. postIndex := iNdEx + byteLen
  16073. if postIndex < 0 {
  16074. return ErrInvalidLengthRpc
  16075. }
  16076. if postIndex > l {
  16077. return io.ErrUnexpectedEOF
  16078. }
  16079. m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
  16080. if m.Key == nil {
  16081. m.Key = []byte{}
  16082. }
  16083. iNdEx = postIndex
  16084. case 2:
  16085. if wireType != 2 {
  16086. return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType)
  16087. }
  16088. var byteLen int
  16089. for shift := uint(0); ; shift += 7 {
  16090. if shift >= 64 {
  16091. return ErrIntOverflowRpc
  16092. }
  16093. if iNdEx >= l {
  16094. return io.ErrUnexpectedEOF
  16095. }
  16096. b := dAtA[iNdEx]
  16097. iNdEx++
  16098. byteLen |= int(b&0x7F) << shift
  16099. if b < 0x80 {
  16100. break
  16101. }
  16102. }
  16103. if byteLen < 0 {
  16104. return ErrInvalidLengthRpc
  16105. }
  16106. postIndex := iNdEx + byteLen
  16107. if postIndex < 0 {
  16108. return ErrInvalidLengthRpc
  16109. }
  16110. if postIndex > l {
  16111. return io.ErrUnexpectedEOF
  16112. }
  16113. m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...)
  16114. if m.RangeEnd == nil {
  16115. m.RangeEnd = []byte{}
  16116. }
  16117. iNdEx = postIndex
  16118. case 3:
  16119. if wireType != 0 {
  16120. return fmt.Errorf("proto: wrong wireType = %d for field StartRevision", wireType)
  16121. }
  16122. m.StartRevision = 0
  16123. for shift := uint(0); ; shift += 7 {
  16124. if shift >= 64 {
  16125. return ErrIntOverflowRpc
  16126. }
  16127. if iNdEx >= l {
  16128. return io.ErrUnexpectedEOF
  16129. }
  16130. b := dAtA[iNdEx]
  16131. iNdEx++
  16132. m.StartRevision |= int64(b&0x7F) << shift
  16133. if b < 0x80 {
  16134. break
  16135. }
  16136. }
  16137. case 4:
  16138. if wireType != 0 {
  16139. return fmt.Errorf("proto: wrong wireType = %d for field ProgressNotify", wireType)
  16140. }
  16141. var v int
  16142. for shift := uint(0); ; shift += 7 {
  16143. if shift >= 64 {
  16144. return ErrIntOverflowRpc
  16145. }
  16146. if iNdEx >= l {
  16147. return io.ErrUnexpectedEOF
  16148. }
  16149. b := dAtA[iNdEx]
  16150. iNdEx++
  16151. v |= int(b&0x7F) << shift
  16152. if b < 0x80 {
  16153. break
  16154. }
  16155. }
  16156. m.ProgressNotify = bool(v != 0)
  16157. case 5:
  16158. if wireType == 0 {
  16159. var v WatchCreateRequest_FilterType
  16160. for shift := uint(0); ; shift += 7 {
  16161. if shift >= 64 {
  16162. return ErrIntOverflowRpc
  16163. }
  16164. if iNdEx >= l {
  16165. return io.ErrUnexpectedEOF
  16166. }
  16167. b := dAtA[iNdEx]
  16168. iNdEx++
  16169. v |= WatchCreateRequest_FilterType(b&0x7F) << shift
  16170. if b < 0x80 {
  16171. break
  16172. }
  16173. }
  16174. m.Filters = append(m.Filters, v)
  16175. } else if wireType == 2 {
  16176. var packedLen int
  16177. for shift := uint(0); ; shift += 7 {
  16178. if shift >= 64 {
  16179. return ErrIntOverflowRpc
  16180. }
  16181. if iNdEx >= l {
  16182. return io.ErrUnexpectedEOF
  16183. }
  16184. b := dAtA[iNdEx]
  16185. iNdEx++
  16186. packedLen |= int(b&0x7F) << shift
  16187. if b < 0x80 {
  16188. break
  16189. }
  16190. }
  16191. if packedLen < 0 {
  16192. return ErrInvalidLengthRpc
  16193. }
  16194. postIndex := iNdEx + packedLen
  16195. if postIndex < 0 {
  16196. return ErrInvalidLengthRpc
  16197. }
  16198. if postIndex > l {
  16199. return io.ErrUnexpectedEOF
  16200. }
  16201. var elementCount int
  16202. if elementCount != 0 && len(m.Filters) == 0 {
  16203. m.Filters = make([]WatchCreateRequest_FilterType, 0, elementCount)
  16204. }
  16205. for iNdEx < postIndex {
  16206. var v WatchCreateRequest_FilterType
  16207. for shift := uint(0); ; shift += 7 {
  16208. if shift >= 64 {
  16209. return ErrIntOverflowRpc
  16210. }
  16211. if iNdEx >= l {
  16212. return io.ErrUnexpectedEOF
  16213. }
  16214. b := dAtA[iNdEx]
  16215. iNdEx++
  16216. v |= WatchCreateRequest_FilterType(b&0x7F) << shift
  16217. if b < 0x80 {
  16218. break
  16219. }
  16220. }
  16221. m.Filters = append(m.Filters, v)
  16222. }
  16223. } else {
  16224. return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
  16225. }
  16226. case 6:
  16227. if wireType != 0 {
  16228. return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType)
  16229. }
  16230. var v int
  16231. for shift := uint(0); ; shift += 7 {
  16232. if shift >= 64 {
  16233. return ErrIntOverflowRpc
  16234. }
  16235. if iNdEx >= l {
  16236. return io.ErrUnexpectedEOF
  16237. }
  16238. b := dAtA[iNdEx]
  16239. iNdEx++
  16240. v |= int(b&0x7F) << shift
  16241. if b < 0x80 {
  16242. break
  16243. }
  16244. }
  16245. m.PrevKv = bool(v != 0)
  16246. case 7:
  16247. if wireType != 0 {
  16248. return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType)
  16249. }
  16250. m.WatchId = 0
  16251. for shift := uint(0); ; shift += 7 {
  16252. if shift >= 64 {
  16253. return ErrIntOverflowRpc
  16254. }
  16255. if iNdEx >= l {
  16256. return io.ErrUnexpectedEOF
  16257. }
  16258. b := dAtA[iNdEx]
  16259. iNdEx++
  16260. m.WatchId |= int64(b&0x7F) << shift
  16261. if b < 0x80 {
  16262. break
  16263. }
  16264. }
  16265. case 8:
  16266. if wireType != 0 {
  16267. return fmt.Errorf("proto: wrong wireType = %d for field Fragment", wireType)
  16268. }
  16269. var v int
  16270. for shift := uint(0); ; shift += 7 {
  16271. if shift >= 64 {
  16272. return ErrIntOverflowRpc
  16273. }
  16274. if iNdEx >= l {
  16275. return io.ErrUnexpectedEOF
  16276. }
  16277. b := dAtA[iNdEx]
  16278. iNdEx++
  16279. v |= int(b&0x7F) << shift
  16280. if b < 0x80 {
  16281. break
  16282. }
  16283. }
  16284. m.Fragment = bool(v != 0)
  16285. default:
  16286. iNdEx = preIndex
  16287. skippy, err := skipRpc(dAtA[iNdEx:])
  16288. if err != nil {
  16289. return err
  16290. }
  16291. if skippy < 0 {
  16292. return ErrInvalidLengthRpc
  16293. }
  16294. if (iNdEx + skippy) < 0 {
  16295. return ErrInvalidLengthRpc
  16296. }
  16297. if (iNdEx + skippy) > l {
  16298. return io.ErrUnexpectedEOF
  16299. }
  16300. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16301. iNdEx += skippy
  16302. }
  16303. }
  16304. if iNdEx > l {
  16305. return io.ErrUnexpectedEOF
  16306. }
  16307. return nil
  16308. }
  16309. func (m *WatchCancelRequest) Unmarshal(dAtA []byte) error {
  16310. l := len(dAtA)
  16311. iNdEx := 0
  16312. for iNdEx < l {
  16313. preIndex := iNdEx
  16314. var wire uint64
  16315. for shift := uint(0); ; shift += 7 {
  16316. if shift >= 64 {
  16317. return ErrIntOverflowRpc
  16318. }
  16319. if iNdEx >= l {
  16320. return io.ErrUnexpectedEOF
  16321. }
  16322. b := dAtA[iNdEx]
  16323. iNdEx++
  16324. wire |= uint64(b&0x7F) << shift
  16325. if b < 0x80 {
  16326. break
  16327. }
  16328. }
  16329. fieldNum := int32(wire >> 3)
  16330. wireType := int(wire & 0x7)
  16331. if wireType == 4 {
  16332. return fmt.Errorf("proto: WatchCancelRequest: wiretype end group for non-group")
  16333. }
  16334. if fieldNum <= 0 {
  16335. return fmt.Errorf("proto: WatchCancelRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  16336. }
  16337. switch fieldNum {
  16338. case 1:
  16339. if wireType != 0 {
  16340. return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType)
  16341. }
  16342. m.WatchId = 0
  16343. for shift := uint(0); ; shift += 7 {
  16344. if shift >= 64 {
  16345. return ErrIntOverflowRpc
  16346. }
  16347. if iNdEx >= l {
  16348. return io.ErrUnexpectedEOF
  16349. }
  16350. b := dAtA[iNdEx]
  16351. iNdEx++
  16352. m.WatchId |= int64(b&0x7F) << shift
  16353. if b < 0x80 {
  16354. break
  16355. }
  16356. }
  16357. default:
  16358. iNdEx = preIndex
  16359. skippy, err := skipRpc(dAtA[iNdEx:])
  16360. if err != nil {
  16361. return err
  16362. }
  16363. if skippy < 0 {
  16364. return ErrInvalidLengthRpc
  16365. }
  16366. if (iNdEx + skippy) < 0 {
  16367. return ErrInvalidLengthRpc
  16368. }
  16369. if (iNdEx + skippy) > l {
  16370. return io.ErrUnexpectedEOF
  16371. }
  16372. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16373. iNdEx += skippy
  16374. }
  16375. }
  16376. if iNdEx > l {
  16377. return io.ErrUnexpectedEOF
  16378. }
  16379. return nil
  16380. }
  16381. func (m *WatchProgressRequest) Unmarshal(dAtA []byte) error {
  16382. l := len(dAtA)
  16383. iNdEx := 0
  16384. for iNdEx < l {
  16385. preIndex := iNdEx
  16386. var wire uint64
  16387. for shift := uint(0); ; shift += 7 {
  16388. if shift >= 64 {
  16389. return ErrIntOverflowRpc
  16390. }
  16391. if iNdEx >= l {
  16392. return io.ErrUnexpectedEOF
  16393. }
  16394. b := dAtA[iNdEx]
  16395. iNdEx++
  16396. wire |= uint64(b&0x7F) << shift
  16397. if b < 0x80 {
  16398. break
  16399. }
  16400. }
  16401. fieldNum := int32(wire >> 3)
  16402. wireType := int(wire & 0x7)
  16403. if wireType == 4 {
  16404. return fmt.Errorf("proto: WatchProgressRequest: wiretype end group for non-group")
  16405. }
  16406. if fieldNum <= 0 {
  16407. return fmt.Errorf("proto: WatchProgressRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  16408. }
  16409. switch fieldNum {
  16410. default:
  16411. iNdEx = preIndex
  16412. skippy, err := skipRpc(dAtA[iNdEx:])
  16413. if err != nil {
  16414. return err
  16415. }
  16416. if skippy < 0 {
  16417. return ErrInvalidLengthRpc
  16418. }
  16419. if (iNdEx + skippy) < 0 {
  16420. return ErrInvalidLengthRpc
  16421. }
  16422. if (iNdEx + skippy) > l {
  16423. return io.ErrUnexpectedEOF
  16424. }
  16425. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16426. iNdEx += skippy
  16427. }
  16428. }
  16429. if iNdEx > l {
  16430. return io.ErrUnexpectedEOF
  16431. }
  16432. return nil
  16433. }
  16434. func (m *WatchResponse) Unmarshal(dAtA []byte) error {
  16435. l := len(dAtA)
  16436. iNdEx := 0
  16437. for iNdEx < l {
  16438. preIndex := iNdEx
  16439. var wire uint64
  16440. for shift := uint(0); ; shift += 7 {
  16441. if shift >= 64 {
  16442. return ErrIntOverflowRpc
  16443. }
  16444. if iNdEx >= l {
  16445. return io.ErrUnexpectedEOF
  16446. }
  16447. b := dAtA[iNdEx]
  16448. iNdEx++
  16449. wire |= uint64(b&0x7F) << shift
  16450. if b < 0x80 {
  16451. break
  16452. }
  16453. }
  16454. fieldNum := int32(wire >> 3)
  16455. wireType := int(wire & 0x7)
  16456. if wireType == 4 {
  16457. return fmt.Errorf("proto: WatchResponse: wiretype end group for non-group")
  16458. }
  16459. if fieldNum <= 0 {
  16460. return fmt.Errorf("proto: WatchResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  16461. }
  16462. switch fieldNum {
  16463. case 1:
  16464. if wireType != 2 {
  16465. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  16466. }
  16467. var msglen int
  16468. for shift := uint(0); ; shift += 7 {
  16469. if shift >= 64 {
  16470. return ErrIntOverflowRpc
  16471. }
  16472. if iNdEx >= l {
  16473. return io.ErrUnexpectedEOF
  16474. }
  16475. b := dAtA[iNdEx]
  16476. iNdEx++
  16477. msglen |= int(b&0x7F) << shift
  16478. if b < 0x80 {
  16479. break
  16480. }
  16481. }
  16482. if msglen < 0 {
  16483. return ErrInvalidLengthRpc
  16484. }
  16485. postIndex := iNdEx + msglen
  16486. if postIndex < 0 {
  16487. return ErrInvalidLengthRpc
  16488. }
  16489. if postIndex > l {
  16490. return io.ErrUnexpectedEOF
  16491. }
  16492. if m.Header == nil {
  16493. m.Header = &ResponseHeader{}
  16494. }
  16495. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  16496. return err
  16497. }
  16498. iNdEx = postIndex
  16499. case 2:
  16500. if wireType != 0 {
  16501. return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType)
  16502. }
  16503. m.WatchId = 0
  16504. for shift := uint(0); ; shift += 7 {
  16505. if shift >= 64 {
  16506. return ErrIntOverflowRpc
  16507. }
  16508. if iNdEx >= l {
  16509. return io.ErrUnexpectedEOF
  16510. }
  16511. b := dAtA[iNdEx]
  16512. iNdEx++
  16513. m.WatchId |= int64(b&0x7F) << shift
  16514. if b < 0x80 {
  16515. break
  16516. }
  16517. }
  16518. case 3:
  16519. if wireType != 0 {
  16520. return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
  16521. }
  16522. var v int
  16523. for shift := uint(0); ; shift += 7 {
  16524. if shift >= 64 {
  16525. return ErrIntOverflowRpc
  16526. }
  16527. if iNdEx >= l {
  16528. return io.ErrUnexpectedEOF
  16529. }
  16530. b := dAtA[iNdEx]
  16531. iNdEx++
  16532. v |= int(b&0x7F) << shift
  16533. if b < 0x80 {
  16534. break
  16535. }
  16536. }
  16537. m.Created = bool(v != 0)
  16538. case 4:
  16539. if wireType != 0 {
  16540. return fmt.Errorf("proto: wrong wireType = %d for field Canceled", wireType)
  16541. }
  16542. var v int
  16543. for shift := uint(0); ; shift += 7 {
  16544. if shift >= 64 {
  16545. return ErrIntOverflowRpc
  16546. }
  16547. if iNdEx >= l {
  16548. return io.ErrUnexpectedEOF
  16549. }
  16550. b := dAtA[iNdEx]
  16551. iNdEx++
  16552. v |= int(b&0x7F) << shift
  16553. if b < 0x80 {
  16554. break
  16555. }
  16556. }
  16557. m.Canceled = bool(v != 0)
  16558. case 5:
  16559. if wireType != 0 {
  16560. return fmt.Errorf("proto: wrong wireType = %d for field CompactRevision", wireType)
  16561. }
  16562. m.CompactRevision = 0
  16563. for shift := uint(0); ; shift += 7 {
  16564. if shift >= 64 {
  16565. return ErrIntOverflowRpc
  16566. }
  16567. if iNdEx >= l {
  16568. return io.ErrUnexpectedEOF
  16569. }
  16570. b := dAtA[iNdEx]
  16571. iNdEx++
  16572. m.CompactRevision |= int64(b&0x7F) << shift
  16573. if b < 0x80 {
  16574. break
  16575. }
  16576. }
  16577. case 6:
  16578. if wireType != 2 {
  16579. return fmt.Errorf("proto: wrong wireType = %d for field CancelReason", wireType)
  16580. }
  16581. var stringLen uint64
  16582. for shift := uint(0); ; shift += 7 {
  16583. if shift >= 64 {
  16584. return ErrIntOverflowRpc
  16585. }
  16586. if iNdEx >= l {
  16587. return io.ErrUnexpectedEOF
  16588. }
  16589. b := dAtA[iNdEx]
  16590. iNdEx++
  16591. stringLen |= uint64(b&0x7F) << shift
  16592. if b < 0x80 {
  16593. break
  16594. }
  16595. }
  16596. intStringLen := int(stringLen)
  16597. if intStringLen < 0 {
  16598. return ErrInvalidLengthRpc
  16599. }
  16600. postIndex := iNdEx + intStringLen
  16601. if postIndex < 0 {
  16602. return ErrInvalidLengthRpc
  16603. }
  16604. if postIndex > l {
  16605. return io.ErrUnexpectedEOF
  16606. }
  16607. m.CancelReason = string(dAtA[iNdEx:postIndex])
  16608. iNdEx = postIndex
  16609. case 7:
  16610. if wireType != 0 {
  16611. return fmt.Errorf("proto: wrong wireType = %d for field Fragment", wireType)
  16612. }
  16613. var v int
  16614. for shift := uint(0); ; shift += 7 {
  16615. if shift >= 64 {
  16616. return ErrIntOverflowRpc
  16617. }
  16618. if iNdEx >= l {
  16619. return io.ErrUnexpectedEOF
  16620. }
  16621. b := dAtA[iNdEx]
  16622. iNdEx++
  16623. v |= int(b&0x7F) << shift
  16624. if b < 0x80 {
  16625. break
  16626. }
  16627. }
  16628. m.Fragment = bool(v != 0)
  16629. case 11:
  16630. if wireType != 2 {
  16631. return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType)
  16632. }
  16633. var msglen int
  16634. for shift := uint(0); ; shift += 7 {
  16635. if shift >= 64 {
  16636. return ErrIntOverflowRpc
  16637. }
  16638. if iNdEx >= l {
  16639. return io.ErrUnexpectedEOF
  16640. }
  16641. b := dAtA[iNdEx]
  16642. iNdEx++
  16643. msglen |= int(b&0x7F) << shift
  16644. if b < 0x80 {
  16645. break
  16646. }
  16647. }
  16648. if msglen < 0 {
  16649. return ErrInvalidLengthRpc
  16650. }
  16651. postIndex := iNdEx + msglen
  16652. if postIndex < 0 {
  16653. return ErrInvalidLengthRpc
  16654. }
  16655. if postIndex > l {
  16656. return io.ErrUnexpectedEOF
  16657. }
  16658. m.Events = append(m.Events, &mvccpb.Event{})
  16659. if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  16660. return err
  16661. }
  16662. iNdEx = postIndex
  16663. default:
  16664. iNdEx = preIndex
  16665. skippy, err := skipRpc(dAtA[iNdEx:])
  16666. if err != nil {
  16667. return err
  16668. }
  16669. if skippy < 0 {
  16670. return ErrInvalidLengthRpc
  16671. }
  16672. if (iNdEx + skippy) < 0 {
  16673. return ErrInvalidLengthRpc
  16674. }
  16675. if (iNdEx + skippy) > l {
  16676. return io.ErrUnexpectedEOF
  16677. }
  16678. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16679. iNdEx += skippy
  16680. }
  16681. }
  16682. if iNdEx > l {
  16683. return io.ErrUnexpectedEOF
  16684. }
  16685. return nil
  16686. }
  16687. func (m *LeaseGrantRequest) Unmarshal(dAtA []byte) error {
  16688. l := len(dAtA)
  16689. iNdEx := 0
  16690. for iNdEx < l {
  16691. preIndex := iNdEx
  16692. var wire uint64
  16693. for shift := uint(0); ; shift += 7 {
  16694. if shift >= 64 {
  16695. return ErrIntOverflowRpc
  16696. }
  16697. if iNdEx >= l {
  16698. return io.ErrUnexpectedEOF
  16699. }
  16700. b := dAtA[iNdEx]
  16701. iNdEx++
  16702. wire |= uint64(b&0x7F) << shift
  16703. if b < 0x80 {
  16704. break
  16705. }
  16706. }
  16707. fieldNum := int32(wire >> 3)
  16708. wireType := int(wire & 0x7)
  16709. if wireType == 4 {
  16710. return fmt.Errorf("proto: LeaseGrantRequest: wiretype end group for non-group")
  16711. }
  16712. if fieldNum <= 0 {
  16713. return fmt.Errorf("proto: LeaseGrantRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  16714. }
  16715. switch fieldNum {
  16716. case 1:
  16717. if wireType != 0 {
  16718. return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
  16719. }
  16720. m.TTL = 0
  16721. for shift := uint(0); ; shift += 7 {
  16722. if shift >= 64 {
  16723. return ErrIntOverflowRpc
  16724. }
  16725. if iNdEx >= l {
  16726. return io.ErrUnexpectedEOF
  16727. }
  16728. b := dAtA[iNdEx]
  16729. iNdEx++
  16730. m.TTL |= int64(b&0x7F) << shift
  16731. if b < 0x80 {
  16732. break
  16733. }
  16734. }
  16735. case 2:
  16736. if wireType != 0 {
  16737. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  16738. }
  16739. m.ID = 0
  16740. for shift := uint(0); ; shift += 7 {
  16741. if shift >= 64 {
  16742. return ErrIntOverflowRpc
  16743. }
  16744. if iNdEx >= l {
  16745. return io.ErrUnexpectedEOF
  16746. }
  16747. b := dAtA[iNdEx]
  16748. iNdEx++
  16749. m.ID |= int64(b&0x7F) << shift
  16750. if b < 0x80 {
  16751. break
  16752. }
  16753. }
  16754. default:
  16755. iNdEx = preIndex
  16756. skippy, err := skipRpc(dAtA[iNdEx:])
  16757. if err != nil {
  16758. return err
  16759. }
  16760. if skippy < 0 {
  16761. return ErrInvalidLengthRpc
  16762. }
  16763. if (iNdEx + skippy) < 0 {
  16764. return ErrInvalidLengthRpc
  16765. }
  16766. if (iNdEx + skippy) > l {
  16767. return io.ErrUnexpectedEOF
  16768. }
  16769. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16770. iNdEx += skippy
  16771. }
  16772. }
  16773. if iNdEx > l {
  16774. return io.ErrUnexpectedEOF
  16775. }
  16776. return nil
  16777. }
  16778. func (m *LeaseGrantResponse) Unmarshal(dAtA []byte) error {
  16779. l := len(dAtA)
  16780. iNdEx := 0
  16781. for iNdEx < l {
  16782. preIndex := iNdEx
  16783. var wire uint64
  16784. for shift := uint(0); ; shift += 7 {
  16785. if shift >= 64 {
  16786. return ErrIntOverflowRpc
  16787. }
  16788. if iNdEx >= l {
  16789. return io.ErrUnexpectedEOF
  16790. }
  16791. b := dAtA[iNdEx]
  16792. iNdEx++
  16793. wire |= uint64(b&0x7F) << shift
  16794. if b < 0x80 {
  16795. break
  16796. }
  16797. }
  16798. fieldNum := int32(wire >> 3)
  16799. wireType := int(wire & 0x7)
  16800. if wireType == 4 {
  16801. return fmt.Errorf("proto: LeaseGrantResponse: wiretype end group for non-group")
  16802. }
  16803. if fieldNum <= 0 {
  16804. return fmt.Errorf("proto: LeaseGrantResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  16805. }
  16806. switch fieldNum {
  16807. case 1:
  16808. if wireType != 2 {
  16809. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  16810. }
  16811. var msglen int
  16812. for shift := uint(0); ; shift += 7 {
  16813. if shift >= 64 {
  16814. return ErrIntOverflowRpc
  16815. }
  16816. if iNdEx >= l {
  16817. return io.ErrUnexpectedEOF
  16818. }
  16819. b := dAtA[iNdEx]
  16820. iNdEx++
  16821. msglen |= int(b&0x7F) << shift
  16822. if b < 0x80 {
  16823. break
  16824. }
  16825. }
  16826. if msglen < 0 {
  16827. return ErrInvalidLengthRpc
  16828. }
  16829. postIndex := iNdEx + msglen
  16830. if postIndex < 0 {
  16831. return ErrInvalidLengthRpc
  16832. }
  16833. if postIndex > l {
  16834. return io.ErrUnexpectedEOF
  16835. }
  16836. if m.Header == nil {
  16837. m.Header = &ResponseHeader{}
  16838. }
  16839. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  16840. return err
  16841. }
  16842. iNdEx = postIndex
  16843. case 2:
  16844. if wireType != 0 {
  16845. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  16846. }
  16847. m.ID = 0
  16848. for shift := uint(0); ; shift += 7 {
  16849. if shift >= 64 {
  16850. return ErrIntOverflowRpc
  16851. }
  16852. if iNdEx >= l {
  16853. return io.ErrUnexpectedEOF
  16854. }
  16855. b := dAtA[iNdEx]
  16856. iNdEx++
  16857. m.ID |= int64(b&0x7F) << shift
  16858. if b < 0x80 {
  16859. break
  16860. }
  16861. }
  16862. case 3:
  16863. if wireType != 0 {
  16864. return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
  16865. }
  16866. m.TTL = 0
  16867. for shift := uint(0); ; shift += 7 {
  16868. if shift >= 64 {
  16869. return ErrIntOverflowRpc
  16870. }
  16871. if iNdEx >= l {
  16872. return io.ErrUnexpectedEOF
  16873. }
  16874. b := dAtA[iNdEx]
  16875. iNdEx++
  16876. m.TTL |= int64(b&0x7F) << shift
  16877. if b < 0x80 {
  16878. break
  16879. }
  16880. }
  16881. case 4:
  16882. if wireType != 2 {
  16883. return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
  16884. }
  16885. var stringLen uint64
  16886. for shift := uint(0); ; shift += 7 {
  16887. if shift >= 64 {
  16888. return ErrIntOverflowRpc
  16889. }
  16890. if iNdEx >= l {
  16891. return io.ErrUnexpectedEOF
  16892. }
  16893. b := dAtA[iNdEx]
  16894. iNdEx++
  16895. stringLen |= uint64(b&0x7F) << shift
  16896. if b < 0x80 {
  16897. break
  16898. }
  16899. }
  16900. intStringLen := int(stringLen)
  16901. if intStringLen < 0 {
  16902. return ErrInvalidLengthRpc
  16903. }
  16904. postIndex := iNdEx + intStringLen
  16905. if postIndex < 0 {
  16906. return ErrInvalidLengthRpc
  16907. }
  16908. if postIndex > l {
  16909. return io.ErrUnexpectedEOF
  16910. }
  16911. m.Error = string(dAtA[iNdEx:postIndex])
  16912. iNdEx = postIndex
  16913. default:
  16914. iNdEx = preIndex
  16915. skippy, err := skipRpc(dAtA[iNdEx:])
  16916. if err != nil {
  16917. return err
  16918. }
  16919. if skippy < 0 {
  16920. return ErrInvalidLengthRpc
  16921. }
  16922. if (iNdEx + skippy) < 0 {
  16923. return ErrInvalidLengthRpc
  16924. }
  16925. if (iNdEx + skippy) > l {
  16926. return io.ErrUnexpectedEOF
  16927. }
  16928. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16929. iNdEx += skippy
  16930. }
  16931. }
  16932. if iNdEx > l {
  16933. return io.ErrUnexpectedEOF
  16934. }
  16935. return nil
  16936. }
  16937. func (m *LeaseRevokeRequest) Unmarshal(dAtA []byte) error {
  16938. l := len(dAtA)
  16939. iNdEx := 0
  16940. for iNdEx < l {
  16941. preIndex := iNdEx
  16942. var wire uint64
  16943. for shift := uint(0); ; shift += 7 {
  16944. if shift >= 64 {
  16945. return ErrIntOverflowRpc
  16946. }
  16947. if iNdEx >= l {
  16948. return io.ErrUnexpectedEOF
  16949. }
  16950. b := dAtA[iNdEx]
  16951. iNdEx++
  16952. wire |= uint64(b&0x7F) << shift
  16953. if b < 0x80 {
  16954. break
  16955. }
  16956. }
  16957. fieldNum := int32(wire >> 3)
  16958. wireType := int(wire & 0x7)
  16959. if wireType == 4 {
  16960. return fmt.Errorf("proto: LeaseRevokeRequest: wiretype end group for non-group")
  16961. }
  16962. if fieldNum <= 0 {
  16963. return fmt.Errorf("proto: LeaseRevokeRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  16964. }
  16965. switch fieldNum {
  16966. case 1:
  16967. if wireType != 0 {
  16968. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  16969. }
  16970. m.ID = 0
  16971. for shift := uint(0); ; shift += 7 {
  16972. if shift >= 64 {
  16973. return ErrIntOverflowRpc
  16974. }
  16975. if iNdEx >= l {
  16976. return io.ErrUnexpectedEOF
  16977. }
  16978. b := dAtA[iNdEx]
  16979. iNdEx++
  16980. m.ID |= int64(b&0x7F) << shift
  16981. if b < 0x80 {
  16982. break
  16983. }
  16984. }
  16985. default:
  16986. iNdEx = preIndex
  16987. skippy, err := skipRpc(dAtA[iNdEx:])
  16988. if err != nil {
  16989. return err
  16990. }
  16991. if skippy < 0 {
  16992. return ErrInvalidLengthRpc
  16993. }
  16994. if (iNdEx + skippy) < 0 {
  16995. return ErrInvalidLengthRpc
  16996. }
  16997. if (iNdEx + skippy) > l {
  16998. return io.ErrUnexpectedEOF
  16999. }
  17000. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17001. iNdEx += skippy
  17002. }
  17003. }
  17004. if iNdEx > l {
  17005. return io.ErrUnexpectedEOF
  17006. }
  17007. return nil
  17008. }
  17009. func (m *LeaseRevokeResponse) Unmarshal(dAtA []byte) error {
  17010. l := len(dAtA)
  17011. iNdEx := 0
  17012. for iNdEx < l {
  17013. preIndex := iNdEx
  17014. var wire uint64
  17015. for shift := uint(0); ; shift += 7 {
  17016. if shift >= 64 {
  17017. return ErrIntOverflowRpc
  17018. }
  17019. if iNdEx >= l {
  17020. return io.ErrUnexpectedEOF
  17021. }
  17022. b := dAtA[iNdEx]
  17023. iNdEx++
  17024. wire |= uint64(b&0x7F) << shift
  17025. if b < 0x80 {
  17026. break
  17027. }
  17028. }
  17029. fieldNum := int32(wire >> 3)
  17030. wireType := int(wire & 0x7)
  17031. if wireType == 4 {
  17032. return fmt.Errorf("proto: LeaseRevokeResponse: wiretype end group for non-group")
  17033. }
  17034. if fieldNum <= 0 {
  17035. return fmt.Errorf("proto: LeaseRevokeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  17036. }
  17037. switch fieldNum {
  17038. case 1:
  17039. if wireType != 2 {
  17040. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  17041. }
  17042. var msglen int
  17043. for shift := uint(0); ; shift += 7 {
  17044. if shift >= 64 {
  17045. return ErrIntOverflowRpc
  17046. }
  17047. if iNdEx >= l {
  17048. return io.ErrUnexpectedEOF
  17049. }
  17050. b := dAtA[iNdEx]
  17051. iNdEx++
  17052. msglen |= int(b&0x7F) << shift
  17053. if b < 0x80 {
  17054. break
  17055. }
  17056. }
  17057. if msglen < 0 {
  17058. return ErrInvalidLengthRpc
  17059. }
  17060. postIndex := iNdEx + msglen
  17061. if postIndex < 0 {
  17062. return ErrInvalidLengthRpc
  17063. }
  17064. if postIndex > l {
  17065. return io.ErrUnexpectedEOF
  17066. }
  17067. if m.Header == nil {
  17068. m.Header = &ResponseHeader{}
  17069. }
  17070. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  17071. return err
  17072. }
  17073. iNdEx = postIndex
  17074. default:
  17075. iNdEx = preIndex
  17076. skippy, err := skipRpc(dAtA[iNdEx:])
  17077. if err != nil {
  17078. return err
  17079. }
  17080. if skippy < 0 {
  17081. return ErrInvalidLengthRpc
  17082. }
  17083. if (iNdEx + skippy) < 0 {
  17084. return ErrInvalidLengthRpc
  17085. }
  17086. if (iNdEx + skippy) > l {
  17087. return io.ErrUnexpectedEOF
  17088. }
  17089. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17090. iNdEx += skippy
  17091. }
  17092. }
  17093. if iNdEx > l {
  17094. return io.ErrUnexpectedEOF
  17095. }
  17096. return nil
  17097. }
  17098. func (m *LeaseKeepAliveRequest) Unmarshal(dAtA []byte) error {
  17099. l := len(dAtA)
  17100. iNdEx := 0
  17101. for iNdEx < l {
  17102. preIndex := iNdEx
  17103. var wire uint64
  17104. for shift := uint(0); ; shift += 7 {
  17105. if shift >= 64 {
  17106. return ErrIntOverflowRpc
  17107. }
  17108. if iNdEx >= l {
  17109. return io.ErrUnexpectedEOF
  17110. }
  17111. b := dAtA[iNdEx]
  17112. iNdEx++
  17113. wire |= uint64(b&0x7F) << shift
  17114. if b < 0x80 {
  17115. break
  17116. }
  17117. }
  17118. fieldNum := int32(wire >> 3)
  17119. wireType := int(wire & 0x7)
  17120. if wireType == 4 {
  17121. return fmt.Errorf("proto: LeaseKeepAliveRequest: wiretype end group for non-group")
  17122. }
  17123. if fieldNum <= 0 {
  17124. return fmt.Errorf("proto: LeaseKeepAliveRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  17125. }
  17126. switch fieldNum {
  17127. case 1:
  17128. if wireType != 0 {
  17129. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  17130. }
  17131. m.ID = 0
  17132. for shift := uint(0); ; shift += 7 {
  17133. if shift >= 64 {
  17134. return ErrIntOverflowRpc
  17135. }
  17136. if iNdEx >= l {
  17137. return io.ErrUnexpectedEOF
  17138. }
  17139. b := dAtA[iNdEx]
  17140. iNdEx++
  17141. m.ID |= int64(b&0x7F) << shift
  17142. if b < 0x80 {
  17143. break
  17144. }
  17145. }
  17146. default:
  17147. iNdEx = preIndex
  17148. skippy, err := skipRpc(dAtA[iNdEx:])
  17149. if err != nil {
  17150. return err
  17151. }
  17152. if skippy < 0 {
  17153. return ErrInvalidLengthRpc
  17154. }
  17155. if (iNdEx + skippy) < 0 {
  17156. return ErrInvalidLengthRpc
  17157. }
  17158. if (iNdEx + skippy) > l {
  17159. return io.ErrUnexpectedEOF
  17160. }
  17161. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17162. iNdEx += skippy
  17163. }
  17164. }
  17165. if iNdEx > l {
  17166. return io.ErrUnexpectedEOF
  17167. }
  17168. return nil
  17169. }
  17170. func (m *LeaseKeepAliveResponse) Unmarshal(dAtA []byte) error {
  17171. l := len(dAtA)
  17172. iNdEx := 0
  17173. for iNdEx < l {
  17174. preIndex := iNdEx
  17175. var wire uint64
  17176. for shift := uint(0); ; shift += 7 {
  17177. if shift >= 64 {
  17178. return ErrIntOverflowRpc
  17179. }
  17180. if iNdEx >= l {
  17181. return io.ErrUnexpectedEOF
  17182. }
  17183. b := dAtA[iNdEx]
  17184. iNdEx++
  17185. wire |= uint64(b&0x7F) << shift
  17186. if b < 0x80 {
  17187. break
  17188. }
  17189. }
  17190. fieldNum := int32(wire >> 3)
  17191. wireType := int(wire & 0x7)
  17192. if wireType == 4 {
  17193. return fmt.Errorf("proto: LeaseKeepAliveResponse: wiretype end group for non-group")
  17194. }
  17195. if fieldNum <= 0 {
  17196. return fmt.Errorf("proto: LeaseKeepAliveResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  17197. }
  17198. switch fieldNum {
  17199. case 1:
  17200. if wireType != 2 {
  17201. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  17202. }
  17203. var msglen int
  17204. for shift := uint(0); ; shift += 7 {
  17205. if shift >= 64 {
  17206. return ErrIntOverflowRpc
  17207. }
  17208. if iNdEx >= l {
  17209. return io.ErrUnexpectedEOF
  17210. }
  17211. b := dAtA[iNdEx]
  17212. iNdEx++
  17213. msglen |= int(b&0x7F) << shift
  17214. if b < 0x80 {
  17215. break
  17216. }
  17217. }
  17218. if msglen < 0 {
  17219. return ErrInvalidLengthRpc
  17220. }
  17221. postIndex := iNdEx + msglen
  17222. if postIndex < 0 {
  17223. return ErrInvalidLengthRpc
  17224. }
  17225. if postIndex > l {
  17226. return io.ErrUnexpectedEOF
  17227. }
  17228. if m.Header == nil {
  17229. m.Header = &ResponseHeader{}
  17230. }
  17231. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  17232. return err
  17233. }
  17234. iNdEx = postIndex
  17235. case 2:
  17236. if wireType != 0 {
  17237. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  17238. }
  17239. m.ID = 0
  17240. for shift := uint(0); ; shift += 7 {
  17241. if shift >= 64 {
  17242. return ErrIntOverflowRpc
  17243. }
  17244. if iNdEx >= l {
  17245. return io.ErrUnexpectedEOF
  17246. }
  17247. b := dAtA[iNdEx]
  17248. iNdEx++
  17249. m.ID |= int64(b&0x7F) << shift
  17250. if b < 0x80 {
  17251. break
  17252. }
  17253. }
  17254. case 3:
  17255. if wireType != 0 {
  17256. return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
  17257. }
  17258. m.TTL = 0
  17259. for shift := uint(0); ; shift += 7 {
  17260. if shift >= 64 {
  17261. return ErrIntOverflowRpc
  17262. }
  17263. if iNdEx >= l {
  17264. return io.ErrUnexpectedEOF
  17265. }
  17266. b := dAtA[iNdEx]
  17267. iNdEx++
  17268. m.TTL |= int64(b&0x7F) << shift
  17269. if b < 0x80 {
  17270. break
  17271. }
  17272. }
  17273. default:
  17274. iNdEx = preIndex
  17275. skippy, err := skipRpc(dAtA[iNdEx:])
  17276. if err != nil {
  17277. return err
  17278. }
  17279. if skippy < 0 {
  17280. return ErrInvalidLengthRpc
  17281. }
  17282. if (iNdEx + skippy) < 0 {
  17283. return ErrInvalidLengthRpc
  17284. }
  17285. if (iNdEx + skippy) > l {
  17286. return io.ErrUnexpectedEOF
  17287. }
  17288. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17289. iNdEx += skippy
  17290. }
  17291. }
  17292. if iNdEx > l {
  17293. return io.ErrUnexpectedEOF
  17294. }
  17295. return nil
  17296. }
  17297. func (m *LeaseTimeToLiveRequest) Unmarshal(dAtA []byte) error {
  17298. l := len(dAtA)
  17299. iNdEx := 0
  17300. for iNdEx < l {
  17301. preIndex := iNdEx
  17302. var wire uint64
  17303. for shift := uint(0); ; shift += 7 {
  17304. if shift >= 64 {
  17305. return ErrIntOverflowRpc
  17306. }
  17307. if iNdEx >= l {
  17308. return io.ErrUnexpectedEOF
  17309. }
  17310. b := dAtA[iNdEx]
  17311. iNdEx++
  17312. wire |= uint64(b&0x7F) << shift
  17313. if b < 0x80 {
  17314. break
  17315. }
  17316. }
  17317. fieldNum := int32(wire >> 3)
  17318. wireType := int(wire & 0x7)
  17319. if wireType == 4 {
  17320. return fmt.Errorf("proto: LeaseTimeToLiveRequest: wiretype end group for non-group")
  17321. }
  17322. if fieldNum <= 0 {
  17323. return fmt.Errorf("proto: LeaseTimeToLiveRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  17324. }
  17325. switch fieldNum {
  17326. case 1:
  17327. if wireType != 0 {
  17328. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  17329. }
  17330. m.ID = 0
  17331. for shift := uint(0); ; shift += 7 {
  17332. if shift >= 64 {
  17333. return ErrIntOverflowRpc
  17334. }
  17335. if iNdEx >= l {
  17336. return io.ErrUnexpectedEOF
  17337. }
  17338. b := dAtA[iNdEx]
  17339. iNdEx++
  17340. m.ID |= int64(b&0x7F) << shift
  17341. if b < 0x80 {
  17342. break
  17343. }
  17344. }
  17345. case 2:
  17346. if wireType != 0 {
  17347. return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType)
  17348. }
  17349. var v int
  17350. for shift := uint(0); ; shift += 7 {
  17351. if shift >= 64 {
  17352. return ErrIntOverflowRpc
  17353. }
  17354. if iNdEx >= l {
  17355. return io.ErrUnexpectedEOF
  17356. }
  17357. b := dAtA[iNdEx]
  17358. iNdEx++
  17359. v |= int(b&0x7F) << shift
  17360. if b < 0x80 {
  17361. break
  17362. }
  17363. }
  17364. m.Keys = bool(v != 0)
  17365. default:
  17366. iNdEx = preIndex
  17367. skippy, err := skipRpc(dAtA[iNdEx:])
  17368. if err != nil {
  17369. return err
  17370. }
  17371. if skippy < 0 {
  17372. return ErrInvalidLengthRpc
  17373. }
  17374. if (iNdEx + skippy) < 0 {
  17375. return ErrInvalidLengthRpc
  17376. }
  17377. if (iNdEx + skippy) > l {
  17378. return io.ErrUnexpectedEOF
  17379. }
  17380. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17381. iNdEx += skippy
  17382. }
  17383. }
  17384. if iNdEx > l {
  17385. return io.ErrUnexpectedEOF
  17386. }
  17387. return nil
  17388. }
  17389. func (m *LeaseTimeToLiveResponse) Unmarshal(dAtA []byte) error {
  17390. l := len(dAtA)
  17391. iNdEx := 0
  17392. for iNdEx < l {
  17393. preIndex := iNdEx
  17394. var wire uint64
  17395. for shift := uint(0); ; shift += 7 {
  17396. if shift >= 64 {
  17397. return ErrIntOverflowRpc
  17398. }
  17399. if iNdEx >= l {
  17400. return io.ErrUnexpectedEOF
  17401. }
  17402. b := dAtA[iNdEx]
  17403. iNdEx++
  17404. wire |= uint64(b&0x7F) << shift
  17405. if b < 0x80 {
  17406. break
  17407. }
  17408. }
  17409. fieldNum := int32(wire >> 3)
  17410. wireType := int(wire & 0x7)
  17411. if wireType == 4 {
  17412. return fmt.Errorf("proto: LeaseTimeToLiveResponse: wiretype end group for non-group")
  17413. }
  17414. if fieldNum <= 0 {
  17415. return fmt.Errorf("proto: LeaseTimeToLiveResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  17416. }
  17417. switch fieldNum {
  17418. case 1:
  17419. if wireType != 2 {
  17420. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  17421. }
  17422. var msglen int
  17423. for shift := uint(0); ; shift += 7 {
  17424. if shift >= 64 {
  17425. return ErrIntOverflowRpc
  17426. }
  17427. if iNdEx >= l {
  17428. return io.ErrUnexpectedEOF
  17429. }
  17430. b := dAtA[iNdEx]
  17431. iNdEx++
  17432. msglen |= int(b&0x7F) << shift
  17433. if b < 0x80 {
  17434. break
  17435. }
  17436. }
  17437. if msglen < 0 {
  17438. return ErrInvalidLengthRpc
  17439. }
  17440. postIndex := iNdEx + msglen
  17441. if postIndex < 0 {
  17442. return ErrInvalidLengthRpc
  17443. }
  17444. if postIndex > l {
  17445. return io.ErrUnexpectedEOF
  17446. }
  17447. if m.Header == nil {
  17448. m.Header = &ResponseHeader{}
  17449. }
  17450. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  17451. return err
  17452. }
  17453. iNdEx = postIndex
  17454. case 2:
  17455. if wireType != 0 {
  17456. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  17457. }
  17458. m.ID = 0
  17459. for shift := uint(0); ; shift += 7 {
  17460. if shift >= 64 {
  17461. return ErrIntOverflowRpc
  17462. }
  17463. if iNdEx >= l {
  17464. return io.ErrUnexpectedEOF
  17465. }
  17466. b := dAtA[iNdEx]
  17467. iNdEx++
  17468. m.ID |= int64(b&0x7F) << shift
  17469. if b < 0x80 {
  17470. break
  17471. }
  17472. }
  17473. case 3:
  17474. if wireType != 0 {
  17475. return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
  17476. }
  17477. m.TTL = 0
  17478. for shift := uint(0); ; shift += 7 {
  17479. if shift >= 64 {
  17480. return ErrIntOverflowRpc
  17481. }
  17482. if iNdEx >= l {
  17483. return io.ErrUnexpectedEOF
  17484. }
  17485. b := dAtA[iNdEx]
  17486. iNdEx++
  17487. m.TTL |= int64(b&0x7F) << shift
  17488. if b < 0x80 {
  17489. break
  17490. }
  17491. }
  17492. case 4:
  17493. if wireType != 0 {
  17494. return fmt.Errorf("proto: wrong wireType = %d for field GrantedTTL", wireType)
  17495. }
  17496. m.GrantedTTL = 0
  17497. for shift := uint(0); ; shift += 7 {
  17498. if shift >= 64 {
  17499. return ErrIntOverflowRpc
  17500. }
  17501. if iNdEx >= l {
  17502. return io.ErrUnexpectedEOF
  17503. }
  17504. b := dAtA[iNdEx]
  17505. iNdEx++
  17506. m.GrantedTTL |= int64(b&0x7F) << shift
  17507. if b < 0x80 {
  17508. break
  17509. }
  17510. }
  17511. case 5:
  17512. if wireType != 2 {
  17513. return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType)
  17514. }
  17515. var byteLen int
  17516. for shift := uint(0); ; shift += 7 {
  17517. if shift >= 64 {
  17518. return ErrIntOverflowRpc
  17519. }
  17520. if iNdEx >= l {
  17521. return io.ErrUnexpectedEOF
  17522. }
  17523. b := dAtA[iNdEx]
  17524. iNdEx++
  17525. byteLen |= int(b&0x7F) << shift
  17526. if b < 0x80 {
  17527. break
  17528. }
  17529. }
  17530. if byteLen < 0 {
  17531. return ErrInvalidLengthRpc
  17532. }
  17533. postIndex := iNdEx + byteLen
  17534. if postIndex < 0 {
  17535. return ErrInvalidLengthRpc
  17536. }
  17537. if postIndex > l {
  17538. return io.ErrUnexpectedEOF
  17539. }
  17540. m.Keys = append(m.Keys, make([]byte, postIndex-iNdEx))
  17541. copy(m.Keys[len(m.Keys)-1], dAtA[iNdEx:postIndex])
  17542. iNdEx = postIndex
  17543. default:
  17544. iNdEx = preIndex
  17545. skippy, err := skipRpc(dAtA[iNdEx:])
  17546. if err != nil {
  17547. return err
  17548. }
  17549. if skippy < 0 {
  17550. return ErrInvalidLengthRpc
  17551. }
  17552. if (iNdEx + skippy) < 0 {
  17553. return ErrInvalidLengthRpc
  17554. }
  17555. if (iNdEx + skippy) > l {
  17556. return io.ErrUnexpectedEOF
  17557. }
  17558. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17559. iNdEx += skippy
  17560. }
  17561. }
  17562. if iNdEx > l {
  17563. return io.ErrUnexpectedEOF
  17564. }
  17565. return nil
  17566. }
  17567. func (m *LeaseLeasesRequest) Unmarshal(dAtA []byte) error {
  17568. l := len(dAtA)
  17569. iNdEx := 0
  17570. for iNdEx < l {
  17571. preIndex := iNdEx
  17572. var wire uint64
  17573. for shift := uint(0); ; shift += 7 {
  17574. if shift >= 64 {
  17575. return ErrIntOverflowRpc
  17576. }
  17577. if iNdEx >= l {
  17578. return io.ErrUnexpectedEOF
  17579. }
  17580. b := dAtA[iNdEx]
  17581. iNdEx++
  17582. wire |= uint64(b&0x7F) << shift
  17583. if b < 0x80 {
  17584. break
  17585. }
  17586. }
  17587. fieldNum := int32(wire >> 3)
  17588. wireType := int(wire & 0x7)
  17589. if wireType == 4 {
  17590. return fmt.Errorf("proto: LeaseLeasesRequest: wiretype end group for non-group")
  17591. }
  17592. if fieldNum <= 0 {
  17593. return fmt.Errorf("proto: LeaseLeasesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  17594. }
  17595. switch fieldNum {
  17596. default:
  17597. iNdEx = preIndex
  17598. skippy, err := skipRpc(dAtA[iNdEx:])
  17599. if err != nil {
  17600. return err
  17601. }
  17602. if skippy < 0 {
  17603. return ErrInvalidLengthRpc
  17604. }
  17605. if (iNdEx + skippy) < 0 {
  17606. return ErrInvalidLengthRpc
  17607. }
  17608. if (iNdEx + skippy) > l {
  17609. return io.ErrUnexpectedEOF
  17610. }
  17611. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17612. iNdEx += skippy
  17613. }
  17614. }
  17615. if iNdEx > l {
  17616. return io.ErrUnexpectedEOF
  17617. }
  17618. return nil
  17619. }
  17620. func (m *LeaseStatus) Unmarshal(dAtA []byte) error {
  17621. l := len(dAtA)
  17622. iNdEx := 0
  17623. for iNdEx < l {
  17624. preIndex := iNdEx
  17625. var wire uint64
  17626. for shift := uint(0); ; shift += 7 {
  17627. if shift >= 64 {
  17628. return ErrIntOverflowRpc
  17629. }
  17630. if iNdEx >= l {
  17631. return io.ErrUnexpectedEOF
  17632. }
  17633. b := dAtA[iNdEx]
  17634. iNdEx++
  17635. wire |= uint64(b&0x7F) << shift
  17636. if b < 0x80 {
  17637. break
  17638. }
  17639. }
  17640. fieldNum := int32(wire >> 3)
  17641. wireType := int(wire & 0x7)
  17642. if wireType == 4 {
  17643. return fmt.Errorf("proto: LeaseStatus: wiretype end group for non-group")
  17644. }
  17645. if fieldNum <= 0 {
  17646. return fmt.Errorf("proto: LeaseStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  17647. }
  17648. switch fieldNum {
  17649. case 1:
  17650. if wireType != 0 {
  17651. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  17652. }
  17653. m.ID = 0
  17654. for shift := uint(0); ; shift += 7 {
  17655. if shift >= 64 {
  17656. return ErrIntOverflowRpc
  17657. }
  17658. if iNdEx >= l {
  17659. return io.ErrUnexpectedEOF
  17660. }
  17661. b := dAtA[iNdEx]
  17662. iNdEx++
  17663. m.ID |= int64(b&0x7F) << shift
  17664. if b < 0x80 {
  17665. break
  17666. }
  17667. }
  17668. default:
  17669. iNdEx = preIndex
  17670. skippy, err := skipRpc(dAtA[iNdEx:])
  17671. if err != nil {
  17672. return err
  17673. }
  17674. if skippy < 0 {
  17675. return ErrInvalidLengthRpc
  17676. }
  17677. if (iNdEx + skippy) < 0 {
  17678. return ErrInvalidLengthRpc
  17679. }
  17680. if (iNdEx + skippy) > l {
  17681. return io.ErrUnexpectedEOF
  17682. }
  17683. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17684. iNdEx += skippy
  17685. }
  17686. }
  17687. if iNdEx > l {
  17688. return io.ErrUnexpectedEOF
  17689. }
  17690. return nil
  17691. }
  17692. func (m *LeaseLeasesResponse) Unmarshal(dAtA []byte) error {
  17693. l := len(dAtA)
  17694. iNdEx := 0
  17695. for iNdEx < l {
  17696. preIndex := iNdEx
  17697. var wire uint64
  17698. for shift := uint(0); ; shift += 7 {
  17699. if shift >= 64 {
  17700. return ErrIntOverflowRpc
  17701. }
  17702. if iNdEx >= l {
  17703. return io.ErrUnexpectedEOF
  17704. }
  17705. b := dAtA[iNdEx]
  17706. iNdEx++
  17707. wire |= uint64(b&0x7F) << shift
  17708. if b < 0x80 {
  17709. break
  17710. }
  17711. }
  17712. fieldNum := int32(wire >> 3)
  17713. wireType := int(wire & 0x7)
  17714. if wireType == 4 {
  17715. return fmt.Errorf("proto: LeaseLeasesResponse: wiretype end group for non-group")
  17716. }
  17717. if fieldNum <= 0 {
  17718. return fmt.Errorf("proto: LeaseLeasesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  17719. }
  17720. switch fieldNum {
  17721. case 1:
  17722. if wireType != 2 {
  17723. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  17724. }
  17725. var msglen int
  17726. for shift := uint(0); ; shift += 7 {
  17727. if shift >= 64 {
  17728. return ErrIntOverflowRpc
  17729. }
  17730. if iNdEx >= l {
  17731. return io.ErrUnexpectedEOF
  17732. }
  17733. b := dAtA[iNdEx]
  17734. iNdEx++
  17735. msglen |= int(b&0x7F) << shift
  17736. if b < 0x80 {
  17737. break
  17738. }
  17739. }
  17740. if msglen < 0 {
  17741. return ErrInvalidLengthRpc
  17742. }
  17743. postIndex := iNdEx + msglen
  17744. if postIndex < 0 {
  17745. return ErrInvalidLengthRpc
  17746. }
  17747. if postIndex > l {
  17748. return io.ErrUnexpectedEOF
  17749. }
  17750. if m.Header == nil {
  17751. m.Header = &ResponseHeader{}
  17752. }
  17753. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  17754. return err
  17755. }
  17756. iNdEx = postIndex
  17757. case 2:
  17758. if wireType != 2 {
  17759. return fmt.Errorf("proto: wrong wireType = %d for field Leases", wireType)
  17760. }
  17761. var msglen int
  17762. for shift := uint(0); ; shift += 7 {
  17763. if shift >= 64 {
  17764. return ErrIntOverflowRpc
  17765. }
  17766. if iNdEx >= l {
  17767. return io.ErrUnexpectedEOF
  17768. }
  17769. b := dAtA[iNdEx]
  17770. iNdEx++
  17771. msglen |= int(b&0x7F) << shift
  17772. if b < 0x80 {
  17773. break
  17774. }
  17775. }
  17776. if msglen < 0 {
  17777. return ErrInvalidLengthRpc
  17778. }
  17779. postIndex := iNdEx + msglen
  17780. if postIndex < 0 {
  17781. return ErrInvalidLengthRpc
  17782. }
  17783. if postIndex > l {
  17784. return io.ErrUnexpectedEOF
  17785. }
  17786. m.Leases = append(m.Leases, &LeaseStatus{})
  17787. if err := m.Leases[len(m.Leases)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  17788. return err
  17789. }
  17790. iNdEx = postIndex
  17791. default:
  17792. iNdEx = preIndex
  17793. skippy, err := skipRpc(dAtA[iNdEx:])
  17794. if err != nil {
  17795. return err
  17796. }
  17797. if skippy < 0 {
  17798. return ErrInvalidLengthRpc
  17799. }
  17800. if (iNdEx + skippy) < 0 {
  17801. return ErrInvalidLengthRpc
  17802. }
  17803. if (iNdEx + skippy) > l {
  17804. return io.ErrUnexpectedEOF
  17805. }
  17806. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17807. iNdEx += skippy
  17808. }
  17809. }
  17810. if iNdEx > l {
  17811. return io.ErrUnexpectedEOF
  17812. }
  17813. return nil
  17814. }
  17815. func (m *Member) Unmarshal(dAtA []byte) error {
  17816. l := len(dAtA)
  17817. iNdEx := 0
  17818. for iNdEx < l {
  17819. preIndex := iNdEx
  17820. var wire uint64
  17821. for shift := uint(0); ; shift += 7 {
  17822. if shift >= 64 {
  17823. return ErrIntOverflowRpc
  17824. }
  17825. if iNdEx >= l {
  17826. return io.ErrUnexpectedEOF
  17827. }
  17828. b := dAtA[iNdEx]
  17829. iNdEx++
  17830. wire |= uint64(b&0x7F) << shift
  17831. if b < 0x80 {
  17832. break
  17833. }
  17834. }
  17835. fieldNum := int32(wire >> 3)
  17836. wireType := int(wire & 0x7)
  17837. if wireType == 4 {
  17838. return fmt.Errorf("proto: Member: wiretype end group for non-group")
  17839. }
  17840. if fieldNum <= 0 {
  17841. return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire)
  17842. }
  17843. switch fieldNum {
  17844. case 1:
  17845. if wireType != 0 {
  17846. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  17847. }
  17848. m.ID = 0
  17849. for shift := uint(0); ; shift += 7 {
  17850. if shift >= 64 {
  17851. return ErrIntOverflowRpc
  17852. }
  17853. if iNdEx >= l {
  17854. return io.ErrUnexpectedEOF
  17855. }
  17856. b := dAtA[iNdEx]
  17857. iNdEx++
  17858. m.ID |= uint64(b&0x7F) << shift
  17859. if b < 0x80 {
  17860. break
  17861. }
  17862. }
  17863. case 2:
  17864. if wireType != 2 {
  17865. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  17866. }
  17867. var stringLen uint64
  17868. for shift := uint(0); ; shift += 7 {
  17869. if shift >= 64 {
  17870. return ErrIntOverflowRpc
  17871. }
  17872. if iNdEx >= l {
  17873. return io.ErrUnexpectedEOF
  17874. }
  17875. b := dAtA[iNdEx]
  17876. iNdEx++
  17877. stringLen |= uint64(b&0x7F) << shift
  17878. if b < 0x80 {
  17879. break
  17880. }
  17881. }
  17882. intStringLen := int(stringLen)
  17883. if intStringLen < 0 {
  17884. return ErrInvalidLengthRpc
  17885. }
  17886. postIndex := iNdEx + intStringLen
  17887. if postIndex < 0 {
  17888. return ErrInvalidLengthRpc
  17889. }
  17890. if postIndex > l {
  17891. return io.ErrUnexpectedEOF
  17892. }
  17893. m.Name = string(dAtA[iNdEx:postIndex])
  17894. iNdEx = postIndex
  17895. case 3:
  17896. if wireType != 2 {
  17897. return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType)
  17898. }
  17899. var stringLen uint64
  17900. for shift := uint(0); ; shift += 7 {
  17901. if shift >= 64 {
  17902. return ErrIntOverflowRpc
  17903. }
  17904. if iNdEx >= l {
  17905. return io.ErrUnexpectedEOF
  17906. }
  17907. b := dAtA[iNdEx]
  17908. iNdEx++
  17909. stringLen |= uint64(b&0x7F) << shift
  17910. if b < 0x80 {
  17911. break
  17912. }
  17913. }
  17914. intStringLen := int(stringLen)
  17915. if intStringLen < 0 {
  17916. return ErrInvalidLengthRpc
  17917. }
  17918. postIndex := iNdEx + intStringLen
  17919. if postIndex < 0 {
  17920. return ErrInvalidLengthRpc
  17921. }
  17922. if postIndex > l {
  17923. return io.ErrUnexpectedEOF
  17924. }
  17925. m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex]))
  17926. iNdEx = postIndex
  17927. case 4:
  17928. if wireType != 2 {
  17929. return fmt.Errorf("proto: wrong wireType = %d for field ClientURLs", wireType)
  17930. }
  17931. var stringLen uint64
  17932. for shift := uint(0); ; shift += 7 {
  17933. if shift >= 64 {
  17934. return ErrIntOverflowRpc
  17935. }
  17936. if iNdEx >= l {
  17937. return io.ErrUnexpectedEOF
  17938. }
  17939. b := dAtA[iNdEx]
  17940. iNdEx++
  17941. stringLen |= uint64(b&0x7F) << shift
  17942. if b < 0x80 {
  17943. break
  17944. }
  17945. }
  17946. intStringLen := int(stringLen)
  17947. if intStringLen < 0 {
  17948. return ErrInvalidLengthRpc
  17949. }
  17950. postIndex := iNdEx + intStringLen
  17951. if postIndex < 0 {
  17952. return ErrInvalidLengthRpc
  17953. }
  17954. if postIndex > l {
  17955. return io.ErrUnexpectedEOF
  17956. }
  17957. m.ClientURLs = append(m.ClientURLs, string(dAtA[iNdEx:postIndex]))
  17958. iNdEx = postIndex
  17959. default:
  17960. iNdEx = preIndex
  17961. skippy, err := skipRpc(dAtA[iNdEx:])
  17962. if err != nil {
  17963. return err
  17964. }
  17965. if skippy < 0 {
  17966. return ErrInvalidLengthRpc
  17967. }
  17968. if (iNdEx + skippy) < 0 {
  17969. return ErrInvalidLengthRpc
  17970. }
  17971. if (iNdEx + skippy) > l {
  17972. return io.ErrUnexpectedEOF
  17973. }
  17974. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17975. iNdEx += skippy
  17976. }
  17977. }
  17978. if iNdEx > l {
  17979. return io.ErrUnexpectedEOF
  17980. }
  17981. return nil
  17982. }
  17983. func (m *MemberAddRequest) Unmarshal(dAtA []byte) error {
  17984. l := len(dAtA)
  17985. iNdEx := 0
  17986. for iNdEx < l {
  17987. preIndex := iNdEx
  17988. var wire uint64
  17989. for shift := uint(0); ; shift += 7 {
  17990. if shift >= 64 {
  17991. return ErrIntOverflowRpc
  17992. }
  17993. if iNdEx >= l {
  17994. return io.ErrUnexpectedEOF
  17995. }
  17996. b := dAtA[iNdEx]
  17997. iNdEx++
  17998. wire |= uint64(b&0x7F) << shift
  17999. if b < 0x80 {
  18000. break
  18001. }
  18002. }
  18003. fieldNum := int32(wire >> 3)
  18004. wireType := int(wire & 0x7)
  18005. if wireType == 4 {
  18006. return fmt.Errorf("proto: MemberAddRequest: wiretype end group for non-group")
  18007. }
  18008. if fieldNum <= 0 {
  18009. return fmt.Errorf("proto: MemberAddRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  18010. }
  18011. switch fieldNum {
  18012. case 1:
  18013. if wireType != 2 {
  18014. return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType)
  18015. }
  18016. var stringLen uint64
  18017. for shift := uint(0); ; shift += 7 {
  18018. if shift >= 64 {
  18019. return ErrIntOverflowRpc
  18020. }
  18021. if iNdEx >= l {
  18022. return io.ErrUnexpectedEOF
  18023. }
  18024. b := dAtA[iNdEx]
  18025. iNdEx++
  18026. stringLen |= uint64(b&0x7F) << shift
  18027. if b < 0x80 {
  18028. break
  18029. }
  18030. }
  18031. intStringLen := int(stringLen)
  18032. if intStringLen < 0 {
  18033. return ErrInvalidLengthRpc
  18034. }
  18035. postIndex := iNdEx + intStringLen
  18036. if postIndex < 0 {
  18037. return ErrInvalidLengthRpc
  18038. }
  18039. if postIndex > l {
  18040. return io.ErrUnexpectedEOF
  18041. }
  18042. m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex]))
  18043. iNdEx = postIndex
  18044. default:
  18045. iNdEx = preIndex
  18046. skippy, err := skipRpc(dAtA[iNdEx:])
  18047. if err != nil {
  18048. return err
  18049. }
  18050. if skippy < 0 {
  18051. return ErrInvalidLengthRpc
  18052. }
  18053. if (iNdEx + skippy) < 0 {
  18054. return ErrInvalidLengthRpc
  18055. }
  18056. if (iNdEx + skippy) > l {
  18057. return io.ErrUnexpectedEOF
  18058. }
  18059. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18060. iNdEx += skippy
  18061. }
  18062. }
  18063. if iNdEx > l {
  18064. return io.ErrUnexpectedEOF
  18065. }
  18066. return nil
  18067. }
  18068. func (m *MemberAddResponse) Unmarshal(dAtA []byte) error {
  18069. l := len(dAtA)
  18070. iNdEx := 0
  18071. for iNdEx < l {
  18072. preIndex := iNdEx
  18073. var wire uint64
  18074. for shift := uint(0); ; shift += 7 {
  18075. if shift >= 64 {
  18076. return ErrIntOverflowRpc
  18077. }
  18078. if iNdEx >= l {
  18079. return io.ErrUnexpectedEOF
  18080. }
  18081. b := dAtA[iNdEx]
  18082. iNdEx++
  18083. wire |= uint64(b&0x7F) << shift
  18084. if b < 0x80 {
  18085. break
  18086. }
  18087. }
  18088. fieldNum := int32(wire >> 3)
  18089. wireType := int(wire & 0x7)
  18090. if wireType == 4 {
  18091. return fmt.Errorf("proto: MemberAddResponse: wiretype end group for non-group")
  18092. }
  18093. if fieldNum <= 0 {
  18094. return fmt.Errorf("proto: MemberAddResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  18095. }
  18096. switch fieldNum {
  18097. case 1:
  18098. if wireType != 2 {
  18099. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  18100. }
  18101. var msglen int
  18102. for shift := uint(0); ; shift += 7 {
  18103. if shift >= 64 {
  18104. return ErrIntOverflowRpc
  18105. }
  18106. if iNdEx >= l {
  18107. return io.ErrUnexpectedEOF
  18108. }
  18109. b := dAtA[iNdEx]
  18110. iNdEx++
  18111. msglen |= int(b&0x7F) << shift
  18112. if b < 0x80 {
  18113. break
  18114. }
  18115. }
  18116. if msglen < 0 {
  18117. return ErrInvalidLengthRpc
  18118. }
  18119. postIndex := iNdEx + msglen
  18120. if postIndex < 0 {
  18121. return ErrInvalidLengthRpc
  18122. }
  18123. if postIndex > l {
  18124. return io.ErrUnexpectedEOF
  18125. }
  18126. if m.Header == nil {
  18127. m.Header = &ResponseHeader{}
  18128. }
  18129. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  18130. return err
  18131. }
  18132. iNdEx = postIndex
  18133. case 2:
  18134. if wireType != 2 {
  18135. return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType)
  18136. }
  18137. var msglen int
  18138. for shift := uint(0); ; shift += 7 {
  18139. if shift >= 64 {
  18140. return ErrIntOverflowRpc
  18141. }
  18142. if iNdEx >= l {
  18143. return io.ErrUnexpectedEOF
  18144. }
  18145. b := dAtA[iNdEx]
  18146. iNdEx++
  18147. msglen |= int(b&0x7F) << shift
  18148. if b < 0x80 {
  18149. break
  18150. }
  18151. }
  18152. if msglen < 0 {
  18153. return ErrInvalidLengthRpc
  18154. }
  18155. postIndex := iNdEx + msglen
  18156. if postIndex < 0 {
  18157. return ErrInvalidLengthRpc
  18158. }
  18159. if postIndex > l {
  18160. return io.ErrUnexpectedEOF
  18161. }
  18162. if m.Member == nil {
  18163. m.Member = &Member{}
  18164. }
  18165. if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  18166. return err
  18167. }
  18168. iNdEx = postIndex
  18169. case 3:
  18170. if wireType != 2 {
  18171. return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType)
  18172. }
  18173. var msglen int
  18174. for shift := uint(0); ; shift += 7 {
  18175. if shift >= 64 {
  18176. return ErrIntOverflowRpc
  18177. }
  18178. if iNdEx >= l {
  18179. return io.ErrUnexpectedEOF
  18180. }
  18181. b := dAtA[iNdEx]
  18182. iNdEx++
  18183. msglen |= int(b&0x7F) << shift
  18184. if b < 0x80 {
  18185. break
  18186. }
  18187. }
  18188. if msglen < 0 {
  18189. return ErrInvalidLengthRpc
  18190. }
  18191. postIndex := iNdEx + msglen
  18192. if postIndex < 0 {
  18193. return ErrInvalidLengthRpc
  18194. }
  18195. if postIndex > l {
  18196. return io.ErrUnexpectedEOF
  18197. }
  18198. m.Members = append(m.Members, &Member{})
  18199. if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  18200. return err
  18201. }
  18202. iNdEx = postIndex
  18203. default:
  18204. iNdEx = preIndex
  18205. skippy, err := skipRpc(dAtA[iNdEx:])
  18206. if err != nil {
  18207. return err
  18208. }
  18209. if skippy < 0 {
  18210. return ErrInvalidLengthRpc
  18211. }
  18212. if (iNdEx + skippy) < 0 {
  18213. return ErrInvalidLengthRpc
  18214. }
  18215. if (iNdEx + skippy) > l {
  18216. return io.ErrUnexpectedEOF
  18217. }
  18218. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18219. iNdEx += skippy
  18220. }
  18221. }
  18222. if iNdEx > l {
  18223. return io.ErrUnexpectedEOF
  18224. }
  18225. return nil
  18226. }
  18227. func (m *MemberRemoveRequest) Unmarshal(dAtA []byte) error {
  18228. l := len(dAtA)
  18229. iNdEx := 0
  18230. for iNdEx < l {
  18231. preIndex := iNdEx
  18232. var wire uint64
  18233. for shift := uint(0); ; shift += 7 {
  18234. if shift >= 64 {
  18235. return ErrIntOverflowRpc
  18236. }
  18237. if iNdEx >= l {
  18238. return io.ErrUnexpectedEOF
  18239. }
  18240. b := dAtA[iNdEx]
  18241. iNdEx++
  18242. wire |= uint64(b&0x7F) << shift
  18243. if b < 0x80 {
  18244. break
  18245. }
  18246. }
  18247. fieldNum := int32(wire >> 3)
  18248. wireType := int(wire & 0x7)
  18249. if wireType == 4 {
  18250. return fmt.Errorf("proto: MemberRemoveRequest: wiretype end group for non-group")
  18251. }
  18252. if fieldNum <= 0 {
  18253. return fmt.Errorf("proto: MemberRemoveRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  18254. }
  18255. switch fieldNum {
  18256. case 1:
  18257. if wireType != 0 {
  18258. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  18259. }
  18260. m.ID = 0
  18261. for shift := uint(0); ; shift += 7 {
  18262. if shift >= 64 {
  18263. return ErrIntOverflowRpc
  18264. }
  18265. if iNdEx >= l {
  18266. return io.ErrUnexpectedEOF
  18267. }
  18268. b := dAtA[iNdEx]
  18269. iNdEx++
  18270. m.ID |= uint64(b&0x7F) << shift
  18271. if b < 0x80 {
  18272. break
  18273. }
  18274. }
  18275. default:
  18276. iNdEx = preIndex
  18277. skippy, err := skipRpc(dAtA[iNdEx:])
  18278. if err != nil {
  18279. return err
  18280. }
  18281. if skippy < 0 {
  18282. return ErrInvalidLengthRpc
  18283. }
  18284. if (iNdEx + skippy) < 0 {
  18285. return ErrInvalidLengthRpc
  18286. }
  18287. if (iNdEx + skippy) > l {
  18288. return io.ErrUnexpectedEOF
  18289. }
  18290. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18291. iNdEx += skippy
  18292. }
  18293. }
  18294. if iNdEx > l {
  18295. return io.ErrUnexpectedEOF
  18296. }
  18297. return nil
  18298. }
  18299. func (m *MemberRemoveResponse) Unmarshal(dAtA []byte) error {
  18300. l := len(dAtA)
  18301. iNdEx := 0
  18302. for iNdEx < l {
  18303. preIndex := iNdEx
  18304. var wire uint64
  18305. for shift := uint(0); ; shift += 7 {
  18306. if shift >= 64 {
  18307. return ErrIntOverflowRpc
  18308. }
  18309. if iNdEx >= l {
  18310. return io.ErrUnexpectedEOF
  18311. }
  18312. b := dAtA[iNdEx]
  18313. iNdEx++
  18314. wire |= uint64(b&0x7F) << shift
  18315. if b < 0x80 {
  18316. break
  18317. }
  18318. }
  18319. fieldNum := int32(wire >> 3)
  18320. wireType := int(wire & 0x7)
  18321. if wireType == 4 {
  18322. return fmt.Errorf("proto: MemberRemoveResponse: wiretype end group for non-group")
  18323. }
  18324. if fieldNum <= 0 {
  18325. return fmt.Errorf("proto: MemberRemoveResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  18326. }
  18327. switch fieldNum {
  18328. case 1:
  18329. if wireType != 2 {
  18330. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  18331. }
  18332. var msglen int
  18333. for shift := uint(0); ; shift += 7 {
  18334. if shift >= 64 {
  18335. return ErrIntOverflowRpc
  18336. }
  18337. if iNdEx >= l {
  18338. return io.ErrUnexpectedEOF
  18339. }
  18340. b := dAtA[iNdEx]
  18341. iNdEx++
  18342. msglen |= int(b&0x7F) << shift
  18343. if b < 0x80 {
  18344. break
  18345. }
  18346. }
  18347. if msglen < 0 {
  18348. return ErrInvalidLengthRpc
  18349. }
  18350. postIndex := iNdEx + msglen
  18351. if postIndex < 0 {
  18352. return ErrInvalidLengthRpc
  18353. }
  18354. if postIndex > l {
  18355. return io.ErrUnexpectedEOF
  18356. }
  18357. if m.Header == nil {
  18358. m.Header = &ResponseHeader{}
  18359. }
  18360. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  18361. return err
  18362. }
  18363. iNdEx = postIndex
  18364. case 2:
  18365. if wireType != 2 {
  18366. return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType)
  18367. }
  18368. var msglen int
  18369. for shift := uint(0); ; shift += 7 {
  18370. if shift >= 64 {
  18371. return ErrIntOverflowRpc
  18372. }
  18373. if iNdEx >= l {
  18374. return io.ErrUnexpectedEOF
  18375. }
  18376. b := dAtA[iNdEx]
  18377. iNdEx++
  18378. msglen |= int(b&0x7F) << shift
  18379. if b < 0x80 {
  18380. break
  18381. }
  18382. }
  18383. if msglen < 0 {
  18384. return ErrInvalidLengthRpc
  18385. }
  18386. postIndex := iNdEx + msglen
  18387. if postIndex < 0 {
  18388. return ErrInvalidLengthRpc
  18389. }
  18390. if postIndex > l {
  18391. return io.ErrUnexpectedEOF
  18392. }
  18393. m.Members = append(m.Members, &Member{})
  18394. if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  18395. return err
  18396. }
  18397. iNdEx = postIndex
  18398. default:
  18399. iNdEx = preIndex
  18400. skippy, err := skipRpc(dAtA[iNdEx:])
  18401. if err != nil {
  18402. return err
  18403. }
  18404. if skippy < 0 {
  18405. return ErrInvalidLengthRpc
  18406. }
  18407. if (iNdEx + skippy) < 0 {
  18408. return ErrInvalidLengthRpc
  18409. }
  18410. if (iNdEx + skippy) > l {
  18411. return io.ErrUnexpectedEOF
  18412. }
  18413. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18414. iNdEx += skippy
  18415. }
  18416. }
  18417. if iNdEx > l {
  18418. return io.ErrUnexpectedEOF
  18419. }
  18420. return nil
  18421. }
  18422. func (m *MemberUpdateRequest) Unmarshal(dAtA []byte) error {
  18423. l := len(dAtA)
  18424. iNdEx := 0
  18425. for iNdEx < l {
  18426. preIndex := iNdEx
  18427. var wire uint64
  18428. for shift := uint(0); ; shift += 7 {
  18429. if shift >= 64 {
  18430. return ErrIntOverflowRpc
  18431. }
  18432. if iNdEx >= l {
  18433. return io.ErrUnexpectedEOF
  18434. }
  18435. b := dAtA[iNdEx]
  18436. iNdEx++
  18437. wire |= uint64(b&0x7F) << shift
  18438. if b < 0x80 {
  18439. break
  18440. }
  18441. }
  18442. fieldNum := int32(wire >> 3)
  18443. wireType := int(wire & 0x7)
  18444. if wireType == 4 {
  18445. return fmt.Errorf("proto: MemberUpdateRequest: wiretype end group for non-group")
  18446. }
  18447. if fieldNum <= 0 {
  18448. return fmt.Errorf("proto: MemberUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  18449. }
  18450. switch fieldNum {
  18451. case 1:
  18452. if wireType != 0 {
  18453. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  18454. }
  18455. m.ID = 0
  18456. for shift := uint(0); ; shift += 7 {
  18457. if shift >= 64 {
  18458. return ErrIntOverflowRpc
  18459. }
  18460. if iNdEx >= l {
  18461. return io.ErrUnexpectedEOF
  18462. }
  18463. b := dAtA[iNdEx]
  18464. iNdEx++
  18465. m.ID |= uint64(b&0x7F) << shift
  18466. if b < 0x80 {
  18467. break
  18468. }
  18469. }
  18470. case 2:
  18471. if wireType != 2 {
  18472. return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType)
  18473. }
  18474. var stringLen uint64
  18475. for shift := uint(0); ; shift += 7 {
  18476. if shift >= 64 {
  18477. return ErrIntOverflowRpc
  18478. }
  18479. if iNdEx >= l {
  18480. return io.ErrUnexpectedEOF
  18481. }
  18482. b := dAtA[iNdEx]
  18483. iNdEx++
  18484. stringLen |= uint64(b&0x7F) << shift
  18485. if b < 0x80 {
  18486. break
  18487. }
  18488. }
  18489. intStringLen := int(stringLen)
  18490. if intStringLen < 0 {
  18491. return ErrInvalidLengthRpc
  18492. }
  18493. postIndex := iNdEx + intStringLen
  18494. if postIndex < 0 {
  18495. return ErrInvalidLengthRpc
  18496. }
  18497. if postIndex > l {
  18498. return io.ErrUnexpectedEOF
  18499. }
  18500. m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex]))
  18501. iNdEx = postIndex
  18502. default:
  18503. iNdEx = preIndex
  18504. skippy, err := skipRpc(dAtA[iNdEx:])
  18505. if err != nil {
  18506. return err
  18507. }
  18508. if skippy < 0 {
  18509. return ErrInvalidLengthRpc
  18510. }
  18511. if (iNdEx + skippy) < 0 {
  18512. return ErrInvalidLengthRpc
  18513. }
  18514. if (iNdEx + skippy) > l {
  18515. return io.ErrUnexpectedEOF
  18516. }
  18517. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18518. iNdEx += skippy
  18519. }
  18520. }
  18521. if iNdEx > l {
  18522. return io.ErrUnexpectedEOF
  18523. }
  18524. return nil
  18525. }
  18526. func (m *MemberUpdateResponse) Unmarshal(dAtA []byte) error {
  18527. l := len(dAtA)
  18528. iNdEx := 0
  18529. for iNdEx < l {
  18530. preIndex := iNdEx
  18531. var wire uint64
  18532. for shift := uint(0); ; shift += 7 {
  18533. if shift >= 64 {
  18534. return ErrIntOverflowRpc
  18535. }
  18536. if iNdEx >= l {
  18537. return io.ErrUnexpectedEOF
  18538. }
  18539. b := dAtA[iNdEx]
  18540. iNdEx++
  18541. wire |= uint64(b&0x7F) << shift
  18542. if b < 0x80 {
  18543. break
  18544. }
  18545. }
  18546. fieldNum := int32(wire >> 3)
  18547. wireType := int(wire & 0x7)
  18548. if wireType == 4 {
  18549. return fmt.Errorf("proto: MemberUpdateResponse: wiretype end group for non-group")
  18550. }
  18551. if fieldNum <= 0 {
  18552. return fmt.Errorf("proto: MemberUpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  18553. }
  18554. switch fieldNum {
  18555. case 1:
  18556. if wireType != 2 {
  18557. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  18558. }
  18559. var msglen int
  18560. for shift := uint(0); ; shift += 7 {
  18561. if shift >= 64 {
  18562. return ErrIntOverflowRpc
  18563. }
  18564. if iNdEx >= l {
  18565. return io.ErrUnexpectedEOF
  18566. }
  18567. b := dAtA[iNdEx]
  18568. iNdEx++
  18569. msglen |= int(b&0x7F) << shift
  18570. if b < 0x80 {
  18571. break
  18572. }
  18573. }
  18574. if msglen < 0 {
  18575. return ErrInvalidLengthRpc
  18576. }
  18577. postIndex := iNdEx + msglen
  18578. if postIndex < 0 {
  18579. return ErrInvalidLengthRpc
  18580. }
  18581. if postIndex > l {
  18582. return io.ErrUnexpectedEOF
  18583. }
  18584. if m.Header == nil {
  18585. m.Header = &ResponseHeader{}
  18586. }
  18587. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  18588. return err
  18589. }
  18590. iNdEx = postIndex
  18591. case 2:
  18592. if wireType != 2 {
  18593. return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType)
  18594. }
  18595. var msglen int
  18596. for shift := uint(0); ; shift += 7 {
  18597. if shift >= 64 {
  18598. return ErrIntOverflowRpc
  18599. }
  18600. if iNdEx >= l {
  18601. return io.ErrUnexpectedEOF
  18602. }
  18603. b := dAtA[iNdEx]
  18604. iNdEx++
  18605. msglen |= int(b&0x7F) << shift
  18606. if b < 0x80 {
  18607. break
  18608. }
  18609. }
  18610. if msglen < 0 {
  18611. return ErrInvalidLengthRpc
  18612. }
  18613. postIndex := iNdEx + msglen
  18614. if postIndex < 0 {
  18615. return ErrInvalidLengthRpc
  18616. }
  18617. if postIndex > l {
  18618. return io.ErrUnexpectedEOF
  18619. }
  18620. m.Members = append(m.Members, &Member{})
  18621. if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  18622. return err
  18623. }
  18624. iNdEx = postIndex
  18625. default:
  18626. iNdEx = preIndex
  18627. skippy, err := skipRpc(dAtA[iNdEx:])
  18628. if err != nil {
  18629. return err
  18630. }
  18631. if skippy < 0 {
  18632. return ErrInvalidLengthRpc
  18633. }
  18634. if (iNdEx + skippy) < 0 {
  18635. return ErrInvalidLengthRpc
  18636. }
  18637. if (iNdEx + skippy) > l {
  18638. return io.ErrUnexpectedEOF
  18639. }
  18640. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18641. iNdEx += skippy
  18642. }
  18643. }
  18644. if iNdEx > l {
  18645. return io.ErrUnexpectedEOF
  18646. }
  18647. return nil
  18648. }
  18649. func (m *MemberListRequest) Unmarshal(dAtA []byte) error {
  18650. l := len(dAtA)
  18651. iNdEx := 0
  18652. for iNdEx < l {
  18653. preIndex := iNdEx
  18654. var wire uint64
  18655. for shift := uint(0); ; shift += 7 {
  18656. if shift >= 64 {
  18657. return ErrIntOverflowRpc
  18658. }
  18659. if iNdEx >= l {
  18660. return io.ErrUnexpectedEOF
  18661. }
  18662. b := dAtA[iNdEx]
  18663. iNdEx++
  18664. wire |= uint64(b&0x7F) << shift
  18665. if b < 0x80 {
  18666. break
  18667. }
  18668. }
  18669. fieldNum := int32(wire >> 3)
  18670. wireType := int(wire & 0x7)
  18671. if wireType == 4 {
  18672. return fmt.Errorf("proto: MemberListRequest: wiretype end group for non-group")
  18673. }
  18674. if fieldNum <= 0 {
  18675. return fmt.Errorf("proto: MemberListRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  18676. }
  18677. switch fieldNum {
  18678. default:
  18679. iNdEx = preIndex
  18680. skippy, err := skipRpc(dAtA[iNdEx:])
  18681. if err != nil {
  18682. return err
  18683. }
  18684. if skippy < 0 {
  18685. return ErrInvalidLengthRpc
  18686. }
  18687. if (iNdEx + skippy) < 0 {
  18688. return ErrInvalidLengthRpc
  18689. }
  18690. if (iNdEx + skippy) > l {
  18691. return io.ErrUnexpectedEOF
  18692. }
  18693. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18694. iNdEx += skippy
  18695. }
  18696. }
  18697. if iNdEx > l {
  18698. return io.ErrUnexpectedEOF
  18699. }
  18700. return nil
  18701. }
  18702. func (m *MemberListResponse) Unmarshal(dAtA []byte) error {
  18703. l := len(dAtA)
  18704. iNdEx := 0
  18705. for iNdEx < l {
  18706. preIndex := iNdEx
  18707. var wire uint64
  18708. for shift := uint(0); ; shift += 7 {
  18709. if shift >= 64 {
  18710. return ErrIntOverflowRpc
  18711. }
  18712. if iNdEx >= l {
  18713. return io.ErrUnexpectedEOF
  18714. }
  18715. b := dAtA[iNdEx]
  18716. iNdEx++
  18717. wire |= uint64(b&0x7F) << shift
  18718. if b < 0x80 {
  18719. break
  18720. }
  18721. }
  18722. fieldNum := int32(wire >> 3)
  18723. wireType := int(wire & 0x7)
  18724. if wireType == 4 {
  18725. return fmt.Errorf("proto: MemberListResponse: wiretype end group for non-group")
  18726. }
  18727. if fieldNum <= 0 {
  18728. return fmt.Errorf("proto: MemberListResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  18729. }
  18730. switch fieldNum {
  18731. case 1:
  18732. if wireType != 2 {
  18733. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  18734. }
  18735. var msglen int
  18736. for shift := uint(0); ; shift += 7 {
  18737. if shift >= 64 {
  18738. return ErrIntOverflowRpc
  18739. }
  18740. if iNdEx >= l {
  18741. return io.ErrUnexpectedEOF
  18742. }
  18743. b := dAtA[iNdEx]
  18744. iNdEx++
  18745. msglen |= int(b&0x7F) << shift
  18746. if b < 0x80 {
  18747. break
  18748. }
  18749. }
  18750. if msglen < 0 {
  18751. return ErrInvalidLengthRpc
  18752. }
  18753. postIndex := iNdEx + msglen
  18754. if postIndex < 0 {
  18755. return ErrInvalidLengthRpc
  18756. }
  18757. if postIndex > l {
  18758. return io.ErrUnexpectedEOF
  18759. }
  18760. if m.Header == nil {
  18761. m.Header = &ResponseHeader{}
  18762. }
  18763. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  18764. return err
  18765. }
  18766. iNdEx = postIndex
  18767. case 2:
  18768. if wireType != 2 {
  18769. return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType)
  18770. }
  18771. var msglen int
  18772. for shift := uint(0); ; shift += 7 {
  18773. if shift >= 64 {
  18774. return ErrIntOverflowRpc
  18775. }
  18776. if iNdEx >= l {
  18777. return io.ErrUnexpectedEOF
  18778. }
  18779. b := dAtA[iNdEx]
  18780. iNdEx++
  18781. msglen |= int(b&0x7F) << shift
  18782. if b < 0x80 {
  18783. break
  18784. }
  18785. }
  18786. if msglen < 0 {
  18787. return ErrInvalidLengthRpc
  18788. }
  18789. postIndex := iNdEx + msglen
  18790. if postIndex < 0 {
  18791. return ErrInvalidLengthRpc
  18792. }
  18793. if postIndex > l {
  18794. return io.ErrUnexpectedEOF
  18795. }
  18796. m.Members = append(m.Members, &Member{})
  18797. if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  18798. return err
  18799. }
  18800. iNdEx = postIndex
  18801. default:
  18802. iNdEx = preIndex
  18803. skippy, err := skipRpc(dAtA[iNdEx:])
  18804. if err != nil {
  18805. return err
  18806. }
  18807. if skippy < 0 {
  18808. return ErrInvalidLengthRpc
  18809. }
  18810. if (iNdEx + skippy) < 0 {
  18811. return ErrInvalidLengthRpc
  18812. }
  18813. if (iNdEx + skippy) > l {
  18814. return io.ErrUnexpectedEOF
  18815. }
  18816. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18817. iNdEx += skippy
  18818. }
  18819. }
  18820. if iNdEx > l {
  18821. return io.ErrUnexpectedEOF
  18822. }
  18823. return nil
  18824. }
  18825. func (m *DefragmentRequest) Unmarshal(dAtA []byte) error {
  18826. l := len(dAtA)
  18827. iNdEx := 0
  18828. for iNdEx < l {
  18829. preIndex := iNdEx
  18830. var wire uint64
  18831. for shift := uint(0); ; shift += 7 {
  18832. if shift >= 64 {
  18833. return ErrIntOverflowRpc
  18834. }
  18835. if iNdEx >= l {
  18836. return io.ErrUnexpectedEOF
  18837. }
  18838. b := dAtA[iNdEx]
  18839. iNdEx++
  18840. wire |= uint64(b&0x7F) << shift
  18841. if b < 0x80 {
  18842. break
  18843. }
  18844. }
  18845. fieldNum := int32(wire >> 3)
  18846. wireType := int(wire & 0x7)
  18847. if wireType == 4 {
  18848. return fmt.Errorf("proto: DefragmentRequest: wiretype end group for non-group")
  18849. }
  18850. if fieldNum <= 0 {
  18851. return fmt.Errorf("proto: DefragmentRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  18852. }
  18853. switch fieldNum {
  18854. default:
  18855. iNdEx = preIndex
  18856. skippy, err := skipRpc(dAtA[iNdEx:])
  18857. if err != nil {
  18858. return err
  18859. }
  18860. if skippy < 0 {
  18861. return ErrInvalidLengthRpc
  18862. }
  18863. if (iNdEx + skippy) < 0 {
  18864. return ErrInvalidLengthRpc
  18865. }
  18866. if (iNdEx + skippy) > l {
  18867. return io.ErrUnexpectedEOF
  18868. }
  18869. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18870. iNdEx += skippy
  18871. }
  18872. }
  18873. if iNdEx > l {
  18874. return io.ErrUnexpectedEOF
  18875. }
  18876. return nil
  18877. }
  18878. func (m *DefragmentResponse) Unmarshal(dAtA []byte) error {
  18879. l := len(dAtA)
  18880. iNdEx := 0
  18881. for iNdEx < l {
  18882. preIndex := iNdEx
  18883. var wire uint64
  18884. for shift := uint(0); ; shift += 7 {
  18885. if shift >= 64 {
  18886. return ErrIntOverflowRpc
  18887. }
  18888. if iNdEx >= l {
  18889. return io.ErrUnexpectedEOF
  18890. }
  18891. b := dAtA[iNdEx]
  18892. iNdEx++
  18893. wire |= uint64(b&0x7F) << shift
  18894. if b < 0x80 {
  18895. break
  18896. }
  18897. }
  18898. fieldNum := int32(wire >> 3)
  18899. wireType := int(wire & 0x7)
  18900. if wireType == 4 {
  18901. return fmt.Errorf("proto: DefragmentResponse: wiretype end group for non-group")
  18902. }
  18903. if fieldNum <= 0 {
  18904. return fmt.Errorf("proto: DefragmentResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  18905. }
  18906. switch fieldNum {
  18907. case 1:
  18908. if wireType != 2 {
  18909. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  18910. }
  18911. var msglen int
  18912. for shift := uint(0); ; shift += 7 {
  18913. if shift >= 64 {
  18914. return ErrIntOverflowRpc
  18915. }
  18916. if iNdEx >= l {
  18917. return io.ErrUnexpectedEOF
  18918. }
  18919. b := dAtA[iNdEx]
  18920. iNdEx++
  18921. msglen |= int(b&0x7F) << shift
  18922. if b < 0x80 {
  18923. break
  18924. }
  18925. }
  18926. if msglen < 0 {
  18927. return ErrInvalidLengthRpc
  18928. }
  18929. postIndex := iNdEx + msglen
  18930. if postIndex < 0 {
  18931. return ErrInvalidLengthRpc
  18932. }
  18933. if postIndex > l {
  18934. return io.ErrUnexpectedEOF
  18935. }
  18936. if m.Header == nil {
  18937. m.Header = &ResponseHeader{}
  18938. }
  18939. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  18940. return err
  18941. }
  18942. iNdEx = postIndex
  18943. default:
  18944. iNdEx = preIndex
  18945. skippy, err := skipRpc(dAtA[iNdEx:])
  18946. if err != nil {
  18947. return err
  18948. }
  18949. if skippy < 0 {
  18950. return ErrInvalidLengthRpc
  18951. }
  18952. if (iNdEx + skippy) < 0 {
  18953. return ErrInvalidLengthRpc
  18954. }
  18955. if (iNdEx + skippy) > l {
  18956. return io.ErrUnexpectedEOF
  18957. }
  18958. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18959. iNdEx += skippy
  18960. }
  18961. }
  18962. if iNdEx > l {
  18963. return io.ErrUnexpectedEOF
  18964. }
  18965. return nil
  18966. }
  18967. func (m *MoveLeaderRequest) Unmarshal(dAtA []byte) error {
  18968. l := len(dAtA)
  18969. iNdEx := 0
  18970. for iNdEx < l {
  18971. preIndex := iNdEx
  18972. var wire uint64
  18973. for shift := uint(0); ; shift += 7 {
  18974. if shift >= 64 {
  18975. return ErrIntOverflowRpc
  18976. }
  18977. if iNdEx >= l {
  18978. return io.ErrUnexpectedEOF
  18979. }
  18980. b := dAtA[iNdEx]
  18981. iNdEx++
  18982. wire |= uint64(b&0x7F) << shift
  18983. if b < 0x80 {
  18984. break
  18985. }
  18986. }
  18987. fieldNum := int32(wire >> 3)
  18988. wireType := int(wire & 0x7)
  18989. if wireType == 4 {
  18990. return fmt.Errorf("proto: MoveLeaderRequest: wiretype end group for non-group")
  18991. }
  18992. if fieldNum <= 0 {
  18993. return fmt.Errorf("proto: MoveLeaderRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  18994. }
  18995. switch fieldNum {
  18996. case 1:
  18997. if wireType != 0 {
  18998. return fmt.Errorf("proto: wrong wireType = %d for field TargetID", wireType)
  18999. }
  19000. m.TargetID = 0
  19001. for shift := uint(0); ; shift += 7 {
  19002. if shift >= 64 {
  19003. return ErrIntOverflowRpc
  19004. }
  19005. if iNdEx >= l {
  19006. return io.ErrUnexpectedEOF
  19007. }
  19008. b := dAtA[iNdEx]
  19009. iNdEx++
  19010. m.TargetID |= uint64(b&0x7F) << shift
  19011. if b < 0x80 {
  19012. break
  19013. }
  19014. }
  19015. default:
  19016. iNdEx = preIndex
  19017. skippy, err := skipRpc(dAtA[iNdEx:])
  19018. if err != nil {
  19019. return err
  19020. }
  19021. if skippy < 0 {
  19022. return ErrInvalidLengthRpc
  19023. }
  19024. if (iNdEx + skippy) < 0 {
  19025. return ErrInvalidLengthRpc
  19026. }
  19027. if (iNdEx + skippy) > l {
  19028. return io.ErrUnexpectedEOF
  19029. }
  19030. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  19031. iNdEx += skippy
  19032. }
  19033. }
  19034. if iNdEx > l {
  19035. return io.ErrUnexpectedEOF
  19036. }
  19037. return nil
  19038. }
  19039. func (m *MoveLeaderResponse) Unmarshal(dAtA []byte) error {
  19040. l := len(dAtA)
  19041. iNdEx := 0
  19042. for iNdEx < l {
  19043. preIndex := iNdEx
  19044. var wire uint64
  19045. for shift := uint(0); ; shift += 7 {
  19046. if shift >= 64 {
  19047. return ErrIntOverflowRpc
  19048. }
  19049. if iNdEx >= l {
  19050. return io.ErrUnexpectedEOF
  19051. }
  19052. b := dAtA[iNdEx]
  19053. iNdEx++
  19054. wire |= uint64(b&0x7F) << shift
  19055. if b < 0x80 {
  19056. break
  19057. }
  19058. }
  19059. fieldNum := int32(wire >> 3)
  19060. wireType := int(wire & 0x7)
  19061. if wireType == 4 {
  19062. return fmt.Errorf("proto: MoveLeaderResponse: wiretype end group for non-group")
  19063. }
  19064. if fieldNum <= 0 {
  19065. return fmt.Errorf("proto: MoveLeaderResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  19066. }
  19067. switch fieldNum {
  19068. case 1:
  19069. if wireType != 2 {
  19070. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  19071. }
  19072. var msglen int
  19073. for shift := uint(0); ; shift += 7 {
  19074. if shift >= 64 {
  19075. return ErrIntOverflowRpc
  19076. }
  19077. if iNdEx >= l {
  19078. return io.ErrUnexpectedEOF
  19079. }
  19080. b := dAtA[iNdEx]
  19081. iNdEx++
  19082. msglen |= int(b&0x7F) << shift
  19083. if b < 0x80 {
  19084. break
  19085. }
  19086. }
  19087. if msglen < 0 {
  19088. return ErrInvalidLengthRpc
  19089. }
  19090. postIndex := iNdEx + msglen
  19091. if postIndex < 0 {
  19092. return ErrInvalidLengthRpc
  19093. }
  19094. if postIndex > l {
  19095. return io.ErrUnexpectedEOF
  19096. }
  19097. if m.Header == nil {
  19098. m.Header = &ResponseHeader{}
  19099. }
  19100. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  19101. return err
  19102. }
  19103. iNdEx = postIndex
  19104. default:
  19105. iNdEx = preIndex
  19106. skippy, err := skipRpc(dAtA[iNdEx:])
  19107. if err != nil {
  19108. return err
  19109. }
  19110. if skippy < 0 {
  19111. return ErrInvalidLengthRpc
  19112. }
  19113. if (iNdEx + skippy) < 0 {
  19114. return ErrInvalidLengthRpc
  19115. }
  19116. if (iNdEx + skippy) > l {
  19117. return io.ErrUnexpectedEOF
  19118. }
  19119. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  19120. iNdEx += skippy
  19121. }
  19122. }
  19123. if iNdEx > l {
  19124. return io.ErrUnexpectedEOF
  19125. }
  19126. return nil
  19127. }
  19128. func (m *AlarmRequest) Unmarshal(dAtA []byte) error {
  19129. l := len(dAtA)
  19130. iNdEx := 0
  19131. for iNdEx < l {
  19132. preIndex := iNdEx
  19133. var wire uint64
  19134. for shift := uint(0); ; shift += 7 {
  19135. if shift >= 64 {
  19136. return ErrIntOverflowRpc
  19137. }
  19138. if iNdEx >= l {
  19139. return io.ErrUnexpectedEOF
  19140. }
  19141. b := dAtA[iNdEx]
  19142. iNdEx++
  19143. wire |= uint64(b&0x7F) << shift
  19144. if b < 0x80 {
  19145. break
  19146. }
  19147. }
  19148. fieldNum := int32(wire >> 3)
  19149. wireType := int(wire & 0x7)
  19150. if wireType == 4 {
  19151. return fmt.Errorf("proto: AlarmRequest: wiretype end group for non-group")
  19152. }
  19153. if fieldNum <= 0 {
  19154. return fmt.Errorf("proto: AlarmRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  19155. }
  19156. switch fieldNum {
  19157. case 1:
  19158. if wireType != 0 {
  19159. return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType)
  19160. }
  19161. m.Action = 0
  19162. for shift := uint(0); ; shift += 7 {
  19163. if shift >= 64 {
  19164. return ErrIntOverflowRpc
  19165. }
  19166. if iNdEx >= l {
  19167. return io.ErrUnexpectedEOF
  19168. }
  19169. b := dAtA[iNdEx]
  19170. iNdEx++
  19171. m.Action |= AlarmRequest_AlarmAction(b&0x7F) << shift
  19172. if b < 0x80 {
  19173. break
  19174. }
  19175. }
  19176. case 2:
  19177. if wireType != 0 {
  19178. return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType)
  19179. }
  19180. m.MemberID = 0
  19181. for shift := uint(0); ; shift += 7 {
  19182. if shift >= 64 {
  19183. return ErrIntOverflowRpc
  19184. }
  19185. if iNdEx >= l {
  19186. return io.ErrUnexpectedEOF
  19187. }
  19188. b := dAtA[iNdEx]
  19189. iNdEx++
  19190. m.MemberID |= uint64(b&0x7F) << shift
  19191. if b < 0x80 {
  19192. break
  19193. }
  19194. }
  19195. case 3:
  19196. if wireType != 0 {
  19197. return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType)
  19198. }
  19199. m.Alarm = 0
  19200. for shift := uint(0); ; shift += 7 {
  19201. if shift >= 64 {
  19202. return ErrIntOverflowRpc
  19203. }
  19204. if iNdEx >= l {
  19205. return io.ErrUnexpectedEOF
  19206. }
  19207. b := dAtA[iNdEx]
  19208. iNdEx++
  19209. m.Alarm |= AlarmType(b&0x7F) << shift
  19210. if b < 0x80 {
  19211. break
  19212. }
  19213. }
  19214. default:
  19215. iNdEx = preIndex
  19216. skippy, err := skipRpc(dAtA[iNdEx:])
  19217. if err != nil {
  19218. return err
  19219. }
  19220. if skippy < 0 {
  19221. return ErrInvalidLengthRpc
  19222. }
  19223. if (iNdEx + skippy) < 0 {
  19224. return ErrInvalidLengthRpc
  19225. }
  19226. if (iNdEx + skippy) > l {
  19227. return io.ErrUnexpectedEOF
  19228. }
  19229. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  19230. iNdEx += skippy
  19231. }
  19232. }
  19233. if iNdEx > l {
  19234. return io.ErrUnexpectedEOF
  19235. }
  19236. return nil
  19237. }
  19238. func (m *AlarmMember) Unmarshal(dAtA []byte) error {
  19239. l := len(dAtA)
  19240. iNdEx := 0
  19241. for iNdEx < l {
  19242. preIndex := iNdEx
  19243. var wire uint64
  19244. for shift := uint(0); ; shift += 7 {
  19245. if shift >= 64 {
  19246. return ErrIntOverflowRpc
  19247. }
  19248. if iNdEx >= l {
  19249. return io.ErrUnexpectedEOF
  19250. }
  19251. b := dAtA[iNdEx]
  19252. iNdEx++
  19253. wire |= uint64(b&0x7F) << shift
  19254. if b < 0x80 {
  19255. break
  19256. }
  19257. }
  19258. fieldNum := int32(wire >> 3)
  19259. wireType := int(wire & 0x7)
  19260. if wireType == 4 {
  19261. return fmt.Errorf("proto: AlarmMember: wiretype end group for non-group")
  19262. }
  19263. if fieldNum <= 0 {
  19264. return fmt.Errorf("proto: AlarmMember: illegal tag %d (wire type %d)", fieldNum, wire)
  19265. }
  19266. switch fieldNum {
  19267. case 1:
  19268. if wireType != 0 {
  19269. return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType)
  19270. }
  19271. m.MemberID = 0
  19272. for shift := uint(0); ; shift += 7 {
  19273. if shift >= 64 {
  19274. return ErrIntOverflowRpc
  19275. }
  19276. if iNdEx >= l {
  19277. return io.ErrUnexpectedEOF
  19278. }
  19279. b := dAtA[iNdEx]
  19280. iNdEx++
  19281. m.MemberID |= uint64(b&0x7F) << shift
  19282. if b < 0x80 {
  19283. break
  19284. }
  19285. }
  19286. case 2:
  19287. if wireType != 0 {
  19288. return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType)
  19289. }
  19290. m.Alarm = 0
  19291. for shift := uint(0); ; shift += 7 {
  19292. if shift >= 64 {
  19293. return ErrIntOverflowRpc
  19294. }
  19295. if iNdEx >= l {
  19296. return io.ErrUnexpectedEOF
  19297. }
  19298. b := dAtA[iNdEx]
  19299. iNdEx++
  19300. m.Alarm |= AlarmType(b&0x7F) << shift
  19301. if b < 0x80 {
  19302. break
  19303. }
  19304. }
  19305. default:
  19306. iNdEx = preIndex
  19307. skippy, err := skipRpc(dAtA[iNdEx:])
  19308. if err != nil {
  19309. return err
  19310. }
  19311. if skippy < 0 {
  19312. return ErrInvalidLengthRpc
  19313. }
  19314. if (iNdEx + skippy) < 0 {
  19315. return ErrInvalidLengthRpc
  19316. }
  19317. if (iNdEx + skippy) > l {
  19318. return io.ErrUnexpectedEOF
  19319. }
  19320. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  19321. iNdEx += skippy
  19322. }
  19323. }
  19324. if iNdEx > l {
  19325. return io.ErrUnexpectedEOF
  19326. }
  19327. return nil
  19328. }
  19329. func (m *AlarmResponse) Unmarshal(dAtA []byte) error {
  19330. l := len(dAtA)
  19331. iNdEx := 0
  19332. for iNdEx < l {
  19333. preIndex := iNdEx
  19334. var wire uint64
  19335. for shift := uint(0); ; shift += 7 {
  19336. if shift >= 64 {
  19337. return ErrIntOverflowRpc
  19338. }
  19339. if iNdEx >= l {
  19340. return io.ErrUnexpectedEOF
  19341. }
  19342. b := dAtA[iNdEx]
  19343. iNdEx++
  19344. wire |= uint64(b&0x7F) << shift
  19345. if b < 0x80 {
  19346. break
  19347. }
  19348. }
  19349. fieldNum := int32(wire >> 3)
  19350. wireType := int(wire & 0x7)
  19351. if wireType == 4 {
  19352. return fmt.Errorf("proto: AlarmResponse: wiretype end group for non-group")
  19353. }
  19354. if fieldNum <= 0 {
  19355. return fmt.Errorf("proto: AlarmResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  19356. }
  19357. switch fieldNum {
  19358. case 1:
  19359. if wireType != 2 {
  19360. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  19361. }
  19362. var msglen int
  19363. for shift := uint(0); ; shift += 7 {
  19364. if shift >= 64 {
  19365. return ErrIntOverflowRpc
  19366. }
  19367. if iNdEx >= l {
  19368. return io.ErrUnexpectedEOF
  19369. }
  19370. b := dAtA[iNdEx]
  19371. iNdEx++
  19372. msglen |= int(b&0x7F) << shift
  19373. if b < 0x80 {
  19374. break
  19375. }
  19376. }
  19377. if msglen < 0 {
  19378. return ErrInvalidLengthRpc
  19379. }
  19380. postIndex := iNdEx + msglen
  19381. if postIndex < 0 {
  19382. return ErrInvalidLengthRpc
  19383. }
  19384. if postIndex > l {
  19385. return io.ErrUnexpectedEOF
  19386. }
  19387. if m.Header == nil {
  19388. m.Header = &ResponseHeader{}
  19389. }
  19390. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  19391. return err
  19392. }
  19393. iNdEx = postIndex
  19394. case 2:
  19395. if wireType != 2 {
  19396. return fmt.Errorf("proto: wrong wireType = %d for field Alarms", wireType)
  19397. }
  19398. var msglen int
  19399. for shift := uint(0); ; shift += 7 {
  19400. if shift >= 64 {
  19401. return ErrIntOverflowRpc
  19402. }
  19403. if iNdEx >= l {
  19404. return io.ErrUnexpectedEOF
  19405. }
  19406. b := dAtA[iNdEx]
  19407. iNdEx++
  19408. msglen |= int(b&0x7F) << shift
  19409. if b < 0x80 {
  19410. break
  19411. }
  19412. }
  19413. if msglen < 0 {
  19414. return ErrInvalidLengthRpc
  19415. }
  19416. postIndex := iNdEx + msglen
  19417. if postIndex < 0 {
  19418. return ErrInvalidLengthRpc
  19419. }
  19420. if postIndex > l {
  19421. return io.ErrUnexpectedEOF
  19422. }
  19423. m.Alarms = append(m.Alarms, &AlarmMember{})
  19424. if err := m.Alarms[len(m.Alarms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  19425. return err
  19426. }
  19427. iNdEx = postIndex
  19428. default:
  19429. iNdEx = preIndex
  19430. skippy, err := skipRpc(dAtA[iNdEx:])
  19431. if err != nil {
  19432. return err
  19433. }
  19434. if skippy < 0 {
  19435. return ErrInvalidLengthRpc
  19436. }
  19437. if (iNdEx + skippy) < 0 {
  19438. return ErrInvalidLengthRpc
  19439. }
  19440. if (iNdEx + skippy) > l {
  19441. return io.ErrUnexpectedEOF
  19442. }
  19443. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  19444. iNdEx += skippy
  19445. }
  19446. }
  19447. if iNdEx > l {
  19448. return io.ErrUnexpectedEOF
  19449. }
  19450. return nil
  19451. }
  19452. func (m *StatusRequest) Unmarshal(dAtA []byte) error {
  19453. l := len(dAtA)
  19454. iNdEx := 0
  19455. for iNdEx < l {
  19456. preIndex := iNdEx
  19457. var wire uint64
  19458. for shift := uint(0); ; shift += 7 {
  19459. if shift >= 64 {
  19460. return ErrIntOverflowRpc
  19461. }
  19462. if iNdEx >= l {
  19463. return io.ErrUnexpectedEOF
  19464. }
  19465. b := dAtA[iNdEx]
  19466. iNdEx++
  19467. wire |= uint64(b&0x7F) << shift
  19468. if b < 0x80 {
  19469. break
  19470. }
  19471. }
  19472. fieldNum := int32(wire >> 3)
  19473. wireType := int(wire & 0x7)
  19474. if wireType == 4 {
  19475. return fmt.Errorf("proto: StatusRequest: wiretype end group for non-group")
  19476. }
  19477. if fieldNum <= 0 {
  19478. return fmt.Errorf("proto: StatusRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  19479. }
  19480. switch fieldNum {
  19481. default:
  19482. iNdEx = preIndex
  19483. skippy, err := skipRpc(dAtA[iNdEx:])
  19484. if err != nil {
  19485. return err
  19486. }
  19487. if skippy < 0 {
  19488. return ErrInvalidLengthRpc
  19489. }
  19490. if (iNdEx + skippy) < 0 {
  19491. return ErrInvalidLengthRpc
  19492. }
  19493. if (iNdEx + skippy) > l {
  19494. return io.ErrUnexpectedEOF
  19495. }
  19496. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  19497. iNdEx += skippy
  19498. }
  19499. }
  19500. if iNdEx > l {
  19501. return io.ErrUnexpectedEOF
  19502. }
  19503. return nil
  19504. }
  19505. func (m *StatusResponse) Unmarshal(dAtA []byte) error {
  19506. l := len(dAtA)
  19507. iNdEx := 0
  19508. for iNdEx < l {
  19509. preIndex := iNdEx
  19510. var wire uint64
  19511. for shift := uint(0); ; shift += 7 {
  19512. if shift >= 64 {
  19513. return ErrIntOverflowRpc
  19514. }
  19515. if iNdEx >= l {
  19516. return io.ErrUnexpectedEOF
  19517. }
  19518. b := dAtA[iNdEx]
  19519. iNdEx++
  19520. wire |= uint64(b&0x7F) << shift
  19521. if b < 0x80 {
  19522. break
  19523. }
  19524. }
  19525. fieldNum := int32(wire >> 3)
  19526. wireType := int(wire & 0x7)
  19527. if wireType == 4 {
  19528. return fmt.Errorf("proto: StatusResponse: wiretype end group for non-group")
  19529. }
  19530. if fieldNum <= 0 {
  19531. return fmt.Errorf("proto: StatusResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  19532. }
  19533. switch fieldNum {
  19534. case 1:
  19535. if wireType != 2 {
  19536. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  19537. }
  19538. var msglen int
  19539. for shift := uint(0); ; shift += 7 {
  19540. if shift >= 64 {
  19541. return ErrIntOverflowRpc
  19542. }
  19543. if iNdEx >= l {
  19544. return io.ErrUnexpectedEOF
  19545. }
  19546. b := dAtA[iNdEx]
  19547. iNdEx++
  19548. msglen |= int(b&0x7F) << shift
  19549. if b < 0x80 {
  19550. break
  19551. }
  19552. }
  19553. if msglen < 0 {
  19554. return ErrInvalidLengthRpc
  19555. }
  19556. postIndex := iNdEx + msglen
  19557. if postIndex < 0 {
  19558. return ErrInvalidLengthRpc
  19559. }
  19560. if postIndex > l {
  19561. return io.ErrUnexpectedEOF
  19562. }
  19563. if m.Header == nil {
  19564. m.Header = &ResponseHeader{}
  19565. }
  19566. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  19567. return err
  19568. }
  19569. iNdEx = postIndex
  19570. case 2:
  19571. if wireType != 2 {
  19572. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  19573. }
  19574. var stringLen uint64
  19575. for shift := uint(0); ; shift += 7 {
  19576. if shift >= 64 {
  19577. return ErrIntOverflowRpc
  19578. }
  19579. if iNdEx >= l {
  19580. return io.ErrUnexpectedEOF
  19581. }
  19582. b := dAtA[iNdEx]
  19583. iNdEx++
  19584. stringLen |= uint64(b&0x7F) << shift
  19585. if b < 0x80 {
  19586. break
  19587. }
  19588. }
  19589. intStringLen := int(stringLen)
  19590. if intStringLen < 0 {
  19591. return ErrInvalidLengthRpc
  19592. }
  19593. postIndex := iNdEx + intStringLen
  19594. if postIndex < 0 {
  19595. return ErrInvalidLengthRpc
  19596. }
  19597. if postIndex > l {
  19598. return io.ErrUnexpectedEOF
  19599. }
  19600. m.Version = string(dAtA[iNdEx:postIndex])
  19601. iNdEx = postIndex
  19602. case 3:
  19603. if wireType != 0 {
  19604. return fmt.Errorf("proto: wrong wireType = %d for field DbSize", wireType)
  19605. }
  19606. m.DbSize = 0
  19607. for shift := uint(0); ; shift += 7 {
  19608. if shift >= 64 {
  19609. return ErrIntOverflowRpc
  19610. }
  19611. if iNdEx >= l {
  19612. return io.ErrUnexpectedEOF
  19613. }
  19614. b := dAtA[iNdEx]
  19615. iNdEx++
  19616. m.DbSize |= int64(b&0x7F) << shift
  19617. if b < 0x80 {
  19618. break
  19619. }
  19620. }
  19621. case 4:
  19622. if wireType != 0 {
  19623. return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType)
  19624. }
  19625. m.Leader = 0
  19626. for shift := uint(0); ; shift += 7 {
  19627. if shift >= 64 {
  19628. return ErrIntOverflowRpc
  19629. }
  19630. if iNdEx >= l {
  19631. return io.ErrUnexpectedEOF
  19632. }
  19633. b := dAtA[iNdEx]
  19634. iNdEx++
  19635. m.Leader |= uint64(b&0x7F) << shift
  19636. if b < 0x80 {
  19637. break
  19638. }
  19639. }
  19640. case 5:
  19641. if wireType != 0 {
  19642. return fmt.Errorf("proto: wrong wireType = %d for field RaftIndex", wireType)
  19643. }
  19644. m.RaftIndex = 0
  19645. for shift := uint(0); ; shift += 7 {
  19646. if shift >= 64 {
  19647. return ErrIntOverflowRpc
  19648. }
  19649. if iNdEx >= l {
  19650. return io.ErrUnexpectedEOF
  19651. }
  19652. b := dAtA[iNdEx]
  19653. iNdEx++
  19654. m.RaftIndex |= uint64(b&0x7F) << shift
  19655. if b < 0x80 {
  19656. break
  19657. }
  19658. }
  19659. case 6:
  19660. if wireType != 0 {
  19661. return fmt.Errorf("proto: wrong wireType = %d for field RaftTerm", wireType)
  19662. }
  19663. m.RaftTerm = 0
  19664. for shift := uint(0); ; shift += 7 {
  19665. if shift >= 64 {
  19666. return ErrIntOverflowRpc
  19667. }
  19668. if iNdEx >= l {
  19669. return io.ErrUnexpectedEOF
  19670. }
  19671. b := dAtA[iNdEx]
  19672. iNdEx++
  19673. m.RaftTerm |= uint64(b&0x7F) << shift
  19674. if b < 0x80 {
  19675. break
  19676. }
  19677. }
  19678. default:
  19679. iNdEx = preIndex
  19680. skippy, err := skipRpc(dAtA[iNdEx:])
  19681. if err != nil {
  19682. return err
  19683. }
  19684. if skippy < 0 {
  19685. return ErrInvalidLengthRpc
  19686. }
  19687. if (iNdEx + skippy) < 0 {
  19688. return ErrInvalidLengthRpc
  19689. }
  19690. if (iNdEx + skippy) > l {
  19691. return io.ErrUnexpectedEOF
  19692. }
  19693. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  19694. iNdEx += skippy
  19695. }
  19696. }
  19697. if iNdEx > l {
  19698. return io.ErrUnexpectedEOF
  19699. }
  19700. return nil
  19701. }
  19702. func (m *AuthEnableRequest) Unmarshal(dAtA []byte) error {
  19703. l := len(dAtA)
  19704. iNdEx := 0
  19705. for iNdEx < l {
  19706. preIndex := iNdEx
  19707. var wire uint64
  19708. for shift := uint(0); ; shift += 7 {
  19709. if shift >= 64 {
  19710. return ErrIntOverflowRpc
  19711. }
  19712. if iNdEx >= l {
  19713. return io.ErrUnexpectedEOF
  19714. }
  19715. b := dAtA[iNdEx]
  19716. iNdEx++
  19717. wire |= uint64(b&0x7F) << shift
  19718. if b < 0x80 {
  19719. break
  19720. }
  19721. }
  19722. fieldNum := int32(wire >> 3)
  19723. wireType := int(wire & 0x7)
  19724. if wireType == 4 {
  19725. return fmt.Errorf("proto: AuthEnableRequest: wiretype end group for non-group")
  19726. }
  19727. if fieldNum <= 0 {
  19728. return fmt.Errorf("proto: AuthEnableRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  19729. }
  19730. switch fieldNum {
  19731. default:
  19732. iNdEx = preIndex
  19733. skippy, err := skipRpc(dAtA[iNdEx:])
  19734. if err != nil {
  19735. return err
  19736. }
  19737. if skippy < 0 {
  19738. return ErrInvalidLengthRpc
  19739. }
  19740. if (iNdEx + skippy) < 0 {
  19741. return ErrInvalidLengthRpc
  19742. }
  19743. if (iNdEx + skippy) > l {
  19744. return io.ErrUnexpectedEOF
  19745. }
  19746. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  19747. iNdEx += skippy
  19748. }
  19749. }
  19750. if iNdEx > l {
  19751. return io.ErrUnexpectedEOF
  19752. }
  19753. return nil
  19754. }
  19755. func (m *AuthDisableRequest) Unmarshal(dAtA []byte) error {
  19756. l := len(dAtA)
  19757. iNdEx := 0
  19758. for iNdEx < l {
  19759. preIndex := iNdEx
  19760. var wire uint64
  19761. for shift := uint(0); ; shift += 7 {
  19762. if shift >= 64 {
  19763. return ErrIntOverflowRpc
  19764. }
  19765. if iNdEx >= l {
  19766. return io.ErrUnexpectedEOF
  19767. }
  19768. b := dAtA[iNdEx]
  19769. iNdEx++
  19770. wire |= uint64(b&0x7F) << shift
  19771. if b < 0x80 {
  19772. break
  19773. }
  19774. }
  19775. fieldNum := int32(wire >> 3)
  19776. wireType := int(wire & 0x7)
  19777. if wireType == 4 {
  19778. return fmt.Errorf("proto: AuthDisableRequest: wiretype end group for non-group")
  19779. }
  19780. if fieldNum <= 0 {
  19781. return fmt.Errorf("proto: AuthDisableRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  19782. }
  19783. switch fieldNum {
  19784. default:
  19785. iNdEx = preIndex
  19786. skippy, err := skipRpc(dAtA[iNdEx:])
  19787. if err != nil {
  19788. return err
  19789. }
  19790. if skippy < 0 {
  19791. return ErrInvalidLengthRpc
  19792. }
  19793. if (iNdEx + skippy) < 0 {
  19794. return ErrInvalidLengthRpc
  19795. }
  19796. if (iNdEx + skippy) > l {
  19797. return io.ErrUnexpectedEOF
  19798. }
  19799. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  19800. iNdEx += skippy
  19801. }
  19802. }
  19803. if iNdEx > l {
  19804. return io.ErrUnexpectedEOF
  19805. }
  19806. return nil
  19807. }
  19808. func (m *AuthenticateRequest) Unmarshal(dAtA []byte) error {
  19809. l := len(dAtA)
  19810. iNdEx := 0
  19811. for iNdEx < l {
  19812. preIndex := iNdEx
  19813. var wire uint64
  19814. for shift := uint(0); ; shift += 7 {
  19815. if shift >= 64 {
  19816. return ErrIntOverflowRpc
  19817. }
  19818. if iNdEx >= l {
  19819. return io.ErrUnexpectedEOF
  19820. }
  19821. b := dAtA[iNdEx]
  19822. iNdEx++
  19823. wire |= uint64(b&0x7F) << shift
  19824. if b < 0x80 {
  19825. break
  19826. }
  19827. }
  19828. fieldNum := int32(wire >> 3)
  19829. wireType := int(wire & 0x7)
  19830. if wireType == 4 {
  19831. return fmt.Errorf("proto: AuthenticateRequest: wiretype end group for non-group")
  19832. }
  19833. if fieldNum <= 0 {
  19834. return fmt.Errorf("proto: AuthenticateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  19835. }
  19836. switch fieldNum {
  19837. case 1:
  19838. if wireType != 2 {
  19839. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  19840. }
  19841. var stringLen uint64
  19842. for shift := uint(0); ; shift += 7 {
  19843. if shift >= 64 {
  19844. return ErrIntOverflowRpc
  19845. }
  19846. if iNdEx >= l {
  19847. return io.ErrUnexpectedEOF
  19848. }
  19849. b := dAtA[iNdEx]
  19850. iNdEx++
  19851. stringLen |= uint64(b&0x7F) << shift
  19852. if b < 0x80 {
  19853. break
  19854. }
  19855. }
  19856. intStringLen := int(stringLen)
  19857. if intStringLen < 0 {
  19858. return ErrInvalidLengthRpc
  19859. }
  19860. postIndex := iNdEx + intStringLen
  19861. if postIndex < 0 {
  19862. return ErrInvalidLengthRpc
  19863. }
  19864. if postIndex > l {
  19865. return io.ErrUnexpectedEOF
  19866. }
  19867. m.Name = string(dAtA[iNdEx:postIndex])
  19868. iNdEx = postIndex
  19869. case 2:
  19870. if wireType != 2 {
  19871. return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
  19872. }
  19873. var stringLen uint64
  19874. for shift := uint(0); ; shift += 7 {
  19875. if shift >= 64 {
  19876. return ErrIntOverflowRpc
  19877. }
  19878. if iNdEx >= l {
  19879. return io.ErrUnexpectedEOF
  19880. }
  19881. b := dAtA[iNdEx]
  19882. iNdEx++
  19883. stringLen |= uint64(b&0x7F) << shift
  19884. if b < 0x80 {
  19885. break
  19886. }
  19887. }
  19888. intStringLen := int(stringLen)
  19889. if intStringLen < 0 {
  19890. return ErrInvalidLengthRpc
  19891. }
  19892. postIndex := iNdEx + intStringLen
  19893. if postIndex < 0 {
  19894. return ErrInvalidLengthRpc
  19895. }
  19896. if postIndex > l {
  19897. return io.ErrUnexpectedEOF
  19898. }
  19899. m.Password = string(dAtA[iNdEx:postIndex])
  19900. iNdEx = postIndex
  19901. default:
  19902. iNdEx = preIndex
  19903. skippy, err := skipRpc(dAtA[iNdEx:])
  19904. if err != nil {
  19905. return err
  19906. }
  19907. if skippy < 0 {
  19908. return ErrInvalidLengthRpc
  19909. }
  19910. if (iNdEx + skippy) < 0 {
  19911. return ErrInvalidLengthRpc
  19912. }
  19913. if (iNdEx + skippy) > l {
  19914. return io.ErrUnexpectedEOF
  19915. }
  19916. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  19917. iNdEx += skippy
  19918. }
  19919. }
  19920. if iNdEx > l {
  19921. return io.ErrUnexpectedEOF
  19922. }
  19923. return nil
  19924. }
  19925. func (m *AuthUserAddRequest) Unmarshal(dAtA []byte) error {
  19926. l := len(dAtA)
  19927. iNdEx := 0
  19928. for iNdEx < l {
  19929. preIndex := iNdEx
  19930. var wire uint64
  19931. for shift := uint(0); ; shift += 7 {
  19932. if shift >= 64 {
  19933. return ErrIntOverflowRpc
  19934. }
  19935. if iNdEx >= l {
  19936. return io.ErrUnexpectedEOF
  19937. }
  19938. b := dAtA[iNdEx]
  19939. iNdEx++
  19940. wire |= uint64(b&0x7F) << shift
  19941. if b < 0x80 {
  19942. break
  19943. }
  19944. }
  19945. fieldNum := int32(wire >> 3)
  19946. wireType := int(wire & 0x7)
  19947. if wireType == 4 {
  19948. return fmt.Errorf("proto: AuthUserAddRequest: wiretype end group for non-group")
  19949. }
  19950. if fieldNum <= 0 {
  19951. return fmt.Errorf("proto: AuthUserAddRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  19952. }
  19953. switch fieldNum {
  19954. case 1:
  19955. if wireType != 2 {
  19956. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  19957. }
  19958. var stringLen uint64
  19959. for shift := uint(0); ; shift += 7 {
  19960. if shift >= 64 {
  19961. return ErrIntOverflowRpc
  19962. }
  19963. if iNdEx >= l {
  19964. return io.ErrUnexpectedEOF
  19965. }
  19966. b := dAtA[iNdEx]
  19967. iNdEx++
  19968. stringLen |= uint64(b&0x7F) << shift
  19969. if b < 0x80 {
  19970. break
  19971. }
  19972. }
  19973. intStringLen := int(stringLen)
  19974. if intStringLen < 0 {
  19975. return ErrInvalidLengthRpc
  19976. }
  19977. postIndex := iNdEx + intStringLen
  19978. if postIndex < 0 {
  19979. return ErrInvalidLengthRpc
  19980. }
  19981. if postIndex > l {
  19982. return io.ErrUnexpectedEOF
  19983. }
  19984. m.Name = string(dAtA[iNdEx:postIndex])
  19985. iNdEx = postIndex
  19986. case 2:
  19987. if wireType != 2 {
  19988. return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
  19989. }
  19990. var stringLen uint64
  19991. for shift := uint(0); ; shift += 7 {
  19992. if shift >= 64 {
  19993. return ErrIntOverflowRpc
  19994. }
  19995. if iNdEx >= l {
  19996. return io.ErrUnexpectedEOF
  19997. }
  19998. b := dAtA[iNdEx]
  19999. iNdEx++
  20000. stringLen |= uint64(b&0x7F) << shift
  20001. if b < 0x80 {
  20002. break
  20003. }
  20004. }
  20005. intStringLen := int(stringLen)
  20006. if intStringLen < 0 {
  20007. return ErrInvalidLengthRpc
  20008. }
  20009. postIndex := iNdEx + intStringLen
  20010. if postIndex < 0 {
  20011. return ErrInvalidLengthRpc
  20012. }
  20013. if postIndex > l {
  20014. return io.ErrUnexpectedEOF
  20015. }
  20016. m.Password = string(dAtA[iNdEx:postIndex])
  20017. iNdEx = postIndex
  20018. default:
  20019. iNdEx = preIndex
  20020. skippy, err := skipRpc(dAtA[iNdEx:])
  20021. if err != nil {
  20022. return err
  20023. }
  20024. if skippy < 0 {
  20025. return ErrInvalidLengthRpc
  20026. }
  20027. if (iNdEx + skippy) < 0 {
  20028. return ErrInvalidLengthRpc
  20029. }
  20030. if (iNdEx + skippy) > l {
  20031. return io.ErrUnexpectedEOF
  20032. }
  20033. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  20034. iNdEx += skippy
  20035. }
  20036. }
  20037. if iNdEx > l {
  20038. return io.ErrUnexpectedEOF
  20039. }
  20040. return nil
  20041. }
  20042. func (m *AuthUserGetRequest) Unmarshal(dAtA []byte) error {
  20043. l := len(dAtA)
  20044. iNdEx := 0
  20045. for iNdEx < l {
  20046. preIndex := iNdEx
  20047. var wire uint64
  20048. for shift := uint(0); ; shift += 7 {
  20049. if shift >= 64 {
  20050. return ErrIntOverflowRpc
  20051. }
  20052. if iNdEx >= l {
  20053. return io.ErrUnexpectedEOF
  20054. }
  20055. b := dAtA[iNdEx]
  20056. iNdEx++
  20057. wire |= uint64(b&0x7F) << shift
  20058. if b < 0x80 {
  20059. break
  20060. }
  20061. }
  20062. fieldNum := int32(wire >> 3)
  20063. wireType := int(wire & 0x7)
  20064. if wireType == 4 {
  20065. return fmt.Errorf("proto: AuthUserGetRequest: wiretype end group for non-group")
  20066. }
  20067. if fieldNum <= 0 {
  20068. return fmt.Errorf("proto: AuthUserGetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  20069. }
  20070. switch fieldNum {
  20071. case 1:
  20072. if wireType != 2 {
  20073. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  20074. }
  20075. var stringLen uint64
  20076. for shift := uint(0); ; shift += 7 {
  20077. if shift >= 64 {
  20078. return ErrIntOverflowRpc
  20079. }
  20080. if iNdEx >= l {
  20081. return io.ErrUnexpectedEOF
  20082. }
  20083. b := dAtA[iNdEx]
  20084. iNdEx++
  20085. stringLen |= uint64(b&0x7F) << shift
  20086. if b < 0x80 {
  20087. break
  20088. }
  20089. }
  20090. intStringLen := int(stringLen)
  20091. if intStringLen < 0 {
  20092. return ErrInvalidLengthRpc
  20093. }
  20094. postIndex := iNdEx + intStringLen
  20095. if postIndex < 0 {
  20096. return ErrInvalidLengthRpc
  20097. }
  20098. if postIndex > l {
  20099. return io.ErrUnexpectedEOF
  20100. }
  20101. m.Name = string(dAtA[iNdEx:postIndex])
  20102. iNdEx = postIndex
  20103. default:
  20104. iNdEx = preIndex
  20105. skippy, err := skipRpc(dAtA[iNdEx:])
  20106. if err != nil {
  20107. return err
  20108. }
  20109. if skippy < 0 {
  20110. return ErrInvalidLengthRpc
  20111. }
  20112. if (iNdEx + skippy) < 0 {
  20113. return ErrInvalidLengthRpc
  20114. }
  20115. if (iNdEx + skippy) > l {
  20116. return io.ErrUnexpectedEOF
  20117. }
  20118. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  20119. iNdEx += skippy
  20120. }
  20121. }
  20122. if iNdEx > l {
  20123. return io.ErrUnexpectedEOF
  20124. }
  20125. return nil
  20126. }
  20127. func (m *AuthUserDeleteRequest) Unmarshal(dAtA []byte) error {
  20128. l := len(dAtA)
  20129. iNdEx := 0
  20130. for iNdEx < l {
  20131. preIndex := iNdEx
  20132. var wire uint64
  20133. for shift := uint(0); ; shift += 7 {
  20134. if shift >= 64 {
  20135. return ErrIntOverflowRpc
  20136. }
  20137. if iNdEx >= l {
  20138. return io.ErrUnexpectedEOF
  20139. }
  20140. b := dAtA[iNdEx]
  20141. iNdEx++
  20142. wire |= uint64(b&0x7F) << shift
  20143. if b < 0x80 {
  20144. break
  20145. }
  20146. }
  20147. fieldNum := int32(wire >> 3)
  20148. wireType := int(wire & 0x7)
  20149. if wireType == 4 {
  20150. return fmt.Errorf("proto: AuthUserDeleteRequest: wiretype end group for non-group")
  20151. }
  20152. if fieldNum <= 0 {
  20153. return fmt.Errorf("proto: AuthUserDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  20154. }
  20155. switch fieldNum {
  20156. case 1:
  20157. if wireType != 2 {
  20158. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  20159. }
  20160. var stringLen uint64
  20161. for shift := uint(0); ; shift += 7 {
  20162. if shift >= 64 {
  20163. return ErrIntOverflowRpc
  20164. }
  20165. if iNdEx >= l {
  20166. return io.ErrUnexpectedEOF
  20167. }
  20168. b := dAtA[iNdEx]
  20169. iNdEx++
  20170. stringLen |= uint64(b&0x7F) << shift
  20171. if b < 0x80 {
  20172. break
  20173. }
  20174. }
  20175. intStringLen := int(stringLen)
  20176. if intStringLen < 0 {
  20177. return ErrInvalidLengthRpc
  20178. }
  20179. postIndex := iNdEx + intStringLen
  20180. if postIndex < 0 {
  20181. return ErrInvalidLengthRpc
  20182. }
  20183. if postIndex > l {
  20184. return io.ErrUnexpectedEOF
  20185. }
  20186. m.Name = string(dAtA[iNdEx:postIndex])
  20187. iNdEx = postIndex
  20188. default:
  20189. iNdEx = preIndex
  20190. skippy, err := skipRpc(dAtA[iNdEx:])
  20191. if err != nil {
  20192. return err
  20193. }
  20194. if skippy < 0 {
  20195. return ErrInvalidLengthRpc
  20196. }
  20197. if (iNdEx + skippy) < 0 {
  20198. return ErrInvalidLengthRpc
  20199. }
  20200. if (iNdEx + skippy) > l {
  20201. return io.ErrUnexpectedEOF
  20202. }
  20203. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  20204. iNdEx += skippy
  20205. }
  20206. }
  20207. if iNdEx > l {
  20208. return io.ErrUnexpectedEOF
  20209. }
  20210. return nil
  20211. }
  20212. func (m *AuthUserChangePasswordRequest) Unmarshal(dAtA []byte) error {
  20213. l := len(dAtA)
  20214. iNdEx := 0
  20215. for iNdEx < l {
  20216. preIndex := iNdEx
  20217. var wire uint64
  20218. for shift := uint(0); ; shift += 7 {
  20219. if shift >= 64 {
  20220. return ErrIntOverflowRpc
  20221. }
  20222. if iNdEx >= l {
  20223. return io.ErrUnexpectedEOF
  20224. }
  20225. b := dAtA[iNdEx]
  20226. iNdEx++
  20227. wire |= uint64(b&0x7F) << shift
  20228. if b < 0x80 {
  20229. break
  20230. }
  20231. }
  20232. fieldNum := int32(wire >> 3)
  20233. wireType := int(wire & 0x7)
  20234. if wireType == 4 {
  20235. return fmt.Errorf("proto: AuthUserChangePasswordRequest: wiretype end group for non-group")
  20236. }
  20237. if fieldNum <= 0 {
  20238. return fmt.Errorf("proto: AuthUserChangePasswordRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  20239. }
  20240. switch fieldNum {
  20241. case 1:
  20242. if wireType != 2 {
  20243. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  20244. }
  20245. var stringLen uint64
  20246. for shift := uint(0); ; shift += 7 {
  20247. if shift >= 64 {
  20248. return ErrIntOverflowRpc
  20249. }
  20250. if iNdEx >= l {
  20251. return io.ErrUnexpectedEOF
  20252. }
  20253. b := dAtA[iNdEx]
  20254. iNdEx++
  20255. stringLen |= uint64(b&0x7F) << shift
  20256. if b < 0x80 {
  20257. break
  20258. }
  20259. }
  20260. intStringLen := int(stringLen)
  20261. if intStringLen < 0 {
  20262. return ErrInvalidLengthRpc
  20263. }
  20264. postIndex := iNdEx + intStringLen
  20265. if postIndex < 0 {
  20266. return ErrInvalidLengthRpc
  20267. }
  20268. if postIndex > l {
  20269. return io.ErrUnexpectedEOF
  20270. }
  20271. m.Name = string(dAtA[iNdEx:postIndex])
  20272. iNdEx = postIndex
  20273. case 2:
  20274. if wireType != 2 {
  20275. return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
  20276. }
  20277. var stringLen uint64
  20278. for shift := uint(0); ; shift += 7 {
  20279. if shift >= 64 {
  20280. return ErrIntOverflowRpc
  20281. }
  20282. if iNdEx >= l {
  20283. return io.ErrUnexpectedEOF
  20284. }
  20285. b := dAtA[iNdEx]
  20286. iNdEx++
  20287. stringLen |= uint64(b&0x7F) << shift
  20288. if b < 0x80 {
  20289. break
  20290. }
  20291. }
  20292. intStringLen := int(stringLen)
  20293. if intStringLen < 0 {
  20294. return ErrInvalidLengthRpc
  20295. }
  20296. postIndex := iNdEx + intStringLen
  20297. if postIndex < 0 {
  20298. return ErrInvalidLengthRpc
  20299. }
  20300. if postIndex > l {
  20301. return io.ErrUnexpectedEOF
  20302. }
  20303. m.Password = string(dAtA[iNdEx:postIndex])
  20304. iNdEx = postIndex
  20305. default:
  20306. iNdEx = preIndex
  20307. skippy, err := skipRpc(dAtA[iNdEx:])
  20308. if err != nil {
  20309. return err
  20310. }
  20311. if skippy < 0 {
  20312. return ErrInvalidLengthRpc
  20313. }
  20314. if (iNdEx + skippy) < 0 {
  20315. return ErrInvalidLengthRpc
  20316. }
  20317. if (iNdEx + skippy) > l {
  20318. return io.ErrUnexpectedEOF
  20319. }
  20320. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  20321. iNdEx += skippy
  20322. }
  20323. }
  20324. if iNdEx > l {
  20325. return io.ErrUnexpectedEOF
  20326. }
  20327. return nil
  20328. }
  20329. func (m *AuthUserGrantRoleRequest) Unmarshal(dAtA []byte) error {
  20330. l := len(dAtA)
  20331. iNdEx := 0
  20332. for iNdEx < l {
  20333. preIndex := iNdEx
  20334. var wire uint64
  20335. for shift := uint(0); ; shift += 7 {
  20336. if shift >= 64 {
  20337. return ErrIntOverflowRpc
  20338. }
  20339. if iNdEx >= l {
  20340. return io.ErrUnexpectedEOF
  20341. }
  20342. b := dAtA[iNdEx]
  20343. iNdEx++
  20344. wire |= uint64(b&0x7F) << shift
  20345. if b < 0x80 {
  20346. break
  20347. }
  20348. }
  20349. fieldNum := int32(wire >> 3)
  20350. wireType := int(wire & 0x7)
  20351. if wireType == 4 {
  20352. return fmt.Errorf("proto: AuthUserGrantRoleRequest: wiretype end group for non-group")
  20353. }
  20354. if fieldNum <= 0 {
  20355. return fmt.Errorf("proto: AuthUserGrantRoleRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  20356. }
  20357. switch fieldNum {
  20358. case 1:
  20359. if wireType != 2 {
  20360. return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
  20361. }
  20362. var stringLen uint64
  20363. for shift := uint(0); ; shift += 7 {
  20364. if shift >= 64 {
  20365. return ErrIntOverflowRpc
  20366. }
  20367. if iNdEx >= l {
  20368. return io.ErrUnexpectedEOF
  20369. }
  20370. b := dAtA[iNdEx]
  20371. iNdEx++
  20372. stringLen |= uint64(b&0x7F) << shift
  20373. if b < 0x80 {
  20374. break
  20375. }
  20376. }
  20377. intStringLen := int(stringLen)
  20378. if intStringLen < 0 {
  20379. return ErrInvalidLengthRpc
  20380. }
  20381. postIndex := iNdEx + intStringLen
  20382. if postIndex < 0 {
  20383. return ErrInvalidLengthRpc
  20384. }
  20385. if postIndex > l {
  20386. return io.ErrUnexpectedEOF
  20387. }
  20388. m.User = string(dAtA[iNdEx:postIndex])
  20389. iNdEx = postIndex
  20390. case 2:
  20391. if wireType != 2 {
  20392. return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
  20393. }
  20394. var stringLen uint64
  20395. for shift := uint(0); ; shift += 7 {
  20396. if shift >= 64 {
  20397. return ErrIntOverflowRpc
  20398. }
  20399. if iNdEx >= l {
  20400. return io.ErrUnexpectedEOF
  20401. }
  20402. b := dAtA[iNdEx]
  20403. iNdEx++
  20404. stringLen |= uint64(b&0x7F) << shift
  20405. if b < 0x80 {
  20406. break
  20407. }
  20408. }
  20409. intStringLen := int(stringLen)
  20410. if intStringLen < 0 {
  20411. return ErrInvalidLengthRpc
  20412. }
  20413. postIndex := iNdEx + intStringLen
  20414. if postIndex < 0 {
  20415. return ErrInvalidLengthRpc
  20416. }
  20417. if postIndex > l {
  20418. return io.ErrUnexpectedEOF
  20419. }
  20420. m.Role = string(dAtA[iNdEx:postIndex])
  20421. iNdEx = postIndex
  20422. default:
  20423. iNdEx = preIndex
  20424. skippy, err := skipRpc(dAtA[iNdEx:])
  20425. if err != nil {
  20426. return err
  20427. }
  20428. if skippy < 0 {
  20429. return ErrInvalidLengthRpc
  20430. }
  20431. if (iNdEx + skippy) < 0 {
  20432. return ErrInvalidLengthRpc
  20433. }
  20434. if (iNdEx + skippy) > l {
  20435. return io.ErrUnexpectedEOF
  20436. }
  20437. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  20438. iNdEx += skippy
  20439. }
  20440. }
  20441. if iNdEx > l {
  20442. return io.ErrUnexpectedEOF
  20443. }
  20444. return nil
  20445. }
  20446. func (m *AuthUserRevokeRoleRequest) Unmarshal(dAtA []byte) error {
  20447. l := len(dAtA)
  20448. iNdEx := 0
  20449. for iNdEx < l {
  20450. preIndex := iNdEx
  20451. var wire uint64
  20452. for shift := uint(0); ; shift += 7 {
  20453. if shift >= 64 {
  20454. return ErrIntOverflowRpc
  20455. }
  20456. if iNdEx >= l {
  20457. return io.ErrUnexpectedEOF
  20458. }
  20459. b := dAtA[iNdEx]
  20460. iNdEx++
  20461. wire |= uint64(b&0x7F) << shift
  20462. if b < 0x80 {
  20463. break
  20464. }
  20465. }
  20466. fieldNum := int32(wire >> 3)
  20467. wireType := int(wire & 0x7)
  20468. if wireType == 4 {
  20469. return fmt.Errorf("proto: AuthUserRevokeRoleRequest: wiretype end group for non-group")
  20470. }
  20471. if fieldNum <= 0 {
  20472. return fmt.Errorf("proto: AuthUserRevokeRoleRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  20473. }
  20474. switch fieldNum {
  20475. case 1:
  20476. if wireType != 2 {
  20477. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  20478. }
  20479. var stringLen uint64
  20480. for shift := uint(0); ; shift += 7 {
  20481. if shift >= 64 {
  20482. return ErrIntOverflowRpc
  20483. }
  20484. if iNdEx >= l {
  20485. return io.ErrUnexpectedEOF
  20486. }
  20487. b := dAtA[iNdEx]
  20488. iNdEx++
  20489. stringLen |= uint64(b&0x7F) << shift
  20490. if b < 0x80 {
  20491. break
  20492. }
  20493. }
  20494. intStringLen := int(stringLen)
  20495. if intStringLen < 0 {
  20496. return ErrInvalidLengthRpc
  20497. }
  20498. postIndex := iNdEx + intStringLen
  20499. if postIndex < 0 {
  20500. return ErrInvalidLengthRpc
  20501. }
  20502. if postIndex > l {
  20503. return io.ErrUnexpectedEOF
  20504. }
  20505. m.Name = string(dAtA[iNdEx:postIndex])
  20506. iNdEx = postIndex
  20507. case 2:
  20508. if wireType != 2 {
  20509. return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
  20510. }
  20511. var stringLen uint64
  20512. for shift := uint(0); ; shift += 7 {
  20513. if shift >= 64 {
  20514. return ErrIntOverflowRpc
  20515. }
  20516. if iNdEx >= l {
  20517. return io.ErrUnexpectedEOF
  20518. }
  20519. b := dAtA[iNdEx]
  20520. iNdEx++
  20521. stringLen |= uint64(b&0x7F) << shift
  20522. if b < 0x80 {
  20523. break
  20524. }
  20525. }
  20526. intStringLen := int(stringLen)
  20527. if intStringLen < 0 {
  20528. return ErrInvalidLengthRpc
  20529. }
  20530. postIndex := iNdEx + intStringLen
  20531. if postIndex < 0 {
  20532. return ErrInvalidLengthRpc
  20533. }
  20534. if postIndex > l {
  20535. return io.ErrUnexpectedEOF
  20536. }
  20537. m.Role = string(dAtA[iNdEx:postIndex])
  20538. iNdEx = postIndex
  20539. default:
  20540. iNdEx = preIndex
  20541. skippy, err := skipRpc(dAtA[iNdEx:])
  20542. if err != nil {
  20543. return err
  20544. }
  20545. if skippy < 0 {
  20546. return ErrInvalidLengthRpc
  20547. }
  20548. if (iNdEx + skippy) < 0 {
  20549. return ErrInvalidLengthRpc
  20550. }
  20551. if (iNdEx + skippy) > l {
  20552. return io.ErrUnexpectedEOF
  20553. }
  20554. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  20555. iNdEx += skippy
  20556. }
  20557. }
  20558. if iNdEx > l {
  20559. return io.ErrUnexpectedEOF
  20560. }
  20561. return nil
  20562. }
  20563. func (m *AuthRoleAddRequest) Unmarshal(dAtA []byte) error {
  20564. l := len(dAtA)
  20565. iNdEx := 0
  20566. for iNdEx < l {
  20567. preIndex := iNdEx
  20568. var wire uint64
  20569. for shift := uint(0); ; shift += 7 {
  20570. if shift >= 64 {
  20571. return ErrIntOverflowRpc
  20572. }
  20573. if iNdEx >= l {
  20574. return io.ErrUnexpectedEOF
  20575. }
  20576. b := dAtA[iNdEx]
  20577. iNdEx++
  20578. wire |= uint64(b&0x7F) << shift
  20579. if b < 0x80 {
  20580. break
  20581. }
  20582. }
  20583. fieldNum := int32(wire >> 3)
  20584. wireType := int(wire & 0x7)
  20585. if wireType == 4 {
  20586. return fmt.Errorf("proto: AuthRoleAddRequest: wiretype end group for non-group")
  20587. }
  20588. if fieldNum <= 0 {
  20589. return fmt.Errorf("proto: AuthRoleAddRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  20590. }
  20591. switch fieldNum {
  20592. case 1:
  20593. if wireType != 2 {
  20594. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  20595. }
  20596. var stringLen uint64
  20597. for shift := uint(0); ; shift += 7 {
  20598. if shift >= 64 {
  20599. return ErrIntOverflowRpc
  20600. }
  20601. if iNdEx >= l {
  20602. return io.ErrUnexpectedEOF
  20603. }
  20604. b := dAtA[iNdEx]
  20605. iNdEx++
  20606. stringLen |= uint64(b&0x7F) << shift
  20607. if b < 0x80 {
  20608. break
  20609. }
  20610. }
  20611. intStringLen := int(stringLen)
  20612. if intStringLen < 0 {
  20613. return ErrInvalidLengthRpc
  20614. }
  20615. postIndex := iNdEx + intStringLen
  20616. if postIndex < 0 {
  20617. return ErrInvalidLengthRpc
  20618. }
  20619. if postIndex > l {
  20620. return io.ErrUnexpectedEOF
  20621. }
  20622. m.Name = string(dAtA[iNdEx:postIndex])
  20623. iNdEx = postIndex
  20624. default:
  20625. iNdEx = preIndex
  20626. skippy, err := skipRpc(dAtA[iNdEx:])
  20627. if err != nil {
  20628. return err
  20629. }
  20630. if skippy < 0 {
  20631. return ErrInvalidLengthRpc
  20632. }
  20633. if (iNdEx + skippy) < 0 {
  20634. return ErrInvalidLengthRpc
  20635. }
  20636. if (iNdEx + skippy) > l {
  20637. return io.ErrUnexpectedEOF
  20638. }
  20639. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  20640. iNdEx += skippy
  20641. }
  20642. }
  20643. if iNdEx > l {
  20644. return io.ErrUnexpectedEOF
  20645. }
  20646. return nil
  20647. }
  20648. func (m *AuthRoleGetRequest) Unmarshal(dAtA []byte) error {
  20649. l := len(dAtA)
  20650. iNdEx := 0
  20651. for iNdEx < l {
  20652. preIndex := iNdEx
  20653. var wire uint64
  20654. for shift := uint(0); ; shift += 7 {
  20655. if shift >= 64 {
  20656. return ErrIntOverflowRpc
  20657. }
  20658. if iNdEx >= l {
  20659. return io.ErrUnexpectedEOF
  20660. }
  20661. b := dAtA[iNdEx]
  20662. iNdEx++
  20663. wire |= uint64(b&0x7F) << shift
  20664. if b < 0x80 {
  20665. break
  20666. }
  20667. }
  20668. fieldNum := int32(wire >> 3)
  20669. wireType := int(wire & 0x7)
  20670. if wireType == 4 {
  20671. return fmt.Errorf("proto: AuthRoleGetRequest: wiretype end group for non-group")
  20672. }
  20673. if fieldNum <= 0 {
  20674. return fmt.Errorf("proto: AuthRoleGetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  20675. }
  20676. switch fieldNum {
  20677. case 1:
  20678. if wireType != 2 {
  20679. return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
  20680. }
  20681. var stringLen uint64
  20682. for shift := uint(0); ; shift += 7 {
  20683. if shift >= 64 {
  20684. return ErrIntOverflowRpc
  20685. }
  20686. if iNdEx >= l {
  20687. return io.ErrUnexpectedEOF
  20688. }
  20689. b := dAtA[iNdEx]
  20690. iNdEx++
  20691. stringLen |= uint64(b&0x7F) << shift
  20692. if b < 0x80 {
  20693. break
  20694. }
  20695. }
  20696. intStringLen := int(stringLen)
  20697. if intStringLen < 0 {
  20698. return ErrInvalidLengthRpc
  20699. }
  20700. postIndex := iNdEx + intStringLen
  20701. if postIndex < 0 {
  20702. return ErrInvalidLengthRpc
  20703. }
  20704. if postIndex > l {
  20705. return io.ErrUnexpectedEOF
  20706. }
  20707. m.Role = string(dAtA[iNdEx:postIndex])
  20708. iNdEx = postIndex
  20709. default:
  20710. iNdEx = preIndex
  20711. skippy, err := skipRpc(dAtA[iNdEx:])
  20712. if err != nil {
  20713. return err
  20714. }
  20715. if skippy < 0 {
  20716. return ErrInvalidLengthRpc
  20717. }
  20718. if (iNdEx + skippy) < 0 {
  20719. return ErrInvalidLengthRpc
  20720. }
  20721. if (iNdEx + skippy) > l {
  20722. return io.ErrUnexpectedEOF
  20723. }
  20724. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  20725. iNdEx += skippy
  20726. }
  20727. }
  20728. if iNdEx > l {
  20729. return io.ErrUnexpectedEOF
  20730. }
  20731. return nil
  20732. }
  20733. func (m *AuthUserListRequest) Unmarshal(dAtA []byte) error {
  20734. l := len(dAtA)
  20735. iNdEx := 0
  20736. for iNdEx < l {
  20737. preIndex := iNdEx
  20738. var wire uint64
  20739. for shift := uint(0); ; shift += 7 {
  20740. if shift >= 64 {
  20741. return ErrIntOverflowRpc
  20742. }
  20743. if iNdEx >= l {
  20744. return io.ErrUnexpectedEOF
  20745. }
  20746. b := dAtA[iNdEx]
  20747. iNdEx++
  20748. wire |= uint64(b&0x7F) << shift
  20749. if b < 0x80 {
  20750. break
  20751. }
  20752. }
  20753. fieldNum := int32(wire >> 3)
  20754. wireType := int(wire & 0x7)
  20755. if wireType == 4 {
  20756. return fmt.Errorf("proto: AuthUserListRequest: wiretype end group for non-group")
  20757. }
  20758. if fieldNum <= 0 {
  20759. return fmt.Errorf("proto: AuthUserListRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  20760. }
  20761. switch fieldNum {
  20762. default:
  20763. iNdEx = preIndex
  20764. skippy, err := skipRpc(dAtA[iNdEx:])
  20765. if err != nil {
  20766. return err
  20767. }
  20768. if skippy < 0 {
  20769. return ErrInvalidLengthRpc
  20770. }
  20771. if (iNdEx + skippy) < 0 {
  20772. return ErrInvalidLengthRpc
  20773. }
  20774. if (iNdEx + skippy) > l {
  20775. return io.ErrUnexpectedEOF
  20776. }
  20777. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  20778. iNdEx += skippy
  20779. }
  20780. }
  20781. if iNdEx > l {
  20782. return io.ErrUnexpectedEOF
  20783. }
  20784. return nil
  20785. }
  20786. func (m *AuthRoleListRequest) Unmarshal(dAtA []byte) error {
  20787. l := len(dAtA)
  20788. iNdEx := 0
  20789. for iNdEx < l {
  20790. preIndex := iNdEx
  20791. var wire uint64
  20792. for shift := uint(0); ; shift += 7 {
  20793. if shift >= 64 {
  20794. return ErrIntOverflowRpc
  20795. }
  20796. if iNdEx >= l {
  20797. return io.ErrUnexpectedEOF
  20798. }
  20799. b := dAtA[iNdEx]
  20800. iNdEx++
  20801. wire |= uint64(b&0x7F) << shift
  20802. if b < 0x80 {
  20803. break
  20804. }
  20805. }
  20806. fieldNum := int32(wire >> 3)
  20807. wireType := int(wire & 0x7)
  20808. if wireType == 4 {
  20809. return fmt.Errorf("proto: AuthRoleListRequest: wiretype end group for non-group")
  20810. }
  20811. if fieldNum <= 0 {
  20812. return fmt.Errorf("proto: AuthRoleListRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  20813. }
  20814. switch fieldNum {
  20815. default:
  20816. iNdEx = preIndex
  20817. skippy, err := skipRpc(dAtA[iNdEx:])
  20818. if err != nil {
  20819. return err
  20820. }
  20821. if skippy < 0 {
  20822. return ErrInvalidLengthRpc
  20823. }
  20824. if (iNdEx + skippy) < 0 {
  20825. return ErrInvalidLengthRpc
  20826. }
  20827. if (iNdEx + skippy) > l {
  20828. return io.ErrUnexpectedEOF
  20829. }
  20830. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  20831. iNdEx += skippy
  20832. }
  20833. }
  20834. if iNdEx > l {
  20835. return io.ErrUnexpectedEOF
  20836. }
  20837. return nil
  20838. }
  20839. func (m *AuthRoleDeleteRequest) Unmarshal(dAtA []byte) error {
  20840. l := len(dAtA)
  20841. iNdEx := 0
  20842. for iNdEx < l {
  20843. preIndex := iNdEx
  20844. var wire uint64
  20845. for shift := uint(0); ; shift += 7 {
  20846. if shift >= 64 {
  20847. return ErrIntOverflowRpc
  20848. }
  20849. if iNdEx >= l {
  20850. return io.ErrUnexpectedEOF
  20851. }
  20852. b := dAtA[iNdEx]
  20853. iNdEx++
  20854. wire |= uint64(b&0x7F) << shift
  20855. if b < 0x80 {
  20856. break
  20857. }
  20858. }
  20859. fieldNum := int32(wire >> 3)
  20860. wireType := int(wire & 0x7)
  20861. if wireType == 4 {
  20862. return fmt.Errorf("proto: AuthRoleDeleteRequest: wiretype end group for non-group")
  20863. }
  20864. if fieldNum <= 0 {
  20865. return fmt.Errorf("proto: AuthRoleDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  20866. }
  20867. switch fieldNum {
  20868. case 1:
  20869. if wireType != 2 {
  20870. return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
  20871. }
  20872. var stringLen uint64
  20873. for shift := uint(0); ; shift += 7 {
  20874. if shift >= 64 {
  20875. return ErrIntOverflowRpc
  20876. }
  20877. if iNdEx >= l {
  20878. return io.ErrUnexpectedEOF
  20879. }
  20880. b := dAtA[iNdEx]
  20881. iNdEx++
  20882. stringLen |= uint64(b&0x7F) << shift
  20883. if b < 0x80 {
  20884. break
  20885. }
  20886. }
  20887. intStringLen := int(stringLen)
  20888. if intStringLen < 0 {
  20889. return ErrInvalidLengthRpc
  20890. }
  20891. postIndex := iNdEx + intStringLen
  20892. if postIndex < 0 {
  20893. return ErrInvalidLengthRpc
  20894. }
  20895. if postIndex > l {
  20896. return io.ErrUnexpectedEOF
  20897. }
  20898. m.Role = string(dAtA[iNdEx:postIndex])
  20899. iNdEx = postIndex
  20900. default:
  20901. iNdEx = preIndex
  20902. skippy, err := skipRpc(dAtA[iNdEx:])
  20903. if err != nil {
  20904. return err
  20905. }
  20906. if skippy < 0 {
  20907. return ErrInvalidLengthRpc
  20908. }
  20909. if (iNdEx + skippy) < 0 {
  20910. return ErrInvalidLengthRpc
  20911. }
  20912. if (iNdEx + skippy) > l {
  20913. return io.ErrUnexpectedEOF
  20914. }
  20915. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  20916. iNdEx += skippy
  20917. }
  20918. }
  20919. if iNdEx > l {
  20920. return io.ErrUnexpectedEOF
  20921. }
  20922. return nil
  20923. }
  20924. func (m *AuthRoleGrantPermissionRequest) Unmarshal(dAtA []byte) error {
  20925. l := len(dAtA)
  20926. iNdEx := 0
  20927. for iNdEx < l {
  20928. preIndex := iNdEx
  20929. var wire uint64
  20930. for shift := uint(0); ; shift += 7 {
  20931. if shift >= 64 {
  20932. return ErrIntOverflowRpc
  20933. }
  20934. if iNdEx >= l {
  20935. return io.ErrUnexpectedEOF
  20936. }
  20937. b := dAtA[iNdEx]
  20938. iNdEx++
  20939. wire |= uint64(b&0x7F) << shift
  20940. if b < 0x80 {
  20941. break
  20942. }
  20943. }
  20944. fieldNum := int32(wire >> 3)
  20945. wireType := int(wire & 0x7)
  20946. if wireType == 4 {
  20947. return fmt.Errorf("proto: AuthRoleGrantPermissionRequest: wiretype end group for non-group")
  20948. }
  20949. if fieldNum <= 0 {
  20950. return fmt.Errorf("proto: AuthRoleGrantPermissionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  20951. }
  20952. switch fieldNum {
  20953. case 1:
  20954. if wireType != 2 {
  20955. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  20956. }
  20957. var stringLen uint64
  20958. for shift := uint(0); ; shift += 7 {
  20959. if shift >= 64 {
  20960. return ErrIntOverflowRpc
  20961. }
  20962. if iNdEx >= l {
  20963. return io.ErrUnexpectedEOF
  20964. }
  20965. b := dAtA[iNdEx]
  20966. iNdEx++
  20967. stringLen |= uint64(b&0x7F) << shift
  20968. if b < 0x80 {
  20969. break
  20970. }
  20971. }
  20972. intStringLen := int(stringLen)
  20973. if intStringLen < 0 {
  20974. return ErrInvalidLengthRpc
  20975. }
  20976. postIndex := iNdEx + intStringLen
  20977. if postIndex < 0 {
  20978. return ErrInvalidLengthRpc
  20979. }
  20980. if postIndex > l {
  20981. return io.ErrUnexpectedEOF
  20982. }
  20983. m.Name = string(dAtA[iNdEx:postIndex])
  20984. iNdEx = postIndex
  20985. case 2:
  20986. if wireType != 2 {
  20987. return fmt.Errorf("proto: wrong wireType = %d for field Perm", wireType)
  20988. }
  20989. var msglen int
  20990. for shift := uint(0); ; shift += 7 {
  20991. if shift >= 64 {
  20992. return ErrIntOverflowRpc
  20993. }
  20994. if iNdEx >= l {
  20995. return io.ErrUnexpectedEOF
  20996. }
  20997. b := dAtA[iNdEx]
  20998. iNdEx++
  20999. msglen |= int(b&0x7F) << shift
  21000. if b < 0x80 {
  21001. break
  21002. }
  21003. }
  21004. if msglen < 0 {
  21005. return ErrInvalidLengthRpc
  21006. }
  21007. postIndex := iNdEx + msglen
  21008. if postIndex < 0 {
  21009. return ErrInvalidLengthRpc
  21010. }
  21011. if postIndex > l {
  21012. return io.ErrUnexpectedEOF
  21013. }
  21014. if m.Perm == nil {
  21015. m.Perm = &authpb.Permission{}
  21016. }
  21017. if err := m.Perm.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  21018. return err
  21019. }
  21020. iNdEx = postIndex
  21021. default:
  21022. iNdEx = preIndex
  21023. skippy, err := skipRpc(dAtA[iNdEx:])
  21024. if err != nil {
  21025. return err
  21026. }
  21027. if skippy < 0 {
  21028. return ErrInvalidLengthRpc
  21029. }
  21030. if (iNdEx + skippy) < 0 {
  21031. return ErrInvalidLengthRpc
  21032. }
  21033. if (iNdEx + skippy) > l {
  21034. return io.ErrUnexpectedEOF
  21035. }
  21036. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  21037. iNdEx += skippy
  21038. }
  21039. }
  21040. if iNdEx > l {
  21041. return io.ErrUnexpectedEOF
  21042. }
  21043. return nil
  21044. }
  21045. func (m *AuthRoleRevokePermissionRequest) Unmarshal(dAtA []byte) error {
  21046. l := len(dAtA)
  21047. iNdEx := 0
  21048. for iNdEx < l {
  21049. preIndex := iNdEx
  21050. var wire uint64
  21051. for shift := uint(0); ; shift += 7 {
  21052. if shift >= 64 {
  21053. return ErrIntOverflowRpc
  21054. }
  21055. if iNdEx >= l {
  21056. return io.ErrUnexpectedEOF
  21057. }
  21058. b := dAtA[iNdEx]
  21059. iNdEx++
  21060. wire |= uint64(b&0x7F) << shift
  21061. if b < 0x80 {
  21062. break
  21063. }
  21064. }
  21065. fieldNum := int32(wire >> 3)
  21066. wireType := int(wire & 0x7)
  21067. if wireType == 4 {
  21068. return fmt.Errorf("proto: AuthRoleRevokePermissionRequest: wiretype end group for non-group")
  21069. }
  21070. if fieldNum <= 0 {
  21071. return fmt.Errorf("proto: AuthRoleRevokePermissionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  21072. }
  21073. switch fieldNum {
  21074. case 1:
  21075. if wireType != 2 {
  21076. return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
  21077. }
  21078. var stringLen uint64
  21079. for shift := uint(0); ; shift += 7 {
  21080. if shift >= 64 {
  21081. return ErrIntOverflowRpc
  21082. }
  21083. if iNdEx >= l {
  21084. return io.ErrUnexpectedEOF
  21085. }
  21086. b := dAtA[iNdEx]
  21087. iNdEx++
  21088. stringLen |= uint64(b&0x7F) << shift
  21089. if b < 0x80 {
  21090. break
  21091. }
  21092. }
  21093. intStringLen := int(stringLen)
  21094. if intStringLen < 0 {
  21095. return ErrInvalidLengthRpc
  21096. }
  21097. postIndex := iNdEx + intStringLen
  21098. if postIndex < 0 {
  21099. return ErrInvalidLengthRpc
  21100. }
  21101. if postIndex > l {
  21102. return io.ErrUnexpectedEOF
  21103. }
  21104. m.Role = string(dAtA[iNdEx:postIndex])
  21105. iNdEx = postIndex
  21106. case 2:
  21107. if wireType != 2 {
  21108. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  21109. }
  21110. var stringLen uint64
  21111. for shift := uint(0); ; shift += 7 {
  21112. if shift >= 64 {
  21113. return ErrIntOverflowRpc
  21114. }
  21115. if iNdEx >= l {
  21116. return io.ErrUnexpectedEOF
  21117. }
  21118. b := dAtA[iNdEx]
  21119. iNdEx++
  21120. stringLen |= uint64(b&0x7F) << shift
  21121. if b < 0x80 {
  21122. break
  21123. }
  21124. }
  21125. intStringLen := int(stringLen)
  21126. if intStringLen < 0 {
  21127. return ErrInvalidLengthRpc
  21128. }
  21129. postIndex := iNdEx + intStringLen
  21130. if postIndex < 0 {
  21131. return ErrInvalidLengthRpc
  21132. }
  21133. if postIndex > l {
  21134. return io.ErrUnexpectedEOF
  21135. }
  21136. m.Key = string(dAtA[iNdEx:postIndex])
  21137. iNdEx = postIndex
  21138. case 3:
  21139. if wireType != 2 {
  21140. return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType)
  21141. }
  21142. var stringLen uint64
  21143. for shift := uint(0); ; shift += 7 {
  21144. if shift >= 64 {
  21145. return ErrIntOverflowRpc
  21146. }
  21147. if iNdEx >= l {
  21148. return io.ErrUnexpectedEOF
  21149. }
  21150. b := dAtA[iNdEx]
  21151. iNdEx++
  21152. stringLen |= uint64(b&0x7F) << shift
  21153. if b < 0x80 {
  21154. break
  21155. }
  21156. }
  21157. intStringLen := int(stringLen)
  21158. if intStringLen < 0 {
  21159. return ErrInvalidLengthRpc
  21160. }
  21161. postIndex := iNdEx + intStringLen
  21162. if postIndex < 0 {
  21163. return ErrInvalidLengthRpc
  21164. }
  21165. if postIndex > l {
  21166. return io.ErrUnexpectedEOF
  21167. }
  21168. m.RangeEnd = string(dAtA[iNdEx:postIndex])
  21169. iNdEx = postIndex
  21170. default:
  21171. iNdEx = preIndex
  21172. skippy, err := skipRpc(dAtA[iNdEx:])
  21173. if err != nil {
  21174. return err
  21175. }
  21176. if skippy < 0 {
  21177. return ErrInvalidLengthRpc
  21178. }
  21179. if (iNdEx + skippy) < 0 {
  21180. return ErrInvalidLengthRpc
  21181. }
  21182. if (iNdEx + skippy) > l {
  21183. return io.ErrUnexpectedEOF
  21184. }
  21185. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  21186. iNdEx += skippy
  21187. }
  21188. }
  21189. if iNdEx > l {
  21190. return io.ErrUnexpectedEOF
  21191. }
  21192. return nil
  21193. }
  21194. func (m *AuthEnableResponse) Unmarshal(dAtA []byte) error {
  21195. l := len(dAtA)
  21196. iNdEx := 0
  21197. for iNdEx < l {
  21198. preIndex := iNdEx
  21199. var wire uint64
  21200. for shift := uint(0); ; shift += 7 {
  21201. if shift >= 64 {
  21202. return ErrIntOverflowRpc
  21203. }
  21204. if iNdEx >= l {
  21205. return io.ErrUnexpectedEOF
  21206. }
  21207. b := dAtA[iNdEx]
  21208. iNdEx++
  21209. wire |= uint64(b&0x7F) << shift
  21210. if b < 0x80 {
  21211. break
  21212. }
  21213. }
  21214. fieldNum := int32(wire >> 3)
  21215. wireType := int(wire & 0x7)
  21216. if wireType == 4 {
  21217. return fmt.Errorf("proto: AuthEnableResponse: wiretype end group for non-group")
  21218. }
  21219. if fieldNum <= 0 {
  21220. return fmt.Errorf("proto: AuthEnableResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  21221. }
  21222. switch fieldNum {
  21223. case 1:
  21224. if wireType != 2 {
  21225. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  21226. }
  21227. var msglen int
  21228. for shift := uint(0); ; shift += 7 {
  21229. if shift >= 64 {
  21230. return ErrIntOverflowRpc
  21231. }
  21232. if iNdEx >= l {
  21233. return io.ErrUnexpectedEOF
  21234. }
  21235. b := dAtA[iNdEx]
  21236. iNdEx++
  21237. msglen |= int(b&0x7F) << shift
  21238. if b < 0x80 {
  21239. break
  21240. }
  21241. }
  21242. if msglen < 0 {
  21243. return ErrInvalidLengthRpc
  21244. }
  21245. postIndex := iNdEx + msglen
  21246. if postIndex < 0 {
  21247. return ErrInvalidLengthRpc
  21248. }
  21249. if postIndex > l {
  21250. return io.ErrUnexpectedEOF
  21251. }
  21252. if m.Header == nil {
  21253. m.Header = &ResponseHeader{}
  21254. }
  21255. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  21256. return err
  21257. }
  21258. iNdEx = postIndex
  21259. default:
  21260. iNdEx = preIndex
  21261. skippy, err := skipRpc(dAtA[iNdEx:])
  21262. if err != nil {
  21263. return err
  21264. }
  21265. if skippy < 0 {
  21266. return ErrInvalidLengthRpc
  21267. }
  21268. if (iNdEx + skippy) < 0 {
  21269. return ErrInvalidLengthRpc
  21270. }
  21271. if (iNdEx + skippy) > l {
  21272. return io.ErrUnexpectedEOF
  21273. }
  21274. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  21275. iNdEx += skippy
  21276. }
  21277. }
  21278. if iNdEx > l {
  21279. return io.ErrUnexpectedEOF
  21280. }
  21281. return nil
  21282. }
  21283. func (m *AuthDisableResponse) Unmarshal(dAtA []byte) error {
  21284. l := len(dAtA)
  21285. iNdEx := 0
  21286. for iNdEx < l {
  21287. preIndex := iNdEx
  21288. var wire uint64
  21289. for shift := uint(0); ; shift += 7 {
  21290. if shift >= 64 {
  21291. return ErrIntOverflowRpc
  21292. }
  21293. if iNdEx >= l {
  21294. return io.ErrUnexpectedEOF
  21295. }
  21296. b := dAtA[iNdEx]
  21297. iNdEx++
  21298. wire |= uint64(b&0x7F) << shift
  21299. if b < 0x80 {
  21300. break
  21301. }
  21302. }
  21303. fieldNum := int32(wire >> 3)
  21304. wireType := int(wire & 0x7)
  21305. if wireType == 4 {
  21306. return fmt.Errorf("proto: AuthDisableResponse: wiretype end group for non-group")
  21307. }
  21308. if fieldNum <= 0 {
  21309. return fmt.Errorf("proto: AuthDisableResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  21310. }
  21311. switch fieldNum {
  21312. case 1:
  21313. if wireType != 2 {
  21314. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  21315. }
  21316. var msglen int
  21317. for shift := uint(0); ; shift += 7 {
  21318. if shift >= 64 {
  21319. return ErrIntOverflowRpc
  21320. }
  21321. if iNdEx >= l {
  21322. return io.ErrUnexpectedEOF
  21323. }
  21324. b := dAtA[iNdEx]
  21325. iNdEx++
  21326. msglen |= int(b&0x7F) << shift
  21327. if b < 0x80 {
  21328. break
  21329. }
  21330. }
  21331. if msglen < 0 {
  21332. return ErrInvalidLengthRpc
  21333. }
  21334. postIndex := iNdEx + msglen
  21335. if postIndex < 0 {
  21336. return ErrInvalidLengthRpc
  21337. }
  21338. if postIndex > l {
  21339. return io.ErrUnexpectedEOF
  21340. }
  21341. if m.Header == nil {
  21342. m.Header = &ResponseHeader{}
  21343. }
  21344. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  21345. return err
  21346. }
  21347. iNdEx = postIndex
  21348. default:
  21349. iNdEx = preIndex
  21350. skippy, err := skipRpc(dAtA[iNdEx:])
  21351. if err != nil {
  21352. return err
  21353. }
  21354. if skippy < 0 {
  21355. return ErrInvalidLengthRpc
  21356. }
  21357. if (iNdEx + skippy) < 0 {
  21358. return ErrInvalidLengthRpc
  21359. }
  21360. if (iNdEx + skippy) > l {
  21361. return io.ErrUnexpectedEOF
  21362. }
  21363. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  21364. iNdEx += skippy
  21365. }
  21366. }
  21367. if iNdEx > l {
  21368. return io.ErrUnexpectedEOF
  21369. }
  21370. return nil
  21371. }
  21372. func (m *AuthenticateResponse) Unmarshal(dAtA []byte) error {
  21373. l := len(dAtA)
  21374. iNdEx := 0
  21375. for iNdEx < l {
  21376. preIndex := iNdEx
  21377. var wire uint64
  21378. for shift := uint(0); ; shift += 7 {
  21379. if shift >= 64 {
  21380. return ErrIntOverflowRpc
  21381. }
  21382. if iNdEx >= l {
  21383. return io.ErrUnexpectedEOF
  21384. }
  21385. b := dAtA[iNdEx]
  21386. iNdEx++
  21387. wire |= uint64(b&0x7F) << shift
  21388. if b < 0x80 {
  21389. break
  21390. }
  21391. }
  21392. fieldNum := int32(wire >> 3)
  21393. wireType := int(wire & 0x7)
  21394. if wireType == 4 {
  21395. return fmt.Errorf("proto: AuthenticateResponse: wiretype end group for non-group")
  21396. }
  21397. if fieldNum <= 0 {
  21398. return fmt.Errorf("proto: AuthenticateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  21399. }
  21400. switch fieldNum {
  21401. case 1:
  21402. if wireType != 2 {
  21403. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  21404. }
  21405. var msglen int
  21406. for shift := uint(0); ; shift += 7 {
  21407. if shift >= 64 {
  21408. return ErrIntOverflowRpc
  21409. }
  21410. if iNdEx >= l {
  21411. return io.ErrUnexpectedEOF
  21412. }
  21413. b := dAtA[iNdEx]
  21414. iNdEx++
  21415. msglen |= int(b&0x7F) << shift
  21416. if b < 0x80 {
  21417. break
  21418. }
  21419. }
  21420. if msglen < 0 {
  21421. return ErrInvalidLengthRpc
  21422. }
  21423. postIndex := iNdEx + msglen
  21424. if postIndex < 0 {
  21425. return ErrInvalidLengthRpc
  21426. }
  21427. if postIndex > l {
  21428. return io.ErrUnexpectedEOF
  21429. }
  21430. if m.Header == nil {
  21431. m.Header = &ResponseHeader{}
  21432. }
  21433. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  21434. return err
  21435. }
  21436. iNdEx = postIndex
  21437. case 2:
  21438. if wireType != 2 {
  21439. return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  21440. }
  21441. var stringLen uint64
  21442. for shift := uint(0); ; shift += 7 {
  21443. if shift >= 64 {
  21444. return ErrIntOverflowRpc
  21445. }
  21446. if iNdEx >= l {
  21447. return io.ErrUnexpectedEOF
  21448. }
  21449. b := dAtA[iNdEx]
  21450. iNdEx++
  21451. stringLen |= uint64(b&0x7F) << shift
  21452. if b < 0x80 {
  21453. break
  21454. }
  21455. }
  21456. intStringLen := int(stringLen)
  21457. if intStringLen < 0 {
  21458. return ErrInvalidLengthRpc
  21459. }
  21460. postIndex := iNdEx + intStringLen
  21461. if postIndex < 0 {
  21462. return ErrInvalidLengthRpc
  21463. }
  21464. if postIndex > l {
  21465. return io.ErrUnexpectedEOF
  21466. }
  21467. m.Token = string(dAtA[iNdEx:postIndex])
  21468. iNdEx = postIndex
  21469. default:
  21470. iNdEx = preIndex
  21471. skippy, err := skipRpc(dAtA[iNdEx:])
  21472. if err != nil {
  21473. return err
  21474. }
  21475. if skippy < 0 {
  21476. return ErrInvalidLengthRpc
  21477. }
  21478. if (iNdEx + skippy) < 0 {
  21479. return ErrInvalidLengthRpc
  21480. }
  21481. if (iNdEx + skippy) > l {
  21482. return io.ErrUnexpectedEOF
  21483. }
  21484. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  21485. iNdEx += skippy
  21486. }
  21487. }
  21488. if iNdEx > l {
  21489. return io.ErrUnexpectedEOF
  21490. }
  21491. return nil
  21492. }
  21493. func (m *AuthUserAddResponse) Unmarshal(dAtA []byte) error {
  21494. l := len(dAtA)
  21495. iNdEx := 0
  21496. for iNdEx < l {
  21497. preIndex := iNdEx
  21498. var wire uint64
  21499. for shift := uint(0); ; shift += 7 {
  21500. if shift >= 64 {
  21501. return ErrIntOverflowRpc
  21502. }
  21503. if iNdEx >= l {
  21504. return io.ErrUnexpectedEOF
  21505. }
  21506. b := dAtA[iNdEx]
  21507. iNdEx++
  21508. wire |= uint64(b&0x7F) << shift
  21509. if b < 0x80 {
  21510. break
  21511. }
  21512. }
  21513. fieldNum := int32(wire >> 3)
  21514. wireType := int(wire & 0x7)
  21515. if wireType == 4 {
  21516. return fmt.Errorf("proto: AuthUserAddResponse: wiretype end group for non-group")
  21517. }
  21518. if fieldNum <= 0 {
  21519. return fmt.Errorf("proto: AuthUserAddResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  21520. }
  21521. switch fieldNum {
  21522. case 1:
  21523. if wireType != 2 {
  21524. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  21525. }
  21526. var msglen int
  21527. for shift := uint(0); ; shift += 7 {
  21528. if shift >= 64 {
  21529. return ErrIntOverflowRpc
  21530. }
  21531. if iNdEx >= l {
  21532. return io.ErrUnexpectedEOF
  21533. }
  21534. b := dAtA[iNdEx]
  21535. iNdEx++
  21536. msglen |= int(b&0x7F) << shift
  21537. if b < 0x80 {
  21538. break
  21539. }
  21540. }
  21541. if msglen < 0 {
  21542. return ErrInvalidLengthRpc
  21543. }
  21544. postIndex := iNdEx + msglen
  21545. if postIndex < 0 {
  21546. return ErrInvalidLengthRpc
  21547. }
  21548. if postIndex > l {
  21549. return io.ErrUnexpectedEOF
  21550. }
  21551. if m.Header == nil {
  21552. m.Header = &ResponseHeader{}
  21553. }
  21554. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  21555. return err
  21556. }
  21557. iNdEx = postIndex
  21558. default:
  21559. iNdEx = preIndex
  21560. skippy, err := skipRpc(dAtA[iNdEx:])
  21561. if err != nil {
  21562. return err
  21563. }
  21564. if skippy < 0 {
  21565. return ErrInvalidLengthRpc
  21566. }
  21567. if (iNdEx + skippy) < 0 {
  21568. return ErrInvalidLengthRpc
  21569. }
  21570. if (iNdEx + skippy) > l {
  21571. return io.ErrUnexpectedEOF
  21572. }
  21573. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  21574. iNdEx += skippy
  21575. }
  21576. }
  21577. if iNdEx > l {
  21578. return io.ErrUnexpectedEOF
  21579. }
  21580. return nil
  21581. }
  21582. func (m *AuthUserGetResponse) Unmarshal(dAtA []byte) error {
  21583. l := len(dAtA)
  21584. iNdEx := 0
  21585. for iNdEx < l {
  21586. preIndex := iNdEx
  21587. var wire uint64
  21588. for shift := uint(0); ; shift += 7 {
  21589. if shift >= 64 {
  21590. return ErrIntOverflowRpc
  21591. }
  21592. if iNdEx >= l {
  21593. return io.ErrUnexpectedEOF
  21594. }
  21595. b := dAtA[iNdEx]
  21596. iNdEx++
  21597. wire |= uint64(b&0x7F) << shift
  21598. if b < 0x80 {
  21599. break
  21600. }
  21601. }
  21602. fieldNum := int32(wire >> 3)
  21603. wireType := int(wire & 0x7)
  21604. if wireType == 4 {
  21605. return fmt.Errorf("proto: AuthUserGetResponse: wiretype end group for non-group")
  21606. }
  21607. if fieldNum <= 0 {
  21608. return fmt.Errorf("proto: AuthUserGetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  21609. }
  21610. switch fieldNum {
  21611. case 1:
  21612. if wireType != 2 {
  21613. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  21614. }
  21615. var msglen int
  21616. for shift := uint(0); ; shift += 7 {
  21617. if shift >= 64 {
  21618. return ErrIntOverflowRpc
  21619. }
  21620. if iNdEx >= l {
  21621. return io.ErrUnexpectedEOF
  21622. }
  21623. b := dAtA[iNdEx]
  21624. iNdEx++
  21625. msglen |= int(b&0x7F) << shift
  21626. if b < 0x80 {
  21627. break
  21628. }
  21629. }
  21630. if msglen < 0 {
  21631. return ErrInvalidLengthRpc
  21632. }
  21633. postIndex := iNdEx + msglen
  21634. if postIndex < 0 {
  21635. return ErrInvalidLengthRpc
  21636. }
  21637. if postIndex > l {
  21638. return io.ErrUnexpectedEOF
  21639. }
  21640. if m.Header == nil {
  21641. m.Header = &ResponseHeader{}
  21642. }
  21643. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  21644. return err
  21645. }
  21646. iNdEx = postIndex
  21647. case 2:
  21648. if wireType != 2 {
  21649. return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType)
  21650. }
  21651. var stringLen uint64
  21652. for shift := uint(0); ; shift += 7 {
  21653. if shift >= 64 {
  21654. return ErrIntOverflowRpc
  21655. }
  21656. if iNdEx >= l {
  21657. return io.ErrUnexpectedEOF
  21658. }
  21659. b := dAtA[iNdEx]
  21660. iNdEx++
  21661. stringLen |= uint64(b&0x7F) << shift
  21662. if b < 0x80 {
  21663. break
  21664. }
  21665. }
  21666. intStringLen := int(stringLen)
  21667. if intStringLen < 0 {
  21668. return ErrInvalidLengthRpc
  21669. }
  21670. postIndex := iNdEx + intStringLen
  21671. if postIndex < 0 {
  21672. return ErrInvalidLengthRpc
  21673. }
  21674. if postIndex > l {
  21675. return io.ErrUnexpectedEOF
  21676. }
  21677. m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex]))
  21678. iNdEx = postIndex
  21679. default:
  21680. iNdEx = preIndex
  21681. skippy, err := skipRpc(dAtA[iNdEx:])
  21682. if err != nil {
  21683. return err
  21684. }
  21685. if skippy < 0 {
  21686. return ErrInvalidLengthRpc
  21687. }
  21688. if (iNdEx + skippy) < 0 {
  21689. return ErrInvalidLengthRpc
  21690. }
  21691. if (iNdEx + skippy) > l {
  21692. return io.ErrUnexpectedEOF
  21693. }
  21694. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  21695. iNdEx += skippy
  21696. }
  21697. }
  21698. if iNdEx > l {
  21699. return io.ErrUnexpectedEOF
  21700. }
  21701. return nil
  21702. }
  21703. func (m *AuthUserDeleteResponse) Unmarshal(dAtA []byte) error {
  21704. l := len(dAtA)
  21705. iNdEx := 0
  21706. for iNdEx < l {
  21707. preIndex := iNdEx
  21708. var wire uint64
  21709. for shift := uint(0); ; shift += 7 {
  21710. if shift >= 64 {
  21711. return ErrIntOverflowRpc
  21712. }
  21713. if iNdEx >= l {
  21714. return io.ErrUnexpectedEOF
  21715. }
  21716. b := dAtA[iNdEx]
  21717. iNdEx++
  21718. wire |= uint64(b&0x7F) << shift
  21719. if b < 0x80 {
  21720. break
  21721. }
  21722. }
  21723. fieldNum := int32(wire >> 3)
  21724. wireType := int(wire & 0x7)
  21725. if wireType == 4 {
  21726. return fmt.Errorf("proto: AuthUserDeleteResponse: wiretype end group for non-group")
  21727. }
  21728. if fieldNum <= 0 {
  21729. return fmt.Errorf("proto: AuthUserDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  21730. }
  21731. switch fieldNum {
  21732. case 1:
  21733. if wireType != 2 {
  21734. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  21735. }
  21736. var msglen int
  21737. for shift := uint(0); ; shift += 7 {
  21738. if shift >= 64 {
  21739. return ErrIntOverflowRpc
  21740. }
  21741. if iNdEx >= l {
  21742. return io.ErrUnexpectedEOF
  21743. }
  21744. b := dAtA[iNdEx]
  21745. iNdEx++
  21746. msglen |= int(b&0x7F) << shift
  21747. if b < 0x80 {
  21748. break
  21749. }
  21750. }
  21751. if msglen < 0 {
  21752. return ErrInvalidLengthRpc
  21753. }
  21754. postIndex := iNdEx + msglen
  21755. if postIndex < 0 {
  21756. return ErrInvalidLengthRpc
  21757. }
  21758. if postIndex > l {
  21759. return io.ErrUnexpectedEOF
  21760. }
  21761. if m.Header == nil {
  21762. m.Header = &ResponseHeader{}
  21763. }
  21764. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  21765. return err
  21766. }
  21767. iNdEx = postIndex
  21768. default:
  21769. iNdEx = preIndex
  21770. skippy, err := skipRpc(dAtA[iNdEx:])
  21771. if err != nil {
  21772. return err
  21773. }
  21774. if skippy < 0 {
  21775. return ErrInvalidLengthRpc
  21776. }
  21777. if (iNdEx + skippy) < 0 {
  21778. return ErrInvalidLengthRpc
  21779. }
  21780. if (iNdEx + skippy) > l {
  21781. return io.ErrUnexpectedEOF
  21782. }
  21783. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  21784. iNdEx += skippy
  21785. }
  21786. }
  21787. if iNdEx > l {
  21788. return io.ErrUnexpectedEOF
  21789. }
  21790. return nil
  21791. }
  21792. func (m *AuthUserChangePasswordResponse) Unmarshal(dAtA []byte) error {
  21793. l := len(dAtA)
  21794. iNdEx := 0
  21795. for iNdEx < l {
  21796. preIndex := iNdEx
  21797. var wire uint64
  21798. for shift := uint(0); ; shift += 7 {
  21799. if shift >= 64 {
  21800. return ErrIntOverflowRpc
  21801. }
  21802. if iNdEx >= l {
  21803. return io.ErrUnexpectedEOF
  21804. }
  21805. b := dAtA[iNdEx]
  21806. iNdEx++
  21807. wire |= uint64(b&0x7F) << shift
  21808. if b < 0x80 {
  21809. break
  21810. }
  21811. }
  21812. fieldNum := int32(wire >> 3)
  21813. wireType := int(wire & 0x7)
  21814. if wireType == 4 {
  21815. return fmt.Errorf("proto: AuthUserChangePasswordResponse: wiretype end group for non-group")
  21816. }
  21817. if fieldNum <= 0 {
  21818. return fmt.Errorf("proto: AuthUserChangePasswordResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  21819. }
  21820. switch fieldNum {
  21821. case 1:
  21822. if wireType != 2 {
  21823. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  21824. }
  21825. var msglen int
  21826. for shift := uint(0); ; shift += 7 {
  21827. if shift >= 64 {
  21828. return ErrIntOverflowRpc
  21829. }
  21830. if iNdEx >= l {
  21831. return io.ErrUnexpectedEOF
  21832. }
  21833. b := dAtA[iNdEx]
  21834. iNdEx++
  21835. msglen |= int(b&0x7F) << shift
  21836. if b < 0x80 {
  21837. break
  21838. }
  21839. }
  21840. if msglen < 0 {
  21841. return ErrInvalidLengthRpc
  21842. }
  21843. postIndex := iNdEx + msglen
  21844. if postIndex < 0 {
  21845. return ErrInvalidLengthRpc
  21846. }
  21847. if postIndex > l {
  21848. return io.ErrUnexpectedEOF
  21849. }
  21850. if m.Header == nil {
  21851. m.Header = &ResponseHeader{}
  21852. }
  21853. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  21854. return err
  21855. }
  21856. iNdEx = postIndex
  21857. default:
  21858. iNdEx = preIndex
  21859. skippy, err := skipRpc(dAtA[iNdEx:])
  21860. if err != nil {
  21861. return err
  21862. }
  21863. if skippy < 0 {
  21864. return ErrInvalidLengthRpc
  21865. }
  21866. if (iNdEx + skippy) < 0 {
  21867. return ErrInvalidLengthRpc
  21868. }
  21869. if (iNdEx + skippy) > l {
  21870. return io.ErrUnexpectedEOF
  21871. }
  21872. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  21873. iNdEx += skippy
  21874. }
  21875. }
  21876. if iNdEx > l {
  21877. return io.ErrUnexpectedEOF
  21878. }
  21879. return nil
  21880. }
  21881. func (m *AuthUserGrantRoleResponse) Unmarshal(dAtA []byte) error {
  21882. l := len(dAtA)
  21883. iNdEx := 0
  21884. for iNdEx < l {
  21885. preIndex := iNdEx
  21886. var wire uint64
  21887. for shift := uint(0); ; shift += 7 {
  21888. if shift >= 64 {
  21889. return ErrIntOverflowRpc
  21890. }
  21891. if iNdEx >= l {
  21892. return io.ErrUnexpectedEOF
  21893. }
  21894. b := dAtA[iNdEx]
  21895. iNdEx++
  21896. wire |= uint64(b&0x7F) << shift
  21897. if b < 0x80 {
  21898. break
  21899. }
  21900. }
  21901. fieldNum := int32(wire >> 3)
  21902. wireType := int(wire & 0x7)
  21903. if wireType == 4 {
  21904. return fmt.Errorf("proto: AuthUserGrantRoleResponse: wiretype end group for non-group")
  21905. }
  21906. if fieldNum <= 0 {
  21907. return fmt.Errorf("proto: AuthUserGrantRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  21908. }
  21909. switch fieldNum {
  21910. case 1:
  21911. if wireType != 2 {
  21912. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  21913. }
  21914. var msglen int
  21915. for shift := uint(0); ; shift += 7 {
  21916. if shift >= 64 {
  21917. return ErrIntOverflowRpc
  21918. }
  21919. if iNdEx >= l {
  21920. return io.ErrUnexpectedEOF
  21921. }
  21922. b := dAtA[iNdEx]
  21923. iNdEx++
  21924. msglen |= int(b&0x7F) << shift
  21925. if b < 0x80 {
  21926. break
  21927. }
  21928. }
  21929. if msglen < 0 {
  21930. return ErrInvalidLengthRpc
  21931. }
  21932. postIndex := iNdEx + msglen
  21933. if postIndex < 0 {
  21934. return ErrInvalidLengthRpc
  21935. }
  21936. if postIndex > l {
  21937. return io.ErrUnexpectedEOF
  21938. }
  21939. if m.Header == nil {
  21940. m.Header = &ResponseHeader{}
  21941. }
  21942. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  21943. return err
  21944. }
  21945. iNdEx = postIndex
  21946. default:
  21947. iNdEx = preIndex
  21948. skippy, err := skipRpc(dAtA[iNdEx:])
  21949. if err != nil {
  21950. return err
  21951. }
  21952. if skippy < 0 {
  21953. return ErrInvalidLengthRpc
  21954. }
  21955. if (iNdEx + skippy) < 0 {
  21956. return ErrInvalidLengthRpc
  21957. }
  21958. if (iNdEx + skippy) > l {
  21959. return io.ErrUnexpectedEOF
  21960. }
  21961. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  21962. iNdEx += skippy
  21963. }
  21964. }
  21965. if iNdEx > l {
  21966. return io.ErrUnexpectedEOF
  21967. }
  21968. return nil
  21969. }
  21970. func (m *AuthUserRevokeRoleResponse) Unmarshal(dAtA []byte) error {
  21971. l := len(dAtA)
  21972. iNdEx := 0
  21973. for iNdEx < l {
  21974. preIndex := iNdEx
  21975. var wire uint64
  21976. for shift := uint(0); ; shift += 7 {
  21977. if shift >= 64 {
  21978. return ErrIntOverflowRpc
  21979. }
  21980. if iNdEx >= l {
  21981. return io.ErrUnexpectedEOF
  21982. }
  21983. b := dAtA[iNdEx]
  21984. iNdEx++
  21985. wire |= uint64(b&0x7F) << shift
  21986. if b < 0x80 {
  21987. break
  21988. }
  21989. }
  21990. fieldNum := int32(wire >> 3)
  21991. wireType := int(wire & 0x7)
  21992. if wireType == 4 {
  21993. return fmt.Errorf("proto: AuthUserRevokeRoleResponse: wiretype end group for non-group")
  21994. }
  21995. if fieldNum <= 0 {
  21996. return fmt.Errorf("proto: AuthUserRevokeRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  21997. }
  21998. switch fieldNum {
  21999. case 1:
  22000. if wireType != 2 {
  22001. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  22002. }
  22003. var msglen int
  22004. for shift := uint(0); ; shift += 7 {
  22005. if shift >= 64 {
  22006. return ErrIntOverflowRpc
  22007. }
  22008. if iNdEx >= l {
  22009. return io.ErrUnexpectedEOF
  22010. }
  22011. b := dAtA[iNdEx]
  22012. iNdEx++
  22013. msglen |= int(b&0x7F) << shift
  22014. if b < 0x80 {
  22015. break
  22016. }
  22017. }
  22018. if msglen < 0 {
  22019. return ErrInvalidLengthRpc
  22020. }
  22021. postIndex := iNdEx + msglen
  22022. if postIndex < 0 {
  22023. return ErrInvalidLengthRpc
  22024. }
  22025. if postIndex > l {
  22026. return io.ErrUnexpectedEOF
  22027. }
  22028. if m.Header == nil {
  22029. m.Header = &ResponseHeader{}
  22030. }
  22031. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  22032. return err
  22033. }
  22034. iNdEx = postIndex
  22035. default:
  22036. iNdEx = preIndex
  22037. skippy, err := skipRpc(dAtA[iNdEx:])
  22038. if err != nil {
  22039. return err
  22040. }
  22041. if skippy < 0 {
  22042. return ErrInvalidLengthRpc
  22043. }
  22044. if (iNdEx + skippy) < 0 {
  22045. return ErrInvalidLengthRpc
  22046. }
  22047. if (iNdEx + skippy) > l {
  22048. return io.ErrUnexpectedEOF
  22049. }
  22050. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  22051. iNdEx += skippy
  22052. }
  22053. }
  22054. if iNdEx > l {
  22055. return io.ErrUnexpectedEOF
  22056. }
  22057. return nil
  22058. }
  22059. func (m *AuthRoleAddResponse) Unmarshal(dAtA []byte) error {
  22060. l := len(dAtA)
  22061. iNdEx := 0
  22062. for iNdEx < l {
  22063. preIndex := iNdEx
  22064. var wire uint64
  22065. for shift := uint(0); ; shift += 7 {
  22066. if shift >= 64 {
  22067. return ErrIntOverflowRpc
  22068. }
  22069. if iNdEx >= l {
  22070. return io.ErrUnexpectedEOF
  22071. }
  22072. b := dAtA[iNdEx]
  22073. iNdEx++
  22074. wire |= uint64(b&0x7F) << shift
  22075. if b < 0x80 {
  22076. break
  22077. }
  22078. }
  22079. fieldNum := int32(wire >> 3)
  22080. wireType := int(wire & 0x7)
  22081. if wireType == 4 {
  22082. return fmt.Errorf("proto: AuthRoleAddResponse: wiretype end group for non-group")
  22083. }
  22084. if fieldNum <= 0 {
  22085. return fmt.Errorf("proto: AuthRoleAddResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  22086. }
  22087. switch fieldNum {
  22088. case 1:
  22089. if wireType != 2 {
  22090. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  22091. }
  22092. var msglen int
  22093. for shift := uint(0); ; shift += 7 {
  22094. if shift >= 64 {
  22095. return ErrIntOverflowRpc
  22096. }
  22097. if iNdEx >= l {
  22098. return io.ErrUnexpectedEOF
  22099. }
  22100. b := dAtA[iNdEx]
  22101. iNdEx++
  22102. msglen |= int(b&0x7F) << shift
  22103. if b < 0x80 {
  22104. break
  22105. }
  22106. }
  22107. if msglen < 0 {
  22108. return ErrInvalidLengthRpc
  22109. }
  22110. postIndex := iNdEx + msglen
  22111. if postIndex < 0 {
  22112. return ErrInvalidLengthRpc
  22113. }
  22114. if postIndex > l {
  22115. return io.ErrUnexpectedEOF
  22116. }
  22117. if m.Header == nil {
  22118. m.Header = &ResponseHeader{}
  22119. }
  22120. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  22121. return err
  22122. }
  22123. iNdEx = postIndex
  22124. default:
  22125. iNdEx = preIndex
  22126. skippy, err := skipRpc(dAtA[iNdEx:])
  22127. if err != nil {
  22128. return err
  22129. }
  22130. if skippy < 0 {
  22131. return ErrInvalidLengthRpc
  22132. }
  22133. if (iNdEx + skippy) < 0 {
  22134. return ErrInvalidLengthRpc
  22135. }
  22136. if (iNdEx + skippy) > l {
  22137. return io.ErrUnexpectedEOF
  22138. }
  22139. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  22140. iNdEx += skippy
  22141. }
  22142. }
  22143. if iNdEx > l {
  22144. return io.ErrUnexpectedEOF
  22145. }
  22146. return nil
  22147. }
  22148. func (m *AuthRoleGetResponse) Unmarshal(dAtA []byte) error {
  22149. l := len(dAtA)
  22150. iNdEx := 0
  22151. for iNdEx < l {
  22152. preIndex := iNdEx
  22153. var wire uint64
  22154. for shift := uint(0); ; shift += 7 {
  22155. if shift >= 64 {
  22156. return ErrIntOverflowRpc
  22157. }
  22158. if iNdEx >= l {
  22159. return io.ErrUnexpectedEOF
  22160. }
  22161. b := dAtA[iNdEx]
  22162. iNdEx++
  22163. wire |= uint64(b&0x7F) << shift
  22164. if b < 0x80 {
  22165. break
  22166. }
  22167. }
  22168. fieldNum := int32(wire >> 3)
  22169. wireType := int(wire & 0x7)
  22170. if wireType == 4 {
  22171. return fmt.Errorf("proto: AuthRoleGetResponse: wiretype end group for non-group")
  22172. }
  22173. if fieldNum <= 0 {
  22174. return fmt.Errorf("proto: AuthRoleGetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  22175. }
  22176. switch fieldNum {
  22177. case 1:
  22178. if wireType != 2 {
  22179. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  22180. }
  22181. var msglen int
  22182. for shift := uint(0); ; shift += 7 {
  22183. if shift >= 64 {
  22184. return ErrIntOverflowRpc
  22185. }
  22186. if iNdEx >= l {
  22187. return io.ErrUnexpectedEOF
  22188. }
  22189. b := dAtA[iNdEx]
  22190. iNdEx++
  22191. msglen |= int(b&0x7F) << shift
  22192. if b < 0x80 {
  22193. break
  22194. }
  22195. }
  22196. if msglen < 0 {
  22197. return ErrInvalidLengthRpc
  22198. }
  22199. postIndex := iNdEx + msglen
  22200. if postIndex < 0 {
  22201. return ErrInvalidLengthRpc
  22202. }
  22203. if postIndex > l {
  22204. return io.ErrUnexpectedEOF
  22205. }
  22206. if m.Header == nil {
  22207. m.Header = &ResponseHeader{}
  22208. }
  22209. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  22210. return err
  22211. }
  22212. iNdEx = postIndex
  22213. case 2:
  22214. if wireType != 2 {
  22215. return fmt.Errorf("proto: wrong wireType = %d for field Perm", wireType)
  22216. }
  22217. var msglen int
  22218. for shift := uint(0); ; shift += 7 {
  22219. if shift >= 64 {
  22220. return ErrIntOverflowRpc
  22221. }
  22222. if iNdEx >= l {
  22223. return io.ErrUnexpectedEOF
  22224. }
  22225. b := dAtA[iNdEx]
  22226. iNdEx++
  22227. msglen |= int(b&0x7F) << shift
  22228. if b < 0x80 {
  22229. break
  22230. }
  22231. }
  22232. if msglen < 0 {
  22233. return ErrInvalidLengthRpc
  22234. }
  22235. postIndex := iNdEx + msglen
  22236. if postIndex < 0 {
  22237. return ErrInvalidLengthRpc
  22238. }
  22239. if postIndex > l {
  22240. return io.ErrUnexpectedEOF
  22241. }
  22242. m.Perm = append(m.Perm, &authpb.Permission{})
  22243. if err := m.Perm[len(m.Perm)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  22244. return err
  22245. }
  22246. iNdEx = postIndex
  22247. default:
  22248. iNdEx = preIndex
  22249. skippy, err := skipRpc(dAtA[iNdEx:])
  22250. if err != nil {
  22251. return err
  22252. }
  22253. if skippy < 0 {
  22254. return ErrInvalidLengthRpc
  22255. }
  22256. if (iNdEx + skippy) < 0 {
  22257. return ErrInvalidLengthRpc
  22258. }
  22259. if (iNdEx + skippy) > l {
  22260. return io.ErrUnexpectedEOF
  22261. }
  22262. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  22263. iNdEx += skippy
  22264. }
  22265. }
  22266. if iNdEx > l {
  22267. return io.ErrUnexpectedEOF
  22268. }
  22269. return nil
  22270. }
  22271. func (m *AuthRoleListResponse) Unmarshal(dAtA []byte) error {
  22272. l := len(dAtA)
  22273. iNdEx := 0
  22274. for iNdEx < l {
  22275. preIndex := iNdEx
  22276. var wire uint64
  22277. for shift := uint(0); ; shift += 7 {
  22278. if shift >= 64 {
  22279. return ErrIntOverflowRpc
  22280. }
  22281. if iNdEx >= l {
  22282. return io.ErrUnexpectedEOF
  22283. }
  22284. b := dAtA[iNdEx]
  22285. iNdEx++
  22286. wire |= uint64(b&0x7F) << shift
  22287. if b < 0x80 {
  22288. break
  22289. }
  22290. }
  22291. fieldNum := int32(wire >> 3)
  22292. wireType := int(wire & 0x7)
  22293. if wireType == 4 {
  22294. return fmt.Errorf("proto: AuthRoleListResponse: wiretype end group for non-group")
  22295. }
  22296. if fieldNum <= 0 {
  22297. return fmt.Errorf("proto: AuthRoleListResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  22298. }
  22299. switch fieldNum {
  22300. case 1:
  22301. if wireType != 2 {
  22302. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  22303. }
  22304. var msglen int
  22305. for shift := uint(0); ; shift += 7 {
  22306. if shift >= 64 {
  22307. return ErrIntOverflowRpc
  22308. }
  22309. if iNdEx >= l {
  22310. return io.ErrUnexpectedEOF
  22311. }
  22312. b := dAtA[iNdEx]
  22313. iNdEx++
  22314. msglen |= int(b&0x7F) << shift
  22315. if b < 0x80 {
  22316. break
  22317. }
  22318. }
  22319. if msglen < 0 {
  22320. return ErrInvalidLengthRpc
  22321. }
  22322. postIndex := iNdEx + msglen
  22323. if postIndex < 0 {
  22324. return ErrInvalidLengthRpc
  22325. }
  22326. if postIndex > l {
  22327. return io.ErrUnexpectedEOF
  22328. }
  22329. if m.Header == nil {
  22330. m.Header = &ResponseHeader{}
  22331. }
  22332. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  22333. return err
  22334. }
  22335. iNdEx = postIndex
  22336. case 2:
  22337. if wireType != 2 {
  22338. return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType)
  22339. }
  22340. var stringLen uint64
  22341. for shift := uint(0); ; shift += 7 {
  22342. if shift >= 64 {
  22343. return ErrIntOverflowRpc
  22344. }
  22345. if iNdEx >= l {
  22346. return io.ErrUnexpectedEOF
  22347. }
  22348. b := dAtA[iNdEx]
  22349. iNdEx++
  22350. stringLen |= uint64(b&0x7F) << shift
  22351. if b < 0x80 {
  22352. break
  22353. }
  22354. }
  22355. intStringLen := int(stringLen)
  22356. if intStringLen < 0 {
  22357. return ErrInvalidLengthRpc
  22358. }
  22359. postIndex := iNdEx + intStringLen
  22360. if postIndex < 0 {
  22361. return ErrInvalidLengthRpc
  22362. }
  22363. if postIndex > l {
  22364. return io.ErrUnexpectedEOF
  22365. }
  22366. m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex]))
  22367. iNdEx = postIndex
  22368. default:
  22369. iNdEx = preIndex
  22370. skippy, err := skipRpc(dAtA[iNdEx:])
  22371. if err != nil {
  22372. return err
  22373. }
  22374. if skippy < 0 {
  22375. return ErrInvalidLengthRpc
  22376. }
  22377. if (iNdEx + skippy) < 0 {
  22378. return ErrInvalidLengthRpc
  22379. }
  22380. if (iNdEx + skippy) > l {
  22381. return io.ErrUnexpectedEOF
  22382. }
  22383. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  22384. iNdEx += skippy
  22385. }
  22386. }
  22387. if iNdEx > l {
  22388. return io.ErrUnexpectedEOF
  22389. }
  22390. return nil
  22391. }
  22392. func (m *AuthUserListResponse) Unmarshal(dAtA []byte) error {
  22393. l := len(dAtA)
  22394. iNdEx := 0
  22395. for iNdEx < l {
  22396. preIndex := iNdEx
  22397. var wire uint64
  22398. for shift := uint(0); ; shift += 7 {
  22399. if shift >= 64 {
  22400. return ErrIntOverflowRpc
  22401. }
  22402. if iNdEx >= l {
  22403. return io.ErrUnexpectedEOF
  22404. }
  22405. b := dAtA[iNdEx]
  22406. iNdEx++
  22407. wire |= uint64(b&0x7F) << shift
  22408. if b < 0x80 {
  22409. break
  22410. }
  22411. }
  22412. fieldNum := int32(wire >> 3)
  22413. wireType := int(wire & 0x7)
  22414. if wireType == 4 {
  22415. return fmt.Errorf("proto: AuthUserListResponse: wiretype end group for non-group")
  22416. }
  22417. if fieldNum <= 0 {
  22418. return fmt.Errorf("proto: AuthUserListResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  22419. }
  22420. switch fieldNum {
  22421. case 1:
  22422. if wireType != 2 {
  22423. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  22424. }
  22425. var msglen int
  22426. for shift := uint(0); ; shift += 7 {
  22427. if shift >= 64 {
  22428. return ErrIntOverflowRpc
  22429. }
  22430. if iNdEx >= l {
  22431. return io.ErrUnexpectedEOF
  22432. }
  22433. b := dAtA[iNdEx]
  22434. iNdEx++
  22435. msglen |= int(b&0x7F) << shift
  22436. if b < 0x80 {
  22437. break
  22438. }
  22439. }
  22440. if msglen < 0 {
  22441. return ErrInvalidLengthRpc
  22442. }
  22443. postIndex := iNdEx + msglen
  22444. if postIndex < 0 {
  22445. return ErrInvalidLengthRpc
  22446. }
  22447. if postIndex > l {
  22448. return io.ErrUnexpectedEOF
  22449. }
  22450. if m.Header == nil {
  22451. m.Header = &ResponseHeader{}
  22452. }
  22453. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  22454. return err
  22455. }
  22456. iNdEx = postIndex
  22457. case 2:
  22458. if wireType != 2 {
  22459. return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType)
  22460. }
  22461. var stringLen uint64
  22462. for shift := uint(0); ; shift += 7 {
  22463. if shift >= 64 {
  22464. return ErrIntOverflowRpc
  22465. }
  22466. if iNdEx >= l {
  22467. return io.ErrUnexpectedEOF
  22468. }
  22469. b := dAtA[iNdEx]
  22470. iNdEx++
  22471. stringLen |= uint64(b&0x7F) << shift
  22472. if b < 0x80 {
  22473. break
  22474. }
  22475. }
  22476. intStringLen := int(stringLen)
  22477. if intStringLen < 0 {
  22478. return ErrInvalidLengthRpc
  22479. }
  22480. postIndex := iNdEx + intStringLen
  22481. if postIndex < 0 {
  22482. return ErrInvalidLengthRpc
  22483. }
  22484. if postIndex > l {
  22485. return io.ErrUnexpectedEOF
  22486. }
  22487. m.Users = append(m.Users, string(dAtA[iNdEx:postIndex]))
  22488. iNdEx = postIndex
  22489. default:
  22490. iNdEx = preIndex
  22491. skippy, err := skipRpc(dAtA[iNdEx:])
  22492. if err != nil {
  22493. return err
  22494. }
  22495. if skippy < 0 {
  22496. return ErrInvalidLengthRpc
  22497. }
  22498. if (iNdEx + skippy) < 0 {
  22499. return ErrInvalidLengthRpc
  22500. }
  22501. if (iNdEx + skippy) > l {
  22502. return io.ErrUnexpectedEOF
  22503. }
  22504. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  22505. iNdEx += skippy
  22506. }
  22507. }
  22508. if iNdEx > l {
  22509. return io.ErrUnexpectedEOF
  22510. }
  22511. return nil
  22512. }
  22513. func (m *AuthRoleDeleteResponse) Unmarshal(dAtA []byte) error {
  22514. l := len(dAtA)
  22515. iNdEx := 0
  22516. for iNdEx < l {
  22517. preIndex := iNdEx
  22518. var wire uint64
  22519. for shift := uint(0); ; shift += 7 {
  22520. if shift >= 64 {
  22521. return ErrIntOverflowRpc
  22522. }
  22523. if iNdEx >= l {
  22524. return io.ErrUnexpectedEOF
  22525. }
  22526. b := dAtA[iNdEx]
  22527. iNdEx++
  22528. wire |= uint64(b&0x7F) << shift
  22529. if b < 0x80 {
  22530. break
  22531. }
  22532. }
  22533. fieldNum := int32(wire >> 3)
  22534. wireType := int(wire & 0x7)
  22535. if wireType == 4 {
  22536. return fmt.Errorf("proto: AuthRoleDeleteResponse: wiretype end group for non-group")
  22537. }
  22538. if fieldNum <= 0 {
  22539. return fmt.Errorf("proto: AuthRoleDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  22540. }
  22541. switch fieldNum {
  22542. case 1:
  22543. if wireType != 2 {
  22544. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  22545. }
  22546. var msglen int
  22547. for shift := uint(0); ; shift += 7 {
  22548. if shift >= 64 {
  22549. return ErrIntOverflowRpc
  22550. }
  22551. if iNdEx >= l {
  22552. return io.ErrUnexpectedEOF
  22553. }
  22554. b := dAtA[iNdEx]
  22555. iNdEx++
  22556. msglen |= int(b&0x7F) << shift
  22557. if b < 0x80 {
  22558. break
  22559. }
  22560. }
  22561. if msglen < 0 {
  22562. return ErrInvalidLengthRpc
  22563. }
  22564. postIndex := iNdEx + msglen
  22565. if postIndex < 0 {
  22566. return ErrInvalidLengthRpc
  22567. }
  22568. if postIndex > l {
  22569. return io.ErrUnexpectedEOF
  22570. }
  22571. if m.Header == nil {
  22572. m.Header = &ResponseHeader{}
  22573. }
  22574. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  22575. return err
  22576. }
  22577. iNdEx = postIndex
  22578. default:
  22579. iNdEx = preIndex
  22580. skippy, err := skipRpc(dAtA[iNdEx:])
  22581. if err != nil {
  22582. return err
  22583. }
  22584. if skippy < 0 {
  22585. return ErrInvalidLengthRpc
  22586. }
  22587. if (iNdEx + skippy) < 0 {
  22588. return ErrInvalidLengthRpc
  22589. }
  22590. if (iNdEx + skippy) > l {
  22591. return io.ErrUnexpectedEOF
  22592. }
  22593. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  22594. iNdEx += skippy
  22595. }
  22596. }
  22597. if iNdEx > l {
  22598. return io.ErrUnexpectedEOF
  22599. }
  22600. return nil
  22601. }
  22602. func (m *AuthRoleGrantPermissionResponse) Unmarshal(dAtA []byte) error {
  22603. l := len(dAtA)
  22604. iNdEx := 0
  22605. for iNdEx < l {
  22606. preIndex := iNdEx
  22607. var wire uint64
  22608. for shift := uint(0); ; shift += 7 {
  22609. if shift >= 64 {
  22610. return ErrIntOverflowRpc
  22611. }
  22612. if iNdEx >= l {
  22613. return io.ErrUnexpectedEOF
  22614. }
  22615. b := dAtA[iNdEx]
  22616. iNdEx++
  22617. wire |= uint64(b&0x7F) << shift
  22618. if b < 0x80 {
  22619. break
  22620. }
  22621. }
  22622. fieldNum := int32(wire >> 3)
  22623. wireType := int(wire & 0x7)
  22624. if wireType == 4 {
  22625. return fmt.Errorf("proto: AuthRoleGrantPermissionResponse: wiretype end group for non-group")
  22626. }
  22627. if fieldNum <= 0 {
  22628. return fmt.Errorf("proto: AuthRoleGrantPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  22629. }
  22630. switch fieldNum {
  22631. case 1:
  22632. if wireType != 2 {
  22633. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  22634. }
  22635. var msglen int
  22636. for shift := uint(0); ; shift += 7 {
  22637. if shift >= 64 {
  22638. return ErrIntOverflowRpc
  22639. }
  22640. if iNdEx >= l {
  22641. return io.ErrUnexpectedEOF
  22642. }
  22643. b := dAtA[iNdEx]
  22644. iNdEx++
  22645. msglen |= int(b&0x7F) << shift
  22646. if b < 0x80 {
  22647. break
  22648. }
  22649. }
  22650. if msglen < 0 {
  22651. return ErrInvalidLengthRpc
  22652. }
  22653. postIndex := iNdEx + msglen
  22654. if postIndex < 0 {
  22655. return ErrInvalidLengthRpc
  22656. }
  22657. if postIndex > l {
  22658. return io.ErrUnexpectedEOF
  22659. }
  22660. if m.Header == nil {
  22661. m.Header = &ResponseHeader{}
  22662. }
  22663. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  22664. return err
  22665. }
  22666. iNdEx = postIndex
  22667. default:
  22668. iNdEx = preIndex
  22669. skippy, err := skipRpc(dAtA[iNdEx:])
  22670. if err != nil {
  22671. return err
  22672. }
  22673. if skippy < 0 {
  22674. return ErrInvalidLengthRpc
  22675. }
  22676. if (iNdEx + skippy) < 0 {
  22677. return ErrInvalidLengthRpc
  22678. }
  22679. if (iNdEx + skippy) > l {
  22680. return io.ErrUnexpectedEOF
  22681. }
  22682. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  22683. iNdEx += skippy
  22684. }
  22685. }
  22686. if iNdEx > l {
  22687. return io.ErrUnexpectedEOF
  22688. }
  22689. return nil
  22690. }
  22691. func (m *AuthRoleRevokePermissionResponse) Unmarshal(dAtA []byte) error {
  22692. l := len(dAtA)
  22693. iNdEx := 0
  22694. for iNdEx < l {
  22695. preIndex := iNdEx
  22696. var wire uint64
  22697. for shift := uint(0); ; shift += 7 {
  22698. if shift >= 64 {
  22699. return ErrIntOverflowRpc
  22700. }
  22701. if iNdEx >= l {
  22702. return io.ErrUnexpectedEOF
  22703. }
  22704. b := dAtA[iNdEx]
  22705. iNdEx++
  22706. wire |= uint64(b&0x7F) << shift
  22707. if b < 0x80 {
  22708. break
  22709. }
  22710. }
  22711. fieldNum := int32(wire >> 3)
  22712. wireType := int(wire & 0x7)
  22713. if wireType == 4 {
  22714. return fmt.Errorf("proto: AuthRoleRevokePermissionResponse: wiretype end group for non-group")
  22715. }
  22716. if fieldNum <= 0 {
  22717. return fmt.Errorf("proto: AuthRoleRevokePermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  22718. }
  22719. switch fieldNum {
  22720. case 1:
  22721. if wireType != 2 {
  22722. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  22723. }
  22724. var msglen int
  22725. for shift := uint(0); ; shift += 7 {
  22726. if shift >= 64 {
  22727. return ErrIntOverflowRpc
  22728. }
  22729. if iNdEx >= l {
  22730. return io.ErrUnexpectedEOF
  22731. }
  22732. b := dAtA[iNdEx]
  22733. iNdEx++
  22734. msglen |= int(b&0x7F) << shift
  22735. if b < 0x80 {
  22736. break
  22737. }
  22738. }
  22739. if msglen < 0 {
  22740. return ErrInvalidLengthRpc
  22741. }
  22742. postIndex := iNdEx + msglen
  22743. if postIndex < 0 {
  22744. return ErrInvalidLengthRpc
  22745. }
  22746. if postIndex > l {
  22747. return io.ErrUnexpectedEOF
  22748. }
  22749. if m.Header == nil {
  22750. m.Header = &ResponseHeader{}
  22751. }
  22752. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  22753. return err
  22754. }
  22755. iNdEx = postIndex
  22756. default:
  22757. iNdEx = preIndex
  22758. skippy, err := skipRpc(dAtA[iNdEx:])
  22759. if err != nil {
  22760. return err
  22761. }
  22762. if skippy < 0 {
  22763. return ErrInvalidLengthRpc
  22764. }
  22765. if (iNdEx + skippy) < 0 {
  22766. return ErrInvalidLengthRpc
  22767. }
  22768. if (iNdEx + skippy) > l {
  22769. return io.ErrUnexpectedEOF
  22770. }
  22771. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  22772. iNdEx += skippy
  22773. }
  22774. }
  22775. if iNdEx > l {
  22776. return io.ErrUnexpectedEOF
  22777. }
  22778. return nil
  22779. }
  22780. func skipRpc(dAtA []byte) (n int, err error) {
  22781. l := len(dAtA)
  22782. iNdEx := 0
  22783. for iNdEx < l {
  22784. var wire uint64
  22785. for shift := uint(0); ; shift += 7 {
  22786. if shift >= 64 {
  22787. return 0, ErrIntOverflowRpc
  22788. }
  22789. if iNdEx >= l {
  22790. return 0, io.ErrUnexpectedEOF
  22791. }
  22792. b := dAtA[iNdEx]
  22793. iNdEx++
  22794. wire |= (uint64(b) & 0x7F) << shift
  22795. if b < 0x80 {
  22796. break
  22797. }
  22798. }
  22799. wireType := int(wire & 0x7)
  22800. switch wireType {
  22801. case 0:
  22802. for shift := uint(0); ; shift += 7 {
  22803. if shift >= 64 {
  22804. return 0, ErrIntOverflowRpc
  22805. }
  22806. if iNdEx >= l {
  22807. return 0, io.ErrUnexpectedEOF
  22808. }
  22809. iNdEx++
  22810. if dAtA[iNdEx-1] < 0x80 {
  22811. break
  22812. }
  22813. }
  22814. return iNdEx, nil
  22815. case 1:
  22816. iNdEx += 8
  22817. return iNdEx, nil
  22818. case 2:
  22819. var length int
  22820. for shift := uint(0); ; shift += 7 {
  22821. if shift >= 64 {
  22822. return 0, ErrIntOverflowRpc
  22823. }
  22824. if iNdEx >= l {
  22825. return 0, io.ErrUnexpectedEOF
  22826. }
  22827. b := dAtA[iNdEx]
  22828. iNdEx++
  22829. length |= (int(b) & 0x7F) << shift
  22830. if b < 0x80 {
  22831. break
  22832. }
  22833. }
  22834. if length < 0 {
  22835. return 0, ErrInvalidLengthRpc
  22836. }
  22837. iNdEx += length
  22838. if iNdEx < 0 {
  22839. return 0, ErrInvalidLengthRpc
  22840. }
  22841. return iNdEx, nil
  22842. case 3:
  22843. for {
  22844. var innerWire uint64
  22845. var start int = iNdEx
  22846. for shift := uint(0); ; shift += 7 {
  22847. if shift >= 64 {
  22848. return 0, ErrIntOverflowRpc
  22849. }
  22850. if iNdEx >= l {
  22851. return 0, io.ErrUnexpectedEOF
  22852. }
  22853. b := dAtA[iNdEx]
  22854. iNdEx++
  22855. innerWire |= (uint64(b) & 0x7F) << shift
  22856. if b < 0x80 {
  22857. break
  22858. }
  22859. }
  22860. innerWireType := int(innerWire & 0x7)
  22861. if innerWireType == 4 {
  22862. break
  22863. }
  22864. next, err := skipRpc(dAtA[start:])
  22865. if err != nil {
  22866. return 0, err
  22867. }
  22868. iNdEx = start + next
  22869. if iNdEx < 0 {
  22870. return 0, ErrInvalidLengthRpc
  22871. }
  22872. }
  22873. return iNdEx, nil
  22874. case 4:
  22875. return iNdEx, nil
  22876. case 5:
  22877. iNdEx += 4
  22878. return iNdEx, nil
  22879. default:
  22880. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  22881. }
  22882. }
  22883. panic("unreachable")
  22884. }
  22885. var (
  22886. ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling")
  22887. ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow")
  22888. )