1 Star 0 Fork 0

zhuchance / kubernetes

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
scheduler.pb.go 183.74 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536
// Code generated by protoc-gen-gogo.
// source: scheduler/scheduler.proto
// DO NOT EDIT!
/*
Package scheduler is a generated protocol buffer package.
It is generated from these files:
scheduler/scheduler.proto
It has these top-level messages:
Event
Call
*/
package scheduler
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import mesosproto "github.com/mesos/mesos-go/mesosproto"
// discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto"
import bytes "bytes"
import strings "strings"
import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
import sort "sort"
import strconv "strconv"
import reflect "reflect"
import io "io"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// Possible event types, followed by message definitions if
// applicable.
type Event_Type int32
const (
Event_SUBSCRIBED Event_Type = 1
Event_OFFERS Event_Type = 2
Event_RESCIND Event_Type = 3
Event_UPDATE Event_Type = 4
Event_MESSAGE Event_Type = 5
Event_FAILURE Event_Type = 6
Event_ERROR Event_Type = 7
// Periodic message sent by the Mesos master according to
// 'Subscribed.heartbeat_interval_seconds'. If the scheduler does
// not receive any events (including heartbeats) for an extended
// period of time (e.g., 5 x heartbeat_interval_seconds), there is
// likely a network partition. In such a case the scheduler should
// close the existing subscription connection and resubscribe
// using a backoff strategy.
Event_HEARTBEAT Event_Type = 8
)
var Event_Type_name = map[int32]string{
1: "SUBSCRIBED",
2: "OFFERS",
3: "RESCIND",
4: "UPDATE",
5: "MESSAGE",
6: "FAILURE",
7: "ERROR",
8: "HEARTBEAT",
}
var Event_Type_value = map[string]int32{
"SUBSCRIBED": 1,
"OFFERS": 2,
"RESCIND": 3,
"UPDATE": 4,
"MESSAGE": 5,
"FAILURE": 6,
"ERROR": 7,
"HEARTBEAT": 8,
}
func (x Event_Type) Enum() *Event_Type {
p := new(Event_Type)
*p = x
return p
}
func (x Event_Type) String() string {
return proto.EnumName(Event_Type_name, int32(x))
}
func (x *Event_Type) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Event_Type_value, data, "Event_Type")
if err != nil {
return err
}
*x = Event_Type(value)
return nil
}
// Possible call types, followed by message definitions if
// applicable.
type Call_Type int32
const (
Call_SUBSCRIBE Call_Type = 1
Call_TEARDOWN Call_Type = 2
Call_ACCEPT Call_Type = 3
Call_DECLINE Call_Type = 4
Call_REVIVE Call_Type = 5
Call_KILL Call_Type = 6
Call_SHUTDOWN Call_Type = 7
Call_ACKNOWLEDGE Call_Type = 8
Call_RECONCILE Call_Type = 9
Call_MESSAGE Call_Type = 10
Call_REQUEST Call_Type = 11
Call_SUPPRESS Call_Type = 12
)
var Call_Type_name = map[int32]string{
1: "SUBSCRIBE",
2: "TEARDOWN",
3: "ACCEPT",
4: "DECLINE",
5: "REVIVE",
6: "KILL",
7: "SHUTDOWN",
8: "ACKNOWLEDGE",
9: "RECONCILE",
10: "MESSAGE",
11: "REQUEST",
12: "SUPPRESS",
}
var Call_Type_value = map[string]int32{
"SUBSCRIBE": 1,
"TEARDOWN": 2,
"ACCEPT": 3,
"DECLINE": 4,
"REVIVE": 5,
"KILL": 6,
"SHUTDOWN": 7,
"ACKNOWLEDGE": 8,
"RECONCILE": 9,
"MESSAGE": 10,
"REQUEST": 11,
"SUPPRESS": 12,
}
func (x Call_Type) Enum() *Call_Type {
p := new(Call_Type)
*p = x
return p
}
func (x Call_Type) String() string {
return proto.EnumName(Call_Type_name, int32(x))
}
func (x *Call_Type) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Call_Type_value, data, "Call_Type")
if err != nil {
return err
}
*x = Call_Type(value)
return nil
}
// *
// Scheduler event API.
//
// An event is described using the standard protocol buffer "union"
// trick, see:
// https://developers.google.com/protocol-buffers/docs/techniques#union.
type Event struct {
// Type of the event, indicates which optional field below should be
// present if that type has a nested message definition.
Type *Event_Type `protobuf:"varint,1,req,name=type,enum=mesosproto.scheduler.Event_Type" json:"type,omitempty"`
Subscribed *Event_Subscribed `protobuf:"bytes,2,opt,name=subscribed" json:"subscribed,omitempty"`
Offers *Event_Offers `protobuf:"bytes,3,opt,name=offers" json:"offers,omitempty"`
Rescind *Event_Rescind `protobuf:"bytes,4,opt,name=rescind" json:"rescind,omitempty"`
Update *Event_Update `protobuf:"bytes,5,opt,name=update" json:"update,omitempty"`
Message *Event_Message `protobuf:"bytes,6,opt,name=message" json:"message,omitempty"`
Failure *Event_Failure `protobuf:"bytes,7,opt,name=failure" json:"failure,omitempty"`
Error *Event_Error `protobuf:"bytes,8,opt,name=error" json:"error,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Event) Reset() { *m = Event{} }
func (*Event) ProtoMessage() {}
func (m *Event) GetType() Event_Type {
if m != nil && m.Type != nil {
return *m.Type
}
return Event_SUBSCRIBED
}
func (m *Event) GetSubscribed() *Event_Subscribed {
if m != nil {
return m.Subscribed
}
return nil
}
func (m *Event) GetOffers() *Event_Offers {
if m != nil {
return m.Offers
}
return nil
}
func (m *Event) GetRescind() *Event_Rescind {
if m != nil {
return m.Rescind
}
return nil
}
func (m *Event) GetUpdate() *Event_Update {
if m != nil {
return m.Update
}
return nil
}
func (m *Event) GetMessage() *Event_Message {
if m != nil {
return m.Message
}
return nil
}
func (m *Event) GetFailure() *Event_Failure {
if m != nil {
return m.Failure
}
return nil
}
func (m *Event) GetError() *Event_Error {
if m != nil {
return m.Error
}
return nil
}
// First event received when the scheduler subscribes.
type Event_Subscribed struct {
FrameworkId *mesosproto.FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
// This value will be set if the master is sending heartbeats. See
// the comment above on 'HEARTBEAT' for more details.
HeartbeatIntervalSeconds *float64 `protobuf:"fixed64,2,opt,name=heartbeat_interval_seconds" json:"heartbeat_interval_seconds,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Event_Subscribed) Reset() { *m = Event_Subscribed{} }
func (*Event_Subscribed) ProtoMessage() {}
func (m *Event_Subscribed) GetFrameworkId() *mesosproto.FrameworkID {
if m != nil {
return m.FrameworkId
}
return nil
}
func (m *Event_Subscribed) GetHeartbeatIntervalSeconds() float64 {
if m != nil && m.HeartbeatIntervalSeconds != nil {
return *m.HeartbeatIntervalSeconds
}
return 0
}
// Received whenever there are new resources that are offered to the
// scheduler or resources requested back from the scheduler. Each
// offer corresponds to a set of resources on a slave. Until the
// scheduler accepts or declines an offer the resources are
// considered allocated to the scheduler. Accepting or Declining an
// inverse offer informs the allocator of the scheduler's ability to
// release the resources without violating an SLA.
type Event_Offers struct {
Offers []*mesosproto.Offer `protobuf:"bytes,1,rep,name=offers" json:"offers,omitempty"`
InverseOffers []*mesosproto.InverseOffer `protobuf:"bytes,2,rep,name=inverse_offers" json:"inverse_offers,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Event_Offers) Reset() { *m = Event_Offers{} }
func (*Event_Offers) ProtoMessage() {}
func (m *Event_Offers) GetOffers() []*mesosproto.Offer {
if m != nil {
return m.Offers
}
return nil
}
func (m *Event_Offers) GetInverseOffers() []*mesosproto.InverseOffer {
if m != nil {
return m.InverseOffers
}
return nil
}
// Received when a particular offer is no longer valid (e.g., the
// slave corresponding to the offer has been removed) and hence
// needs to be rescinded. Any future calls ('Accept' / 'Decline') made
// by the scheduler regarding this offer will be invalid.
type Event_Rescind struct {
OfferId *mesosproto.OfferID `protobuf:"bytes,1,req,name=offer_id" json:"offer_id,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Event_Rescind) Reset() { *m = Event_Rescind{} }
func (*Event_Rescind) ProtoMessage() {}
func (m *Event_Rescind) GetOfferId() *mesosproto.OfferID {
if m != nil {
return m.OfferId
}
return nil
}
// Received whenever there is a status update that is generated by
// the executor or slave or master. Status updates should be used by
// executors to reliably communicate the status of the tasks that
// they manage. It is crucial that a terminal update (see TaskState
// in mesos.proto) is sent by the executor as soon as the task
// terminates, in order for Mesos to release the resources allocated
// to the task. It is also the responsibility of the scheduler to
// explicitly acknowledge the receipt of a status update. See
// 'Acknowledge' in the 'Call' section below for the semantics.
type Event_Update struct {
Status *mesosproto.TaskStatus `protobuf:"bytes,1,req,name=status" json:"status,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Event_Update) Reset() { *m = Event_Update{} }
func (*Event_Update) ProtoMessage() {}
func (m *Event_Update) GetStatus() *mesosproto.TaskStatus {
if m != nil {
return m.Status
}
return nil
}
// Received when a custom message generated by the executor is
// forwarded by the master. Note that this message is not
// interpreted by Mesos and is only forwarded (without reliability
// guarantees) to the scheduler. It is up to the executor to retry
// if the message is dropped for any reason.
type Event_Message struct {
SlaveId *mesosproto.SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
ExecutorId *mesosproto.ExecutorID `protobuf:"bytes,2,req,name=executor_id" json:"executor_id,omitempty"`
Data []byte `protobuf:"bytes,3,req,name=data" json:"data,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Event_Message) Reset() { *m = Event_Message{} }
func (*Event_Message) ProtoMessage() {}
func (m *Event_Message) GetSlaveId() *mesosproto.SlaveID {
if m != nil {
return m.SlaveId
}
return nil
}
func (m *Event_Message) GetExecutorId() *mesosproto.ExecutorID {
if m != nil {
return m.ExecutorId
}
return nil
}
func (m *Event_Message) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
// Received when a slave is removed from the cluster (e.g., failed
// health checks) or when an executor is terminated. Note that, this
// event coincides with receipt of terminal UPDATE events for any
// active tasks belonging to the slave or executor and receipt of
// 'Rescind' events for any outstanding offers belonging to the
// slave. Note that there is no guaranteed order between the
// 'Failure', 'Update' and 'Rescind' events when a slave or executor
// is removed.
// TODO(vinod): Consider splitting the lost slave and terminated
// executor into separate events and ensure it's reliably generated.
type Event_Failure struct {
SlaveId *mesosproto.SlaveID `protobuf:"bytes,1,opt,name=slave_id" json:"slave_id,omitempty"`
// If this was just a failure of an executor on a slave then
// 'executor_id' will be set and possibly 'status' (if we were
// able to determine the exit status).
ExecutorId *mesosproto.ExecutorID `protobuf:"bytes,2,opt,name=executor_id" json:"executor_id,omitempty"`
Status *int32 `protobuf:"varint,3,opt,name=status" json:"status,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Event_Failure) Reset() { *m = Event_Failure{} }
func (*Event_Failure) ProtoMessage() {}
func (m *Event_Failure) GetSlaveId() *mesosproto.SlaveID {
if m != nil {
return m.SlaveId
}
return nil
}
func (m *Event_Failure) GetExecutorId() *mesosproto.ExecutorID {
if m != nil {
return m.ExecutorId
}
return nil
}
func (m *Event_Failure) GetStatus() int32 {
if m != nil && m.Status != nil {
return *m.Status
}
return 0
}
// Received when an invalid framework (e.g., unauthenticated,
// unauthorized) attempts to subscribe with the master. Error can
// also be received if scheduler sends invalid Calls (e.g., not
// properly initialized).
// TODO(vinod): Remove this once the old scheduler driver is no
// longer supported. With HTTP API all errors will be signaled via
// HTTP response codes.
type Event_Error struct {
Message *string `protobuf:"bytes,1,req,name=message" json:"message,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Event_Error) Reset() { *m = Event_Error{} }
func (*Event_Error) ProtoMessage() {}
func (m *Event_Error) GetMessage() string {
if m != nil && m.Message != nil {
return *m.Message
}
return ""
}
// *
// Scheduler call API.
//
// Like Event, a Call is described using the standard protocol buffer
// "union" trick (see above).
type Call struct {
// Identifies who generated this call. Master assigns a framework id
// when a new scheduler subscribes for the first time. Once assigned,
// the scheduler must set the 'framework_id' here and within its
// FrameworkInfo (in any further 'Subscribe' calls). This allows the
// master to identify a scheduler correctly across disconnections,
// failovers, etc.
FrameworkId *mesosproto.FrameworkID `protobuf:"bytes,1,opt,name=framework_id" json:"framework_id,omitempty"`
// Type of the call, indicates which optional field below should be
// present if that type has a nested message definition.
Type *Call_Type `protobuf:"varint,2,req,name=type,enum=mesosproto.scheduler.Call_Type" json:"type,omitempty"`
Subscribe *Call_Subscribe `protobuf:"bytes,3,opt,name=subscribe" json:"subscribe,omitempty"`
Accept *Call_Accept `protobuf:"bytes,4,opt,name=accept" json:"accept,omitempty"`
Decline *Call_Decline `protobuf:"bytes,5,opt,name=decline" json:"decline,omitempty"`
Kill *Call_Kill `protobuf:"bytes,6,opt,name=kill" json:"kill,omitempty"`
Shutdown *Call_Shutdown `protobuf:"bytes,7,opt,name=shutdown" json:"shutdown,omitempty"`
Acknowledge *Call_Acknowledge `protobuf:"bytes,8,opt,name=acknowledge" json:"acknowledge,omitempty"`
Reconcile *Call_Reconcile `protobuf:"bytes,9,opt,name=reconcile" json:"reconcile,omitempty"`
Message *Call_Message `protobuf:"bytes,10,opt,name=message" json:"message,omitempty"`
Request *Call_Request `protobuf:"bytes,11,opt,name=request" json:"request,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Call) Reset() { *m = Call{} }
func (*Call) ProtoMessage() {}
func (m *Call) GetFrameworkId() *mesosproto.FrameworkID {
if m != nil {
return m.FrameworkId
}
return nil
}
func (m *Call) GetType() Call_Type {
if m != nil && m.Type != nil {
return *m.Type
}
return Call_SUBSCRIBE
}
func (m *Call) GetSubscribe() *Call_Subscribe {
if m != nil {
return m.Subscribe
}
return nil
}
func (m *Call) GetAccept() *Call_Accept {
if m != nil {
return m.Accept
}
return nil
}
func (m *Call) GetDecline() *Call_Decline {
if m != nil {
return m.Decline
}
return nil
}
func (m *Call) GetKill() *Call_Kill {
if m != nil {
return m.Kill
}
return nil
}
func (m *Call) GetShutdown() *Call_Shutdown {
if m != nil {
return m.Shutdown
}
return nil
}
func (m *Call) GetAcknowledge() *Call_Acknowledge {
if m != nil {
return m.Acknowledge
}
return nil
}
func (m *Call) GetReconcile() *Call_Reconcile {
if m != nil {
return m.Reconcile
}
return nil
}
func (m *Call) GetMessage() *Call_Message {
if m != nil {
return m.Message
}
return nil
}
func (m *Call) GetRequest() *Call_Request {
if m != nil {
return m.Request
}
return nil
}
// Subscribes the scheduler with the master to receive events. A
// scheduler must send other calls only after it has received the
// SUBCRIBED event.
type Call_Subscribe struct {
// See the comments below on 'framework_id' on the semantics for
// 'framework_info.id'.
FrameworkInfo *mesosproto.FrameworkInfo `protobuf:"bytes,1,req,name=framework_info" json:"framework_info,omitempty"`
// 'force' field is only relevant when 'framework_info.id' is set.
// It tells the master what to do in case an instance of the
// scheduler attempts to subscribe when another instance of it is
// already connected (e.g., split brain due to network partition).
// If 'force' is true, this scheduler instance is allowed and the
// old connected scheduler instance is disconnected. If false,
// this scheduler instance is disallowed subscription in favor of
// the already connected scheduler instance.
//
// It is recommended to set this to true only when a newly elected
// scheduler instance is attempting to subscribe but not when a
// scheduler is retrying subscription (e.g., disconnection or
// master failover; see sched/sched.cpp for an example).
Force *bool `protobuf:"varint,2,opt,name=force" json:"force,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Call_Subscribe) Reset() { *m = Call_Subscribe{} }
func (*Call_Subscribe) ProtoMessage() {}
func (m *Call_Subscribe) GetFrameworkInfo() *mesosproto.FrameworkInfo {
if m != nil {
return m.FrameworkInfo
}
return nil
}
func (m *Call_Subscribe) GetForce() bool {
if m != nil && m.Force != nil {
return *m.Force
}
return false
}
// Accepts an offer, performing the specified operations
// in a sequential manner.
//
// E.g. Launch a task with a newly reserved persistent volume:
//
// Accept {
// offer_ids: [ ... ]
// operations: [
// { type: RESERVE,
// reserve: { resources: [ disk(role):2 ] } }
// { type: CREATE,
// create: { volumes: [ disk(role):1+persistence ] } }
// { type: LAUNCH,
// launch: { task_infos ... disk(role):1;disk(role):1+persistence } }
// ]
// }
//
// Note that any of the offer’s resources not used in the 'Accept'
// call (e.g., to launch a task) are considered unused and might be
// reoffered to other frameworks. In other words, the same OfferID
// cannot be used in more than one 'Accept' call.
type Call_Accept struct {
OfferIds []*mesosproto.OfferID `protobuf:"bytes,1,rep,name=offer_ids" json:"offer_ids,omitempty"`
Operations []*mesosproto.Offer_Operation `protobuf:"bytes,2,rep,name=operations" json:"operations,omitempty"`
Filters *mesosproto.Filters `protobuf:"bytes,3,opt,name=filters" json:"filters,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Call_Accept) Reset() { *m = Call_Accept{} }
func (*Call_Accept) ProtoMessage() {}
func (m *Call_Accept) GetOfferIds() []*mesosproto.OfferID {
if m != nil {
return m.OfferIds
}
return nil
}
func (m *Call_Accept) GetOperations() []*mesosproto.Offer_Operation {
if m != nil {
return m.Operations
}
return nil
}
func (m *Call_Accept) GetFilters() *mesosproto.Filters {
if m != nil {
return m.Filters
}
return nil
}
// Declines an offer, signaling the master to potentially reoffer
// the resources to a different framework. Note that this is same
// as sending an Accept call with no operations. See comments on
// top of 'Accept' for semantics.
type Call_Decline struct {
OfferIds []*mesosproto.OfferID `protobuf:"bytes,1,rep,name=offer_ids" json:"offer_ids,omitempty"`
Filters *mesosproto.Filters `protobuf:"bytes,2,opt,name=filters" json:"filters,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Call_Decline) Reset() { *m = Call_Decline{} }
func (*Call_Decline) ProtoMessage() {}
func (m *Call_Decline) GetOfferIds() []*mesosproto.OfferID {
if m != nil {
return m.OfferIds
}
return nil
}
func (m *Call_Decline) GetFilters() *mesosproto.Filters {
if m != nil {
return m.Filters
}
return nil
}
// Kills a specific task. If the scheduler has a custom executor,
// the kill is forwarded to the executor and it is up to the
// executor to kill the task and send a TASK_KILLED (or TASK_FAILED)
// update. Note that Mesos releases the resources for a task once it
// receives a terminal update (See TaskState in mesos.proto) for it.
// If the task is unknown to the master, a TASK_LOST update is
// generated.
type Call_Kill struct {
TaskId *mesosproto.TaskID `protobuf:"bytes,1,req,name=task_id" json:"task_id,omitempty"`
SlaveId *mesosproto.SlaveID `protobuf:"bytes,2,opt,name=slave_id" json:"slave_id,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Call_Kill) Reset() { *m = Call_Kill{} }
func (*Call_Kill) ProtoMessage() {}
func (m *Call_Kill) GetTaskId() *mesosproto.TaskID {
if m != nil {
return m.TaskId
}
return nil
}
func (m *Call_Kill) GetSlaveId() *mesosproto.SlaveID {
if m != nil {
return m.SlaveId
}
return nil
}
// Shuts down a custom executor. When the executor gets a shutdown
// event, it is expected to kill all its tasks (and send TASK_KILLED
// updates) and terminate. If the executor doesn’t terminate within
// a certain timeout (configurable via
// '--executor_shutdown_grace_period' slave flag), the slave will
// forcefully destroy the container (executor and its tasks) and
// transition its active tasks to TASK_LOST.
type Call_Shutdown struct {
ExecutorId *mesosproto.ExecutorID `protobuf:"bytes,1,req,name=executor_id" json:"executor_id,omitempty"`
SlaveId *mesosproto.SlaveID `protobuf:"bytes,2,req,name=slave_id" json:"slave_id,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Call_Shutdown) Reset() { *m = Call_Shutdown{} }
func (*Call_Shutdown) ProtoMessage() {}
func (m *Call_Shutdown) GetExecutorId() *mesosproto.ExecutorID {
if m != nil {
return m.ExecutorId
}
return nil
}
func (m *Call_Shutdown) GetSlaveId() *mesosproto.SlaveID {
if m != nil {
return m.SlaveId
}
return nil
}
// Acknowledges the receipt of status update. Schedulers are
// responsible for explicitly acknowledging the receipt of status
// updates that have 'Update.status().uuid()' field set. Such status
// updates are retried by the slave until they are acknowledged by
// the scheduler.
type Call_Acknowledge struct {
SlaveId *mesosproto.SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
TaskId *mesosproto.TaskID `protobuf:"bytes,2,req,name=task_id" json:"task_id,omitempty"`
Uuid []byte `protobuf:"bytes,3,req,name=uuid" json:"uuid,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Call_Acknowledge) Reset() { *m = Call_Acknowledge{} }
func (*Call_Acknowledge) ProtoMessage() {}
func (m *Call_Acknowledge) GetSlaveId() *mesosproto.SlaveID {
if m != nil {
return m.SlaveId
}
return nil
}
func (m *Call_Acknowledge) GetTaskId() *mesosproto.TaskID {
if m != nil {
return m.TaskId
}
return nil
}
func (m *Call_Acknowledge) GetUuid() []byte {
if m != nil {
return m.Uuid
}
return nil
}
// Allows the scheduler to query the status for non-terminal tasks.
// This causes the master to send back the latest task status for
// each task in 'tasks', if possible. Tasks that are no longer known
// will result in a TASK_LOST update. If 'statuses' is empty, then
// the master will send the latest status for each task currently
// known.
type Call_Reconcile struct {
Tasks []*Call_Reconcile_Task `protobuf:"bytes,1,rep,name=tasks" json:"tasks,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Call_Reconcile) Reset() { *m = Call_Reconcile{} }
func (*Call_Reconcile) ProtoMessage() {}
func (m *Call_Reconcile) GetTasks() []*Call_Reconcile_Task {
if m != nil {
return m.Tasks
}
return nil
}
// TODO(vinod): Support arbitrary queries than just state of tasks.
type Call_Reconcile_Task struct {
TaskId *mesosproto.TaskID `protobuf:"bytes,1,req,name=task_id" json:"task_id,omitempty"`
SlaveId *mesosproto.SlaveID `protobuf:"bytes,2,opt,name=slave_id" json:"slave_id,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Call_Reconcile_Task) Reset() { *m = Call_Reconcile_Task{} }
func (*Call_Reconcile_Task) ProtoMessage() {}
func (m *Call_Reconcile_Task) GetTaskId() *mesosproto.TaskID {
if m != nil {
return m.TaskId
}
return nil
}
func (m *Call_Reconcile_Task) GetSlaveId() *mesosproto.SlaveID {
if m != nil {
return m.SlaveId
}
return nil
}
// Sends arbitrary binary data to the executor. Note that Mesos
// neither interprets this data nor makes any guarantees about the
// delivery of this message to the executor.
type Call_Message struct {
SlaveId *mesosproto.SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
ExecutorId *mesosproto.ExecutorID `protobuf:"bytes,2,req,name=executor_id" json:"executor_id,omitempty"`
Data []byte `protobuf:"bytes,3,req,name=data" json:"data,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Call_Message) Reset() { *m = Call_Message{} }
func (*Call_Message) ProtoMessage() {}
func (m *Call_Message) GetSlaveId() *mesosproto.SlaveID {
if m != nil {
return m.SlaveId
}
return nil
}
func (m *Call_Message) GetExecutorId() *mesosproto.ExecutorID {
if m != nil {
return m.ExecutorId
}
return nil
}
func (m *Call_Message) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
// Requests a specific set of resources from Mesos's allocator. If
// the allocator has support for this, corresponding offers will be
// sent asynchronously via the OFFERS event(s).
//
// NOTE: The built-in hierarchical allocator doesn't have support
// for this call and hence simply ignores it.
type Call_Request struct {
Requests []*mesosproto.Request `protobuf:"bytes,1,rep,name=requests" json:"requests,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Call_Request) Reset() { *m = Call_Request{} }
func (*Call_Request) ProtoMessage() {}
func (m *Call_Request) GetRequests() []*mesosproto.Request {
if m != nil {
return m.Requests
}
return nil
}
func init() {
proto.RegisterEnum("mesosproto.scheduler.Event_Type", Event_Type_name, Event_Type_value)
proto.RegisterEnum("mesosproto.scheduler.Call_Type", Call_Type_name, Call_Type_value)
}
func (this *Event) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Event)
if !ok {
return fmt.Errorf("that is not of type *Event")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Event but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Eventbut is not nil && this == nil")
}
if this.Type != nil && that1.Type != nil {
if *this.Type != *that1.Type {
return fmt.Errorf("Type this(%v) Not Equal that(%v)", *this.Type, *that1.Type)
}
} else if this.Type != nil {
return fmt.Errorf("this.Type == nil && that.Type != nil")
} else if that1.Type != nil {
return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type)
}
if !this.Subscribed.Equal(that1.Subscribed) {
return fmt.Errorf("Subscribed this(%v) Not Equal that(%v)", this.Subscribed, that1.Subscribed)
}
if !this.Offers.Equal(that1.Offers) {
return fmt.Errorf("Offers this(%v) Not Equal that(%v)", this.Offers, that1.Offers)
}
if !this.Rescind.Equal(that1.Rescind) {
return fmt.Errorf("Rescind this(%v) Not Equal that(%v)", this.Rescind, that1.Rescind)
}
if !this.Update.Equal(that1.Update) {
return fmt.Errorf("Update this(%v) Not Equal that(%v)", this.Update, that1.Update)
}
if !this.Message.Equal(that1.Message) {
return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
}
if !this.Failure.Equal(that1.Failure) {
return fmt.Errorf("Failure this(%v) Not Equal that(%v)", this.Failure, that1.Failure)
}
if !this.Error.Equal(that1.Error) {
return fmt.Errorf("Error this(%v) Not Equal that(%v)", this.Error, that1.Error)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Event) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Event)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Type != nil && that1.Type != nil {
if *this.Type != *that1.Type {
return false
}
} else if this.Type != nil {
return false
} else if that1.Type != nil {
return false
}
if !this.Subscribed.Equal(that1.Subscribed) {
return false
}
if !this.Offers.Equal(that1.Offers) {
return false
}
if !this.Rescind.Equal(that1.Rescind) {
return false
}
if !this.Update.Equal(that1.Update) {
return false
}
if !this.Message.Equal(that1.Message) {
return false
}
if !this.Failure.Equal(that1.Failure) {
return false
}
if !this.Error.Equal(that1.Error) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Event_Subscribed) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Event_Subscribed)
if !ok {
return fmt.Errorf("that is not of type *Event_Subscribed")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Event_Subscribed but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Event_Subscribedbut is not nil && this == nil")
}
if !this.FrameworkId.Equal(that1.FrameworkId) {
return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
}
if this.HeartbeatIntervalSeconds != nil && that1.HeartbeatIntervalSeconds != nil {
if *this.HeartbeatIntervalSeconds != *that1.HeartbeatIntervalSeconds {
return fmt.Errorf("HeartbeatIntervalSeconds this(%v) Not Equal that(%v)", *this.HeartbeatIntervalSeconds, *that1.HeartbeatIntervalSeconds)
}
} else if this.HeartbeatIntervalSeconds != nil {
return fmt.Errorf("this.HeartbeatIntervalSeconds == nil && that.HeartbeatIntervalSeconds != nil")
} else if that1.HeartbeatIntervalSeconds != nil {
return fmt.Errorf("HeartbeatIntervalSeconds this(%v) Not Equal that(%v)", this.HeartbeatIntervalSeconds, that1.HeartbeatIntervalSeconds)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Event_Subscribed) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Event_Subscribed)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.FrameworkId.Equal(that1.FrameworkId) {
return false
}
if this.HeartbeatIntervalSeconds != nil && that1.HeartbeatIntervalSeconds != nil {
if *this.HeartbeatIntervalSeconds != *that1.HeartbeatIntervalSeconds {
return false
}
} else if this.HeartbeatIntervalSeconds != nil {
return false
} else if that1.HeartbeatIntervalSeconds != nil {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Event_Offers) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Event_Offers)
if !ok {
return fmt.Errorf("that is not of type *Event_Offers")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Event_Offers but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Event_Offersbut is not nil && this == nil")
}
if len(this.Offers) != len(that1.Offers) {
return fmt.Errorf("Offers this(%v) Not Equal that(%v)", len(this.Offers), len(that1.Offers))
}
for i := range this.Offers {
if !this.Offers[i].Equal(that1.Offers[i]) {
return fmt.Errorf("Offers this[%v](%v) Not Equal that[%v](%v)", i, this.Offers[i], i, that1.Offers[i])
}
}
if len(this.InverseOffers) != len(that1.InverseOffers) {
return fmt.Errorf("InverseOffers this(%v) Not Equal that(%v)", len(this.InverseOffers), len(that1.InverseOffers))
}
for i := range this.InverseOffers {
if !this.InverseOffers[i].Equal(that1.InverseOffers[i]) {
return fmt.Errorf("InverseOffers this[%v](%v) Not Equal that[%v](%v)", i, this.InverseOffers[i], i, that1.InverseOffers[i])
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Event_Offers) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Event_Offers)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if len(this.Offers) != len(that1.Offers) {
return false
}
for i := range this.Offers {
if !this.Offers[i].Equal(that1.Offers[i]) {
return false
}
}
if len(this.InverseOffers) != len(that1.InverseOffers) {
return false
}
for i := range this.InverseOffers {
if !this.InverseOffers[i].Equal(that1.InverseOffers[i]) {
return false
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Event_Rescind) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Event_Rescind)
if !ok {
return fmt.Errorf("that is not of type *Event_Rescind")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Event_Rescind but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Event_Rescindbut is not nil && this == nil")
}
if !this.OfferId.Equal(that1.OfferId) {
return fmt.Errorf("OfferId this(%v) Not Equal that(%v)", this.OfferId, that1.OfferId)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Event_Rescind) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Event_Rescind)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.OfferId.Equal(that1.OfferId) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Event_Update) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Event_Update)
if !ok {
return fmt.Errorf("that is not of type *Event_Update")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Event_Update but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Event_Updatebut is not nil && this == nil")
}
if !this.Status.Equal(that1.Status) {
return fmt.Errorf("Status this(%v) Not Equal that(%v)", this.Status, that1.Status)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Event_Update) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Event_Update)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.Status.Equal(that1.Status) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Event_Message) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Event_Message)
if !ok {
return fmt.Errorf("that is not of type *Event_Message")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Event_Message but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Event_Messagebut is not nil && this == nil")
}
if !this.SlaveId.Equal(that1.SlaveId) {
return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
}
if !this.ExecutorId.Equal(that1.ExecutorId) {
return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
}
if !bytes.Equal(this.Data, that1.Data) {
return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Event_Message) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Event_Message)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.SlaveId.Equal(that1.SlaveId) {
return false
}
if !this.ExecutorId.Equal(that1.ExecutorId) {
return false
}
if !bytes.Equal(this.Data, that1.Data) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Event_Failure) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Event_Failure)
if !ok {
return fmt.Errorf("that is not of type *Event_Failure")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Event_Failure but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Event_Failurebut is not nil && this == nil")
}
if !this.SlaveId.Equal(that1.SlaveId) {
return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
}
if !this.ExecutorId.Equal(that1.ExecutorId) {
return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
}
if this.Status != nil && that1.Status != nil {
if *this.Status != *that1.Status {
return fmt.Errorf("Status this(%v) Not Equal that(%v)", *this.Status, *that1.Status)
}
} else if this.Status != nil {
return fmt.Errorf("this.Status == nil && that.Status != nil")
} else if that1.Status != nil {
return fmt.Errorf("Status this(%v) Not Equal that(%v)", this.Status, that1.Status)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Event_Failure) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Event_Failure)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.SlaveId.Equal(that1.SlaveId) {
return false
}
if !this.ExecutorId.Equal(that1.ExecutorId) {
return false
}
if this.Status != nil && that1.Status != nil {
if *this.Status != *that1.Status {
return false
}
} else if this.Status != nil {
return false
} else if that1.Status != nil {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Event_Error) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Event_Error)
if !ok {
return fmt.Errorf("that is not of type *Event_Error")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Event_Error but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Event_Errorbut is not nil && this == nil")
}
if this.Message != nil && that1.Message != nil {
if *this.Message != *that1.Message {
return fmt.Errorf("Message this(%v) Not Equal that(%v)", *this.Message, *that1.Message)
}
} else if this.Message != nil {
return fmt.Errorf("this.Message == nil && that.Message != nil")
} else if that1.Message != nil {
return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Event_Error) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Event_Error)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Message != nil && that1.Message != nil {
if *this.Message != *that1.Message {
return false
}
} else if this.Message != nil {
return false
} else if that1.Message != nil {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Call) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Call)
if !ok {
return fmt.Errorf("that is not of type *Call")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Call but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Callbut is not nil && this == nil")
}
if !this.FrameworkId.Equal(that1.FrameworkId) {
return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
}
if this.Type != nil && that1.Type != nil {
if *this.Type != *that1.Type {
return fmt.Errorf("Type this(%v) Not Equal that(%v)", *this.Type, *that1.Type)
}
} else if this.Type != nil {
return fmt.Errorf("this.Type == nil && that.Type != nil")
} else if that1.Type != nil {
return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type)
}
if !this.Subscribe.Equal(that1.Subscribe) {
return fmt.Errorf("Subscribe this(%v) Not Equal that(%v)", this.Subscribe, that1.Subscribe)
}
if !this.Accept.Equal(that1.Accept) {
return fmt.Errorf("Accept this(%v) Not Equal that(%v)", this.Accept, that1.Accept)
}
if !this.Decline.Equal(that1.Decline) {
return fmt.Errorf("Decline this(%v) Not Equal that(%v)", this.Decline, that1.Decline)
}
if !this.Kill.Equal(that1.Kill) {
return fmt.Errorf("Kill this(%v) Not Equal that(%v)", this.Kill, that1.Kill)
}
if !this.Shutdown.Equal(that1.Shutdown) {
return fmt.Errorf("Shutdown this(%v) Not Equal that(%v)", this.Shutdown, that1.Shutdown)
}
if !this.Acknowledge.Equal(that1.Acknowledge) {
return fmt.Errorf("Acknowledge this(%v) Not Equal that(%v)", this.Acknowledge, that1.Acknowledge)
}
if !this.Reconcile.Equal(that1.Reconcile) {
return fmt.Errorf("Reconcile this(%v) Not Equal that(%v)", this.Reconcile, that1.Reconcile)
}
if !this.Message.Equal(that1.Message) {
return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
}
if !this.Request.Equal(that1.Request) {
return fmt.Errorf("Request this(%v) Not Equal that(%v)", this.Request, that1.Request)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Call) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Call)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.FrameworkId.Equal(that1.FrameworkId) {
return false
}
if this.Type != nil && that1.Type != nil {
if *this.Type != *that1.Type {
return false
}
} else if this.Type != nil {
return false
} else if that1.Type != nil {
return false
}
if !this.Subscribe.Equal(that1.Subscribe) {
return false
}
if !this.Accept.Equal(that1.Accept) {
return false
}
if !this.Decline.Equal(that1.Decline) {
return false
}
if !this.Kill.Equal(that1.Kill) {
return false
}
if !this.Shutdown.Equal(that1.Shutdown) {
return false
}
if !this.Acknowledge.Equal(that1.Acknowledge) {
return false
}
if !this.Reconcile.Equal(that1.Reconcile) {
return false
}
if !this.Message.Equal(that1.Message) {
return false
}
if !this.Request.Equal(that1.Request) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Call_Subscribe) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Call_Subscribe)
if !ok {
return fmt.Errorf("that is not of type *Call_Subscribe")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Call_Subscribe but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Call_Subscribebut is not nil && this == nil")
}
if !this.FrameworkInfo.Equal(that1.FrameworkInfo) {
return fmt.Errorf("FrameworkInfo this(%v) Not Equal that(%v)", this.FrameworkInfo, that1.FrameworkInfo)
}
if this.Force != nil && that1.Force != nil {
if *this.Force != *that1.Force {
return fmt.Errorf("Force this(%v) Not Equal that(%v)", *this.Force, *that1.Force)
}
} else if this.Force != nil {
return fmt.Errorf("this.Force == nil && that.Force != nil")
} else if that1.Force != nil {
return fmt.Errorf("Force this(%v) Not Equal that(%v)", this.Force, that1.Force)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Call_Subscribe) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Call_Subscribe)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.FrameworkInfo.Equal(that1.FrameworkInfo) {
return false
}
if this.Force != nil && that1.Force != nil {
if *this.Force != *that1.Force {
return false
}
} else if this.Force != nil {
return false
} else if that1.Force != nil {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Call_Accept) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Call_Accept)
if !ok {
return fmt.Errorf("that is not of type *Call_Accept")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Call_Accept but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Call_Acceptbut is not nil && this == nil")
}
if len(this.OfferIds) != len(that1.OfferIds) {
return fmt.Errorf("OfferIds this(%v) Not Equal that(%v)", len(this.OfferIds), len(that1.OfferIds))
}
for i := range this.OfferIds {
if !this.OfferIds[i].Equal(that1.OfferIds[i]) {
return fmt.Errorf("OfferIds this[%v](%v) Not Equal that[%v](%v)", i, this.OfferIds[i], i, that1.OfferIds[i])
}
}
if len(this.Operations) != len(that1.Operations) {
return fmt.Errorf("Operations this(%v) Not Equal that(%v)", len(this.Operations), len(that1.Operations))
}
for i := range this.Operations {
if !this.Operations[i].Equal(that1.Operations[i]) {
return fmt.Errorf("Operations this[%v](%v) Not Equal that[%v](%v)", i, this.Operations[i], i, that1.Operations[i])
}
}
if !this.Filters.Equal(that1.Filters) {
return fmt.Errorf("Filters this(%v) Not Equal that(%v)", this.Filters, that1.Filters)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Call_Accept) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Call_Accept)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if len(this.OfferIds) != len(that1.OfferIds) {
return false
}
for i := range this.OfferIds {
if !this.OfferIds[i].Equal(that1.OfferIds[i]) {
return false
}
}
if len(this.Operations) != len(that1.Operations) {
return false
}
for i := range this.Operations {
if !this.Operations[i].Equal(that1.Operations[i]) {
return false
}
}
if !this.Filters.Equal(that1.Filters) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Call_Decline) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Call_Decline)
if !ok {
return fmt.Errorf("that is not of type *Call_Decline")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Call_Decline but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Call_Declinebut is not nil && this == nil")
}
if len(this.OfferIds) != len(that1.OfferIds) {
return fmt.Errorf("OfferIds this(%v) Not Equal that(%v)", len(this.OfferIds), len(that1.OfferIds))
}
for i := range this.OfferIds {
if !this.OfferIds[i].Equal(that1.OfferIds[i]) {
return fmt.Errorf("OfferIds this[%v](%v) Not Equal that[%v](%v)", i, this.OfferIds[i], i, that1.OfferIds[i])
}
}
if !this.Filters.Equal(that1.Filters) {
return fmt.Errorf("Filters this(%v) Not Equal that(%v)", this.Filters, that1.Filters)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Call_Decline) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Call_Decline)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if len(this.OfferIds) != len(that1.OfferIds) {
return false
}
for i := range this.OfferIds {
if !this.OfferIds[i].Equal(that1.OfferIds[i]) {
return false
}
}
if !this.Filters.Equal(that1.Filters) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Call_Kill) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Call_Kill)
if !ok {
return fmt.Errorf("that is not of type *Call_Kill")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Call_Kill but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Call_Killbut is not nil && this == nil")
}
if !this.TaskId.Equal(that1.TaskId) {
return fmt.Errorf("TaskId this(%v) Not Equal that(%v)", this.TaskId, that1.TaskId)
}
if !this.SlaveId.Equal(that1.SlaveId) {
return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Call_Kill) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Call_Kill)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.TaskId.Equal(that1.TaskId) {
return false
}
if !this.SlaveId.Equal(that1.SlaveId) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Call_Shutdown) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Call_Shutdown)
if !ok {
return fmt.Errorf("that is not of type *Call_Shutdown")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Call_Shutdown but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Call_Shutdownbut is not nil && this == nil")
}
if !this.ExecutorId.Equal(that1.ExecutorId) {
return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
}
if !this.SlaveId.Equal(that1.SlaveId) {
return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Call_Shutdown) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Call_Shutdown)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.ExecutorId.Equal(that1.ExecutorId) {
return false
}
if !this.SlaveId.Equal(that1.SlaveId) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Call_Acknowledge) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Call_Acknowledge)
if !ok {
return fmt.Errorf("that is not of type *Call_Acknowledge")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Call_Acknowledge but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Call_Acknowledgebut is not nil && this == nil")
}
if !this.SlaveId.Equal(that1.SlaveId) {
return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
}
if !this.TaskId.Equal(that1.TaskId) {
return fmt.Errorf("TaskId this(%v) Not Equal that(%v)", this.TaskId, that1.TaskId)
}
if !bytes.Equal(this.Uuid, that1.Uuid) {
return fmt.Errorf("Uuid this(%v) Not Equal that(%v)", this.Uuid, that1.Uuid)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Call_Acknowledge) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Call_Acknowledge)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.SlaveId.Equal(that1.SlaveId) {
return false
}
if !this.TaskId.Equal(that1.TaskId) {
return false
}
if !bytes.Equal(this.Uuid, that1.Uuid) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Call_Reconcile) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Call_Reconcile)
if !ok {
return fmt.Errorf("that is not of type *Call_Reconcile")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Call_Reconcile but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Call_Reconcilebut is not nil && this == nil")
}
if len(this.Tasks) != len(that1.Tasks) {
return fmt.Errorf("Tasks this(%v) Not Equal that(%v)", len(this.Tasks), len(that1.Tasks))
}
for i := range this.Tasks {
if !this.Tasks[i].Equal(that1.Tasks[i]) {
return fmt.Errorf("Tasks this[%v](%v) Not Equal that[%v](%v)", i, this.Tasks[i], i, that1.Tasks[i])
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Call_Reconcile) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Call_Reconcile)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if len(this.Tasks) != len(that1.Tasks) {
return false
}
for i := range this.Tasks {
if !this.Tasks[i].Equal(that1.Tasks[i]) {
return false
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Call_Reconcile_Task) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Call_Reconcile_Task)
if !ok {
return fmt.Errorf("that is not of type *Call_Reconcile_Task")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Call_Reconcile_Task but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Call_Reconcile_Taskbut is not nil && this == nil")
}
if !this.TaskId.Equal(that1.TaskId) {
return fmt.Errorf("TaskId this(%v) Not Equal that(%v)", this.TaskId, that1.TaskId)
}
if !this.SlaveId.Equal(that1.SlaveId) {
return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Call_Reconcile_Task) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Call_Reconcile_Task)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.TaskId.Equal(that1.TaskId) {
return false
}
if !this.SlaveId.Equal(that1.SlaveId) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Call_Message) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Call_Message)
if !ok {
return fmt.Errorf("that is not of type *Call_Message")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Call_Message but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Call_Messagebut is not nil && this == nil")
}
if !this.SlaveId.Equal(that1.SlaveId) {
return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
}
if !this.ExecutorId.Equal(that1.ExecutorId) {
return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
}
if !bytes.Equal(this.Data, that1.Data) {
return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Call_Message) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Call_Message)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.SlaveId.Equal(that1.SlaveId) {
return false
}
if !this.ExecutorId.Equal(that1.ExecutorId) {
return false
}
if !bytes.Equal(this.Data, that1.Data) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Call_Request) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Call_Request)
if !ok {
return fmt.Errorf("that is not of type *Call_Request")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Call_Request but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Call_Requestbut is not nil && this == nil")
}
if len(this.Requests) != len(that1.Requests) {
return fmt.Errorf("Requests this(%v) Not Equal that(%v)", len(this.Requests), len(that1.Requests))
}
for i := range this.Requests {
if !this.Requests[i].Equal(that1.Requests[i]) {
return fmt.Errorf("Requests this[%v](%v) Not Equal that[%v](%v)", i, this.Requests[i], i, that1.Requests[i])
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Call_Request) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Call_Request)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if len(this.Requests) != len(that1.Requests) {
return false
}
for i := range this.Requests {
if !this.Requests[i].Equal(that1.Requests[i]) {
return false
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Event) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 12)
s = append(s, "&scheduler.Event{")
if this.Type != nil {
s = append(s, "Type: "+valueToGoStringScheduler(this.Type, "scheduler.Event_Type")+",\n")
}
if this.Subscribed != nil {
s = append(s, "Subscribed: "+fmt.Sprintf("%#v", this.Subscribed)+",\n")
}
if this.Offers != nil {
s = append(s, "Offers: "+fmt.Sprintf("%#v", this.Offers)+",\n")
}
if this.Rescind != nil {
s = append(s, "Rescind: "+fmt.Sprintf("%#v", this.Rescind)+",\n")
}
if this.Update != nil {
s = append(s, "Update: "+fmt.Sprintf("%#v", this.Update)+",\n")
}
if this.Message != nil {
s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
}
if this.Failure != nil {
s = append(s, "Failure: "+fmt.Sprintf("%#v", this.Failure)+",\n")
}
if this.Error != nil {
s = append(s, "Error: "+fmt.Sprintf("%#v", this.Error)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Event_Subscribed) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 6)
s = append(s, "&scheduler.Event_Subscribed{")
if this.FrameworkId != nil {
s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
}
if this.HeartbeatIntervalSeconds != nil {
s = append(s, "HeartbeatIntervalSeconds: "+valueToGoStringScheduler(this.HeartbeatIntervalSeconds, "float64")+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Event_Offers) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 6)
s = append(s, "&scheduler.Event_Offers{")
if this.Offers != nil {
s = append(s, "Offers: "+fmt.Sprintf("%#v", this.Offers)+",\n")
}
if this.InverseOffers != nil {
s = append(s, "InverseOffers: "+fmt.Sprintf("%#v", this.InverseOffers)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Event_Rescind) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 5)
s = append(s, "&scheduler.Event_Rescind{")
if this.OfferId != nil {
s = append(s, "OfferId: "+fmt.Sprintf("%#v", this.OfferId)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Event_Update) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 5)
s = append(s, "&scheduler.Event_Update{")
if this.Status != nil {
s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Event_Message) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 7)
s = append(s, "&scheduler.Event_Message{")
if this.SlaveId != nil {
s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
}
if this.ExecutorId != nil {
s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
}
if this.Data != nil {
s = append(s, "Data: "+valueToGoStringScheduler(this.Data, "byte")+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Event_Failure) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 7)
s = append(s, "&scheduler.Event_Failure{")
if this.SlaveId != nil {
s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
}
if this.ExecutorId != nil {
s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
}
if this.Status != nil {
s = append(s, "Status: "+valueToGoStringScheduler(this.Status, "int32")+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Event_Error) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 5)
s = append(s, "&scheduler.Event_Error{")
if this.Message != nil {
s = append(s, "Message: "+valueToGoStringScheduler(this.Message, "string")+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Call) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 15)
s = append(s, "&scheduler.Call{")
if this.FrameworkId != nil {
s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
}
if this.Type != nil {
s = append(s, "Type: "+valueToGoStringScheduler(this.Type, "scheduler.Call_Type")+",\n")
}
if this.Subscribe != nil {
s = append(s, "Subscribe: "+fmt.Sprintf("%#v", this.Subscribe)+",\n")
}
if this.Accept != nil {
s = append(s, "Accept: "+fmt.Sprintf("%#v", this.Accept)+",\n")
}
if this.Decline != nil {
s = append(s, "Decline: "+fmt.Sprintf("%#v", this.Decline)+",\n")
}
if this.Kill != nil {
s = append(s, "Kill: "+fmt.Sprintf("%#v", this.Kill)+",\n")
}
if this.Shutdown != nil {
s = append(s, "Shutdown: "+fmt.Sprintf("%#v", this.Shutdown)+",\n")
}
if this.Acknowledge != nil {
s = append(s, "Acknowledge: "+fmt.Sprintf("%#v", this.Acknowledge)+",\n")
}
if this.Reconcile != nil {
s = append(s, "Reconcile: "+fmt.Sprintf("%#v", this.Reconcile)+",\n")
}
if this.Message != nil {
s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
}
if this.Request != nil {
s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Call_Subscribe) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 6)
s = append(s, "&scheduler.Call_Subscribe{")
if this.FrameworkInfo != nil {
s = append(s, "FrameworkInfo: "+fmt.Sprintf("%#v", this.FrameworkInfo)+",\n")
}
if this.Force != nil {
s = append(s, "Force: "+valueToGoStringScheduler(this.Force, "bool")+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Call_Accept) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 7)
s = append(s, "&scheduler.Call_Accept{")
if this.OfferIds != nil {
s = append(s, "OfferIds: "+fmt.Sprintf("%#v", this.OfferIds)+",\n")
}
if this.Operations != nil {
s = append(s, "Operations: "+fmt.Sprintf("%#v", this.Operations)+",\n")
}
if this.Filters != nil {
s = append(s, "Filters: "+fmt.Sprintf("%#v", this.Filters)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Call_Decline) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 6)
s = append(s, "&scheduler.Call_Decline{")
if this.OfferIds != nil {
s = append(s, "OfferIds: "+fmt.Sprintf("%#v", this.OfferIds)+",\n")
}
if this.Filters != nil {
s = append(s, "Filters: "+fmt.Sprintf("%#v", this.Filters)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Call_Kill) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 6)
s = append(s, "&scheduler.Call_Kill{")
if this.TaskId != nil {
s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n")
}
if this.SlaveId != nil {
s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Call_Shutdown) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 6)
s = append(s, "&scheduler.Call_Shutdown{")
if this.ExecutorId != nil {
s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
}
if this.SlaveId != nil {
s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Call_Acknowledge) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 7)
s = append(s, "&scheduler.Call_Acknowledge{")
if this.SlaveId != nil {
s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
}
if this.TaskId != nil {
s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n")
}
if this.Uuid != nil {
s = append(s, "Uuid: "+valueToGoStringScheduler(this.Uuid, "byte")+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Call_Reconcile) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 5)
s = append(s, "&scheduler.Call_Reconcile{")
if this.Tasks != nil {
s = append(s, "Tasks: "+fmt.Sprintf("%#v", this.Tasks)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Call_Reconcile_Task) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 6)
s = append(s, "&scheduler.Call_Reconcile_Task{")
if this.TaskId != nil {
s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n")
}
if this.SlaveId != nil {
s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Call_Message) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 7)
s = append(s, "&scheduler.Call_Message{")
if this.SlaveId != nil {
s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
}
if this.ExecutorId != nil {
s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
}
if this.Data != nil {
s = append(s, "Data: "+valueToGoStringScheduler(this.Data, "byte")+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Call_Request) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 5)
s = append(s, "&scheduler.Call_Request{")
if this.Requests != nil {
s = append(s, "Requests: "+fmt.Sprintf("%#v", this.Requests)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func valueToGoStringScheduler(v interface{}, typ string) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
}
func extensionToGoStringScheduler(e map[int32]github_com_gogo_protobuf_proto.Extension) string {
if e == nil {
return "nil"
}
s := "map[int32]proto.Extension{"
keys := make([]int, 0, len(e))
for k := range e {
keys = append(keys, int(k))
}
sort.Ints(keys)
ss := []string{}
for _, k := range keys {
ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString())
}
s += strings.Join(ss, ",") + "}"
return s
}
func (m *Event) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Event) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Type == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("type")
} else {
data[i] = 0x8
i++
i = encodeVarintScheduler(data, i, uint64(*m.Type))
}
if m.Subscribed != nil {
data[i] = 0x12
i++
i = encodeVarintScheduler(data, i, uint64(m.Subscribed.Size()))
n1, err := m.Subscribed.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n1
}
if m.Offers != nil {
data[i] = 0x1a
i++
i = encodeVarintScheduler(data, i, uint64(m.Offers.Size()))
n2, err := m.Offers.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n2
}
if m.Rescind != nil {
data[i] = 0x22
i++
i = encodeVarintScheduler(data, i, uint64(m.Rescind.Size()))
n3, err := m.Rescind.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n3
}
if m.Update != nil {
data[i] = 0x2a
i++
i = encodeVarintScheduler(data, i, uint64(m.Update.Size()))
n4, err := m.Update.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n4
}
if m.Message != nil {
data[i] = 0x32
i++
i = encodeVarintScheduler(data, i, uint64(m.Message.Size()))
n5, err := m.Message.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n5
}
if m.Failure != nil {
data[i] = 0x3a
i++
i = encodeVarintScheduler(data, i, uint64(m.Failure.Size()))
n6, err := m.Failure.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n6
}
if m.Error != nil {
data[i] = 0x42
i++
i = encodeVarintScheduler(data, i, uint64(m.Error.Size()))
n7, err := m.Error.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n7
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Event_Subscribed) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Event_Subscribed) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.FrameworkId == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
} else {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(m.FrameworkId.Size()))
n8, err := m.FrameworkId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n8
}
if m.HeartbeatIntervalSeconds != nil {
data[i] = 0x11
i++
i = encodeFixed64Scheduler(data, i, uint64(math.Float64bits(*m.HeartbeatIntervalSeconds)))
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Event_Offers) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Event_Offers) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.Offers) > 0 {
for _, msg := range m.Offers {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(msg.Size()))
n, err := msg.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n
}
}
if len(m.InverseOffers) > 0 {
for _, msg := range m.InverseOffers {
data[i] = 0x12
i++
i = encodeVarintScheduler(data, i, uint64(msg.Size()))
n, err := msg.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n
}
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Event_Rescind) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Event_Rescind) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.OfferId == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("offer_id")
} else {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(m.OfferId.Size()))
n9, err := m.OfferId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n9
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Event_Update) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Event_Update) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Status == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("status")
} else {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(m.Status.Size()))
n10, err := m.Status.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n10
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Event_Message) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Event_Message) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.SlaveId == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
} else {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size()))
n11, err := m.SlaveId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n11
}
if m.ExecutorId == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
} else {
data[i] = 0x12
i++
i = encodeVarintScheduler(data, i, uint64(m.ExecutorId.Size()))
n12, err := m.ExecutorId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n12
}
if m.Data == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
} else {
data[i] = 0x1a
i++
i = encodeVarintScheduler(data, i, uint64(len(m.Data)))
i += copy(data[i:], m.Data)
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Event_Failure) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Event_Failure) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.SlaveId != nil {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size()))
n13, err := m.SlaveId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n13
}
if m.ExecutorId != nil {
data[i] = 0x12
i++
i = encodeVarintScheduler(data, i, uint64(m.ExecutorId.Size()))
n14, err := m.ExecutorId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n14
}
if m.Status != nil {
data[i] = 0x18
i++
i = encodeVarintScheduler(data, i, uint64(*m.Status))
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Event_Error) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Event_Error) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Message == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("message")
} else {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(len(*m.Message)))
i += copy(data[i:], *m.Message)
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Call) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Call) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.FrameworkId != nil {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(m.FrameworkId.Size()))
n15, err := m.FrameworkId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n15
}
if m.Type == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("type")
} else {
data[i] = 0x10
i++
i = encodeVarintScheduler(data, i, uint64(*m.Type))
}
if m.Subscribe != nil {
data[i] = 0x1a
i++
i = encodeVarintScheduler(data, i, uint64(m.Subscribe.Size()))
n16, err := m.Subscribe.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n16
}
if m.Accept != nil {
data[i] = 0x22
i++
i = encodeVarintScheduler(data, i, uint64(m.Accept.Size()))
n17, err := m.Accept.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n17
}
if m.Decline != nil {
data[i] = 0x2a
i++
i = encodeVarintScheduler(data, i, uint64(m.Decline.Size()))
n18, err := m.Decline.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n18
}
if m.Kill != nil {
data[i] = 0x32
i++
i = encodeVarintScheduler(data, i, uint64(m.Kill.Size()))
n19, err := m.Kill.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n19
}
if m.Shutdown != nil {
data[i] = 0x3a
i++
i = encodeVarintScheduler(data, i, uint64(m.Shutdown.Size()))
n20, err := m.Shutdown.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n20
}
if m.Acknowledge != nil {
data[i] = 0x42
i++
i = encodeVarintScheduler(data, i, uint64(m.Acknowledge.Size()))
n21, err := m.Acknowledge.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n21
}
if m.Reconcile != nil {
data[i] = 0x4a
i++
i = encodeVarintScheduler(data, i, uint64(m.Reconcile.Size()))
n22, err := m.Reconcile.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n22
}
if m.Message != nil {
data[i] = 0x52
i++
i = encodeVarintScheduler(data, i, uint64(m.Message.Size()))
n23, err := m.Message.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n23
}
if m.Request != nil {
data[i] = 0x5a
i++
i = encodeVarintScheduler(data, i, uint64(m.Request.Size()))
n24, err := m.Request.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n24
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Call_Subscribe) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Call_Subscribe) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.FrameworkInfo == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info")
} else {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(m.FrameworkInfo.Size()))
n25, err := m.FrameworkInfo.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n25
}
if m.Force != nil {
data[i] = 0x10
i++
if *m.Force {
data[i] = 1
} else {
data[i] = 0
}
i++
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Call_Accept) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Call_Accept) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.OfferIds) > 0 {
for _, msg := range m.OfferIds {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(msg.Size()))
n, err := msg.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n
}
}
if len(m.Operations) > 0 {
for _, msg := range m.Operations {
data[i] = 0x12
i++
i = encodeVarintScheduler(data, i, uint64(msg.Size()))
n, err := msg.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n
}
}
if m.Filters != nil {
data[i] = 0x1a
i++
i = encodeVarintScheduler(data, i, uint64(m.Filters.Size()))
n26, err := m.Filters.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n26
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Call_Decline) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Call_Decline) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.OfferIds) > 0 {
for _, msg := range m.OfferIds {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(msg.Size()))
n, err := msg.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n
}
}
if m.Filters != nil {
data[i] = 0x12
i++
i = encodeVarintScheduler(data, i, uint64(m.Filters.Size()))
n27, err := m.Filters.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n27
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Call_Kill) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Call_Kill) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.TaskId == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
} else {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(m.TaskId.Size()))
n28, err := m.TaskId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n28
}
if m.SlaveId != nil {
data[i] = 0x12
i++
i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size()))
n29, err := m.SlaveId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n29
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Call_Shutdown) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Call_Shutdown) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.ExecutorId == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
} else {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(m.ExecutorId.Size()))
n30, err := m.ExecutorId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n30
}
if m.SlaveId == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
} else {
data[i] = 0x12
i++
i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size()))
n31, err := m.SlaveId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n31
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Call_Acknowledge) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Call_Acknowledge) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.SlaveId == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
} else {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size()))
n32, err := m.SlaveId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n32
}
if m.TaskId == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
} else {
data[i] = 0x12
i++
i = encodeVarintScheduler(data, i, uint64(m.TaskId.Size()))
n33, err := m.TaskId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n33
}
if m.Uuid == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("uuid")
} else {
data[i] = 0x1a
i++
i = encodeVarintScheduler(data, i, uint64(len(m.Uuid)))
i += copy(data[i:], m.Uuid)
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Call_Reconcile) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Call_Reconcile) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.Tasks) > 0 {
for _, msg := range m.Tasks {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(msg.Size()))
n, err := msg.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n
}
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Call_Reconcile_Task) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Call_Reconcile_Task) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.TaskId == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
} else {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(m.TaskId.Size()))
n34, err := m.TaskId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n34
}
if m.SlaveId != nil {
data[i] = 0x12
i++
i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size()))
n35, err := m.SlaveId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n35
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Call_Message) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Call_Message) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.SlaveId == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
} else {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size()))
n36, err := m.SlaveId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n36
}
if m.ExecutorId == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
} else {
data[i] = 0x12
i++
i = encodeVarintScheduler(data, i, uint64(m.ExecutorId.Size()))
n37, err := m.ExecutorId.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n37
}
if m.Data == nil {
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
} else {
data[i] = 0x1a
i++
i = encodeVarintScheduler(data, i, uint64(len(m.Data)))
i += copy(data[i:], m.Data)
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Call_Request) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Call_Request) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.Requests) > 0 {
for _, msg := range m.Requests {
data[i] = 0xa
i++
i = encodeVarintScheduler(data, i, uint64(msg.Size()))
n, err := msg.MarshalTo(data[i:])
if err != nil {
return 0, err
}
i += n
}
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func encodeFixed64Scheduler(data []byte, offset int, v uint64) int {
data[offset] = uint8(v)
data[offset+1] = uint8(v >> 8)
data[offset+2] = uint8(v >> 16)
data[offset+3] = uint8(v >> 24)
data[offset+4] = uint8(v >> 32)
data[offset+5] = uint8(v >> 40)
data[offset+6] = uint8(v >> 48)
data[offset+7] = uint8(v >> 56)
return offset + 8
}
func encodeFixed32Scheduler(data []byte, offset int, v uint32) int {
data[offset] = uint8(v)
data[offset+1] = uint8(v >> 8)
data[offset+2] = uint8(v >> 16)
data[offset+3] = uint8(v >> 24)
return offset + 4
}
func encodeVarintScheduler(data []byte, offset int, v uint64) int {
for v >= 1<<7 {
data[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
data[offset] = uint8(v)
return offset + 1
}
func NewPopulatedEvent(r randyScheduler, easy bool) *Event {
this := &Event{}
v1 := Event_Type([]int32{1, 2, 3, 4, 5, 6, 7, 8}[r.Intn(8)])
this.Type = &v1
if r.Intn(10) != 0 {
this.Subscribed = NewPopulatedEvent_Subscribed(r, easy)
}
if r.Intn(10) != 0 {
this.Offers = NewPopulatedEvent_Offers(r, easy)
}
if r.Intn(10) != 0 {
this.Rescind = NewPopulatedEvent_Rescind(r, easy)
}
if r.Intn(10) != 0 {
this.Update = NewPopulatedEvent_Update(r, easy)
}
if r.Intn(10) != 0 {
this.Message = NewPopulatedEvent_Message(r, easy)
}
if r.Intn(10) != 0 {
this.Failure = NewPopulatedEvent_Failure(r, easy)
}
if r.Intn(10) != 0 {
this.Error = NewPopulatedEvent_Error(r, easy)
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 9)
}
return this
}
func NewPopulatedEvent_Subscribed(r randyScheduler, easy bool) *Event_Subscribed {
this := &Event_Subscribed{}
this.FrameworkId = mesosproto.NewPopulatedFrameworkID(r, easy)
if r.Intn(10) != 0 {
v2 := float64(r.Float64())
if r.Intn(2) == 0 {
v2 *= -1
}
this.HeartbeatIntervalSeconds = &v2
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 3)
}
return this
}
func NewPopulatedEvent_Offers(r randyScheduler, easy bool) *Event_Offers {
this := &Event_Offers{}
if r.Intn(10) != 0 {
v3 := r.Intn(10)
this.Offers = make([]*mesosproto.Offer, v3)
for i := 0; i < v3; i++ {
this.Offers[i] = mesosproto.NewPopulatedOffer(r, easy)
}
}
if r.Intn(10) != 0 {
v4 := r.Intn(10)
this.InverseOffers = make([]*mesosproto.InverseOffer, v4)
for i := 0; i < v4; i++ {
this.InverseOffers[i] = mesosproto.NewPopulatedInverseOffer(r, easy)
}
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 3)
}
return this
}
func NewPopulatedEvent_Rescind(r randyScheduler, easy bool) *Event_Rescind {
this := &Event_Rescind{}
this.OfferId = mesosproto.NewPopulatedOfferID(r, easy)
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 2)
}
return this
}
func NewPopulatedEvent_Update(r randyScheduler, easy bool) *Event_Update {
this := &Event_Update{}
this.Status = mesosproto.NewPopulatedTaskStatus(r, easy)
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 2)
}
return this
}
func NewPopulatedEvent_Message(r randyScheduler, easy bool) *Event_Message {
this := &Event_Message{}
this.SlaveId = mesosproto.NewPopulatedSlaveID(r, easy)
this.ExecutorId = mesosproto.NewPopulatedExecutorID(r, easy)
v5 := r.Intn(100)
this.Data = make([]byte, v5)
for i := 0; i < v5; i++ {
this.Data[i] = byte(r.Intn(256))
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 4)
}
return this
}
func NewPopulatedEvent_Failure(r randyScheduler, easy bool) *Event_Failure {
this := &Event_Failure{}
if r.Intn(10) != 0 {
this.SlaveId = mesosproto.NewPopulatedSlaveID(r, easy)
}
if r.Intn(10) != 0 {
this.ExecutorId = mesosproto.NewPopulatedExecutorID(r, easy)
}
if r.Intn(10) != 0 {
v6 := int32(r.Int31())
if r.Intn(2) == 0 {
v6 *= -1
}
this.Status = &v6
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 4)
}
return this
}
func NewPopulatedEvent_Error(r randyScheduler, easy bool) *Event_Error {
this := &Event_Error{}
v7 := randStringScheduler(r)
this.Message = &v7
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 2)
}
return this
}
func NewPopulatedCall(r randyScheduler, easy bool) *Call {
this := &Call{}
if r.Intn(10) != 0 {
this.FrameworkId = mesosproto.NewPopulatedFrameworkID(r, easy)
}
v8 := Call_Type([]int32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}[r.Intn(12)])
this.Type = &v8
if r.Intn(10) != 0 {
this.Subscribe = NewPopulatedCall_Subscribe(r, easy)
}
if r.Intn(10) != 0 {
this.Accept = NewPopulatedCall_Accept(r, easy)
}
if r.Intn(10) != 0 {
this.Decline = NewPopulatedCall_Decline(r, easy)
}
if r.Intn(10) != 0 {
this.Kill = NewPopulatedCall_Kill(r, easy)
}
if r.Intn(10) != 0 {
this.Shutdown = NewPopulatedCall_Shutdown(r, easy)
}
if r.Intn(10) != 0 {
this.Acknowledge = NewPopulatedCall_Acknowledge(r, easy)
}
if r.Intn(10) != 0 {
this.Reconcile = NewPopulatedCall_Reconcile(r, easy)
}
if r.Intn(10) != 0 {
this.Message = NewPopulatedCall_Message(r, easy)
}
if r.Intn(10) != 0 {
this.Request = NewPopulatedCall_Request(r, easy)
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 12)
}
return this
}
func NewPopulatedCall_Subscribe(r randyScheduler, easy bool) *Call_Subscribe {
this := &Call_Subscribe{}
this.FrameworkInfo = mesosproto.NewPopulatedFrameworkInfo(r, easy)
if r.Intn(10) != 0 {
v9 := bool(bool(r.Intn(2) == 0))
this.Force = &v9
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 3)
}
return this
}
func NewPopulatedCall_Accept(r randyScheduler, easy bool) *Call_Accept {
this := &Call_Accept{}
if r.Intn(10) != 0 {
v10 := r.Intn(10)
this.OfferIds = make([]*mesosproto.OfferID, v10)
for i := 0; i < v10; i++ {
this.OfferIds[i] = mesosproto.NewPopulatedOfferID(r, easy)
}
}
if r.Intn(10) != 0 {
v11 := r.Intn(10)
this.Operations = make([]*mesosproto.Offer_Operation, v11)
for i := 0; i < v11; i++ {
this.Operations[i] = mesosproto.NewPopulatedOffer_Operation(r, easy)
}
}
if r.Intn(10) != 0 {
this.Filters = mesosproto.NewPopulatedFilters(r, easy)
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 4)
}
return this
}
func NewPopulatedCall_Decline(r randyScheduler, easy bool) *Call_Decline {
this := &Call_Decline{}
if r.Intn(10) != 0 {
v12 := r.Intn(10)
this.OfferIds = make([]*mesosproto.OfferID, v12)
for i := 0; i < v12; i++ {
this.OfferIds[i] = mesosproto.NewPopulatedOfferID(r, easy)
}
}
if r.Intn(10) != 0 {
this.Filters = mesosproto.NewPopulatedFilters(r, easy)
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 3)
}
return this
}
func NewPopulatedCall_Kill(r randyScheduler, easy bool) *Call_Kill {
this := &Call_Kill{}
this.TaskId = mesosproto.NewPopulatedTaskID(r, easy)
if r.Intn(10) != 0 {
this.SlaveId = mesosproto.NewPopulatedSlaveID(r, easy)
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 3)
}
return this
}
func NewPopulatedCall_Shutdown(r randyScheduler, easy bool) *Call_Shutdown {
this := &Call_Shutdown{}
this.ExecutorId = mesosproto.NewPopulatedExecutorID(r, easy)
this.SlaveId = mesosproto.NewPopulatedSlaveID(r, easy)
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 3)
}
return this
}
func NewPopulatedCall_Acknowledge(r randyScheduler, easy bool) *Call_Acknowledge {
this := &Call_Acknowledge{}
this.SlaveId = mesosproto.NewPopulatedSlaveID(r, easy)
this.TaskId = mesosproto.NewPopulatedTaskID(r, easy)
v13 := r.Intn(100)
this.Uuid = make([]byte, v13)
for i := 0; i < v13; i++ {
this.Uuid[i] = byte(r.Intn(256))
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 4)
}
return this
}
func NewPopulatedCall_Reconcile(r randyScheduler, easy bool) *Call_Reconcile {
this := &Call_Reconcile{}
if r.Intn(10) != 0 {
v14 := r.Intn(10)
this.Tasks = make([]*Call_Reconcile_Task, v14)
for i := 0; i < v14; i++ {
this.Tasks[i] = NewPopulatedCall_Reconcile_Task(r, easy)
}
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 2)
}
return this
}
func NewPopulatedCall_Reconcile_Task(r randyScheduler, easy bool) *Call_Reconcile_Task {
this := &Call_Reconcile_Task{}
this.TaskId = mesosproto.NewPopulatedTaskID(r, easy)
if r.Intn(10) != 0 {
this.SlaveId = mesosproto.NewPopulatedSlaveID(r, easy)
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 3)
}
return this
}
func NewPopulatedCall_Message(r randyScheduler, easy bool) *Call_Message {
this := &Call_Message{}
this.SlaveId = mesosproto.NewPopulatedSlaveID(r, easy)
this.ExecutorId = mesosproto.NewPopulatedExecutorID(r, easy)
v15 := r.Intn(100)
this.Data = make([]byte, v15)
for i := 0; i < v15; i++ {
this.Data[i] = byte(r.Intn(256))
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 4)
}
return this
}
func NewPopulatedCall_Request(r randyScheduler, easy bool) *Call_Request {
this := &Call_Request{}
if r.Intn(10) != 0 {
v16 := r.Intn(10)
this.Requests = make([]*mesosproto.Request, v16)
for i := 0; i < v16; i++ {
this.Requests[i] = mesosproto.NewPopulatedRequest(r, easy)
}
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedScheduler(r, 2)
}
return this
}
type randyScheduler interface {
Float32() float32
Float64() float64
Int63() int64
Int31() int32
Uint32() uint32
Intn(n int) int
}
func randUTF8RuneScheduler(r randyScheduler) rune {
ru := r.Intn(62)
if ru < 10 {
return rune(ru + 48)
} else if ru < 36 {
return rune(ru + 55)
}
return rune(ru + 61)
}
func randStringScheduler(r randyScheduler) string {
v17 := r.Intn(100)
tmps := make([]rune, v17)
for i := 0; i < v17; i++ {
tmps[i] = randUTF8RuneScheduler(r)
}
return string(tmps)
}
func randUnrecognizedScheduler(r randyScheduler, maxFieldNumber int) (data []byte) {
l := r.Intn(5)
for i := 0; i < l; i++ {
wire := r.Intn(4)
if wire == 3 {
wire = 5
}
fieldNumber := maxFieldNumber + r.Intn(100)
data = randFieldScheduler(data, r, fieldNumber, wire)
}
return data
}
func randFieldScheduler(data []byte, r randyScheduler, fieldNumber int, wire int) []byte {
key := uint32(fieldNumber)<<3 | uint32(wire)
switch wire {
case 0:
data = encodeVarintPopulateScheduler(data, uint64(key))
v18 := r.Int63()
if r.Intn(2) == 0 {
v18 *= -1
}
data = encodeVarintPopulateScheduler(data, uint64(v18))
case 1:
data = encodeVarintPopulateScheduler(data, uint64(key))
data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
case 2:
data = encodeVarintPopulateScheduler(data, uint64(key))
ll := r.Intn(100)
data = encodeVarintPopulateScheduler(data, uint64(ll))
for j := 0; j < ll; j++ {
data = append(data, byte(r.Intn(256)))
}
default:
data = encodeVarintPopulateScheduler(data, uint64(key))
data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
}
return data
}
func encodeVarintPopulateScheduler(data []byte, v uint64) []byte {
for v >= 1<<7 {
data = append(data, uint8(uint64(v)&0x7f|0x80))
v >>= 7
}
data = append(data, uint8(v))
return data
}
func (m *Event) Size() (n int) {
var l int
_ = l
if m.Type != nil {
n += 1 + sovScheduler(uint64(*m.Type))
}
if m.Subscribed != nil {
l = m.Subscribed.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Offers != nil {
l = m.Offers.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Rescind != nil {
l = m.Rescind.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Update != nil {
l = m.Update.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Message != nil {
l = m.Message.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Failure != nil {
l = m.Failure.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Error != nil {
l = m.Error.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Event_Subscribed) Size() (n int) {
var l int
_ = l
if m.FrameworkId != nil {
l = m.FrameworkId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.HeartbeatIntervalSeconds != nil {
n += 9
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Event_Offers) Size() (n int) {
var l int
_ = l
if len(m.Offers) > 0 {
for _, e := range m.Offers {
l = e.Size()
n += 1 + l + sovScheduler(uint64(l))
}
}
if len(m.InverseOffers) > 0 {
for _, e := range m.InverseOffers {
l = e.Size()
n += 1 + l + sovScheduler(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Event_Rescind) Size() (n int) {
var l int
_ = l
if m.OfferId != nil {
l = m.OfferId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Event_Update) Size() (n int) {
var l int
_ = l
if m.Status != nil {
l = m.Status.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Event_Message) Size() (n int) {
var l int
_ = l
if m.SlaveId != nil {
l = m.SlaveId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.ExecutorId != nil {
l = m.ExecutorId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Data != nil {
l = len(m.Data)
n += 1 + l + sovScheduler(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Event_Failure) Size() (n int) {
var l int
_ = l
if m.SlaveId != nil {
l = m.SlaveId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.ExecutorId != nil {
l = m.ExecutorId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Status != nil {
n += 1 + sovScheduler(uint64(*m.Status))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Event_Error) Size() (n int) {
var l int
_ = l
if m.Message != nil {
l = len(*m.Message)
n += 1 + l + sovScheduler(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Call) Size() (n int) {
var l int
_ = l
if m.FrameworkId != nil {
l = m.FrameworkId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Type != nil {
n += 1 + sovScheduler(uint64(*m.Type))
}
if m.Subscribe != nil {
l = m.Subscribe.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Accept != nil {
l = m.Accept.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Decline != nil {
l = m.Decline.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Kill != nil {
l = m.Kill.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Shutdown != nil {
l = m.Shutdown.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Acknowledge != nil {
l = m.Acknowledge.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Reconcile != nil {
l = m.Reconcile.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Message != nil {
l = m.Message.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Request != nil {
l = m.Request.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Call_Subscribe) Size() (n int) {
var l int
_ = l
if m.FrameworkInfo != nil {
l = m.FrameworkInfo.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Force != nil {
n += 2
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Call_Accept) Size() (n int) {
var l int
_ = l
if len(m.OfferIds) > 0 {
for _, e := range m.OfferIds {
l = e.Size()
n += 1 + l + sovScheduler(uint64(l))
}
}
if len(m.Operations) > 0 {
for _, e := range m.Operations {
l = e.Size()
n += 1 + l + sovScheduler(uint64(l))
}
}
if m.Filters != nil {
l = m.Filters.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Call_Decline) Size() (n int) {
var l int
_ = l
if len(m.OfferIds) > 0 {
for _, e := range m.OfferIds {
l = e.Size()
n += 1 + l + sovScheduler(uint64(l))
}
}
if m.Filters != nil {
l = m.Filters.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Call_Kill) Size() (n int) {
var l int
_ = l
if m.TaskId != nil {
l = m.TaskId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.SlaveId != nil {
l = m.SlaveId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Call_Shutdown) Size() (n int) {
var l int
_ = l
if m.ExecutorId != nil {
l = m.ExecutorId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.SlaveId != nil {
l = m.SlaveId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Call_Acknowledge) Size() (n int) {
var l int
_ = l
if m.SlaveId != nil {
l = m.SlaveId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.TaskId != nil {
l = m.TaskId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Uuid != nil {
l = len(m.Uuid)
n += 1 + l + sovScheduler(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Call_Reconcile) Size() (n int) {
var l int
_ = l
if len(m.Tasks) > 0 {
for _, e := range m.Tasks {
l = e.Size()
n += 1 + l + sovScheduler(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Call_Reconcile_Task) Size() (n int) {
var l int
_ = l
if m.TaskId != nil {
l = m.TaskId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.SlaveId != nil {
l = m.SlaveId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Call_Message) Size() (n int) {
var l int
_ = l
if m.SlaveId != nil {
l = m.SlaveId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.ExecutorId != nil {
l = m.ExecutorId.Size()
n += 1 + l + sovScheduler(uint64(l))
}
if m.Data != nil {
l = len(m.Data)
n += 1 + l + sovScheduler(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Call_Request) Size() (n int) {
var l int
_ = l
if len(m.Requests) > 0 {
for _, e := range m.Requests {
l = e.Size()
n += 1 + l + sovScheduler(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovScheduler(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozScheduler(x uint64) (n int) {
return sovScheduler(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *Event) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Event{`,
`Type:` + valueToStringScheduler(this.Type) + `,`,
`Subscribed:` + strings.Replace(fmt.Sprintf("%v", this.Subscribed), "Event_Subscribed", "Event_Subscribed", 1) + `,`,
`Offers:` + strings.Replace(fmt.Sprintf("%v", this.Offers), "Event_Offers", "Event_Offers", 1) + `,`,
`Rescind:` + strings.Replace(fmt.Sprintf("%v", this.Rescind), "Event_Rescind", "Event_Rescind", 1) + `,`,
`Update:` + strings.Replace(fmt.Sprintf("%v", this.Update), "Event_Update", "Event_Update", 1) + `,`,
`Message:` + strings.Replace(fmt.Sprintf("%v", this.Message), "Event_Message", "Event_Message", 1) + `,`,
`Failure:` + strings.Replace(fmt.Sprintf("%v", this.Failure), "Event_Failure", "Event_Failure", 1) + `,`,
`Error:` + strings.Replace(fmt.Sprintf("%v", this.Error), "Event_Error", "Event_Error", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Event_Subscribed) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Event_Subscribed{`,
`FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "mesosproto.FrameworkID", 1) + `,`,
`HeartbeatIntervalSeconds:` + valueToStringScheduler(this.HeartbeatIntervalSeconds) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Event_Offers) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Event_Offers{`,
`Offers:` + strings.Replace(fmt.Sprintf("%v", this.Offers), "Offer", "mesosproto.Offer", 1) + `,`,
`InverseOffers:` + strings.Replace(fmt.Sprintf("%v", this.InverseOffers), "InverseOffer", "mesosproto.InverseOffer", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Event_Rescind) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Event_Rescind{`,
`OfferId:` + strings.Replace(fmt.Sprintf("%v", this.OfferId), "OfferID", "mesosproto.OfferID", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Event_Update) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Event_Update{`,
`Status:` + strings.Replace(fmt.Sprintf("%v", this.Status), "TaskStatus", "mesosproto.TaskStatus", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Event_Message) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Event_Message{`,
`SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "mesosproto.SlaveID", 1) + `,`,
`ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "mesosproto.ExecutorID", 1) + `,`,
`Data:` + valueToStringScheduler(this.Data) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Event_Failure) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Event_Failure{`,
`SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "mesosproto.SlaveID", 1) + `,`,
`ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "mesosproto.ExecutorID", 1) + `,`,
`Status:` + valueToStringScheduler(this.Status) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Event_Error) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Event_Error{`,
`Message:` + valueToStringScheduler(this.Message) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Call) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Call{`,
`FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "mesosproto.FrameworkID", 1) + `,`,
`Type:` + valueToStringScheduler(this.Type) + `,`,
`Subscribe:` + strings.Replace(fmt.Sprintf("%v", this.Subscribe), "Call_Subscribe", "Call_Subscribe", 1) + `,`,
`Accept:` + strings.Replace(fmt.Sprintf("%v", this.Accept), "Call_Accept", "Call_Accept", 1) + `,`,
`Decline:` + strings.Replace(fmt.Sprintf("%v", this.Decline), "Call_Decline", "Call_Decline", 1) + `,`,
`Kill:` + strings.Replace(fmt.Sprintf("%v", this.Kill), "Call_Kill", "Call_Kill", 1) + `,`,
`Shutdown:` + strings.Replace(fmt.Sprintf("%v", this.Shutdown), "Call_Shutdown", "Call_Shutdown", 1) + `,`,
`Acknowledge:` + strings.Replace(fmt.Sprintf("%v", this.Acknowledge), "Call_Acknowledge", "Call_Acknowledge", 1) + `,`,
`Reconcile:` + strings.Replace(fmt.Sprintf("%v", this.Reconcile), "Call_Reconcile", "Call_Reconcile", 1) + `,`,
`Message:` + strings.Replace(fmt.Sprintf("%v", this.Message), "Call_Message", "Call_Message", 1) + `,`,
`Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "Call_Request", "Call_Request", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Call_Subscribe) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Call_Subscribe{`,
`FrameworkInfo:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkInfo), "FrameworkInfo", "mesosproto.FrameworkInfo", 1) + `,`,
`Force:` + valueToStringScheduler(this.Force) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Call_Accept) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Call_Accept{`,
`OfferIds:` + strings.Replace(fmt.Sprintf("%v", this.OfferIds), "OfferID", "mesosproto.OfferID", 1) + `,`,
`Operations:` + strings.Replace(fmt.Sprintf("%v", this.Operations), "Offer_Operation", "mesosproto.Offer_Operation", 1) + `,`,
`Filters:` + strings.Replace(fmt.Sprintf("%v", this.Filters), "Filters", "mesosproto.Filters", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Call_Decline) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Call_Decline{`,
`OfferIds:` + strings.Replace(fmt.Sprintf("%v", this.OfferIds), "OfferID", "mesosproto.OfferID", 1) + `,`,
`Filters:` + strings.Replace(fmt.Sprintf("%v", this.Filters), "Filters", "mesosproto.Filters", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Call_Kill) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Call_Kill{`,
`TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "mesosproto.TaskID", 1) + `,`,
`SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "mesosproto.SlaveID", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Call_Shutdown) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Call_Shutdown{`,
`ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "mesosproto.ExecutorID", 1) + `,`,
`SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "mesosproto.SlaveID", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Call_Acknowledge) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Call_Acknowledge{`,
`SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "mesosproto.SlaveID", 1) + `,`,
`TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "mesosproto.TaskID", 1) + `,`,
`Uuid:` + valueToStringScheduler(this.Uuid) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Call_Reconcile) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Call_Reconcile{`,
`Tasks:` + strings.Replace(fmt.Sprintf("%v", this.Tasks), "Call_Reconcile_Task", "Call_Reconcile_Task", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Call_Reconcile_Task) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Call_Reconcile_Task{`,
`TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "mesosproto.TaskID", 1) + `,`,
`SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "mesosproto.SlaveID", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Call_Message) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Call_Message{`,
`SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "mesosproto.SlaveID", 1) + `,`,
`ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "mesosproto.ExecutorID", 1) + `,`,
`Data:` + valueToStringScheduler(this.Data) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *Call_Request) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Call_Request{`,
`Requests:` + strings.Replace(fmt.Sprintf("%v", this.Requests), "Request", "mesosproto.Request", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func valueToStringScheduler(v interface{}) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("*%v", pv)
}
func (m *Event) Unmarshal(data []byte) error {
var hasFields [1]uint64
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Event: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
}
var v Event_Type
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
v |= (Event_Type(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.Type = &v
hasFields[0] |= uint64(0x00000001)
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Subscribed", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Subscribed == nil {
m.Subscribed = &Event_Subscribed{}
}
if err := m.Subscribed.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Offers", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Offers == nil {
m.Offers = &Event_Offers{}
}
if err := m.Offers.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Rescind", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Rescind == nil {
m.Rescind = &Event_Rescind{}
}
if err := m.Rescind.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Update == nil {
m.Update = &Event_Update{}
}
if err := m.Update.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Message == nil {
m.Message = &Event_Message{}
}
if err := m.Message.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 7:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Failure == nil {
m.Failure = &Event_Failure{}
}
if err := m.Failure.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 8:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Error == nil {
m.Error = &Event_Error{}
}
if err := m.Error.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("type")
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Event_Subscribed) Unmarshal(data []byte) error {
var hasFields [1]uint64
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Subscribed: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Subscribed: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.FrameworkId == nil {
m.FrameworkId = &mesosproto.FrameworkID{}
}
if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
case 2:
if wireType != 1 {
return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatIntervalSeconds", wireType)
}
var v uint64
if (iNdEx + 8) > l {
return io.ErrUnexpectedEOF
}
iNdEx += 8
v = uint64(data[iNdEx-8])
v |= uint64(data[iNdEx-7]) << 8
v |= uint64(data[iNdEx-6]) << 16
v |= uint64(data[iNdEx-5]) << 24
v |= uint64(data[iNdEx-4]) << 32
v |= uint64(data[iNdEx-3]) << 40
v |= uint64(data[iNdEx-2]) << 48
v |= uint64(data[iNdEx-1]) << 56
v2 := float64(math.Float64frombits(v))
m.HeartbeatIntervalSeconds = &v2
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Event_Offers) Unmarshal(data []byte) error {
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Offers: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Offers: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Offers", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Offers = append(m.Offers, &mesosproto.Offer{})
if err := m.Offers[len(m.Offers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field InverseOffers", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.InverseOffers = append(m.InverseOffers, &mesosproto.InverseOffer{})
if err := m.InverseOffers[len(m.InverseOffers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Event_Rescind) Unmarshal(data []byte) error {
var hasFields [1]uint64
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Rescind: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Rescind: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field OfferId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.OfferId == nil {
m.OfferId = &mesosproto.OfferID{}
}
if err := m.OfferId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("offer_id")
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Event_Update) Unmarshal(data []byte) error {
var hasFields [1]uint64
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Update: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Update: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Status == nil {
m.Status = &mesosproto.TaskStatus{}
}
if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("status")
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Event_Message) Unmarshal(data []byte) error {
var hasFields [1]uint64
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Message: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.SlaveId == nil {
m.SlaveId = &mesosproto.SlaveID{}
}
if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ExecutorId == nil {
m.ExecutorId = &mesosproto.ExecutorID{}
}
if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000002)
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Data = append([]byte{}, data[iNdEx:postIndex]...)
iNdEx = postIndex
hasFields[0] |= uint64(0x00000004)
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
}
if hasFields[0]&uint64(0x00000002) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
}
if hasFields[0]&uint64(0x00000004) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Event_Failure) Unmarshal(data []byte) error {
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Failure: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Failure: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.SlaveId == nil {
m.SlaveId = &mesosproto.SlaveID{}
}
if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ExecutorId == nil {
m.ExecutorId = &mesosproto.ExecutorID{}
}
if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
}
var v int32
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
v |= (int32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.Status = &v
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Event_Error) Unmarshal(data []byte) error {
var hasFields [1]uint64
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Error: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
s := string(data[iNdEx:postIndex])
m.Message = &s
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("message")
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Call) Unmarshal(data []byte) error {
var hasFields [1]uint64
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Call: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Call: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.FrameworkId == nil {
m.FrameworkId = &mesosproto.FrameworkID{}
}
if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
}
var v Call_Type
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
v |= (Call_Type(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.Type = &v
hasFields[0] |= uint64(0x00000001)
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Subscribe", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Subscribe == nil {
m.Subscribe = &Call_Subscribe{}
}
if err := m.Subscribe.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Accept", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Accept == nil {
m.Accept = &Call_Accept{}
}
if err := m.Accept.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Decline", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Decline == nil {
m.Decline = &Call_Decline{}
}
if err := m.Decline.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Kill", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Kill == nil {
m.Kill = &Call_Kill{}
}
if err := m.Kill.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 7:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Shutdown", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Shutdown == nil {
m.Shutdown = &Call_Shutdown{}
}
if err := m.Shutdown.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 8:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Acknowledge", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Acknowledge == nil {
m.Acknowledge = &Call_Acknowledge{}
}
if err := m.Acknowledge.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 9:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Reconcile", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Reconcile == nil {
m.Reconcile = &Call_Reconcile{}
}
if err := m.Reconcile.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 10:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Message == nil {
m.Message = &Call_Message{}
}
if err := m.Message.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 11:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Request == nil {
m.Request = &Call_Request{}
}
if err := m.Request.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("type")
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Call_Subscribe) Unmarshal(data []byte) error {
var hasFields [1]uint64
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Subscribe: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Subscribe: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field FrameworkInfo", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.FrameworkInfo == nil {
m.FrameworkInfo = &mesosproto.FrameworkInfo{}
}
if err := m.FrameworkInfo.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
v |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
b := bool(v != 0)
m.Force = &b
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info")
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Call_Accept) Unmarshal(data []byte) error {
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Accept: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Accept: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field OfferIds", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.OfferIds = append(m.OfferIds, &mesosproto.OfferID{})
if err := m.OfferIds[len(m.OfferIds)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Operations", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Operations = append(m.Operations, &mesosproto.Offer_Operation{})
if err := m.Operations[len(m.Operations)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Filters == nil {
m.Filters = &mesosproto.Filters{}
}
if err := m.Filters.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Call_Decline) Unmarshal(data []byte) error {
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Decline: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Decline: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field OfferIds", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.OfferIds = append(m.OfferIds, &mesosproto.OfferID{})
if err := m.OfferIds[len(m.OfferIds)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Filters == nil {
m.Filters = &mesosproto.Filters{}
}
if err := m.Filters.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Call_Kill) Unmarshal(data []byte) error {
var hasFields [1]uint64
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Kill: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Kill: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.TaskId == nil {
m.TaskId = &mesosproto.TaskID{}
}
if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.SlaveId == nil {
m.SlaveId = &mesosproto.SlaveID{}
}
if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Call_Shutdown) Unmarshal(data []byte) error {
var hasFields [1]uint64
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Shutdown: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Shutdown: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ExecutorId == nil {
m.ExecutorId = &mesosproto.ExecutorID{}
}
if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.SlaveId == nil {
m.SlaveId = &mesosproto.SlaveID{}
}
if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000002)
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
}
if hasFields[0]&uint64(0x00000002) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Call_Acknowledge) Unmarshal(data []byte) error {
var hasFields [1]uint64
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Acknowledge: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Acknowledge: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.SlaveId == nil {
m.SlaveId = &mesosproto.SlaveID{}
}
if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.TaskId == nil {
m.TaskId = &mesosproto.TaskID{}
}
if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000002)
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Uuid = append([]byte{}, data[iNdEx:postIndex]...)
iNdEx = postIndex
hasFields[0] |= uint64(0x00000004)
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
}
if hasFields[0]&uint64(0x00000002) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
}
if hasFields[0]&uint64(0x00000004) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("uuid")
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Call_Reconcile) Unmarshal(data []byte) error {
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Reconcile: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Reconcile: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Tasks = append(m.Tasks, &Call_Reconcile_Task{})
if err := m.Tasks[len(m.Tasks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Call_Reconcile_Task) Unmarshal(data []byte) error {
var hasFields [1]uint64
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Task: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Task: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.TaskId == nil {
m.TaskId = &mesosproto.TaskID{}
}
if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.SlaveId == nil {
m.SlaveId = &mesosproto.SlaveID{}
}
if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Call_Message) Unmarshal(data []byte) error {
var hasFields [1]uint64
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Message: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.SlaveId == nil {
m.SlaveId = &mesosproto.SlaveID{}
}
if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ExecutorId == nil {
m.ExecutorId = &mesosproto.ExecutorID{}
}
if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000002)
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Data = append([]byte{}, data[iNdEx:postIndex]...)
iNdEx = postIndex
hasFields[0] |= uint64(0x00000004)
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
}
if hasFields[0]&uint64(0x00000002) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
}
if hasFields[0]&uint64(0x00000004) == 0 {
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Call_Request) Unmarshal(data []byte) error {
l := len(data)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Request: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowScheduler
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthScheduler
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Requests = append(m.Requests, &mesosproto.Request{})
if err := m.Requests[len(m.Requests)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipScheduler(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthScheduler
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipScheduler(data []byte) (n int, err error) {
l := len(data)
iNdEx := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowScheduler
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowScheduler
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if data[iNdEx-1] < 0x80 {
break
}
}
return iNdEx, nil
case 1:
iNdEx += 8
return iNdEx, nil
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowScheduler
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
iNdEx += length
if length < 0 {
return 0, ErrInvalidLengthScheduler
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowScheduler
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
innerWire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
innerWireType := int(innerWire & 0x7)
if innerWireType == 4 {
break
}
next, err := skipScheduler(data[start:])
if err != nil {
return 0, err
}
iNdEx = start + next
}
return iNdEx, nil
case 4:
return iNdEx, nil
case 5:
iNdEx += 4
return iNdEx, nil
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
}
panic("unreachable")
}
var (
ErrInvalidLengthScheduler = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowScheduler = fmt.Errorf("proto: integer overflow")
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/meoom/kubernetes.git
git@gitee.com:meoom/kubernetes.git
meoom
kubernetes
kubernetes
v1.2.0-beta.1

搜索帮助

344bd9b3 5694891 D2dac590 5694891