rpc.pb.go 171 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: rpcpb/rpc.proto
  3. package rpcpb
  4. import (
  5. context "context"
  6. encoding_binary "encoding/binary"
  7. fmt "fmt"
  8. _ "github.com/gogo/protobuf/gogoproto"
  9. proto "github.com/golang/protobuf/proto"
  10. grpc "google.golang.org/grpc"
  11. codes "google.golang.org/grpc/codes"
  12. status "google.golang.org/grpc/status"
  13. io "io"
  14. math "math"
  15. math_bits "math/bits"
  16. )
  17. // Reference imports to suppress errors if they are not otherwise used.
  18. var _ = proto.Marshal
  19. var _ = fmt.Errorf
  20. var _ = math.Inf
  21. // This is a compile-time assertion to ensure that this generated file
  22. // is compatible with the proto package it is being compiled against.
  23. // A compilation error at this line likely means your copy of the
  24. // proto package needs to be updated.
  25. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  26. type StresserType int32
  27. const (
  28. StresserType_KV_WRITE_SMALL StresserType = 0
  29. StresserType_KV_WRITE_LARGE StresserType = 1
  30. StresserType_KV_READ_ONE_KEY StresserType = 2
  31. StresserType_KV_READ_RANGE StresserType = 3
  32. StresserType_KV_DELETE_ONE_KEY StresserType = 4
  33. StresserType_KV_DELETE_RANGE StresserType = 5
  34. StresserType_KV_TXN_WRITE_DELETE StresserType = 6
  35. StresserType_LEASE StresserType = 10
  36. StresserType_ELECTION_RUNNER StresserType = 20
  37. StresserType_WATCH_RUNNER StresserType = 31
  38. StresserType_LOCK_RACER_RUNNER StresserType = 41
  39. StresserType_LEASE_RUNNER StresserType = 51
  40. )
  41. var StresserType_name = map[int32]string{
  42. 0: "KV_WRITE_SMALL",
  43. 1: "KV_WRITE_LARGE",
  44. 2: "KV_READ_ONE_KEY",
  45. 3: "KV_READ_RANGE",
  46. 4: "KV_DELETE_ONE_KEY",
  47. 5: "KV_DELETE_RANGE",
  48. 6: "KV_TXN_WRITE_DELETE",
  49. 10: "LEASE",
  50. 20: "ELECTION_RUNNER",
  51. 31: "WATCH_RUNNER",
  52. 41: "LOCK_RACER_RUNNER",
  53. 51: "LEASE_RUNNER",
  54. }
  55. var StresserType_value = map[string]int32{
  56. "KV_WRITE_SMALL": 0,
  57. "KV_WRITE_LARGE": 1,
  58. "KV_READ_ONE_KEY": 2,
  59. "KV_READ_RANGE": 3,
  60. "KV_DELETE_ONE_KEY": 4,
  61. "KV_DELETE_RANGE": 5,
  62. "KV_TXN_WRITE_DELETE": 6,
  63. "LEASE": 10,
  64. "ELECTION_RUNNER": 20,
  65. "WATCH_RUNNER": 31,
  66. "LOCK_RACER_RUNNER": 41,
  67. "LEASE_RUNNER": 51,
  68. }
  69. func (x StresserType) String() string {
  70. return proto.EnumName(StresserType_name, int32(x))
  71. }
  72. func (StresserType) EnumDescriptor() ([]byte, []int) {
  73. return fileDescriptor_4fbc93a8dcc3881e, []int{0}
  74. }
  75. type Checker int32
  76. const (
  77. Checker_KV_HASH Checker = 0
  78. Checker_LEASE_EXPIRE Checker = 1
  79. Checker_RUNNER Checker = 2
  80. Checker_NO_CHECK Checker = 3
  81. )
  82. var Checker_name = map[int32]string{
  83. 0: "KV_HASH",
  84. 1: "LEASE_EXPIRE",
  85. 2: "RUNNER",
  86. 3: "NO_CHECK",
  87. }
  88. var Checker_value = map[string]int32{
  89. "KV_HASH": 0,
  90. "LEASE_EXPIRE": 1,
  91. "RUNNER": 2,
  92. "NO_CHECK": 3,
  93. }
  94. func (x Checker) String() string {
  95. return proto.EnumName(Checker_name, int32(x))
  96. }
  97. func (Checker) EnumDescriptor() ([]byte, []int) {
  98. return fileDescriptor_4fbc93a8dcc3881e, []int{1}
  99. }
  100. type Operation int32
  101. const (
  102. // NOT_STARTED is the agent status before etcd first start.
  103. Operation_NOT_STARTED Operation = 0
  104. // INITIAL_START_ETCD is only called to start etcd, the very first time.
  105. Operation_INITIAL_START_ETCD Operation = 10
  106. // RESTART_ETCD is sent to restart killed etcd.
  107. Operation_RESTART_ETCD Operation = 11
  108. // SIGTERM_ETCD pauses etcd process while keeping data directories
  109. // and previous etcd configurations.
  110. Operation_SIGTERM_ETCD Operation = 20
  111. // SIGQUIT_ETCD_AND_REMOVE_DATA kills etcd process and removes all data
  112. // directories to simulate destroying the whole machine.
  113. Operation_SIGQUIT_ETCD_AND_REMOVE_DATA Operation = 21
  114. // SAVE_SNAPSHOT is sent to trigger local member to download its snapshot
  115. // onto its local disk with the specified path from tester.
  116. Operation_SAVE_SNAPSHOT Operation = 30
  117. // RESTORE_RESTART_FROM_SNAPSHOT is sent to trigger local member to
  118. // restore a cluster from existing snapshot from disk, and restart
  119. // an etcd instance from recovered data.
  120. Operation_RESTORE_RESTART_FROM_SNAPSHOT Operation = 31
  121. // RESTART_FROM_SNAPSHOT is sent to trigger local member to restart
  122. // and join an existing cluster that has been recovered from a snapshot.
  123. // Local member joins this cluster with fresh data.
  124. Operation_RESTART_FROM_SNAPSHOT Operation = 32
  125. // SIGQUIT_ETCD_AND_ARCHIVE_DATA is sent when consistency check failed,
  126. // thus need to archive etcd data directories.
  127. Operation_SIGQUIT_ETCD_AND_ARCHIVE_DATA Operation = 40
  128. // SIGQUIT_ETCD_AND_REMOVE_DATA_AND_STOP_AGENT destroys etcd process,
  129. // etcd data, and agent server.
  130. Operation_SIGQUIT_ETCD_AND_REMOVE_DATA_AND_STOP_AGENT Operation = 41
  131. // BLACKHOLE_PEER_PORT_TX_RX drops all outgoing/incoming packets from/to
  132. // the peer port on target member's peer port.
  133. Operation_BLACKHOLE_PEER_PORT_TX_RX Operation = 100
  134. // UNBLACKHOLE_PEER_PORT_TX_RX removes outgoing/incoming packet dropping.
  135. Operation_UNBLACKHOLE_PEER_PORT_TX_RX Operation = 101
  136. // DELAY_PEER_PORT_TX_RX delays all outgoing/incoming packets from/to
  137. // the peer port on target member's peer port.
  138. Operation_DELAY_PEER_PORT_TX_RX Operation = 200
  139. // UNDELAY_PEER_PORT_TX_RX removes all outgoing/incoming delays.
  140. Operation_UNDELAY_PEER_PORT_TX_RX Operation = 201
  141. )
  142. var Operation_name = map[int32]string{
  143. 0: "NOT_STARTED",
  144. 10: "INITIAL_START_ETCD",
  145. 11: "RESTART_ETCD",
  146. 20: "SIGTERM_ETCD",
  147. 21: "SIGQUIT_ETCD_AND_REMOVE_DATA",
  148. 30: "SAVE_SNAPSHOT",
  149. 31: "RESTORE_RESTART_FROM_SNAPSHOT",
  150. 32: "RESTART_FROM_SNAPSHOT",
  151. 40: "SIGQUIT_ETCD_AND_ARCHIVE_DATA",
  152. 41: "SIGQUIT_ETCD_AND_REMOVE_DATA_AND_STOP_AGENT",
  153. 100: "BLACKHOLE_PEER_PORT_TX_RX",
  154. 101: "UNBLACKHOLE_PEER_PORT_TX_RX",
  155. 200: "DELAY_PEER_PORT_TX_RX",
  156. 201: "UNDELAY_PEER_PORT_TX_RX",
  157. }
  158. var Operation_value = map[string]int32{
  159. "NOT_STARTED": 0,
  160. "INITIAL_START_ETCD": 10,
  161. "RESTART_ETCD": 11,
  162. "SIGTERM_ETCD": 20,
  163. "SIGQUIT_ETCD_AND_REMOVE_DATA": 21,
  164. "SAVE_SNAPSHOT": 30,
  165. "RESTORE_RESTART_FROM_SNAPSHOT": 31,
  166. "RESTART_FROM_SNAPSHOT": 32,
  167. "SIGQUIT_ETCD_AND_ARCHIVE_DATA": 40,
  168. "SIGQUIT_ETCD_AND_REMOVE_DATA_AND_STOP_AGENT": 41,
  169. "BLACKHOLE_PEER_PORT_TX_RX": 100,
  170. "UNBLACKHOLE_PEER_PORT_TX_RX": 101,
  171. "DELAY_PEER_PORT_TX_RX": 200,
  172. "UNDELAY_PEER_PORT_TX_RX": 201,
  173. }
  174. func (x Operation) String() string {
  175. return proto.EnumName(Operation_name, int32(x))
  176. }
  177. func (Operation) EnumDescriptor() ([]byte, []int) {
  178. return fileDescriptor_4fbc93a8dcc3881e, []int{2}
  179. }
  180. // Case defines various system faults or test case in distributed systems,
  181. // in order to verify correct behavior of etcd servers and clients.
  182. type Case int32
  183. const (
  184. // SIGTERM_ONE_FOLLOWER stops a randomly chosen follower (non-leader)
  185. // but does not delete its data directories on disk for next restart.
  186. // It waits "delay-ms" before recovering this failure.
  187. // The expected behavior is that the follower comes back online
  188. // and rejoins the cluster, and then each member continues to process
  189. // client requests ('Put' request that requires Raft consensus).
  190. Case_SIGTERM_ONE_FOLLOWER Case = 0
  191. // SIGTERM_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT stops a randomly chosen
  192. // follower but does not delete its data directories on disk for next
  193. // restart. And waits until most up-to-date node (leader) applies the
  194. // snapshot count of entries since the stop operation.
  195. // The expected behavior is that the follower comes back online and
  196. // rejoins the cluster, and then active leader sends snapshot
  197. // to the follower to force it to follow the leader's log.
  198. // As always, after recovery, each member must be able to process
  199. // client requests.
  200. Case_SIGTERM_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT Case = 1
  201. // SIGTERM_LEADER stops the active leader node but does not delete its
  202. // data directories on disk for next restart. Then it waits "delay-ms"
  203. // before recovering this failure, in order to trigger election timeouts.
  204. // The expected behavior is that a new leader gets elected, and the
  205. // old leader comes back online and rejoins the cluster as a follower.
  206. // As always, after recovery, each member must be able to process
  207. // client requests.
  208. Case_SIGTERM_LEADER Case = 2
  209. // SIGTERM_LEADER_UNTIL_TRIGGER_SNAPSHOT stops the active leader node
  210. // but does not delete its data directories on disk for next restart.
  211. // And waits until most up-to-date node ("new" leader) applies the
  212. // snapshot count of entries since the stop operation.
  213. // The expected behavior is that cluster elects a new leader, and the
  214. // old leader comes back online and rejoins the cluster as a follower.
  215. // And it receives the snapshot from the new leader to overwrite its
  216. // store. As always, after recovery, each member must be able to
  217. // process client requests.
  218. Case_SIGTERM_LEADER_UNTIL_TRIGGER_SNAPSHOT Case = 3
  219. // SIGTERM_QUORUM stops majority number of nodes to make the whole cluster
  220. // inoperable but does not delete data directories on stopped nodes
  221. // for next restart. And it waits "delay-ms" before recovering failure.
  222. // The expected behavior is that nodes come back online, thus cluster
  223. // comes back operative as well. As always, after recovery, each member
  224. // must be able to process client requests.
  225. Case_SIGTERM_QUORUM Case = 4
  226. // SIGTERM_ALL stops the whole cluster but does not delete data directories
  227. // on disk for next restart. And it waits "delay-ms" before recovering
  228. // this failure.
  229. // The expected behavior is that nodes come back online, thus cluster
  230. // comes back operative as well. As always, after recovery, each member
  231. // must be able to process client requests.
  232. Case_SIGTERM_ALL Case = 5
  233. // SIGQUIT_AND_REMOVE_ONE_FOLLOWER stops a randomly chosen follower
  234. // (non-leader), deletes its data directories on disk, and removes
  235. // this member from cluster (membership reconfiguration). On recovery,
  236. // tester adds a new member, and this member joins the existing cluster
  237. // with fresh data. It waits "delay-ms" before recovering this
  238. // failure. This simulates destroying one follower machine, where operator
  239. // needs to add a new member from a fresh machine.
  240. // The expected behavior is that a new member joins the existing cluster,
  241. // and then each member continues to process client requests.
  242. Case_SIGQUIT_AND_REMOVE_ONE_FOLLOWER Case = 10
  243. // SIGQUIT_AND_REMOVE_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT stops a randomly
  244. // chosen follower, deletes its data directories on disk, and removes
  245. // this member from cluster (membership reconfiguration). On recovery,
  246. // tester adds a new member, and this member joins the existing cluster
  247. // restart. On member remove, cluster waits until most up-to-date node
  248. // (leader) applies the snapshot count of entries since the stop operation.
  249. // This simulates destroying a leader machine, where operator needs to add
  250. // a new member from a fresh machine.
  251. // The expected behavior is that a new member joins the existing cluster,
  252. // and receives a snapshot from the active leader. As always, after
  253. // recovery, each member must be able to process client requests.
  254. Case_SIGQUIT_AND_REMOVE_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT Case = 11
  255. // SIGQUIT_AND_REMOVE_LEADER stops the active leader node, deletes its
  256. // data directories on disk, and removes this member from cluster.
  257. // On recovery, tester adds a new member, and this member joins the
  258. // existing cluster with fresh data. It waits "delay-ms" before
  259. // recovering this failure. This simulates destroying a leader machine,
  260. // where operator needs to add a new member from a fresh machine.
  261. // The expected behavior is that a new member joins the existing cluster,
  262. // and then each member continues to process client requests.
  263. Case_SIGQUIT_AND_REMOVE_LEADER Case = 12
  264. // SIGQUIT_AND_REMOVE_LEADER_UNTIL_TRIGGER_SNAPSHOT stops the active leader,
  265. // deletes its data directories on disk, and removes this member from
  266. // cluster (membership reconfiguration). On recovery, tester adds a new
  267. // member, and this member joins the existing cluster restart. On member
  268. // remove, cluster waits until most up-to-date node (new leader) applies
  269. // the snapshot count of entries since the stop operation. This simulates
  270. // destroying a leader machine, where operator needs to add a new member
  271. // from a fresh machine.
  272. // The expected behavior is that on member remove, cluster elects a new
  273. // leader, and a new member joins the existing cluster and receives a
  274. // snapshot from the newly elected leader. As always, after recovery, each
  275. // member must be able to process client requests.
  276. Case_SIGQUIT_AND_REMOVE_LEADER_UNTIL_TRIGGER_SNAPSHOT Case = 13
  277. // SIGQUIT_AND_REMOVE_QUORUM_AND_RESTORE_LEADER_SNAPSHOT_FROM_SCRATCH first
  278. // stops majority number of nodes, deletes data directories on those quorum
  279. // nodes, to make the whole cluster inoperable. Now that quorum and their
  280. // data are totally destroyed, cluster cannot even remove unavailable nodes
  281. // (e.g. 2 out of 3 are lost, so no leader can be elected).
  282. // Let's assume 3-node cluster of node A, B, and C. One day, node A and B
  283. // are destroyed and all their data are gone. The only viable solution is
  284. // to recover from C's latest snapshot.
  285. //
  286. // To simulate:
  287. // 1. Assume node C is the current leader with most up-to-date data.
  288. // 2. Download snapshot from node C, before destroying node A and B.
  289. // 3. Destroy node A and B, and make the whole cluster inoperable.
  290. // 4. Now node C cannot operate either.
  291. // 5. SIGTERM node C and remove its data directories.
  292. // 6. Restore a new seed member from node C's latest snapshot file.
  293. // 7. Add another member to establish 2-node cluster.
  294. // 8. Add another member to establish 3-node cluster.
  295. // 9. Add more if any.
  296. //
  297. // The expected behavior is that etcd successfully recovers from such
  298. // disastrous situation as only 1-node survives out of 3-node cluster,
  299. // new members joins the existing cluster, and previous data from snapshot
  300. // are still preserved after recovery process. As always, after recovery,
  301. // each member must be able to process client requests.
  302. Case_SIGQUIT_AND_REMOVE_QUORUM_AND_RESTORE_LEADER_SNAPSHOT_FROM_SCRATCH Case = 14
  303. // BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER drops all outgoing/incoming
  304. // packets from/to the peer port on a randomly chosen follower
  305. // (non-leader), and waits for "delay-ms" until recovery.
  306. // The expected behavior is that once dropping operation is undone,
  307. // each member must be able to process client requests.
  308. Case_BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER Case = 100
  309. // BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT drops
  310. // all outgoing/incoming packets from/to the peer port on a randomly
  311. // chosen follower (non-leader), and waits for most up-to-date node
  312. // (leader) applies the snapshot count of entries since the blackhole
  313. // operation.
  314. // The expected behavior is that once packet drop operation is undone,
  315. // the slow follower tries to catch up, possibly receiving the snapshot
  316. // from the active leader. As always, after recovery, each member must
  317. // be able to process client requests.
  318. Case_BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT Case = 101
  319. // BLACKHOLE_PEER_PORT_TX_RX_LEADER drops all outgoing/incoming packets
  320. // from/to the peer port on the active leader (isolated), and waits for
  321. // "delay-ms" until recovery, in order to trigger election timeout.
  322. // The expected behavior is that after election timeout, a new leader gets
  323. // elected, and once dropping operation is undone, the old leader comes
  324. // back and rejoins the cluster as a follower. As always, after recovery,
  325. // each member must be able to process client requests.
  326. Case_BLACKHOLE_PEER_PORT_TX_RX_LEADER Case = 102
  327. // BLACKHOLE_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT drops all
  328. // outgoing/incoming packets from/to the peer port on the active leader,
  329. // and waits for most up-to-date node (leader) applies the snapshot
  330. // count of entries since the blackhole operation.
  331. // The expected behavior is that cluster elects a new leader, and once
  332. // dropping operation is undone, the old leader comes back and rejoins
  333. // the cluster as a follower. The slow follower tries to catch up, likely
  334. // receiving the snapshot from the new active leader. As always, after
  335. // recovery, each member must be able to process client requests.
  336. Case_BLACKHOLE_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT Case = 103
  337. // BLACKHOLE_PEER_PORT_TX_RX_QUORUM drops all outgoing/incoming packets
  338. // from/to the peer ports on majority nodes of cluster, thus losing its
  339. // leader and cluster being inoperable. And it waits for "delay-ms"
  340. // until recovery.
  341. // The expected behavior is that once packet drop operation is undone,
  342. // nodes come back online, thus cluster comes back operative. As always,
  343. // after recovery, each member must be able to process client requests.
  344. Case_BLACKHOLE_PEER_PORT_TX_RX_QUORUM Case = 104
  345. // BLACKHOLE_PEER_PORT_TX_RX_ALL drops all outgoing/incoming packets
  346. // from/to the peer ports on all nodes, thus making cluster totally
  347. // inoperable. It waits for "delay-ms" until recovery.
  348. // The expected behavior is that once packet drop operation is undone,
  349. // nodes come back online, thus cluster comes back operative. As always,
  350. // after recovery, each member must be able to process client requests.
  351. Case_BLACKHOLE_PEER_PORT_TX_RX_ALL Case = 105
  352. // DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER delays outgoing/incoming packets
  353. // from/to the peer port on a randomly chosen follower (non-leader).
  354. // It waits for "delay-ms" until recovery.
  355. // The expected behavior is that once packet delay operation is undone,
  356. // the follower comes back and tries to catch up with latest changes from
  357. // cluster. And as always, after recovery, each member must be able to
  358. // process client requests.
  359. Case_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER Case = 200
  360. // RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER delays outgoing/incoming
  361. // packets from/to the peer port on a randomly chosen follower
  362. // (non-leader) with a randomized time duration (thus isolated). It
  363. // waits for "delay-ms" until recovery.
  364. // The expected behavior is that once packet delay operation is undone,
  365. // each member must be able to process client requests.
  366. Case_RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER Case = 201
  367. // DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT delays
  368. // outgoing/incoming packets from/to the peer port on a randomly chosen
  369. // follower (non-leader), and waits for most up-to-date node (leader)
  370. // applies the snapshot count of entries since the delay operation.
  371. // The expected behavior is that the delayed follower gets isolated
  372. // and behind the current active leader, and once delay operation is undone,
  373. // the slow follower comes back and catches up possibly receiving snapshot
  374. // from the active leader. As always, after recovery, each member must be
  375. // able to process client requests.
  376. Case_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT Case = 202
  377. // RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT delays
  378. // outgoing/incoming packets from/to the peer port on a randomly chosen
  379. // follower (non-leader) with a randomized time duration, and waits for
  380. // most up-to-date node (leader) applies the snapshot count of entries
  381. // since the delay operation.
  382. // The expected behavior is that the delayed follower gets isolated
  383. // and behind the current active leader, and once delay operation is undone,
  384. // the slow follower comes back and catches up, possibly receiving a
  385. // snapshot from the active leader. As always, after recovery, each member
  386. // must be able to process client requests.
  387. Case_RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT Case = 203
  388. // DELAY_PEER_PORT_TX_RX_LEADER delays outgoing/incoming packets from/to
  389. // the peer port on the active leader. And waits for "delay-ms" until
  390. // recovery.
  391. // The expected behavior is that cluster may elect a new leader, and
  392. // once packet delay operation is undone, the (old) leader comes back
  393. // and tries to catch up with latest changes from cluster. As always,
  394. // after recovery, each member must be able to process client requests.
  395. Case_DELAY_PEER_PORT_TX_RX_LEADER Case = 204
  396. // RANDOM_DELAY_PEER_PORT_TX_RX_LEADER delays outgoing/incoming packets
  397. // from/to the peer port on the active leader with a randomized time
  398. // duration. And waits for "delay-ms" until recovery.
  399. // The expected behavior is that cluster may elect a new leader, and
  400. // once packet delay operation is undone, the (old) leader comes back
  401. // and tries to catch up with latest changes from cluster. As always,
  402. // after recovery, each member must be able to process client requests.
  403. Case_RANDOM_DELAY_PEER_PORT_TX_RX_LEADER Case = 205
  404. // DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT delays
  405. // outgoing/incoming packets from/to the peer port on the active leader,
  406. // and waits for most up-to-date node (current or new leader) applies the
  407. // snapshot count of entries since the delay operation.
  408. // The expected behavior is that cluster may elect a new leader, and
  409. // the old leader gets isolated and behind the current active leader,
  410. // and once delay operation is undone, the slow follower comes back
  411. // and catches up, likely receiving a snapshot from the active leader.
  412. // As always, after recovery, each member must be able to process client
  413. // requests.
  414. Case_DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT Case = 206
  415. // RANDOM_DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT delays
  416. // outgoing/incoming packets from/to the peer port on the active leader,
  417. // with a randomized time duration. And it waits for most up-to-date node
  418. // (current or new leader) applies the snapshot count of entries since the
  419. // delay operation.
  420. // The expected behavior is that cluster may elect a new leader, and
  421. // the old leader gets isolated and behind the current active leader,
  422. // and once delay operation is undone, the slow follower comes back
  423. // and catches up, likely receiving a snapshot from the active leader.
  424. // As always, after recovery, each member must be able to process client
  425. // requests.
  426. Case_RANDOM_DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT Case = 207
  427. // DELAY_PEER_PORT_TX_RX_QUORUM delays outgoing/incoming packets from/to
  428. // the peer ports on majority nodes of cluster. And it waits for
  429. // "delay-ms" until recovery, likely to trigger election timeouts.
  430. // The expected behavior is that cluster may elect a new leader, while
  431. // quorum of nodes struggle with slow networks, and once delay operation
  432. // is undone, nodes come back and cluster comes back operative. As always,
  433. // after recovery, each member must be able to process client requests.
  434. Case_DELAY_PEER_PORT_TX_RX_QUORUM Case = 208
  435. // RANDOM_DELAY_PEER_PORT_TX_RX_QUORUM delays outgoing/incoming packets
  436. // from/to the peer ports on majority nodes of cluster, with randomized
  437. // time durations. And it waits for "delay-ms" until recovery, likely
  438. // to trigger election timeouts.
  439. // The expected behavior is that cluster may elect a new leader, while
  440. // quorum of nodes struggle with slow networks, and once delay operation
  441. // is undone, nodes come back and cluster comes back operative. As always,
  442. // after recovery, each member must be able to process client requests.
  443. Case_RANDOM_DELAY_PEER_PORT_TX_RX_QUORUM Case = 209
  444. // DELAY_PEER_PORT_TX_RX_ALL delays outgoing/incoming packets from/to the
  445. // peer ports on all nodes. And it waits for "delay-ms" until recovery,
  446. // likely to trigger election timeouts.
  447. // The expected behavior is that cluster may become totally inoperable,
  448. // struggling with slow networks across the whole cluster. Once delay
  449. // operation is undone, nodes come back and cluster comes back operative.
  450. // As always, after recovery, each member must be able to process client
  451. // requests.
  452. Case_DELAY_PEER_PORT_TX_RX_ALL Case = 210
  453. // RANDOM_DELAY_PEER_PORT_TX_RX_ALL delays outgoing/incoming packets
  454. // from/to the peer ports on all nodes, with randomized time durations.
  455. // And it waits for "delay-ms" until recovery, likely to trigger
  456. // election timeouts.
  457. // The expected behavior is that cluster may become totally inoperable,
  458. // struggling with slow networks across the whole cluster. Once delay
  459. // operation is undone, nodes come back and cluster comes back operative.
  460. // As always, after recovery, each member must be able to process client
  461. // requests.
  462. Case_RANDOM_DELAY_PEER_PORT_TX_RX_ALL Case = 211
  463. // NO_FAIL_WITH_STRESS stops injecting failures while testing the
  464. // consistency and correctness under pressure loads, for the duration of
  465. // "delay-ms". Goal is to ensure cluster be still making progress
  466. // on recovery, and verify system does not deadlock following a sequence
  467. // of failure injections.
  468. // The expected behavior is that cluster remains fully operative in healthy
  469. // condition. As always, after recovery, each member must be able to process
  470. // client requests.
  471. Case_NO_FAIL_WITH_STRESS Case = 300
  472. // NO_FAIL_WITH_NO_STRESS_FOR_LIVENESS neither injects failures nor
  473. // sends stressig client requests to the cluster, for the duration of
  474. // "delay-ms". Goal is to ensure cluster be still making progress
  475. // on recovery, and verify system does not deadlock following a sequence
  476. // of failure injections.
  477. // The expected behavior is that cluster remains fully operative in healthy
  478. // condition, and clients requests during liveness period succeed without
  479. // errors.
  480. // Note: this is how Google Chubby does failure injection testing
  481. // https://static.googleusercontent.com/media/research.google.com/en//archive/paxos_made_live.pdf.
  482. Case_NO_FAIL_WITH_NO_STRESS_FOR_LIVENESS Case = 301
  483. // FAILPOINTS injects failpoints to etcd server runtime, triggering panics
  484. // in critical code paths.
  485. Case_FAILPOINTS Case = 400
  486. // EXTERNAL runs external failure injection scripts.
  487. Case_EXTERNAL Case = 500
  488. )
  489. var Case_name = map[int32]string{
  490. 0: "SIGTERM_ONE_FOLLOWER",
  491. 1: "SIGTERM_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT",
  492. 2: "SIGTERM_LEADER",
  493. 3: "SIGTERM_LEADER_UNTIL_TRIGGER_SNAPSHOT",
  494. 4: "SIGTERM_QUORUM",
  495. 5: "SIGTERM_ALL",
  496. 10: "SIGQUIT_AND_REMOVE_ONE_FOLLOWER",
  497. 11: "SIGQUIT_AND_REMOVE_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT",
  498. 12: "SIGQUIT_AND_REMOVE_LEADER",
  499. 13: "SIGQUIT_AND_REMOVE_LEADER_UNTIL_TRIGGER_SNAPSHOT",
  500. 14: "SIGQUIT_AND_REMOVE_QUORUM_AND_RESTORE_LEADER_SNAPSHOT_FROM_SCRATCH",
  501. 100: "BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER",
  502. 101: "BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT",
  503. 102: "BLACKHOLE_PEER_PORT_TX_RX_LEADER",
  504. 103: "BLACKHOLE_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT",
  505. 104: "BLACKHOLE_PEER_PORT_TX_RX_QUORUM",
  506. 105: "BLACKHOLE_PEER_PORT_TX_RX_ALL",
  507. 200: "DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER",
  508. 201: "RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER",
  509. 202: "DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT",
  510. 203: "RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT",
  511. 204: "DELAY_PEER_PORT_TX_RX_LEADER",
  512. 205: "RANDOM_DELAY_PEER_PORT_TX_RX_LEADER",
  513. 206: "DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT",
  514. 207: "RANDOM_DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT",
  515. 208: "DELAY_PEER_PORT_TX_RX_QUORUM",
  516. 209: "RANDOM_DELAY_PEER_PORT_TX_RX_QUORUM",
  517. 210: "DELAY_PEER_PORT_TX_RX_ALL",
  518. 211: "RANDOM_DELAY_PEER_PORT_TX_RX_ALL",
  519. 300: "NO_FAIL_WITH_STRESS",
  520. 301: "NO_FAIL_WITH_NO_STRESS_FOR_LIVENESS",
  521. 400: "FAILPOINTS",
  522. 500: "EXTERNAL",
  523. }
  524. var Case_value = map[string]int32{
  525. "SIGTERM_ONE_FOLLOWER": 0,
  526. "SIGTERM_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT": 1,
  527. "SIGTERM_LEADER": 2,
  528. "SIGTERM_LEADER_UNTIL_TRIGGER_SNAPSHOT": 3,
  529. "SIGTERM_QUORUM": 4,
  530. "SIGTERM_ALL": 5,
  531. "SIGQUIT_AND_REMOVE_ONE_FOLLOWER": 10,
  532. "SIGQUIT_AND_REMOVE_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT": 11,
  533. "SIGQUIT_AND_REMOVE_LEADER": 12,
  534. "SIGQUIT_AND_REMOVE_LEADER_UNTIL_TRIGGER_SNAPSHOT": 13,
  535. "SIGQUIT_AND_REMOVE_QUORUM_AND_RESTORE_LEADER_SNAPSHOT_FROM_SCRATCH": 14,
  536. "BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER": 100,
  537. "BLACKHOLE_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT": 101,
  538. "BLACKHOLE_PEER_PORT_TX_RX_LEADER": 102,
  539. "BLACKHOLE_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT": 103,
  540. "BLACKHOLE_PEER_PORT_TX_RX_QUORUM": 104,
  541. "BLACKHOLE_PEER_PORT_TX_RX_ALL": 105,
  542. "DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER": 200,
  543. "RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER": 201,
  544. "DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT": 202,
  545. "RANDOM_DELAY_PEER_PORT_TX_RX_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT": 203,
  546. "DELAY_PEER_PORT_TX_RX_LEADER": 204,
  547. "RANDOM_DELAY_PEER_PORT_TX_RX_LEADER": 205,
  548. "DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT": 206,
  549. "RANDOM_DELAY_PEER_PORT_TX_RX_LEADER_UNTIL_TRIGGER_SNAPSHOT": 207,
  550. "DELAY_PEER_PORT_TX_RX_QUORUM": 208,
  551. "RANDOM_DELAY_PEER_PORT_TX_RX_QUORUM": 209,
  552. "DELAY_PEER_PORT_TX_RX_ALL": 210,
  553. "RANDOM_DELAY_PEER_PORT_TX_RX_ALL": 211,
  554. "NO_FAIL_WITH_STRESS": 300,
  555. "NO_FAIL_WITH_NO_STRESS_FOR_LIVENESS": 301,
  556. "FAILPOINTS": 400,
  557. "EXTERNAL": 500,
  558. }
  559. func (x Case) String() string {
  560. return proto.EnumName(Case_name, int32(x))
  561. }
  562. func (Case) EnumDescriptor() ([]byte, []int) {
  563. return fileDescriptor_4fbc93a8dcc3881e, []int{3}
  564. }
  565. type Request struct {
  566. Operation Operation `protobuf:"varint,1,opt,name=Operation,proto3,enum=rpcpb.Operation" json:"Operation,omitempty"`
  567. // Member contains the same Member object from tester configuration.
  568. Member *Member `protobuf:"bytes,2,opt,name=Member,proto3" json:"Member,omitempty"`
  569. // Tester contains tester configuration.
  570. Tester *Tester `protobuf:"bytes,3,opt,name=Tester,proto3" json:"Tester,omitempty"`
  571. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  572. XXX_unrecognized []byte `json:"-"`
  573. XXX_sizecache int32 `json:"-"`
  574. }
  575. func (m *Request) Reset() { *m = Request{} }
  576. func (m *Request) String() string { return proto.CompactTextString(m) }
  577. func (*Request) ProtoMessage() {}
  578. func (*Request) Descriptor() ([]byte, []int) {
  579. return fileDescriptor_4fbc93a8dcc3881e, []int{0}
  580. }
  581. func (m *Request) XXX_Unmarshal(b []byte) error {
  582. return m.Unmarshal(b)
  583. }
  584. func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  585. if deterministic {
  586. return xxx_messageInfo_Request.Marshal(b, m, deterministic)
  587. } else {
  588. b = b[:cap(b)]
  589. n, err := m.MarshalToSizedBuffer(b)
  590. if err != nil {
  591. return nil, err
  592. }
  593. return b[:n], nil
  594. }
  595. }
  596. func (m *Request) XXX_Merge(src proto.Message) {
  597. xxx_messageInfo_Request.Merge(m, src)
  598. }
  599. func (m *Request) XXX_Size() int {
  600. return m.Size()
  601. }
  602. func (m *Request) XXX_DiscardUnknown() {
  603. xxx_messageInfo_Request.DiscardUnknown(m)
  604. }
  605. var xxx_messageInfo_Request proto.InternalMessageInfo
  606. // SnapshotInfo contains SAVE_SNAPSHOT request results.
  607. type SnapshotInfo struct {
  608. MemberName string `protobuf:"bytes,1,opt,name=MemberName,proto3" json:"MemberName,omitempty"`
  609. MemberClientURLs []string `protobuf:"bytes,2,rep,name=MemberClientURLs,proto3" json:"MemberClientURLs,omitempty"`
  610. SnapshotPath string `protobuf:"bytes,3,opt,name=SnapshotPath,proto3" json:"SnapshotPath,omitempty"`
  611. SnapshotFileSize string `protobuf:"bytes,4,opt,name=SnapshotFileSize,proto3" json:"SnapshotFileSize,omitempty"`
  612. SnapshotTotalSize string `protobuf:"bytes,5,opt,name=SnapshotTotalSize,proto3" json:"SnapshotTotalSize,omitempty"`
  613. SnapshotTotalKey int64 `protobuf:"varint,6,opt,name=SnapshotTotalKey,proto3" json:"SnapshotTotalKey,omitempty"`
  614. SnapshotHash int64 `protobuf:"varint,7,opt,name=SnapshotHash,proto3" json:"SnapshotHash,omitempty"`
  615. SnapshotRevision int64 `protobuf:"varint,8,opt,name=SnapshotRevision,proto3" json:"SnapshotRevision,omitempty"`
  616. Took string `protobuf:"bytes,9,opt,name=Took,proto3" json:"Took,omitempty"`
  617. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  618. XXX_unrecognized []byte `json:"-"`
  619. XXX_sizecache int32 `json:"-"`
  620. }
  621. func (m *SnapshotInfo) Reset() { *m = SnapshotInfo{} }
  622. func (m *SnapshotInfo) String() string { return proto.CompactTextString(m) }
  623. func (*SnapshotInfo) ProtoMessage() {}
  624. func (*SnapshotInfo) Descriptor() ([]byte, []int) {
  625. return fileDescriptor_4fbc93a8dcc3881e, []int{1}
  626. }
  627. func (m *SnapshotInfo) XXX_Unmarshal(b []byte) error {
  628. return m.Unmarshal(b)
  629. }
  630. func (m *SnapshotInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  631. if deterministic {
  632. return xxx_messageInfo_SnapshotInfo.Marshal(b, m, deterministic)
  633. } else {
  634. b = b[:cap(b)]
  635. n, err := m.MarshalToSizedBuffer(b)
  636. if err != nil {
  637. return nil, err
  638. }
  639. return b[:n], nil
  640. }
  641. }
  642. func (m *SnapshotInfo) XXX_Merge(src proto.Message) {
  643. xxx_messageInfo_SnapshotInfo.Merge(m, src)
  644. }
  645. func (m *SnapshotInfo) XXX_Size() int {
  646. return m.Size()
  647. }
  648. func (m *SnapshotInfo) XXX_DiscardUnknown() {
  649. xxx_messageInfo_SnapshotInfo.DiscardUnknown(m)
  650. }
  651. var xxx_messageInfo_SnapshotInfo proto.InternalMessageInfo
  652. type Response struct {
  653. Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
  654. Status string `protobuf:"bytes,2,opt,name=Status,proto3" json:"Status,omitempty"`
  655. // Member contains the same Member object from tester request.
  656. Member *Member `protobuf:"bytes,3,opt,name=Member,proto3" json:"Member,omitempty"`
  657. // SnapshotInfo contains SAVE_SNAPSHOT request results.
  658. SnapshotInfo *SnapshotInfo `protobuf:"bytes,4,opt,name=SnapshotInfo,proto3" json:"SnapshotInfo,omitempty"`
  659. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  660. XXX_unrecognized []byte `json:"-"`
  661. XXX_sizecache int32 `json:"-"`
  662. }
  663. func (m *Response) Reset() { *m = Response{} }
  664. func (m *Response) String() string { return proto.CompactTextString(m) }
  665. func (*Response) ProtoMessage() {}
  666. func (*Response) Descriptor() ([]byte, []int) {
  667. return fileDescriptor_4fbc93a8dcc3881e, []int{2}
  668. }
  669. func (m *Response) XXX_Unmarshal(b []byte) error {
  670. return m.Unmarshal(b)
  671. }
  672. func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  673. if deterministic {
  674. return xxx_messageInfo_Response.Marshal(b, m, deterministic)
  675. } else {
  676. b = b[:cap(b)]
  677. n, err := m.MarshalToSizedBuffer(b)
  678. if err != nil {
  679. return nil, err
  680. }
  681. return b[:n], nil
  682. }
  683. }
  684. func (m *Response) XXX_Merge(src proto.Message) {
  685. xxx_messageInfo_Response.Merge(m, src)
  686. }
  687. func (m *Response) XXX_Size() int {
  688. return m.Size()
  689. }
  690. func (m *Response) XXX_DiscardUnknown() {
  691. xxx_messageInfo_Response.DiscardUnknown(m)
  692. }
  693. var xxx_messageInfo_Response proto.InternalMessageInfo
  694. type Member struct {
  695. // EtcdExec is the executable etcd binary path in agent server.
  696. EtcdExec string `protobuf:"bytes,1,opt,name=EtcdExec,proto3" json:"EtcdExec,omitempty" yaml:"etcd-exec"`
  697. // AgentAddr is the agent HTTP server address.
  698. AgentAddr string `protobuf:"bytes,11,opt,name=AgentAddr,proto3" json:"AgentAddr,omitempty" yaml:"agent-addr"`
  699. // FailpointHTTPAddr is the agent's failpoints HTTP server address.
  700. FailpointHTTPAddr string `protobuf:"bytes,12,opt,name=FailpointHTTPAddr,proto3" json:"FailpointHTTPAddr,omitempty" yaml:"failpoint-http-addr"`
  701. // BaseDir is the base directory where all logs and etcd data are stored.
  702. BaseDir string `protobuf:"bytes,101,opt,name=BaseDir,proto3" json:"BaseDir,omitempty" yaml:"base-dir"`
  703. // EtcdClientProxy is true when client traffic needs to be proxied.
  704. // If true, listen client URL port must be different than advertise client URL port.
  705. EtcdClientProxy bool `protobuf:"varint,201,opt,name=EtcdClientProxy,proto3" json:"EtcdClientProxy,omitempty" yaml:"etcd-client-proxy"`
  706. // EtcdPeerProxy is true when peer traffic needs to be proxied.
  707. // If true, listen peer URL port must be different than advertise peer URL port.
  708. EtcdPeerProxy bool `protobuf:"varint,202,opt,name=EtcdPeerProxy,proto3" json:"EtcdPeerProxy,omitempty" yaml:"etcd-peer-proxy"`
  709. // EtcdClientEndpoint is the etcd client endpoint.
  710. EtcdClientEndpoint string `protobuf:"bytes,301,opt,name=EtcdClientEndpoint,proto3" json:"EtcdClientEndpoint,omitempty" yaml:"etcd-client-endpoint"`
  711. // Etcd defines etcd binary configuration flags.
  712. Etcd *Etcd `protobuf:"bytes,302,opt,name=Etcd,proto3" json:"Etcd,omitempty" yaml:"etcd"`
  713. // EtcdOnSnapshotRestore defines one-time use configuration during etcd
  714. // snapshot recovery process.
  715. EtcdOnSnapshotRestore *Etcd `protobuf:"bytes,303,opt,name=EtcdOnSnapshotRestore,proto3" json:"EtcdOnSnapshotRestore,omitempty"`
  716. // ClientCertData contains cert file contents from this member's etcd server.
  717. ClientCertData string `protobuf:"bytes,401,opt,name=ClientCertData,proto3" json:"ClientCertData,omitempty" yaml:"client-cert-data"`
  718. ClientCertPath string `protobuf:"bytes,402,opt,name=ClientCertPath,proto3" json:"ClientCertPath,omitempty" yaml:"client-cert-path"`
  719. // ClientKeyData contains key file contents from this member's etcd server.
  720. ClientKeyData string `protobuf:"bytes,403,opt,name=ClientKeyData,proto3" json:"ClientKeyData,omitempty" yaml:"client-key-data"`
  721. ClientKeyPath string `protobuf:"bytes,404,opt,name=ClientKeyPath,proto3" json:"ClientKeyPath,omitempty" yaml:"client-key-path"`
  722. // ClientTrustedCAData contains trusted CA file contents from this member's etcd server.
  723. ClientTrustedCAData string `protobuf:"bytes,405,opt,name=ClientTrustedCAData,proto3" json:"ClientTrustedCAData,omitempty" yaml:"client-trusted-ca-data"`
  724. ClientTrustedCAPath string `protobuf:"bytes,406,opt,name=ClientTrustedCAPath,proto3" json:"ClientTrustedCAPath,omitempty" yaml:"client-trusted-ca-path"`
  725. // PeerCertData contains cert file contents from this member's etcd server.
  726. PeerCertData string `protobuf:"bytes,501,opt,name=PeerCertData,proto3" json:"PeerCertData,omitempty" yaml:"peer-cert-data"`
  727. PeerCertPath string `protobuf:"bytes,502,opt,name=PeerCertPath,proto3" json:"PeerCertPath,omitempty" yaml:"peer-cert-path"`
  728. // PeerKeyData contains key file contents from this member's etcd server.
  729. PeerKeyData string `protobuf:"bytes,503,opt,name=PeerKeyData,proto3" json:"PeerKeyData,omitempty" yaml:"peer-key-data"`
  730. PeerKeyPath string `protobuf:"bytes,504,opt,name=PeerKeyPath,proto3" json:"PeerKeyPath,omitempty" yaml:"peer-key-path"`
  731. // PeerTrustedCAData contains trusted CA file contents from this member's etcd server.
  732. PeerTrustedCAData string `protobuf:"bytes,505,opt,name=PeerTrustedCAData,proto3" json:"PeerTrustedCAData,omitempty" yaml:"peer-trusted-ca-data"`
  733. PeerTrustedCAPath string `protobuf:"bytes,506,opt,name=PeerTrustedCAPath,proto3" json:"PeerTrustedCAPath,omitempty" yaml:"peer-trusted-ca-path"`
  734. // SnapshotPath is the snapshot file path to store or restore from.
  735. SnapshotPath string `protobuf:"bytes,601,opt,name=SnapshotPath,proto3" json:"SnapshotPath,omitempty" yaml:"snapshot-path"`
  736. // SnapshotInfo contains last SAVE_SNAPSHOT request results.
  737. SnapshotInfo *SnapshotInfo `protobuf:"bytes,602,opt,name=SnapshotInfo,proto3" json:"SnapshotInfo,omitempty"`
  738. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  739. XXX_unrecognized []byte `json:"-"`
  740. XXX_sizecache int32 `json:"-"`
  741. }
  742. func (m *Member) Reset() { *m = Member{} }
  743. func (m *Member) String() string { return proto.CompactTextString(m) }
  744. func (*Member) ProtoMessage() {}
  745. func (*Member) Descriptor() ([]byte, []int) {
  746. return fileDescriptor_4fbc93a8dcc3881e, []int{3}
  747. }
  748. func (m *Member) XXX_Unmarshal(b []byte) error {
  749. return m.Unmarshal(b)
  750. }
  751. func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  752. if deterministic {
  753. return xxx_messageInfo_Member.Marshal(b, m, deterministic)
  754. } else {
  755. b = b[:cap(b)]
  756. n, err := m.MarshalToSizedBuffer(b)
  757. if err != nil {
  758. return nil, err
  759. }
  760. return b[:n], nil
  761. }
  762. }
  763. func (m *Member) XXX_Merge(src proto.Message) {
  764. xxx_messageInfo_Member.Merge(m, src)
  765. }
  766. func (m *Member) XXX_Size() int {
  767. return m.Size()
  768. }
  769. func (m *Member) XXX_DiscardUnknown() {
  770. xxx_messageInfo_Member.DiscardUnknown(m)
  771. }
  772. var xxx_messageInfo_Member proto.InternalMessageInfo
  773. type Tester struct {
  774. DataDir string `protobuf:"bytes,1,opt,name=DataDir,proto3" json:"DataDir,omitempty" yaml:"data-dir"`
  775. Network string `protobuf:"bytes,2,opt,name=Network,proto3" json:"Network,omitempty" yaml:"network"`
  776. Addr string `protobuf:"bytes,3,opt,name=Addr,proto3" json:"Addr,omitempty" yaml:"addr"`
  777. // DelayLatencyMsRv is the delay latency in milliseconds,
  778. // to inject to simulated slow network.
  779. DelayLatencyMs uint32 `protobuf:"varint,11,opt,name=DelayLatencyMs,proto3" json:"DelayLatencyMs,omitempty" yaml:"delay-latency-ms"`
  780. // DelayLatencyMsRv is the delay latency random variable in milliseconds.
  781. DelayLatencyMsRv uint32 `protobuf:"varint,12,opt,name=DelayLatencyMsRv,proto3" json:"DelayLatencyMsRv,omitempty" yaml:"delay-latency-ms-rv"`
  782. // UpdatedDelayLatencyMs is the update delay latency in milliseconds,
  783. // to inject to simulated slow network. It's the final latency to apply,
  784. // in case the latency numbers are randomly generated from given delay latency field.
  785. UpdatedDelayLatencyMs uint32 `protobuf:"varint,13,opt,name=UpdatedDelayLatencyMs,proto3" json:"UpdatedDelayLatencyMs,omitempty" yaml:"updated-delay-latency-ms"`
  786. // RoundLimit is the limit of rounds to run failure set (-1 to run without limits).
  787. RoundLimit int32 `protobuf:"varint,21,opt,name=RoundLimit,proto3" json:"RoundLimit,omitempty" yaml:"round-limit"`
  788. // ExitOnCaseFail is true, then exit tester on first failure.
  789. ExitOnCaseFail bool `protobuf:"varint,22,opt,name=ExitOnCaseFail,proto3" json:"ExitOnCaseFail,omitempty" yaml:"exit-on-failure"`
  790. // EnablePprof is true to enable profiler.
  791. EnablePprof bool `protobuf:"varint,23,opt,name=EnablePprof,proto3" json:"EnablePprof,omitempty" yaml:"enable-pprof"`
  792. // CaseDelayMs is the delay duration after failure is injected.
  793. // Useful when triggering snapshot or no-op failure cases.
  794. CaseDelayMs uint32 `protobuf:"varint,31,opt,name=CaseDelayMs,proto3" json:"CaseDelayMs,omitempty" yaml:"case-delay-ms"`
  795. // CaseShuffle is true to randomize failure injecting order.
  796. CaseShuffle bool `protobuf:"varint,32,opt,name=CaseShuffle,proto3" json:"CaseShuffle,omitempty" yaml:"case-shuffle"`
  797. // Cases is the selected test cases to schedule.
  798. // If empty, run all failure cases.
  799. Cases []string `protobuf:"bytes,33,rep,name=Cases,proto3" json:"Cases,omitempty" yaml:"cases"`
  800. // FailpointCommands is the list of "gofail" commands
  801. // (e.g. panic("etcd-tester"),1*sleep(1000).
  802. FailpointCommands []string `protobuf:"bytes,34,rep,name=FailpointCommands,proto3" json:"FailpointCommands,omitempty" yaml:"failpoint-commands"`
  803. // RunnerExecPath is a path of etcd-runner binary.
  804. RunnerExecPath string `protobuf:"bytes,41,opt,name=RunnerExecPath,proto3" json:"RunnerExecPath,omitempty" yaml:"runner-exec-path"`
  805. // ExternalExecPath is a path of script for enabling/disabling an external fault injector.
  806. ExternalExecPath string `protobuf:"bytes,42,opt,name=ExternalExecPath,proto3" json:"ExternalExecPath,omitempty" yaml:"external-exec-path"`
  807. // Stressers is the list of stresser types:
  808. // KV, LEASE, ELECTION_RUNNER, WATCH_RUNNER, LOCK_RACER_RUNNER, LEASE_RUNNER.
  809. Stressers []*Stresser `protobuf:"bytes,101,rep,name=Stressers,proto3" json:"Stressers,omitempty" yaml:"stressers"`
  810. // Checkers is the list of consistency checker types:
  811. // KV_HASH, LEASE_EXPIRE, NO_CHECK, RUNNER.
  812. // Leave empty to skip consistency checks.
  813. Checkers []string `protobuf:"bytes,102,rep,name=Checkers,proto3" json:"Checkers,omitempty" yaml:"checkers"`
  814. // StressKeySize is the size of each small key written into etcd.
  815. StressKeySize int32 `protobuf:"varint,201,opt,name=StressKeySize,proto3" json:"StressKeySize,omitempty" yaml:"stress-key-size"`
  816. // StressKeySizeLarge is the size of each large key written into etcd.
  817. StressKeySizeLarge int32 `protobuf:"varint,202,opt,name=StressKeySizeLarge,proto3" json:"StressKeySizeLarge,omitempty" yaml:"stress-key-size-large"`
  818. // StressKeySuffixRange is the count of key range written into etcd.
  819. // Stress keys are created with "fmt.Sprintf("foo%016x", rand.Intn(keySuffixRange)".
  820. StressKeySuffixRange int32 `protobuf:"varint,203,opt,name=StressKeySuffixRange,proto3" json:"StressKeySuffixRange,omitempty" yaml:"stress-key-suffix-range"`
  821. // StressKeySuffixRangeTxn is the count of key range written into etcd txn (max 100).
  822. // Stress keys are created with "fmt.Sprintf("/k%03d", i)".
  823. StressKeySuffixRangeTxn int32 `protobuf:"varint,204,opt,name=StressKeySuffixRangeTxn,proto3" json:"StressKeySuffixRangeTxn,omitempty" yaml:"stress-key-suffix-range-txn"`
  824. // StressKeyTxnOps is the number of operations per a transaction (max 64).
  825. StressKeyTxnOps int32 `protobuf:"varint,205,opt,name=StressKeyTxnOps,proto3" json:"StressKeyTxnOps,omitempty" yaml:"stress-key-txn-ops"`
  826. // StressClients is the number of concurrent stressing clients
  827. // with "one" shared TCP connection.
  828. StressClients int32 `protobuf:"varint,301,opt,name=StressClients,proto3" json:"StressClients,omitempty" yaml:"stress-clients"`
  829. // StressQPS is the maximum number of stresser requests per second.
  830. StressQPS int32 `protobuf:"varint,302,opt,name=StressQPS,proto3" json:"StressQPS,omitempty" yaml:"stress-qps"`
  831. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  832. XXX_unrecognized []byte `json:"-"`
  833. XXX_sizecache int32 `json:"-"`
  834. }
  835. func (m *Tester) Reset() { *m = Tester{} }
  836. func (m *Tester) String() string { return proto.CompactTextString(m) }
  837. func (*Tester) ProtoMessage() {}
  838. func (*Tester) Descriptor() ([]byte, []int) {
  839. return fileDescriptor_4fbc93a8dcc3881e, []int{4}
  840. }
  841. func (m *Tester) XXX_Unmarshal(b []byte) error {
  842. return m.Unmarshal(b)
  843. }
  844. func (m *Tester) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  845. if deterministic {
  846. return xxx_messageInfo_Tester.Marshal(b, m, deterministic)
  847. } else {
  848. b = b[:cap(b)]
  849. n, err := m.MarshalToSizedBuffer(b)
  850. if err != nil {
  851. return nil, err
  852. }
  853. return b[:n], nil
  854. }
  855. }
  856. func (m *Tester) XXX_Merge(src proto.Message) {
  857. xxx_messageInfo_Tester.Merge(m, src)
  858. }
  859. func (m *Tester) XXX_Size() int {
  860. return m.Size()
  861. }
  862. func (m *Tester) XXX_DiscardUnknown() {
  863. xxx_messageInfo_Tester.DiscardUnknown(m)
  864. }
  865. var xxx_messageInfo_Tester proto.InternalMessageInfo
  866. type Stresser struct {
  867. Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty" yaml:"type"`
  868. Weight float64 `protobuf:"fixed64,2,opt,name=Weight,proto3" json:"Weight,omitempty" yaml:"weight"`
  869. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  870. XXX_unrecognized []byte `json:"-"`
  871. XXX_sizecache int32 `json:"-"`
  872. }
  873. func (m *Stresser) Reset() { *m = Stresser{} }
  874. func (m *Stresser) String() string { return proto.CompactTextString(m) }
  875. func (*Stresser) ProtoMessage() {}
  876. func (*Stresser) Descriptor() ([]byte, []int) {
  877. return fileDescriptor_4fbc93a8dcc3881e, []int{5}
  878. }
  879. func (m *Stresser) XXX_Unmarshal(b []byte) error {
  880. return m.Unmarshal(b)
  881. }
  882. func (m *Stresser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  883. if deterministic {
  884. return xxx_messageInfo_Stresser.Marshal(b, m, deterministic)
  885. } else {
  886. b = b[:cap(b)]
  887. n, err := m.MarshalToSizedBuffer(b)
  888. if err != nil {
  889. return nil, err
  890. }
  891. return b[:n], nil
  892. }
  893. }
  894. func (m *Stresser) XXX_Merge(src proto.Message) {
  895. xxx_messageInfo_Stresser.Merge(m, src)
  896. }
  897. func (m *Stresser) XXX_Size() int {
  898. return m.Size()
  899. }
  900. func (m *Stresser) XXX_DiscardUnknown() {
  901. xxx_messageInfo_Stresser.DiscardUnknown(m)
  902. }
  903. var xxx_messageInfo_Stresser proto.InternalMessageInfo
  904. type Etcd struct {
  905. Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty" yaml:"name"`
  906. DataDir string `protobuf:"bytes,2,opt,name=DataDir,proto3" json:"DataDir,omitempty" yaml:"data-dir"`
  907. WALDir string `protobuf:"bytes,3,opt,name=WALDir,proto3" json:"WALDir,omitempty" yaml:"wal-dir"`
  908. // HeartbeatIntervalMs is the time (in milliseconds) of a heartbeat interval.
  909. // Default value is 100, which is 100ms.
  910. HeartbeatIntervalMs int64 `protobuf:"varint,11,opt,name=HeartbeatIntervalMs,proto3" json:"HeartbeatIntervalMs,omitempty" yaml:"heartbeat-interval"`
  911. // ElectionTimeoutMs is the time (in milliseconds) for an election to timeout.
  912. // Default value is 1000, which is 1s.
  913. ElectionTimeoutMs int64 `protobuf:"varint,12,opt,name=ElectionTimeoutMs,proto3" json:"ElectionTimeoutMs,omitempty" yaml:"election-timeout"`
  914. ListenClientURLs []string `protobuf:"bytes,21,rep,name=ListenClientURLs,proto3" json:"ListenClientURLs,omitempty" yaml:"listen-client-urls"`
  915. AdvertiseClientURLs []string `protobuf:"bytes,22,rep,name=AdvertiseClientURLs,proto3" json:"AdvertiseClientURLs,omitempty" yaml:"advertise-client-urls"`
  916. ClientAutoTLS bool `protobuf:"varint,23,opt,name=ClientAutoTLS,proto3" json:"ClientAutoTLS,omitempty" yaml:"auto-tls"`
  917. ClientCertAuth bool `protobuf:"varint,24,opt,name=ClientCertAuth,proto3" json:"ClientCertAuth,omitempty" yaml:"client-cert-auth"`
  918. ClientCertFile string `protobuf:"bytes,25,opt,name=ClientCertFile,proto3" json:"ClientCertFile,omitempty" yaml:"cert-file"`
  919. ClientKeyFile string `protobuf:"bytes,26,opt,name=ClientKeyFile,proto3" json:"ClientKeyFile,omitempty" yaml:"key-file"`
  920. ClientTrustedCAFile string `protobuf:"bytes,27,opt,name=ClientTrustedCAFile,proto3" json:"ClientTrustedCAFile,omitempty" yaml:"trusted-ca-file"`
  921. ListenPeerURLs []string `protobuf:"bytes,31,rep,name=ListenPeerURLs,proto3" json:"ListenPeerURLs,omitempty" yaml:"listen-peer-urls"`
  922. AdvertisePeerURLs []string `protobuf:"bytes,32,rep,name=AdvertisePeerURLs,proto3" json:"AdvertisePeerURLs,omitempty" yaml:"initial-advertise-peer-urls"`
  923. PeerAutoTLS bool `protobuf:"varint,33,opt,name=PeerAutoTLS,proto3" json:"PeerAutoTLS,omitempty" yaml:"peer-auto-tls"`
  924. PeerClientCertAuth bool `protobuf:"varint,34,opt,name=PeerClientCertAuth,proto3" json:"PeerClientCertAuth,omitempty" yaml:"peer-client-cert-auth"`
  925. PeerCertFile string `protobuf:"bytes,35,opt,name=PeerCertFile,proto3" json:"PeerCertFile,omitempty" yaml:"peer-cert-file"`
  926. PeerKeyFile string `protobuf:"bytes,36,opt,name=PeerKeyFile,proto3" json:"PeerKeyFile,omitempty" yaml:"peer-key-file"`
  927. PeerTrustedCAFile string `protobuf:"bytes,37,opt,name=PeerTrustedCAFile,proto3" json:"PeerTrustedCAFile,omitempty" yaml:"peer-trusted-ca-file"`
  928. InitialCluster string `protobuf:"bytes,41,opt,name=InitialCluster,proto3" json:"InitialCluster,omitempty" yaml:"initial-cluster"`
  929. InitialClusterState string `protobuf:"bytes,42,opt,name=InitialClusterState,proto3" json:"InitialClusterState,omitempty" yaml:"initial-cluster-state"`
  930. InitialClusterToken string `protobuf:"bytes,43,opt,name=InitialClusterToken,proto3" json:"InitialClusterToken,omitempty" yaml:"initial-cluster-token"`
  931. SnapshotCount int64 `protobuf:"varint,51,opt,name=SnapshotCount,proto3" json:"SnapshotCount,omitempty" yaml:"snapshot-count"`
  932. QuotaBackendBytes int64 `protobuf:"varint,52,opt,name=QuotaBackendBytes,proto3" json:"QuotaBackendBytes,omitempty" yaml:"quota-backend-bytes"`
  933. PreVote bool `protobuf:"varint,63,opt,name=PreVote,proto3" json:"PreVote,omitempty" yaml:"pre-vote"`
  934. InitialCorruptCheck bool `protobuf:"varint,64,opt,name=InitialCorruptCheck,proto3" json:"InitialCorruptCheck,omitempty" yaml:"initial-corrupt-check"`
  935. Logger string `protobuf:"bytes,71,opt,name=Logger,proto3" json:"Logger,omitempty" yaml:"logger"`
  936. // LogOutputs is the log file to store current etcd server logs.
  937. LogOutputs []string `protobuf:"bytes,72,rep,name=LogOutputs,proto3" json:"LogOutputs,omitempty" yaml:"log-outputs"`
  938. LogLevel string `protobuf:"bytes,73,opt,name=LogLevel,proto3" json:"LogLevel,omitempty" yaml:"log-level"`
  939. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  940. XXX_unrecognized []byte `json:"-"`
  941. XXX_sizecache int32 `json:"-"`
  942. }
  943. func (m *Etcd) Reset() { *m = Etcd{} }
  944. func (m *Etcd) String() string { return proto.CompactTextString(m) }
  945. func (*Etcd) ProtoMessage() {}
  946. func (*Etcd) Descriptor() ([]byte, []int) {
  947. return fileDescriptor_4fbc93a8dcc3881e, []int{6}
  948. }
  949. func (m *Etcd) XXX_Unmarshal(b []byte) error {
  950. return m.Unmarshal(b)
  951. }
  952. func (m *Etcd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  953. if deterministic {
  954. return xxx_messageInfo_Etcd.Marshal(b, m, deterministic)
  955. } else {
  956. b = b[:cap(b)]
  957. n, err := m.MarshalToSizedBuffer(b)
  958. if err != nil {
  959. return nil, err
  960. }
  961. return b[:n], nil
  962. }
  963. }
  964. func (m *Etcd) XXX_Merge(src proto.Message) {
  965. xxx_messageInfo_Etcd.Merge(m, src)
  966. }
  967. func (m *Etcd) XXX_Size() int {
  968. return m.Size()
  969. }
  970. func (m *Etcd) XXX_DiscardUnknown() {
  971. xxx_messageInfo_Etcd.DiscardUnknown(m)
  972. }
  973. var xxx_messageInfo_Etcd proto.InternalMessageInfo
  974. func init() {
  975. proto.RegisterEnum("rpcpb.StresserType", StresserType_name, StresserType_value)
  976. proto.RegisterEnum("rpcpb.Checker", Checker_name, Checker_value)
  977. proto.RegisterEnum("rpcpb.Operation", Operation_name, Operation_value)
  978. proto.RegisterEnum("rpcpb.Case", Case_name, Case_value)
  979. proto.RegisterType((*Request)(nil), "rpcpb.Request")
  980. proto.RegisterType((*SnapshotInfo)(nil), "rpcpb.SnapshotInfo")
  981. proto.RegisterType((*Response)(nil), "rpcpb.Response")
  982. proto.RegisterType((*Member)(nil), "rpcpb.Member")
  983. proto.RegisterType((*Tester)(nil), "rpcpb.Tester")
  984. proto.RegisterType((*Stresser)(nil), "rpcpb.Stresser")
  985. proto.RegisterType((*Etcd)(nil), "rpcpb.Etcd")
  986. }
  987. func init() { proto.RegisterFile("rpcpb/rpc.proto", fileDescriptor_4fbc93a8dcc3881e) }
  988. var fileDescriptor_4fbc93a8dcc3881e = []byte{
  989. // 2985 bytes of a gzipped FileDescriptorProto
  990. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x59, 0x5b, 0x73, 0xdb, 0xc6,
  991. 0xf5, 0x37, 0x44, 0x49, 0x96, 0x56, 0x37, 0x68, 0x65, 0xd9, 0xf0, 0x4d, 0x90, 0xe1, 0x38, 0x7f,
  992. 0x59, 0x09, 0x6c, 0xff, 0xed, 0x4c, 0x2e, 0x4e, 0x13, 0x07, 0xa4, 0x20, 0x89, 0x25, 0x44, 0xd2,
  993. 0x4b, 0x48, 0x76, 0xfa, 0x82, 0x81, 0xc8, 0x95, 0xc4, 0x31, 0x05, 0x30, 0xc0, 0xd2, 0x91, 0xf2,
  994. 0x05, 0xfa, 0xd6, 0x69, 0xd3, 0xcb, 0xb4, 0x33, 0xfd, 0x08, 0x4d, 0xfb, 0xd0, 0x2f, 0xe1, 0xdc,
  995. 0xda, 0xb4, 0x7d, 0x6a, 0x1f, 0x38, 0x6d, 0xfa, 0xd2, 0xa7, 0x3e, 0x70, 0x7a, 0x7f, 0xe8, 0x74,
  996. 0x76, 0x17, 0x10, 0x17, 0x00, 0x29, 0xfb, 0xc9, 0xc2, 0x39, 0xbf, 0xdf, 0x6f, 0xcf, 0xee, 0xd9,
  997. 0xdd, 0x73, 0xd6, 0x04, 0x73, 0x41, 0xbb, 0xde, 0xde, 0xbd, 0x1d, 0xb4, 0xeb, 0xb7, 0xda, 0x81,
  998. 0x4f, 0x7c, 0x38, 0xc6, 0x0c, 0x97, 0xf4, 0xfd, 0x26, 0x39, 0xe8, 0xec, 0xde, 0xaa, 0xfb, 0x87,
  999. 0xb7, 0xf7, 0xfd, 0x7d, 0xff, 0x36, 0xf3, 0xee, 0x76, 0xf6, 0xd8, 0x17, 0xfb, 0x60, 0x7f, 0x71,
  1000. 0x96, 0xf6, 0x6d, 0x09, 0x9c, 0x45, 0xf8, 0x83, 0x0e, 0x0e, 0x09, 0xbc, 0x05, 0x26, 0x2b, 0x6d,
  1001. 0x1c, 0xb8, 0xa4, 0xe9, 0x7b, 0x8a, 0xb4, 0x2c, 0xad, 0xcc, 0xde, 0x95, 0x6f, 0x31, 0xd5, 0x5b,
  1002. 0x27, 0x76, 0xd4, 0x87, 0xc0, 0x1b, 0x60, 0x7c, 0x0b, 0x1f, 0xee, 0xe2, 0x40, 0x19, 0x59, 0x96,
  1003. 0x56, 0xa6, 0xee, 0xce, 0x44, 0x60, 0x6e, 0x44, 0x91, 0x93, 0xc2, 0x6c, 0x1c, 0x12, 0x1c, 0x28,
  1004. 0xb9, 0x04, 0x8c, 0x1b, 0x51, 0xe4, 0xd4, 0xfe, 0x32, 0x02, 0xa6, 0x6b, 0x9e, 0xdb, 0x0e, 0x0f,
  1005. 0x7c, 0x52, 0xf4, 0xf6, 0x7c, 0xb8, 0x04, 0x00, 0x57, 0x28, 0xbb, 0x87, 0x98, 0xc5, 0x33, 0x89,
  1006. 0x04, 0x0b, 0x5c, 0x05, 0x32, 0xff, 0x2a, 0xb4, 0x9a, 0xd8, 0x23, 0xdb, 0xc8, 0x0a, 0x95, 0x91,
  1007. 0xe5, 0xdc, 0xca, 0x24, 0xca, 0xd8, 0xa1, 0xd6, 0xd7, 0xae, 0xba, 0xe4, 0x80, 0x45, 0x32, 0x89,
  1008. 0x12, 0x36, 0xaa, 0x17, 0x7f, 0xaf, 0x37, 0x5b, 0xb8, 0xd6, 0xfc, 0x08, 0x2b, 0xa3, 0x0c, 0x97,
  1009. 0xb1, 0xc3, 0x57, 0xc1, 0x7c, 0x6c, 0xb3, 0x7d, 0xe2, 0xb6, 0x18, 0x78, 0x8c, 0x81, 0xb3, 0x0e,
  1010. 0x51, 0x99, 0x19, 0x4b, 0xf8, 0x58, 0x19, 0x5f, 0x96, 0x56, 0x72, 0x28, 0x63, 0x17, 0x23, 0xdd,
  1011. 0x74, 0xc3, 0x03, 0xe5, 0x2c, 0xc3, 0x25, 0x6c, 0xa2, 0x1e, 0xc2, 0x4f, 0x9b, 0x21, 0xcd, 0xd7,
  1012. 0x44, 0x52, 0x2f, 0xb6, 0x43, 0x08, 0x46, 0x6d, 0xdf, 0x7f, 0xa2, 0x4c, 0xb2, 0xe0, 0xd8, 0xdf,
  1013. 0xda, 0x4f, 0x25, 0x30, 0x81, 0x70, 0xd8, 0xf6, 0xbd, 0x10, 0x43, 0x05, 0x9c, 0xad, 0x75, 0xea,
  1014. 0x75, 0x1c, 0x86, 0x6c, 0x8d, 0x27, 0x50, 0xfc, 0x09, 0xcf, 0x83, 0xf1, 0x1a, 0x71, 0x49, 0x27,
  1015. 0x64, 0xf9, 0x9d, 0x44, 0xd1, 0x97, 0x90, 0xf7, 0xdc, 0x69, 0x79, 0x7f, 0x23, 0x99, 0x4f, 0xb6,
  1016. 0x96, 0x53, 0x77, 0x17, 0x22, 0xb0, 0xe8, 0x42, 0x09, 0xa0, 0xf6, 0xf1, 0x74, 0x3c, 0x00, 0xbc,
  1017. 0x03, 0x26, 0x4c, 0x52, 0x6f, 0x98, 0x47, 0xb8, 0xce, 0x77, 0x40, 0xfe, 0x5c, 0xaf, 0xab, 0xca,
  1018. 0xc7, 0xee, 0x61, 0xeb, 0xbe, 0x86, 0x49, 0xbd, 0xa1, 0xe3, 0x23, 0x5c, 0xd7, 0xd0, 0x09, 0x0a,
  1019. 0xde, 0x03, 0x93, 0xc6, 0x3e, 0xf6, 0x88, 0xd1, 0x68, 0x04, 0xca, 0x14, 0xa3, 0x2c, 0xf6, 0xba,
  1020. 0xea, 0x3c, 0xa7, 0xb8, 0xd4, 0xa5, 0xbb, 0x8d, 0x46, 0xa0, 0xa1, 0x3e, 0x0e, 0x5a, 0x60, 0x7e,
  1021. 0xdd, 0x6d, 0xb6, 0xda, 0x7e, 0xd3, 0x23, 0x9b, 0xb6, 0x5d, 0x65, 0xe4, 0x69, 0x46, 0x5e, 0xea,
  1022. 0x75, 0xd5, 0x4b, 0x9c, 0xbc, 0x17, 0x43, 0xf4, 0x03, 0x42, 0xda, 0x91, 0x4a, 0x96, 0x08, 0x75,
  1023. 0x70, 0x36, 0xef, 0x86, 0x78, 0xad, 0x19, 0x28, 0x98, 0x69, 0x2c, 0xf4, 0xba, 0xea, 0x1c, 0xd7,
  1024. 0xd8, 0x75, 0x43, 0xac, 0x37, 0x9a, 0x81, 0x86, 0x62, 0x0c, 0xdc, 0x00, 0x73, 0x34, 0x7a, 0xbe,
  1025. 0x5b, 0xab, 0x81, 0x7f, 0x74, 0xac, 0x7c, 0xca, 0x32, 0x91, 0xbf, 0xd2, 0xeb, 0xaa, 0x8a, 0x30,
  1026. 0xd7, 0x3a, 0x83, 0xe8, 0x6d, 0x8a, 0xd1, 0x50, 0x9a, 0x05, 0x0d, 0x30, 0x43, 0x4d, 0x55, 0x8c,
  1027. 0x03, 0x2e, 0xf3, 0x19, 0x97, 0xb9, 0xd4, 0xeb, 0xaa, 0xe7, 0x05, 0x99, 0x36, 0xc6, 0x41, 0x2c,
  1028. 0x92, 0x64, 0xc0, 0x2a, 0x80, 0x7d, 0x55, 0xd3, 0x6b, 0xb0, 0x89, 0x29, 0x9f, 0xb0, 0xfc, 0xe7,
  1029. 0xd5, 0x5e, 0x57, 0xbd, 0x9c, 0x0d, 0x07, 0x47, 0x30, 0x0d, 0x0d, 0xe0, 0xc2, 0xff, 0x07, 0xa3,
  1030. 0xd4, 0xaa, 0xfc, 0x9c, 0xdf, 0x11, 0x53, 0x51, 0xfa, 0xa9, 0x2d, 0x3f, 0xd7, 0xeb, 0xaa, 0x53,
  1031. 0x7d, 0x41, 0x0d, 0x31, 0x28, 0xcc, 0x83, 0x45, 0xfa, 0x6f, 0xc5, 0xeb, 0x6f, 0xe6, 0x90, 0xf8,
  1032. 0x01, 0x56, 0x7e, 0x91, 0xd5, 0x40, 0x83, 0xa1, 0x70, 0x0d, 0xcc, 0xf2, 0x40, 0x0a, 0x38, 0x20,
  1033. 0x6b, 0x2e, 0x71, 0x95, 0xef, 0xb1, 0x33, 0x9f, 0xbf, 0xdc, 0xeb, 0xaa, 0x17, 0xf8, 0x98, 0x51,
  1034. 0xfc, 0x75, 0x1c, 0x10, 0xbd, 0xe1, 0x12, 0x57, 0x43, 0x29, 0x4e, 0x52, 0x85, 0x5d, 0x1c, 0x1f,
  1035. 0x9f, 0xaa, 0xd2, 0x76, 0xc9, 0x41, 0x42, 0x85, 0x5d, 0x2c, 0x06, 0x98, 0xe1, 0x96, 0x12, 0x3e,
  1036. 0x66, 0xa1, 0x7c, 0x9f, 0x8b, 0x08, 0x79, 0x89, 0x44, 0x9e, 0xe0, 0xe3, 0x28, 0x92, 0x24, 0x23,
  1037. 0x21, 0xc1, 0xe2, 0xf8, 0xc1, 0x69, 0x12, 0x3c, 0x8c, 0x24, 0x03, 0xda, 0x60, 0x81, 0x1b, 0xec,
  1038. 0xa0, 0x13, 0x12, 0xdc, 0x28, 0x18, 0x2c, 0x96, 0x1f, 0x72, 0xa1, 0x6b, 0xbd, 0xae, 0x7a, 0x35,
  1039. 0x21, 0x44, 0x38, 0x4c, 0xaf, 0xbb, 0x51, 0x48, 0x83, 0xe8, 0x03, 0x54, 0x59, 0x78, 0x3f, 0x7a,
  1040. 0x01, 0x55, 0x1e, 0xe5, 0x20, 0x3a, 0x7c, 0x17, 0x4c, 0xd3, 0x3d, 0x79, 0x92, 0xbb, 0xbf, 0x73,
  1041. 0xb9, 0x8b, 0xbd, 0xae, 0xba, 0xc8, 0xe5, 0xd8, 0x1e, 0x16, 0x32, 0x97, 0xc0, 0x8b, 0x7c, 0x16,
  1042. 0xce, 0x3f, 0x4e, 0xe1, 0xf3, 0x30, 0x12, 0x78, 0xf8, 0x36, 0x98, 0xa2, 0xdf, 0x71, 0xbe, 0xfe,
  1043. 0xc9, 0xe9, 0x4a, 0xaf, 0xab, 0x9e, 0x13, 0xe8, 0xfd, 0x6c, 0x89, 0x68, 0x81, 0xcc, 0xc6, 0xfe,
  1044. 0xd7, 0x70, 0x32, 0x1f, 0x5a, 0x44, 0xc3, 0x32, 0x98, 0xa7, 0x9f, 0xc9, 0x1c, 0xfd, 0x3b, 0x97,
  1045. 0x3e, 0x7f, 0x4c, 0x22, 0x93, 0xa1, 0x2c, 0x35, 0xa3, 0xc7, 0x42, 0xfa, 0xcf, 0x73, 0xf5, 0x78,
  1046. 0x64, 0x59, 0x2a, 0x7c, 0x27, 0x55, 0x48, 0x7f, 0x3f, 0x9a, 0x9e, 0x5d, 0x18, 0xb9, 0xe3, 0x85,
  1047. 0x4d, 0xd4, 0xd8, 0x37, 0x53, 0x35, 0xe1, 0x0f, 0x2f, 0x5c, 0x14, 0x7e, 0x39, 0x1d, 0xb7, 0x11,
  1048. 0xf4, 0x7e, 0xa5, 0x73, 0xa3, 0xf7, 0xab, 0x94, 0xbe, 0x5f, 0xe9, 0x42, 0x44, 0xf7, 0x6b, 0x84,
  1049. 0x81, 0xaf, 0x82, 0xb3, 0x65, 0x4c, 0x3e, 0xf4, 0x83, 0x27, 0xbc, 0x8e, 0xe5, 0x61, 0xaf, 0xab,
  1050. 0xce, 0x72, 0xb8, 0xc7, 0x1d, 0x1a, 0x8a, 0x21, 0xf0, 0x3a, 0x18, 0x65, 0xb7, 0x3f, 0x5f, 0x22,
  1051. 0xe1, 0x86, 0xe2, 0xd7, 0x3d, 0x73, 0xc2, 0x02, 0x98, 0x5d, 0xc3, 0x2d, 0xf7, 0xd8, 0x72, 0x09,
  1052. 0xf6, 0xea, 0xc7, 0x5b, 0x21, 0xab, 0x34, 0x33, 0xe2, 0xb5, 0xd0, 0xa0, 0x7e, 0xbd, 0xc5, 0x01,
  1053. 0xfa, 0x61, 0xa8, 0xa1, 0x14, 0x05, 0x7e, 0x13, 0xc8, 0x49, 0x0b, 0x7a, 0xca, 0x6a, 0xce, 0x8c,
  1054. 0x58, 0x73, 0xd2, 0x32, 0x7a, 0xf0, 0x54, 0x43, 0x19, 0x1e, 0x7c, 0x1f, 0x2c, 0x6e, 0xb7, 0x1b,
  1055. 0x2e, 0xc1, 0x8d, 0x54, 0x5c, 0x33, 0x4c, 0xf0, 0x7a, 0xaf, 0xab, 0xaa, 0x5c, 0xb0, 0xc3, 0x61,
  1056. 0x7a, 0x36, 0xbe, 0xc1, 0x0a, 0xf0, 0x75, 0x00, 0x90, 0xdf, 0xf1, 0x1a, 0x56, 0xf3, 0xb0, 0x49,
  1057. 0x94, 0xc5, 0x65, 0x69, 0x65, 0x2c, 0x7f, 0xbe, 0xd7, 0x55, 0x21, 0xd7, 0x0b, 0xa8, 0x4f, 0x6f,
  1058. 0x51, 0xa7, 0x86, 0x04, 0x24, 0xcc, 0x83, 0x59, 0xf3, 0xa8, 0x49, 0x2a, 0x5e, 0xc1, 0x0d, 0x31,
  1059. 0x2d, 0x92, 0xca, 0xf9, 0x4c, 0x35, 0x3a, 0x6a, 0x12, 0xdd, 0xf7, 0x74, 0x5a, 0x58, 0x3b, 0x01,
  1060. 0xd6, 0x50, 0x8a, 0x01, 0xdf, 0x02, 0x53, 0xa6, 0xe7, 0xee, 0xb6, 0x70, 0xb5, 0x1d, 0xf8, 0x7b,
  1061. 0xca, 0x05, 0x26, 0x70, 0xa1, 0xd7, 0x55, 0x17, 0x22, 0x01, 0xe6, 0xd4, 0xdb, 0xd4, 0xab, 0x21,
  1062. 0x11, 0x0b, 0xef, 0x83, 0x29, 0x2a, 0xc3, 0x26, 0xb3, 0x15, 0x2a, 0x2a, 0x5b, 0x07, 0x61, 0x9b,
  1063. 0xd6, 0x59, 0x21, 0x66, 0x8b, 0x40, 0x27, 0x2f, 0x82, 0xe9, 0xb0, 0xf4, 0xb3, 0x76, 0xd0, 0xd9,
  1064. 0xdb, 0x6b, 0x61, 0x65, 0x39, 0x3d, 0x2c, 0xe3, 0x86, 0xdc, 0x1b, 0x51, 0x23, 0x2c, 0x7c, 0x19,
  1065. 0x8c, 0xd1, 0xcf, 0x50, 0xb9, 0x46, 0x3b, 0xd1, 0xbc, 0xdc, 0xeb, 0xaa, 0xd3, 0x7d, 0x52, 0xa8,
  1066. 0x21, 0xee, 0x86, 0x25, 0xa1, 0xe3, 0x28, 0xf8, 0x87, 0x87, 0xae, 0xd7, 0x08, 0x15, 0x8d, 0x71,
  1067. 0xae, 0xf6, 0xba, 0xea, 0xc5, 0x74, 0xc7, 0x51, 0x8f, 0x30, 0x62, 0xc3, 0x11, 0xf3, 0xe8, 0x76,
  1068. 0x44, 0x1d, 0xcf, 0xc3, 0x01, 0xed, 0x80, 0xd8, 0xb1, 0xbc, 0x99, 0xae, 0x52, 0x01, 0xf3, 0xb3,
  1069. 0x6e, 0x29, 0xae, 0x52, 0x49, 0x0a, 0x2c, 0x02, 0xd9, 0x3c, 0x22, 0x38, 0xf0, 0xdc, 0xd6, 0x89,
  1070. 0xcc, 0x2a, 0x93, 0x11, 0x02, 0xc2, 0x11, 0x42, 0x14, 0xca, 0xd0, 0x60, 0x01, 0x4c, 0xd6, 0x48,
  1071. 0x80, 0xc3, 0x10, 0x07, 0xa1, 0x82, 0x97, 0x73, 0x2b, 0x53, 0x77, 0xe7, 0xe2, 0x13, 0x1e, 0xd9,
  1072. 0xc5, 0x3e, 0x2e, 0x8c, 0xb1, 0x1a, 0xea, 0xf3, 0xe0, 0x6d, 0x30, 0x51, 0x38, 0xc0, 0xf5, 0x27,
  1073. 0x54, 0x63, 0x8f, 0x2d, 0x8c, 0x70, 0xcc, 0xeb, 0x91, 0x47, 0x43, 0x27, 0x20, 0x5a, 0x23, 0x39,
  1074. 0xbb, 0x84, 0x8f, 0x59, 0x3f, 0xce, 0xba, 0xa8, 0x31, 0x71, 0xc3, 0xf1, 0x91, 0xd8, 0xdd, 0x1b,
  1075. 0x36, 0x3f, 0xc2, 0x1a, 0x4a, 0x32, 0xe0, 0x43, 0x00, 0x13, 0x06, 0xcb, 0x0d, 0xf6, 0x31, 0x6f,
  1076. 0xa3, 0xc6, 0xf2, 0xcb, 0xbd, 0xae, 0x7a, 0x65, 0xa0, 0x8e, 0xde, 0xa2, 0x38, 0x0d, 0x0d, 0x20,
  1077. 0xc3, 0x47, 0xe0, 0x5c, 0xdf, 0xda, 0xd9, 0xdb, 0x6b, 0x1e, 0x21, 0xd7, 0xdb, 0xc7, 0xca, 0xe7,
  1078. 0x5c, 0x54, 0xeb, 0x75, 0xd5, 0xa5, 0xac, 0x28, 0x03, 0xea, 0x01, 0x45, 0x6a, 0x68, 0xa0, 0x00,
  1079. 0x74, 0xc1, 0x85, 0x41, 0x76, 0xfb, 0xc8, 0x53, 0xbe, 0xe0, 0xda, 0x2f, 0xf7, 0xba, 0xaa, 0x76,
  1080. 0xaa, 0xb6, 0x4e, 0x8e, 0x3c, 0x0d, 0x0d, 0xd3, 0x81, 0x9b, 0x60, 0xee, 0xc4, 0x65, 0x1f, 0x79,
  1081. 0x95, 0x76, 0xa8, 0x7c, 0xc9, 0xa5, 0x85, 0x2d, 0x21, 0x48, 0x93, 0x23, 0x4f, 0xf7, 0xdb, 0xa1,
  1082. 0x86, 0xd2, 0x34, 0xf8, 0x5e, 0x9c, 0x1b, 0x5e, 0xed, 0x43, 0xde, 0x52, 0x8e, 0x89, 0x15, 0x39,
  1083. 0xd2, 0xe1, 0x7d, 0x42, 0x78, 0x92, 0x9a, 0x88, 0x00, 0x5f, 0x8b, 0xf7, 0xd4, 0xc3, 0x6a, 0x8d,
  1084. 0x37, 0x93, 0x63, 0x62, 0x63, 0x1f, 0xb1, 0x3f, 0x68, 0xf7, 0x37, 0xd1, 0xc3, 0x6a, 0x4d, 0xfb,
  1085. 0x16, 0x98, 0x88, 0x77, 0x14, 0xbd, 0xd9, 0xed, 0xe3, 0x76, 0xf4, 0x92, 0x14, 0x6f, 0x76, 0x72,
  1086. 0xdc, 0xc6, 0x1a, 0x62, 0x4e, 0x78, 0x13, 0x8c, 0x3f, 0xc2, 0xcd, 0xfd, 0x03, 0xc2, 0x6a, 0x85,
  1087. 0x94, 0x9f, 0xef, 0x75, 0xd5, 0x19, 0x0e, 0xfb, 0x90, 0xd9, 0x35, 0x14, 0x01, 0xb4, 0xef, 0xcc,
  1088. 0xf1, 0xd6, 0x96, 0x0a, 0xf7, 0x9f, 0xa8, 0xa2, 0xb0, 0xe7, 0x1e, 0x52, 0x61, 0xf6, 0x5a, 0x15,
  1089. 0x8a, 0xd6, 0xc8, 0x0b, 0x14, 0xad, 0x55, 0x30, 0xfe, 0xc8, 0xb0, 0x28, 0x3a, 0x97, 0xae, 0x59,
  1090. 0x1f, 0xba, 0x2d, 0x0e, 0x8e, 0x10, 0xb0, 0x02, 0x16, 0x36, 0xb1, 0x1b, 0x90, 0x5d, 0xec, 0x92,
  1091. 0xa2, 0x47, 0x70, 0xf0, 0xd4, 0x6d, 0x45, 0x25, 0x29, 0x27, 0x66, 0xea, 0x20, 0x06, 0xe9, 0xcd,
  1092. 0x08, 0xa5, 0xa1, 0x41, 0x4c, 0x58, 0x04, 0xf3, 0x66, 0x0b, 0xd7, 0xe9, 0x23, 0xdf, 0x6e, 0x1e,
  1093. 0x62, 0xbf, 0x43, 0xb6, 0x42, 0x56, 0x9a, 0x72, 0xe2, 0x95, 0x82, 0x23, 0x88, 0x4e, 0x38, 0x46,
  1094. 0x43, 0x59, 0x16, 0xbd, 0x55, 0xac, 0x66, 0x48, 0xb0, 0x27, 0x3c, 0xd2, 0x17, 0xd3, 0xd7, 0x5c,
  1095. 0x8b, 0x21, 0xe2, 0xf7, 0x44, 0x27, 0x68, 0x85, 0x1a, 0xca, 0xd0, 0x20, 0x02, 0x0b, 0x46, 0xe3,
  1096. 0x29, 0x0e, 0x48, 0x33, 0xc4, 0x82, 0xda, 0x79, 0xa6, 0x26, 0x1c, 0x4e, 0x37, 0x06, 0x25, 0x05,
  1097. 0x07, 0x91, 0xe1, 0x5b, 0x71, 0x5f, 0x6d, 0x74, 0x88, 0x6f, 0x5b, 0xb5, 0xa8, 0xc4, 0x08, 0xb9,
  1098. 0x71, 0x3b, 0xc4, 0xd7, 0x09, 0x15, 0x48, 0x22, 0xe9, 0xa5, 0xdb, 0xef, 0xf3, 0x8d, 0x0e, 0x39,
  1099. 0x50, 0x14, 0xc6, 0x1d, 0xf2, 0x34, 0x70, 0x3b, 0xa9, 0xa7, 0x01, 0xa5, 0xc0, 0x6f, 0x88, 0x22,
  1100. 0xeb, 0xcd, 0x16, 0x56, 0x2e, 0xa6, 0x5f, 0xb9, 0x8c, 0xbd, 0xd7, 0xa4, 0x95, 0x26, 0x85, 0xed,
  1101. 0x47, 0x5f, 0xc2, 0xc7, 0x8c, 0x7c, 0x29, 0xbd, 0xb3, 0xe8, 0xa9, 0xe4, 0xdc, 0x24, 0x12, 0x5a,
  1102. 0x99, 0xbe, 0x9d, 0x09, 0x5c, 0x4e, 0xbf, 0x2a, 0x84, 0x9e, 0x90, 0xeb, 0x0c, 0xa2, 0xd1, 0xb5,
  1103. 0xe0, 0xe9, 0xa2, 0x0d, 0x23, 0xcb, 0x8a, 0xca, 0xb2, 0x22, 0xac, 0x45, 0x94, 0x63, 0xd6, 0x68,
  1104. 0xf2, 0x84, 0xa4, 0x28, 0xd0, 0x06, 0xf3, 0x27, 0x29, 0x3a, 0xd1, 0x59, 0x66, 0x3a, 0xc2, 0x4d,
  1105. 0xd6, 0xf4, 0x9a, 0xa4, 0xe9, 0xb6, 0xf4, 0x7e, 0x96, 0x05, 0xc9, 0xac, 0x00, 0xed, 0x03, 0xe8,
  1106. 0xdf, 0x71, 0x7e, 0xaf, 0xb1, 0x1c, 0xa5, 0x9b, 0xf1, 0x7e, 0x92, 0x45, 0x30, 0x7d, 0x0d, 0xb3,
  1107. 0x67, 0x41, 0x32, 0xcd, 0x1a, 0x93, 0x10, 0x36, 0x1c, 0x7f, 0x4b, 0x64, 0x72, 0x3d, 0x80, 0x4b,
  1108. 0xdb, 0xe7, 0xf8, 0xa1, 0xc1, 0xd6, 0xfb, 0xfa, 0xf0, 0x77, 0x09, 0x5f, 0xee, 0x04, 0x3c, 0x9e,
  1109. 0x4c, 0x9c, 0xee, 0x97, 0x86, 0xbe, 0x2c, 0x38, 0x59, 0x04, 0xc3, 0xad, 0xd4, 0x4b, 0x80, 0x29,
  1110. 0xdc, 0x78, 0xde, 0x43, 0x80, 0x0b, 0x65, 0x99, 0xb4, 0xbd, 0x2b, 0xf2, 0x54, 0x14, 0x5a, 0x1d,
  1111. 0xf6, 0xbf, 0x7b, 0x37, 0xd3, 0x7b, 0x27, 0x4e, 0x55, 0x9d, 0x03, 0x34, 0x94, 0x62, 0xd0, 0x13,
  1112. 0x9d, 0xb4, 0xd4, 0x88, 0x4b, 0x70, 0xd4, 0x75, 0x08, 0x0b, 0x9c, 0x12, 0xd2, 0x43, 0x0a, 0xd3,
  1113. 0xd0, 0x20, 0x72, 0x56, 0xd3, 0xf6, 0x9f, 0x60, 0x4f, 0x79, 0xe5, 0x79, 0x9a, 0x84, 0xc2, 0x32,
  1114. 0x9a, 0x8c, 0x0c, 0x1f, 0x80, 0x99, 0xf8, 0x2d, 0x52, 0xf0, 0x3b, 0x1e, 0x51, 0xee, 0xb1, 0xbb,
  1115. 0x50, 0x2c, 0x5e, 0xf1, 0xa3, 0xa7, 0x4e, 0xfd, 0xb4, 0x78, 0x89, 0x78, 0x68, 0x81, 0xf9, 0x87,
  1116. 0x1d, 0x9f, 0xb8, 0x79, 0xb7, 0xfe, 0x04, 0x7b, 0x8d, 0xfc, 0x31, 0xc1, 0xa1, 0xf2, 0x1a, 0x13,
  1117. 0x11, 0x7a, 0xfd, 0x0f, 0x28, 0x44, 0xdf, 0xe5, 0x18, 0x7d, 0x97, 0x82, 0x34, 0x94, 0x25, 0xd2,
  1118. 0x52, 0x52, 0x0d, 0xf0, 0x8e, 0x4f, 0xb0, 0xf2, 0x20, 0x7d, 0x5d, 0xb5, 0x03, 0xac, 0x3f, 0xf5,
  1119. 0xe9, 0xea, 0xc4, 0x18, 0x71, 0x45, 0xfc, 0x20, 0xe8, 0xb4, 0x09, 0xeb, 0x98, 0x94, 0xf7, 0xd2,
  1120. 0xdb, 0xf8, 0x64, 0x45, 0x38, 0x4a, 0x67, 0x3d, 0x96, 0xb0, 0x22, 0x02, 0x99, 0x96, 0x49, 0xcb,
  1121. 0xdf, 0xdf, 0xc7, 0x81, 0xb2, 0xc1, 0x16, 0x56, 0x28, 0x93, 0x2d, 0x66, 0xd7, 0x50, 0x04, 0xa0,
  1122. 0xef, 0x07, 0xcb, 0xdf, 0xaf, 0x74, 0x48, 0xbb, 0x43, 0x42, 0x65, 0x93, 0x9d, 0x67, 0xe1, 0xfd,
  1123. 0xd0, 0xf2, 0xf7, 0x75, 0x9f, 0x3b, 0x35, 0x24, 0x20, 0xe1, 0x1d, 0x30, 0x61, 0xf9, 0xfb, 0x16,
  1124. 0x7e, 0x8a, 0x5b, 0x4a, 0x31, 0x7d, 0x29, 0x52, 0x56, 0x8b, 0xba, 0x34, 0x74, 0x82, 0x5a, 0xfd,
  1125. 0xaf, 0x04, 0xa6, 0xe3, 0x6a, 0xcf, 0x8a, 0x39, 0x04, 0xb3, 0xa5, 0x1d, 0xe7, 0x11, 0x2a, 0xda,
  1126. 0xa6, 0x53, 0xdb, 0x32, 0x2c, 0x4b, 0x3e, 0x93, 0xb0, 0x59, 0x06, 0xda, 0x30, 0x65, 0x09, 0x2e,
  1127. 0x80, 0xb9, 0xd2, 0x8e, 0x83, 0x4c, 0x63, 0xcd, 0xa9, 0x94, 0x4d, 0xa7, 0x64, 0xbe, 0x2f, 0x8f,
  1128. 0xc0, 0x79, 0x30, 0x13, 0x1b, 0x91, 0x51, 0xde, 0x30, 0xe5, 0x1c, 0x5c, 0x04, 0xf3, 0xa5, 0x1d,
  1129. 0x67, 0xcd, 0xb4, 0x4c, 0xdb, 0x3c, 0x41, 0x8e, 0x46, 0xf4, 0xc8, 0xcc, 0xb1, 0x63, 0xf0, 0x02,
  1130. 0x58, 0x28, 0xed, 0x38, 0xf6, 0xe3, 0x72, 0x34, 0x16, 0x77, 0xcb, 0xe3, 0x70, 0x12, 0x8c, 0x59,
  1131. 0xa6, 0x51, 0x33, 0x65, 0x40, 0x89, 0xa6, 0x65, 0x16, 0xec, 0x62, 0xa5, 0xec, 0xa0, 0xed, 0x72,
  1132. 0xd9, 0x44, 0xf2, 0x39, 0x28, 0x83, 0xe9, 0x47, 0x86, 0x5d, 0xd8, 0x8c, 0x2d, 0x2a, 0x1d, 0xd6,
  1133. 0xaa, 0x14, 0x4a, 0x0e, 0x32, 0x0a, 0x26, 0x8a, 0xcd, 0x37, 0x29, 0x90, 0x09, 0xc5, 0x96, 0x7b,
  1134. 0xab, 0x79, 0x70, 0x36, 0xea, 0x86, 0xe1, 0x14, 0x38, 0x5b, 0xda, 0x71, 0x36, 0x8d, 0xda, 0xa6,
  1135. 0x7c, 0xa6, 0x8f, 0x34, 0x1f, 0x57, 0x8b, 0x88, 0xce, 0x18, 0x80, 0xf1, 0x88, 0x35, 0x02, 0xa7,
  1136. 0xc1, 0x44, 0xb9, 0xe2, 0x14, 0x36, 0xcd, 0x42, 0x49, 0xce, 0xad, 0xfe, 0x24, 0x27, 0xfc, 0x0a,
  1137. 0x00, 0xe7, 0xc0, 0x54, 0xb9, 0x62, 0x3b, 0x35, 0xdb, 0x40, 0xb6, 0xb9, 0x26, 0x9f, 0x81, 0xe7,
  1138. 0x01, 0x2c, 0x96, 0x8b, 0x76, 0xd1, 0xb0, 0xb8, 0xd1, 0x31, 0xed, 0xc2, 0x9a, 0x0c, 0xe8, 0x10,
  1139. 0xc8, 0x14, 0x2c, 0x53, 0xd4, 0x52, 0x2b, 0x6e, 0xd8, 0x26, 0xda, 0xe2, 0x96, 0x73, 0x70, 0x19,
  1140. 0x5c, 0xa9, 0x15, 0x37, 0x1e, 0x6e, 0x17, 0x39, 0xc6, 0x31, 0xca, 0x6b, 0x0e, 0x32, 0xb7, 0x2a,
  1141. 0x3b, 0xa6, 0xb3, 0x66, 0xd8, 0x86, 0xbc, 0x48, 0xd7, 0xbc, 0x66, 0xec, 0x98, 0x4e, 0xad, 0x6c,
  1142. 0x54, 0x6b, 0x9b, 0x15, 0x5b, 0x5e, 0x82, 0xd7, 0xc0, 0x55, 0x2a, 0x5c, 0x41, 0xa6, 0x13, 0x0f,
  1143. 0xb0, 0x8e, 0x2a, 0x5b, 0x7d, 0x88, 0x0a, 0x2f, 0x82, 0xc5, 0xc1, 0xae, 0x65, 0xca, 0xce, 0x0c,
  1144. 0x69, 0xa0, 0xc2, 0x66, 0x31, 0x1e, 0x73, 0x05, 0xde, 0x06, 0xaf, 0x9c, 0x16, 0x15, 0xfb, 0xae,
  1145. 0xd9, 0x95, 0xaa, 0x63, 0x6c, 0x98, 0x65, 0x5b, 0xbe, 0x09, 0xaf, 0x82, 0x8b, 0x79, 0xcb, 0x28,
  1146. 0x94, 0x36, 0x2b, 0x96, 0xe9, 0x54, 0x4d, 0x13, 0x39, 0xd5, 0x0a, 0xb2, 0x1d, 0xfb, 0xb1, 0x83,
  1147. 0x1e, 0xcb, 0x0d, 0xa8, 0x82, 0xcb, 0xdb, 0xe5, 0xe1, 0x00, 0x0c, 0x2f, 0x81, 0xc5, 0x35, 0xd3,
  1148. 0x32, 0xde, 0xcf, 0xb8, 0x9e, 0x49, 0xf0, 0x0a, 0xb8, 0xb0, 0x5d, 0x1e, 0xec, 0xfd, 0x54, 0x5a,
  1149. 0xfd, 0x2b, 0x00, 0xa3, 0xf4, 0xf9, 0x08, 0x15, 0x70, 0x2e, 0x5e, 0x5b, 0xba, 0x0d, 0xd7, 0x2b,
  1150. 0x96, 0x55, 0x79, 0x64, 0x22, 0xf9, 0x4c, 0x34, 0x9b, 0x8c, 0xc7, 0xd9, 0x2e, 0xdb, 0x45, 0xcb,
  1151. 0xb1, 0x51, 0x71, 0x63, 0xc3, 0x44, 0xfd, 0x15, 0x92, 0xe8, 0x79, 0x88, 0x09, 0x96, 0x69, 0xac,
  1152. 0xb1, 0x1d, 0x71, 0x13, 0xdc, 0x48, 0xda, 0x86, 0xd1, 0x73, 0x22, 0xfd, 0xe1, 0x76, 0x05, 0x6d,
  1153. 0x6f, 0xc9, 0xa3, 0x74, 0xd3, 0xc4, 0x36, 0x7a, 0xe6, 0xc6, 0xe0, 0x75, 0xa0, 0xc6, 0x4b, 0x2c,
  1154. 0xac, 0x6e, 0x22, 0x72, 0x00, 0xef, 0x83, 0xd7, 0x9f, 0x03, 0x1a, 0x16, 0xc5, 0x14, 0x4d, 0xc9,
  1155. 0x00, 0x6e, 0x34, 0x9f, 0x69, 0xf8, 0x1a, 0xb8, 0x33, 0xd4, 0x3d, 0x4c, 0x74, 0x06, 0xae, 0x83,
  1156. 0xfc, 0x00, 0x16, 0x9f, 0x65, 0x64, 0xe1, 0xfb, 0x32, 0x12, 0x8a, 0xa9, 0xd1, 0x26, 0x2c, 0x20,
  1157. 0x7a, 0x8a, 0xe5, 0x59, 0xb8, 0x0a, 0x5e, 0x1e, 0xba, 0x1d, 0x92, 0x8b, 0xd0, 0x80, 0x06, 0x78,
  1158. 0xe7, 0xc5, 0xb0, 0xc3, 0xc2, 0xc6, 0xf0, 0x25, 0xb0, 0x3c, 0x5c, 0x22, 0x5a, 0x92, 0x3d, 0xf8,
  1159. 0x36, 0x78, 0xe3, 0x79, 0xa8, 0x61, 0x43, 0xec, 0x9f, 0x3e, 0x44, 0xb4, 0x0d, 0x0e, 0xe8, 0xd9,
  1160. 0x1b, 0x8e, 0xa2, 0x1b, 0xa3, 0x09, 0xff, 0x0f, 0x68, 0x03, 0x37, 0x7b, 0x72, 0x59, 0x9e, 0x49,
  1161. 0xf0, 0x16, 0xb8, 0x89, 0x8c, 0xf2, 0x5a, 0x65, 0xcb, 0x79, 0x01, 0xfc, 0xa7, 0x12, 0x7c, 0x17,
  1162. 0xbc, 0xf5, 0x7c, 0xe0, 0xb0, 0x09, 0x7e, 0x26, 0x41, 0x13, 0xbc, 0xf7, 0xc2, 0xe3, 0x0d, 0x93,
  1163. 0xf9, 0x5c, 0x82, 0xd7, 0xc0, 0x95, 0xc1, 0xfc, 0x28, 0x0f, 0x5f, 0x48, 0x70, 0x05, 0x5c, 0x3f,
  1164. 0x75, 0xa4, 0x08, 0xf9, 0xa5, 0x04, 0xdf, 0x04, 0xf7, 0x4e, 0x83, 0x0c, 0x0b, 0xe3, 0x57, 0x12,
  1165. 0x7c, 0x00, 0xee, 0xbf, 0xc0, 0x18, 0xc3, 0x04, 0x7e, 0x7d, 0xca, 0x3c, 0xa2, 0x64, 0x7f, 0xf5,
  1166. 0xfc, 0x79, 0x44, 0xc8, 0xdf, 0x48, 0x70, 0x09, 0x5c, 0x1c, 0x0c, 0xa1, 0x7b, 0xe2, 0xb7, 0x12,
  1167. 0xbc, 0x01, 0x96, 0x4f, 0x55, 0xa2, 0xb0, 0xdf, 0x49, 0x50, 0x01, 0x0b, 0xe5, 0x8a, 0xb3, 0x6e,
  1168. 0x14, 0x2d, 0xe7, 0x51, 0xd1, 0xde, 0x74, 0x6a, 0x36, 0x32, 0x6b, 0x35, 0xf9, 0x67, 0x23, 0x34,
  1169. 0x94, 0x84, 0xa7, 0x5c, 0x89, 0x9c, 0xce, 0x7a, 0x05, 0x39, 0x56, 0x71, 0xc7, 0x2c, 0x53, 0xe4,
  1170. 0x27, 0x23, 0x70, 0x0e, 0x00, 0x0a, 0xab, 0x56, 0x8a, 0x65, 0xbb, 0x26, 0x7f, 0x37, 0x07, 0x67,
  1171. 0xc0, 0x84, 0xf9, 0xd8, 0x36, 0x51, 0xd9, 0xb0, 0xe4, 0xbf, 0xe5, 0xee, 0x3e, 0x00, 0x93, 0x76,
  1172. 0xe0, 0x7a, 0x61, 0xdb, 0x0f, 0x08, 0xbc, 0x2b, 0x7e, 0xcc, 0x46, 0xff, 0x9f, 0x15, 0xfd, 0x76,
  1173. 0x7e, 0x69, 0xee, 0xe4, 0x9b, 0xff, 0xac, 0xaa, 0x9d, 0x59, 0x91, 0xee, 0x48, 0xf9, 0x73, 0xcf,
  1174. 0xfe, 0xb4, 0x74, 0xe6, 0xd9, 0xd7, 0x4b, 0xd2, 0x57, 0x5f, 0x2f, 0x49, 0x7f, 0xfc, 0x7a, 0x49,
  1175. 0xfa, 0xf1, 0x9f, 0x97, 0xce, 0xec, 0x8e, 0xb3, 0xdf, 0xde, 0xef, 0xfd, 0x2f, 0x00, 0x00, 0xff,
  1176. 0xff, 0xda, 0x3b, 0x5a, 0x70, 0xc4, 0x1f, 0x00, 0x00,
  1177. }
  1178. // Reference imports to suppress errors if they are not otherwise used.
  1179. var _ context.Context
  1180. var _ grpc.ClientConn
  1181. // This is a compile-time assertion to ensure that this generated file
  1182. // is compatible with the grpc package it is being compiled against.
  1183. const _ = grpc.SupportPackageIsVersion4
  1184. // TransportClient is the client API for Transport service.
  1185. //
  1186. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1187. type TransportClient interface {
  1188. Transport(ctx context.Context, opts ...grpc.CallOption) (Transport_TransportClient, error)
  1189. }
  1190. type transportClient struct {
  1191. cc *grpc.ClientConn
  1192. }
  1193. func NewTransportClient(cc *grpc.ClientConn) TransportClient {
  1194. return &transportClient{cc}
  1195. }
  1196. func (c *transportClient) Transport(ctx context.Context, opts ...grpc.CallOption) (Transport_TransportClient, error) {
  1197. stream, err := c.cc.NewStream(ctx, &_Transport_serviceDesc.Streams[0], "/rpcpb.Transport/Transport", opts...)
  1198. if err != nil {
  1199. return nil, err
  1200. }
  1201. x := &transportTransportClient{stream}
  1202. return x, nil
  1203. }
  1204. type Transport_TransportClient interface {
  1205. Send(*Request) error
  1206. Recv() (*Response, error)
  1207. grpc.ClientStream
  1208. }
  1209. type transportTransportClient struct {
  1210. grpc.ClientStream
  1211. }
  1212. func (x *transportTransportClient) Send(m *Request) error {
  1213. return x.ClientStream.SendMsg(m)
  1214. }
  1215. func (x *transportTransportClient) Recv() (*Response, error) {
  1216. m := new(Response)
  1217. if err := x.ClientStream.RecvMsg(m); err != nil {
  1218. return nil, err
  1219. }
  1220. return m, nil
  1221. }
  1222. // TransportServer is the server API for Transport service.
  1223. type TransportServer interface {
  1224. Transport(Transport_TransportServer) error
  1225. }
  1226. // UnimplementedTransportServer can be embedded to have forward compatible implementations.
  1227. type UnimplementedTransportServer struct {
  1228. }
  1229. func (*UnimplementedTransportServer) Transport(srv Transport_TransportServer) error {
  1230. return status.Errorf(codes.Unimplemented, "method Transport not implemented")
  1231. }
  1232. func RegisterTransportServer(s *grpc.Server, srv TransportServer) {
  1233. s.RegisterService(&_Transport_serviceDesc, srv)
  1234. }
  1235. func _Transport_Transport_Handler(srv interface{}, stream grpc.ServerStream) error {
  1236. return srv.(TransportServer).Transport(&transportTransportServer{stream})
  1237. }
  1238. type Transport_TransportServer interface {
  1239. Send(*Response) error
  1240. Recv() (*Request, error)
  1241. grpc.ServerStream
  1242. }
  1243. type transportTransportServer struct {
  1244. grpc.ServerStream
  1245. }
  1246. func (x *transportTransportServer) Send(m *Response) error {
  1247. return x.ServerStream.SendMsg(m)
  1248. }
  1249. func (x *transportTransportServer) Recv() (*Request, error) {
  1250. m := new(Request)
  1251. if err := x.ServerStream.RecvMsg(m); err != nil {
  1252. return nil, err
  1253. }
  1254. return m, nil
  1255. }
  1256. var _Transport_serviceDesc = grpc.ServiceDesc{
  1257. ServiceName: "rpcpb.Transport",
  1258. HandlerType: (*TransportServer)(nil),
  1259. Methods: []grpc.MethodDesc{},
  1260. Streams: []grpc.StreamDesc{
  1261. {
  1262. StreamName: "Transport",
  1263. Handler: _Transport_Transport_Handler,
  1264. ServerStreams: true,
  1265. ClientStreams: true,
  1266. },
  1267. },
  1268. Metadata: "rpcpb/rpc.proto",
  1269. }
  1270. func (m *Request) Marshal() (dAtA []byte, err error) {
  1271. size := m.Size()
  1272. dAtA = make([]byte, size)
  1273. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1274. if err != nil {
  1275. return nil, err
  1276. }
  1277. return dAtA[:n], nil
  1278. }
  1279. func (m *Request) MarshalTo(dAtA []byte) (int, error) {
  1280. size := m.Size()
  1281. return m.MarshalToSizedBuffer(dAtA[:size])
  1282. }
  1283. func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1284. i := len(dAtA)
  1285. _ = i
  1286. var l int
  1287. _ = l
  1288. if m.XXX_unrecognized != nil {
  1289. i -= len(m.XXX_unrecognized)
  1290. copy(dAtA[i:], m.XXX_unrecognized)
  1291. }
  1292. if m.Tester != nil {
  1293. {
  1294. size, err := m.Tester.MarshalToSizedBuffer(dAtA[:i])
  1295. if err != nil {
  1296. return 0, err
  1297. }
  1298. i -= size
  1299. i = encodeVarintRpc(dAtA, i, uint64(size))
  1300. }
  1301. i--
  1302. dAtA[i] = 0x1a
  1303. }
  1304. if m.Member != nil {
  1305. {
  1306. size, err := m.Member.MarshalToSizedBuffer(dAtA[:i])
  1307. if err != nil {
  1308. return 0, err
  1309. }
  1310. i -= size
  1311. i = encodeVarintRpc(dAtA, i, uint64(size))
  1312. }
  1313. i--
  1314. dAtA[i] = 0x12
  1315. }
  1316. if m.Operation != 0 {
  1317. i = encodeVarintRpc(dAtA, i, uint64(m.Operation))
  1318. i--
  1319. dAtA[i] = 0x8
  1320. }
  1321. return len(dAtA) - i, nil
  1322. }
  1323. func (m *SnapshotInfo) Marshal() (dAtA []byte, err error) {
  1324. size := m.Size()
  1325. dAtA = make([]byte, size)
  1326. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1327. if err != nil {
  1328. return nil, err
  1329. }
  1330. return dAtA[:n], nil
  1331. }
  1332. func (m *SnapshotInfo) MarshalTo(dAtA []byte) (int, error) {
  1333. size := m.Size()
  1334. return m.MarshalToSizedBuffer(dAtA[:size])
  1335. }
  1336. func (m *SnapshotInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1337. i := len(dAtA)
  1338. _ = i
  1339. var l int
  1340. _ = l
  1341. if m.XXX_unrecognized != nil {
  1342. i -= len(m.XXX_unrecognized)
  1343. copy(dAtA[i:], m.XXX_unrecognized)
  1344. }
  1345. if len(m.Took) > 0 {
  1346. i -= len(m.Took)
  1347. copy(dAtA[i:], m.Took)
  1348. i = encodeVarintRpc(dAtA, i, uint64(len(m.Took)))
  1349. i--
  1350. dAtA[i] = 0x4a
  1351. }
  1352. if m.SnapshotRevision != 0 {
  1353. i = encodeVarintRpc(dAtA, i, uint64(m.SnapshotRevision))
  1354. i--
  1355. dAtA[i] = 0x40
  1356. }
  1357. if m.SnapshotHash != 0 {
  1358. i = encodeVarintRpc(dAtA, i, uint64(m.SnapshotHash))
  1359. i--
  1360. dAtA[i] = 0x38
  1361. }
  1362. if m.SnapshotTotalKey != 0 {
  1363. i = encodeVarintRpc(dAtA, i, uint64(m.SnapshotTotalKey))
  1364. i--
  1365. dAtA[i] = 0x30
  1366. }
  1367. if len(m.SnapshotTotalSize) > 0 {
  1368. i -= len(m.SnapshotTotalSize)
  1369. copy(dAtA[i:], m.SnapshotTotalSize)
  1370. i = encodeVarintRpc(dAtA, i, uint64(len(m.SnapshotTotalSize)))
  1371. i--
  1372. dAtA[i] = 0x2a
  1373. }
  1374. if len(m.SnapshotFileSize) > 0 {
  1375. i -= len(m.SnapshotFileSize)
  1376. copy(dAtA[i:], m.SnapshotFileSize)
  1377. i = encodeVarintRpc(dAtA, i, uint64(len(m.SnapshotFileSize)))
  1378. i--
  1379. dAtA[i] = 0x22
  1380. }
  1381. if len(m.SnapshotPath) > 0 {
  1382. i -= len(m.SnapshotPath)
  1383. copy(dAtA[i:], m.SnapshotPath)
  1384. i = encodeVarintRpc(dAtA, i, uint64(len(m.SnapshotPath)))
  1385. i--
  1386. dAtA[i] = 0x1a
  1387. }
  1388. if len(m.MemberClientURLs) > 0 {
  1389. for iNdEx := len(m.MemberClientURLs) - 1; iNdEx >= 0; iNdEx-- {
  1390. i -= len(m.MemberClientURLs[iNdEx])
  1391. copy(dAtA[i:], m.MemberClientURLs[iNdEx])
  1392. i = encodeVarintRpc(dAtA, i, uint64(len(m.MemberClientURLs[iNdEx])))
  1393. i--
  1394. dAtA[i] = 0x12
  1395. }
  1396. }
  1397. if len(m.MemberName) > 0 {
  1398. i -= len(m.MemberName)
  1399. copy(dAtA[i:], m.MemberName)
  1400. i = encodeVarintRpc(dAtA, i, uint64(len(m.MemberName)))
  1401. i--
  1402. dAtA[i] = 0xa
  1403. }
  1404. return len(dAtA) - i, nil
  1405. }
  1406. func (m *Response) Marshal() (dAtA []byte, err error) {
  1407. size := m.Size()
  1408. dAtA = make([]byte, size)
  1409. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1410. if err != nil {
  1411. return nil, err
  1412. }
  1413. return dAtA[:n], nil
  1414. }
  1415. func (m *Response) MarshalTo(dAtA []byte) (int, error) {
  1416. size := m.Size()
  1417. return m.MarshalToSizedBuffer(dAtA[:size])
  1418. }
  1419. func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1420. i := len(dAtA)
  1421. _ = i
  1422. var l int
  1423. _ = l
  1424. if m.XXX_unrecognized != nil {
  1425. i -= len(m.XXX_unrecognized)
  1426. copy(dAtA[i:], m.XXX_unrecognized)
  1427. }
  1428. if m.SnapshotInfo != nil {
  1429. {
  1430. size, err := m.SnapshotInfo.MarshalToSizedBuffer(dAtA[:i])
  1431. if err != nil {
  1432. return 0, err
  1433. }
  1434. i -= size
  1435. i = encodeVarintRpc(dAtA, i, uint64(size))
  1436. }
  1437. i--
  1438. dAtA[i] = 0x22
  1439. }
  1440. if m.Member != nil {
  1441. {
  1442. size, err := m.Member.MarshalToSizedBuffer(dAtA[:i])
  1443. if err != nil {
  1444. return 0, err
  1445. }
  1446. i -= size
  1447. i = encodeVarintRpc(dAtA, i, uint64(size))
  1448. }
  1449. i--
  1450. dAtA[i] = 0x1a
  1451. }
  1452. if len(m.Status) > 0 {
  1453. i -= len(m.Status)
  1454. copy(dAtA[i:], m.Status)
  1455. i = encodeVarintRpc(dAtA, i, uint64(len(m.Status)))
  1456. i--
  1457. dAtA[i] = 0x12
  1458. }
  1459. if m.Success {
  1460. i--
  1461. if m.Success {
  1462. dAtA[i] = 1
  1463. } else {
  1464. dAtA[i] = 0
  1465. }
  1466. i--
  1467. dAtA[i] = 0x8
  1468. }
  1469. return len(dAtA) - i, nil
  1470. }
  1471. func (m *Member) Marshal() (dAtA []byte, err error) {
  1472. size := m.Size()
  1473. dAtA = make([]byte, size)
  1474. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1475. if err != nil {
  1476. return nil, err
  1477. }
  1478. return dAtA[:n], nil
  1479. }
  1480. func (m *Member) MarshalTo(dAtA []byte) (int, error) {
  1481. size := m.Size()
  1482. return m.MarshalToSizedBuffer(dAtA[:size])
  1483. }
  1484. func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1485. i := len(dAtA)
  1486. _ = i
  1487. var l int
  1488. _ = l
  1489. if m.XXX_unrecognized != nil {
  1490. i -= len(m.XXX_unrecognized)
  1491. copy(dAtA[i:], m.XXX_unrecognized)
  1492. }
  1493. if m.SnapshotInfo != nil {
  1494. {
  1495. size, err := m.SnapshotInfo.MarshalToSizedBuffer(dAtA[:i])
  1496. if err != nil {
  1497. return 0, err
  1498. }
  1499. i -= size
  1500. i = encodeVarintRpc(dAtA, i, uint64(size))
  1501. }
  1502. i--
  1503. dAtA[i] = 0x25
  1504. i--
  1505. dAtA[i] = 0xd2
  1506. }
  1507. if len(m.SnapshotPath) > 0 {
  1508. i -= len(m.SnapshotPath)
  1509. copy(dAtA[i:], m.SnapshotPath)
  1510. i = encodeVarintRpc(dAtA, i, uint64(len(m.SnapshotPath)))
  1511. i--
  1512. dAtA[i] = 0x25
  1513. i--
  1514. dAtA[i] = 0xca
  1515. }
  1516. if len(m.PeerTrustedCAPath) > 0 {
  1517. i -= len(m.PeerTrustedCAPath)
  1518. copy(dAtA[i:], m.PeerTrustedCAPath)
  1519. i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerTrustedCAPath)))
  1520. i--
  1521. dAtA[i] = 0x1f
  1522. i--
  1523. dAtA[i] = 0xd2
  1524. }
  1525. if len(m.PeerTrustedCAData) > 0 {
  1526. i -= len(m.PeerTrustedCAData)
  1527. copy(dAtA[i:], m.PeerTrustedCAData)
  1528. i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerTrustedCAData)))
  1529. i--
  1530. dAtA[i] = 0x1f
  1531. i--
  1532. dAtA[i] = 0xca
  1533. }
  1534. if len(m.PeerKeyPath) > 0 {
  1535. i -= len(m.PeerKeyPath)
  1536. copy(dAtA[i:], m.PeerKeyPath)
  1537. i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerKeyPath)))
  1538. i--
  1539. dAtA[i] = 0x1f
  1540. i--
  1541. dAtA[i] = 0xc2
  1542. }
  1543. if len(m.PeerKeyData) > 0 {
  1544. i -= len(m.PeerKeyData)
  1545. copy(dAtA[i:], m.PeerKeyData)
  1546. i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerKeyData)))
  1547. i--
  1548. dAtA[i] = 0x1f
  1549. i--
  1550. dAtA[i] = 0xba
  1551. }
  1552. if len(m.PeerCertPath) > 0 {
  1553. i -= len(m.PeerCertPath)
  1554. copy(dAtA[i:], m.PeerCertPath)
  1555. i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerCertPath)))
  1556. i--
  1557. dAtA[i] = 0x1f
  1558. i--
  1559. dAtA[i] = 0xb2
  1560. }
  1561. if len(m.PeerCertData) > 0 {
  1562. i -= len(m.PeerCertData)
  1563. copy(dAtA[i:], m.PeerCertData)
  1564. i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerCertData)))
  1565. i--
  1566. dAtA[i] = 0x1f
  1567. i--
  1568. dAtA[i] = 0xaa
  1569. }
  1570. if len(m.ClientTrustedCAPath) > 0 {
  1571. i -= len(m.ClientTrustedCAPath)
  1572. copy(dAtA[i:], m.ClientTrustedCAPath)
  1573. i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientTrustedCAPath)))
  1574. i--
  1575. dAtA[i] = 0x19
  1576. i--
  1577. dAtA[i] = 0xb2
  1578. }
  1579. if len(m.ClientTrustedCAData) > 0 {
  1580. i -= len(m.ClientTrustedCAData)
  1581. copy(dAtA[i:], m.ClientTrustedCAData)
  1582. i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientTrustedCAData)))
  1583. i--
  1584. dAtA[i] = 0x19
  1585. i--
  1586. dAtA[i] = 0xaa
  1587. }
  1588. if len(m.ClientKeyPath) > 0 {
  1589. i -= len(m.ClientKeyPath)
  1590. copy(dAtA[i:], m.ClientKeyPath)
  1591. i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientKeyPath)))
  1592. i--
  1593. dAtA[i] = 0x19
  1594. i--
  1595. dAtA[i] = 0xa2
  1596. }
  1597. if len(m.ClientKeyData) > 0 {
  1598. i -= len(m.ClientKeyData)
  1599. copy(dAtA[i:], m.ClientKeyData)
  1600. i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientKeyData)))
  1601. i--
  1602. dAtA[i] = 0x19
  1603. i--
  1604. dAtA[i] = 0x9a
  1605. }
  1606. if len(m.ClientCertPath) > 0 {
  1607. i -= len(m.ClientCertPath)
  1608. copy(dAtA[i:], m.ClientCertPath)
  1609. i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientCertPath)))
  1610. i--
  1611. dAtA[i] = 0x19
  1612. i--
  1613. dAtA[i] = 0x92
  1614. }
  1615. if len(m.ClientCertData) > 0 {
  1616. i -= len(m.ClientCertData)
  1617. copy(dAtA[i:], m.ClientCertData)
  1618. i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientCertData)))
  1619. i--
  1620. dAtA[i] = 0x19
  1621. i--
  1622. dAtA[i] = 0x8a
  1623. }
  1624. if m.EtcdOnSnapshotRestore != nil {
  1625. {
  1626. size, err := m.EtcdOnSnapshotRestore.MarshalToSizedBuffer(dAtA[:i])
  1627. if err != nil {
  1628. return 0, err
  1629. }
  1630. i -= size
  1631. i = encodeVarintRpc(dAtA, i, uint64(size))
  1632. }
  1633. i--
  1634. dAtA[i] = 0x12
  1635. i--
  1636. dAtA[i] = 0xfa
  1637. }
  1638. if m.Etcd != nil {
  1639. {
  1640. size, err := m.Etcd.MarshalToSizedBuffer(dAtA[:i])
  1641. if err != nil {
  1642. return 0, err
  1643. }
  1644. i -= size
  1645. i = encodeVarintRpc(dAtA, i, uint64(size))
  1646. }
  1647. i--
  1648. dAtA[i] = 0x12
  1649. i--
  1650. dAtA[i] = 0xf2
  1651. }
  1652. if len(m.EtcdClientEndpoint) > 0 {
  1653. i -= len(m.EtcdClientEndpoint)
  1654. copy(dAtA[i:], m.EtcdClientEndpoint)
  1655. i = encodeVarintRpc(dAtA, i, uint64(len(m.EtcdClientEndpoint)))
  1656. i--
  1657. dAtA[i] = 0x12
  1658. i--
  1659. dAtA[i] = 0xea
  1660. }
  1661. if m.EtcdPeerProxy {
  1662. i--
  1663. if m.EtcdPeerProxy {
  1664. dAtA[i] = 1
  1665. } else {
  1666. dAtA[i] = 0
  1667. }
  1668. i--
  1669. dAtA[i] = 0xc
  1670. i--
  1671. dAtA[i] = 0xd0
  1672. }
  1673. if m.EtcdClientProxy {
  1674. i--
  1675. if m.EtcdClientProxy {
  1676. dAtA[i] = 1
  1677. } else {
  1678. dAtA[i] = 0
  1679. }
  1680. i--
  1681. dAtA[i] = 0xc
  1682. i--
  1683. dAtA[i] = 0xc8
  1684. }
  1685. if len(m.BaseDir) > 0 {
  1686. i -= len(m.BaseDir)
  1687. copy(dAtA[i:], m.BaseDir)
  1688. i = encodeVarintRpc(dAtA, i, uint64(len(m.BaseDir)))
  1689. i--
  1690. dAtA[i] = 0x6
  1691. i--
  1692. dAtA[i] = 0xaa
  1693. }
  1694. if len(m.FailpointHTTPAddr) > 0 {
  1695. i -= len(m.FailpointHTTPAddr)
  1696. copy(dAtA[i:], m.FailpointHTTPAddr)
  1697. i = encodeVarintRpc(dAtA, i, uint64(len(m.FailpointHTTPAddr)))
  1698. i--
  1699. dAtA[i] = 0x62
  1700. }
  1701. if len(m.AgentAddr) > 0 {
  1702. i -= len(m.AgentAddr)
  1703. copy(dAtA[i:], m.AgentAddr)
  1704. i = encodeVarintRpc(dAtA, i, uint64(len(m.AgentAddr)))
  1705. i--
  1706. dAtA[i] = 0x5a
  1707. }
  1708. if len(m.EtcdExec) > 0 {
  1709. i -= len(m.EtcdExec)
  1710. copy(dAtA[i:], m.EtcdExec)
  1711. i = encodeVarintRpc(dAtA, i, uint64(len(m.EtcdExec)))
  1712. i--
  1713. dAtA[i] = 0xa
  1714. }
  1715. return len(dAtA) - i, nil
  1716. }
  1717. func (m *Tester) Marshal() (dAtA []byte, err error) {
  1718. size := m.Size()
  1719. dAtA = make([]byte, size)
  1720. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1721. if err != nil {
  1722. return nil, err
  1723. }
  1724. return dAtA[:n], nil
  1725. }
  1726. func (m *Tester) MarshalTo(dAtA []byte) (int, error) {
  1727. size := m.Size()
  1728. return m.MarshalToSizedBuffer(dAtA[:size])
  1729. }
  1730. func (m *Tester) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1731. i := len(dAtA)
  1732. _ = i
  1733. var l int
  1734. _ = l
  1735. if m.XXX_unrecognized != nil {
  1736. i -= len(m.XXX_unrecognized)
  1737. copy(dAtA[i:], m.XXX_unrecognized)
  1738. }
  1739. if m.StressQPS != 0 {
  1740. i = encodeVarintRpc(dAtA, i, uint64(m.StressQPS))
  1741. i--
  1742. dAtA[i] = 0x12
  1743. i--
  1744. dAtA[i] = 0xf0
  1745. }
  1746. if m.StressClients != 0 {
  1747. i = encodeVarintRpc(dAtA, i, uint64(m.StressClients))
  1748. i--
  1749. dAtA[i] = 0x12
  1750. i--
  1751. dAtA[i] = 0xe8
  1752. }
  1753. if m.StressKeyTxnOps != 0 {
  1754. i = encodeVarintRpc(dAtA, i, uint64(m.StressKeyTxnOps))
  1755. i--
  1756. dAtA[i] = 0xc
  1757. i--
  1758. dAtA[i] = 0xe8
  1759. }
  1760. if m.StressKeySuffixRangeTxn != 0 {
  1761. i = encodeVarintRpc(dAtA, i, uint64(m.StressKeySuffixRangeTxn))
  1762. i--
  1763. dAtA[i] = 0xc
  1764. i--
  1765. dAtA[i] = 0xe0
  1766. }
  1767. if m.StressKeySuffixRange != 0 {
  1768. i = encodeVarintRpc(dAtA, i, uint64(m.StressKeySuffixRange))
  1769. i--
  1770. dAtA[i] = 0xc
  1771. i--
  1772. dAtA[i] = 0xd8
  1773. }
  1774. if m.StressKeySizeLarge != 0 {
  1775. i = encodeVarintRpc(dAtA, i, uint64(m.StressKeySizeLarge))
  1776. i--
  1777. dAtA[i] = 0xc
  1778. i--
  1779. dAtA[i] = 0xd0
  1780. }
  1781. if m.StressKeySize != 0 {
  1782. i = encodeVarintRpc(dAtA, i, uint64(m.StressKeySize))
  1783. i--
  1784. dAtA[i] = 0xc
  1785. i--
  1786. dAtA[i] = 0xc8
  1787. }
  1788. if len(m.Checkers) > 0 {
  1789. for iNdEx := len(m.Checkers) - 1; iNdEx >= 0; iNdEx-- {
  1790. i -= len(m.Checkers[iNdEx])
  1791. copy(dAtA[i:], m.Checkers[iNdEx])
  1792. i = encodeVarintRpc(dAtA, i, uint64(len(m.Checkers[iNdEx])))
  1793. i--
  1794. dAtA[i] = 0x6
  1795. i--
  1796. dAtA[i] = 0xb2
  1797. }
  1798. }
  1799. if len(m.Stressers) > 0 {
  1800. for iNdEx := len(m.Stressers) - 1; iNdEx >= 0; iNdEx-- {
  1801. {
  1802. size, err := m.Stressers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1803. if err != nil {
  1804. return 0, err
  1805. }
  1806. i -= size
  1807. i = encodeVarintRpc(dAtA, i, uint64(size))
  1808. }
  1809. i--
  1810. dAtA[i] = 0x6
  1811. i--
  1812. dAtA[i] = 0xaa
  1813. }
  1814. }
  1815. if len(m.ExternalExecPath) > 0 {
  1816. i -= len(m.ExternalExecPath)
  1817. copy(dAtA[i:], m.ExternalExecPath)
  1818. i = encodeVarintRpc(dAtA, i, uint64(len(m.ExternalExecPath)))
  1819. i--
  1820. dAtA[i] = 0x2
  1821. i--
  1822. dAtA[i] = 0xd2
  1823. }
  1824. if len(m.RunnerExecPath) > 0 {
  1825. i -= len(m.RunnerExecPath)
  1826. copy(dAtA[i:], m.RunnerExecPath)
  1827. i = encodeVarintRpc(dAtA, i, uint64(len(m.RunnerExecPath)))
  1828. i--
  1829. dAtA[i] = 0x2
  1830. i--
  1831. dAtA[i] = 0xca
  1832. }
  1833. if len(m.FailpointCommands) > 0 {
  1834. for iNdEx := len(m.FailpointCommands) - 1; iNdEx >= 0; iNdEx-- {
  1835. i -= len(m.FailpointCommands[iNdEx])
  1836. copy(dAtA[i:], m.FailpointCommands[iNdEx])
  1837. i = encodeVarintRpc(dAtA, i, uint64(len(m.FailpointCommands[iNdEx])))
  1838. i--
  1839. dAtA[i] = 0x2
  1840. i--
  1841. dAtA[i] = 0x92
  1842. }
  1843. }
  1844. if len(m.Cases) > 0 {
  1845. for iNdEx := len(m.Cases) - 1; iNdEx >= 0; iNdEx-- {
  1846. i -= len(m.Cases[iNdEx])
  1847. copy(dAtA[i:], m.Cases[iNdEx])
  1848. i = encodeVarintRpc(dAtA, i, uint64(len(m.Cases[iNdEx])))
  1849. i--
  1850. dAtA[i] = 0x2
  1851. i--
  1852. dAtA[i] = 0x8a
  1853. }
  1854. }
  1855. if m.CaseShuffle {
  1856. i--
  1857. if m.CaseShuffle {
  1858. dAtA[i] = 1
  1859. } else {
  1860. dAtA[i] = 0
  1861. }
  1862. i--
  1863. dAtA[i] = 0x2
  1864. i--
  1865. dAtA[i] = 0x80
  1866. }
  1867. if m.CaseDelayMs != 0 {
  1868. i = encodeVarintRpc(dAtA, i, uint64(m.CaseDelayMs))
  1869. i--
  1870. dAtA[i] = 0x1
  1871. i--
  1872. dAtA[i] = 0xf8
  1873. }
  1874. if m.EnablePprof {
  1875. i--
  1876. if m.EnablePprof {
  1877. dAtA[i] = 1
  1878. } else {
  1879. dAtA[i] = 0
  1880. }
  1881. i--
  1882. dAtA[i] = 0x1
  1883. i--
  1884. dAtA[i] = 0xb8
  1885. }
  1886. if m.ExitOnCaseFail {
  1887. i--
  1888. if m.ExitOnCaseFail {
  1889. dAtA[i] = 1
  1890. } else {
  1891. dAtA[i] = 0
  1892. }
  1893. i--
  1894. dAtA[i] = 0x1
  1895. i--
  1896. dAtA[i] = 0xb0
  1897. }
  1898. if m.RoundLimit != 0 {
  1899. i = encodeVarintRpc(dAtA, i, uint64(m.RoundLimit))
  1900. i--
  1901. dAtA[i] = 0x1
  1902. i--
  1903. dAtA[i] = 0xa8
  1904. }
  1905. if m.UpdatedDelayLatencyMs != 0 {
  1906. i = encodeVarintRpc(dAtA, i, uint64(m.UpdatedDelayLatencyMs))
  1907. i--
  1908. dAtA[i] = 0x68
  1909. }
  1910. if m.DelayLatencyMsRv != 0 {
  1911. i = encodeVarintRpc(dAtA, i, uint64(m.DelayLatencyMsRv))
  1912. i--
  1913. dAtA[i] = 0x60
  1914. }
  1915. if m.DelayLatencyMs != 0 {
  1916. i = encodeVarintRpc(dAtA, i, uint64(m.DelayLatencyMs))
  1917. i--
  1918. dAtA[i] = 0x58
  1919. }
  1920. if len(m.Addr) > 0 {
  1921. i -= len(m.Addr)
  1922. copy(dAtA[i:], m.Addr)
  1923. i = encodeVarintRpc(dAtA, i, uint64(len(m.Addr)))
  1924. i--
  1925. dAtA[i] = 0x1a
  1926. }
  1927. if len(m.Network) > 0 {
  1928. i -= len(m.Network)
  1929. copy(dAtA[i:], m.Network)
  1930. i = encodeVarintRpc(dAtA, i, uint64(len(m.Network)))
  1931. i--
  1932. dAtA[i] = 0x12
  1933. }
  1934. if len(m.DataDir) > 0 {
  1935. i -= len(m.DataDir)
  1936. copy(dAtA[i:], m.DataDir)
  1937. i = encodeVarintRpc(dAtA, i, uint64(len(m.DataDir)))
  1938. i--
  1939. dAtA[i] = 0xa
  1940. }
  1941. return len(dAtA) - i, nil
  1942. }
  1943. func (m *Stresser) Marshal() (dAtA []byte, err error) {
  1944. size := m.Size()
  1945. dAtA = make([]byte, size)
  1946. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1947. if err != nil {
  1948. return nil, err
  1949. }
  1950. return dAtA[:n], nil
  1951. }
  1952. func (m *Stresser) MarshalTo(dAtA []byte) (int, error) {
  1953. size := m.Size()
  1954. return m.MarshalToSizedBuffer(dAtA[:size])
  1955. }
  1956. func (m *Stresser) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1957. i := len(dAtA)
  1958. _ = i
  1959. var l int
  1960. _ = l
  1961. if m.XXX_unrecognized != nil {
  1962. i -= len(m.XXX_unrecognized)
  1963. copy(dAtA[i:], m.XXX_unrecognized)
  1964. }
  1965. if m.Weight != 0 {
  1966. i -= 8
  1967. encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Weight))))
  1968. i--
  1969. dAtA[i] = 0x11
  1970. }
  1971. if len(m.Type) > 0 {
  1972. i -= len(m.Type)
  1973. copy(dAtA[i:], m.Type)
  1974. i = encodeVarintRpc(dAtA, i, uint64(len(m.Type)))
  1975. i--
  1976. dAtA[i] = 0xa
  1977. }
  1978. return len(dAtA) - i, nil
  1979. }
  1980. func (m *Etcd) Marshal() (dAtA []byte, err error) {
  1981. size := m.Size()
  1982. dAtA = make([]byte, size)
  1983. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1984. if err != nil {
  1985. return nil, err
  1986. }
  1987. return dAtA[:n], nil
  1988. }
  1989. func (m *Etcd) MarshalTo(dAtA []byte) (int, error) {
  1990. size := m.Size()
  1991. return m.MarshalToSizedBuffer(dAtA[:size])
  1992. }
  1993. func (m *Etcd) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1994. i := len(dAtA)
  1995. _ = i
  1996. var l int
  1997. _ = l
  1998. if m.XXX_unrecognized != nil {
  1999. i -= len(m.XXX_unrecognized)
  2000. copy(dAtA[i:], m.XXX_unrecognized)
  2001. }
  2002. if len(m.LogLevel) > 0 {
  2003. i -= len(m.LogLevel)
  2004. copy(dAtA[i:], m.LogLevel)
  2005. i = encodeVarintRpc(dAtA, i, uint64(len(m.LogLevel)))
  2006. i--
  2007. dAtA[i] = 0x4
  2008. i--
  2009. dAtA[i] = 0xca
  2010. }
  2011. if len(m.LogOutputs) > 0 {
  2012. for iNdEx := len(m.LogOutputs) - 1; iNdEx >= 0; iNdEx-- {
  2013. i -= len(m.LogOutputs[iNdEx])
  2014. copy(dAtA[i:], m.LogOutputs[iNdEx])
  2015. i = encodeVarintRpc(dAtA, i, uint64(len(m.LogOutputs[iNdEx])))
  2016. i--
  2017. dAtA[i] = 0x4
  2018. i--
  2019. dAtA[i] = 0xc2
  2020. }
  2021. }
  2022. if len(m.Logger) > 0 {
  2023. i -= len(m.Logger)
  2024. copy(dAtA[i:], m.Logger)
  2025. i = encodeVarintRpc(dAtA, i, uint64(len(m.Logger)))
  2026. i--
  2027. dAtA[i] = 0x4
  2028. i--
  2029. dAtA[i] = 0xba
  2030. }
  2031. if m.InitialCorruptCheck {
  2032. i--
  2033. if m.InitialCorruptCheck {
  2034. dAtA[i] = 1
  2035. } else {
  2036. dAtA[i] = 0
  2037. }
  2038. i--
  2039. dAtA[i] = 0x4
  2040. i--
  2041. dAtA[i] = 0x80
  2042. }
  2043. if m.PreVote {
  2044. i--
  2045. if m.PreVote {
  2046. dAtA[i] = 1
  2047. } else {
  2048. dAtA[i] = 0
  2049. }
  2050. i--
  2051. dAtA[i] = 0x3
  2052. i--
  2053. dAtA[i] = 0xf8
  2054. }
  2055. if m.QuotaBackendBytes != 0 {
  2056. i = encodeVarintRpc(dAtA, i, uint64(m.QuotaBackendBytes))
  2057. i--
  2058. dAtA[i] = 0x3
  2059. i--
  2060. dAtA[i] = 0xa0
  2061. }
  2062. if m.SnapshotCount != 0 {
  2063. i = encodeVarintRpc(dAtA, i, uint64(m.SnapshotCount))
  2064. i--
  2065. dAtA[i] = 0x3
  2066. i--
  2067. dAtA[i] = 0x98
  2068. }
  2069. if len(m.InitialClusterToken) > 0 {
  2070. i -= len(m.InitialClusterToken)
  2071. copy(dAtA[i:], m.InitialClusterToken)
  2072. i = encodeVarintRpc(dAtA, i, uint64(len(m.InitialClusterToken)))
  2073. i--
  2074. dAtA[i] = 0x2
  2075. i--
  2076. dAtA[i] = 0xda
  2077. }
  2078. if len(m.InitialClusterState) > 0 {
  2079. i -= len(m.InitialClusterState)
  2080. copy(dAtA[i:], m.InitialClusterState)
  2081. i = encodeVarintRpc(dAtA, i, uint64(len(m.InitialClusterState)))
  2082. i--
  2083. dAtA[i] = 0x2
  2084. i--
  2085. dAtA[i] = 0xd2
  2086. }
  2087. if len(m.InitialCluster) > 0 {
  2088. i -= len(m.InitialCluster)
  2089. copy(dAtA[i:], m.InitialCluster)
  2090. i = encodeVarintRpc(dAtA, i, uint64(len(m.InitialCluster)))
  2091. i--
  2092. dAtA[i] = 0x2
  2093. i--
  2094. dAtA[i] = 0xca
  2095. }
  2096. if len(m.PeerTrustedCAFile) > 0 {
  2097. i -= len(m.PeerTrustedCAFile)
  2098. copy(dAtA[i:], m.PeerTrustedCAFile)
  2099. i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerTrustedCAFile)))
  2100. i--
  2101. dAtA[i] = 0x2
  2102. i--
  2103. dAtA[i] = 0xaa
  2104. }
  2105. if len(m.PeerKeyFile) > 0 {
  2106. i -= len(m.PeerKeyFile)
  2107. copy(dAtA[i:], m.PeerKeyFile)
  2108. i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerKeyFile)))
  2109. i--
  2110. dAtA[i] = 0x2
  2111. i--
  2112. dAtA[i] = 0xa2
  2113. }
  2114. if len(m.PeerCertFile) > 0 {
  2115. i -= len(m.PeerCertFile)
  2116. copy(dAtA[i:], m.PeerCertFile)
  2117. i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerCertFile)))
  2118. i--
  2119. dAtA[i] = 0x2
  2120. i--
  2121. dAtA[i] = 0x9a
  2122. }
  2123. if m.PeerClientCertAuth {
  2124. i--
  2125. if m.PeerClientCertAuth {
  2126. dAtA[i] = 1
  2127. } else {
  2128. dAtA[i] = 0
  2129. }
  2130. i--
  2131. dAtA[i] = 0x2
  2132. i--
  2133. dAtA[i] = 0x90
  2134. }
  2135. if m.PeerAutoTLS {
  2136. i--
  2137. if m.PeerAutoTLS {
  2138. dAtA[i] = 1
  2139. } else {
  2140. dAtA[i] = 0
  2141. }
  2142. i--
  2143. dAtA[i] = 0x2
  2144. i--
  2145. dAtA[i] = 0x88
  2146. }
  2147. if len(m.AdvertisePeerURLs) > 0 {
  2148. for iNdEx := len(m.AdvertisePeerURLs) - 1; iNdEx >= 0; iNdEx-- {
  2149. i -= len(m.AdvertisePeerURLs[iNdEx])
  2150. copy(dAtA[i:], m.AdvertisePeerURLs[iNdEx])
  2151. i = encodeVarintRpc(dAtA, i, uint64(len(m.AdvertisePeerURLs[iNdEx])))
  2152. i--
  2153. dAtA[i] = 0x2
  2154. i--
  2155. dAtA[i] = 0x82
  2156. }
  2157. }
  2158. if len(m.ListenPeerURLs) > 0 {
  2159. for iNdEx := len(m.ListenPeerURLs) - 1; iNdEx >= 0; iNdEx-- {
  2160. i -= len(m.ListenPeerURLs[iNdEx])
  2161. copy(dAtA[i:], m.ListenPeerURLs[iNdEx])
  2162. i = encodeVarintRpc(dAtA, i, uint64(len(m.ListenPeerURLs[iNdEx])))
  2163. i--
  2164. dAtA[i] = 0x1
  2165. i--
  2166. dAtA[i] = 0xfa
  2167. }
  2168. }
  2169. if len(m.ClientTrustedCAFile) > 0 {
  2170. i -= len(m.ClientTrustedCAFile)
  2171. copy(dAtA[i:], m.ClientTrustedCAFile)
  2172. i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientTrustedCAFile)))
  2173. i--
  2174. dAtA[i] = 0x1
  2175. i--
  2176. dAtA[i] = 0xda
  2177. }
  2178. if len(m.ClientKeyFile) > 0 {
  2179. i -= len(m.ClientKeyFile)
  2180. copy(dAtA[i:], m.ClientKeyFile)
  2181. i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientKeyFile)))
  2182. i--
  2183. dAtA[i] = 0x1
  2184. i--
  2185. dAtA[i] = 0xd2
  2186. }
  2187. if len(m.ClientCertFile) > 0 {
  2188. i -= len(m.ClientCertFile)
  2189. copy(dAtA[i:], m.ClientCertFile)
  2190. i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientCertFile)))
  2191. i--
  2192. dAtA[i] = 0x1
  2193. i--
  2194. dAtA[i] = 0xca
  2195. }
  2196. if m.ClientCertAuth {
  2197. i--
  2198. if m.ClientCertAuth {
  2199. dAtA[i] = 1
  2200. } else {
  2201. dAtA[i] = 0
  2202. }
  2203. i--
  2204. dAtA[i] = 0x1
  2205. i--
  2206. dAtA[i] = 0xc0
  2207. }
  2208. if m.ClientAutoTLS {
  2209. i--
  2210. if m.ClientAutoTLS {
  2211. dAtA[i] = 1
  2212. } else {
  2213. dAtA[i] = 0
  2214. }
  2215. i--
  2216. dAtA[i] = 0x1
  2217. i--
  2218. dAtA[i] = 0xb8
  2219. }
  2220. if len(m.AdvertiseClientURLs) > 0 {
  2221. for iNdEx := len(m.AdvertiseClientURLs) - 1; iNdEx >= 0; iNdEx-- {
  2222. i -= len(m.AdvertiseClientURLs[iNdEx])
  2223. copy(dAtA[i:], m.AdvertiseClientURLs[iNdEx])
  2224. i = encodeVarintRpc(dAtA, i, uint64(len(m.AdvertiseClientURLs[iNdEx])))
  2225. i--
  2226. dAtA[i] = 0x1
  2227. i--
  2228. dAtA[i] = 0xb2
  2229. }
  2230. }
  2231. if len(m.ListenClientURLs) > 0 {
  2232. for iNdEx := len(m.ListenClientURLs) - 1; iNdEx >= 0; iNdEx-- {
  2233. i -= len(m.ListenClientURLs[iNdEx])
  2234. copy(dAtA[i:], m.ListenClientURLs[iNdEx])
  2235. i = encodeVarintRpc(dAtA, i, uint64(len(m.ListenClientURLs[iNdEx])))
  2236. i--
  2237. dAtA[i] = 0x1
  2238. i--
  2239. dAtA[i] = 0xaa
  2240. }
  2241. }
  2242. if m.ElectionTimeoutMs != 0 {
  2243. i = encodeVarintRpc(dAtA, i, uint64(m.ElectionTimeoutMs))
  2244. i--
  2245. dAtA[i] = 0x60
  2246. }
  2247. if m.HeartbeatIntervalMs != 0 {
  2248. i = encodeVarintRpc(dAtA, i, uint64(m.HeartbeatIntervalMs))
  2249. i--
  2250. dAtA[i] = 0x58
  2251. }
  2252. if len(m.WALDir) > 0 {
  2253. i -= len(m.WALDir)
  2254. copy(dAtA[i:], m.WALDir)
  2255. i = encodeVarintRpc(dAtA, i, uint64(len(m.WALDir)))
  2256. i--
  2257. dAtA[i] = 0x1a
  2258. }
  2259. if len(m.DataDir) > 0 {
  2260. i -= len(m.DataDir)
  2261. copy(dAtA[i:], m.DataDir)
  2262. i = encodeVarintRpc(dAtA, i, uint64(len(m.DataDir)))
  2263. i--
  2264. dAtA[i] = 0x12
  2265. }
  2266. if len(m.Name) > 0 {
  2267. i -= len(m.Name)
  2268. copy(dAtA[i:], m.Name)
  2269. i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
  2270. i--
  2271. dAtA[i] = 0xa
  2272. }
  2273. return len(dAtA) - i, nil
  2274. }
  2275. func encodeVarintRpc(dAtA []byte, offset int, v uint64) int {
  2276. offset -= sovRpc(v)
  2277. base := offset
  2278. for v >= 1<<7 {
  2279. dAtA[offset] = uint8(v&0x7f | 0x80)
  2280. v >>= 7
  2281. offset++
  2282. }
  2283. dAtA[offset] = uint8(v)
  2284. return base
  2285. }
  2286. func (m *Request) Size() (n int) {
  2287. if m == nil {
  2288. return 0
  2289. }
  2290. var l int
  2291. _ = l
  2292. if m.Operation != 0 {
  2293. n += 1 + sovRpc(uint64(m.Operation))
  2294. }
  2295. if m.Member != nil {
  2296. l = m.Member.Size()
  2297. n += 1 + l + sovRpc(uint64(l))
  2298. }
  2299. if m.Tester != nil {
  2300. l = m.Tester.Size()
  2301. n += 1 + l + sovRpc(uint64(l))
  2302. }
  2303. if m.XXX_unrecognized != nil {
  2304. n += len(m.XXX_unrecognized)
  2305. }
  2306. return n
  2307. }
  2308. func (m *SnapshotInfo) Size() (n int) {
  2309. if m == nil {
  2310. return 0
  2311. }
  2312. var l int
  2313. _ = l
  2314. l = len(m.MemberName)
  2315. if l > 0 {
  2316. n += 1 + l + sovRpc(uint64(l))
  2317. }
  2318. if len(m.MemberClientURLs) > 0 {
  2319. for _, s := range m.MemberClientURLs {
  2320. l = len(s)
  2321. n += 1 + l + sovRpc(uint64(l))
  2322. }
  2323. }
  2324. l = len(m.SnapshotPath)
  2325. if l > 0 {
  2326. n += 1 + l + sovRpc(uint64(l))
  2327. }
  2328. l = len(m.SnapshotFileSize)
  2329. if l > 0 {
  2330. n += 1 + l + sovRpc(uint64(l))
  2331. }
  2332. l = len(m.SnapshotTotalSize)
  2333. if l > 0 {
  2334. n += 1 + l + sovRpc(uint64(l))
  2335. }
  2336. if m.SnapshotTotalKey != 0 {
  2337. n += 1 + sovRpc(uint64(m.SnapshotTotalKey))
  2338. }
  2339. if m.SnapshotHash != 0 {
  2340. n += 1 + sovRpc(uint64(m.SnapshotHash))
  2341. }
  2342. if m.SnapshotRevision != 0 {
  2343. n += 1 + sovRpc(uint64(m.SnapshotRevision))
  2344. }
  2345. l = len(m.Took)
  2346. if l > 0 {
  2347. n += 1 + l + sovRpc(uint64(l))
  2348. }
  2349. if m.XXX_unrecognized != nil {
  2350. n += len(m.XXX_unrecognized)
  2351. }
  2352. return n
  2353. }
  2354. func (m *Response) Size() (n int) {
  2355. if m == nil {
  2356. return 0
  2357. }
  2358. var l int
  2359. _ = l
  2360. if m.Success {
  2361. n += 2
  2362. }
  2363. l = len(m.Status)
  2364. if l > 0 {
  2365. n += 1 + l + sovRpc(uint64(l))
  2366. }
  2367. if m.Member != nil {
  2368. l = m.Member.Size()
  2369. n += 1 + l + sovRpc(uint64(l))
  2370. }
  2371. if m.SnapshotInfo != nil {
  2372. l = m.SnapshotInfo.Size()
  2373. n += 1 + l + sovRpc(uint64(l))
  2374. }
  2375. if m.XXX_unrecognized != nil {
  2376. n += len(m.XXX_unrecognized)
  2377. }
  2378. return n
  2379. }
  2380. func (m *Member) Size() (n int) {
  2381. if m == nil {
  2382. return 0
  2383. }
  2384. var l int
  2385. _ = l
  2386. l = len(m.EtcdExec)
  2387. if l > 0 {
  2388. n += 1 + l + sovRpc(uint64(l))
  2389. }
  2390. l = len(m.AgentAddr)
  2391. if l > 0 {
  2392. n += 1 + l + sovRpc(uint64(l))
  2393. }
  2394. l = len(m.FailpointHTTPAddr)
  2395. if l > 0 {
  2396. n += 1 + l + sovRpc(uint64(l))
  2397. }
  2398. l = len(m.BaseDir)
  2399. if l > 0 {
  2400. n += 2 + l + sovRpc(uint64(l))
  2401. }
  2402. if m.EtcdClientProxy {
  2403. n += 3
  2404. }
  2405. if m.EtcdPeerProxy {
  2406. n += 3
  2407. }
  2408. l = len(m.EtcdClientEndpoint)
  2409. if l > 0 {
  2410. n += 2 + l + sovRpc(uint64(l))
  2411. }
  2412. if m.Etcd != nil {
  2413. l = m.Etcd.Size()
  2414. n += 2 + l + sovRpc(uint64(l))
  2415. }
  2416. if m.EtcdOnSnapshotRestore != nil {
  2417. l = m.EtcdOnSnapshotRestore.Size()
  2418. n += 2 + l + sovRpc(uint64(l))
  2419. }
  2420. l = len(m.ClientCertData)
  2421. if l > 0 {
  2422. n += 2 + l + sovRpc(uint64(l))
  2423. }
  2424. l = len(m.ClientCertPath)
  2425. if l > 0 {
  2426. n += 2 + l + sovRpc(uint64(l))
  2427. }
  2428. l = len(m.ClientKeyData)
  2429. if l > 0 {
  2430. n += 2 + l + sovRpc(uint64(l))
  2431. }
  2432. l = len(m.ClientKeyPath)
  2433. if l > 0 {
  2434. n += 2 + l + sovRpc(uint64(l))
  2435. }
  2436. l = len(m.ClientTrustedCAData)
  2437. if l > 0 {
  2438. n += 2 + l + sovRpc(uint64(l))
  2439. }
  2440. l = len(m.ClientTrustedCAPath)
  2441. if l > 0 {
  2442. n += 2 + l + sovRpc(uint64(l))
  2443. }
  2444. l = len(m.PeerCertData)
  2445. if l > 0 {
  2446. n += 2 + l + sovRpc(uint64(l))
  2447. }
  2448. l = len(m.PeerCertPath)
  2449. if l > 0 {
  2450. n += 2 + l + sovRpc(uint64(l))
  2451. }
  2452. l = len(m.PeerKeyData)
  2453. if l > 0 {
  2454. n += 2 + l + sovRpc(uint64(l))
  2455. }
  2456. l = len(m.PeerKeyPath)
  2457. if l > 0 {
  2458. n += 2 + l + sovRpc(uint64(l))
  2459. }
  2460. l = len(m.PeerTrustedCAData)
  2461. if l > 0 {
  2462. n += 2 + l + sovRpc(uint64(l))
  2463. }
  2464. l = len(m.PeerTrustedCAPath)
  2465. if l > 0 {
  2466. n += 2 + l + sovRpc(uint64(l))
  2467. }
  2468. l = len(m.SnapshotPath)
  2469. if l > 0 {
  2470. n += 2 + l + sovRpc(uint64(l))
  2471. }
  2472. if m.SnapshotInfo != nil {
  2473. l = m.SnapshotInfo.Size()
  2474. n += 2 + l + sovRpc(uint64(l))
  2475. }
  2476. if m.XXX_unrecognized != nil {
  2477. n += len(m.XXX_unrecognized)
  2478. }
  2479. return n
  2480. }
  2481. func (m *Tester) Size() (n int) {
  2482. if m == nil {
  2483. return 0
  2484. }
  2485. var l int
  2486. _ = l
  2487. l = len(m.DataDir)
  2488. if l > 0 {
  2489. n += 1 + l + sovRpc(uint64(l))
  2490. }
  2491. l = len(m.Network)
  2492. if l > 0 {
  2493. n += 1 + l + sovRpc(uint64(l))
  2494. }
  2495. l = len(m.Addr)
  2496. if l > 0 {
  2497. n += 1 + l + sovRpc(uint64(l))
  2498. }
  2499. if m.DelayLatencyMs != 0 {
  2500. n += 1 + sovRpc(uint64(m.DelayLatencyMs))
  2501. }
  2502. if m.DelayLatencyMsRv != 0 {
  2503. n += 1 + sovRpc(uint64(m.DelayLatencyMsRv))
  2504. }
  2505. if m.UpdatedDelayLatencyMs != 0 {
  2506. n += 1 + sovRpc(uint64(m.UpdatedDelayLatencyMs))
  2507. }
  2508. if m.RoundLimit != 0 {
  2509. n += 2 + sovRpc(uint64(m.RoundLimit))
  2510. }
  2511. if m.ExitOnCaseFail {
  2512. n += 3
  2513. }
  2514. if m.EnablePprof {
  2515. n += 3
  2516. }
  2517. if m.CaseDelayMs != 0 {
  2518. n += 2 + sovRpc(uint64(m.CaseDelayMs))
  2519. }
  2520. if m.CaseShuffle {
  2521. n += 3
  2522. }
  2523. if len(m.Cases) > 0 {
  2524. for _, s := range m.Cases {
  2525. l = len(s)
  2526. n += 2 + l + sovRpc(uint64(l))
  2527. }
  2528. }
  2529. if len(m.FailpointCommands) > 0 {
  2530. for _, s := range m.FailpointCommands {
  2531. l = len(s)
  2532. n += 2 + l + sovRpc(uint64(l))
  2533. }
  2534. }
  2535. l = len(m.RunnerExecPath)
  2536. if l > 0 {
  2537. n += 2 + l + sovRpc(uint64(l))
  2538. }
  2539. l = len(m.ExternalExecPath)
  2540. if l > 0 {
  2541. n += 2 + l + sovRpc(uint64(l))
  2542. }
  2543. if len(m.Stressers) > 0 {
  2544. for _, e := range m.Stressers {
  2545. l = e.Size()
  2546. n += 2 + l + sovRpc(uint64(l))
  2547. }
  2548. }
  2549. if len(m.Checkers) > 0 {
  2550. for _, s := range m.Checkers {
  2551. l = len(s)
  2552. n += 2 + l + sovRpc(uint64(l))
  2553. }
  2554. }
  2555. if m.StressKeySize != 0 {
  2556. n += 2 + sovRpc(uint64(m.StressKeySize))
  2557. }
  2558. if m.StressKeySizeLarge != 0 {
  2559. n += 2 + sovRpc(uint64(m.StressKeySizeLarge))
  2560. }
  2561. if m.StressKeySuffixRange != 0 {
  2562. n += 2 + sovRpc(uint64(m.StressKeySuffixRange))
  2563. }
  2564. if m.StressKeySuffixRangeTxn != 0 {
  2565. n += 2 + sovRpc(uint64(m.StressKeySuffixRangeTxn))
  2566. }
  2567. if m.StressKeyTxnOps != 0 {
  2568. n += 2 + sovRpc(uint64(m.StressKeyTxnOps))
  2569. }
  2570. if m.StressClients != 0 {
  2571. n += 2 + sovRpc(uint64(m.StressClients))
  2572. }
  2573. if m.StressQPS != 0 {
  2574. n += 2 + sovRpc(uint64(m.StressQPS))
  2575. }
  2576. if m.XXX_unrecognized != nil {
  2577. n += len(m.XXX_unrecognized)
  2578. }
  2579. return n
  2580. }
  2581. func (m *Stresser) Size() (n int) {
  2582. if m == nil {
  2583. return 0
  2584. }
  2585. var l int
  2586. _ = l
  2587. l = len(m.Type)
  2588. if l > 0 {
  2589. n += 1 + l + sovRpc(uint64(l))
  2590. }
  2591. if m.Weight != 0 {
  2592. n += 9
  2593. }
  2594. if m.XXX_unrecognized != nil {
  2595. n += len(m.XXX_unrecognized)
  2596. }
  2597. return n
  2598. }
  2599. func (m *Etcd) Size() (n int) {
  2600. if m == nil {
  2601. return 0
  2602. }
  2603. var l int
  2604. _ = l
  2605. l = len(m.Name)
  2606. if l > 0 {
  2607. n += 1 + l + sovRpc(uint64(l))
  2608. }
  2609. l = len(m.DataDir)
  2610. if l > 0 {
  2611. n += 1 + l + sovRpc(uint64(l))
  2612. }
  2613. l = len(m.WALDir)
  2614. if l > 0 {
  2615. n += 1 + l + sovRpc(uint64(l))
  2616. }
  2617. if m.HeartbeatIntervalMs != 0 {
  2618. n += 1 + sovRpc(uint64(m.HeartbeatIntervalMs))
  2619. }
  2620. if m.ElectionTimeoutMs != 0 {
  2621. n += 1 + sovRpc(uint64(m.ElectionTimeoutMs))
  2622. }
  2623. if len(m.ListenClientURLs) > 0 {
  2624. for _, s := range m.ListenClientURLs {
  2625. l = len(s)
  2626. n += 2 + l + sovRpc(uint64(l))
  2627. }
  2628. }
  2629. if len(m.AdvertiseClientURLs) > 0 {
  2630. for _, s := range m.AdvertiseClientURLs {
  2631. l = len(s)
  2632. n += 2 + l + sovRpc(uint64(l))
  2633. }
  2634. }
  2635. if m.ClientAutoTLS {
  2636. n += 3
  2637. }
  2638. if m.ClientCertAuth {
  2639. n += 3
  2640. }
  2641. l = len(m.ClientCertFile)
  2642. if l > 0 {
  2643. n += 2 + l + sovRpc(uint64(l))
  2644. }
  2645. l = len(m.ClientKeyFile)
  2646. if l > 0 {
  2647. n += 2 + l + sovRpc(uint64(l))
  2648. }
  2649. l = len(m.ClientTrustedCAFile)
  2650. if l > 0 {
  2651. n += 2 + l + sovRpc(uint64(l))
  2652. }
  2653. if len(m.ListenPeerURLs) > 0 {
  2654. for _, s := range m.ListenPeerURLs {
  2655. l = len(s)
  2656. n += 2 + l + sovRpc(uint64(l))
  2657. }
  2658. }
  2659. if len(m.AdvertisePeerURLs) > 0 {
  2660. for _, s := range m.AdvertisePeerURLs {
  2661. l = len(s)
  2662. n += 2 + l + sovRpc(uint64(l))
  2663. }
  2664. }
  2665. if m.PeerAutoTLS {
  2666. n += 3
  2667. }
  2668. if m.PeerClientCertAuth {
  2669. n += 3
  2670. }
  2671. l = len(m.PeerCertFile)
  2672. if l > 0 {
  2673. n += 2 + l + sovRpc(uint64(l))
  2674. }
  2675. l = len(m.PeerKeyFile)
  2676. if l > 0 {
  2677. n += 2 + l + sovRpc(uint64(l))
  2678. }
  2679. l = len(m.PeerTrustedCAFile)
  2680. if l > 0 {
  2681. n += 2 + l + sovRpc(uint64(l))
  2682. }
  2683. l = len(m.InitialCluster)
  2684. if l > 0 {
  2685. n += 2 + l + sovRpc(uint64(l))
  2686. }
  2687. l = len(m.InitialClusterState)
  2688. if l > 0 {
  2689. n += 2 + l + sovRpc(uint64(l))
  2690. }
  2691. l = len(m.InitialClusterToken)
  2692. if l > 0 {
  2693. n += 2 + l + sovRpc(uint64(l))
  2694. }
  2695. if m.SnapshotCount != 0 {
  2696. n += 2 + sovRpc(uint64(m.SnapshotCount))
  2697. }
  2698. if m.QuotaBackendBytes != 0 {
  2699. n += 2 + sovRpc(uint64(m.QuotaBackendBytes))
  2700. }
  2701. if m.PreVote {
  2702. n += 3
  2703. }
  2704. if m.InitialCorruptCheck {
  2705. n += 3
  2706. }
  2707. l = len(m.Logger)
  2708. if l > 0 {
  2709. n += 2 + l + sovRpc(uint64(l))
  2710. }
  2711. if len(m.LogOutputs) > 0 {
  2712. for _, s := range m.LogOutputs {
  2713. l = len(s)
  2714. n += 2 + l + sovRpc(uint64(l))
  2715. }
  2716. }
  2717. l = len(m.LogLevel)
  2718. if l > 0 {
  2719. n += 2 + l + sovRpc(uint64(l))
  2720. }
  2721. if m.XXX_unrecognized != nil {
  2722. n += len(m.XXX_unrecognized)
  2723. }
  2724. return n
  2725. }
  2726. func sovRpc(x uint64) (n int) {
  2727. return (math_bits.Len64(x|1) + 6) / 7
  2728. }
  2729. func sozRpc(x uint64) (n int) {
  2730. return sovRpc(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2731. }
  2732. func (m *Request) Unmarshal(dAtA []byte) error {
  2733. l := len(dAtA)
  2734. iNdEx := 0
  2735. for iNdEx < l {
  2736. preIndex := iNdEx
  2737. var wire uint64
  2738. for shift := uint(0); ; shift += 7 {
  2739. if shift >= 64 {
  2740. return ErrIntOverflowRpc
  2741. }
  2742. if iNdEx >= l {
  2743. return io.ErrUnexpectedEOF
  2744. }
  2745. b := dAtA[iNdEx]
  2746. iNdEx++
  2747. wire |= uint64(b&0x7F) << shift
  2748. if b < 0x80 {
  2749. break
  2750. }
  2751. }
  2752. fieldNum := int32(wire >> 3)
  2753. wireType := int(wire & 0x7)
  2754. if wireType == 4 {
  2755. return fmt.Errorf("proto: Request: wiretype end group for non-group")
  2756. }
  2757. if fieldNum <= 0 {
  2758. return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire)
  2759. }
  2760. switch fieldNum {
  2761. case 1:
  2762. if wireType != 0 {
  2763. return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType)
  2764. }
  2765. m.Operation = 0
  2766. for shift := uint(0); ; shift += 7 {
  2767. if shift >= 64 {
  2768. return ErrIntOverflowRpc
  2769. }
  2770. if iNdEx >= l {
  2771. return io.ErrUnexpectedEOF
  2772. }
  2773. b := dAtA[iNdEx]
  2774. iNdEx++
  2775. m.Operation |= Operation(b&0x7F) << shift
  2776. if b < 0x80 {
  2777. break
  2778. }
  2779. }
  2780. case 2:
  2781. if wireType != 2 {
  2782. return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType)
  2783. }
  2784. var msglen int
  2785. for shift := uint(0); ; shift += 7 {
  2786. if shift >= 64 {
  2787. return ErrIntOverflowRpc
  2788. }
  2789. if iNdEx >= l {
  2790. return io.ErrUnexpectedEOF
  2791. }
  2792. b := dAtA[iNdEx]
  2793. iNdEx++
  2794. msglen |= int(b&0x7F) << shift
  2795. if b < 0x80 {
  2796. break
  2797. }
  2798. }
  2799. if msglen < 0 {
  2800. return ErrInvalidLengthRpc
  2801. }
  2802. postIndex := iNdEx + msglen
  2803. if postIndex < 0 {
  2804. return ErrInvalidLengthRpc
  2805. }
  2806. if postIndex > l {
  2807. return io.ErrUnexpectedEOF
  2808. }
  2809. if m.Member == nil {
  2810. m.Member = &Member{}
  2811. }
  2812. if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2813. return err
  2814. }
  2815. iNdEx = postIndex
  2816. case 3:
  2817. if wireType != 2 {
  2818. return fmt.Errorf("proto: wrong wireType = %d for field Tester", wireType)
  2819. }
  2820. var msglen int
  2821. for shift := uint(0); ; shift += 7 {
  2822. if shift >= 64 {
  2823. return ErrIntOverflowRpc
  2824. }
  2825. if iNdEx >= l {
  2826. return io.ErrUnexpectedEOF
  2827. }
  2828. b := dAtA[iNdEx]
  2829. iNdEx++
  2830. msglen |= int(b&0x7F) << shift
  2831. if b < 0x80 {
  2832. break
  2833. }
  2834. }
  2835. if msglen < 0 {
  2836. return ErrInvalidLengthRpc
  2837. }
  2838. postIndex := iNdEx + msglen
  2839. if postIndex < 0 {
  2840. return ErrInvalidLengthRpc
  2841. }
  2842. if postIndex > l {
  2843. return io.ErrUnexpectedEOF
  2844. }
  2845. if m.Tester == nil {
  2846. m.Tester = &Tester{}
  2847. }
  2848. if err := m.Tester.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2849. return err
  2850. }
  2851. iNdEx = postIndex
  2852. default:
  2853. iNdEx = preIndex
  2854. skippy, err := skipRpc(dAtA[iNdEx:])
  2855. if err != nil {
  2856. return err
  2857. }
  2858. if skippy < 0 {
  2859. return ErrInvalidLengthRpc
  2860. }
  2861. if (iNdEx + skippy) < 0 {
  2862. return ErrInvalidLengthRpc
  2863. }
  2864. if (iNdEx + skippy) > l {
  2865. return io.ErrUnexpectedEOF
  2866. }
  2867. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2868. iNdEx += skippy
  2869. }
  2870. }
  2871. if iNdEx > l {
  2872. return io.ErrUnexpectedEOF
  2873. }
  2874. return nil
  2875. }
  2876. func (m *SnapshotInfo) Unmarshal(dAtA []byte) error {
  2877. l := len(dAtA)
  2878. iNdEx := 0
  2879. for iNdEx < l {
  2880. preIndex := iNdEx
  2881. var wire uint64
  2882. for shift := uint(0); ; shift += 7 {
  2883. if shift >= 64 {
  2884. return ErrIntOverflowRpc
  2885. }
  2886. if iNdEx >= l {
  2887. return io.ErrUnexpectedEOF
  2888. }
  2889. b := dAtA[iNdEx]
  2890. iNdEx++
  2891. wire |= uint64(b&0x7F) << shift
  2892. if b < 0x80 {
  2893. break
  2894. }
  2895. }
  2896. fieldNum := int32(wire >> 3)
  2897. wireType := int(wire & 0x7)
  2898. if wireType == 4 {
  2899. return fmt.Errorf("proto: SnapshotInfo: wiretype end group for non-group")
  2900. }
  2901. if fieldNum <= 0 {
  2902. return fmt.Errorf("proto: SnapshotInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  2903. }
  2904. switch fieldNum {
  2905. case 1:
  2906. if wireType != 2 {
  2907. return fmt.Errorf("proto: wrong wireType = %d for field MemberName", wireType)
  2908. }
  2909. var stringLen uint64
  2910. for shift := uint(0); ; shift += 7 {
  2911. if shift >= 64 {
  2912. return ErrIntOverflowRpc
  2913. }
  2914. if iNdEx >= l {
  2915. return io.ErrUnexpectedEOF
  2916. }
  2917. b := dAtA[iNdEx]
  2918. iNdEx++
  2919. stringLen |= uint64(b&0x7F) << shift
  2920. if b < 0x80 {
  2921. break
  2922. }
  2923. }
  2924. intStringLen := int(stringLen)
  2925. if intStringLen < 0 {
  2926. return ErrInvalidLengthRpc
  2927. }
  2928. postIndex := iNdEx + intStringLen
  2929. if postIndex < 0 {
  2930. return ErrInvalidLengthRpc
  2931. }
  2932. if postIndex > l {
  2933. return io.ErrUnexpectedEOF
  2934. }
  2935. m.MemberName = string(dAtA[iNdEx:postIndex])
  2936. iNdEx = postIndex
  2937. case 2:
  2938. if wireType != 2 {
  2939. return fmt.Errorf("proto: wrong wireType = %d for field MemberClientURLs", wireType)
  2940. }
  2941. var stringLen uint64
  2942. for shift := uint(0); ; shift += 7 {
  2943. if shift >= 64 {
  2944. return ErrIntOverflowRpc
  2945. }
  2946. if iNdEx >= l {
  2947. return io.ErrUnexpectedEOF
  2948. }
  2949. b := dAtA[iNdEx]
  2950. iNdEx++
  2951. stringLen |= uint64(b&0x7F) << shift
  2952. if b < 0x80 {
  2953. break
  2954. }
  2955. }
  2956. intStringLen := int(stringLen)
  2957. if intStringLen < 0 {
  2958. return ErrInvalidLengthRpc
  2959. }
  2960. postIndex := iNdEx + intStringLen
  2961. if postIndex < 0 {
  2962. return ErrInvalidLengthRpc
  2963. }
  2964. if postIndex > l {
  2965. return io.ErrUnexpectedEOF
  2966. }
  2967. m.MemberClientURLs = append(m.MemberClientURLs, string(dAtA[iNdEx:postIndex]))
  2968. iNdEx = postIndex
  2969. case 3:
  2970. if wireType != 2 {
  2971. return fmt.Errorf("proto: wrong wireType = %d for field SnapshotPath", wireType)
  2972. }
  2973. var stringLen uint64
  2974. for shift := uint(0); ; shift += 7 {
  2975. if shift >= 64 {
  2976. return ErrIntOverflowRpc
  2977. }
  2978. if iNdEx >= l {
  2979. return io.ErrUnexpectedEOF
  2980. }
  2981. b := dAtA[iNdEx]
  2982. iNdEx++
  2983. stringLen |= uint64(b&0x7F) << shift
  2984. if b < 0x80 {
  2985. break
  2986. }
  2987. }
  2988. intStringLen := int(stringLen)
  2989. if intStringLen < 0 {
  2990. return ErrInvalidLengthRpc
  2991. }
  2992. postIndex := iNdEx + intStringLen
  2993. if postIndex < 0 {
  2994. return ErrInvalidLengthRpc
  2995. }
  2996. if postIndex > l {
  2997. return io.ErrUnexpectedEOF
  2998. }
  2999. m.SnapshotPath = string(dAtA[iNdEx:postIndex])
  3000. iNdEx = postIndex
  3001. case 4:
  3002. if wireType != 2 {
  3003. return fmt.Errorf("proto: wrong wireType = %d for field SnapshotFileSize", wireType)
  3004. }
  3005. var stringLen uint64
  3006. for shift := uint(0); ; shift += 7 {
  3007. if shift >= 64 {
  3008. return ErrIntOverflowRpc
  3009. }
  3010. if iNdEx >= l {
  3011. return io.ErrUnexpectedEOF
  3012. }
  3013. b := dAtA[iNdEx]
  3014. iNdEx++
  3015. stringLen |= uint64(b&0x7F) << shift
  3016. if b < 0x80 {
  3017. break
  3018. }
  3019. }
  3020. intStringLen := int(stringLen)
  3021. if intStringLen < 0 {
  3022. return ErrInvalidLengthRpc
  3023. }
  3024. postIndex := iNdEx + intStringLen
  3025. if postIndex < 0 {
  3026. return ErrInvalidLengthRpc
  3027. }
  3028. if postIndex > l {
  3029. return io.ErrUnexpectedEOF
  3030. }
  3031. m.SnapshotFileSize = string(dAtA[iNdEx:postIndex])
  3032. iNdEx = postIndex
  3033. case 5:
  3034. if wireType != 2 {
  3035. return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTotalSize", wireType)
  3036. }
  3037. var stringLen uint64
  3038. for shift := uint(0); ; shift += 7 {
  3039. if shift >= 64 {
  3040. return ErrIntOverflowRpc
  3041. }
  3042. if iNdEx >= l {
  3043. return io.ErrUnexpectedEOF
  3044. }
  3045. b := dAtA[iNdEx]
  3046. iNdEx++
  3047. stringLen |= uint64(b&0x7F) << shift
  3048. if b < 0x80 {
  3049. break
  3050. }
  3051. }
  3052. intStringLen := int(stringLen)
  3053. if intStringLen < 0 {
  3054. return ErrInvalidLengthRpc
  3055. }
  3056. postIndex := iNdEx + intStringLen
  3057. if postIndex < 0 {
  3058. return ErrInvalidLengthRpc
  3059. }
  3060. if postIndex > l {
  3061. return io.ErrUnexpectedEOF
  3062. }
  3063. m.SnapshotTotalSize = string(dAtA[iNdEx:postIndex])
  3064. iNdEx = postIndex
  3065. case 6:
  3066. if wireType != 0 {
  3067. return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTotalKey", wireType)
  3068. }
  3069. m.SnapshotTotalKey = 0
  3070. for shift := uint(0); ; shift += 7 {
  3071. if shift >= 64 {
  3072. return ErrIntOverflowRpc
  3073. }
  3074. if iNdEx >= l {
  3075. return io.ErrUnexpectedEOF
  3076. }
  3077. b := dAtA[iNdEx]
  3078. iNdEx++
  3079. m.SnapshotTotalKey |= int64(b&0x7F) << shift
  3080. if b < 0x80 {
  3081. break
  3082. }
  3083. }
  3084. case 7:
  3085. if wireType != 0 {
  3086. return fmt.Errorf("proto: wrong wireType = %d for field SnapshotHash", wireType)
  3087. }
  3088. m.SnapshotHash = 0
  3089. for shift := uint(0); ; shift += 7 {
  3090. if shift >= 64 {
  3091. return ErrIntOverflowRpc
  3092. }
  3093. if iNdEx >= l {
  3094. return io.ErrUnexpectedEOF
  3095. }
  3096. b := dAtA[iNdEx]
  3097. iNdEx++
  3098. m.SnapshotHash |= int64(b&0x7F) << shift
  3099. if b < 0x80 {
  3100. break
  3101. }
  3102. }
  3103. case 8:
  3104. if wireType != 0 {
  3105. return fmt.Errorf("proto: wrong wireType = %d for field SnapshotRevision", wireType)
  3106. }
  3107. m.SnapshotRevision = 0
  3108. for shift := uint(0); ; shift += 7 {
  3109. if shift >= 64 {
  3110. return ErrIntOverflowRpc
  3111. }
  3112. if iNdEx >= l {
  3113. return io.ErrUnexpectedEOF
  3114. }
  3115. b := dAtA[iNdEx]
  3116. iNdEx++
  3117. m.SnapshotRevision |= int64(b&0x7F) << shift
  3118. if b < 0x80 {
  3119. break
  3120. }
  3121. }
  3122. case 9:
  3123. if wireType != 2 {
  3124. return fmt.Errorf("proto: wrong wireType = %d for field Took", wireType)
  3125. }
  3126. var stringLen uint64
  3127. for shift := uint(0); ; shift += 7 {
  3128. if shift >= 64 {
  3129. return ErrIntOverflowRpc
  3130. }
  3131. if iNdEx >= l {
  3132. return io.ErrUnexpectedEOF
  3133. }
  3134. b := dAtA[iNdEx]
  3135. iNdEx++
  3136. stringLen |= uint64(b&0x7F) << shift
  3137. if b < 0x80 {
  3138. break
  3139. }
  3140. }
  3141. intStringLen := int(stringLen)
  3142. if intStringLen < 0 {
  3143. return ErrInvalidLengthRpc
  3144. }
  3145. postIndex := iNdEx + intStringLen
  3146. if postIndex < 0 {
  3147. return ErrInvalidLengthRpc
  3148. }
  3149. if postIndex > l {
  3150. return io.ErrUnexpectedEOF
  3151. }
  3152. m.Took = string(dAtA[iNdEx:postIndex])
  3153. iNdEx = postIndex
  3154. default:
  3155. iNdEx = preIndex
  3156. skippy, err := skipRpc(dAtA[iNdEx:])
  3157. if err != nil {
  3158. return err
  3159. }
  3160. if skippy < 0 {
  3161. return ErrInvalidLengthRpc
  3162. }
  3163. if (iNdEx + skippy) < 0 {
  3164. return ErrInvalidLengthRpc
  3165. }
  3166. if (iNdEx + skippy) > l {
  3167. return io.ErrUnexpectedEOF
  3168. }
  3169. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3170. iNdEx += skippy
  3171. }
  3172. }
  3173. if iNdEx > l {
  3174. return io.ErrUnexpectedEOF
  3175. }
  3176. return nil
  3177. }
  3178. func (m *Response) Unmarshal(dAtA []byte) error {
  3179. l := len(dAtA)
  3180. iNdEx := 0
  3181. for iNdEx < l {
  3182. preIndex := iNdEx
  3183. var wire uint64
  3184. for shift := uint(0); ; shift += 7 {
  3185. if shift >= 64 {
  3186. return ErrIntOverflowRpc
  3187. }
  3188. if iNdEx >= l {
  3189. return io.ErrUnexpectedEOF
  3190. }
  3191. b := dAtA[iNdEx]
  3192. iNdEx++
  3193. wire |= uint64(b&0x7F) << shift
  3194. if b < 0x80 {
  3195. break
  3196. }
  3197. }
  3198. fieldNum := int32(wire >> 3)
  3199. wireType := int(wire & 0x7)
  3200. if wireType == 4 {
  3201. return fmt.Errorf("proto: Response: wiretype end group for non-group")
  3202. }
  3203. if fieldNum <= 0 {
  3204. return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire)
  3205. }
  3206. switch fieldNum {
  3207. case 1:
  3208. if wireType != 0 {
  3209. return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
  3210. }
  3211. var v int
  3212. for shift := uint(0); ; shift += 7 {
  3213. if shift >= 64 {
  3214. return ErrIntOverflowRpc
  3215. }
  3216. if iNdEx >= l {
  3217. return io.ErrUnexpectedEOF
  3218. }
  3219. b := dAtA[iNdEx]
  3220. iNdEx++
  3221. v |= int(b&0x7F) << shift
  3222. if b < 0x80 {
  3223. break
  3224. }
  3225. }
  3226. m.Success = bool(v != 0)
  3227. case 2:
  3228. if wireType != 2 {
  3229. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  3230. }
  3231. var stringLen uint64
  3232. for shift := uint(0); ; shift += 7 {
  3233. if shift >= 64 {
  3234. return ErrIntOverflowRpc
  3235. }
  3236. if iNdEx >= l {
  3237. return io.ErrUnexpectedEOF
  3238. }
  3239. b := dAtA[iNdEx]
  3240. iNdEx++
  3241. stringLen |= uint64(b&0x7F) << shift
  3242. if b < 0x80 {
  3243. break
  3244. }
  3245. }
  3246. intStringLen := int(stringLen)
  3247. if intStringLen < 0 {
  3248. return ErrInvalidLengthRpc
  3249. }
  3250. postIndex := iNdEx + intStringLen
  3251. if postIndex < 0 {
  3252. return ErrInvalidLengthRpc
  3253. }
  3254. if postIndex > l {
  3255. return io.ErrUnexpectedEOF
  3256. }
  3257. m.Status = string(dAtA[iNdEx:postIndex])
  3258. iNdEx = postIndex
  3259. case 3:
  3260. if wireType != 2 {
  3261. return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType)
  3262. }
  3263. var msglen int
  3264. for shift := uint(0); ; shift += 7 {
  3265. if shift >= 64 {
  3266. return ErrIntOverflowRpc
  3267. }
  3268. if iNdEx >= l {
  3269. return io.ErrUnexpectedEOF
  3270. }
  3271. b := dAtA[iNdEx]
  3272. iNdEx++
  3273. msglen |= int(b&0x7F) << shift
  3274. if b < 0x80 {
  3275. break
  3276. }
  3277. }
  3278. if msglen < 0 {
  3279. return ErrInvalidLengthRpc
  3280. }
  3281. postIndex := iNdEx + msglen
  3282. if postIndex < 0 {
  3283. return ErrInvalidLengthRpc
  3284. }
  3285. if postIndex > l {
  3286. return io.ErrUnexpectedEOF
  3287. }
  3288. if m.Member == nil {
  3289. m.Member = &Member{}
  3290. }
  3291. if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3292. return err
  3293. }
  3294. iNdEx = postIndex
  3295. case 4:
  3296. if wireType != 2 {
  3297. return fmt.Errorf("proto: wrong wireType = %d for field SnapshotInfo", wireType)
  3298. }
  3299. var msglen int
  3300. for shift := uint(0); ; shift += 7 {
  3301. if shift >= 64 {
  3302. return ErrIntOverflowRpc
  3303. }
  3304. if iNdEx >= l {
  3305. return io.ErrUnexpectedEOF
  3306. }
  3307. b := dAtA[iNdEx]
  3308. iNdEx++
  3309. msglen |= int(b&0x7F) << shift
  3310. if b < 0x80 {
  3311. break
  3312. }
  3313. }
  3314. if msglen < 0 {
  3315. return ErrInvalidLengthRpc
  3316. }
  3317. postIndex := iNdEx + msglen
  3318. if postIndex < 0 {
  3319. return ErrInvalidLengthRpc
  3320. }
  3321. if postIndex > l {
  3322. return io.ErrUnexpectedEOF
  3323. }
  3324. if m.SnapshotInfo == nil {
  3325. m.SnapshotInfo = &SnapshotInfo{}
  3326. }
  3327. if err := m.SnapshotInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3328. return err
  3329. }
  3330. iNdEx = postIndex
  3331. default:
  3332. iNdEx = preIndex
  3333. skippy, err := skipRpc(dAtA[iNdEx:])
  3334. if err != nil {
  3335. return err
  3336. }
  3337. if skippy < 0 {
  3338. return ErrInvalidLengthRpc
  3339. }
  3340. if (iNdEx + skippy) < 0 {
  3341. return ErrInvalidLengthRpc
  3342. }
  3343. if (iNdEx + skippy) > l {
  3344. return io.ErrUnexpectedEOF
  3345. }
  3346. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3347. iNdEx += skippy
  3348. }
  3349. }
  3350. if iNdEx > l {
  3351. return io.ErrUnexpectedEOF
  3352. }
  3353. return nil
  3354. }
  3355. func (m *Member) Unmarshal(dAtA []byte) error {
  3356. l := len(dAtA)
  3357. iNdEx := 0
  3358. for iNdEx < l {
  3359. preIndex := iNdEx
  3360. var wire uint64
  3361. for shift := uint(0); ; shift += 7 {
  3362. if shift >= 64 {
  3363. return ErrIntOverflowRpc
  3364. }
  3365. if iNdEx >= l {
  3366. return io.ErrUnexpectedEOF
  3367. }
  3368. b := dAtA[iNdEx]
  3369. iNdEx++
  3370. wire |= uint64(b&0x7F) << shift
  3371. if b < 0x80 {
  3372. break
  3373. }
  3374. }
  3375. fieldNum := int32(wire >> 3)
  3376. wireType := int(wire & 0x7)
  3377. if wireType == 4 {
  3378. return fmt.Errorf("proto: Member: wiretype end group for non-group")
  3379. }
  3380. if fieldNum <= 0 {
  3381. return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire)
  3382. }
  3383. switch fieldNum {
  3384. case 1:
  3385. if wireType != 2 {
  3386. return fmt.Errorf("proto: wrong wireType = %d for field EtcdExec", wireType)
  3387. }
  3388. var stringLen uint64
  3389. for shift := uint(0); ; shift += 7 {
  3390. if shift >= 64 {
  3391. return ErrIntOverflowRpc
  3392. }
  3393. if iNdEx >= l {
  3394. return io.ErrUnexpectedEOF
  3395. }
  3396. b := dAtA[iNdEx]
  3397. iNdEx++
  3398. stringLen |= uint64(b&0x7F) << shift
  3399. if b < 0x80 {
  3400. break
  3401. }
  3402. }
  3403. intStringLen := int(stringLen)
  3404. if intStringLen < 0 {
  3405. return ErrInvalidLengthRpc
  3406. }
  3407. postIndex := iNdEx + intStringLen
  3408. if postIndex < 0 {
  3409. return ErrInvalidLengthRpc
  3410. }
  3411. if postIndex > l {
  3412. return io.ErrUnexpectedEOF
  3413. }
  3414. m.EtcdExec = string(dAtA[iNdEx:postIndex])
  3415. iNdEx = postIndex
  3416. case 11:
  3417. if wireType != 2 {
  3418. return fmt.Errorf("proto: wrong wireType = %d for field AgentAddr", wireType)
  3419. }
  3420. var stringLen uint64
  3421. for shift := uint(0); ; shift += 7 {
  3422. if shift >= 64 {
  3423. return ErrIntOverflowRpc
  3424. }
  3425. if iNdEx >= l {
  3426. return io.ErrUnexpectedEOF
  3427. }
  3428. b := dAtA[iNdEx]
  3429. iNdEx++
  3430. stringLen |= uint64(b&0x7F) << shift
  3431. if b < 0x80 {
  3432. break
  3433. }
  3434. }
  3435. intStringLen := int(stringLen)
  3436. if intStringLen < 0 {
  3437. return ErrInvalidLengthRpc
  3438. }
  3439. postIndex := iNdEx + intStringLen
  3440. if postIndex < 0 {
  3441. return ErrInvalidLengthRpc
  3442. }
  3443. if postIndex > l {
  3444. return io.ErrUnexpectedEOF
  3445. }
  3446. m.AgentAddr = string(dAtA[iNdEx:postIndex])
  3447. iNdEx = postIndex
  3448. case 12:
  3449. if wireType != 2 {
  3450. return fmt.Errorf("proto: wrong wireType = %d for field FailpointHTTPAddr", wireType)
  3451. }
  3452. var stringLen uint64
  3453. for shift := uint(0); ; shift += 7 {
  3454. if shift >= 64 {
  3455. return ErrIntOverflowRpc
  3456. }
  3457. if iNdEx >= l {
  3458. return io.ErrUnexpectedEOF
  3459. }
  3460. b := dAtA[iNdEx]
  3461. iNdEx++
  3462. stringLen |= uint64(b&0x7F) << shift
  3463. if b < 0x80 {
  3464. break
  3465. }
  3466. }
  3467. intStringLen := int(stringLen)
  3468. if intStringLen < 0 {
  3469. return ErrInvalidLengthRpc
  3470. }
  3471. postIndex := iNdEx + intStringLen
  3472. if postIndex < 0 {
  3473. return ErrInvalidLengthRpc
  3474. }
  3475. if postIndex > l {
  3476. return io.ErrUnexpectedEOF
  3477. }
  3478. m.FailpointHTTPAddr = string(dAtA[iNdEx:postIndex])
  3479. iNdEx = postIndex
  3480. case 101:
  3481. if wireType != 2 {
  3482. return fmt.Errorf("proto: wrong wireType = %d for field BaseDir", wireType)
  3483. }
  3484. var stringLen uint64
  3485. for shift := uint(0); ; shift += 7 {
  3486. if shift >= 64 {
  3487. return ErrIntOverflowRpc
  3488. }
  3489. if iNdEx >= l {
  3490. return io.ErrUnexpectedEOF
  3491. }
  3492. b := dAtA[iNdEx]
  3493. iNdEx++
  3494. stringLen |= uint64(b&0x7F) << shift
  3495. if b < 0x80 {
  3496. break
  3497. }
  3498. }
  3499. intStringLen := int(stringLen)
  3500. if intStringLen < 0 {
  3501. return ErrInvalidLengthRpc
  3502. }
  3503. postIndex := iNdEx + intStringLen
  3504. if postIndex < 0 {
  3505. return ErrInvalidLengthRpc
  3506. }
  3507. if postIndex > l {
  3508. return io.ErrUnexpectedEOF
  3509. }
  3510. m.BaseDir = string(dAtA[iNdEx:postIndex])
  3511. iNdEx = postIndex
  3512. case 201:
  3513. if wireType != 0 {
  3514. return fmt.Errorf("proto: wrong wireType = %d for field EtcdClientProxy", wireType)
  3515. }
  3516. var v int
  3517. for shift := uint(0); ; shift += 7 {
  3518. if shift >= 64 {
  3519. return ErrIntOverflowRpc
  3520. }
  3521. if iNdEx >= l {
  3522. return io.ErrUnexpectedEOF
  3523. }
  3524. b := dAtA[iNdEx]
  3525. iNdEx++
  3526. v |= int(b&0x7F) << shift
  3527. if b < 0x80 {
  3528. break
  3529. }
  3530. }
  3531. m.EtcdClientProxy = bool(v != 0)
  3532. case 202:
  3533. if wireType != 0 {
  3534. return fmt.Errorf("proto: wrong wireType = %d for field EtcdPeerProxy", wireType)
  3535. }
  3536. var v int
  3537. for shift := uint(0); ; shift += 7 {
  3538. if shift >= 64 {
  3539. return ErrIntOverflowRpc
  3540. }
  3541. if iNdEx >= l {
  3542. return io.ErrUnexpectedEOF
  3543. }
  3544. b := dAtA[iNdEx]
  3545. iNdEx++
  3546. v |= int(b&0x7F) << shift
  3547. if b < 0x80 {
  3548. break
  3549. }
  3550. }
  3551. m.EtcdPeerProxy = bool(v != 0)
  3552. case 301:
  3553. if wireType != 2 {
  3554. return fmt.Errorf("proto: wrong wireType = %d for field EtcdClientEndpoint", wireType)
  3555. }
  3556. var stringLen uint64
  3557. for shift := uint(0); ; shift += 7 {
  3558. if shift >= 64 {
  3559. return ErrIntOverflowRpc
  3560. }
  3561. if iNdEx >= l {
  3562. return io.ErrUnexpectedEOF
  3563. }
  3564. b := dAtA[iNdEx]
  3565. iNdEx++
  3566. stringLen |= uint64(b&0x7F) << shift
  3567. if b < 0x80 {
  3568. break
  3569. }
  3570. }
  3571. intStringLen := int(stringLen)
  3572. if intStringLen < 0 {
  3573. return ErrInvalidLengthRpc
  3574. }
  3575. postIndex := iNdEx + intStringLen
  3576. if postIndex < 0 {
  3577. return ErrInvalidLengthRpc
  3578. }
  3579. if postIndex > l {
  3580. return io.ErrUnexpectedEOF
  3581. }
  3582. m.EtcdClientEndpoint = string(dAtA[iNdEx:postIndex])
  3583. iNdEx = postIndex
  3584. case 302:
  3585. if wireType != 2 {
  3586. return fmt.Errorf("proto: wrong wireType = %d for field Etcd", wireType)
  3587. }
  3588. var msglen int
  3589. for shift := uint(0); ; shift += 7 {
  3590. if shift >= 64 {
  3591. return ErrIntOverflowRpc
  3592. }
  3593. if iNdEx >= l {
  3594. return io.ErrUnexpectedEOF
  3595. }
  3596. b := dAtA[iNdEx]
  3597. iNdEx++
  3598. msglen |= int(b&0x7F) << shift
  3599. if b < 0x80 {
  3600. break
  3601. }
  3602. }
  3603. if msglen < 0 {
  3604. return ErrInvalidLengthRpc
  3605. }
  3606. postIndex := iNdEx + msglen
  3607. if postIndex < 0 {
  3608. return ErrInvalidLengthRpc
  3609. }
  3610. if postIndex > l {
  3611. return io.ErrUnexpectedEOF
  3612. }
  3613. if m.Etcd == nil {
  3614. m.Etcd = &Etcd{}
  3615. }
  3616. if err := m.Etcd.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3617. return err
  3618. }
  3619. iNdEx = postIndex
  3620. case 303:
  3621. if wireType != 2 {
  3622. return fmt.Errorf("proto: wrong wireType = %d for field EtcdOnSnapshotRestore", wireType)
  3623. }
  3624. var msglen int
  3625. for shift := uint(0); ; shift += 7 {
  3626. if shift >= 64 {
  3627. return ErrIntOverflowRpc
  3628. }
  3629. if iNdEx >= l {
  3630. return io.ErrUnexpectedEOF
  3631. }
  3632. b := dAtA[iNdEx]
  3633. iNdEx++
  3634. msglen |= int(b&0x7F) << shift
  3635. if b < 0x80 {
  3636. break
  3637. }
  3638. }
  3639. if msglen < 0 {
  3640. return ErrInvalidLengthRpc
  3641. }
  3642. postIndex := iNdEx + msglen
  3643. if postIndex < 0 {
  3644. return ErrInvalidLengthRpc
  3645. }
  3646. if postIndex > l {
  3647. return io.ErrUnexpectedEOF
  3648. }
  3649. if m.EtcdOnSnapshotRestore == nil {
  3650. m.EtcdOnSnapshotRestore = &Etcd{}
  3651. }
  3652. if err := m.EtcdOnSnapshotRestore.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3653. return err
  3654. }
  3655. iNdEx = postIndex
  3656. case 401:
  3657. if wireType != 2 {
  3658. return fmt.Errorf("proto: wrong wireType = %d for field ClientCertData", wireType)
  3659. }
  3660. var stringLen uint64
  3661. for shift := uint(0); ; shift += 7 {
  3662. if shift >= 64 {
  3663. return ErrIntOverflowRpc
  3664. }
  3665. if iNdEx >= l {
  3666. return io.ErrUnexpectedEOF
  3667. }
  3668. b := dAtA[iNdEx]
  3669. iNdEx++
  3670. stringLen |= uint64(b&0x7F) << shift
  3671. if b < 0x80 {
  3672. break
  3673. }
  3674. }
  3675. intStringLen := int(stringLen)
  3676. if intStringLen < 0 {
  3677. return ErrInvalidLengthRpc
  3678. }
  3679. postIndex := iNdEx + intStringLen
  3680. if postIndex < 0 {
  3681. return ErrInvalidLengthRpc
  3682. }
  3683. if postIndex > l {
  3684. return io.ErrUnexpectedEOF
  3685. }
  3686. m.ClientCertData = string(dAtA[iNdEx:postIndex])
  3687. iNdEx = postIndex
  3688. case 402:
  3689. if wireType != 2 {
  3690. return fmt.Errorf("proto: wrong wireType = %d for field ClientCertPath", wireType)
  3691. }
  3692. var stringLen uint64
  3693. for shift := uint(0); ; shift += 7 {
  3694. if shift >= 64 {
  3695. return ErrIntOverflowRpc
  3696. }
  3697. if iNdEx >= l {
  3698. return io.ErrUnexpectedEOF
  3699. }
  3700. b := dAtA[iNdEx]
  3701. iNdEx++
  3702. stringLen |= uint64(b&0x7F) << shift
  3703. if b < 0x80 {
  3704. break
  3705. }
  3706. }
  3707. intStringLen := int(stringLen)
  3708. if intStringLen < 0 {
  3709. return ErrInvalidLengthRpc
  3710. }
  3711. postIndex := iNdEx + intStringLen
  3712. if postIndex < 0 {
  3713. return ErrInvalidLengthRpc
  3714. }
  3715. if postIndex > l {
  3716. return io.ErrUnexpectedEOF
  3717. }
  3718. m.ClientCertPath = string(dAtA[iNdEx:postIndex])
  3719. iNdEx = postIndex
  3720. case 403:
  3721. if wireType != 2 {
  3722. return fmt.Errorf("proto: wrong wireType = %d for field ClientKeyData", wireType)
  3723. }
  3724. var stringLen uint64
  3725. for shift := uint(0); ; shift += 7 {
  3726. if shift >= 64 {
  3727. return ErrIntOverflowRpc
  3728. }
  3729. if iNdEx >= l {
  3730. return io.ErrUnexpectedEOF
  3731. }
  3732. b := dAtA[iNdEx]
  3733. iNdEx++
  3734. stringLen |= uint64(b&0x7F) << shift
  3735. if b < 0x80 {
  3736. break
  3737. }
  3738. }
  3739. intStringLen := int(stringLen)
  3740. if intStringLen < 0 {
  3741. return ErrInvalidLengthRpc
  3742. }
  3743. postIndex := iNdEx + intStringLen
  3744. if postIndex < 0 {
  3745. return ErrInvalidLengthRpc
  3746. }
  3747. if postIndex > l {
  3748. return io.ErrUnexpectedEOF
  3749. }
  3750. m.ClientKeyData = string(dAtA[iNdEx:postIndex])
  3751. iNdEx = postIndex
  3752. case 404:
  3753. if wireType != 2 {
  3754. return fmt.Errorf("proto: wrong wireType = %d for field ClientKeyPath", wireType)
  3755. }
  3756. var stringLen uint64
  3757. for shift := uint(0); ; shift += 7 {
  3758. if shift >= 64 {
  3759. return ErrIntOverflowRpc
  3760. }
  3761. if iNdEx >= l {
  3762. return io.ErrUnexpectedEOF
  3763. }
  3764. b := dAtA[iNdEx]
  3765. iNdEx++
  3766. stringLen |= uint64(b&0x7F) << shift
  3767. if b < 0x80 {
  3768. break
  3769. }
  3770. }
  3771. intStringLen := int(stringLen)
  3772. if intStringLen < 0 {
  3773. return ErrInvalidLengthRpc
  3774. }
  3775. postIndex := iNdEx + intStringLen
  3776. if postIndex < 0 {
  3777. return ErrInvalidLengthRpc
  3778. }
  3779. if postIndex > l {
  3780. return io.ErrUnexpectedEOF
  3781. }
  3782. m.ClientKeyPath = string(dAtA[iNdEx:postIndex])
  3783. iNdEx = postIndex
  3784. case 405:
  3785. if wireType != 2 {
  3786. return fmt.Errorf("proto: wrong wireType = %d for field ClientTrustedCAData", wireType)
  3787. }
  3788. var stringLen uint64
  3789. for shift := uint(0); ; shift += 7 {
  3790. if shift >= 64 {
  3791. return ErrIntOverflowRpc
  3792. }
  3793. if iNdEx >= l {
  3794. return io.ErrUnexpectedEOF
  3795. }
  3796. b := dAtA[iNdEx]
  3797. iNdEx++
  3798. stringLen |= uint64(b&0x7F) << shift
  3799. if b < 0x80 {
  3800. break
  3801. }
  3802. }
  3803. intStringLen := int(stringLen)
  3804. if intStringLen < 0 {
  3805. return ErrInvalidLengthRpc
  3806. }
  3807. postIndex := iNdEx + intStringLen
  3808. if postIndex < 0 {
  3809. return ErrInvalidLengthRpc
  3810. }
  3811. if postIndex > l {
  3812. return io.ErrUnexpectedEOF
  3813. }
  3814. m.ClientTrustedCAData = string(dAtA[iNdEx:postIndex])
  3815. iNdEx = postIndex
  3816. case 406:
  3817. if wireType != 2 {
  3818. return fmt.Errorf("proto: wrong wireType = %d for field ClientTrustedCAPath", wireType)
  3819. }
  3820. var stringLen uint64
  3821. for shift := uint(0); ; shift += 7 {
  3822. if shift >= 64 {
  3823. return ErrIntOverflowRpc
  3824. }
  3825. if iNdEx >= l {
  3826. return io.ErrUnexpectedEOF
  3827. }
  3828. b := dAtA[iNdEx]
  3829. iNdEx++
  3830. stringLen |= uint64(b&0x7F) << shift
  3831. if b < 0x80 {
  3832. break
  3833. }
  3834. }
  3835. intStringLen := int(stringLen)
  3836. if intStringLen < 0 {
  3837. return ErrInvalidLengthRpc
  3838. }
  3839. postIndex := iNdEx + intStringLen
  3840. if postIndex < 0 {
  3841. return ErrInvalidLengthRpc
  3842. }
  3843. if postIndex > l {
  3844. return io.ErrUnexpectedEOF
  3845. }
  3846. m.ClientTrustedCAPath = string(dAtA[iNdEx:postIndex])
  3847. iNdEx = postIndex
  3848. case 501:
  3849. if wireType != 2 {
  3850. return fmt.Errorf("proto: wrong wireType = %d for field PeerCertData", wireType)
  3851. }
  3852. var stringLen uint64
  3853. for shift := uint(0); ; shift += 7 {
  3854. if shift >= 64 {
  3855. return ErrIntOverflowRpc
  3856. }
  3857. if iNdEx >= l {
  3858. return io.ErrUnexpectedEOF
  3859. }
  3860. b := dAtA[iNdEx]
  3861. iNdEx++
  3862. stringLen |= uint64(b&0x7F) << shift
  3863. if b < 0x80 {
  3864. break
  3865. }
  3866. }
  3867. intStringLen := int(stringLen)
  3868. if intStringLen < 0 {
  3869. return ErrInvalidLengthRpc
  3870. }
  3871. postIndex := iNdEx + intStringLen
  3872. if postIndex < 0 {
  3873. return ErrInvalidLengthRpc
  3874. }
  3875. if postIndex > l {
  3876. return io.ErrUnexpectedEOF
  3877. }
  3878. m.PeerCertData = string(dAtA[iNdEx:postIndex])
  3879. iNdEx = postIndex
  3880. case 502:
  3881. if wireType != 2 {
  3882. return fmt.Errorf("proto: wrong wireType = %d for field PeerCertPath", wireType)
  3883. }
  3884. var stringLen uint64
  3885. for shift := uint(0); ; shift += 7 {
  3886. if shift >= 64 {
  3887. return ErrIntOverflowRpc
  3888. }
  3889. if iNdEx >= l {
  3890. return io.ErrUnexpectedEOF
  3891. }
  3892. b := dAtA[iNdEx]
  3893. iNdEx++
  3894. stringLen |= uint64(b&0x7F) << shift
  3895. if b < 0x80 {
  3896. break
  3897. }
  3898. }
  3899. intStringLen := int(stringLen)
  3900. if intStringLen < 0 {
  3901. return ErrInvalidLengthRpc
  3902. }
  3903. postIndex := iNdEx + intStringLen
  3904. if postIndex < 0 {
  3905. return ErrInvalidLengthRpc
  3906. }
  3907. if postIndex > l {
  3908. return io.ErrUnexpectedEOF
  3909. }
  3910. m.PeerCertPath = string(dAtA[iNdEx:postIndex])
  3911. iNdEx = postIndex
  3912. case 503:
  3913. if wireType != 2 {
  3914. return fmt.Errorf("proto: wrong wireType = %d for field PeerKeyData", wireType)
  3915. }
  3916. var stringLen uint64
  3917. for shift := uint(0); ; shift += 7 {
  3918. if shift >= 64 {
  3919. return ErrIntOverflowRpc
  3920. }
  3921. if iNdEx >= l {
  3922. return io.ErrUnexpectedEOF
  3923. }
  3924. b := dAtA[iNdEx]
  3925. iNdEx++
  3926. stringLen |= uint64(b&0x7F) << shift
  3927. if b < 0x80 {
  3928. break
  3929. }
  3930. }
  3931. intStringLen := int(stringLen)
  3932. if intStringLen < 0 {
  3933. return ErrInvalidLengthRpc
  3934. }
  3935. postIndex := iNdEx + intStringLen
  3936. if postIndex < 0 {
  3937. return ErrInvalidLengthRpc
  3938. }
  3939. if postIndex > l {
  3940. return io.ErrUnexpectedEOF
  3941. }
  3942. m.PeerKeyData = string(dAtA[iNdEx:postIndex])
  3943. iNdEx = postIndex
  3944. case 504:
  3945. if wireType != 2 {
  3946. return fmt.Errorf("proto: wrong wireType = %d for field PeerKeyPath", wireType)
  3947. }
  3948. var stringLen uint64
  3949. for shift := uint(0); ; shift += 7 {
  3950. if shift >= 64 {
  3951. return ErrIntOverflowRpc
  3952. }
  3953. if iNdEx >= l {
  3954. return io.ErrUnexpectedEOF
  3955. }
  3956. b := dAtA[iNdEx]
  3957. iNdEx++
  3958. stringLen |= uint64(b&0x7F) << shift
  3959. if b < 0x80 {
  3960. break
  3961. }
  3962. }
  3963. intStringLen := int(stringLen)
  3964. if intStringLen < 0 {
  3965. return ErrInvalidLengthRpc
  3966. }
  3967. postIndex := iNdEx + intStringLen
  3968. if postIndex < 0 {
  3969. return ErrInvalidLengthRpc
  3970. }
  3971. if postIndex > l {
  3972. return io.ErrUnexpectedEOF
  3973. }
  3974. m.PeerKeyPath = string(dAtA[iNdEx:postIndex])
  3975. iNdEx = postIndex
  3976. case 505:
  3977. if wireType != 2 {
  3978. return fmt.Errorf("proto: wrong wireType = %d for field PeerTrustedCAData", wireType)
  3979. }
  3980. var stringLen uint64
  3981. for shift := uint(0); ; shift += 7 {
  3982. if shift >= 64 {
  3983. return ErrIntOverflowRpc
  3984. }
  3985. if iNdEx >= l {
  3986. return io.ErrUnexpectedEOF
  3987. }
  3988. b := dAtA[iNdEx]
  3989. iNdEx++
  3990. stringLen |= uint64(b&0x7F) << shift
  3991. if b < 0x80 {
  3992. break
  3993. }
  3994. }
  3995. intStringLen := int(stringLen)
  3996. if intStringLen < 0 {
  3997. return ErrInvalidLengthRpc
  3998. }
  3999. postIndex := iNdEx + intStringLen
  4000. if postIndex < 0 {
  4001. return ErrInvalidLengthRpc
  4002. }
  4003. if postIndex > l {
  4004. return io.ErrUnexpectedEOF
  4005. }
  4006. m.PeerTrustedCAData = string(dAtA[iNdEx:postIndex])
  4007. iNdEx = postIndex
  4008. case 506:
  4009. if wireType != 2 {
  4010. return fmt.Errorf("proto: wrong wireType = %d for field PeerTrustedCAPath", wireType)
  4011. }
  4012. var stringLen uint64
  4013. for shift := uint(0); ; shift += 7 {
  4014. if shift >= 64 {
  4015. return ErrIntOverflowRpc
  4016. }
  4017. if iNdEx >= l {
  4018. return io.ErrUnexpectedEOF
  4019. }
  4020. b := dAtA[iNdEx]
  4021. iNdEx++
  4022. stringLen |= uint64(b&0x7F) << shift
  4023. if b < 0x80 {
  4024. break
  4025. }
  4026. }
  4027. intStringLen := int(stringLen)
  4028. if intStringLen < 0 {
  4029. return ErrInvalidLengthRpc
  4030. }
  4031. postIndex := iNdEx + intStringLen
  4032. if postIndex < 0 {
  4033. return ErrInvalidLengthRpc
  4034. }
  4035. if postIndex > l {
  4036. return io.ErrUnexpectedEOF
  4037. }
  4038. m.PeerTrustedCAPath = string(dAtA[iNdEx:postIndex])
  4039. iNdEx = postIndex
  4040. case 601:
  4041. if wireType != 2 {
  4042. return fmt.Errorf("proto: wrong wireType = %d for field SnapshotPath", wireType)
  4043. }
  4044. var stringLen uint64
  4045. for shift := uint(0); ; shift += 7 {
  4046. if shift >= 64 {
  4047. return ErrIntOverflowRpc
  4048. }
  4049. if iNdEx >= l {
  4050. return io.ErrUnexpectedEOF
  4051. }
  4052. b := dAtA[iNdEx]
  4053. iNdEx++
  4054. stringLen |= uint64(b&0x7F) << shift
  4055. if b < 0x80 {
  4056. break
  4057. }
  4058. }
  4059. intStringLen := int(stringLen)
  4060. if intStringLen < 0 {
  4061. return ErrInvalidLengthRpc
  4062. }
  4063. postIndex := iNdEx + intStringLen
  4064. if postIndex < 0 {
  4065. return ErrInvalidLengthRpc
  4066. }
  4067. if postIndex > l {
  4068. return io.ErrUnexpectedEOF
  4069. }
  4070. m.SnapshotPath = string(dAtA[iNdEx:postIndex])
  4071. iNdEx = postIndex
  4072. case 602:
  4073. if wireType != 2 {
  4074. return fmt.Errorf("proto: wrong wireType = %d for field SnapshotInfo", wireType)
  4075. }
  4076. var msglen int
  4077. for shift := uint(0); ; shift += 7 {
  4078. if shift >= 64 {
  4079. return ErrIntOverflowRpc
  4080. }
  4081. if iNdEx >= l {
  4082. return io.ErrUnexpectedEOF
  4083. }
  4084. b := dAtA[iNdEx]
  4085. iNdEx++
  4086. msglen |= int(b&0x7F) << shift
  4087. if b < 0x80 {
  4088. break
  4089. }
  4090. }
  4091. if msglen < 0 {
  4092. return ErrInvalidLengthRpc
  4093. }
  4094. postIndex := iNdEx + msglen
  4095. if postIndex < 0 {
  4096. return ErrInvalidLengthRpc
  4097. }
  4098. if postIndex > l {
  4099. return io.ErrUnexpectedEOF
  4100. }
  4101. if m.SnapshotInfo == nil {
  4102. m.SnapshotInfo = &SnapshotInfo{}
  4103. }
  4104. if err := m.SnapshotInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4105. return err
  4106. }
  4107. iNdEx = postIndex
  4108. default:
  4109. iNdEx = preIndex
  4110. skippy, err := skipRpc(dAtA[iNdEx:])
  4111. if err != nil {
  4112. return err
  4113. }
  4114. if skippy < 0 {
  4115. return ErrInvalidLengthRpc
  4116. }
  4117. if (iNdEx + skippy) < 0 {
  4118. return ErrInvalidLengthRpc
  4119. }
  4120. if (iNdEx + skippy) > l {
  4121. return io.ErrUnexpectedEOF
  4122. }
  4123. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4124. iNdEx += skippy
  4125. }
  4126. }
  4127. if iNdEx > l {
  4128. return io.ErrUnexpectedEOF
  4129. }
  4130. return nil
  4131. }
  4132. func (m *Tester) Unmarshal(dAtA []byte) error {
  4133. l := len(dAtA)
  4134. iNdEx := 0
  4135. for iNdEx < l {
  4136. preIndex := iNdEx
  4137. var wire uint64
  4138. for shift := uint(0); ; shift += 7 {
  4139. if shift >= 64 {
  4140. return ErrIntOverflowRpc
  4141. }
  4142. if iNdEx >= l {
  4143. return io.ErrUnexpectedEOF
  4144. }
  4145. b := dAtA[iNdEx]
  4146. iNdEx++
  4147. wire |= uint64(b&0x7F) << shift
  4148. if b < 0x80 {
  4149. break
  4150. }
  4151. }
  4152. fieldNum := int32(wire >> 3)
  4153. wireType := int(wire & 0x7)
  4154. if wireType == 4 {
  4155. return fmt.Errorf("proto: Tester: wiretype end group for non-group")
  4156. }
  4157. if fieldNum <= 0 {
  4158. return fmt.Errorf("proto: Tester: illegal tag %d (wire type %d)", fieldNum, wire)
  4159. }
  4160. switch fieldNum {
  4161. case 1:
  4162. if wireType != 2 {
  4163. return fmt.Errorf("proto: wrong wireType = %d for field DataDir", wireType)
  4164. }
  4165. var stringLen uint64
  4166. for shift := uint(0); ; shift += 7 {
  4167. if shift >= 64 {
  4168. return ErrIntOverflowRpc
  4169. }
  4170. if iNdEx >= l {
  4171. return io.ErrUnexpectedEOF
  4172. }
  4173. b := dAtA[iNdEx]
  4174. iNdEx++
  4175. stringLen |= uint64(b&0x7F) << shift
  4176. if b < 0x80 {
  4177. break
  4178. }
  4179. }
  4180. intStringLen := int(stringLen)
  4181. if intStringLen < 0 {
  4182. return ErrInvalidLengthRpc
  4183. }
  4184. postIndex := iNdEx + intStringLen
  4185. if postIndex < 0 {
  4186. return ErrInvalidLengthRpc
  4187. }
  4188. if postIndex > l {
  4189. return io.ErrUnexpectedEOF
  4190. }
  4191. m.DataDir = string(dAtA[iNdEx:postIndex])
  4192. iNdEx = postIndex
  4193. case 2:
  4194. if wireType != 2 {
  4195. return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType)
  4196. }
  4197. var stringLen uint64
  4198. for shift := uint(0); ; shift += 7 {
  4199. if shift >= 64 {
  4200. return ErrIntOverflowRpc
  4201. }
  4202. if iNdEx >= l {
  4203. return io.ErrUnexpectedEOF
  4204. }
  4205. b := dAtA[iNdEx]
  4206. iNdEx++
  4207. stringLen |= uint64(b&0x7F) << shift
  4208. if b < 0x80 {
  4209. break
  4210. }
  4211. }
  4212. intStringLen := int(stringLen)
  4213. if intStringLen < 0 {
  4214. return ErrInvalidLengthRpc
  4215. }
  4216. postIndex := iNdEx + intStringLen
  4217. if postIndex < 0 {
  4218. return ErrInvalidLengthRpc
  4219. }
  4220. if postIndex > l {
  4221. return io.ErrUnexpectedEOF
  4222. }
  4223. m.Network = string(dAtA[iNdEx:postIndex])
  4224. iNdEx = postIndex
  4225. case 3:
  4226. if wireType != 2 {
  4227. return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType)
  4228. }
  4229. var stringLen uint64
  4230. for shift := uint(0); ; shift += 7 {
  4231. if shift >= 64 {
  4232. return ErrIntOverflowRpc
  4233. }
  4234. if iNdEx >= l {
  4235. return io.ErrUnexpectedEOF
  4236. }
  4237. b := dAtA[iNdEx]
  4238. iNdEx++
  4239. stringLen |= uint64(b&0x7F) << shift
  4240. if b < 0x80 {
  4241. break
  4242. }
  4243. }
  4244. intStringLen := int(stringLen)
  4245. if intStringLen < 0 {
  4246. return ErrInvalidLengthRpc
  4247. }
  4248. postIndex := iNdEx + intStringLen
  4249. if postIndex < 0 {
  4250. return ErrInvalidLengthRpc
  4251. }
  4252. if postIndex > l {
  4253. return io.ErrUnexpectedEOF
  4254. }
  4255. m.Addr = string(dAtA[iNdEx:postIndex])
  4256. iNdEx = postIndex
  4257. case 11:
  4258. if wireType != 0 {
  4259. return fmt.Errorf("proto: wrong wireType = %d for field DelayLatencyMs", wireType)
  4260. }
  4261. m.DelayLatencyMs = 0
  4262. for shift := uint(0); ; shift += 7 {
  4263. if shift >= 64 {
  4264. return ErrIntOverflowRpc
  4265. }
  4266. if iNdEx >= l {
  4267. return io.ErrUnexpectedEOF
  4268. }
  4269. b := dAtA[iNdEx]
  4270. iNdEx++
  4271. m.DelayLatencyMs |= uint32(b&0x7F) << shift
  4272. if b < 0x80 {
  4273. break
  4274. }
  4275. }
  4276. case 12:
  4277. if wireType != 0 {
  4278. return fmt.Errorf("proto: wrong wireType = %d for field DelayLatencyMsRv", wireType)
  4279. }
  4280. m.DelayLatencyMsRv = 0
  4281. for shift := uint(0); ; shift += 7 {
  4282. if shift >= 64 {
  4283. return ErrIntOverflowRpc
  4284. }
  4285. if iNdEx >= l {
  4286. return io.ErrUnexpectedEOF
  4287. }
  4288. b := dAtA[iNdEx]
  4289. iNdEx++
  4290. m.DelayLatencyMsRv |= uint32(b&0x7F) << shift
  4291. if b < 0x80 {
  4292. break
  4293. }
  4294. }
  4295. case 13:
  4296. if wireType != 0 {
  4297. return fmt.Errorf("proto: wrong wireType = %d for field UpdatedDelayLatencyMs", wireType)
  4298. }
  4299. m.UpdatedDelayLatencyMs = 0
  4300. for shift := uint(0); ; shift += 7 {
  4301. if shift >= 64 {
  4302. return ErrIntOverflowRpc
  4303. }
  4304. if iNdEx >= l {
  4305. return io.ErrUnexpectedEOF
  4306. }
  4307. b := dAtA[iNdEx]
  4308. iNdEx++
  4309. m.UpdatedDelayLatencyMs |= uint32(b&0x7F) << shift
  4310. if b < 0x80 {
  4311. break
  4312. }
  4313. }
  4314. case 21:
  4315. if wireType != 0 {
  4316. return fmt.Errorf("proto: wrong wireType = %d for field RoundLimit", wireType)
  4317. }
  4318. m.RoundLimit = 0
  4319. for shift := uint(0); ; shift += 7 {
  4320. if shift >= 64 {
  4321. return ErrIntOverflowRpc
  4322. }
  4323. if iNdEx >= l {
  4324. return io.ErrUnexpectedEOF
  4325. }
  4326. b := dAtA[iNdEx]
  4327. iNdEx++
  4328. m.RoundLimit |= int32(b&0x7F) << shift
  4329. if b < 0x80 {
  4330. break
  4331. }
  4332. }
  4333. case 22:
  4334. if wireType != 0 {
  4335. return fmt.Errorf("proto: wrong wireType = %d for field ExitOnCaseFail", wireType)
  4336. }
  4337. var v int
  4338. for shift := uint(0); ; shift += 7 {
  4339. if shift >= 64 {
  4340. return ErrIntOverflowRpc
  4341. }
  4342. if iNdEx >= l {
  4343. return io.ErrUnexpectedEOF
  4344. }
  4345. b := dAtA[iNdEx]
  4346. iNdEx++
  4347. v |= int(b&0x7F) << shift
  4348. if b < 0x80 {
  4349. break
  4350. }
  4351. }
  4352. m.ExitOnCaseFail = bool(v != 0)
  4353. case 23:
  4354. if wireType != 0 {
  4355. return fmt.Errorf("proto: wrong wireType = %d for field EnablePprof", wireType)
  4356. }
  4357. var v int
  4358. for shift := uint(0); ; shift += 7 {
  4359. if shift >= 64 {
  4360. return ErrIntOverflowRpc
  4361. }
  4362. if iNdEx >= l {
  4363. return io.ErrUnexpectedEOF
  4364. }
  4365. b := dAtA[iNdEx]
  4366. iNdEx++
  4367. v |= int(b&0x7F) << shift
  4368. if b < 0x80 {
  4369. break
  4370. }
  4371. }
  4372. m.EnablePprof = bool(v != 0)
  4373. case 31:
  4374. if wireType != 0 {
  4375. return fmt.Errorf("proto: wrong wireType = %d for field CaseDelayMs", wireType)
  4376. }
  4377. m.CaseDelayMs = 0
  4378. for shift := uint(0); ; shift += 7 {
  4379. if shift >= 64 {
  4380. return ErrIntOverflowRpc
  4381. }
  4382. if iNdEx >= l {
  4383. return io.ErrUnexpectedEOF
  4384. }
  4385. b := dAtA[iNdEx]
  4386. iNdEx++
  4387. m.CaseDelayMs |= uint32(b&0x7F) << shift
  4388. if b < 0x80 {
  4389. break
  4390. }
  4391. }
  4392. case 32:
  4393. if wireType != 0 {
  4394. return fmt.Errorf("proto: wrong wireType = %d for field CaseShuffle", wireType)
  4395. }
  4396. var v int
  4397. for shift := uint(0); ; shift += 7 {
  4398. if shift >= 64 {
  4399. return ErrIntOverflowRpc
  4400. }
  4401. if iNdEx >= l {
  4402. return io.ErrUnexpectedEOF
  4403. }
  4404. b := dAtA[iNdEx]
  4405. iNdEx++
  4406. v |= int(b&0x7F) << shift
  4407. if b < 0x80 {
  4408. break
  4409. }
  4410. }
  4411. m.CaseShuffle = bool(v != 0)
  4412. case 33:
  4413. if wireType != 2 {
  4414. return fmt.Errorf("proto: wrong wireType = %d for field Cases", wireType)
  4415. }
  4416. var stringLen uint64
  4417. for shift := uint(0); ; shift += 7 {
  4418. if shift >= 64 {
  4419. return ErrIntOverflowRpc
  4420. }
  4421. if iNdEx >= l {
  4422. return io.ErrUnexpectedEOF
  4423. }
  4424. b := dAtA[iNdEx]
  4425. iNdEx++
  4426. stringLen |= uint64(b&0x7F) << shift
  4427. if b < 0x80 {
  4428. break
  4429. }
  4430. }
  4431. intStringLen := int(stringLen)
  4432. if intStringLen < 0 {
  4433. return ErrInvalidLengthRpc
  4434. }
  4435. postIndex := iNdEx + intStringLen
  4436. if postIndex < 0 {
  4437. return ErrInvalidLengthRpc
  4438. }
  4439. if postIndex > l {
  4440. return io.ErrUnexpectedEOF
  4441. }
  4442. m.Cases = append(m.Cases, string(dAtA[iNdEx:postIndex]))
  4443. iNdEx = postIndex
  4444. case 34:
  4445. if wireType != 2 {
  4446. return fmt.Errorf("proto: wrong wireType = %d for field FailpointCommands", wireType)
  4447. }
  4448. var stringLen uint64
  4449. for shift := uint(0); ; shift += 7 {
  4450. if shift >= 64 {
  4451. return ErrIntOverflowRpc
  4452. }
  4453. if iNdEx >= l {
  4454. return io.ErrUnexpectedEOF
  4455. }
  4456. b := dAtA[iNdEx]
  4457. iNdEx++
  4458. stringLen |= uint64(b&0x7F) << shift
  4459. if b < 0x80 {
  4460. break
  4461. }
  4462. }
  4463. intStringLen := int(stringLen)
  4464. if intStringLen < 0 {
  4465. return ErrInvalidLengthRpc
  4466. }
  4467. postIndex := iNdEx + intStringLen
  4468. if postIndex < 0 {
  4469. return ErrInvalidLengthRpc
  4470. }
  4471. if postIndex > l {
  4472. return io.ErrUnexpectedEOF
  4473. }
  4474. m.FailpointCommands = append(m.FailpointCommands, string(dAtA[iNdEx:postIndex]))
  4475. iNdEx = postIndex
  4476. case 41:
  4477. if wireType != 2 {
  4478. return fmt.Errorf("proto: wrong wireType = %d for field RunnerExecPath", wireType)
  4479. }
  4480. var stringLen uint64
  4481. for shift := uint(0); ; shift += 7 {
  4482. if shift >= 64 {
  4483. return ErrIntOverflowRpc
  4484. }
  4485. if iNdEx >= l {
  4486. return io.ErrUnexpectedEOF
  4487. }
  4488. b := dAtA[iNdEx]
  4489. iNdEx++
  4490. stringLen |= uint64(b&0x7F) << shift
  4491. if b < 0x80 {
  4492. break
  4493. }
  4494. }
  4495. intStringLen := int(stringLen)
  4496. if intStringLen < 0 {
  4497. return ErrInvalidLengthRpc
  4498. }
  4499. postIndex := iNdEx + intStringLen
  4500. if postIndex < 0 {
  4501. return ErrInvalidLengthRpc
  4502. }
  4503. if postIndex > l {
  4504. return io.ErrUnexpectedEOF
  4505. }
  4506. m.RunnerExecPath = string(dAtA[iNdEx:postIndex])
  4507. iNdEx = postIndex
  4508. case 42:
  4509. if wireType != 2 {
  4510. return fmt.Errorf("proto: wrong wireType = %d for field ExternalExecPath", wireType)
  4511. }
  4512. var stringLen uint64
  4513. for shift := uint(0); ; shift += 7 {
  4514. if shift >= 64 {
  4515. return ErrIntOverflowRpc
  4516. }
  4517. if iNdEx >= l {
  4518. return io.ErrUnexpectedEOF
  4519. }
  4520. b := dAtA[iNdEx]
  4521. iNdEx++
  4522. stringLen |= uint64(b&0x7F) << shift
  4523. if b < 0x80 {
  4524. break
  4525. }
  4526. }
  4527. intStringLen := int(stringLen)
  4528. if intStringLen < 0 {
  4529. return ErrInvalidLengthRpc
  4530. }
  4531. postIndex := iNdEx + intStringLen
  4532. if postIndex < 0 {
  4533. return ErrInvalidLengthRpc
  4534. }
  4535. if postIndex > l {
  4536. return io.ErrUnexpectedEOF
  4537. }
  4538. m.ExternalExecPath = string(dAtA[iNdEx:postIndex])
  4539. iNdEx = postIndex
  4540. case 101:
  4541. if wireType != 2 {
  4542. return fmt.Errorf("proto: wrong wireType = %d for field Stressers", wireType)
  4543. }
  4544. var msglen int
  4545. for shift := uint(0); ; shift += 7 {
  4546. if shift >= 64 {
  4547. return ErrIntOverflowRpc
  4548. }
  4549. if iNdEx >= l {
  4550. return io.ErrUnexpectedEOF
  4551. }
  4552. b := dAtA[iNdEx]
  4553. iNdEx++
  4554. msglen |= int(b&0x7F) << shift
  4555. if b < 0x80 {
  4556. break
  4557. }
  4558. }
  4559. if msglen < 0 {
  4560. return ErrInvalidLengthRpc
  4561. }
  4562. postIndex := iNdEx + msglen
  4563. if postIndex < 0 {
  4564. return ErrInvalidLengthRpc
  4565. }
  4566. if postIndex > l {
  4567. return io.ErrUnexpectedEOF
  4568. }
  4569. m.Stressers = append(m.Stressers, &Stresser{})
  4570. if err := m.Stressers[len(m.Stressers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4571. return err
  4572. }
  4573. iNdEx = postIndex
  4574. case 102:
  4575. if wireType != 2 {
  4576. return fmt.Errorf("proto: wrong wireType = %d for field Checkers", wireType)
  4577. }
  4578. var stringLen uint64
  4579. for shift := uint(0); ; shift += 7 {
  4580. if shift >= 64 {
  4581. return ErrIntOverflowRpc
  4582. }
  4583. if iNdEx >= l {
  4584. return io.ErrUnexpectedEOF
  4585. }
  4586. b := dAtA[iNdEx]
  4587. iNdEx++
  4588. stringLen |= uint64(b&0x7F) << shift
  4589. if b < 0x80 {
  4590. break
  4591. }
  4592. }
  4593. intStringLen := int(stringLen)
  4594. if intStringLen < 0 {
  4595. return ErrInvalidLengthRpc
  4596. }
  4597. postIndex := iNdEx + intStringLen
  4598. if postIndex < 0 {
  4599. return ErrInvalidLengthRpc
  4600. }
  4601. if postIndex > l {
  4602. return io.ErrUnexpectedEOF
  4603. }
  4604. m.Checkers = append(m.Checkers, string(dAtA[iNdEx:postIndex]))
  4605. iNdEx = postIndex
  4606. case 201:
  4607. if wireType != 0 {
  4608. return fmt.Errorf("proto: wrong wireType = %d for field StressKeySize", wireType)
  4609. }
  4610. m.StressKeySize = 0
  4611. for shift := uint(0); ; shift += 7 {
  4612. if shift >= 64 {
  4613. return ErrIntOverflowRpc
  4614. }
  4615. if iNdEx >= l {
  4616. return io.ErrUnexpectedEOF
  4617. }
  4618. b := dAtA[iNdEx]
  4619. iNdEx++
  4620. m.StressKeySize |= int32(b&0x7F) << shift
  4621. if b < 0x80 {
  4622. break
  4623. }
  4624. }
  4625. case 202:
  4626. if wireType != 0 {
  4627. return fmt.Errorf("proto: wrong wireType = %d for field StressKeySizeLarge", wireType)
  4628. }
  4629. m.StressKeySizeLarge = 0
  4630. for shift := uint(0); ; shift += 7 {
  4631. if shift >= 64 {
  4632. return ErrIntOverflowRpc
  4633. }
  4634. if iNdEx >= l {
  4635. return io.ErrUnexpectedEOF
  4636. }
  4637. b := dAtA[iNdEx]
  4638. iNdEx++
  4639. m.StressKeySizeLarge |= int32(b&0x7F) << shift
  4640. if b < 0x80 {
  4641. break
  4642. }
  4643. }
  4644. case 203:
  4645. if wireType != 0 {
  4646. return fmt.Errorf("proto: wrong wireType = %d for field StressKeySuffixRange", wireType)
  4647. }
  4648. m.StressKeySuffixRange = 0
  4649. for shift := uint(0); ; shift += 7 {
  4650. if shift >= 64 {
  4651. return ErrIntOverflowRpc
  4652. }
  4653. if iNdEx >= l {
  4654. return io.ErrUnexpectedEOF
  4655. }
  4656. b := dAtA[iNdEx]
  4657. iNdEx++
  4658. m.StressKeySuffixRange |= int32(b&0x7F) << shift
  4659. if b < 0x80 {
  4660. break
  4661. }
  4662. }
  4663. case 204:
  4664. if wireType != 0 {
  4665. return fmt.Errorf("proto: wrong wireType = %d for field StressKeySuffixRangeTxn", wireType)
  4666. }
  4667. m.StressKeySuffixRangeTxn = 0
  4668. for shift := uint(0); ; shift += 7 {
  4669. if shift >= 64 {
  4670. return ErrIntOverflowRpc
  4671. }
  4672. if iNdEx >= l {
  4673. return io.ErrUnexpectedEOF
  4674. }
  4675. b := dAtA[iNdEx]
  4676. iNdEx++
  4677. m.StressKeySuffixRangeTxn |= int32(b&0x7F) << shift
  4678. if b < 0x80 {
  4679. break
  4680. }
  4681. }
  4682. case 205:
  4683. if wireType != 0 {
  4684. return fmt.Errorf("proto: wrong wireType = %d for field StressKeyTxnOps", wireType)
  4685. }
  4686. m.StressKeyTxnOps = 0
  4687. for shift := uint(0); ; shift += 7 {
  4688. if shift >= 64 {
  4689. return ErrIntOverflowRpc
  4690. }
  4691. if iNdEx >= l {
  4692. return io.ErrUnexpectedEOF
  4693. }
  4694. b := dAtA[iNdEx]
  4695. iNdEx++
  4696. m.StressKeyTxnOps |= int32(b&0x7F) << shift
  4697. if b < 0x80 {
  4698. break
  4699. }
  4700. }
  4701. case 301:
  4702. if wireType != 0 {
  4703. return fmt.Errorf("proto: wrong wireType = %d for field StressClients", wireType)
  4704. }
  4705. m.StressClients = 0
  4706. for shift := uint(0); ; shift += 7 {
  4707. if shift >= 64 {
  4708. return ErrIntOverflowRpc
  4709. }
  4710. if iNdEx >= l {
  4711. return io.ErrUnexpectedEOF
  4712. }
  4713. b := dAtA[iNdEx]
  4714. iNdEx++
  4715. m.StressClients |= int32(b&0x7F) << shift
  4716. if b < 0x80 {
  4717. break
  4718. }
  4719. }
  4720. case 302:
  4721. if wireType != 0 {
  4722. return fmt.Errorf("proto: wrong wireType = %d for field StressQPS", wireType)
  4723. }
  4724. m.StressQPS = 0
  4725. for shift := uint(0); ; shift += 7 {
  4726. if shift >= 64 {
  4727. return ErrIntOverflowRpc
  4728. }
  4729. if iNdEx >= l {
  4730. return io.ErrUnexpectedEOF
  4731. }
  4732. b := dAtA[iNdEx]
  4733. iNdEx++
  4734. m.StressQPS |= int32(b&0x7F) << shift
  4735. if b < 0x80 {
  4736. break
  4737. }
  4738. }
  4739. default:
  4740. iNdEx = preIndex
  4741. skippy, err := skipRpc(dAtA[iNdEx:])
  4742. if err != nil {
  4743. return err
  4744. }
  4745. if skippy < 0 {
  4746. return ErrInvalidLengthRpc
  4747. }
  4748. if (iNdEx + skippy) < 0 {
  4749. return ErrInvalidLengthRpc
  4750. }
  4751. if (iNdEx + skippy) > l {
  4752. return io.ErrUnexpectedEOF
  4753. }
  4754. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4755. iNdEx += skippy
  4756. }
  4757. }
  4758. if iNdEx > l {
  4759. return io.ErrUnexpectedEOF
  4760. }
  4761. return nil
  4762. }
  4763. func (m *Stresser) Unmarshal(dAtA []byte) error {
  4764. l := len(dAtA)
  4765. iNdEx := 0
  4766. for iNdEx < l {
  4767. preIndex := iNdEx
  4768. var wire uint64
  4769. for shift := uint(0); ; shift += 7 {
  4770. if shift >= 64 {
  4771. return ErrIntOverflowRpc
  4772. }
  4773. if iNdEx >= l {
  4774. return io.ErrUnexpectedEOF
  4775. }
  4776. b := dAtA[iNdEx]
  4777. iNdEx++
  4778. wire |= uint64(b&0x7F) << shift
  4779. if b < 0x80 {
  4780. break
  4781. }
  4782. }
  4783. fieldNum := int32(wire >> 3)
  4784. wireType := int(wire & 0x7)
  4785. if wireType == 4 {
  4786. return fmt.Errorf("proto: Stresser: wiretype end group for non-group")
  4787. }
  4788. if fieldNum <= 0 {
  4789. return fmt.Errorf("proto: Stresser: illegal tag %d (wire type %d)", fieldNum, wire)
  4790. }
  4791. switch fieldNum {
  4792. case 1:
  4793. if wireType != 2 {
  4794. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  4795. }
  4796. var stringLen uint64
  4797. for shift := uint(0); ; shift += 7 {
  4798. if shift >= 64 {
  4799. return ErrIntOverflowRpc
  4800. }
  4801. if iNdEx >= l {
  4802. return io.ErrUnexpectedEOF
  4803. }
  4804. b := dAtA[iNdEx]
  4805. iNdEx++
  4806. stringLen |= uint64(b&0x7F) << shift
  4807. if b < 0x80 {
  4808. break
  4809. }
  4810. }
  4811. intStringLen := int(stringLen)
  4812. if intStringLen < 0 {
  4813. return ErrInvalidLengthRpc
  4814. }
  4815. postIndex := iNdEx + intStringLen
  4816. if postIndex < 0 {
  4817. return ErrInvalidLengthRpc
  4818. }
  4819. if postIndex > l {
  4820. return io.ErrUnexpectedEOF
  4821. }
  4822. m.Type = string(dAtA[iNdEx:postIndex])
  4823. iNdEx = postIndex
  4824. case 2:
  4825. if wireType != 1 {
  4826. return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType)
  4827. }
  4828. var v uint64
  4829. if (iNdEx + 8) > l {
  4830. return io.ErrUnexpectedEOF
  4831. }
  4832. v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  4833. iNdEx += 8
  4834. m.Weight = float64(math.Float64frombits(v))
  4835. default:
  4836. iNdEx = preIndex
  4837. skippy, err := skipRpc(dAtA[iNdEx:])
  4838. if err != nil {
  4839. return err
  4840. }
  4841. if skippy < 0 {
  4842. return ErrInvalidLengthRpc
  4843. }
  4844. if (iNdEx + skippy) < 0 {
  4845. return ErrInvalidLengthRpc
  4846. }
  4847. if (iNdEx + skippy) > l {
  4848. return io.ErrUnexpectedEOF
  4849. }
  4850. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4851. iNdEx += skippy
  4852. }
  4853. }
  4854. if iNdEx > l {
  4855. return io.ErrUnexpectedEOF
  4856. }
  4857. return nil
  4858. }
  4859. func (m *Etcd) Unmarshal(dAtA []byte) error {
  4860. l := len(dAtA)
  4861. iNdEx := 0
  4862. for iNdEx < l {
  4863. preIndex := iNdEx
  4864. var wire uint64
  4865. for shift := uint(0); ; shift += 7 {
  4866. if shift >= 64 {
  4867. return ErrIntOverflowRpc
  4868. }
  4869. if iNdEx >= l {
  4870. return io.ErrUnexpectedEOF
  4871. }
  4872. b := dAtA[iNdEx]
  4873. iNdEx++
  4874. wire |= uint64(b&0x7F) << shift
  4875. if b < 0x80 {
  4876. break
  4877. }
  4878. }
  4879. fieldNum := int32(wire >> 3)
  4880. wireType := int(wire & 0x7)
  4881. if wireType == 4 {
  4882. return fmt.Errorf("proto: Etcd: wiretype end group for non-group")
  4883. }
  4884. if fieldNum <= 0 {
  4885. return fmt.Errorf("proto: Etcd: illegal tag %d (wire type %d)", fieldNum, wire)
  4886. }
  4887. switch fieldNum {
  4888. case 1:
  4889. if wireType != 2 {
  4890. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  4891. }
  4892. var stringLen uint64
  4893. for shift := uint(0); ; shift += 7 {
  4894. if shift >= 64 {
  4895. return ErrIntOverflowRpc
  4896. }
  4897. if iNdEx >= l {
  4898. return io.ErrUnexpectedEOF
  4899. }
  4900. b := dAtA[iNdEx]
  4901. iNdEx++
  4902. stringLen |= uint64(b&0x7F) << shift
  4903. if b < 0x80 {
  4904. break
  4905. }
  4906. }
  4907. intStringLen := int(stringLen)
  4908. if intStringLen < 0 {
  4909. return ErrInvalidLengthRpc
  4910. }
  4911. postIndex := iNdEx + intStringLen
  4912. if postIndex < 0 {
  4913. return ErrInvalidLengthRpc
  4914. }
  4915. if postIndex > l {
  4916. return io.ErrUnexpectedEOF
  4917. }
  4918. m.Name = string(dAtA[iNdEx:postIndex])
  4919. iNdEx = postIndex
  4920. case 2:
  4921. if wireType != 2 {
  4922. return fmt.Errorf("proto: wrong wireType = %d for field DataDir", wireType)
  4923. }
  4924. var stringLen uint64
  4925. for shift := uint(0); ; shift += 7 {
  4926. if shift >= 64 {
  4927. return ErrIntOverflowRpc
  4928. }
  4929. if iNdEx >= l {
  4930. return io.ErrUnexpectedEOF
  4931. }
  4932. b := dAtA[iNdEx]
  4933. iNdEx++
  4934. stringLen |= uint64(b&0x7F) << shift
  4935. if b < 0x80 {
  4936. break
  4937. }
  4938. }
  4939. intStringLen := int(stringLen)
  4940. if intStringLen < 0 {
  4941. return ErrInvalidLengthRpc
  4942. }
  4943. postIndex := iNdEx + intStringLen
  4944. if postIndex < 0 {
  4945. return ErrInvalidLengthRpc
  4946. }
  4947. if postIndex > l {
  4948. return io.ErrUnexpectedEOF
  4949. }
  4950. m.DataDir = string(dAtA[iNdEx:postIndex])
  4951. iNdEx = postIndex
  4952. case 3:
  4953. if wireType != 2 {
  4954. return fmt.Errorf("proto: wrong wireType = %d for field WALDir", wireType)
  4955. }
  4956. var stringLen uint64
  4957. for shift := uint(0); ; shift += 7 {
  4958. if shift >= 64 {
  4959. return ErrIntOverflowRpc
  4960. }
  4961. if iNdEx >= l {
  4962. return io.ErrUnexpectedEOF
  4963. }
  4964. b := dAtA[iNdEx]
  4965. iNdEx++
  4966. stringLen |= uint64(b&0x7F) << shift
  4967. if b < 0x80 {
  4968. break
  4969. }
  4970. }
  4971. intStringLen := int(stringLen)
  4972. if intStringLen < 0 {
  4973. return ErrInvalidLengthRpc
  4974. }
  4975. postIndex := iNdEx + intStringLen
  4976. if postIndex < 0 {
  4977. return ErrInvalidLengthRpc
  4978. }
  4979. if postIndex > l {
  4980. return io.ErrUnexpectedEOF
  4981. }
  4982. m.WALDir = string(dAtA[iNdEx:postIndex])
  4983. iNdEx = postIndex
  4984. case 11:
  4985. if wireType != 0 {
  4986. return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatIntervalMs", wireType)
  4987. }
  4988. m.HeartbeatIntervalMs = 0
  4989. for shift := uint(0); ; shift += 7 {
  4990. if shift >= 64 {
  4991. return ErrIntOverflowRpc
  4992. }
  4993. if iNdEx >= l {
  4994. return io.ErrUnexpectedEOF
  4995. }
  4996. b := dAtA[iNdEx]
  4997. iNdEx++
  4998. m.HeartbeatIntervalMs |= int64(b&0x7F) << shift
  4999. if b < 0x80 {
  5000. break
  5001. }
  5002. }
  5003. case 12:
  5004. if wireType != 0 {
  5005. return fmt.Errorf("proto: wrong wireType = %d for field ElectionTimeoutMs", wireType)
  5006. }
  5007. m.ElectionTimeoutMs = 0
  5008. for shift := uint(0); ; shift += 7 {
  5009. if shift >= 64 {
  5010. return ErrIntOverflowRpc
  5011. }
  5012. if iNdEx >= l {
  5013. return io.ErrUnexpectedEOF
  5014. }
  5015. b := dAtA[iNdEx]
  5016. iNdEx++
  5017. m.ElectionTimeoutMs |= int64(b&0x7F) << shift
  5018. if b < 0x80 {
  5019. break
  5020. }
  5021. }
  5022. case 21:
  5023. if wireType != 2 {
  5024. return fmt.Errorf("proto: wrong wireType = %d for field ListenClientURLs", wireType)
  5025. }
  5026. var stringLen uint64
  5027. for shift := uint(0); ; shift += 7 {
  5028. if shift >= 64 {
  5029. return ErrIntOverflowRpc
  5030. }
  5031. if iNdEx >= l {
  5032. return io.ErrUnexpectedEOF
  5033. }
  5034. b := dAtA[iNdEx]
  5035. iNdEx++
  5036. stringLen |= uint64(b&0x7F) << shift
  5037. if b < 0x80 {
  5038. break
  5039. }
  5040. }
  5041. intStringLen := int(stringLen)
  5042. if intStringLen < 0 {
  5043. return ErrInvalidLengthRpc
  5044. }
  5045. postIndex := iNdEx + intStringLen
  5046. if postIndex < 0 {
  5047. return ErrInvalidLengthRpc
  5048. }
  5049. if postIndex > l {
  5050. return io.ErrUnexpectedEOF
  5051. }
  5052. m.ListenClientURLs = append(m.ListenClientURLs, string(dAtA[iNdEx:postIndex]))
  5053. iNdEx = postIndex
  5054. case 22:
  5055. if wireType != 2 {
  5056. return fmt.Errorf("proto: wrong wireType = %d for field AdvertiseClientURLs", wireType)
  5057. }
  5058. var stringLen uint64
  5059. for shift := uint(0); ; shift += 7 {
  5060. if shift >= 64 {
  5061. return ErrIntOverflowRpc
  5062. }
  5063. if iNdEx >= l {
  5064. return io.ErrUnexpectedEOF
  5065. }
  5066. b := dAtA[iNdEx]
  5067. iNdEx++
  5068. stringLen |= uint64(b&0x7F) << shift
  5069. if b < 0x80 {
  5070. break
  5071. }
  5072. }
  5073. intStringLen := int(stringLen)
  5074. if intStringLen < 0 {
  5075. return ErrInvalidLengthRpc
  5076. }
  5077. postIndex := iNdEx + intStringLen
  5078. if postIndex < 0 {
  5079. return ErrInvalidLengthRpc
  5080. }
  5081. if postIndex > l {
  5082. return io.ErrUnexpectedEOF
  5083. }
  5084. m.AdvertiseClientURLs = append(m.AdvertiseClientURLs, string(dAtA[iNdEx:postIndex]))
  5085. iNdEx = postIndex
  5086. case 23:
  5087. if wireType != 0 {
  5088. return fmt.Errorf("proto: wrong wireType = %d for field ClientAutoTLS", wireType)
  5089. }
  5090. var v int
  5091. for shift := uint(0); ; shift += 7 {
  5092. if shift >= 64 {
  5093. return ErrIntOverflowRpc
  5094. }
  5095. if iNdEx >= l {
  5096. return io.ErrUnexpectedEOF
  5097. }
  5098. b := dAtA[iNdEx]
  5099. iNdEx++
  5100. v |= int(b&0x7F) << shift
  5101. if b < 0x80 {
  5102. break
  5103. }
  5104. }
  5105. m.ClientAutoTLS = bool(v != 0)
  5106. case 24:
  5107. if wireType != 0 {
  5108. return fmt.Errorf("proto: wrong wireType = %d for field ClientCertAuth", wireType)
  5109. }
  5110. var v int
  5111. for shift := uint(0); ; shift += 7 {
  5112. if shift >= 64 {
  5113. return ErrIntOverflowRpc
  5114. }
  5115. if iNdEx >= l {
  5116. return io.ErrUnexpectedEOF
  5117. }
  5118. b := dAtA[iNdEx]
  5119. iNdEx++
  5120. v |= int(b&0x7F) << shift
  5121. if b < 0x80 {
  5122. break
  5123. }
  5124. }
  5125. m.ClientCertAuth = bool(v != 0)
  5126. case 25:
  5127. if wireType != 2 {
  5128. return fmt.Errorf("proto: wrong wireType = %d for field ClientCertFile", wireType)
  5129. }
  5130. var stringLen uint64
  5131. for shift := uint(0); ; shift += 7 {
  5132. if shift >= 64 {
  5133. return ErrIntOverflowRpc
  5134. }
  5135. if iNdEx >= l {
  5136. return io.ErrUnexpectedEOF
  5137. }
  5138. b := dAtA[iNdEx]
  5139. iNdEx++
  5140. stringLen |= uint64(b&0x7F) << shift
  5141. if b < 0x80 {
  5142. break
  5143. }
  5144. }
  5145. intStringLen := int(stringLen)
  5146. if intStringLen < 0 {
  5147. return ErrInvalidLengthRpc
  5148. }
  5149. postIndex := iNdEx + intStringLen
  5150. if postIndex < 0 {
  5151. return ErrInvalidLengthRpc
  5152. }
  5153. if postIndex > l {
  5154. return io.ErrUnexpectedEOF
  5155. }
  5156. m.ClientCertFile = string(dAtA[iNdEx:postIndex])
  5157. iNdEx = postIndex
  5158. case 26:
  5159. if wireType != 2 {
  5160. return fmt.Errorf("proto: wrong wireType = %d for field ClientKeyFile", wireType)
  5161. }
  5162. var stringLen uint64
  5163. for shift := uint(0); ; shift += 7 {
  5164. if shift >= 64 {
  5165. return ErrIntOverflowRpc
  5166. }
  5167. if iNdEx >= l {
  5168. return io.ErrUnexpectedEOF
  5169. }
  5170. b := dAtA[iNdEx]
  5171. iNdEx++
  5172. stringLen |= uint64(b&0x7F) << shift
  5173. if b < 0x80 {
  5174. break
  5175. }
  5176. }
  5177. intStringLen := int(stringLen)
  5178. if intStringLen < 0 {
  5179. return ErrInvalidLengthRpc
  5180. }
  5181. postIndex := iNdEx + intStringLen
  5182. if postIndex < 0 {
  5183. return ErrInvalidLengthRpc
  5184. }
  5185. if postIndex > l {
  5186. return io.ErrUnexpectedEOF
  5187. }
  5188. m.ClientKeyFile = string(dAtA[iNdEx:postIndex])
  5189. iNdEx = postIndex
  5190. case 27:
  5191. if wireType != 2 {
  5192. return fmt.Errorf("proto: wrong wireType = %d for field ClientTrustedCAFile", wireType)
  5193. }
  5194. var stringLen uint64
  5195. for shift := uint(0); ; shift += 7 {
  5196. if shift >= 64 {
  5197. return ErrIntOverflowRpc
  5198. }
  5199. if iNdEx >= l {
  5200. return io.ErrUnexpectedEOF
  5201. }
  5202. b := dAtA[iNdEx]
  5203. iNdEx++
  5204. stringLen |= uint64(b&0x7F) << shift
  5205. if b < 0x80 {
  5206. break
  5207. }
  5208. }
  5209. intStringLen := int(stringLen)
  5210. if intStringLen < 0 {
  5211. return ErrInvalidLengthRpc
  5212. }
  5213. postIndex := iNdEx + intStringLen
  5214. if postIndex < 0 {
  5215. return ErrInvalidLengthRpc
  5216. }
  5217. if postIndex > l {
  5218. return io.ErrUnexpectedEOF
  5219. }
  5220. m.ClientTrustedCAFile = string(dAtA[iNdEx:postIndex])
  5221. iNdEx = postIndex
  5222. case 31:
  5223. if wireType != 2 {
  5224. return fmt.Errorf("proto: wrong wireType = %d for field ListenPeerURLs", wireType)
  5225. }
  5226. var stringLen uint64
  5227. for shift := uint(0); ; shift += 7 {
  5228. if shift >= 64 {
  5229. return ErrIntOverflowRpc
  5230. }
  5231. if iNdEx >= l {
  5232. return io.ErrUnexpectedEOF
  5233. }
  5234. b := dAtA[iNdEx]
  5235. iNdEx++
  5236. stringLen |= uint64(b&0x7F) << shift
  5237. if b < 0x80 {
  5238. break
  5239. }
  5240. }
  5241. intStringLen := int(stringLen)
  5242. if intStringLen < 0 {
  5243. return ErrInvalidLengthRpc
  5244. }
  5245. postIndex := iNdEx + intStringLen
  5246. if postIndex < 0 {
  5247. return ErrInvalidLengthRpc
  5248. }
  5249. if postIndex > l {
  5250. return io.ErrUnexpectedEOF
  5251. }
  5252. m.ListenPeerURLs = append(m.ListenPeerURLs, string(dAtA[iNdEx:postIndex]))
  5253. iNdEx = postIndex
  5254. case 32:
  5255. if wireType != 2 {
  5256. return fmt.Errorf("proto: wrong wireType = %d for field AdvertisePeerURLs", wireType)
  5257. }
  5258. var stringLen uint64
  5259. for shift := uint(0); ; shift += 7 {
  5260. if shift >= 64 {
  5261. return ErrIntOverflowRpc
  5262. }
  5263. if iNdEx >= l {
  5264. return io.ErrUnexpectedEOF
  5265. }
  5266. b := dAtA[iNdEx]
  5267. iNdEx++
  5268. stringLen |= uint64(b&0x7F) << shift
  5269. if b < 0x80 {
  5270. break
  5271. }
  5272. }
  5273. intStringLen := int(stringLen)
  5274. if intStringLen < 0 {
  5275. return ErrInvalidLengthRpc
  5276. }
  5277. postIndex := iNdEx + intStringLen
  5278. if postIndex < 0 {
  5279. return ErrInvalidLengthRpc
  5280. }
  5281. if postIndex > l {
  5282. return io.ErrUnexpectedEOF
  5283. }
  5284. m.AdvertisePeerURLs = append(m.AdvertisePeerURLs, string(dAtA[iNdEx:postIndex]))
  5285. iNdEx = postIndex
  5286. case 33:
  5287. if wireType != 0 {
  5288. return fmt.Errorf("proto: wrong wireType = %d for field PeerAutoTLS", wireType)
  5289. }
  5290. var v int
  5291. for shift := uint(0); ; shift += 7 {
  5292. if shift >= 64 {
  5293. return ErrIntOverflowRpc
  5294. }
  5295. if iNdEx >= l {
  5296. return io.ErrUnexpectedEOF
  5297. }
  5298. b := dAtA[iNdEx]
  5299. iNdEx++
  5300. v |= int(b&0x7F) << shift
  5301. if b < 0x80 {
  5302. break
  5303. }
  5304. }
  5305. m.PeerAutoTLS = bool(v != 0)
  5306. case 34:
  5307. if wireType != 0 {
  5308. return fmt.Errorf("proto: wrong wireType = %d for field PeerClientCertAuth", wireType)
  5309. }
  5310. var v int
  5311. for shift := uint(0); ; shift += 7 {
  5312. if shift >= 64 {
  5313. return ErrIntOverflowRpc
  5314. }
  5315. if iNdEx >= l {
  5316. return io.ErrUnexpectedEOF
  5317. }
  5318. b := dAtA[iNdEx]
  5319. iNdEx++
  5320. v |= int(b&0x7F) << shift
  5321. if b < 0x80 {
  5322. break
  5323. }
  5324. }
  5325. m.PeerClientCertAuth = bool(v != 0)
  5326. case 35:
  5327. if wireType != 2 {
  5328. return fmt.Errorf("proto: wrong wireType = %d for field PeerCertFile", wireType)
  5329. }
  5330. var stringLen uint64
  5331. for shift := uint(0); ; shift += 7 {
  5332. if shift >= 64 {
  5333. return ErrIntOverflowRpc
  5334. }
  5335. if iNdEx >= l {
  5336. return io.ErrUnexpectedEOF
  5337. }
  5338. b := dAtA[iNdEx]
  5339. iNdEx++
  5340. stringLen |= uint64(b&0x7F) << shift
  5341. if b < 0x80 {
  5342. break
  5343. }
  5344. }
  5345. intStringLen := int(stringLen)
  5346. if intStringLen < 0 {
  5347. return ErrInvalidLengthRpc
  5348. }
  5349. postIndex := iNdEx + intStringLen
  5350. if postIndex < 0 {
  5351. return ErrInvalidLengthRpc
  5352. }
  5353. if postIndex > l {
  5354. return io.ErrUnexpectedEOF
  5355. }
  5356. m.PeerCertFile = string(dAtA[iNdEx:postIndex])
  5357. iNdEx = postIndex
  5358. case 36:
  5359. if wireType != 2 {
  5360. return fmt.Errorf("proto: wrong wireType = %d for field PeerKeyFile", wireType)
  5361. }
  5362. var stringLen uint64
  5363. for shift := uint(0); ; shift += 7 {
  5364. if shift >= 64 {
  5365. return ErrIntOverflowRpc
  5366. }
  5367. if iNdEx >= l {
  5368. return io.ErrUnexpectedEOF
  5369. }
  5370. b := dAtA[iNdEx]
  5371. iNdEx++
  5372. stringLen |= uint64(b&0x7F) << shift
  5373. if b < 0x80 {
  5374. break
  5375. }
  5376. }
  5377. intStringLen := int(stringLen)
  5378. if intStringLen < 0 {
  5379. return ErrInvalidLengthRpc
  5380. }
  5381. postIndex := iNdEx + intStringLen
  5382. if postIndex < 0 {
  5383. return ErrInvalidLengthRpc
  5384. }
  5385. if postIndex > l {
  5386. return io.ErrUnexpectedEOF
  5387. }
  5388. m.PeerKeyFile = string(dAtA[iNdEx:postIndex])
  5389. iNdEx = postIndex
  5390. case 37:
  5391. if wireType != 2 {
  5392. return fmt.Errorf("proto: wrong wireType = %d for field PeerTrustedCAFile", wireType)
  5393. }
  5394. var stringLen uint64
  5395. for shift := uint(0); ; shift += 7 {
  5396. if shift >= 64 {
  5397. return ErrIntOverflowRpc
  5398. }
  5399. if iNdEx >= l {
  5400. return io.ErrUnexpectedEOF
  5401. }
  5402. b := dAtA[iNdEx]
  5403. iNdEx++
  5404. stringLen |= uint64(b&0x7F) << shift
  5405. if b < 0x80 {
  5406. break
  5407. }
  5408. }
  5409. intStringLen := int(stringLen)
  5410. if intStringLen < 0 {
  5411. return ErrInvalidLengthRpc
  5412. }
  5413. postIndex := iNdEx + intStringLen
  5414. if postIndex < 0 {
  5415. return ErrInvalidLengthRpc
  5416. }
  5417. if postIndex > l {
  5418. return io.ErrUnexpectedEOF
  5419. }
  5420. m.PeerTrustedCAFile = string(dAtA[iNdEx:postIndex])
  5421. iNdEx = postIndex
  5422. case 41:
  5423. if wireType != 2 {
  5424. return fmt.Errorf("proto: wrong wireType = %d for field InitialCluster", wireType)
  5425. }
  5426. var stringLen uint64
  5427. for shift := uint(0); ; shift += 7 {
  5428. if shift >= 64 {
  5429. return ErrIntOverflowRpc
  5430. }
  5431. if iNdEx >= l {
  5432. return io.ErrUnexpectedEOF
  5433. }
  5434. b := dAtA[iNdEx]
  5435. iNdEx++
  5436. stringLen |= uint64(b&0x7F) << shift
  5437. if b < 0x80 {
  5438. break
  5439. }
  5440. }
  5441. intStringLen := int(stringLen)
  5442. if intStringLen < 0 {
  5443. return ErrInvalidLengthRpc
  5444. }
  5445. postIndex := iNdEx + intStringLen
  5446. if postIndex < 0 {
  5447. return ErrInvalidLengthRpc
  5448. }
  5449. if postIndex > l {
  5450. return io.ErrUnexpectedEOF
  5451. }
  5452. m.InitialCluster = string(dAtA[iNdEx:postIndex])
  5453. iNdEx = postIndex
  5454. case 42:
  5455. if wireType != 2 {
  5456. return fmt.Errorf("proto: wrong wireType = %d for field InitialClusterState", wireType)
  5457. }
  5458. var stringLen uint64
  5459. for shift := uint(0); ; shift += 7 {
  5460. if shift >= 64 {
  5461. return ErrIntOverflowRpc
  5462. }
  5463. if iNdEx >= l {
  5464. return io.ErrUnexpectedEOF
  5465. }
  5466. b := dAtA[iNdEx]
  5467. iNdEx++
  5468. stringLen |= uint64(b&0x7F) << shift
  5469. if b < 0x80 {
  5470. break
  5471. }
  5472. }
  5473. intStringLen := int(stringLen)
  5474. if intStringLen < 0 {
  5475. return ErrInvalidLengthRpc
  5476. }
  5477. postIndex := iNdEx + intStringLen
  5478. if postIndex < 0 {
  5479. return ErrInvalidLengthRpc
  5480. }
  5481. if postIndex > l {
  5482. return io.ErrUnexpectedEOF
  5483. }
  5484. m.InitialClusterState = string(dAtA[iNdEx:postIndex])
  5485. iNdEx = postIndex
  5486. case 43:
  5487. if wireType != 2 {
  5488. return fmt.Errorf("proto: wrong wireType = %d for field InitialClusterToken", wireType)
  5489. }
  5490. var stringLen uint64
  5491. for shift := uint(0); ; shift += 7 {
  5492. if shift >= 64 {
  5493. return ErrIntOverflowRpc
  5494. }
  5495. if iNdEx >= l {
  5496. return io.ErrUnexpectedEOF
  5497. }
  5498. b := dAtA[iNdEx]
  5499. iNdEx++
  5500. stringLen |= uint64(b&0x7F) << shift
  5501. if b < 0x80 {
  5502. break
  5503. }
  5504. }
  5505. intStringLen := int(stringLen)
  5506. if intStringLen < 0 {
  5507. return ErrInvalidLengthRpc
  5508. }
  5509. postIndex := iNdEx + intStringLen
  5510. if postIndex < 0 {
  5511. return ErrInvalidLengthRpc
  5512. }
  5513. if postIndex > l {
  5514. return io.ErrUnexpectedEOF
  5515. }
  5516. m.InitialClusterToken = string(dAtA[iNdEx:postIndex])
  5517. iNdEx = postIndex
  5518. case 51:
  5519. if wireType != 0 {
  5520. return fmt.Errorf("proto: wrong wireType = %d for field SnapshotCount", wireType)
  5521. }
  5522. m.SnapshotCount = 0
  5523. for shift := uint(0); ; shift += 7 {
  5524. if shift >= 64 {
  5525. return ErrIntOverflowRpc
  5526. }
  5527. if iNdEx >= l {
  5528. return io.ErrUnexpectedEOF
  5529. }
  5530. b := dAtA[iNdEx]
  5531. iNdEx++
  5532. m.SnapshotCount |= int64(b&0x7F) << shift
  5533. if b < 0x80 {
  5534. break
  5535. }
  5536. }
  5537. case 52:
  5538. if wireType != 0 {
  5539. return fmt.Errorf("proto: wrong wireType = %d for field QuotaBackendBytes", wireType)
  5540. }
  5541. m.QuotaBackendBytes = 0
  5542. for shift := uint(0); ; shift += 7 {
  5543. if shift >= 64 {
  5544. return ErrIntOverflowRpc
  5545. }
  5546. if iNdEx >= l {
  5547. return io.ErrUnexpectedEOF
  5548. }
  5549. b := dAtA[iNdEx]
  5550. iNdEx++
  5551. m.QuotaBackendBytes |= int64(b&0x7F) << shift
  5552. if b < 0x80 {
  5553. break
  5554. }
  5555. }
  5556. case 63:
  5557. if wireType != 0 {
  5558. return fmt.Errorf("proto: wrong wireType = %d for field PreVote", wireType)
  5559. }
  5560. var v int
  5561. for shift := uint(0); ; shift += 7 {
  5562. if shift >= 64 {
  5563. return ErrIntOverflowRpc
  5564. }
  5565. if iNdEx >= l {
  5566. return io.ErrUnexpectedEOF
  5567. }
  5568. b := dAtA[iNdEx]
  5569. iNdEx++
  5570. v |= int(b&0x7F) << shift
  5571. if b < 0x80 {
  5572. break
  5573. }
  5574. }
  5575. m.PreVote = bool(v != 0)
  5576. case 64:
  5577. if wireType != 0 {
  5578. return fmt.Errorf("proto: wrong wireType = %d for field InitialCorruptCheck", wireType)
  5579. }
  5580. var v int
  5581. for shift := uint(0); ; shift += 7 {
  5582. if shift >= 64 {
  5583. return ErrIntOverflowRpc
  5584. }
  5585. if iNdEx >= l {
  5586. return io.ErrUnexpectedEOF
  5587. }
  5588. b := dAtA[iNdEx]
  5589. iNdEx++
  5590. v |= int(b&0x7F) << shift
  5591. if b < 0x80 {
  5592. break
  5593. }
  5594. }
  5595. m.InitialCorruptCheck = bool(v != 0)
  5596. case 71:
  5597. if wireType != 2 {
  5598. return fmt.Errorf("proto: wrong wireType = %d for field Logger", wireType)
  5599. }
  5600. var stringLen uint64
  5601. for shift := uint(0); ; shift += 7 {
  5602. if shift >= 64 {
  5603. return ErrIntOverflowRpc
  5604. }
  5605. if iNdEx >= l {
  5606. return io.ErrUnexpectedEOF
  5607. }
  5608. b := dAtA[iNdEx]
  5609. iNdEx++
  5610. stringLen |= uint64(b&0x7F) << shift
  5611. if b < 0x80 {
  5612. break
  5613. }
  5614. }
  5615. intStringLen := int(stringLen)
  5616. if intStringLen < 0 {
  5617. return ErrInvalidLengthRpc
  5618. }
  5619. postIndex := iNdEx + intStringLen
  5620. if postIndex < 0 {
  5621. return ErrInvalidLengthRpc
  5622. }
  5623. if postIndex > l {
  5624. return io.ErrUnexpectedEOF
  5625. }
  5626. m.Logger = string(dAtA[iNdEx:postIndex])
  5627. iNdEx = postIndex
  5628. case 72:
  5629. if wireType != 2 {
  5630. return fmt.Errorf("proto: wrong wireType = %d for field LogOutputs", wireType)
  5631. }
  5632. var stringLen uint64
  5633. for shift := uint(0); ; shift += 7 {
  5634. if shift >= 64 {
  5635. return ErrIntOverflowRpc
  5636. }
  5637. if iNdEx >= l {
  5638. return io.ErrUnexpectedEOF
  5639. }
  5640. b := dAtA[iNdEx]
  5641. iNdEx++
  5642. stringLen |= uint64(b&0x7F) << shift
  5643. if b < 0x80 {
  5644. break
  5645. }
  5646. }
  5647. intStringLen := int(stringLen)
  5648. if intStringLen < 0 {
  5649. return ErrInvalidLengthRpc
  5650. }
  5651. postIndex := iNdEx + intStringLen
  5652. if postIndex < 0 {
  5653. return ErrInvalidLengthRpc
  5654. }
  5655. if postIndex > l {
  5656. return io.ErrUnexpectedEOF
  5657. }
  5658. m.LogOutputs = append(m.LogOutputs, string(dAtA[iNdEx:postIndex]))
  5659. iNdEx = postIndex
  5660. case 73:
  5661. if wireType != 2 {
  5662. return fmt.Errorf("proto: wrong wireType = %d for field LogLevel", wireType)
  5663. }
  5664. var stringLen uint64
  5665. for shift := uint(0); ; shift += 7 {
  5666. if shift >= 64 {
  5667. return ErrIntOverflowRpc
  5668. }
  5669. if iNdEx >= l {
  5670. return io.ErrUnexpectedEOF
  5671. }
  5672. b := dAtA[iNdEx]
  5673. iNdEx++
  5674. stringLen |= uint64(b&0x7F) << shift
  5675. if b < 0x80 {
  5676. break
  5677. }
  5678. }
  5679. intStringLen := int(stringLen)
  5680. if intStringLen < 0 {
  5681. return ErrInvalidLengthRpc
  5682. }
  5683. postIndex := iNdEx + intStringLen
  5684. if postIndex < 0 {
  5685. return ErrInvalidLengthRpc
  5686. }
  5687. if postIndex > l {
  5688. return io.ErrUnexpectedEOF
  5689. }
  5690. m.LogLevel = string(dAtA[iNdEx:postIndex])
  5691. iNdEx = postIndex
  5692. default:
  5693. iNdEx = preIndex
  5694. skippy, err := skipRpc(dAtA[iNdEx:])
  5695. if err != nil {
  5696. return err
  5697. }
  5698. if skippy < 0 {
  5699. return ErrInvalidLengthRpc
  5700. }
  5701. if (iNdEx + skippy) < 0 {
  5702. return ErrInvalidLengthRpc
  5703. }
  5704. if (iNdEx + skippy) > l {
  5705. return io.ErrUnexpectedEOF
  5706. }
  5707. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5708. iNdEx += skippy
  5709. }
  5710. }
  5711. if iNdEx > l {
  5712. return io.ErrUnexpectedEOF
  5713. }
  5714. return nil
  5715. }
  5716. func skipRpc(dAtA []byte) (n int, err error) {
  5717. l := len(dAtA)
  5718. iNdEx := 0
  5719. for iNdEx < l {
  5720. var wire uint64
  5721. for shift := uint(0); ; shift += 7 {
  5722. if shift >= 64 {
  5723. return 0, ErrIntOverflowRpc
  5724. }
  5725. if iNdEx >= l {
  5726. return 0, io.ErrUnexpectedEOF
  5727. }
  5728. b := dAtA[iNdEx]
  5729. iNdEx++
  5730. wire |= (uint64(b) & 0x7F) << shift
  5731. if b < 0x80 {
  5732. break
  5733. }
  5734. }
  5735. wireType := int(wire & 0x7)
  5736. switch wireType {
  5737. case 0:
  5738. for shift := uint(0); ; shift += 7 {
  5739. if shift >= 64 {
  5740. return 0, ErrIntOverflowRpc
  5741. }
  5742. if iNdEx >= l {
  5743. return 0, io.ErrUnexpectedEOF
  5744. }
  5745. iNdEx++
  5746. if dAtA[iNdEx-1] < 0x80 {
  5747. break
  5748. }
  5749. }
  5750. return iNdEx, nil
  5751. case 1:
  5752. iNdEx += 8
  5753. return iNdEx, nil
  5754. case 2:
  5755. var length int
  5756. for shift := uint(0); ; shift += 7 {
  5757. if shift >= 64 {
  5758. return 0, ErrIntOverflowRpc
  5759. }
  5760. if iNdEx >= l {
  5761. return 0, io.ErrUnexpectedEOF
  5762. }
  5763. b := dAtA[iNdEx]
  5764. iNdEx++
  5765. length |= (int(b) & 0x7F) << shift
  5766. if b < 0x80 {
  5767. break
  5768. }
  5769. }
  5770. if length < 0 {
  5771. return 0, ErrInvalidLengthRpc
  5772. }
  5773. iNdEx += length
  5774. if iNdEx < 0 {
  5775. return 0, ErrInvalidLengthRpc
  5776. }
  5777. return iNdEx, nil
  5778. case 3:
  5779. for {
  5780. var innerWire uint64
  5781. var start int = iNdEx
  5782. for shift := uint(0); ; shift += 7 {
  5783. if shift >= 64 {
  5784. return 0, ErrIntOverflowRpc
  5785. }
  5786. if iNdEx >= l {
  5787. return 0, io.ErrUnexpectedEOF
  5788. }
  5789. b := dAtA[iNdEx]
  5790. iNdEx++
  5791. innerWire |= (uint64(b) & 0x7F) << shift
  5792. if b < 0x80 {
  5793. break
  5794. }
  5795. }
  5796. innerWireType := int(innerWire & 0x7)
  5797. if innerWireType == 4 {
  5798. break
  5799. }
  5800. next, err := skipRpc(dAtA[start:])
  5801. if err != nil {
  5802. return 0, err
  5803. }
  5804. iNdEx = start + next
  5805. if iNdEx < 0 {
  5806. return 0, ErrInvalidLengthRpc
  5807. }
  5808. }
  5809. return iNdEx, nil
  5810. case 4:
  5811. return iNdEx, nil
  5812. case 5:
  5813. iNdEx += 4
  5814. return iNdEx, nil
  5815. default:
  5816. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  5817. }
  5818. }
  5819. panic("unreachable")
  5820. }
  5821. var (
  5822. ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling")
  5823. ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow")
  5824. )