shim.pb.go 180 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: github.com/containerd/containerd/runtime/v2/task/shim.proto
  3. package task
  4. import (
  5. context "context"
  6. fmt "fmt"
  7. types "github.com/containerd/containerd/api/types"
  8. task "github.com/containerd/containerd/api/types/task"
  9. github_com_containerd_ttrpc "github.com/containerd/ttrpc"
  10. proto "github.com/gogo/protobuf/proto"
  11. github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
  12. github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
  13. types1 "github.com/gogo/protobuf/types"
  14. io "io"
  15. math "math"
  16. math_bits "math/bits"
  17. reflect "reflect"
  18. strings "strings"
  19. time "time"
  20. )
  21. // Reference imports to suppress errors if they are not otherwise used.
  22. var _ = proto.Marshal
  23. var _ = fmt.Errorf
  24. var _ = math.Inf
  25. var _ = time.Kitchen
  26. // This is a compile-time assertion to ensure that this generated file
  27. // is compatible with the proto package it is being compiled against.
  28. // A compilation error at this line likely means your copy of the
  29. // proto package needs to be updated.
  30. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  31. type CreateTaskRequest struct {
  32. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  33. Bundle string `protobuf:"bytes,2,opt,name=bundle,proto3" json:"bundle,omitempty"`
  34. Rootfs []*types.Mount `protobuf:"bytes,3,rep,name=rootfs,proto3" json:"rootfs,omitempty"`
  35. Terminal bool `protobuf:"varint,4,opt,name=terminal,proto3" json:"terminal,omitempty"`
  36. Stdin string `protobuf:"bytes,5,opt,name=stdin,proto3" json:"stdin,omitempty"`
  37. Stdout string `protobuf:"bytes,6,opt,name=stdout,proto3" json:"stdout,omitempty"`
  38. Stderr string `protobuf:"bytes,7,opt,name=stderr,proto3" json:"stderr,omitempty"`
  39. Checkpoint string `protobuf:"bytes,8,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"`
  40. ParentCheckpoint string `protobuf:"bytes,9,opt,name=parent_checkpoint,json=parentCheckpoint,proto3" json:"parent_checkpoint,omitempty"`
  41. Options *types1.Any `protobuf:"bytes,10,opt,name=options,proto3" json:"options,omitempty"`
  42. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  43. XXX_unrecognized []byte `json:"-"`
  44. XXX_sizecache int32 `json:"-"`
  45. }
  46. func (m *CreateTaskRequest) Reset() { *m = CreateTaskRequest{} }
  47. func (*CreateTaskRequest) ProtoMessage() {}
  48. func (*CreateTaskRequest) Descriptor() ([]byte, []int) {
  49. return fileDescriptor_9202ee34bc3ad8ca, []int{0}
  50. }
  51. func (m *CreateTaskRequest) XXX_Unmarshal(b []byte) error {
  52. return m.Unmarshal(b)
  53. }
  54. func (m *CreateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  55. if deterministic {
  56. return xxx_messageInfo_CreateTaskRequest.Marshal(b, m, deterministic)
  57. } else {
  58. b = b[:cap(b)]
  59. n, err := m.MarshalToSizedBuffer(b)
  60. if err != nil {
  61. return nil, err
  62. }
  63. return b[:n], nil
  64. }
  65. }
  66. func (m *CreateTaskRequest) XXX_Merge(src proto.Message) {
  67. xxx_messageInfo_CreateTaskRequest.Merge(m, src)
  68. }
  69. func (m *CreateTaskRequest) XXX_Size() int {
  70. return m.Size()
  71. }
  72. func (m *CreateTaskRequest) XXX_DiscardUnknown() {
  73. xxx_messageInfo_CreateTaskRequest.DiscardUnknown(m)
  74. }
  75. var xxx_messageInfo_CreateTaskRequest proto.InternalMessageInfo
  76. type CreateTaskResponse struct {
  77. Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
  78. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  79. XXX_unrecognized []byte `json:"-"`
  80. XXX_sizecache int32 `json:"-"`
  81. }
  82. func (m *CreateTaskResponse) Reset() { *m = CreateTaskResponse{} }
  83. func (*CreateTaskResponse) ProtoMessage() {}
  84. func (*CreateTaskResponse) Descriptor() ([]byte, []int) {
  85. return fileDescriptor_9202ee34bc3ad8ca, []int{1}
  86. }
  87. func (m *CreateTaskResponse) XXX_Unmarshal(b []byte) error {
  88. return m.Unmarshal(b)
  89. }
  90. func (m *CreateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  91. if deterministic {
  92. return xxx_messageInfo_CreateTaskResponse.Marshal(b, m, deterministic)
  93. } else {
  94. b = b[:cap(b)]
  95. n, err := m.MarshalToSizedBuffer(b)
  96. if err != nil {
  97. return nil, err
  98. }
  99. return b[:n], nil
  100. }
  101. }
  102. func (m *CreateTaskResponse) XXX_Merge(src proto.Message) {
  103. xxx_messageInfo_CreateTaskResponse.Merge(m, src)
  104. }
  105. func (m *CreateTaskResponse) XXX_Size() int {
  106. return m.Size()
  107. }
  108. func (m *CreateTaskResponse) XXX_DiscardUnknown() {
  109. xxx_messageInfo_CreateTaskResponse.DiscardUnknown(m)
  110. }
  111. var xxx_messageInfo_CreateTaskResponse proto.InternalMessageInfo
  112. type DeleteRequest struct {
  113. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  114. ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
  115. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  116. XXX_unrecognized []byte `json:"-"`
  117. XXX_sizecache int32 `json:"-"`
  118. }
  119. func (m *DeleteRequest) Reset() { *m = DeleteRequest{} }
  120. func (*DeleteRequest) ProtoMessage() {}
  121. func (*DeleteRequest) Descriptor() ([]byte, []int) {
  122. return fileDescriptor_9202ee34bc3ad8ca, []int{2}
  123. }
  124. func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
  125. return m.Unmarshal(b)
  126. }
  127. func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  128. if deterministic {
  129. return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic)
  130. } else {
  131. b = b[:cap(b)]
  132. n, err := m.MarshalToSizedBuffer(b)
  133. if err != nil {
  134. return nil, err
  135. }
  136. return b[:n], nil
  137. }
  138. }
  139. func (m *DeleteRequest) XXX_Merge(src proto.Message) {
  140. xxx_messageInfo_DeleteRequest.Merge(m, src)
  141. }
  142. func (m *DeleteRequest) XXX_Size() int {
  143. return m.Size()
  144. }
  145. func (m *DeleteRequest) XXX_DiscardUnknown() {
  146. xxx_messageInfo_DeleteRequest.DiscardUnknown(m)
  147. }
  148. var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo
  149. type DeleteResponse struct {
  150. Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
  151. ExitStatus uint32 `protobuf:"varint,2,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
  152. ExitedAt time.Time `protobuf:"bytes,3,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"`
  153. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  154. XXX_unrecognized []byte `json:"-"`
  155. XXX_sizecache int32 `json:"-"`
  156. }
  157. func (m *DeleteResponse) Reset() { *m = DeleteResponse{} }
  158. func (*DeleteResponse) ProtoMessage() {}
  159. func (*DeleteResponse) Descriptor() ([]byte, []int) {
  160. return fileDescriptor_9202ee34bc3ad8ca, []int{3}
  161. }
  162. func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
  163. return m.Unmarshal(b)
  164. }
  165. func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  166. if deterministic {
  167. return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic)
  168. } else {
  169. b = b[:cap(b)]
  170. n, err := m.MarshalToSizedBuffer(b)
  171. if err != nil {
  172. return nil, err
  173. }
  174. return b[:n], nil
  175. }
  176. }
  177. func (m *DeleteResponse) XXX_Merge(src proto.Message) {
  178. xxx_messageInfo_DeleteResponse.Merge(m, src)
  179. }
  180. func (m *DeleteResponse) XXX_Size() int {
  181. return m.Size()
  182. }
  183. func (m *DeleteResponse) XXX_DiscardUnknown() {
  184. xxx_messageInfo_DeleteResponse.DiscardUnknown(m)
  185. }
  186. var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo
  187. type ExecProcessRequest struct {
  188. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  189. ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
  190. Terminal bool `protobuf:"varint,3,opt,name=terminal,proto3" json:"terminal,omitempty"`
  191. Stdin string `protobuf:"bytes,4,opt,name=stdin,proto3" json:"stdin,omitempty"`
  192. Stdout string `protobuf:"bytes,5,opt,name=stdout,proto3" json:"stdout,omitempty"`
  193. Stderr string `protobuf:"bytes,6,opt,name=stderr,proto3" json:"stderr,omitempty"`
  194. Spec *types1.Any `protobuf:"bytes,7,opt,name=spec,proto3" json:"spec,omitempty"`
  195. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  196. XXX_unrecognized []byte `json:"-"`
  197. XXX_sizecache int32 `json:"-"`
  198. }
  199. func (m *ExecProcessRequest) Reset() { *m = ExecProcessRequest{} }
  200. func (*ExecProcessRequest) ProtoMessage() {}
  201. func (*ExecProcessRequest) Descriptor() ([]byte, []int) {
  202. return fileDescriptor_9202ee34bc3ad8ca, []int{4}
  203. }
  204. func (m *ExecProcessRequest) XXX_Unmarshal(b []byte) error {
  205. return m.Unmarshal(b)
  206. }
  207. func (m *ExecProcessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  208. if deterministic {
  209. return xxx_messageInfo_ExecProcessRequest.Marshal(b, m, deterministic)
  210. } else {
  211. b = b[:cap(b)]
  212. n, err := m.MarshalToSizedBuffer(b)
  213. if err != nil {
  214. return nil, err
  215. }
  216. return b[:n], nil
  217. }
  218. }
  219. func (m *ExecProcessRequest) XXX_Merge(src proto.Message) {
  220. xxx_messageInfo_ExecProcessRequest.Merge(m, src)
  221. }
  222. func (m *ExecProcessRequest) XXX_Size() int {
  223. return m.Size()
  224. }
  225. func (m *ExecProcessRequest) XXX_DiscardUnknown() {
  226. xxx_messageInfo_ExecProcessRequest.DiscardUnknown(m)
  227. }
  228. var xxx_messageInfo_ExecProcessRequest proto.InternalMessageInfo
  229. type ExecProcessResponse struct {
  230. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  231. XXX_unrecognized []byte `json:"-"`
  232. XXX_sizecache int32 `json:"-"`
  233. }
  234. func (m *ExecProcessResponse) Reset() { *m = ExecProcessResponse{} }
  235. func (*ExecProcessResponse) ProtoMessage() {}
  236. func (*ExecProcessResponse) Descriptor() ([]byte, []int) {
  237. return fileDescriptor_9202ee34bc3ad8ca, []int{5}
  238. }
  239. func (m *ExecProcessResponse) XXX_Unmarshal(b []byte) error {
  240. return m.Unmarshal(b)
  241. }
  242. func (m *ExecProcessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  243. if deterministic {
  244. return xxx_messageInfo_ExecProcessResponse.Marshal(b, m, deterministic)
  245. } else {
  246. b = b[:cap(b)]
  247. n, err := m.MarshalToSizedBuffer(b)
  248. if err != nil {
  249. return nil, err
  250. }
  251. return b[:n], nil
  252. }
  253. }
  254. func (m *ExecProcessResponse) XXX_Merge(src proto.Message) {
  255. xxx_messageInfo_ExecProcessResponse.Merge(m, src)
  256. }
  257. func (m *ExecProcessResponse) XXX_Size() int {
  258. return m.Size()
  259. }
  260. func (m *ExecProcessResponse) XXX_DiscardUnknown() {
  261. xxx_messageInfo_ExecProcessResponse.DiscardUnknown(m)
  262. }
  263. var xxx_messageInfo_ExecProcessResponse proto.InternalMessageInfo
  264. type ResizePtyRequest struct {
  265. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  266. ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
  267. Width uint32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
  268. Height uint32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
  269. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  270. XXX_unrecognized []byte `json:"-"`
  271. XXX_sizecache int32 `json:"-"`
  272. }
  273. func (m *ResizePtyRequest) Reset() { *m = ResizePtyRequest{} }
  274. func (*ResizePtyRequest) ProtoMessage() {}
  275. func (*ResizePtyRequest) Descriptor() ([]byte, []int) {
  276. return fileDescriptor_9202ee34bc3ad8ca, []int{6}
  277. }
  278. func (m *ResizePtyRequest) XXX_Unmarshal(b []byte) error {
  279. return m.Unmarshal(b)
  280. }
  281. func (m *ResizePtyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  282. if deterministic {
  283. return xxx_messageInfo_ResizePtyRequest.Marshal(b, m, deterministic)
  284. } else {
  285. b = b[:cap(b)]
  286. n, err := m.MarshalToSizedBuffer(b)
  287. if err != nil {
  288. return nil, err
  289. }
  290. return b[:n], nil
  291. }
  292. }
  293. func (m *ResizePtyRequest) XXX_Merge(src proto.Message) {
  294. xxx_messageInfo_ResizePtyRequest.Merge(m, src)
  295. }
  296. func (m *ResizePtyRequest) XXX_Size() int {
  297. return m.Size()
  298. }
  299. func (m *ResizePtyRequest) XXX_DiscardUnknown() {
  300. xxx_messageInfo_ResizePtyRequest.DiscardUnknown(m)
  301. }
  302. var xxx_messageInfo_ResizePtyRequest proto.InternalMessageInfo
  303. type StateRequest struct {
  304. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  305. ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
  306. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  307. XXX_unrecognized []byte `json:"-"`
  308. XXX_sizecache int32 `json:"-"`
  309. }
  310. func (m *StateRequest) Reset() { *m = StateRequest{} }
  311. func (*StateRequest) ProtoMessage() {}
  312. func (*StateRequest) Descriptor() ([]byte, []int) {
  313. return fileDescriptor_9202ee34bc3ad8ca, []int{7}
  314. }
  315. func (m *StateRequest) XXX_Unmarshal(b []byte) error {
  316. return m.Unmarshal(b)
  317. }
  318. func (m *StateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  319. if deterministic {
  320. return xxx_messageInfo_StateRequest.Marshal(b, m, deterministic)
  321. } else {
  322. b = b[:cap(b)]
  323. n, err := m.MarshalToSizedBuffer(b)
  324. if err != nil {
  325. return nil, err
  326. }
  327. return b[:n], nil
  328. }
  329. }
  330. func (m *StateRequest) XXX_Merge(src proto.Message) {
  331. xxx_messageInfo_StateRequest.Merge(m, src)
  332. }
  333. func (m *StateRequest) XXX_Size() int {
  334. return m.Size()
  335. }
  336. func (m *StateRequest) XXX_DiscardUnknown() {
  337. xxx_messageInfo_StateRequest.DiscardUnknown(m)
  338. }
  339. var xxx_messageInfo_StateRequest proto.InternalMessageInfo
  340. type StateResponse struct {
  341. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  342. Bundle string `protobuf:"bytes,2,opt,name=bundle,proto3" json:"bundle,omitempty"`
  343. Pid uint32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"`
  344. Status task.Status `protobuf:"varint,4,opt,name=status,proto3,enum=containerd.v1.types.Status" json:"status,omitempty"`
  345. Stdin string `protobuf:"bytes,5,opt,name=stdin,proto3" json:"stdin,omitempty"`
  346. Stdout string `protobuf:"bytes,6,opt,name=stdout,proto3" json:"stdout,omitempty"`
  347. Stderr string `protobuf:"bytes,7,opt,name=stderr,proto3" json:"stderr,omitempty"`
  348. Terminal bool `protobuf:"varint,8,opt,name=terminal,proto3" json:"terminal,omitempty"`
  349. ExitStatus uint32 `protobuf:"varint,9,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
  350. ExitedAt time.Time `protobuf:"bytes,10,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"`
  351. ExecID string `protobuf:"bytes,11,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
  352. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  353. XXX_unrecognized []byte `json:"-"`
  354. XXX_sizecache int32 `json:"-"`
  355. }
  356. func (m *StateResponse) Reset() { *m = StateResponse{} }
  357. func (*StateResponse) ProtoMessage() {}
  358. func (*StateResponse) Descriptor() ([]byte, []int) {
  359. return fileDescriptor_9202ee34bc3ad8ca, []int{8}
  360. }
  361. func (m *StateResponse) XXX_Unmarshal(b []byte) error {
  362. return m.Unmarshal(b)
  363. }
  364. func (m *StateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  365. if deterministic {
  366. return xxx_messageInfo_StateResponse.Marshal(b, m, deterministic)
  367. } else {
  368. b = b[:cap(b)]
  369. n, err := m.MarshalToSizedBuffer(b)
  370. if err != nil {
  371. return nil, err
  372. }
  373. return b[:n], nil
  374. }
  375. }
  376. func (m *StateResponse) XXX_Merge(src proto.Message) {
  377. xxx_messageInfo_StateResponse.Merge(m, src)
  378. }
  379. func (m *StateResponse) XXX_Size() int {
  380. return m.Size()
  381. }
  382. func (m *StateResponse) XXX_DiscardUnknown() {
  383. xxx_messageInfo_StateResponse.DiscardUnknown(m)
  384. }
  385. var xxx_messageInfo_StateResponse proto.InternalMessageInfo
  386. type KillRequest struct {
  387. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  388. ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
  389. Signal uint32 `protobuf:"varint,3,opt,name=signal,proto3" json:"signal,omitempty"`
  390. All bool `protobuf:"varint,4,opt,name=all,proto3" json:"all,omitempty"`
  391. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  392. XXX_unrecognized []byte `json:"-"`
  393. XXX_sizecache int32 `json:"-"`
  394. }
  395. func (m *KillRequest) Reset() { *m = KillRequest{} }
  396. func (*KillRequest) ProtoMessage() {}
  397. func (*KillRequest) Descriptor() ([]byte, []int) {
  398. return fileDescriptor_9202ee34bc3ad8ca, []int{9}
  399. }
  400. func (m *KillRequest) XXX_Unmarshal(b []byte) error {
  401. return m.Unmarshal(b)
  402. }
  403. func (m *KillRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  404. if deterministic {
  405. return xxx_messageInfo_KillRequest.Marshal(b, m, deterministic)
  406. } else {
  407. b = b[:cap(b)]
  408. n, err := m.MarshalToSizedBuffer(b)
  409. if err != nil {
  410. return nil, err
  411. }
  412. return b[:n], nil
  413. }
  414. }
  415. func (m *KillRequest) XXX_Merge(src proto.Message) {
  416. xxx_messageInfo_KillRequest.Merge(m, src)
  417. }
  418. func (m *KillRequest) XXX_Size() int {
  419. return m.Size()
  420. }
  421. func (m *KillRequest) XXX_DiscardUnknown() {
  422. xxx_messageInfo_KillRequest.DiscardUnknown(m)
  423. }
  424. var xxx_messageInfo_KillRequest proto.InternalMessageInfo
  425. type CloseIORequest struct {
  426. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  427. ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
  428. Stdin bool `protobuf:"varint,3,opt,name=stdin,proto3" json:"stdin,omitempty"`
  429. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  430. XXX_unrecognized []byte `json:"-"`
  431. XXX_sizecache int32 `json:"-"`
  432. }
  433. func (m *CloseIORequest) Reset() { *m = CloseIORequest{} }
  434. func (*CloseIORequest) ProtoMessage() {}
  435. func (*CloseIORequest) Descriptor() ([]byte, []int) {
  436. return fileDescriptor_9202ee34bc3ad8ca, []int{10}
  437. }
  438. func (m *CloseIORequest) XXX_Unmarshal(b []byte) error {
  439. return m.Unmarshal(b)
  440. }
  441. func (m *CloseIORequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  442. if deterministic {
  443. return xxx_messageInfo_CloseIORequest.Marshal(b, m, deterministic)
  444. } else {
  445. b = b[:cap(b)]
  446. n, err := m.MarshalToSizedBuffer(b)
  447. if err != nil {
  448. return nil, err
  449. }
  450. return b[:n], nil
  451. }
  452. }
  453. func (m *CloseIORequest) XXX_Merge(src proto.Message) {
  454. xxx_messageInfo_CloseIORequest.Merge(m, src)
  455. }
  456. func (m *CloseIORequest) XXX_Size() int {
  457. return m.Size()
  458. }
  459. func (m *CloseIORequest) XXX_DiscardUnknown() {
  460. xxx_messageInfo_CloseIORequest.DiscardUnknown(m)
  461. }
  462. var xxx_messageInfo_CloseIORequest proto.InternalMessageInfo
  463. type PidsRequest struct {
  464. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  465. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  466. XXX_unrecognized []byte `json:"-"`
  467. XXX_sizecache int32 `json:"-"`
  468. }
  469. func (m *PidsRequest) Reset() { *m = PidsRequest{} }
  470. func (*PidsRequest) ProtoMessage() {}
  471. func (*PidsRequest) Descriptor() ([]byte, []int) {
  472. return fileDescriptor_9202ee34bc3ad8ca, []int{11}
  473. }
  474. func (m *PidsRequest) XXX_Unmarshal(b []byte) error {
  475. return m.Unmarshal(b)
  476. }
  477. func (m *PidsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  478. if deterministic {
  479. return xxx_messageInfo_PidsRequest.Marshal(b, m, deterministic)
  480. } else {
  481. b = b[:cap(b)]
  482. n, err := m.MarshalToSizedBuffer(b)
  483. if err != nil {
  484. return nil, err
  485. }
  486. return b[:n], nil
  487. }
  488. }
  489. func (m *PidsRequest) XXX_Merge(src proto.Message) {
  490. xxx_messageInfo_PidsRequest.Merge(m, src)
  491. }
  492. func (m *PidsRequest) XXX_Size() int {
  493. return m.Size()
  494. }
  495. func (m *PidsRequest) XXX_DiscardUnknown() {
  496. xxx_messageInfo_PidsRequest.DiscardUnknown(m)
  497. }
  498. var xxx_messageInfo_PidsRequest proto.InternalMessageInfo
  499. type PidsResponse struct {
  500. Processes []*task.ProcessInfo `protobuf:"bytes,1,rep,name=processes,proto3" json:"processes,omitempty"`
  501. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  502. XXX_unrecognized []byte `json:"-"`
  503. XXX_sizecache int32 `json:"-"`
  504. }
  505. func (m *PidsResponse) Reset() { *m = PidsResponse{} }
  506. func (*PidsResponse) ProtoMessage() {}
  507. func (*PidsResponse) Descriptor() ([]byte, []int) {
  508. return fileDescriptor_9202ee34bc3ad8ca, []int{12}
  509. }
  510. func (m *PidsResponse) XXX_Unmarshal(b []byte) error {
  511. return m.Unmarshal(b)
  512. }
  513. func (m *PidsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  514. if deterministic {
  515. return xxx_messageInfo_PidsResponse.Marshal(b, m, deterministic)
  516. } else {
  517. b = b[:cap(b)]
  518. n, err := m.MarshalToSizedBuffer(b)
  519. if err != nil {
  520. return nil, err
  521. }
  522. return b[:n], nil
  523. }
  524. }
  525. func (m *PidsResponse) XXX_Merge(src proto.Message) {
  526. xxx_messageInfo_PidsResponse.Merge(m, src)
  527. }
  528. func (m *PidsResponse) XXX_Size() int {
  529. return m.Size()
  530. }
  531. func (m *PidsResponse) XXX_DiscardUnknown() {
  532. xxx_messageInfo_PidsResponse.DiscardUnknown(m)
  533. }
  534. var xxx_messageInfo_PidsResponse proto.InternalMessageInfo
  535. type CheckpointTaskRequest struct {
  536. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  537. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
  538. Options *types1.Any `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
  539. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  540. XXX_unrecognized []byte `json:"-"`
  541. XXX_sizecache int32 `json:"-"`
  542. }
  543. func (m *CheckpointTaskRequest) Reset() { *m = CheckpointTaskRequest{} }
  544. func (*CheckpointTaskRequest) ProtoMessage() {}
  545. func (*CheckpointTaskRequest) Descriptor() ([]byte, []int) {
  546. return fileDescriptor_9202ee34bc3ad8ca, []int{13}
  547. }
  548. func (m *CheckpointTaskRequest) XXX_Unmarshal(b []byte) error {
  549. return m.Unmarshal(b)
  550. }
  551. func (m *CheckpointTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  552. if deterministic {
  553. return xxx_messageInfo_CheckpointTaskRequest.Marshal(b, m, deterministic)
  554. } else {
  555. b = b[:cap(b)]
  556. n, err := m.MarshalToSizedBuffer(b)
  557. if err != nil {
  558. return nil, err
  559. }
  560. return b[:n], nil
  561. }
  562. }
  563. func (m *CheckpointTaskRequest) XXX_Merge(src proto.Message) {
  564. xxx_messageInfo_CheckpointTaskRequest.Merge(m, src)
  565. }
  566. func (m *CheckpointTaskRequest) XXX_Size() int {
  567. return m.Size()
  568. }
  569. func (m *CheckpointTaskRequest) XXX_DiscardUnknown() {
  570. xxx_messageInfo_CheckpointTaskRequest.DiscardUnknown(m)
  571. }
  572. var xxx_messageInfo_CheckpointTaskRequest proto.InternalMessageInfo
  573. type UpdateTaskRequest struct {
  574. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  575. Resources *types1.Any `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"`
  576. Annotations map[string]string `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  577. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  578. XXX_unrecognized []byte `json:"-"`
  579. XXX_sizecache int32 `json:"-"`
  580. }
  581. func (m *UpdateTaskRequest) Reset() { *m = UpdateTaskRequest{} }
  582. func (*UpdateTaskRequest) ProtoMessage() {}
  583. func (*UpdateTaskRequest) Descriptor() ([]byte, []int) {
  584. return fileDescriptor_9202ee34bc3ad8ca, []int{14}
  585. }
  586. func (m *UpdateTaskRequest) XXX_Unmarshal(b []byte) error {
  587. return m.Unmarshal(b)
  588. }
  589. func (m *UpdateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  590. if deterministic {
  591. return xxx_messageInfo_UpdateTaskRequest.Marshal(b, m, deterministic)
  592. } else {
  593. b = b[:cap(b)]
  594. n, err := m.MarshalToSizedBuffer(b)
  595. if err != nil {
  596. return nil, err
  597. }
  598. return b[:n], nil
  599. }
  600. }
  601. func (m *UpdateTaskRequest) XXX_Merge(src proto.Message) {
  602. xxx_messageInfo_UpdateTaskRequest.Merge(m, src)
  603. }
  604. func (m *UpdateTaskRequest) XXX_Size() int {
  605. return m.Size()
  606. }
  607. func (m *UpdateTaskRequest) XXX_DiscardUnknown() {
  608. xxx_messageInfo_UpdateTaskRequest.DiscardUnknown(m)
  609. }
  610. var xxx_messageInfo_UpdateTaskRequest proto.InternalMessageInfo
  611. type StartRequest struct {
  612. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  613. ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
  614. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  615. XXX_unrecognized []byte `json:"-"`
  616. XXX_sizecache int32 `json:"-"`
  617. }
  618. func (m *StartRequest) Reset() { *m = StartRequest{} }
  619. func (*StartRequest) ProtoMessage() {}
  620. func (*StartRequest) Descriptor() ([]byte, []int) {
  621. return fileDescriptor_9202ee34bc3ad8ca, []int{15}
  622. }
  623. func (m *StartRequest) XXX_Unmarshal(b []byte) error {
  624. return m.Unmarshal(b)
  625. }
  626. func (m *StartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  627. if deterministic {
  628. return xxx_messageInfo_StartRequest.Marshal(b, m, deterministic)
  629. } else {
  630. b = b[:cap(b)]
  631. n, err := m.MarshalToSizedBuffer(b)
  632. if err != nil {
  633. return nil, err
  634. }
  635. return b[:n], nil
  636. }
  637. }
  638. func (m *StartRequest) XXX_Merge(src proto.Message) {
  639. xxx_messageInfo_StartRequest.Merge(m, src)
  640. }
  641. func (m *StartRequest) XXX_Size() int {
  642. return m.Size()
  643. }
  644. func (m *StartRequest) XXX_DiscardUnknown() {
  645. xxx_messageInfo_StartRequest.DiscardUnknown(m)
  646. }
  647. var xxx_messageInfo_StartRequest proto.InternalMessageInfo
  648. type StartResponse struct {
  649. Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
  650. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  651. XXX_unrecognized []byte `json:"-"`
  652. XXX_sizecache int32 `json:"-"`
  653. }
  654. func (m *StartResponse) Reset() { *m = StartResponse{} }
  655. func (*StartResponse) ProtoMessage() {}
  656. func (*StartResponse) Descriptor() ([]byte, []int) {
  657. return fileDescriptor_9202ee34bc3ad8ca, []int{16}
  658. }
  659. func (m *StartResponse) XXX_Unmarshal(b []byte) error {
  660. return m.Unmarshal(b)
  661. }
  662. func (m *StartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  663. if deterministic {
  664. return xxx_messageInfo_StartResponse.Marshal(b, m, deterministic)
  665. } else {
  666. b = b[:cap(b)]
  667. n, err := m.MarshalToSizedBuffer(b)
  668. if err != nil {
  669. return nil, err
  670. }
  671. return b[:n], nil
  672. }
  673. }
  674. func (m *StartResponse) XXX_Merge(src proto.Message) {
  675. xxx_messageInfo_StartResponse.Merge(m, src)
  676. }
  677. func (m *StartResponse) XXX_Size() int {
  678. return m.Size()
  679. }
  680. func (m *StartResponse) XXX_DiscardUnknown() {
  681. xxx_messageInfo_StartResponse.DiscardUnknown(m)
  682. }
  683. var xxx_messageInfo_StartResponse proto.InternalMessageInfo
  684. type WaitRequest struct {
  685. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  686. ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
  687. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  688. XXX_unrecognized []byte `json:"-"`
  689. XXX_sizecache int32 `json:"-"`
  690. }
  691. func (m *WaitRequest) Reset() { *m = WaitRequest{} }
  692. func (*WaitRequest) ProtoMessage() {}
  693. func (*WaitRequest) Descriptor() ([]byte, []int) {
  694. return fileDescriptor_9202ee34bc3ad8ca, []int{17}
  695. }
  696. func (m *WaitRequest) XXX_Unmarshal(b []byte) error {
  697. return m.Unmarshal(b)
  698. }
  699. func (m *WaitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  700. if deterministic {
  701. return xxx_messageInfo_WaitRequest.Marshal(b, m, deterministic)
  702. } else {
  703. b = b[:cap(b)]
  704. n, err := m.MarshalToSizedBuffer(b)
  705. if err != nil {
  706. return nil, err
  707. }
  708. return b[:n], nil
  709. }
  710. }
  711. func (m *WaitRequest) XXX_Merge(src proto.Message) {
  712. xxx_messageInfo_WaitRequest.Merge(m, src)
  713. }
  714. func (m *WaitRequest) XXX_Size() int {
  715. return m.Size()
  716. }
  717. func (m *WaitRequest) XXX_DiscardUnknown() {
  718. xxx_messageInfo_WaitRequest.DiscardUnknown(m)
  719. }
  720. var xxx_messageInfo_WaitRequest proto.InternalMessageInfo
  721. type WaitResponse struct {
  722. ExitStatus uint32 `protobuf:"varint,1,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
  723. ExitedAt time.Time `protobuf:"bytes,2,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"`
  724. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  725. XXX_unrecognized []byte `json:"-"`
  726. XXX_sizecache int32 `json:"-"`
  727. }
  728. func (m *WaitResponse) Reset() { *m = WaitResponse{} }
  729. func (*WaitResponse) ProtoMessage() {}
  730. func (*WaitResponse) Descriptor() ([]byte, []int) {
  731. return fileDescriptor_9202ee34bc3ad8ca, []int{18}
  732. }
  733. func (m *WaitResponse) XXX_Unmarshal(b []byte) error {
  734. return m.Unmarshal(b)
  735. }
  736. func (m *WaitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  737. if deterministic {
  738. return xxx_messageInfo_WaitResponse.Marshal(b, m, deterministic)
  739. } else {
  740. b = b[:cap(b)]
  741. n, err := m.MarshalToSizedBuffer(b)
  742. if err != nil {
  743. return nil, err
  744. }
  745. return b[:n], nil
  746. }
  747. }
  748. func (m *WaitResponse) XXX_Merge(src proto.Message) {
  749. xxx_messageInfo_WaitResponse.Merge(m, src)
  750. }
  751. func (m *WaitResponse) XXX_Size() int {
  752. return m.Size()
  753. }
  754. func (m *WaitResponse) XXX_DiscardUnknown() {
  755. xxx_messageInfo_WaitResponse.DiscardUnknown(m)
  756. }
  757. var xxx_messageInfo_WaitResponse proto.InternalMessageInfo
  758. type StatsRequest struct {
  759. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  760. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  761. XXX_unrecognized []byte `json:"-"`
  762. XXX_sizecache int32 `json:"-"`
  763. }
  764. func (m *StatsRequest) Reset() { *m = StatsRequest{} }
  765. func (*StatsRequest) ProtoMessage() {}
  766. func (*StatsRequest) Descriptor() ([]byte, []int) {
  767. return fileDescriptor_9202ee34bc3ad8ca, []int{19}
  768. }
  769. func (m *StatsRequest) XXX_Unmarshal(b []byte) error {
  770. return m.Unmarshal(b)
  771. }
  772. func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  773. if deterministic {
  774. return xxx_messageInfo_StatsRequest.Marshal(b, m, deterministic)
  775. } else {
  776. b = b[:cap(b)]
  777. n, err := m.MarshalToSizedBuffer(b)
  778. if err != nil {
  779. return nil, err
  780. }
  781. return b[:n], nil
  782. }
  783. }
  784. func (m *StatsRequest) XXX_Merge(src proto.Message) {
  785. xxx_messageInfo_StatsRequest.Merge(m, src)
  786. }
  787. func (m *StatsRequest) XXX_Size() int {
  788. return m.Size()
  789. }
  790. func (m *StatsRequest) XXX_DiscardUnknown() {
  791. xxx_messageInfo_StatsRequest.DiscardUnknown(m)
  792. }
  793. var xxx_messageInfo_StatsRequest proto.InternalMessageInfo
  794. type StatsResponse struct {
  795. Stats *types1.Any `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"`
  796. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  797. XXX_unrecognized []byte `json:"-"`
  798. XXX_sizecache int32 `json:"-"`
  799. }
  800. func (m *StatsResponse) Reset() { *m = StatsResponse{} }
  801. func (*StatsResponse) ProtoMessage() {}
  802. func (*StatsResponse) Descriptor() ([]byte, []int) {
  803. return fileDescriptor_9202ee34bc3ad8ca, []int{20}
  804. }
  805. func (m *StatsResponse) XXX_Unmarshal(b []byte) error {
  806. return m.Unmarshal(b)
  807. }
  808. func (m *StatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  809. if deterministic {
  810. return xxx_messageInfo_StatsResponse.Marshal(b, m, deterministic)
  811. } else {
  812. b = b[:cap(b)]
  813. n, err := m.MarshalToSizedBuffer(b)
  814. if err != nil {
  815. return nil, err
  816. }
  817. return b[:n], nil
  818. }
  819. }
  820. func (m *StatsResponse) XXX_Merge(src proto.Message) {
  821. xxx_messageInfo_StatsResponse.Merge(m, src)
  822. }
  823. func (m *StatsResponse) XXX_Size() int {
  824. return m.Size()
  825. }
  826. func (m *StatsResponse) XXX_DiscardUnknown() {
  827. xxx_messageInfo_StatsResponse.DiscardUnknown(m)
  828. }
  829. var xxx_messageInfo_StatsResponse proto.InternalMessageInfo
  830. type ConnectRequest struct {
  831. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  832. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  833. XXX_unrecognized []byte `json:"-"`
  834. XXX_sizecache int32 `json:"-"`
  835. }
  836. func (m *ConnectRequest) Reset() { *m = ConnectRequest{} }
  837. func (*ConnectRequest) ProtoMessage() {}
  838. func (*ConnectRequest) Descriptor() ([]byte, []int) {
  839. return fileDescriptor_9202ee34bc3ad8ca, []int{21}
  840. }
  841. func (m *ConnectRequest) XXX_Unmarshal(b []byte) error {
  842. return m.Unmarshal(b)
  843. }
  844. func (m *ConnectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  845. if deterministic {
  846. return xxx_messageInfo_ConnectRequest.Marshal(b, m, deterministic)
  847. } else {
  848. b = b[:cap(b)]
  849. n, err := m.MarshalToSizedBuffer(b)
  850. if err != nil {
  851. return nil, err
  852. }
  853. return b[:n], nil
  854. }
  855. }
  856. func (m *ConnectRequest) XXX_Merge(src proto.Message) {
  857. xxx_messageInfo_ConnectRequest.Merge(m, src)
  858. }
  859. func (m *ConnectRequest) XXX_Size() int {
  860. return m.Size()
  861. }
  862. func (m *ConnectRequest) XXX_DiscardUnknown() {
  863. xxx_messageInfo_ConnectRequest.DiscardUnknown(m)
  864. }
  865. var xxx_messageInfo_ConnectRequest proto.InternalMessageInfo
  866. type ConnectResponse struct {
  867. ShimPid uint32 `protobuf:"varint,1,opt,name=shim_pid,json=shimPid,proto3" json:"shim_pid,omitempty"`
  868. TaskPid uint32 `protobuf:"varint,2,opt,name=task_pid,json=taskPid,proto3" json:"task_pid,omitempty"`
  869. Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
  870. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  871. XXX_unrecognized []byte `json:"-"`
  872. XXX_sizecache int32 `json:"-"`
  873. }
  874. func (m *ConnectResponse) Reset() { *m = ConnectResponse{} }
  875. func (*ConnectResponse) ProtoMessage() {}
  876. func (*ConnectResponse) Descriptor() ([]byte, []int) {
  877. return fileDescriptor_9202ee34bc3ad8ca, []int{22}
  878. }
  879. func (m *ConnectResponse) XXX_Unmarshal(b []byte) error {
  880. return m.Unmarshal(b)
  881. }
  882. func (m *ConnectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  883. if deterministic {
  884. return xxx_messageInfo_ConnectResponse.Marshal(b, m, deterministic)
  885. } else {
  886. b = b[:cap(b)]
  887. n, err := m.MarshalToSizedBuffer(b)
  888. if err != nil {
  889. return nil, err
  890. }
  891. return b[:n], nil
  892. }
  893. }
  894. func (m *ConnectResponse) XXX_Merge(src proto.Message) {
  895. xxx_messageInfo_ConnectResponse.Merge(m, src)
  896. }
  897. func (m *ConnectResponse) XXX_Size() int {
  898. return m.Size()
  899. }
  900. func (m *ConnectResponse) XXX_DiscardUnknown() {
  901. xxx_messageInfo_ConnectResponse.DiscardUnknown(m)
  902. }
  903. var xxx_messageInfo_ConnectResponse proto.InternalMessageInfo
  904. type ShutdownRequest struct {
  905. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  906. Now bool `protobuf:"varint,2,opt,name=now,proto3" json:"now,omitempty"`
  907. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  908. XXX_unrecognized []byte `json:"-"`
  909. XXX_sizecache int32 `json:"-"`
  910. }
  911. func (m *ShutdownRequest) Reset() { *m = ShutdownRequest{} }
  912. func (*ShutdownRequest) ProtoMessage() {}
  913. func (*ShutdownRequest) Descriptor() ([]byte, []int) {
  914. return fileDescriptor_9202ee34bc3ad8ca, []int{23}
  915. }
  916. func (m *ShutdownRequest) XXX_Unmarshal(b []byte) error {
  917. return m.Unmarshal(b)
  918. }
  919. func (m *ShutdownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  920. if deterministic {
  921. return xxx_messageInfo_ShutdownRequest.Marshal(b, m, deterministic)
  922. } else {
  923. b = b[:cap(b)]
  924. n, err := m.MarshalToSizedBuffer(b)
  925. if err != nil {
  926. return nil, err
  927. }
  928. return b[:n], nil
  929. }
  930. }
  931. func (m *ShutdownRequest) XXX_Merge(src proto.Message) {
  932. xxx_messageInfo_ShutdownRequest.Merge(m, src)
  933. }
  934. func (m *ShutdownRequest) XXX_Size() int {
  935. return m.Size()
  936. }
  937. func (m *ShutdownRequest) XXX_DiscardUnknown() {
  938. xxx_messageInfo_ShutdownRequest.DiscardUnknown(m)
  939. }
  940. var xxx_messageInfo_ShutdownRequest proto.InternalMessageInfo
  941. type PauseRequest struct {
  942. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  943. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  944. XXX_unrecognized []byte `json:"-"`
  945. XXX_sizecache int32 `json:"-"`
  946. }
  947. func (m *PauseRequest) Reset() { *m = PauseRequest{} }
  948. func (*PauseRequest) ProtoMessage() {}
  949. func (*PauseRequest) Descriptor() ([]byte, []int) {
  950. return fileDescriptor_9202ee34bc3ad8ca, []int{24}
  951. }
  952. func (m *PauseRequest) XXX_Unmarshal(b []byte) error {
  953. return m.Unmarshal(b)
  954. }
  955. func (m *PauseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  956. if deterministic {
  957. return xxx_messageInfo_PauseRequest.Marshal(b, m, deterministic)
  958. } else {
  959. b = b[:cap(b)]
  960. n, err := m.MarshalToSizedBuffer(b)
  961. if err != nil {
  962. return nil, err
  963. }
  964. return b[:n], nil
  965. }
  966. }
  967. func (m *PauseRequest) XXX_Merge(src proto.Message) {
  968. xxx_messageInfo_PauseRequest.Merge(m, src)
  969. }
  970. func (m *PauseRequest) XXX_Size() int {
  971. return m.Size()
  972. }
  973. func (m *PauseRequest) XXX_DiscardUnknown() {
  974. xxx_messageInfo_PauseRequest.DiscardUnknown(m)
  975. }
  976. var xxx_messageInfo_PauseRequest proto.InternalMessageInfo
  977. type ResumeRequest struct {
  978. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  979. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  980. XXX_unrecognized []byte `json:"-"`
  981. XXX_sizecache int32 `json:"-"`
  982. }
  983. func (m *ResumeRequest) Reset() { *m = ResumeRequest{} }
  984. func (*ResumeRequest) ProtoMessage() {}
  985. func (*ResumeRequest) Descriptor() ([]byte, []int) {
  986. return fileDescriptor_9202ee34bc3ad8ca, []int{25}
  987. }
  988. func (m *ResumeRequest) XXX_Unmarshal(b []byte) error {
  989. return m.Unmarshal(b)
  990. }
  991. func (m *ResumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  992. if deterministic {
  993. return xxx_messageInfo_ResumeRequest.Marshal(b, m, deterministic)
  994. } else {
  995. b = b[:cap(b)]
  996. n, err := m.MarshalToSizedBuffer(b)
  997. if err != nil {
  998. return nil, err
  999. }
  1000. return b[:n], nil
  1001. }
  1002. }
  1003. func (m *ResumeRequest) XXX_Merge(src proto.Message) {
  1004. xxx_messageInfo_ResumeRequest.Merge(m, src)
  1005. }
  1006. func (m *ResumeRequest) XXX_Size() int {
  1007. return m.Size()
  1008. }
  1009. func (m *ResumeRequest) XXX_DiscardUnknown() {
  1010. xxx_messageInfo_ResumeRequest.DiscardUnknown(m)
  1011. }
  1012. var xxx_messageInfo_ResumeRequest proto.InternalMessageInfo
  1013. func init() {
  1014. proto.RegisterType((*CreateTaskRequest)(nil), "containerd.task.v2.CreateTaskRequest")
  1015. proto.RegisterType((*CreateTaskResponse)(nil), "containerd.task.v2.CreateTaskResponse")
  1016. proto.RegisterType((*DeleteRequest)(nil), "containerd.task.v2.DeleteRequest")
  1017. proto.RegisterType((*DeleteResponse)(nil), "containerd.task.v2.DeleteResponse")
  1018. proto.RegisterType((*ExecProcessRequest)(nil), "containerd.task.v2.ExecProcessRequest")
  1019. proto.RegisterType((*ExecProcessResponse)(nil), "containerd.task.v2.ExecProcessResponse")
  1020. proto.RegisterType((*ResizePtyRequest)(nil), "containerd.task.v2.ResizePtyRequest")
  1021. proto.RegisterType((*StateRequest)(nil), "containerd.task.v2.StateRequest")
  1022. proto.RegisterType((*StateResponse)(nil), "containerd.task.v2.StateResponse")
  1023. proto.RegisterType((*KillRequest)(nil), "containerd.task.v2.KillRequest")
  1024. proto.RegisterType((*CloseIORequest)(nil), "containerd.task.v2.CloseIORequest")
  1025. proto.RegisterType((*PidsRequest)(nil), "containerd.task.v2.PidsRequest")
  1026. proto.RegisterType((*PidsResponse)(nil), "containerd.task.v2.PidsResponse")
  1027. proto.RegisterType((*CheckpointTaskRequest)(nil), "containerd.task.v2.CheckpointTaskRequest")
  1028. proto.RegisterType((*UpdateTaskRequest)(nil), "containerd.task.v2.UpdateTaskRequest")
  1029. proto.RegisterMapType((map[string]string)(nil), "containerd.task.v2.UpdateTaskRequest.AnnotationsEntry")
  1030. proto.RegisterType((*StartRequest)(nil), "containerd.task.v2.StartRequest")
  1031. proto.RegisterType((*StartResponse)(nil), "containerd.task.v2.StartResponse")
  1032. proto.RegisterType((*WaitRequest)(nil), "containerd.task.v2.WaitRequest")
  1033. proto.RegisterType((*WaitResponse)(nil), "containerd.task.v2.WaitResponse")
  1034. proto.RegisterType((*StatsRequest)(nil), "containerd.task.v2.StatsRequest")
  1035. proto.RegisterType((*StatsResponse)(nil), "containerd.task.v2.StatsResponse")
  1036. proto.RegisterType((*ConnectRequest)(nil), "containerd.task.v2.ConnectRequest")
  1037. proto.RegisterType((*ConnectResponse)(nil), "containerd.task.v2.ConnectResponse")
  1038. proto.RegisterType((*ShutdownRequest)(nil), "containerd.task.v2.ShutdownRequest")
  1039. proto.RegisterType((*PauseRequest)(nil), "containerd.task.v2.PauseRequest")
  1040. proto.RegisterType((*ResumeRequest)(nil), "containerd.task.v2.ResumeRequest")
  1041. }
  1042. func init() {
  1043. proto.RegisterFile("github.com/containerd/containerd/runtime/v2/task/shim.proto", fileDescriptor_9202ee34bc3ad8ca)
  1044. }
  1045. var fileDescriptor_9202ee34bc3ad8ca = []byte{
  1046. // 1306 bytes of a gzipped FileDescriptorProto
  1047. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x4d, 0x6f, 0xdb, 0x46,
  1048. 0x13, 0x0e, 0xf5, 0x41, 0x49, 0xa3, 0xc8, 0x71, 0xf6, 0x75, 0xf2, 0x32, 0x0a, 0x20, 0x29, 0x4c,
  1049. 0x93, 0xaa, 0x2d, 0x40, 0xa1, 0x0a, 0x1a, 0x14, 0x31, 0x90, 0xc2, 0x76, 0xdc, 0x40, 0x4d, 0x5a,
  1050. 0x1b, 0x4c, 0x8a, 0x04, 0xbd, 0x18, 0xb4, 0xb8, 0x91, 0x08, 0x4b, 0x5c, 0x96, 0xbb, 0x74, 0xa2,
  1051. 0x02, 0x05, 0x7a, 0xea, 0xa1, 0xa7, 0xfe, 0xac, 0x1c, 0x0b, 0xf4, 0xd2, 0x4b, 0xd3, 0x46, 0xff,
  1052. 0xa0, 0xc7, 0xde, 0x8a, 0xfd, 0x90, 0x45, 0x49, 0xa4, 0x14, 0x07, 0xba, 0x18, 0x3b, 0xdc, 0x67,
  1053. 0x67, 0x67, 0x67, 0x9f, 0x79, 0x66, 0x65, 0xd8, 0xee, 0x79, 0xac, 0x1f, 0x1d, 0x5b, 0x5d, 0x32,
  1054. 0x6c, 0x75, 0x89, 0xcf, 0x1c, 0xcf, 0xc7, 0xa1, 0x1b, 0x1f, 0x86, 0x91, 0xcf, 0xbc, 0x21, 0x6e,
  1055. 0x9d, 0xb6, 0x5b, 0xcc, 0xa1, 0x27, 0x2d, 0xda, 0xf7, 0x86, 0x56, 0x10, 0x12, 0x46, 0x10, 0x9a,
  1056. 0xc2, 0x2c, 0x3e, 0x67, 0x9d, 0xb6, 0xab, 0xd7, 0x7a, 0x84, 0xf4, 0x06, 0xb8, 0x25, 0x10, 0xc7,
  1057. 0xd1, 0x8b, 0x96, 0xe3, 0x8f, 0x24, 0xbc, 0x7a, 0x7d, 0x7e, 0x0a, 0x0f, 0x03, 0x36, 0x99, 0xdc,
  1058. 0xea, 0x91, 0x1e, 0x11, 0xc3, 0x16, 0x1f, 0xa9, 0xaf, 0xf5, 0xf9, 0x25, 0x3c, 0x14, 0xca, 0x9c,
  1059. 0x61, 0xa0, 0x00, 0x77, 0x57, 0xc6, 0xef, 0x04, 0x5e, 0x8b, 0x8d, 0x02, 0x4c, 0x5b, 0x43, 0x12,
  1060. 0xf9, 0x4c, 0xad, 0xbb, 0x77, 0x8e, 0x75, 0xe2, 0xd8, 0xe2, 0x7c, 0x62, 0xad, 0xf9, 0x7b, 0x06,
  1061. 0x2e, 0xef, 0x85, 0xd8, 0x61, 0xf8, 0xa9, 0x43, 0x4f, 0x6c, 0xfc, 0x7d, 0x84, 0x29, 0x43, 0x57,
  1062. 0x21, 0xe3, 0xb9, 0x86, 0xd6, 0xd0, 0x9a, 0xa5, 0x5d, 0x7d, 0xfc, 0xa6, 0x9e, 0xe9, 0x3c, 0xb0,
  1063. 0x33, 0x9e, 0x8b, 0xae, 0x82, 0x7e, 0x1c, 0xf9, 0xee, 0x00, 0x1b, 0x19, 0x3e, 0x67, 0x2b, 0x0b,
  1064. 0xb5, 0x40, 0x0f, 0x09, 0x61, 0x2f, 0xa8, 0x91, 0x6d, 0x64, 0x9b, 0xe5, 0xf6, 0xff, 0xad, 0x78,
  1065. 0x36, 0xf9, 0xc6, 0xd6, 0xd7, 0x3c, 0x60, 0x5b, 0xc1, 0x50, 0x15, 0x8a, 0x0c, 0x87, 0x43, 0xcf,
  1066. 0x77, 0x06, 0x46, 0xae, 0xa1, 0x35, 0x8b, 0xf6, 0x99, 0x8d, 0xb6, 0x20, 0x4f, 0x99, 0xeb, 0xf9,
  1067. 0x46, 0x5e, 0xec, 0x21, 0x0d, 0xbe, 0x35, 0x65, 0x2e, 0x89, 0x98, 0xa1, 0xcb, 0xad, 0xa5, 0xa5,
  1068. 0xbe, 0xe3, 0x30, 0x34, 0x0a, 0x67, 0xdf, 0x71, 0x18, 0xa2, 0x1a, 0x40, 0xb7, 0x8f, 0xbb, 0x27,
  1069. 0x01, 0xf1, 0x7c, 0x66, 0x14, 0xc5, 0x5c, 0xec, 0x0b, 0xfa, 0x04, 0x2e, 0x07, 0x4e, 0x88, 0x7d,
  1070. 0x76, 0x14, 0x83, 0x95, 0x04, 0x6c, 0x53, 0x4e, 0xec, 0x4d, 0xc1, 0x16, 0x14, 0x48, 0xc0, 0x3c,
  1071. 0xe2, 0x53, 0x03, 0x1a, 0x5a, 0xb3, 0xdc, 0xde, 0xb2, 0xe4, 0x65, 0x5a, 0x93, 0xcb, 0xb4, 0x76,
  1072. 0xfc, 0x91, 0x3d, 0x01, 0x99, 0xb7, 0x01, 0xc5, 0x93, 0x4a, 0x03, 0xe2, 0x53, 0x8c, 0x36, 0x21,
  1073. 0x1b, 0xa8, 0xb4, 0x56, 0x6c, 0x3e, 0x34, 0x1f, 0x43, 0xe5, 0x01, 0x1e, 0x60, 0x86, 0x57, 0x25,
  1074. 0xfe, 0x26, 0x14, 0xf0, 0x2b, 0xdc, 0x3d, 0xf2, 0x5c, 0x99, 0xf9, 0x5d, 0x18, 0xbf, 0xa9, 0xeb,
  1075. 0xfb, 0xaf, 0x70, 0xb7, 0xf3, 0xc0, 0xd6, 0xf9, 0x54, 0xc7, 0x35, 0x7f, 0xd6, 0x60, 0x63, 0xe2,
  1076. 0x2e, 0x6d, 0x4b, 0x54, 0x87, 0x32, 0x7e, 0xe5, 0xb1, 0x23, 0xca, 0x1c, 0x16, 0x51, 0xe1, 0xad,
  1077. 0x62, 0x03, 0xff, 0xf4, 0x44, 0x7c, 0x41, 0x3b, 0x50, 0xe2, 0x16, 0x76, 0x8f, 0x1c, 0x66, 0x64,
  1078. 0xc5, 0x69, 0xab, 0x0b, 0xa7, 0x7d, 0x3a, 0xa1, 0xee, 0x6e, 0xf1, 0xf5, 0x9b, 0xfa, 0x85, 0x5f,
  1079. 0xff, 0xaa, 0x6b, 0x76, 0x51, 0x2e, 0xdb, 0x61, 0xe6, 0x9f, 0x1a, 0x20, 0x1e, 0xdb, 0x61, 0x48,
  1080. 0xba, 0x98, 0xd2, 0x75, 0x1c, 0x6e, 0x86, 0x31, 0xd9, 0x34, 0xc6, 0xe4, 0x92, 0x19, 0x93, 0x4f,
  1081. 0x61, 0x8c, 0x3e, 0xc3, 0x98, 0x26, 0xe4, 0x68, 0x80, 0xbb, 0x82, 0x47, 0x69, 0x37, 0x2c, 0x10,
  1082. 0xe6, 0x15, 0xf8, 0xdf, 0xcc, 0xf1, 0x64, 0xb2, 0xcd, 0x1f, 0x61, 0xd3, 0xc6, 0xd4, 0xfb, 0x01,
  1083. 0x1f, 0xb2, 0xd1, 0x5a, 0xce, 0xbc, 0x05, 0xf9, 0x97, 0x9e, 0xcb, 0xfa, 0xe2, 0xc0, 0x15, 0x5b,
  1084. 0x1a, 0x3c, 0xfe, 0x3e, 0xf6, 0x7a, 0x7d, 0x26, 0x8e, 0x5b, 0xb1, 0x95, 0x65, 0x3e, 0x82, 0x8b,
  1085. 0xfc, 0x0a, 0xd7, 0xc3, 0xa5, 0x7f, 0x32, 0x50, 0x51, 0xde, 0x14, 0x95, 0xce, 0xab, 0x09, 0x8a,
  1086. 0x7a, 0xd9, 0x29, 0xf5, 0xee, 0xf0, 0xc4, 0x0b, 0xd6, 0xf1, 0xc0, 0x37, 0xda, 0xd7, 0xe3, 0x2a,
  1087. 0x71, 0xfa, 0xa9, 0x12, 0x0a, 0x49, 0x43, 0x5b, 0x41, 0xd7, 0xa4, 0x06, 0x71, 0xf6, 0x14, 0xe7,
  1088. 0xd8, 0x33, 0x57, 0x11, 0xa5, 0xe5, 0x15, 0x01, 0xef, 0x53, 0x11, 0xf1, 0x9c, 0x97, 0x53, 0x73,
  1089. 0xce, 0xa0, 0xfc, 0xc8, 0x1b, 0x0c, 0xd6, 0x42, 0x1d, 0x9e, 0x08, 0xaf, 0x37, 0x29, 0x96, 0x8a,
  1090. 0xad, 0x2c, 0x7e, 0x2b, 0xce, 0x60, 0xa2, 0xb9, 0x7c, 0x68, 0x76, 0x61, 0x63, 0x6f, 0x40, 0x28,
  1091. 0xee, 0x1c, 0xac, 0x8b, 0xb3, 0xf2, 0xbe, 0x64, 0x91, 0x4a, 0xc3, 0xbc, 0x05, 0xe5, 0x43, 0xcf,
  1092. 0x5d, 0xa5, 0x04, 0xe6, 0x37, 0x70, 0x51, 0xc2, 0x14, 0xe7, 0xee, 0x43, 0x29, 0x90, 0x45, 0x86,
  1093. 0xa9, 0xa1, 0x89, 0xd6, 0xd2, 0x48, 0x24, 0x8d, 0x2a, 0xc5, 0x8e, 0xff, 0x82, 0xd8, 0xd3, 0x25,
  1094. 0x26, 0x85, 0x2b, 0x53, 0x15, 0x7f, 0x97, 0x06, 0x87, 0x20, 0x17, 0x38, 0xac, 0xaf, 0xa8, 0x2c,
  1095. 0xc6, 0x71, 0xf1, 0xcf, 0xbe, 0x8b, 0xf8, 0xff, 0xab, 0xc1, 0xe5, 0x6f, 0x03, 0xf7, 0x1d, 0x5b,
  1096. 0x6a, 0x1b, 0x4a, 0x21, 0xa6, 0x24, 0x0a, 0xbb, 0x58, 0xaa, 0x71, 0x9a, 0xff, 0x29, 0x0c, 0x3d,
  1097. 0x87, 0xb2, 0xe3, 0xfb, 0x84, 0x39, 0x93, 0xa8, 0x78, 0x62, 0xee, 0x5a, 0x8b, 0x2f, 0x18, 0x6b,
  1098. 0x21, 0x0e, 0x6b, 0x67, 0xba, 0x70, 0xdf, 0x67, 0xe1, 0xc8, 0x8e, 0xbb, 0xaa, 0xde, 0x87, 0xcd,
  1099. 0x79, 0x00, 0xa7, 0xcc, 0x09, 0x1e, 0xc9, 0xd0, 0x6d, 0x3e, 0xe4, 0x77, 0x7c, 0xea, 0x0c, 0xa2,
  1100. 0x49, 0xc5, 0x4b, 0xe3, 0x5e, 0xe6, 0x73, 0x4d, 0x69, 0x50, 0xc8, 0xd6, 0xa2, 0x41, 0x37, 0x84,
  1101. 0x04, 0x71, 0x67, 0xa9, 0x0d, 0xf4, 0x2b, 0x28, 0x3f, 0x73, 0xbc, 0xf5, 0x6c, 0x17, 0xc2, 0x45,
  1102. 0xe9, 0x4b, 0xed, 0x36, 0xa7, 0x0b, 0xda, 0x72, 0x5d, 0xc8, 0xbc, 0x57, 0xa7, 0xbc, 0x2d, 0x35,
  1103. 0x7b, 0x65, 0x61, 0x6c, 0x4b, 0x35, 0x9e, 0x56, 0xc6, 0xc7, 0xbc, 0xcc, 0x1c, 0x26, 0xc3, 0x4a,
  1104. 0xa3, 0x8c, 0x84, 0x98, 0x4d, 0xd8, 0xd8, 0x23, 0xbe, 0x8f, 0xbb, 0xab, 0xf2, 0x64, 0x3a, 0x70,
  1105. 0xe9, 0x0c, 0xa9, 0x36, 0xba, 0x06, 0x45, 0xfe, 0x4a, 0x3e, 0x9a, 0x26, 0xbe, 0xc0, 0xed, 0x43,
  1106. 0xcf, 0xe5, 0x53, 0x9c, 0x67, 0x62, 0x4a, 0xbe, 0x23, 0x0a, 0xdc, 0xe6, 0x53, 0x06, 0x14, 0x4e,
  1107. 0x71, 0x48, 0x3d, 0x22, 0x75, 0xa0, 0x64, 0x4f, 0x4c, 0x73, 0x1b, 0x2e, 0x3d, 0xe9, 0x47, 0xcc,
  1108. 0x25, 0x2f, 0xfd, 0x55, 0xb7, 0xb6, 0x09, 0x59, 0x9f, 0xbc, 0x14, 0xae, 0x8b, 0x36, 0x1f, 0xf2,
  1109. 0x74, 0x1d, 0x3a, 0x11, 0x5d, 0xd5, 0xe2, 0xcc, 0x0f, 0xa1, 0x62, 0x63, 0x1a, 0x0d, 0x57, 0x01,
  1110. 0xdb, 0xbf, 0x00, 0xe4, 0x78, 0x75, 0xa0, 0xc7, 0x90, 0x17, 0xed, 0x0e, 0x35, 0x92, 0xca, 0x28,
  1111. 0xde, 0x57, 0xab, 0x37, 0x96, 0x20, 0x54, 0xd2, 0x9e, 0x81, 0x2e, 0xdf, 0x7f, 0xe8, 0x56, 0x12,
  1112. 0x78, 0xe1, 0xc1, 0x5d, 0xbd, 0xbd, 0x0a, 0xa6, 0x1c, 0xcb, 0x30, 0x43, 0x96, 0x1a, 0xe6, 0x59,
  1113. 0xe9, 0xa5, 0x86, 0x19, 0xab, 0xa7, 0x03, 0xd0, 0xe5, 0x7b, 0x11, 0x25, 0x82, 0x67, 0x9e, 0xa6,
  1114. 0x55, 0x73, 0x19, 0x44, 0x39, 0xec, 0x40, 0x8e, 0xeb, 0x37, 0xaa, 0x27, 0x61, 0x63, 0x0d, 0xa0,
  1115. 0xda, 0x48, 0x07, 0x28, 0x57, 0x3b, 0x90, 0x17, 0x57, 0x9d, 0x7c, 0xd2, 0x38, 0x0b, 0xaa, 0x57,
  1116. 0x17, 0xc8, 0xbf, 0xcf, 0x7f, 0x8c, 0xa1, 0x3d, 0xd0, 0x25, 0x0b, 0x92, 0x8f, 0x37, 0xc3, 0x90,
  1117. 0x54, 0x27, 0x07, 0x00, 0xb1, 0x1f, 0x02, 0x1f, 0x25, 0xde, 0x53, 0x52, 0x8b, 0x49, 0x75, 0xf8,
  1118. 0x05, 0xe4, 0x78, 0x97, 0x4f, 0xce, 0x51, 0xac, 0xff, 0xa7, 0x3a, 0xf8, 0x12, 0x72, 0x5c, 0xb9,
  1119. 0x50, 0x22, 0x67, 0x16, 0x9f, 0xdd, 0xa9, 0x7e, 0x3a, 0x50, 0x3a, 0x7b, 0xae, 0xa2, 0x0f, 0x52,
  1120. 0x32, 0x34, 0xf3, 0x9a, 0x4d, 0x75, 0xb5, 0x0f, 0x05, 0xf5, 0x86, 0x40, 0x89, 0x34, 0x99, 0x7d,
  1121. 0x60, 0xa4, 0xba, 0x79, 0x08, 0xba, 0x6c, 0x58, 0xc9, 0x65, 0xb3, 0xd0, 0xcc, 0x96, 0x1c, 0x2d,
  1122. 0xc7, 0xa5, 0x3c, 0x39, 0xc7, 0xb1, 0x86, 0x91, 0xcc, 0xc3, 0x99, 0x2e, 0xa0, 0x84, 0x81, 0xa6,
  1123. 0x0b, 0x03, 0x5d, 0x29, 0x0c, 0x53, 0x56, 0xdb, 0x50, 0x50, 0x02, 0x9b, 0x92, 0xa8, 0x19, 0x9d,
  1124. 0xae, 0xde, 0x5c, 0x8a, 0x51, 0x3e, 0x1f, 0x42, 0x71, 0xa2, 0xa8, 0x28, 0x71, 0xc1, 0x9c, 0xde,
  1125. 0xa6, 0x65, 0x6d, 0xf7, 0xe0, 0xf5, 0xdb, 0xda, 0x85, 0x3f, 0xde, 0xd6, 0x2e, 0xfc, 0x34, 0xae,
  1126. 0x69, 0xaf, 0xc7, 0x35, 0xed, 0xb7, 0x71, 0x4d, 0xfb, 0x7b, 0x5c, 0xd3, 0xbe, 0xfb, 0xec, 0xbc,
  1127. 0xff, 0x59, 0xd9, 0xe6, 0x7f, 0x9e, 0x67, 0x8e, 0x75, 0xb1, 0xc5, 0x9d, 0xff, 0x02, 0x00, 0x00,
  1128. 0xff, 0xff, 0xd3, 0xbf, 0xc3, 0xa9, 0x9b, 0x11, 0x00, 0x00,
  1129. }
  1130. func (m *CreateTaskRequest) Marshal() (dAtA []byte, err error) {
  1131. size := m.Size()
  1132. dAtA = make([]byte, size)
  1133. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1134. if err != nil {
  1135. return nil, err
  1136. }
  1137. return dAtA[:n], nil
  1138. }
  1139. func (m *CreateTaskRequest) MarshalTo(dAtA []byte) (int, error) {
  1140. size := m.Size()
  1141. return m.MarshalToSizedBuffer(dAtA[:size])
  1142. }
  1143. func (m *CreateTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1144. i := len(dAtA)
  1145. _ = i
  1146. var l int
  1147. _ = l
  1148. if m.XXX_unrecognized != nil {
  1149. i -= len(m.XXX_unrecognized)
  1150. copy(dAtA[i:], m.XXX_unrecognized)
  1151. }
  1152. if m.Options != nil {
  1153. {
  1154. size, err := m.Options.MarshalToSizedBuffer(dAtA[:i])
  1155. if err != nil {
  1156. return 0, err
  1157. }
  1158. i -= size
  1159. i = encodeVarintShim(dAtA, i, uint64(size))
  1160. }
  1161. i--
  1162. dAtA[i] = 0x52
  1163. }
  1164. if len(m.ParentCheckpoint) > 0 {
  1165. i -= len(m.ParentCheckpoint)
  1166. copy(dAtA[i:], m.ParentCheckpoint)
  1167. i = encodeVarintShim(dAtA, i, uint64(len(m.ParentCheckpoint)))
  1168. i--
  1169. dAtA[i] = 0x4a
  1170. }
  1171. if len(m.Checkpoint) > 0 {
  1172. i -= len(m.Checkpoint)
  1173. copy(dAtA[i:], m.Checkpoint)
  1174. i = encodeVarintShim(dAtA, i, uint64(len(m.Checkpoint)))
  1175. i--
  1176. dAtA[i] = 0x42
  1177. }
  1178. if len(m.Stderr) > 0 {
  1179. i -= len(m.Stderr)
  1180. copy(dAtA[i:], m.Stderr)
  1181. i = encodeVarintShim(dAtA, i, uint64(len(m.Stderr)))
  1182. i--
  1183. dAtA[i] = 0x3a
  1184. }
  1185. if len(m.Stdout) > 0 {
  1186. i -= len(m.Stdout)
  1187. copy(dAtA[i:], m.Stdout)
  1188. i = encodeVarintShim(dAtA, i, uint64(len(m.Stdout)))
  1189. i--
  1190. dAtA[i] = 0x32
  1191. }
  1192. if len(m.Stdin) > 0 {
  1193. i -= len(m.Stdin)
  1194. copy(dAtA[i:], m.Stdin)
  1195. i = encodeVarintShim(dAtA, i, uint64(len(m.Stdin)))
  1196. i--
  1197. dAtA[i] = 0x2a
  1198. }
  1199. if m.Terminal {
  1200. i--
  1201. if m.Terminal {
  1202. dAtA[i] = 1
  1203. } else {
  1204. dAtA[i] = 0
  1205. }
  1206. i--
  1207. dAtA[i] = 0x20
  1208. }
  1209. if len(m.Rootfs) > 0 {
  1210. for iNdEx := len(m.Rootfs) - 1; iNdEx >= 0; iNdEx-- {
  1211. {
  1212. size, err := m.Rootfs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1213. if err != nil {
  1214. return 0, err
  1215. }
  1216. i -= size
  1217. i = encodeVarintShim(dAtA, i, uint64(size))
  1218. }
  1219. i--
  1220. dAtA[i] = 0x1a
  1221. }
  1222. }
  1223. if len(m.Bundle) > 0 {
  1224. i -= len(m.Bundle)
  1225. copy(dAtA[i:], m.Bundle)
  1226. i = encodeVarintShim(dAtA, i, uint64(len(m.Bundle)))
  1227. i--
  1228. dAtA[i] = 0x12
  1229. }
  1230. if len(m.ID) > 0 {
  1231. i -= len(m.ID)
  1232. copy(dAtA[i:], m.ID)
  1233. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  1234. i--
  1235. dAtA[i] = 0xa
  1236. }
  1237. return len(dAtA) - i, nil
  1238. }
  1239. func (m *CreateTaskResponse) Marshal() (dAtA []byte, err error) {
  1240. size := m.Size()
  1241. dAtA = make([]byte, size)
  1242. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1243. if err != nil {
  1244. return nil, err
  1245. }
  1246. return dAtA[:n], nil
  1247. }
  1248. func (m *CreateTaskResponse) MarshalTo(dAtA []byte) (int, error) {
  1249. size := m.Size()
  1250. return m.MarshalToSizedBuffer(dAtA[:size])
  1251. }
  1252. func (m *CreateTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1253. i := len(dAtA)
  1254. _ = i
  1255. var l int
  1256. _ = l
  1257. if m.XXX_unrecognized != nil {
  1258. i -= len(m.XXX_unrecognized)
  1259. copy(dAtA[i:], m.XXX_unrecognized)
  1260. }
  1261. if m.Pid != 0 {
  1262. i = encodeVarintShim(dAtA, i, uint64(m.Pid))
  1263. i--
  1264. dAtA[i] = 0x8
  1265. }
  1266. return len(dAtA) - i, nil
  1267. }
  1268. func (m *DeleteRequest) Marshal() (dAtA []byte, err error) {
  1269. size := m.Size()
  1270. dAtA = make([]byte, size)
  1271. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1272. if err != nil {
  1273. return nil, err
  1274. }
  1275. return dAtA[:n], nil
  1276. }
  1277. func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error) {
  1278. size := m.Size()
  1279. return m.MarshalToSizedBuffer(dAtA[:size])
  1280. }
  1281. func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1282. i := len(dAtA)
  1283. _ = i
  1284. var l int
  1285. _ = l
  1286. if m.XXX_unrecognized != nil {
  1287. i -= len(m.XXX_unrecognized)
  1288. copy(dAtA[i:], m.XXX_unrecognized)
  1289. }
  1290. if len(m.ExecID) > 0 {
  1291. i -= len(m.ExecID)
  1292. copy(dAtA[i:], m.ExecID)
  1293. i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
  1294. i--
  1295. dAtA[i] = 0x12
  1296. }
  1297. if len(m.ID) > 0 {
  1298. i -= len(m.ID)
  1299. copy(dAtA[i:], m.ID)
  1300. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  1301. i--
  1302. dAtA[i] = 0xa
  1303. }
  1304. return len(dAtA) - i, nil
  1305. }
  1306. func (m *DeleteResponse) Marshal() (dAtA []byte, err error) {
  1307. size := m.Size()
  1308. dAtA = make([]byte, size)
  1309. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1310. if err != nil {
  1311. return nil, err
  1312. }
  1313. return dAtA[:n], nil
  1314. }
  1315. func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error) {
  1316. size := m.Size()
  1317. return m.MarshalToSizedBuffer(dAtA[:size])
  1318. }
  1319. func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1320. i := len(dAtA)
  1321. _ = i
  1322. var l int
  1323. _ = l
  1324. if m.XXX_unrecognized != nil {
  1325. i -= len(m.XXX_unrecognized)
  1326. copy(dAtA[i:], m.XXX_unrecognized)
  1327. }
  1328. n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt):])
  1329. if err2 != nil {
  1330. return 0, err2
  1331. }
  1332. i -= n2
  1333. i = encodeVarintShim(dAtA, i, uint64(n2))
  1334. i--
  1335. dAtA[i] = 0x1a
  1336. if m.ExitStatus != 0 {
  1337. i = encodeVarintShim(dAtA, i, uint64(m.ExitStatus))
  1338. i--
  1339. dAtA[i] = 0x10
  1340. }
  1341. if m.Pid != 0 {
  1342. i = encodeVarintShim(dAtA, i, uint64(m.Pid))
  1343. i--
  1344. dAtA[i] = 0x8
  1345. }
  1346. return len(dAtA) - i, nil
  1347. }
  1348. func (m *ExecProcessRequest) Marshal() (dAtA []byte, err error) {
  1349. size := m.Size()
  1350. dAtA = make([]byte, size)
  1351. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1352. if err != nil {
  1353. return nil, err
  1354. }
  1355. return dAtA[:n], nil
  1356. }
  1357. func (m *ExecProcessRequest) MarshalTo(dAtA []byte) (int, error) {
  1358. size := m.Size()
  1359. return m.MarshalToSizedBuffer(dAtA[:size])
  1360. }
  1361. func (m *ExecProcessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1362. i := len(dAtA)
  1363. _ = i
  1364. var l int
  1365. _ = l
  1366. if m.XXX_unrecognized != nil {
  1367. i -= len(m.XXX_unrecognized)
  1368. copy(dAtA[i:], m.XXX_unrecognized)
  1369. }
  1370. if m.Spec != nil {
  1371. {
  1372. size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  1373. if err != nil {
  1374. return 0, err
  1375. }
  1376. i -= size
  1377. i = encodeVarintShim(dAtA, i, uint64(size))
  1378. }
  1379. i--
  1380. dAtA[i] = 0x3a
  1381. }
  1382. if len(m.Stderr) > 0 {
  1383. i -= len(m.Stderr)
  1384. copy(dAtA[i:], m.Stderr)
  1385. i = encodeVarintShim(dAtA, i, uint64(len(m.Stderr)))
  1386. i--
  1387. dAtA[i] = 0x32
  1388. }
  1389. if len(m.Stdout) > 0 {
  1390. i -= len(m.Stdout)
  1391. copy(dAtA[i:], m.Stdout)
  1392. i = encodeVarintShim(dAtA, i, uint64(len(m.Stdout)))
  1393. i--
  1394. dAtA[i] = 0x2a
  1395. }
  1396. if len(m.Stdin) > 0 {
  1397. i -= len(m.Stdin)
  1398. copy(dAtA[i:], m.Stdin)
  1399. i = encodeVarintShim(dAtA, i, uint64(len(m.Stdin)))
  1400. i--
  1401. dAtA[i] = 0x22
  1402. }
  1403. if m.Terminal {
  1404. i--
  1405. if m.Terminal {
  1406. dAtA[i] = 1
  1407. } else {
  1408. dAtA[i] = 0
  1409. }
  1410. i--
  1411. dAtA[i] = 0x18
  1412. }
  1413. if len(m.ExecID) > 0 {
  1414. i -= len(m.ExecID)
  1415. copy(dAtA[i:], m.ExecID)
  1416. i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
  1417. i--
  1418. dAtA[i] = 0x12
  1419. }
  1420. if len(m.ID) > 0 {
  1421. i -= len(m.ID)
  1422. copy(dAtA[i:], m.ID)
  1423. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  1424. i--
  1425. dAtA[i] = 0xa
  1426. }
  1427. return len(dAtA) - i, nil
  1428. }
  1429. func (m *ExecProcessResponse) Marshal() (dAtA []byte, err error) {
  1430. size := m.Size()
  1431. dAtA = make([]byte, size)
  1432. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1433. if err != nil {
  1434. return nil, err
  1435. }
  1436. return dAtA[:n], nil
  1437. }
  1438. func (m *ExecProcessResponse) MarshalTo(dAtA []byte) (int, error) {
  1439. size := m.Size()
  1440. return m.MarshalToSizedBuffer(dAtA[:size])
  1441. }
  1442. func (m *ExecProcessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1443. i := len(dAtA)
  1444. _ = i
  1445. var l int
  1446. _ = l
  1447. if m.XXX_unrecognized != nil {
  1448. i -= len(m.XXX_unrecognized)
  1449. copy(dAtA[i:], m.XXX_unrecognized)
  1450. }
  1451. return len(dAtA) - i, nil
  1452. }
  1453. func (m *ResizePtyRequest) Marshal() (dAtA []byte, err error) {
  1454. size := m.Size()
  1455. dAtA = make([]byte, size)
  1456. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1457. if err != nil {
  1458. return nil, err
  1459. }
  1460. return dAtA[:n], nil
  1461. }
  1462. func (m *ResizePtyRequest) MarshalTo(dAtA []byte) (int, error) {
  1463. size := m.Size()
  1464. return m.MarshalToSizedBuffer(dAtA[:size])
  1465. }
  1466. func (m *ResizePtyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1467. i := len(dAtA)
  1468. _ = i
  1469. var l int
  1470. _ = l
  1471. if m.XXX_unrecognized != nil {
  1472. i -= len(m.XXX_unrecognized)
  1473. copy(dAtA[i:], m.XXX_unrecognized)
  1474. }
  1475. if m.Height != 0 {
  1476. i = encodeVarintShim(dAtA, i, uint64(m.Height))
  1477. i--
  1478. dAtA[i] = 0x20
  1479. }
  1480. if m.Width != 0 {
  1481. i = encodeVarintShim(dAtA, i, uint64(m.Width))
  1482. i--
  1483. dAtA[i] = 0x18
  1484. }
  1485. if len(m.ExecID) > 0 {
  1486. i -= len(m.ExecID)
  1487. copy(dAtA[i:], m.ExecID)
  1488. i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
  1489. i--
  1490. dAtA[i] = 0x12
  1491. }
  1492. if len(m.ID) > 0 {
  1493. i -= len(m.ID)
  1494. copy(dAtA[i:], m.ID)
  1495. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  1496. i--
  1497. dAtA[i] = 0xa
  1498. }
  1499. return len(dAtA) - i, nil
  1500. }
  1501. func (m *StateRequest) Marshal() (dAtA []byte, err error) {
  1502. size := m.Size()
  1503. dAtA = make([]byte, size)
  1504. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1505. if err != nil {
  1506. return nil, err
  1507. }
  1508. return dAtA[:n], nil
  1509. }
  1510. func (m *StateRequest) MarshalTo(dAtA []byte) (int, error) {
  1511. size := m.Size()
  1512. return m.MarshalToSizedBuffer(dAtA[:size])
  1513. }
  1514. func (m *StateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1515. i := len(dAtA)
  1516. _ = i
  1517. var l int
  1518. _ = l
  1519. if m.XXX_unrecognized != nil {
  1520. i -= len(m.XXX_unrecognized)
  1521. copy(dAtA[i:], m.XXX_unrecognized)
  1522. }
  1523. if len(m.ExecID) > 0 {
  1524. i -= len(m.ExecID)
  1525. copy(dAtA[i:], m.ExecID)
  1526. i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
  1527. i--
  1528. dAtA[i] = 0x12
  1529. }
  1530. if len(m.ID) > 0 {
  1531. i -= len(m.ID)
  1532. copy(dAtA[i:], m.ID)
  1533. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  1534. i--
  1535. dAtA[i] = 0xa
  1536. }
  1537. return len(dAtA) - i, nil
  1538. }
  1539. func (m *StateResponse) Marshal() (dAtA []byte, err error) {
  1540. size := m.Size()
  1541. dAtA = make([]byte, size)
  1542. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1543. if err != nil {
  1544. return nil, err
  1545. }
  1546. return dAtA[:n], nil
  1547. }
  1548. func (m *StateResponse) MarshalTo(dAtA []byte) (int, error) {
  1549. size := m.Size()
  1550. return m.MarshalToSizedBuffer(dAtA[:size])
  1551. }
  1552. func (m *StateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1553. i := len(dAtA)
  1554. _ = i
  1555. var l int
  1556. _ = l
  1557. if m.XXX_unrecognized != nil {
  1558. i -= len(m.XXX_unrecognized)
  1559. copy(dAtA[i:], m.XXX_unrecognized)
  1560. }
  1561. if len(m.ExecID) > 0 {
  1562. i -= len(m.ExecID)
  1563. copy(dAtA[i:], m.ExecID)
  1564. i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
  1565. i--
  1566. dAtA[i] = 0x5a
  1567. }
  1568. n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt):])
  1569. if err4 != nil {
  1570. return 0, err4
  1571. }
  1572. i -= n4
  1573. i = encodeVarintShim(dAtA, i, uint64(n4))
  1574. i--
  1575. dAtA[i] = 0x52
  1576. if m.ExitStatus != 0 {
  1577. i = encodeVarintShim(dAtA, i, uint64(m.ExitStatus))
  1578. i--
  1579. dAtA[i] = 0x48
  1580. }
  1581. if m.Terminal {
  1582. i--
  1583. if m.Terminal {
  1584. dAtA[i] = 1
  1585. } else {
  1586. dAtA[i] = 0
  1587. }
  1588. i--
  1589. dAtA[i] = 0x40
  1590. }
  1591. if len(m.Stderr) > 0 {
  1592. i -= len(m.Stderr)
  1593. copy(dAtA[i:], m.Stderr)
  1594. i = encodeVarintShim(dAtA, i, uint64(len(m.Stderr)))
  1595. i--
  1596. dAtA[i] = 0x3a
  1597. }
  1598. if len(m.Stdout) > 0 {
  1599. i -= len(m.Stdout)
  1600. copy(dAtA[i:], m.Stdout)
  1601. i = encodeVarintShim(dAtA, i, uint64(len(m.Stdout)))
  1602. i--
  1603. dAtA[i] = 0x32
  1604. }
  1605. if len(m.Stdin) > 0 {
  1606. i -= len(m.Stdin)
  1607. copy(dAtA[i:], m.Stdin)
  1608. i = encodeVarintShim(dAtA, i, uint64(len(m.Stdin)))
  1609. i--
  1610. dAtA[i] = 0x2a
  1611. }
  1612. if m.Status != 0 {
  1613. i = encodeVarintShim(dAtA, i, uint64(m.Status))
  1614. i--
  1615. dAtA[i] = 0x20
  1616. }
  1617. if m.Pid != 0 {
  1618. i = encodeVarintShim(dAtA, i, uint64(m.Pid))
  1619. i--
  1620. dAtA[i] = 0x18
  1621. }
  1622. if len(m.Bundle) > 0 {
  1623. i -= len(m.Bundle)
  1624. copy(dAtA[i:], m.Bundle)
  1625. i = encodeVarintShim(dAtA, i, uint64(len(m.Bundle)))
  1626. i--
  1627. dAtA[i] = 0x12
  1628. }
  1629. if len(m.ID) > 0 {
  1630. i -= len(m.ID)
  1631. copy(dAtA[i:], m.ID)
  1632. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  1633. i--
  1634. dAtA[i] = 0xa
  1635. }
  1636. return len(dAtA) - i, nil
  1637. }
  1638. func (m *KillRequest) Marshal() (dAtA []byte, err error) {
  1639. size := m.Size()
  1640. dAtA = make([]byte, size)
  1641. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1642. if err != nil {
  1643. return nil, err
  1644. }
  1645. return dAtA[:n], nil
  1646. }
  1647. func (m *KillRequest) MarshalTo(dAtA []byte) (int, error) {
  1648. size := m.Size()
  1649. return m.MarshalToSizedBuffer(dAtA[:size])
  1650. }
  1651. func (m *KillRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1652. i := len(dAtA)
  1653. _ = i
  1654. var l int
  1655. _ = l
  1656. if m.XXX_unrecognized != nil {
  1657. i -= len(m.XXX_unrecognized)
  1658. copy(dAtA[i:], m.XXX_unrecognized)
  1659. }
  1660. if m.All {
  1661. i--
  1662. if m.All {
  1663. dAtA[i] = 1
  1664. } else {
  1665. dAtA[i] = 0
  1666. }
  1667. i--
  1668. dAtA[i] = 0x20
  1669. }
  1670. if m.Signal != 0 {
  1671. i = encodeVarintShim(dAtA, i, uint64(m.Signal))
  1672. i--
  1673. dAtA[i] = 0x18
  1674. }
  1675. if len(m.ExecID) > 0 {
  1676. i -= len(m.ExecID)
  1677. copy(dAtA[i:], m.ExecID)
  1678. i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
  1679. i--
  1680. dAtA[i] = 0x12
  1681. }
  1682. if len(m.ID) > 0 {
  1683. i -= len(m.ID)
  1684. copy(dAtA[i:], m.ID)
  1685. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  1686. i--
  1687. dAtA[i] = 0xa
  1688. }
  1689. return len(dAtA) - i, nil
  1690. }
  1691. func (m *CloseIORequest) Marshal() (dAtA []byte, err error) {
  1692. size := m.Size()
  1693. dAtA = make([]byte, size)
  1694. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1695. if err != nil {
  1696. return nil, err
  1697. }
  1698. return dAtA[:n], nil
  1699. }
  1700. func (m *CloseIORequest) MarshalTo(dAtA []byte) (int, error) {
  1701. size := m.Size()
  1702. return m.MarshalToSizedBuffer(dAtA[:size])
  1703. }
  1704. func (m *CloseIORequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1705. i := len(dAtA)
  1706. _ = i
  1707. var l int
  1708. _ = l
  1709. if m.XXX_unrecognized != nil {
  1710. i -= len(m.XXX_unrecognized)
  1711. copy(dAtA[i:], m.XXX_unrecognized)
  1712. }
  1713. if m.Stdin {
  1714. i--
  1715. if m.Stdin {
  1716. dAtA[i] = 1
  1717. } else {
  1718. dAtA[i] = 0
  1719. }
  1720. i--
  1721. dAtA[i] = 0x18
  1722. }
  1723. if len(m.ExecID) > 0 {
  1724. i -= len(m.ExecID)
  1725. copy(dAtA[i:], m.ExecID)
  1726. i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
  1727. i--
  1728. dAtA[i] = 0x12
  1729. }
  1730. if len(m.ID) > 0 {
  1731. i -= len(m.ID)
  1732. copy(dAtA[i:], m.ID)
  1733. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  1734. i--
  1735. dAtA[i] = 0xa
  1736. }
  1737. return len(dAtA) - i, nil
  1738. }
  1739. func (m *PidsRequest) Marshal() (dAtA []byte, err error) {
  1740. size := m.Size()
  1741. dAtA = make([]byte, size)
  1742. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1743. if err != nil {
  1744. return nil, err
  1745. }
  1746. return dAtA[:n], nil
  1747. }
  1748. func (m *PidsRequest) MarshalTo(dAtA []byte) (int, error) {
  1749. size := m.Size()
  1750. return m.MarshalToSizedBuffer(dAtA[:size])
  1751. }
  1752. func (m *PidsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1753. i := len(dAtA)
  1754. _ = i
  1755. var l int
  1756. _ = l
  1757. if m.XXX_unrecognized != nil {
  1758. i -= len(m.XXX_unrecognized)
  1759. copy(dAtA[i:], m.XXX_unrecognized)
  1760. }
  1761. if len(m.ID) > 0 {
  1762. i -= len(m.ID)
  1763. copy(dAtA[i:], m.ID)
  1764. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  1765. i--
  1766. dAtA[i] = 0xa
  1767. }
  1768. return len(dAtA) - i, nil
  1769. }
  1770. func (m *PidsResponse) Marshal() (dAtA []byte, err error) {
  1771. size := m.Size()
  1772. dAtA = make([]byte, size)
  1773. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1774. if err != nil {
  1775. return nil, err
  1776. }
  1777. return dAtA[:n], nil
  1778. }
  1779. func (m *PidsResponse) MarshalTo(dAtA []byte) (int, error) {
  1780. size := m.Size()
  1781. return m.MarshalToSizedBuffer(dAtA[:size])
  1782. }
  1783. func (m *PidsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1784. i := len(dAtA)
  1785. _ = i
  1786. var l int
  1787. _ = l
  1788. if m.XXX_unrecognized != nil {
  1789. i -= len(m.XXX_unrecognized)
  1790. copy(dAtA[i:], m.XXX_unrecognized)
  1791. }
  1792. if len(m.Processes) > 0 {
  1793. for iNdEx := len(m.Processes) - 1; iNdEx >= 0; iNdEx-- {
  1794. {
  1795. size, err := m.Processes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1796. if err != nil {
  1797. return 0, err
  1798. }
  1799. i -= size
  1800. i = encodeVarintShim(dAtA, i, uint64(size))
  1801. }
  1802. i--
  1803. dAtA[i] = 0xa
  1804. }
  1805. }
  1806. return len(dAtA) - i, nil
  1807. }
  1808. func (m *CheckpointTaskRequest) Marshal() (dAtA []byte, err error) {
  1809. size := m.Size()
  1810. dAtA = make([]byte, size)
  1811. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1812. if err != nil {
  1813. return nil, err
  1814. }
  1815. return dAtA[:n], nil
  1816. }
  1817. func (m *CheckpointTaskRequest) MarshalTo(dAtA []byte) (int, error) {
  1818. size := m.Size()
  1819. return m.MarshalToSizedBuffer(dAtA[:size])
  1820. }
  1821. func (m *CheckpointTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1822. i := len(dAtA)
  1823. _ = i
  1824. var l int
  1825. _ = l
  1826. if m.XXX_unrecognized != nil {
  1827. i -= len(m.XXX_unrecognized)
  1828. copy(dAtA[i:], m.XXX_unrecognized)
  1829. }
  1830. if m.Options != nil {
  1831. {
  1832. size, err := m.Options.MarshalToSizedBuffer(dAtA[:i])
  1833. if err != nil {
  1834. return 0, err
  1835. }
  1836. i -= size
  1837. i = encodeVarintShim(dAtA, i, uint64(size))
  1838. }
  1839. i--
  1840. dAtA[i] = 0x1a
  1841. }
  1842. if len(m.Path) > 0 {
  1843. i -= len(m.Path)
  1844. copy(dAtA[i:], m.Path)
  1845. i = encodeVarintShim(dAtA, i, uint64(len(m.Path)))
  1846. i--
  1847. dAtA[i] = 0x12
  1848. }
  1849. if len(m.ID) > 0 {
  1850. i -= len(m.ID)
  1851. copy(dAtA[i:], m.ID)
  1852. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  1853. i--
  1854. dAtA[i] = 0xa
  1855. }
  1856. return len(dAtA) - i, nil
  1857. }
  1858. func (m *UpdateTaskRequest) Marshal() (dAtA []byte, err error) {
  1859. size := m.Size()
  1860. dAtA = make([]byte, size)
  1861. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1862. if err != nil {
  1863. return nil, err
  1864. }
  1865. return dAtA[:n], nil
  1866. }
  1867. func (m *UpdateTaskRequest) MarshalTo(dAtA []byte) (int, error) {
  1868. size := m.Size()
  1869. return m.MarshalToSizedBuffer(dAtA[:size])
  1870. }
  1871. func (m *UpdateTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1872. i := len(dAtA)
  1873. _ = i
  1874. var l int
  1875. _ = l
  1876. if m.XXX_unrecognized != nil {
  1877. i -= len(m.XXX_unrecognized)
  1878. copy(dAtA[i:], m.XXX_unrecognized)
  1879. }
  1880. if len(m.Annotations) > 0 {
  1881. for k := range m.Annotations {
  1882. v := m.Annotations[k]
  1883. baseI := i
  1884. i -= len(v)
  1885. copy(dAtA[i:], v)
  1886. i = encodeVarintShim(dAtA, i, uint64(len(v)))
  1887. i--
  1888. dAtA[i] = 0x12
  1889. i -= len(k)
  1890. copy(dAtA[i:], k)
  1891. i = encodeVarintShim(dAtA, i, uint64(len(k)))
  1892. i--
  1893. dAtA[i] = 0xa
  1894. i = encodeVarintShim(dAtA, i, uint64(baseI-i))
  1895. i--
  1896. dAtA[i] = 0x1a
  1897. }
  1898. }
  1899. if m.Resources != nil {
  1900. {
  1901. size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i])
  1902. if err != nil {
  1903. return 0, err
  1904. }
  1905. i -= size
  1906. i = encodeVarintShim(dAtA, i, uint64(size))
  1907. }
  1908. i--
  1909. dAtA[i] = 0x12
  1910. }
  1911. if len(m.ID) > 0 {
  1912. i -= len(m.ID)
  1913. copy(dAtA[i:], m.ID)
  1914. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  1915. i--
  1916. dAtA[i] = 0xa
  1917. }
  1918. return len(dAtA) - i, nil
  1919. }
  1920. func (m *StartRequest) Marshal() (dAtA []byte, err error) {
  1921. size := m.Size()
  1922. dAtA = make([]byte, size)
  1923. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1924. if err != nil {
  1925. return nil, err
  1926. }
  1927. return dAtA[:n], nil
  1928. }
  1929. func (m *StartRequest) MarshalTo(dAtA []byte) (int, error) {
  1930. size := m.Size()
  1931. return m.MarshalToSizedBuffer(dAtA[:size])
  1932. }
  1933. func (m *StartRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1934. i := len(dAtA)
  1935. _ = i
  1936. var l int
  1937. _ = l
  1938. if m.XXX_unrecognized != nil {
  1939. i -= len(m.XXX_unrecognized)
  1940. copy(dAtA[i:], m.XXX_unrecognized)
  1941. }
  1942. if len(m.ExecID) > 0 {
  1943. i -= len(m.ExecID)
  1944. copy(dAtA[i:], m.ExecID)
  1945. i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
  1946. i--
  1947. dAtA[i] = 0x12
  1948. }
  1949. if len(m.ID) > 0 {
  1950. i -= len(m.ID)
  1951. copy(dAtA[i:], m.ID)
  1952. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  1953. i--
  1954. dAtA[i] = 0xa
  1955. }
  1956. return len(dAtA) - i, nil
  1957. }
  1958. func (m *StartResponse) Marshal() (dAtA []byte, err error) {
  1959. size := m.Size()
  1960. dAtA = make([]byte, size)
  1961. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1962. if err != nil {
  1963. return nil, err
  1964. }
  1965. return dAtA[:n], nil
  1966. }
  1967. func (m *StartResponse) MarshalTo(dAtA []byte) (int, error) {
  1968. size := m.Size()
  1969. return m.MarshalToSizedBuffer(dAtA[:size])
  1970. }
  1971. func (m *StartResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1972. i := len(dAtA)
  1973. _ = i
  1974. var l int
  1975. _ = l
  1976. if m.XXX_unrecognized != nil {
  1977. i -= len(m.XXX_unrecognized)
  1978. copy(dAtA[i:], m.XXX_unrecognized)
  1979. }
  1980. if m.Pid != 0 {
  1981. i = encodeVarintShim(dAtA, i, uint64(m.Pid))
  1982. i--
  1983. dAtA[i] = 0x8
  1984. }
  1985. return len(dAtA) - i, nil
  1986. }
  1987. func (m *WaitRequest) Marshal() (dAtA []byte, err error) {
  1988. size := m.Size()
  1989. dAtA = make([]byte, size)
  1990. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1991. if err != nil {
  1992. return nil, err
  1993. }
  1994. return dAtA[:n], nil
  1995. }
  1996. func (m *WaitRequest) MarshalTo(dAtA []byte) (int, error) {
  1997. size := m.Size()
  1998. return m.MarshalToSizedBuffer(dAtA[:size])
  1999. }
  2000. func (m *WaitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2001. i := len(dAtA)
  2002. _ = i
  2003. var l int
  2004. _ = l
  2005. if m.XXX_unrecognized != nil {
  2006. i -= len(m.XXX_unrecognized)
  2007. copy(dAtA[i:], m.XXX_unrecognized)
  2008. }
  2009. if len(m.ExecID) > 0 {
  2010. i -= len(m.ExecID)
  2011. copy(dAtA[i:], m.ExecID)
  2012. i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
  2013. i--
  2014. dAtA[i] = 0x12
  2015. }
  2016. if len(m.ID) > 0 {
  2017. i -= len(m.ID)
  2018. copy(dAtA[i:], m.ID)
  2019. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  2020. i--
  2021. dAtA[i] = 0xa
  2022. }
  2023. return len(dAtA) - i, nil
  2024. }
  2025. func (m *WaitResponse) Marshal() (dAtA []byte, err error) {
  2026. size := m.Size()
  2027. dAtA = make([]byte, size)
  2028. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2029. if err != nil {
  2030. return nil, err
  2031. }
  2032. return dAtA[:n], nil
  2033. }
  2034. func (m *WaitResponse) MarshalTo(dAtA []byte) (int, error) {
  2035. size := m.Size()
  2036. return m.MarshalToSizedBuffer(dAtA[:size])
  2037. }
  2038. func (m *WaitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2039. i := len(dAtA)
  2040. _ = i
  2041. var l int
  2042. _ = l
  2043. if m.XXX_unrecognized != nil {
  2044. i -= len(m.XXX_unrecognized)
  2045. copy(dAtA[i:], m.XXX_unrecognized)
  2046. }
  2047. n7, err7 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt):])
  2048. if err7 != nil {
  2049. return 0, err7
  2050. }
  2051. i -= n7
  2052. i = encodeVarintShim(dAtA, i, uint64(n7))
  2053. i--
  2054. dAtA[i] = 0x12
  2055. if m.ExitStatus != 0 {
  2056. i = encodeVarintShim(dAtA, i, uint64(m.ExitStatus))
  2057. i--
  2058. dAtA[i] = 0x8
  2059. }
  2060. return len(dAtA) - i, nil
  2061. }
  2062. func (m *StatsRequest) Marshal() (dAtA []byte, err error) {
  2063. size := m.Size()
  2064. dAtA = make([]byte, size)
  2065. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2066. if err != nil {
  2067. return nil, err
  2068. }
  2069. return dAtA[:n], nil
  2070. }
  2071. func (m *StatsRequest) MarshalTo(dAtA []byte) (int, error) {
  2072. size := m.Size()
  2073. return m.MarshalToSizedBuffer(dAtA[:size])
  2074. }
  2075. func (m *StatsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2076. i := len(dAtA)
  2077. _ = i
  2078. var l int
  2079. _ = l
  2080. if m.XXX_unrecognized != nil {
  2081. i -= len(m.XXX_unrecognized)
  2082. copy(dAtA[i:], m.XXX_unrecognized)
  2083. }
  2084. if len(m.ID) > 0 {
  2085. i -= len(m.ID)
  2086. copy(dAtA[i:], m.ID)
  2087. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  2088. i--
  2089. dAtA[i] = 0xa
  2090. }
  2091. return len(dAtA) - i, nil
  2092. }
  2093. func (m *StatsResponse) Marshal() (dAtA []byte, err error) {
  2094. size := m.Size()
  2095. dAtA = make([]byte, size)
  2096. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2097. if err != nil {
  2098. return nil, err
  2099. }
  2100. return dAtA[:n], nil
  2101. }
  2102. func (m *StatsResponse) MarshalTo(dAtA []byte) (int, error) {
  2103. size := m.Size()
  2104. return m.MarshalToSizedBuffer(dAtA[:size])
  2105. }
  2106. func (m *StatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2107. i := len(dAtA)
  2108. _ = i
  2109. var l int
  2110. _ = l
  2111. if m.XXX_unrecognized != nil {
  2112. i -= len(m.XXX_unrecognized)
  2113. copy(dAtA[i:], m.XXX_unrecognized)
  2114. }
  2115. if m.Stats != nil {
  2116. {
  2117. size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i])
  2118. if err != nil {
  2119. return 0, err
  2120. }
  2121. i -= size
  2122. i = encodeVarintShim(dAtA, i, uint64(size))
  2123. }
  2124. i--
  2125. dAtA[i] = 0xa
  2126. }
  2127. return len(dAtA) - i, nil
  2128. }
  2129. func (m *ConnectRequest) Marshal() (dAtA []byte, err error) {
  2130. size := m.Size()
  2131. dAtA = make([]byte, size)
  2132. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2133. if err != nil {
  2134. return nil, err
  2135. }
  2136. return dAtA[:n], nil
  2137. }
  2138. func (m *ConnectRequest) MarshalTo(dAtA []byte) (int, error) {
  2139. size := m.Size()
  2140. return m.MarshalToSizedBuffer(dAtA[:size])
  2141. }
  2142. func (m *ConnectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2143. i := len(dAtA)
  2144. _ = i
  2145. var l int
  2146. _ = l
  2147. if m.XXX_unrecognized != nil {
  2148. i -= len(m.XXX_unrecognized)
  2149. copy(dAtA[i:], m.XXX_unrecognized)
  2150. }
  2151. if len(m.ID) > 0 {
  2152. i -= len(m.ID)
  2153. copy(dAtA[i:], m.ID)
  2154. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  2155. i--
  2156. dAtA[i] = 0xa
  2157. }
  2158. return len(dAtA) - i, nil
  2159. }
  2160. func (m *ConnectResponse) Marshal() (dAtA []byte, err error) {
  2161. size := m.Size()
  2162. dAtA = make([]byte, size)
  2163. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2164. if err != nil {
  2165. return nil, err
  2166. }
  2167. return dAtA[:n], nil
  2168. }
  2169. func (m *ConnectResponse) MarshalTo(dAtA []byte) (int, error) {
  2170. size := m.Size()
  2171. return m.MarshalToSizedBuffer(dAtA[:size])
  2172. }
  2173. func (m *ConnectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2174. i := len(dAtA)
  2175. _ = i
  2176. var l int
  2177. _ = l
  2178. if m.XXX_unrecognized != nil {
  2179. i -= len(m.XXX_unrecognized)
  2180. copy(dAtA[i:], m.XXX_unrecognized)
  2181. }
  2182. if len(m.Version) > 0 {
  2183. i -= len(m.Version)
  2184. copy(dAtA[i:], m.Version)
  2185. i = encodeVarintShim(dAtA, i, uint64(len(m.Version)))
  2186. i--
  2187. dAtA[i] = 0x1a
  2188. }
  2189. if m.TaskPid != 0 {
  2190. i = encodeVarintShim(dAtA, i, uint64(m.TaskPid))
  2191. i--
  2192. dAtA[i] = 0x10
  2193. }
  2194. if m.ShimPid != 0 {
  2195. i = encodeVarintShim(dAtA, i, uint64(m.ShimPid))
  2196. i--
  2197. dAtA[i] = 0x8
  2198. }
  2199. return len(dAtA) - i, nil
  2200. }
  2201. func (m *ShutdownRequest) Marshal() (dAtA []byte, err error) {
  2202. size := m.Size()
  2203. dAtA = make([]byte, size)
  2204. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2205. if err != nil {
  2206. return nil, err
  2207. }
  2208. return dAtA[:n], nil
  2209. }
  2210. func (m *ShutdownRequest) MarshalTo(dAtA []byte) (int, error) {
  2211. size := m.Size()
  2212. return m.MarshalToSizedBuffer(dAtA[:size])
  2213. }
  2214. func (m *ShutdownRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2215. i := len(dAtA)
  2216. _ = i
  2217. var l int
  2218. _ = l
  2219. if m.XXX_unrecognized != nil {
  2220. i -= len(m.XXX_unrecognized)
  2221. copy(dAtA[i:], m.XXX_unrecognized)
  2222. }
  2223. if m.Now {
  2224. i--
  2225. if m.Now {
  2226. dAtA[i] = 1
  2227. } else {
  2228. dAtA[i] = 0
  2229. }
  2230. i--
  2231. dAtA[i] = 0x10
  2232. }
  2233. if len(m.ID) > 0 {
  2234. i -= len(m.ID)
  2235. copy(dAtA[i:], m.ID)
  2236. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  2237. i--
  2238. dAtA[i] = 0xa
  2239. }
  2240. return len(dAtA) - i, nil
  2241. }
  2242. func (m *PauseRequest) Marshal() (dAtA []byte, err error) {
  2243. size := m.Size()
  2244. dAtA = make([]byte, size)
  2245. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2246. if err != nil {
  2247. return nil, err
  2248. }
  2249. return dAtA[:n], nil
  2250. }
  2251. func (m *PauseRequest) MarshalTo(dAtA []byte) (int, error) {
  2252. size := m.Size()
  2253. return m.MarshalToSizedBuffer(dAtA[:size])
  2254. }
  2255. func (m *PauseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2256. i := len(dAtA)
  2257. _ = i
  2258. var l int
  2259. _ = l
  2260. if m.XXX_unrecognized != nil {
  2261. i -= len(m.XXX_unrecognized)
  2262. copy(dAtA[i:], m.XXX_unrecognized)
  2263. }
  2264. if len(m.ID) > 0 {
  2265. i -= len(m.ID)
  2266. copy(dAtA[i:], m.ID)
  2267. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  2268. i--
  2269. dAtA[i] = 0xa
  2270. }
  2271. return len(dAtA) - i, nil
  2272. }
  2273. func (m *ResumeRequest) Marshal() (dAtA []byte, err error) {
  2274. size := m.Size()
  2275. dAtA = make([]byte, size)
  2276. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2277. if err != nil {
  2278. return nil, err
  2279. }
  2280. return dAtA[:n], nil
  2281. }
  2282. func (m *ResumeRequest) MarshalTo(dAtA []byte) (int, error) {
  2283. size := m.Size()
  2284. return m.MarshalToSizedBuffer(dAtA[:size])
  2285. }
  2286. func (m *ResumeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2287. i := len(dAtA)
  2288. _ = i
  2289. var l int
  2290. _ = l
  2291. if m.XXX_unrecognized != nil {
  2292. i -= len(m.XXX_unrecognized)
  2293. copy(dAtA[i:], m.XXX_unrecognized)
  2294. }
  2295. if len(m.ID) > 0 {
  2296. i -= len(m.ID)
  2297. copy(dAtA[i:], m.ID)
  2298. i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
  2299. i--
  2300. dAtA[i] = 0xa
  2301. }
  2302. return len(dAtA) - i, nil
  2303. }
  2304. func encodeVarintShim(dAtA []byte, offset int, v uint64) int {
  2305. offset -= sovShim(v)
  2306. base := offset
  2307. for v >= 1<<7 {
  2308. dAtA[offset] = uint8(v&0x7f | 0x80)
  2309. v >>= 7
  2310. offset++
  2311. }
  2312. dAtA[offset] = uint8(v)
  2313. return base
  2314. }
  2315. func (m *CreateTaskRequest) Size() (n int) {
  2316. if m == nil {
  2317. return 0
  2318. }
  2319. var l int
  2320. _ = l
  2321. l = len(m.ID)
  2322. if l > 0 {
  2323. n += 1 + l + sovShim(uint64(l))
  2324. }
  2325. l = len(m.Bundle)
  2326. if l > 0 {
  2327. n += 1 + l + sovShim(uint64(l))
  2328. }
  2329. if len(m.Rootfs) > 0 {
  2330. for _, e := range m.Rootfs {
  2331. l = e.Size()
  2332. n += 1 + l + sovShim(uint64(l))
  2333. }
  2334. }
  2335. if m.Terminal {
  2336. n += 2
  2337. }
  2338. l = len(m.Stdin)
  2339. if l > 0 {
  2340. n += 1 + l + sovShim(uint64(l))
  2341. }
  2342. l = len(m.Stdout)
  2343. if l > 0 {
  2344. n += 1 + l + sovShim(uint64(l))
  2345. }
  2346. l = len(m.Stderr)
  2347. if l > 0 {
  2348. n += 1 + l + sovShim(uint64(l))
  2349. }
  2350. l = len(m.Checkpoint)
  2351. if l > 0 {
  2352. n += 1 + l + sovShim(uint64(l))
  2353. }
  2354. l = len(m.ParentCheckpoint)
  2355. if l > 0 {
  2356. n += 1 + l + sovShim(uint64(l))
  2357. }
  2358. if m.Options != nil {
  2359. l = m.Options.Size()
  2360. n += 1 + l + sovShim(uint64(l))
  2361. }
  2362. if m.XXX_unrecognized != nil {
  2363. n += len(m.XXX_unrecognized)
  2364. }
  2365. return n
  2366. }
  2367. func (m *CreateTaskResponse) Size() (n int) {
  2368. if m == nil {
  2369. return 0
  2370. }
  2371. var l int
  2372. _ = l
  2373. if m.Pid != 0 {
  2374. n += 1 + sovShim(uint64(m.Pid))
  2375. }
  2376. if m.XXX_unrecognized != nil {
  2377. n += len(m.XXX_unrecognized)
  2378. }
  2379. return n
  2380. }
  2381. func (m *DeleteRequest) Size() (n int) {
  2382. if m == nil {
  2383. return 0
  2384. }
  2385. var l int
  2386. _ = l
  2387. l = len(m.ID)
  2388. if l > 0 {
  2389. n += 1 + l + sovShim(uint64(l))
  2390. }
  2391. l = len(m.ExecID)
  2392. if l > 0 {
  2393. n += 1 + l + sovShim(uint64(l))
  2394. }
  2395. if m.XXX_unrecognized != nil {
  2396. n += len(m.XXX_unrecognized)
  2397. }
  2398. return n
  2399. }
  2400. func (m *DeleteResponse) Size() (n int) {
  2401. if m == nil {
  2402. return 0
  2403. }
  2404. var l int
  2405. _ = l
  2406. if m.Pid != 0 {
  2407. n += 1 + sovShim(uint64(m.Pid))
  2408. }
  2409. if m.ExitStatus != 0 {
  2410. n += 1 + sovShim(uint64(m.ExitStatus))
  2411. }
  2412. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt)
  2413. n += 1 + l + sovShim(uint64(l))
  2414. if m.XXX_unrecognized != nil {
  2415. n += len(m.XXX_unrecognized)
  2416. }
  2417. return n
  2418. }
  2419. func (m *ExecProcessRequest) Size() (n int) {
  2420. if m == nil {
  2421. return 0
  2422. }
  2423. var l int
  2424. _ = l
  2425. l = len(m.ID)
  2426. if l > 0 {
  2427. n += 1 + l + sovShim(uint64(l))
  2428. }
  2429. l = len(m.ExecID)
  2430. if l > 0 {
  2431. n += 1 + l + sovShim(uint64(l))
  2432. }
  2433. if m.Terminal {
  2434. n += 2
  2435. }
  2436. l = len(m.Stdin)
  2437. if l > 0 {
  2438. n += 1 + l + sovShim(uint64(l))
  2439. }
  2440. l = len(m.Stdout)
  2441. if l > 0 {
  2442. n += 1 + l + sovShim(uint64(l))
  2443. }
  2444. l = len(m.Stderr)
  2445. if l > 0 {
  2446. n += 1 + l + sovShim(uint64(l))
  2447. }
  2448. if m.Spec != nil {
  2449. l = m.Spec.Size()
  2450. n += 1 + l + sovShim(uint64(l))
  2451. }
  2452. if m.XXX_unrecognized != nil {
  2453. n += len(m.XXX_unrecognized)
  2454. }
  2455. return n
  2456. }
  2457. func (m *ExecProcessResponse) Size() (n int) {
  2458. if m == nil {
  2459. return 0
  2460. }
  2461. var l int
  2462. _ = l
  2463. if m.XXX_unrecognized != nil {
  2464. n += len(m.XXX_unrecognized)
  2465. }
  2466. return n
  2467. }
  2468. func (m *ResizePtyRequest) Size() (n int) {
  2469. if m == nil {
  2470. return 0
  2471. }
  2472. var l int
  2473. _ = l
  2474. l = len(m.ID)
  2475. if l > 0 {
  2476. n += 1 + l + sovShim(uint64(l))
  2477. }
  2478. l = len(m.ExecID)
  2479. if l > 0 {
  2480. n += 1 + l + sovShim(uint64(l))
  2481. }
  2482. if m.Width != 0 {
  2483. n += 1 + sovShim(uint64(m.Width))
  2484. }
  2485. if m.Height != 0 {
  2486. n += 1 + sovShim(uint64(m.Height))
  2487. }
  2488. if m.XXX_unrecognized != nil {
  2489. n += len(m.XXX_unrecognized)
  2490. }
  2491. return n
  2492. }
  2493. func (m *StateRequest) Size() (n int) {
  2494. if m == nil {
  2495. return 0
  2496. }
  2497. var l int
  2498. _ = l
  2499. l = len(m.ID)
  2500. if l > 0 {
  2501. n += 1 + l + sovShim(uint64(l))
  2502. }
  2503. l = len(m.ExecID)
  2504. if l > 0 {
  2505. n += 1 + l + sovShim(uint64(l))
  2506. }
  2507. if m.XXX_unrecognized != nil {
  2508. n += len(m.XXX_unrecognized)
  2509. }
  2510. return n
  2511. }
  2512. func (m *StateResponse) Size() (n int) {
  2513. if m == nil {
  2514. return 0
  2515. }
  2516. var l int
  2517. _ = l
  2518. l = len(m.ID)
  2519. if l > 0 {
  2520. n += 1 + l + sovShim(uint64(l))
  2521. }
  2522. l = len(m.Bundle)
  2523. if l > 0 {
  2524. n += 1 + l + sovShim(uint64(l))
  2525. }
  2526. if m.Pid != 0 {
  2527. n += 1 + sovShim(uint64(m.Pid))
  2528. }
  2529. if m.Status != 0 {
  2530. n += 1 + sovShim(uint64(m.Status))
  2531. }
  2532. l = len(m.Stdin)
  2533. if l > 0 {
  2534. n += 1 + l + sovShim(uint64(l))
  2535. }
  2536. l = len(m.Stdout)
  2537. if l > 0 {
  2538. n += 1 + l + sovShim(uint64(l))
  2539. }
  2540. l = len(m.Stderr)
  2541. if l > 0 {
  2542. n += 1 + l + sovShim(uint64(l))
  2543. }
  2544. if m.Terminal {
  2545. n += 2
  2546. }
  2547. if m.ExitStatus != 0 {
  2548. n += 1 + sovShim(uint64(m.ExitStatus))
  2549. }
  2550. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt)
  2551. n += 1 + l + sovShim(uint64(l))
  2552. l = len(m.ExecID)
  2553. if l > 0 {
  2554. n += 1 + l + sovShim(uint64(l))
  2555. }
  2556. if m.XXX_unrecognized != nil {
  2557. n += len(m.XXX_unrecognized)
  2558. }
  2559. return n
  2560. }
  2561. func (m *KillRequest) Size() (n int) {
  2562. if m == nil {
  2563. return 0
  2564. }
  2565. var l int
  2566. _ = l
  2567. l = len(m.ID)
  2568. if l > 0 {
  2569. n += 1 + l + sovShim(uint64(l))
  2570. }
  2571. l = len(m.ExecID)
  2572. if l > 0 {
  2573. n += 1 + l + sovShim(uint64(l))
  2574. }
  2575. if m.Signal != 0 {
  2576. n += 1 + sovShim(uint64(m.Signal))
  2577. }
  2578. if m.All {
  2579. n += 2
  2580. }
  2581. if m.XXX_unrecognized != nil {
  2582. n += len(m.XXX_unrecognized)
  2583. }
  2584. return n
  2585. }
  2586. func (m *CloseIORequest) Size() (n int) {
  2587. if m == nil {
  2588. return 0
  2589. }
  2590. var l int
  2591. _ = l
  2592. l = len(m.ID)
  2593. if l > 0 {
  2594. n += 1 + l + sovShim(uint64(l))
  2595. }
  2596. l = len(m.ExecID)
  2597. if l > 0 {
  2598. n += 1 + l + sovShim(uint64(l))
  2599. }
  2600. if m.Stdin {
  2601. n += 2
  2602. }
  2603. if m.XXX_unrecognized != nil {
  2604. n += len(m.XXX_unrecognized)
  2605. }
  2606. return n
  2607. }
  2608. func (m *PidsRequest) Size() (n int) {
  2609. if m == nil {
  2610. return 0
  2611. }
  2612. var l int
  2613. _ = l
  2614. l = len(m.ID)
  2615. if l > 0 {
  2616. n += 1 + l + sovShim(uint64(l))
  2617. }
  2618. if m.XXX_unrecognized != nil {
  2619. n += len(m.XXX_unrecognized)
  2620. }
  2621. return n
  2622. }
  2623. func (m *PidsResponse) Size() (n int) {
  2624. if m == nil {
  2625. return 0
  2626. }
  2627. var l int
  2628. _ = l
  2629. if len(m.Processes) > 0 {
  2630. for _, e := range m.Processes {
  2631. l = e.Size()
  2632. n += 1 + l + sovShim(uint64(l))
  2633. }
  2634. }
  2635. if m.XXX_unrecognized != nil {
  2636. n += len(m.XXX_unrecognized)
  2637. }
  2638. return n
  2639. }
  2640. func (m *CheckpointTaskRequest) Size() (n int) {
  2641. if m == nil {
  2642. return 0
  2643. }
  2644. var l int
  2645. _ = l
  2646. l = len(m.ID)
  2647. if l > 0 {
  2648. n += 1 + l + sovShim(uint64(l))
  2649. }
  2650. l = len(m.Path)
  2651. if l > 0 {
  2652. n += 1 + l + sovShim(uint64(l))
  2653. }
  2654. if m.Options != nil {
  2655. l = m.Options.Size()
  2656. n += 1 + l + sovShim(uint64(l))
  2657. }
  2658. if m.XXX_unrecognized != nil {
  2659. n += len(m.XXX_unrecognized)
  2660. }
  2661. return n
  2662. }
  2663. func (m *UpdateTaskRequest) Size() (n int) {
  2664. if m == nil {
  2665. return 0
  2666. }
  2667. var l int
  2668. _ = l
  2669. l = len(m.ID)
  2670. if l > 0 {
  2671. n += 1 + l + sovShim(uint64(l))
  2672. }
  2673. if m.Resources != nil {
  2674. l = m.Resources.Size()
  2675. n += 1 + l + sovShim(uint64(l))
  2676. }
  2677. if len(m.Annotations) > 0 {
  2678. for k, v := range m.Annotations {
  2679. _ = k
  2680. _ = v
  2681. mapEntrySize := 1 + len(k) + sovShim(uint64(len(k))) + 1 + len(v) + sovShim(uint64(len(v)))
  2682. n += mapEntrySize + 1 + sovShim(uint64(mapEntrySize))
  2683. }
  2684. }
  2685. if m.XXX_unrecognized != nil {
  2686. n += len(m.XXX_unrecognized)
  2687. }
  2688. return n
  2689. }
  2690. func (m *StartRequest) Size() (n int) {
  2691. if m == nil {
  2692. return 0
  2693. }
  2694. var l int
  2695. _ = l
  2696. l = len(m.ID)
  2697. if l > 0 {
  2698. n += 1 + l + sovShim(uint64(l))
  2699. }
  2700. l = len(m.ExecID)
  2701. if l > 0 {
  2702. n += 1 + l + sovShim(uint64(l))
  2703. }
  2704. if m.XXX_unrecognized != nil {
  2705. n += len(m.XXX_unrecognized)
  2706. }
  2707. return n
  2708. }
  2709. func (m *StartResponse) Size() (n int) {
  2710. if m == nil {
  2711. return 0
  2712. }
  2713. var l int
  2714. _ = l
  2715. if m.Pid != 0 {
  2716. n += 1 + sovShim(uint64(m.Pid))
  2717. }
  2718. if m.XXX_unrecognized != nil {
  2719. n += len(m.XXX_unrecognized)
  2720. }
  2721. return n
  2722. }
  2723. func (m *WaitRequest) Size() (n int) {
  2724. if m == nil {
  2725. return 0
  2726. }
  2727. var l int
  2728. _ = l
  2729. l = len(m.ID)
  2730. if l > 0 {
  2731. n += 1 + l + sovShim(uint64(l))
  2732. }
  2733. l = len(m.ExecID)
  2734. if l > 0 {
  2735. n += 1 + l + sovShim(uint64(l))
  2736. }
  2737. if m.XXX_unrecognized != nil {
  2738. n += len(m.XXX_unrecognized)
  2739. }
  2740. return n
  2741. }
  2742. func (m *WaitResponse) Size() (n int) {
  2743. if m == nil {
  2744. return 0
  2745. }
  2746. var l int
  2747. _ = l
  2748. if m.ExitStatus != 0 {
  2749. n += 1 + sovShim(uint64(m.ExitStatus))
  2750. }
  2751. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt)
  2752. n += 1 + l + sovShim(uint64(l))
  2753. if m.XXX_unrecognized != nil {
  2754. n += len(m.XXX_unrecognized)
  2755. }
  2756. return n
  2757. }
  2758. func (m *StatsRequest) Size() (n int) {
  2759. if m == nil {
  2760. return 0
  2761. }
  2762. var l int
  2763. _ = l
  2764. l = len(m.ID)
  2765. if l > 0 {
  2766. n += 1 + l + sovShim(uint64(l))
  2767. }
  2768. if m.XXX_unrecognized != nil {
  2769. n += len(m.XXX_unrecognized)
  2770. }
  2771. return n
  2772. }
  2773. func (m *StatsResponse) Size() (n int) {
  2774. if m == nil {
  2775. return 0
  2776. }
  2777. var l int
  2778. _ = l
  2779. if m.Stats != nil {
  2780. l = m.Stats.Size()
  2781. n += 1 + l + sovShim(uint64(l))
  2782. }
  2783. if m.XXX_unrecognized != nil {
  2784. n += len(m.XXX_unrecognized)
  2785. }
  2786. return n
  2787. }
  2788. func (m *ConnectRequest) Size() (n int) {
  2789. if m == nil {
  2790. return 0
  2791. }
  2792. var l int
  2793. _ = l
  2794. l = len(m.ID)
  2795. if l > 0 {
  2796. n += 1 + l + sovShim(uint64(l))
  2797. }
  2798. if m.XXX_unrecognized != nil {
  2799. n += len(m.XXX_unrecognized)
  2800. }
  2801. return n
  2802. }
  2803. func (m *ConnectResponse) Size() (n int) {
  2804. if m == nil {
  2805. return 0
  2806. }
  2807. var l int
  2808. _ = l
  2809. if m.ShimPid != 0 {
  2810. n += 1 + sovShim(uint64(m.ShimPid))
  2811. }
  2812. if m.TaskPid != 0 {
  2813. n += 1 + sovShim(uint64(m.TaskPid))
  2814. }
  2815. l = len(m.Version)
  2816. if l > 0 {
  2817. n += 1 + l + sovShim(uint64(l))
  2818. }
  2819. if m.XXX_unrecognized != nil {
  2820. n += len(m.XXX_unrecognized)
  2821. }
  2822. return n
  2823. }
  2824. func (m *ShutdownRequest) Size() (n int) {
  2825. if m == nil {
  2826. return 0
  2827. }
  2828. var l int
  2829. _ = l
  2830. l = len(m.ID)
  2831. if l > 0 {
  2832. n += 1 + l + sovShim(uint64(l))
  2833. }
  2834. if m.Now {
  2835. n += 2
  2836. }
  2837. if m.XXX_unrecognized != nil {
  2838. n += len(m.XXX_unrecognized)
  2839. }
  2840. return n
  2841. }
  2842. func (m *PauseRequest) Size() (n int) {
  2843. if m == nil {
  2844. return 0
  2845. }
  2846. var l int
  2847. _ = l
  2848. l = len(m.ID)
  2849. if l > 0 {
  2850. n += 1 + l + sovShim(uint64(l))
  2851. }
  2852. if m.XXX_unrecognized != nil {
  2853. n += len(m.XXX_unrecognized)
  2854. }
  2855. return n
  2856. }
  2857. func (m *ResumeRequest) Size() (n int) {
  2858. if m == nil {
  2859. return 0
  2860. }
  2861. var l int
  2862. _ = l
  2863. l = len(m.ID)
  2864. if l > 0 {
  2865. n += 1 + l + sovShim(uint64(l))
  2866. }
  2867. if m.XXX_unrecognized != nil {
  2868. n += len(m.XXX_unrecognized)
  2869. }
  2870. return n
  2871. }
  2872. func sovShim(x uint64) (n int) {
  2873. return (math_bits.Len64(x|1) + 6) / 7
  2874. }
  2875. func sozShim(x uint64) (n int) {
  2876. return sovShim(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2877. }
  2878. func (this *CreateTaskRequest) String() string {
  2879. if this == nil {
  2880. return "nil"
  2881. }
  2882. repeatedStringForRootfs := "[]*Mount{"
  2883. for _, f := range this.Rootfs {
  2884. repeatedStringForRootfs += strings.Replace(fmt.Sprintf("%v", f), "Mount", "types.Mount", 1) + ","
  2885. }
  2886. repeatedStringForRootfs += "}"
  2887. s := strings.Join([]string{`&CreateTaskRequest{`,
  2888. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  2889. `Bundle:` + fmt.Sprintf("%v", this.Bundle) + `,`,
  2890. `Rootfs:` + repeatedStringForRootfs + `,`,
  2891. `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`,
  2892. `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`,
  2893. `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`,
  2894. `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`,
  2895. `Checkpoint:` + fmt.Sprintf("%v", this.Checkpoint) + `,`,
  2896. `ParentCheckpoint:` + fmt.Sprintf("%v", this.ParentCheckpoint) + `,`,
  2897. `Options:` + strings.Replace(fmt.Sprintf("%v", this.Options), "Any", "types1.Any", 1) + `,`,
  2898. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2899. `}`,
  2900. }, "")
  2901. return s
  2902. }
  2903. func (this *CreateTaskResponse) String() string {
  2904. if this == nil {
  2905. return "nil"
  2906. }
  2907. s := strings.Join([]string{`&CreateTaskResponse{`,
  2908. `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
  2909. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2910. `}`,
  2911. }, "")
  2912. return s
  2913. }
  2914. func (this *DeleteRequest) String() string {
  2915. if this == nil {
  2916. return "nil"
  2917. }
  2918. s := strings.Join([]string{`&DeleteRequest{`,
  2919. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  2920. `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
  2921. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2922. `}`,
  2923. }, "")
  2924. return s
  2925. }
  2926. func (this *DeleteResponse) String() string {
  2927. if this == nil {
  2928. return "nil"
  2929. }
  2930. s := strings.Join([]string{`&DeleteResponse{`,
  2931. `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
  2932. `ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`,
  2933. `ExitedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ExitedAt), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`,
  2934. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2935. `}`,
  2936. }, "")
  2937. return s
  2938. }
  2939. func (this *ExecProcessRequest) String() string {
  2940. if this == nil {
  2941. return "nil"
  2942. }
  2943. s := strings.Join([]string{`&ExecProcessRequest{`,
  2944. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  2945. `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
  2946. `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`,
  2947. `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`,
  2948. `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`,
  2949. `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`,
  2950. `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "Any", "types1.Any", 1) + `,`,
  2951. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2952. `}`,
  2953. }, "")
  2954. return s
  2955. }
  2956. func (this *ExecProcessResponse) String() string {
  2957. if this == nil {
  2958. return "nil"
  2959. }
  2960. s := strings.Join([]string{`&ExecProcessResponse{`,
  2961. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2962. `}`,
  2963. }, "")
  2964. return s
  2965. }
  2966. func (this *ResizePtyRequest) String() string {
  2967. if this == nil {
  2968. return "nil"
  2969. }
  2970. s := strings.Join([]string{`&ResizePtyRequest{`,
  2971. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  2972. `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
  2973. `Width:` + fmt.Sprintf("%v", this.Width) + `,`,
  2974. `Height:` + fmt.Sprintf("%v", this.Height) + `,`,
  2975. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2976. `}`,
  2977. }, "")
  2978. return s
  2979. }
  2980. func (this *StateRequest) String() string {
  2981. if this == nil {
  2982. return "nil"
  2983. }
  2984. s := strings.Join([]string{`&StateRequest{`,
  2985. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  2986. `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
  2987. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2988. `}`,
  2989. }, "")
  2990. return s
  2991. }
  2992. func (this *StateResponse) String() string {
  2993. if this == nil {
  2994. return "nil"
  2995. }
  2996. s := strings.Join([]string{`&StateResponse{`,
  2997. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  2998. `Bundle:` + fmt.Sprintf("%v", this.Bundle) + `,`,
  2999. `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
  3000. `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
  3001. `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`,
  3002. `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`,
  3003. `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`,
  3004. `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`,
  3005. `ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`,
  3006. `ExitedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ExitedAt), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`,
  3007. `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
  3008. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3009. `}`,
  3010. }, "")
  3011. return s
  3012. }
  3013. func (this *KillRequest) String() string {
  3014. if this == nil {
  3015. return "nil"
  3016. }
  3017. s := strings.Join([]string{`&KillRequest{`,
  3018. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  3019. `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
  3020. `Signal:` + fmt.Sprintf("%v", this.Signal) + `,`,
  3021. `All:` + fmt.Sprintf("%v", this.All) + `,`,
  3022. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3023. `}`,
  3024. }, "")
  3025. return s
  3026. }
  3027. func (this *CloseIORequest) String() string {
  3028. if this == nil {
  3029. return "nil"
  3030. }
  3031. s := strings.Join([]string{`&CloseIORequest{`,
  3032. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  3033. `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
  3034. `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`,
  3035. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3036. `}`,
  3037. }, "")
  3038. return s
  3039. }
  3040. func (this *PidsRequest) String() string {
  3041. if this == nil {
  3042. return "nil"
  3043. }
  3044. s := strings.Join([]string{`&PidsRequest{`,
  3045. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  3046. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3047. `}`,
  3048. }, "")
  3049. return s
  3050. }
  3051. func (this *PidsResponse) String() string {
  3052. if this == nil {
  3053. return "nil"
  3054. }
  3055. repeatedStringForProcesses := "[]*ProcessInfo{"
  3056. for _, f := range this.Processes {
  3057. repeatedStringForProcesses += strings.Replace(fmt.Sprintf("%v", f), "ProcessInfo", "task.ProcessInfo", 1) + ","
  3058. }
  3059. repeatedStringForProcesses += "}"
  3060. s := strings.Join([]string{`&PidsResponse{`,
  3061. `Processes:` + repeatedStringForProcesses + `,`,
  3062. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3063. `}`,
  3064. }, "")
  3065. return s
  3066. }
  3067. func (this *CheckpointTaskRequest) String() string {
  3068. if this == nil {
  3069. return "nil"
  3070. }
  3071. s := strings.Join([]string{`&CheckpointTaskRequest{`,
  3072. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  3073. `Path:` + fmt.Sprintf("%v", this.Path) + `,`,
  3074. `Options:` + strings.Replace(fmt.Sprintf("%v", this.Options), "Any", "types1.Any", 1) + `,`,
  3075. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3076. `}`,
  3077. }, "")
  3078. return s
  3079. }
  3080. func (this *UpdateTaskRequest) String() string {
  3081. if this == nil {
  3082. return "nil"
  3083. }
  3084. keysForAnnotations := make([]string, 0, len(this.Annotations))
  3085. for k, _ := range this.Annotations {
  3086. keysForAnnotations = append(keysForAnnotations, k)
  3087. }
  3088. github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
  3089. mapStringForAnnotations := "map[string]string{"
  3090. for _, k := range keysForAnnotations {
  3091. mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
  3092. }
  3093. mapStringForAnnotations += "}"
  3094. s := strings.Join([]string{`&UpdateTaskRequest{`,
  3095. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  3096. `Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "Any", "types1.Any", 1) + `,`,
  3097. `Annotations:` + mapStringForAnnotations + `,`,
  3098. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3099. `}`,
  3100. }, "")
  3101. return s
  3102. }
  3103. func (this *StartRequest) String() string {
  3104. if this == nil {
  3105. return "nil"
  3106. }
  3107. s := strings.Join([]string{`&StartRequest{`,
  3108. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  3109. `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
  3110. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3111. `}`,
  3112. }, "")
  3113. return s
  3114. }
  3115. func (this *StartResponse) String() string {
  3116. if this == nil {
  3117. return "nil"
  3118. }
  3119. s := strings.Join([]string{`&StartResponse{`,
  3120. `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
  3121. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3122. `}`,
  3123. }, "")
  3124. return s
  3125. }
  3126. func (this *WaitRequest) String() string {
  3127. if this == nil {
  3128. return "nil"
  3129. }
  3130. s := strings.Join([]string{`&WaitRequest{`,
  3131. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  3132. `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
  3133. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3134. `}`,
  3135. }, "")
  3136. return s
  3137. }
  3138. func (this *WaitResponse) String() string {
  3139. if this == nil {
  3140. return "nil"
  3141. }
  3142. s := strings.Join([]string{`&WaitResponse{`,
  3143. `ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`,
  3144. `ExitedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ExitedAt), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`,
  3145. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3146. `}`,
  3147. }, "")
  3148. return s
  3149. }
  3150. func (this *StatsRequest) String() string {
  3151. if this == nil {
  3152. return "nil"
  3153. }
  3154. s := strings.Join([]string{`&StatsRequest{`,
  3155. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  3156. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3157. `}`,
  3158. }, "")
  3159. return s
  3160. }
  3161. func (this *StatsResponse) String() string {
  3162. if this == nil {
  3163. return "nil"
  3164. }
  3165. s := strings.Join([]string{`&StatsResponse{`,
  3166. `Stats:` + strings.Replace(fmt.Sprintf("%v", this.Stats), "Any", "types1.Any", 1) + `,`,
  3167. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3168. `}`,
  3169. }, "")
  3170. return s
  3171. }
  3172. func (this *ConnectRequest) String() string {
  3173. if this == nil {
  3174. return "nil"
  3175. }
  3176. s := strings.Join([]string{`&ConnectRequest{`,
  3177. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  3178. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3179. `}`,
  3180. }, "")
  3181. return s
  3182. }
  3183. func (this *ConnectResponse) String() string {
  3184. if this == nil {
  3185. return "nil"
  3186. }
  3187. s := strings.Join([]string{`&ConnectResponse{`,
  3188. `ShimPid:` + fmt.Sprintf("%v", this.ShimPid) + `,`,
  3189. `TaskPid:` + fmt.Sprintf("%v", this.TaskPid) + `,`,
  3190. `Version:` + fmt.Sprintf("%v", this.Version) + `,`,
  3191. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3192. `}`,
  3193. }, "")
  3194. return s
  3195. }
  3196. func (this *ShutdownRequest) String() string {
  3197. if this == nil {
  3198. return "nil"
  3199. }
  3200. s := strings.Join([]string{`&ShutdownRequest{`,
  3201. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  3202. `Now:` + fmt.Sprintf("%v", this.Now) + `,`,
  3203. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3204. `}`,
  3205. }, "")
  3206. return s
  3207. }
  3208. func (this *PauseRequest) String() string {
  3209. if this == nil {
  3210. return "nil"
  3211. }
  3212. s := strings.Join([]string{`&PauseRequest{`,
  3213. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  3214. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3215. `}`,
  3216. }, "")
  3217. return s
  3218. }
  3219. func (this *ResumeRequest) String() string {
  3220. if this == nil {
  3221. return "nil"
  3222. }
  3223. s := strings.Join([]string{`&ResumeRequest{`,
  3224. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  3225. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3226. `}`,
  3227. }, "")
  3228. return s
  3229. }
  3230. func valueToStringShim(v interface{}) string {
  3231. rv := reflect.ValueOf(v)
  3232. if rv.IsNil() {
  3233. return "nil"
  3234. }
  3235. pv := reflect.Indirect(rv).Interface()
  3236. return fmt.Sprintf("*%v", pv)
  3237. }
  3238. type TaskService interface {
  3239. State(ctx context.Context, req *StateRequest) (*StateResponse, error)
  3240. Create(ctx context.Context, req *CreateTaskRequest) (*CreateTaskResponse, error)
  3241. Start(ctx context.Context, req *StartRequest) (*StartResponse, error)
  3242. Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
  3243. Pids(ctx context.Context, req *PidsRequest) (*PidsResponse, error)
  3244. Pause(ctx context.Context, req *PauseRequest) (*types1.Empty, error)
  3245. Resume(ctx context.Context, req *ResumeRequest) (*types1.Empty, error)
  3246. Checkpoint(ctx context.Context, req *CheckpointTaskRequest) (*types1.Empty, error)
  3247. Kill(ctx context.Context, req *KillRequest) (*types1.Empty, error)
  3248. Exec(ctx context.Context, req *ExecProcessRequest) (*types1.Empty, error)
  3249. ResizePty(ctx context.Context, req *ResizePtyRequest) (*types1.Empty, error)
  3250. CloseIO(ctx context.Context, req *CloseIORequest) (*types1.Empty, error)
  3251. Update(ctx context.Context, req *UpdateTaskRequest) (*types1.Empty, error)
  3252. Wait(ctx context.Context, req *WaitRequest) (*WaitResponse, error)
  3253. Stats(ctx context.Context, req *StatsRequest) (*StatsResponse, error)
  3254. Connect(ctx context.Context, req *ConnectRequest) (*ConnectResponse, error)
  3255. Shutdown(ctx context.Context, req *ShutdownRequest) (*types1.Empty, error)
  3256. }
  3257. func RegisterTaskService(srv *github_com_containerd_ttrpc.Server, svc TaskService) {
  3258. srv.Register("containerd.task.v2.Task", map[string]github_com_containerd_ttrpc.Method{
  3259. "State": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3260. var req StateRequest
  3261. if err := unmarshal(&req); err != nil {
  3262. return nil, err
  3263. }
  3264. return svc.State(ctx, &req)
  3265. },
  3266. "Create": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3267. var req CreateTaskRequest
  3268. if err := unmarshal(&req); err != nil {
  3269. return nil, err
  3270. }
  3271. return svc.Create(ctx, &req)
  3272. },
  3273. "Start": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3274. var req StartRequest
  3275. if err := unmarshal(&req); err != nil {
  3276. return nil, err
  3277. }
  3278. return svc.Start(ctx, &req)
  3279. },
  3280. "Delete": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3281. var req DeleteRequest
  3282. if err := unmarshal(&req); err != nil {
  3283. return nil, err
  3284. }
  3285. return svc.Delete(ctx, &req)
  3286. },
  3287. "Pids": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3288. var req PidsRequest
  3289. if err := unmarshal(&req); err != nil {
  3290. return nil, err
  3291. }
  3292. return svc.Pids(ctx, &req)
  3293. },
  3294. "Pause": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3295. var req PauseRequest
  3296. if err := unmarshal(&req); err != nil {
  3297. return nil, err
  3298. }
  3299. return svc.Pause(ctx, &req)
  3300. },
  3301. "Resume": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3302. var req ResumeRequest
  3303. if err := unmarshal(&req); err != nil {
  3304. return nil, err
  3305. }
  3306. return svc.Resume(ctx, &req)
  3307. },
  3308. "Checkpoint": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3309. var req CheckpointTaskRequest
  3310. if err := unmarshal(&req); err != nil {
  3311. return nil, err
  3312. }
  3313. return svc.Checkpoint(ctx, &req)
  3314. },
  3315. "Kill": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3316. var req KillRequest
  3317. if err := unmarshal(&req); err != nil {
  3318. return nil, err
  3319. }
  3320. return svc.Kill(ctx, &req)
  3321. },
  3322. "Exec": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3323. var req ExecProcessRequest
  3324. if err := unmarshal(&req); err != nil {
  3325. return nil, err
  3326. }
  3327. return svc.Exec(ctx, &req)
  3328. },
  3329. "ResizePty": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3330. var req ResizePtyRequest
  3331. if err := unmarshal(&req); err != nil {
  3332. return nil, err
  3333. }
  3334. return svc.ResizePty(ctx, &req)
  3335. },
  3336. "CloseIO": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3337. var req CloseIORequest
  3338. if err := unmarshal(&req); err != nil {
  3339. return nil, err
  3340. }
  3341. return svc.CloseIO(ctx, &req)
  3342. },
  3343. "Update": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3344. var req UpdateTaskRequest
  3345. if err := unmarshal(&req); err != nil {
  3346. return nil, err
  3347. }
  3348. return svc.Update(ctx, &req)
  3349. },
  3350. "Wait": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3351. var req WaitRequest
  3352. if err := unmarshal(&req); err != nil {
  3353. return nil, err
  3354. }
  3355. return svc.Wait(ctx, &req)
  3356. },
  3357. "Stats": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3358. var req StatsRequest
  3359. if err := unmarshal(&req); err != nil {
  3360. return nil, err
  3361. }
  3362. return svc.Stats(ctx, &req)
  3363. },
  3364. "Connect": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3365. var req ConnectRequest
  3366. if err := unmarshal(&req); err != nil {
  3367. return nil, err
  3368. }
  3369. return svc.Connect(ctx, &req)
  3370. },
  3371. "Shutdown": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
  3372. var req ShutdownRequest
  3373. if err := unmarshal(&req); err != nil {
  3374. return nil, err
  3375. }
  3376. return svc.Shutdown(ctx, &req)
  3377. },
  3378. })
  3379. }
  3380. type taskClient struct {
  3381. client *github_com_containerd_ttrpc.Client
  3382. }
  3383. func NewTaskClient(client *github_com_containerd_ttrpc.Client) TaskService {
  3384. return &taskClient{
  3385. client: client,
  3386. }
  3387. }
  3388. func (c *taskClient) State(ctx context.Context, req *StateRequest) (*StateResponse, error) {
  3389. var resp StateResponse
  3390. if err := c.client.Call(ctx, "containerd.task.v2.Task", "State", req, &resp); err != nil {
  3391. return nil, err
  3392. }
  3393. return &resp, nil
  3394. }
  3395. func (c *taskClient) Create(ctx context.Context, req *CreateTaskRequest) (*CreateTaskResponse, error) {
  3396. var resp CreateTaskResponse
  3397. if err := c.client.Call(ctx, "containerd.task.v2.Task", "Create", req, &resp); err != nil {
  3398. return nil, err
  3399. }
  3400. return &resp, nil
  3401. }
  3402. func (c *taskClient) Start(ctx context.Context, req *StartRequest) (*StartResponse, error) {
  3403. var resp StartResponse
  3404. if err := c.client.Call(ctx, "containerd.task.v2.Task", "Start", req, &resp); err != nil {
  3405. return nil, err
  3406. }
  3407. return &resp, nil
  3408. }
  3409. func (c *taskClient) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) {
  3410. var resp DeleteResponse
  3411. if err := c.client.Call(ctx, "containerd.task.v2.Task", "Delete", req, &resp); err != nil {
  3412. return nil, err
  3413. }
  3414. return &resp, nil
  3415. }
  3416. func (c *taskClient) Pids(ctx context.Context, req *PidsRequest) (*PidsResponse, error) {
  3417. var resp PidsResponse
  3418. if err := c.client.Call(ctx, "containerd.task.v2.Task", "Pids", req, &resp); err != nil {
  3419. return nil, err
  3420. }
  3421. return &resp, nil
  3422. }
  3423. func (c *taskClient) Pause(ctx context.Context, req *PauseRequest) (*types1.Empty, error) {
  3424. var resp types1.Empty
  3425. if err := c.client.Call(ctx, "containerd.task.v2.Task", "Pause", req, &resp); err != nil {
  3426. return nil, err
  3427. }
  3428. return &resp, nil
  3429. }
  3430. func (c *taskClient) Resume(ctx context.Context, req *ResumeRequest) (*types1.Empty, error) {
  3431. var resp types1.Empty
  3432. if err := c.client.Call(ctx, "containerd.task.v2.Task", "Resume", req, &resp); err != nil {
  3433. return nil, err
  3434. }
  3435. return &resp, nil
  3436. }
  3437. func (c *taskClient) Checkpoint(ctx context.Context, req *CheckpointTaskRequest) (*types1.Empty, error) {
  3438. var resp types1.Empty
  3439. if err := c.client.Call(ctx, "containerd.task.v2.Task", "Checkpoint", req, &resp); err != nil {
  3440. return nil, err
  3441. }
  3442. return &resp, nil
  3443. }
  3444. func (c *taskClient) Kill(ctx context.Context, req *KillRequest) (*types1.Empty, error) {
  3445. var resp types1.Empty
  3446. if err := c.client.Call(ctx, "containerd.task.v2.Task", "Kill", req, &resp); err != nil {
  3447. return nil, err
  3448. }
  3449. return &resp, nil
  3450. }
  3451. func (c *taskClient) Exec(ctx context.Context, req *ExecProcessRequest) (*types1.Empty, error) {
  3452. var resp types1.Empty
  3453. if err := c.client.Call(ctx, "containerd.task.v2.Task", "Exec", req, &resp); err != nil {
  3454. return nil, err
  3455. }
  3456. return &resp, nil
  3457. }
  3458. func (c *taskClient) ResizePty(ctx context.Context, req *ResizePtyRequest) (*types1.Empty, error) {
  3459. var resp types1.Empty
  3460. if err := c.client.Call(ctx, "containerd.task.v2.Task", "ResizePty", req, &resp); err != nil {
  3461. return nil, err
  3462. }
  3463. return &resp, nil
  3464. }
  3465. func (c *taskClient) CloseIO(ctx context.Context, req *CloseIORequest) (*types1.Empty, error) {
  3466. var resp types1.Empty
  3467. if err := c.client.Call(ctx, "containerd.task.v2.Task", "CloseIO", req, &resp); err != nil {
  3468. return nil, err
  3469. }
  3470. return &resp, nil
  3471. }
  3472. func (c *taskClient) Update(ctx context.Context, req *UpdateTaskRequest) (*types1.Empty, error) {
  3473. var resp types1.Empty
  3474. if err := c.client.Call(ctx, "containerd.task.v2.Task", "Update", req, &resp); err != nil {
  3475. return nil, err
  3476. }
  3477. return &resp, nil
  3478. }
  3479. func (c *taskClient) Wait(ctx context.Context, req *WaitRequest) (*WaitResponse, error) {
  3480. var resp WaitResponse
  3481. if err := c.client.Call(ctx, "containerd.task.v2.Task", "Wait", req, &resp); err != nil {
  3482. return nil, err
  3483. }
  3484. return &resp, nil
  3485. }
  3486. func (c *taskClient) Stats(ctx context.Context, req *StatsRequest) (*StatsResponse, error) {
  3487. var resp StatsResponse
  3488. if err := c.client.Call(ctx, "containerd.task.v2.Task", "Stats", req, &resp); err != nil {
  3489. return nil, err
  3490. }
  3491. return &resp, nil
  3492. }
  3493. func (c *taskClient) Connect(ctx context.Context, req *ConnectRequest) (*ConnectResponse, error) {
  3494. var resp ConnectResponse
  3495. if err := c.client.Call(ctx, "containerd.task.v2.Task", "Connect", req, &resp); err != nil {
  3496. return nil, err
  3497. }
  3498. return &resp, nil
  3499. }
  3500. func (c *taskClient) Shutdown(ctx context.Context, req *ShutdownRequest) (*types1.Empty, error) {
  3501. var resp types1.Empty
  3502. if err := c.client.Call(ctx, "containerd.task.v2.Task", "Shutdown", req, &resp); err != nil {
  3503. return nil, err
  3504. }
  3505. return &resp, nil
  3506. }
  3507. func (m *CreateTaskRequest) Unmarshal(dAtA []byte) error {
  3508. l := len(dAtA)
  3509. iNdEx := 0
  3510. for iNdEx < l {
  3511. preIndex := iNdEx
  3512. var wire uint64
  3513. for shift := uint(0); ; shift += 7 {
  3514. if shift >= 64 {
  3515. return ErrIntOverflowShim
  3516. }
  3517. if iNdEx >= l {
  3518. return io.ErrUnexpectedEOF
  3519. }
  3520. b := dAtA[iNdEx]
  3521. iNdEx++
  3522. wire |= uint64(b&0x7F) << shift
  3523. if b < 0x80 {
  3524. break
  3525. }
  3526. }
  3527. fieldNum := int32(wire >> 3)
  3528. wireType := int(wire & 0x7)
  3529. if wireType == 4 {
  3530. return fmt.Errorf("proto: CreateTaskRequest: wiretype end group for non-group")
  3531. }
  3532. if fieldNum <= 0 {
  3533. return fmt.Errorf("proto: CreateTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3534. }
  3535. switch fieldNum {
  3536. case 1:
  3537. if wireType != 2 {
  3538. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  3539. }
  3540. var stringLen uint64
  3541. for shift := uint(0); ; shift += 7 {
  3542. if shift >= 64 {
  3543. return ErrIntOverflowShim
  3544. }
  3545. if iNdEx >= l {
  3546. return io.ErrUnexpectedEOF
  3547. }
  3548. b := dAtA[iNdEx]
  3549. iNdEx++
  3550. stringLen |= uint64(b&0x7F) << shift
  3551. if b < 0x80 {
  3552. break
  3553. }
  3554. }
  3555. intStringLen := int(stringLen)
  3556. if intStringLen < 0 {
  3557. return ErrInvalidLengthShim
  3558. }
  3559. postIndex := iNdEx + intStringLen
  3560. if postIndex < 0 {
  3561. return ErrInvalidLengthShim
  3562. }
  3563. if postIndex > l {
  3564. return io.ErrUnexpectedEOF
  3565. }
  3566. m.ID = string(dAtA[iNdEx:postIndex])
  3567. iNdEx = postIndex
  3568. case 2:
  3569. if wireType != 2 {
  3570. return fmt.Errorf("proto: wrong wireType = %d for field Bundle", wireType)
  3571. }
  3572. var stringLen uint64
  3573. for shift := uint(0); ; shift += 7 {
  3574. if shift >= 64 {
  3575. return ErrIntOverflowShim
  3576. }
  3577. if iNdEx >= l {
  3578. return io.ErrUnexpectedEOF
  3579. }
  3580. b := dAtA[iNdEx]
  3581. iNdEx++
  3582. stringLen |= uint64(b&0x7F) << shift
  3583. if b < 0x80 {
  3584. break
  3585. }
  3586. }
  3587. intStringLen := int(stringLen)
  3588. if intStringLen < 0 {
  3589. return ErrInvalidLengthShim
  3590. }
  3591. postIndex := iNdEx + intStringLen
  3592. if postIndex < 0 {
  3593. return ErrInvalidLengthShim
  3594. }
  3595. if postIndex > l {
  3596. return io.ErrUnexpectedEOF
  3597. }
  3598. m.Bundle = string(dAtA[iNdEx:postIndex])
  3599. iNdEx = postIndex
  3600. case 3:
  3601. if wireType != 2 {
  3602. return fmt.Errorf("proto: wrong wireType = %d for field Rootfs", wireType)
  3603. }
  3604. var msglen int
  3605. for shift := uint(0); ; shift += 7 {
  3606. if shift >= 64 {
  3607. return ErrIntOverflowShim
  3608. }
  3609. if iNdEx >= l {
  3610. return io.ErrUnexpectedEOF
  3611. }
  3612. b := dAtA[iNdEx]
  3613. iNdEx++
  3614. msglen |= int(b&0x7F) << shift
  3615. if b < 0x80 {
  3616. break
  3617. }
  3618. }
  3619. if msglen < 0 {
  3620. return ErrInvalidLengthShim
  3621. }
  3622. postIndex := iNdEx + msglen
  3623. if postIndex < 0 {
  3624. return ErrInvalidLengthShim
  3625. }
  3626. if postIndex > l {
  3627. return io.ErrUnexpectedEOF
  3628. }
  3629. m.Rootfs = append(m.Rootfs, &types.Mount{})
  3630. if err := m.Rootfs[len(m.Rootfs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3631. return err
  3632. }
  3633. iNdEx = postIndex
  3634. case 4:
  3635. if wireType != 0 {
  3636. return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType)
  3637. }
  3638. var v int
  3639. for shift := uint(0); ; shift += 7 {
  3640. if shift >= 64 {
  3641. return ErrIntOverflowShim
  3642. }
  3643. if iNdEx >= l {
  3644. return io.ErrUnexpectedEOF
  3645. }
  3646. b := dAtA[iNdEx]
  3647. iNdEx++
  3648. v |= int(b&0x7F) << shift
  3649. if b < 0x80 {
  3650. break
  3651. }
  3652. }
  3653. m.Terminal = bool(v != 0)
  3654. case 5:
  3655. if wireType != 2 {
  3656. return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType)
  3657. }
  3658. var stringLen uint64
  3659. for shift := uint(0); ; shift += 7 {
  3660. if shift >= 64 {
  3661. return ErrIntOverflowShim
  3662. }
  3663. if iNdEx >= l {
  3664. return io.ErrUnexpectedEOF
  3665. }
  3666. b := dAtA[iNdEx]
  3667. iNdEx++
  3668. stringLen |= uint64(b&0x7F) << shift
  3669. if b < 0x80 {
  3670. break
  3671. }
  3672. }
  3673. intStringLen := int(stringLen)
  3674. if intStringLen < 0 {
  3675. return ErrInvalidLengthShim
  3676. }
  3677. postIndex := iNdEx + intStringLen
  3678. if postIndex < 0 {
  3679. return ErrInvalidLengthShim
  3680. }
  3681. if postIndex > l {
  3682. return io.ErrUnexpectedEOF
  3683. }
  3684. m.Stdin = string(dAtA[iNdEx:postIndex])
  3685. iNdEx = postIndex
  3686. case 6:
  3687. if wireType != 2 {
  3688. return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType)
  3689. }
  3690. var stringLen uint64
  3691. for shift := uint(0); ; shift += 7 {
  3692. if shift >= 64 {
  3693. return ErrIntOverflowShim
  3694. }
  3695. if iNdEx >= l {
  3696. return io.ErrUnexpectedEOF
  3697. }
  3698. b := dAtA[iNdEx]
  3699. iNdEx++
  3700. stringLen |= uint64(b&0x7F) << shift
  3701. if b < 0x80 {
  3702. break
  3703. }
  3704. }
  3705. intStringLen := int(stringLen)
  3706. if intStringLen < 0 {
  3707. return ErrInvalidLengthShim
  3708. }
  3709. postIndex := iNdEx + intStringLen
  3710. if postIndex < 0 {
  3711. return ErrInvalidLengthShim
  3712. }
  3713. if postIndex > l {
  3714. return io.ErrUnexpectedEOF
  3715. }
  3716. m.Stdout = string(dAtA[iNdEx:postIndex])
  3717. iNdEx = postIndex
  3718. case 7:
  3719. if wireType != 2 {
  3720. return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType)
  3721. }
  3722. var stringLen uint64
  3723. for shift := uint(0); ; shift += 7 {
  3724. if shift >= 64 {
  3725. return ErrIntOverflowShim
  3726. }
  3727. if iNdEx >= l {
  3728. return io.ErrUnexpectedEOF
  3729. }
  3730. b := dAtA[iNdEx]
  3731. iNdEx++
  3732. stringLen |= uint64(b&0x7F) << shift
  3733. if b < 0x80 {
  3734. break
  3735. }
  3736. }
  3737. intStringLen := int(stringLen)
  3738. if intStringLen < 0 {
  3739. return ErrInvalidLengthShim
  3740. }
  3741. postIndex := iNdEx + intStringLen
  3742. if postIndex < 0 {
  3743. return ErrInvalidLengthShim
  3744. }
  3745. if postIndex > l {
  3746. return io.ErrUnexpectedEOF
  3747. }
  3748. m.Stderr = string(dAtA[iNdEx:postIndex])
  3749. iNdEx = postIndex
  3750. case 8:
  3751. if wireType != 2 {
  3752. return fmt.Errorf("proto: wrong wireType = %d for field Checkpoint", wireType)
  3753. }
  3754. var stringLen uint64
  3755. for shift := uint(0); ; shift += 7 {
  3756. if shift >= 64 {
  3757. return ErrIntOverflowShim
  3758. }
  3759. if iNdEx >= l {
  3760. return io.ErrUnexpectedEOF
  3761. }
  3762. b := dAtA[iNdEx]
  3763. iNdEx++
  3764. stringLen |= uint64(b&0x7F) << shift
  3765. if b < 0x80 {
  3766. break
  3767. }
  3768. }
  3769. intStringLen := int(stringLen)
  3770. if intStringLen < 0 {
  3771. return ErrInvalidLengthShim
  3772. }
  3773. postIndex := iNdEx + intStringLen
  3774. if postIndex < 0 {
  3775. return ErrInvalidLengthShim
  3776. }
  3777. if postIndex > l {
  3778. return io.ErrUnexpectedEOF
  3779. }
  3780. m.Checkpoint = string(dAtA[iNdEx:postIndex])
  3781. iNdEx = postIndex
  3782. case 9:
  3783. if wireType != 2 {
  3784. return fmt.Errorf("proto: wrong wireType = %d for field ParentCheckpoint", wireType)
  3785. }
  3786. var stringLen uint64
  3787. for shift := uint(0); ; shift += 7 {
  3788. if shift >= 64 {
  3789. return ErrIntOverflowShim
  3790. }
  3791. if iNdEx >= l {
  3792. return io.ErrUnexpectedEOF
  3793. }
  3794. b := dAtA[iNdEx]
  3795. iNdEx++
  3796. stringLen |= uint64(b&0x7F) << shift
  3797. if b < 0x80 {
  3798. break
  3799. }
  3800. }
  3801. intStringLen := int(stringLen)
  3802. if intStringLen < 0 {
  3803. return ErrInvalidLengthShim
  3804. }
  3805. postIndex := iNdEx + intStringLen
  3806. if postIndex < 0 {
  3807. return ErrInvalidLengthShim
  3808. }
  3809. if postIndex > l {
  3810. return io.ErrUnexpectedEOF
  3811. }
  3812. m.ParentCheckpoint = string(dAtA[iNdEx:postIndex])
  3813. iNdEx = postIndex
  3814. case 10:
  3815. if wireType != 2 {
  3816. return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
  3817. }
  3818. var msglen int
  3819. for shift := uint(0); ; shift += 7 {
  3820. if shift >= 64 {
  3821. return ErrIntOverflowShim
  3822. }
  3823. if iNdEx >= l {
  3824. return io.ErrUnexpectedEOF
  3825. }
  3826. b := dAtA[iNdEx]
  3827. iNdEx++
  3828. msglen |= int(b&0x7F) << shift
  3829. if b < 0x80 {
  3830. break
  3831. }
  3832. }
  3833. if msglen < 0 {
  3834. return ErrInvalidLengthShim
  3835. }
  3836. postIndex := iNdEx + msglen
  3837. if postIndex < 0 {
  3838. return ErrInvalidLengthShim
  3839. }
  3840. if postIndex > l {
  3841. return io.ErrUnexpectedEOF
  3842. }
  3843. if m.Options == nil {
  3844. m.Options = &types1.Any{}
  3845. }
  3846. if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3847. return err
  3848. }
  3849. iNdEx = postIndex
  3850. default:
  3851. iNdEx = preIndex
  3852. skippy, err := skipShim(dAtA[iNdEx:])
  3853. if err != nil {
  3854. return err
  3855. }
  3856. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3857. return ErrInvalidLengthShim
  3858. }
  3859. if (iNdEx + skippy) > l {
  3860. return io.ErrUnexpectedEOF
  3861. }
  3862. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3863. iNdEx += skippy
  3864. }
  3865. }
  3866. if iNdEx > l {
  3867. return io.ErrUnexpectedEOF
  3868. }
  3869. return nil
  3870. }
  3871. func (m *CreateTaskResponse) Unmarshal(dAtA []byte) error {
  3872. l := len(dAtA)
  3873. iNdEx := 0
  3874. for iNdEx < l {
  3875. preIndex := iNdEx
  3876. var wire uint64
  3877. for shift := uint(0); ; shift += 7 {
  3878. if shift >= 64 {
  3879. return ErrIntOverflowShim
  3880. }
  3881. if iNdEx >= l {
  3882. return io.ErrUnexpectedEOF
  3883. }
  3884. b := dAtA[iNdEx]
  3885. iNdEx++
  3886. wire |= uint64(b&0x7F) << shift
  3887. if b < 0x80 {
  3888. break
  3889. }
  3890. }
  3891. fieldNum := int32(wire >> 3)
  3892. wireType := int(wire & 0x7)
  3893. if wireType == 4 {
  3894. return fmt.Errorf("proto: CreateTaskResponse: wiretype end group for non-group")
  3895. }
  3896. if fieldNum <= 0 {
  3897. return fmt.Errorf("proto: CreateTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3898. }
  3899. switch fieldNum {
  3900. case 1:
  3901. if wireType != 0 {
  3902. return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
  3903. }
  3904. m.Pid = 0
  3905. for shift := uint(0); ; shift += 7 {
  3906. if shift >= 64 {
  3907. return ErrIntOverflowShim
  3908. }
  3909. if iNdEx >= l {
  3910. return io.ErrUnexpectedEOF
  3911. }
  3912. b := dAtA[iNdEx]
  3913. iNdEx++
  3914. m.Pid |= uint32(b&0x7F) << shift
  3915. if b < 0x80 {
  3916. break
  3917. }
  3918. }
  3919. default:
  3920. iNdEx = preIndex
  3921. skippy, err := skipShim(dAtA[iNdEx:])
  3922. if err != nil {
  3923. return err
  3924. }
  3925. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3926. return ErrInvalidLengthShim
  3927. }
  3928. if (iNdEx + skippy) > l {
  3929. return io.ErrUnexpectedEOF
  3930. }
  3931. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3932. iNdEx += skippy
  3933. }
  3934. }
  3935. if iNdEx > l {
  3936. return io.ErrUnexpectedEOF
  3937. }
  3938. return nil
  3939. }
  3940. func (m *DeleteRequest) Unmarshal(dAtA []byte) error {
  3941. l := len(dAtA)
  3942. iNdEx := 0
  3943. for iNdEx < l {
  3944. preIndex := iNdEx
  3945. var wire uint64
  3946. for shift := uint(0); ; shift += 7 {
  3947. if shift >= 64 {
  3948. return ErrIntOverflowShim
  3949. }
  3950. if iNdEx >= l {
  3951. return io.ErrUnexpectedEOF
  3952. }
  3953. b := dAtA[iNdEx]
  3954. iNdEx++
  3955. wire |= uint64(b&0x7F) << shift
  3956. if b < 0x80 {
  3957. break
  3958. }
  3959. }
  3960. fieldNum := int32(wire >> 3)
  3961. wireType := int(wire & 0x7)
  3962. if wireType == 4 {
  3963. return fmt.Errorf("proto: DeleteRequest: wiretype end group for non-group")
  3964. }
  3965. if fieldNum <= 0 {
  3966. return fmt.Errorf("proto: DeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3967. }
  3968. switch fieldNum {
  3969. case 1:
  3970. if wireType != 2 {
  3971. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  3972. }
  3973. var stringLen uint64
  3974. for shift := uint(0); ; shift += 7 {
  3975. if shift >= 64 {
  3976. return ErrIntOverflowShim
  3977. }
  3978. if iNdEx >= l {
  3979. return io.ErrUnexpectedEOF
  3980. }
  3981. b := dAtA[iNdEx]
  3982. iNdEx++
  3983. stringLen |= uint64(b&0x7F) << shift
  3984. if b < 0x80 {
  3985. break
  3986. }
  3987. }
  3988. intStringLen := int(stringLen)
  3989. if intStringLen < 0 {
  3990. return ErrInvalidLengthShim
  3991. }
  3992. postIndex := iNdEx + intStringLen
  3993. if postIndex < 0 {
  3994. return ErrInvalidLengthShim
  3995. }
  3996. if postIndex > l {
  3997. return io.ErrUnexpectedEOF
  3998. }
  3999. m.ID = string(dAtA[iNdEx:postIndex])
  4000. iNdEx = postIndex
  4001. case 2:
  4002. if wireType != 2 {
  4003. return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
  4004. }
  4005. var stringLen uint64
  4006. for shift := uint(0); ; shift += 7 {
  4007. if shift >= 64 {
  4008. return ErrIntOverflowShim
  4009. }
  4010. if iNdEx >= l {
  4011. return io.ErrUnexpectedEOF
  4012. }
  4013. b := dAtA[iNdEx]
  4014. iNdEx++
  4015. stringLen |= uint64(b&0x7F) << shift
  4016. if b < 0x80 {
  4017. break
  4018. }
  4019. }
  4020. intStringLen := int(stringLen)
  4021. if intStringLen < 0 {
  4022. return ErrInvalidLengthShim
  4023. }
  4024. postIndex := iNdEx + intStringLen
  4025. if postIndex < 0 {
  4026. return ErrInvalidLengthShim
  4027. }
  4028. if postIndex > l {
  4029. return io.ErrUnexpectedEOF
  4030. }
  4031. m.ExecID = string(dAtA[iNdEx:postIndex])
  4032. iNdEx = postIndex
  4033. default:
  4034. iNdEx = preIndex
  4035. skippy, err := skipShim(dAtA[iNdEx:])
  4036. if err != nil {
  4037. return err
  4038. }
  4039. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4040. return ErrInvalidLengthShim
  4041. }
  4042. if (iNdEx + skippy) > l {
  4043. return io.ErrUnexpectedEOF
  4044. }
  4045. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4046. iNdEx += skippy
  4047. }
  4048. }
  4049. if iNdEx > l {
  4050. return io.ErrUnexpectedEOF
  4051. }
  4052. return nil
  4053. }
  4054. func (m *DeleteResponse) Unmarshal(dAtA []byte) error {
  4055. l := len(dAtA)
  4056. iNdEx := 0
  4057. for iNdEx < l {
  4058. preIndex := iNdEx
  4059. var wire uint64
  4060. for shift := uint(0); ; shift += 7 {
  4061. if shift >= 64 {
  4062. return ErrIntOverflowShim
  4063. }
  4064. if iNdEx >= l {
  4065. return io.ErrUnexpectedEOF
  4066. }
  4067. b := dAtA[iNdEx]
  4068. iNdEx++
  4069. wire |= uint64(b&0x7F) << shift
  4070. if b < 0x80 {
  4071. break
  4072. }
  4073. }
  4074. fieldNum := int32(wire >> 3)
  4075. wireType := int(wire & 0x7)
  4076. if wireType == 4 {
  4077. return fmt.Errorf("proto: DeleteResponse: wiretype end group for non-group")
  4078. }
  4079. if fieldNum <= 0 {
  4080. return fmt.Errorf("proto: DeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4081. }
  4082. switch fieldNum {
  4083. case 1:
  4084. if wireType != 0 {
  4085. return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
  4086. }
  4087. m.Pid = 0
  4088. for shift := uint(0); ; shift += 7 {
  4089. if shift >= 64 {
  4090. return ErrIntOverflowShim
  4091. }
  4092. if iNdEx >= l {
  4093. return io.ErrUnexpectedEOF
  4094. }
  4095. b := dAtA[iNdEx]
  4096. iNdEx++
  4097. m.Pid |= uint32(b&0x7F) << shift
  4098. if b < 0x80 {
  4099. break
  4100. }
  4101. }
  4102. case 2:
  4103. if wireType != 0 {
  4104. return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType)
  4105. }
  4106. m.ExitStatus = 0
  4107. for shift := uint(0); ; shift += 7 {
  4108. if shift >= 64 {
  4109. return ErrIntOverflowShim
  4110. }
  4111. if iNdEx >= l {
  4112. return io.ErrUnexpectedEOF
  4113. }
  4114. b := dAtA[iNdEx]
  4115. iNdEx++
  4116. m.ExitStatus |= uint32(b&0x7F) << shift
  4117. if b < 0x80 {
  4118. break
  4119. }
  4120. }
  4121. case 3:
  4122. if wireType != 2 {
  4123. return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType)
  4124. }
  4125. var msglen int
  4126. for shift := uint(0); ; shift += 7 {
  4127. if shift >= 64 {
  4128. return ErrIntOverflowShim
  4129. }
  4130. if iNdEx >= l {
  4131. return io.ErrUnexpectedEOF
  4132. }
  4133. b := dAtA[iNdEx]
  4134. iNdEx++
  4135. msglen |= int(b&0x7F) << shift
  4136. if b < 0x80 {
  4137. break
  4138. }
  4139. }
  4140. if msglen < 0 {
  4141. return ErrInvalidLengthShim
  4142. }
  4143. postIndex := iNdEx + msglen
  4144. if postIndex < 0 {
  4145. return ErrInvalidLengthShim
  4146. }
  4147. if postIndex > l {
  4148. return io.ErrUnexpectedEOF
  4149. }
  4150. if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil {
  4151. return err
  4152. }
  4153. iNdEx = postIndex
  4154. default:
  4155. iNdEx = preIndex
  4156. skippy, err := skipShim(dAtA[iNdEx:])
  4157. if err != nil {
  4158. return err
  4159. }
  4160. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4161. return ErrInvalidLengthShim
  4162. }
  4163. if (iNdEx + skippy) > l {
  4164. return io.ErrUnexpectedEOF
  4165. }
  4166. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4167. iNdEx += skippy
  4168. }
  4169. }
  4170. if iNdEx > l {
  4171. return io.ErrUnexpectedEOF
  4172. }
  4173. return nil
  4174. }
  4175. func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error {
  4176. l := len(dAtA)
  4177. iNdEx := 0
  4178. for iNdEx < l {
  4179. preIndex := iNdEx
  4180. var wire uint64
  4181. for shift := uint(0); ; shift += 7 {
  4182. if shift >= 64 {
  4183. return ErrIntOverflowShim
  4184. }
  4185. if iNdEx >= l {
  4186. return io.ErrUnexpectedEOF
  4187. }
  4188. b := dAtA[iNdEx]
  4189. iNdEx++
  4190. wire |= uint64(b&0x7F) << shift
  4191. if b < 0x80 {
  4192. break
  4193. }
  4194. }
  4195. fieldNum := int32(wire >> 3)
  4196. wireType := int(wire & 0x7)
  4197. if wireType == 4 {
  4198. return fmt.Errorf("proto: ExecProcessRequest: wiretype end group for non-group")
  4199. }
  4200. if fieldNum <= 0 {
  4201. return fmt.Errorf("proto: ExecProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4202. }
  4203. switch fieldNum {
  4204. case 1:
  4205. if wireType != 2 {
  4206. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  4207. }
  4208. var stringLen uint64
  4209. for shift := uint(0); ; shift += 7 {
  4210. if shift >= 64 {
  4211. return ErrIntOverflowShim
  4212. }
  4213. if iNdEx >= l {
  4214. return io.ErrUnexpectedEOF
  4215. }
  4216. b := dAtA[iNdEx]
  4217. iNdEx++
  4218. stringLen |= uint64(b&0x7F) << shift
  4219. if b < 0x80 {
  4220. break
  4221. }
  4222. }
  4223. intStringLen := int(stringLen)
  4224. if intStringLen < 0 {
  4225. return ErrInvalidLengthShim
  4226. }
  4227. postIndex := iNdEx + intStringLen
  4228. if postIndex < 0 {
  4229. return ErrInvalidLengthShim
  4230. }
  4231. if postIndex > l {
  4232. return io.ErrUnexpectedEOF
  4233. }
  4234. m.ID = string(dAtA[iNdEx:postIndex])
  4235. iNdEx = postIndex
  4236. case 2:
  4237. if wireType != 2 {
  4238. return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
  4239. }
  4240. var stringLen uint64
  4241. for shift := uint(0); ; shift += 7 {
  4242. if shift >= 64 {
  4243. return ErrIntOverflowShim
  4244. }
  4245. if iNdEx >= l {
  4246. return io.ErrUnexpectedEOF
  4247. }
  4248. b := dAtA[iNdEx]
  4249. iNdEx++
  4250. stringLen |= uint64(b&0x7F) << shift
  4251. if b < 0x80 {
  4252. break
  4253. }
  4254. }
  4255. intStringLen := int(stringLen)
  4256. if intStringLen < 0 {
  4257. return ErrInvalidLengthShim
  4258. }
  4259. postIndex := iNdEx + intStringLen
  4260. if postIndex < 0 {
  4261. return ErrInvalidLengthShim
  4262. }
  4263. if postIndex > l {
  4264. return io.ErrUnexpectedEOF
  4265. }
  4266. m.ExecID = string(dAtA[iNdEx:postIndex])
  4267. iNdEx = postIndex
  4268. case 3:
  4269. if wireType != 0 {
  4270. return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType)
  4271. }
  4272. var v int
  4273. for shift := uint(0); ; shift += 7 {
  4274. if shift >= 64 {
  4275. return ErrIntOverflowShim
  4276. }
  4277. if iNdEx >= l {
  4278. return io.ErrUnexpectedEOF
  4279. }
  4280. b := dAtA[iNdEx]
  4281. iNdEx++
  4282. v |= int(b&0x7F) << shift
  4283. if b < 0x80 {
  4284. break
  4285. }
  4286. }
  4287. m.Terminal = bool(v != 0)
  4288. case 4:
  4289. if wireType != 2 {
  4290. return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType)
  4291. }
  4292. var stringLen uint64
  4293. for shift := uint(0); ; shift += 7 {
  4294. if shift >= 64 {
  4295. return ErrIntOverflowShim
  4296. }
  4297. if iNdEx >= l {
  4298. return io.ErrUnexpectedEOF
  4299. }
  4300. b := dAtA[iNdEx]
  4301. iNdEx++
  4302. stringLen |= uint64(b&0x7F) << shift
  4303. if b < 0x80 {
  4304. break
  4305. }
  4306. }
  4307. intStringLen := int(stringLen)
  4308. if intStringLen < 0 {
  4309. return ErrInvalidLengthShim
  4310. }
  4311. postIndex := iNdEx + intStringLen
  4312. if postIndex < 0 {
  4313. return ErrInvalidLengthShim
  4314. }
  4315. if postIndex > l {
  4316. return io.ErrUnexpectedEOF
  4317. }
  4318. m.Stdin = string(dAtA[iNdEx:postIndex])
  4319. iNdEx = postIndex
  4320. case 5:
  4321. if wireType != 2 {
  4322. return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType)
  4323. }
  4324. var stringLen uint64
  4325. for shift := uint(0); ; shift += 7 {
  4326. if shift >= 64 {
  4327. return ErrIntOverflowShim
  4328. }
  4329. if iNdEx >= l {
  4330. return io.ErrUnexpectedEOF
  4331. }
  4332. b := dAtA[iNdEx]
  4333. iNdEx++
  4334. stringLen |= uint64(b&0x7F) << shift
  4335. if b < 0x80 {
  4336. break
  4337. }
  4338. }
  4339. intStringLen := int(stringLen)
  4340. if intStringLen < 0 {
  4341. return ErrInvalidLengthShim
  4342. }
  4343. postIndex := iNdEx + intStringLen
  4344. if postIndex < 0 {
  4345. return ErrInvalidLengthShim
  4346. }
  4347. if postIndex > l {
  4348. return io.ErrUnexpectedEOF
  4349. }
  4350. m.Stdout = string(dAtA[iNdEx:postIndex])
  4351. iNdEx = postIndex
  4352. case 6:
  4353. if wireType != 2 {
  4354. return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType)
  4355. }
  4356. var stringLen uint64
  4357. for shift := uint(0); ; shift += 7 {
  4358. if shift >= 64 {
  4359. return ErrIntOverflowShim
  4360. }
  4361. if iNdEx >= l {
  4362. return io.ErrUnexpectedEOF
  4363. }
  4364. b := dAtA[iNdEx]
  4365. iNdEx++
  4366. stringLen |= uint64(b&0x7F) << shift
  4367. if b < 0x80 {
  4368. break
  4369. }
  4370. }
  4371. intStringLen := int(stringLen)
  4372. if intStringLen < 0 {
  4373. return ErrInvalidLengthShim
  4374. }
  4375. postIndex := iNdEx + intStringLen
  4376. if postIndex < 0 {
  4377. return ErrInvalidLengthShim
  4378. }
  4379. if postIndex > l {
  4380. return io.ErrUnexpectedEOF
  4381. }
  4382. m.Stderr = string(dAtA[iNdEx:postIndex])
  4383. iNdEx = postIndex
  4384. case 7:
  4385. if wireType != 2 {
  4386. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  4387. }
  4388. var msglen int
  4389. for shift := uint(0); ; shift += 7 {
  4390. if shift >= 64 {
  4391. return ErrIntOverflowShim
  4392. }
  4393. if iNdEx >= l {
  4394. return io.ErrUnexpectedEOF
  4395. }
  4396. b := dAtA[iNdEx]
  4397. iNdEx++
  4398. msglen |= int(b&0x7F) << shift
  4399. if b < 0x80 {
  4400. break
  4401. }
  4402. }
  4403. if msglen < 0 {
  4404. return ErrInvalidLengthShim
  4405. }
  4406. postIndex := iNdEx + msglen
  4407. if postIndex < 0 {
  4408. return ErrInvalidLengthShim
  4409. }
  4410. if postIndex > l {
  4411. return io.ErrUnexpectedEOF
  4412. }
  4413. if m.Spec == nil {
  4414. m.Spec = &types1.Any{}
  4415. }
  4416. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4417. return err
  4418. }
  4419. iNdEx = postIndex
  4420. default:
  4421. iNdEx = preIndex
  4422. skippy, err := skipShim(dAtA[iNdEx:])
  4423. if err != nil {
  4424. return err
  4425. }
  4426. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4427. return ErrInvalidLengthShim
  4428. }
  4429. if (iNdEx + skippy) > l {
  4430. return io.ErrUnexpectedEOF
  4431. }
  4432. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4433. iNdEx += skippy
  4434. }
  4435. }
  4436. if iNdEx > l {
  4437. return io.ErrUnexpectedEOF
  4438. }
  4439. return nil
  4440. }
  4441. func (m *ExecProcessResponse) Unmarshal(dAtA []byte) error {
  4442. l := len(dAtA)
  4443. iNdEx := 0
  4444. for iNdEx < l {
  4445. preIndex := iNdEx
  4446. var wire uint64
  4447. for shift := uint(0); ; shift += 7 {
  4448. if shift >= 64 {
  4449. return ErrIntOverflowShim
  4450. }
  4451. if iNdEx >= l {
  4452. return io.ErrUnexpectedEOF
  4453. }
  4454. b := dAtA[iNdEx]
  4455. iNdEx++
  4456. wire |= uint64(b&0x7F) << shift
  4457. if b < 0x80 {
  4458. break
  4459. }
  4460. }
  4461. fieldNum := int32(wire >> 3)
  4462. wireType := int(wire & 0x7)
  4463. if wireType == 4 {
  4464. return fmt.Errorf("proto: ExecProcessResponse: wiretype end group for non-group")
  4465. }
  4466. if fieldNum <= 0 {
  4467. return fmt.Errorf("proto: ExecProcessResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4468. }
  4469. switch fieldNum {
  4470. default:
  4471. iNdEx = preIndex
  4472. skippy, err := skipShim(dAtA[iNdEx:])
  4473. if err != nil {
  4474. return err
  4475. }
  4476. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4477. return ErrInvalidLengthShim
  4478. }
  4479. if (iNdEx + skippy) > l {
  4480. return io.ErrUnexpectedEOF
  4481. }
  4482. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4483. iNdEx += skippy
  4484. }
  4485. }
  4486. if iNdEx > l {
  4487. return io.ErrUnexpectedEOF
  4488. }
  4489. return nil
  4490. }
  4491. func (m *ResizePtyRequest) Unmarshal(dAtA []byte) error {
  4492. l := len(dAtA)
  4493. iNdEx := 0
  4494. for iNdEx < l {
  4495. preIndex := iNdEx
  4496. var wire uint64
  4497. for shift := uint(0); ; shift += 7 {
  4498. if shift >= 64 {
  4499. return ErrIntOverflowShim
  4500. }
  4501. if iNdEx >= l {
  4502. return io.ErrUnexpectedEOF
  4503. }
  4504. b := dAtA[iNdEx]
  4505. iNdEx++
  4506. wire |= uint64(b&0x7F) << shift
  4507. if b < 0x80 {
  4508. break
  4509. }
  4510. }
  4511. fieldNum := int32(wire >> 3)
  4512. wireType := int(wire & 0x7)
  4513. if wireType == 4 {
  4514. return fmt.Errorf("proto: ResizePtyRequest: wiretype end group for non-group")
  4515. }
  4516. if fieldNum <= 0 {
  4517. return fmt.Errorf("proto: ResizePtyRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4518. }
  4519. switch fieldNum {
  4520. case 1:
  4521. if wireType != 2 {
  4522. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  4523. }
  4524. var stringLen uint64
  4525. for shift := uint(0); ; shift += 7 {
  4526. if shift >= 64 {
  4527. return ErrIntOverflowShim
  4528. }
  4529. if iNdEx >= l {
  4530. return io.ErrUnexpectedEOF
  4531. }
  4532. b := dAtA[iNdEx]
  4533. iNdEx++
  4534. stringLen |= uint64(b&0x7F) << shift
  4535. if b < 0x80 {
  4536. break
  4537. }
  4538. }
  4539. intStringLen := int(stringLen)
  4540. if intStringLen < 0 {
  4541. return ErrInvalidLengthShim
  4542. }
  4543. postIndex := iNdEx + intStringLen
  4544. if postIndex < 0 {
  4545. return ErrInvalidLengthShim
  4546. }
  4547. if postIndex > l {
  4548. return io.ErrUnexpectedEOF
  4549. }
  4550. m.ID = string(dAtA[iNdEx:postIndex])
  4551. iNdEx = postIndex
  4552. case 2:
  4553. if wireType != 2 {
  4554. return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
  4555. }
  4556. var stringLen uint64
  4557. for shift := uint(0); ; shift += 7 {
  4558. if shift >= 64 {
  4559. return ErrIntOverflowShim
  4560. }
  4561. if iNdEx >= l {
  4562. return io.ErrUnexpectedEOF
  4563. }
  4564. b := dAtA[iNdEx]
  4565. iNdEx++
  4566. stringLen |= uint64(b&0x7F) << shift
  4567. if b < 0x80 {
  4568. break
  4569. }
  4570. }
  4571. intStringLen := int(stringLen)
  4572. if intStringLen < 0 {
  4573. return ErrInvalidLengthShim
  4574. }
  4575. postIndex := iNdEx + intStringLen
  4576. if postIndex < 0 {
  4577. return ErrInvalidLengthShim
  4578. }
  4579. if postIndex > l {
  4580. return io.ErrUnexpectedEOF
  4581. }
  4582. m.ExecID = string(dAtA[iNdEx:postIndex])
  4583. iNdEx = postIndex
  4584. case 3:
  4585. if wireType != 0 {
  4586. return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType)
  4587. }
  4588. m.Width = 0
  4589. for shift := uint(0); ; shift += 7 {
  4590. if shift >= 64 {
  4591. return ErrIntOverflowShim
  4592. }
  4593. if iNdEx >= l {
  4594. return io.ErrUnexpectedEOF
  4595. }
  4596. b := dAtA[iNdEx]
  4597. iNdEx++
  4598. m.Width |= uint32(b&0x7F) << shift
  4599. if b < 0x80 {
  4600. break
  4601. }
  4602. }
  4603. case 4:
  4604. if wireType != 0 {
  4605. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  4606. }
  4607. m.Height = 0
  4608. for shift := uint(0); ; shift += 7 {
  4609. if shift >= 64 {
  4610. return ErrIntOverflowShim
  4611. }
  4612. if iNdEx >= l {
  4613. return io.ErrUnexpectedEOF
  4614. }
  4615. b := dAtA[iNdEx]
  4616. iNdEx++
  4617. m.Height |= uint32(b&0x7F) << shift
  4618. if b < 0x80 {
  4619. break
  4620. }
  4621. }
  4622. default:
  4623. iNdEx = preIndex
  4624. skippy, err := skipShim(dAtA[iNdEx:])
  4625. if err != nil {
  4626. return err
  4627. }
  4628. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4629. return ErrInvalidLengthShim
  4630. }
  4631. if (iNdEx + skippy) > l {
  4632. return io.ErrUnexpectedEOF
  4633. }
  4634. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4635. iNdEx += skippy
  4636. }
  4637. }
  4638. if iNdEx > l {
  4639. return io.ErrUnexpectedEOF
  4640. }
  4641. return nil
  4642. }
  4643. func (m *StateRequest) Unmarshal(dAtA []byte) error {
  4644. l := len(dAtA)
  4645. iNdEx := 0
  4646. for iNdEx < l {
  4647. preIndex := iNdEx
  4648. var wire uint64
  4649. for shift := uint(0); ; shift += 7 {
  4650. if shift >= 64 {
  4651. return ErrIntOverflowShim
  4652. }
  4653. if iNdEx >= l {
  4654. return io.ErrUnexpectedEOF
  4655. }
  4656. b := dAtA[iNdEx]
  4657. iNdEx++
  4658. wire |= uint64(b&0x7F) << shift
  4659. if b < 0x80 {
  4660. break
  4661. }
  4662. }
  4663. fieldNum := int32(wire >> 3)
  4664. wireType := int(wire & 0x7)
  4665. if wireType == 4 {
  4666. return fmt.Errorf("proto: StateRequest: wiretype end group for non-group")
  4667. }
  4668. if fieldNum <= 0 {
  4669. return fmt.Errorf("proto: StateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4670. }
  4671. switch fieldNum {
  4672. case 1:
  4673. if wireType != 2 {
  4674. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  4675. }
  4676. var stringLen uint64
  4677. for shift := uint(0); ; shift += 7 {
  4678. if shift >= 64 {
  4679. return ErrIntOverflowShim
  4680. }
  4681. if iNdEx >= l {
  4682. return io.ErrUnexpectedEOF
  4683. }
  4684. b := dAtA[iNdEx]
  4685. iNdEx++
  4686. stringLen |= uint64(b&0x7F) << shift
  4687. if b < 0x80 {
  4688. break
  4689. }
  4690. }
  4691. intStringLen := int(stringLen)
  4692. if intStringLen < 0 {
  4693. return ErrInvalidLengthShim
  4694. }
  4695. postIndex := iNdEx + intStringLen
  4696. if postIndex < 0 {
  4697. return ErrInvalidLengthShim
  4698. }
  4699. if postIndex > l {
  4700. return io.ErrUnexpectedEOF
  4701. }
  4702. m.ID = string(dAtA[iNdEx:postIndex])
  4703. iNdEx = postIndex
  4704. case 2:
  4705. if wireType != 2 {
  4706. return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
  4707. }
  4708. var stringLen uint64
  4709. for shift := uint(0); ; shift += 7 {
  4710. if shift >= 64 {
  4711. return ErrIntOverflowShim
  4712. }
  4713. if iNdEx >= l {
  4714. return io.ErrUnexpectedEOF
  4715. }
  4716. b := dAtA[iNdEx]
  4717. iNdEx++
  4718. stringLen |= uint64(b&0x7F) << shift
  4719. if b < 0x80 {
  4720. break
  4721. }
  4722. }
  4723. intStringLen := int(stringLen)
  4724. if intStringLen < 0 {
  4725. return ErrInvalidLengthShim
  4726. }
  4727. postIndex := iNdEx + intStringLen
  4728. if postIndex < 0 {
  4729. return ErrInvalidLengthShim
  4730. }
  4731. if postIndex > l {
  4732. return io.ErrUnexpectedEOF
  4733. }
  4734. m.ExecID = string(dAtA[iNdEx:postIndex])
  4735. iNdEx = postIndex
  4736. default:
  4737. iNdEx = preIndex
  4738. skippy, err := skipShim(dAtA[iNdEx:])
  4739. if err != nil {
  4740. return err
  4741. }
  4742. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4743. return ErrInvalidLengthShim
  4744. }
  4745. if (iNdEx + skippy) > l {
  4746. return io.ErrUnexpectedEOF
  4747. }
  4748. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4749. iNdEx += skippy
  4750. }
  4751. }
  4752. if iNdEx > l {
  4753. return io.ErrUnexpectedEOF
  4754. }
  4755. return nil
  4756. }
  4757. func (m *StateResponse) Unmarshal(dAtA []byte) error {
  4758. l := len(dAtA)
  4759. iNdEx := 0
  4760. for iNdEx < l {
  4761. preIndex := iNdEx
  4762. var wire uint64
  4763. for shift := uint(0); ; shift += 7 {
  4764. if shift >= 64 {
  4765. return ErrIntOverflowShim
  4766. }
  4767. if iNdEx >= l {
  4768. return io.ErrUnexpectedEOF
  4769. }
  4770. b := dAtA[iNdEx]
  4771. iNdEx++
  4772. wire |= uint64(b&0x7F) << shift
  4773. if b < 0x80 {
  4774. break
  4775. }
  4776. }
  4777. fieldNum := int32(wire >> 3)
  4778. wireType := int(wire & 0x7)
  4779. if wireType == 4 {
  4780. return fmt.Errorf("proto: StateResponse: wiretype end group for non-group")
  4781. }
  4782. if fieldNum <= 0 {
  4783. return fmt.Errorf("proto: StateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4784. }
  4785. switch fieldNum {
  4786. case 1:
  4787. if wireType != 2 {
  4788. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  4789. }
  4790. var stringLen uint64
  4791. for shift := uint(0); ; shift += 7 {
  4792. if shift >= 64 {
  4793. return ErrIntOverflowShim
  4794. }
  4795. if iNdEx >= l {
  4796. return io.ErrUnexpectedEOF
  4797. }
  4798. b := dAtA[iNdEx]
  4799. iNdEx++
  4800. stringLen |= uint64(b&0x7F) << shift
  4801. if b < 0x80 {
  4802. break
  4803. }
  4804. }
  4805. intStringLen := int(stringLen)
  4806. if intStringLen < 0 {
  4807. return ErrInvalidLengthShim
  4808. }
  4809. postIndex := iNdEx + intStringLen
  4810. if postIndex < 0 {
  4811. return ErrInvalidLengthShim
  4812. }
  4813. if postIndex > l {
  4814. return io.ErrUnexpectedEOF
  4815. }
  4816. m.ID = string(dAtA[iNdEx:postIndex])
  4817. iNdEx = postIndex
  4818. case 2:
  4819. if wireType != 2 {
  4820. return fmt.Errorf("proto: wrong wireType = %d for field Bundle", wireType)
  4821. }
  4822. var stringLen uint64
  4823. for shift := uint(0); ; shift += 7 {
  4824. if shift >= 64 {
  4825. return ErrIntOverflowShim
  4826. }
  4827. if iNdEx >= l {
  4828. return io.ErrUnexpectedEOF
  4829. }
  4830. b := dAtA[iNdEx]
  4831. iNdEx++
  4832. stringLen |= uint64(b&0x7F) << shift
  4833. if b < 0x80 {
  4834. break
  4835. }
  4836. }
  4837. intStringLen := int(stringLen)
  4838. if intStringLen < 0 {
  4839. return ErrInvalidLengthShim
  4840. }
  4841. postIndex := iNdEx + intStringLen
  4842. if postIndex < 0 {
  4843. return ErrInvalidLengthShim
  4844. }
  4845. if postIndex > l {
  4846. return io.ErrUnexpectedEOF
  4847. }
  4848. m.Bundle = string(dAtA[iNdEx:postIndex])
  4849. iNdEx = postIndex
  4850. case 3:
  4851. if wireType != 0 {
  4852. return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
  4853. }
  4854. m.Pid = 0
  4855. for shift := uint(0); ; shift += 7 {
  4856. if shift >= 64 {
  4857. return ErrIntOverflowShim
  4858. }
  4859. if iNdEx >= l {
  4860. return io.ErrUnexpectedEOF
  4861. }
  4862. b := dAtA[iNdEx]
  4863. iNdEx++
  4864. m.Pid |= uint32(b&0x7F) << shift
  4865. if b < 0x80 {
  4866. break
  4867. }
  4868. }
  4869. case 4:
  4870. if wireType != 0 {
  4871. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  4872. }
  4873. m.Status = 0
  4874. for shift := uint(0); ; shift += 7 {
  4875. if shift >= 64 {
  4876. return ErrIntOverflowShim
  4877. }
  4878. if iNdEx >= l {
  4879. return io.ErrUnexpectedEOF
  4880. }
  4881. b := dAtA[iNdEx]
  4882. iNdEx++
  4883. m.Status |= task.Status(b&0x7F) << shift
  4884. if b < 0x80 {
  4885. break
  4886. }
  4887. }
  4888. case 5:
  4889. if wireType != 2 {
  4890. return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType)
  4891. }
  4892. var stringLen uint64
  4893. for shift := uint(0); ; shift += 7 {
  4894. if shift >= 64 {
  4895. return ErrIntOverflowShim
  4896. }
  4897. if iNdEx >= l {
  4898. return io.ErrUnexpectedEOF
  4899. }
  4900. b := dAtA[iNdEx]
  4901. iNdEx++
  4902. stringLen |= uint64(b&0x7F) << shift
  4903. if b < 0x80 {
  4904. break
  4905. }
  4906. }
  4907. intStringLen := int(stringLen)
  4908. if intStringLen < 0 {
  4909. return ErrInvalidLengthShim
  4910. }
  4911. postIndex := iNdEx + intStringLen
  4912. if postIndex < 0 {
  4913. return ErrInvalidLengthShim
  4914. }
  4915. if postIndex > l {
  4916. return io.ErrUnexpectedEOF
  4917. }
  4918. m.Stdin = string(dAtA[iNdEx:postIndex])
  4919. iNdEx = postIndex
  4920. case 6:
  4921. if wireType != 2 {
  4922. return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType)
  4923. }
  4924. var stringLen uint64
  4925. for shift := uint(0); ; shift += 7 {
  4926. if shift >= 64 {
  4927. return ErrIntOverflowShim
  4928. }
  4929. if iNdEx >= l {
  4930. return io.ErrUnexpectedEOF
  4931. }
  4932. b := dAtA[iNdEx]
  4933. iNdEx++
  4934. stringLen |= uint64(b&0x7F) << shift
  4935. if b < 0x80 {
  4936. break
  4937. }
  4938. }
  4939. intStringLen := int(stringLen)
  4940. if intStringLen < 0 {
  4941. return ErrInvalidLengthShim
  4942. }
  4943. postIndex := iNdEx + intStringLen
  4944. if postIndex < 0 {
  4945. return ErrInvalidLengthShim
  4946. }
  4947. if postIndex > l {
  4948. return io.ErrUnexpectedEOF
  4949. }
  4950. m.Stdout = string(dAtA[iNdEx:postIndex])
  4951. iNdEx = postIndex
  4952. case 7:
  4953. if wireType != 2 {
  4954. return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType)
  4955. }
  4956. var stringLen uint64
  4957. for shift := uint(0); ; shift += 7 {
  4958. if shift >= 64 {
  4959. return ErrIntOverflowShim
  4960. }
  4961. if iNdEx >= l {
  4962. return io.ErrUnexpectedEOF
  4963. }
  4964. b := dAtA[iNdEx]
  4965. iNdEx++
  4966. stringLen |= uint64(b&0x7F) << shift
  4967. if b < 0x80 {
  4968. break
  4969. }
  4970. }
  4971. intStringLen := int(stringLen)
  4972. if intStringLen < 0 {
  4973. return ErrInvalidLengthShim
  4974. }
  4975. postIndex := iNdEx + intStringLen
  4976. if postIndex < 0 {
  4977. return ErrInvalidLengthShim
  4978. }
  4979. if postIndex > l {
  4980. return io.ErrUnexpectedEOF
  4981. }
  4982. m.Stderr = string(dAtA[iNdEx:postIndex])
  4983. iNdEx = postIndex
  4984. case 8:
  4985. if wireType != 0 {
  4986. return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType)
  4987. }
  4988. var v int
  4989. for shift := uint(0); ; shift += 7 {
  4990. if shift >= 64 {
  4991. return ErrIntOverflowShim
  4992. }
  4993. if iNdEx >= l {
  4994. return io.ErrUnexpectedEOF
  4995. }
  4996. b := dAtA[iNdEx]
  4997. iNdEx++
  4998. v |= int(b&0x7F) << shift
  4999. if b < 0x80 {
  5000. break
  5001. }
  5002. }
  5003. m.Terminal = bool(v != 0)
  5004. case 9:
  5005. if wireType != 0 {
  5006. return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType)
  5007. }
  5008. m.ExitStatus = 0
  5009. for shift := uint(0); ; shift += 7 {
  5010. if shift >= 64 {
  5011. return ErrIntOverflowShim
  5012. }
  5013. if iNdEx >= l {
  5014. return io.ErrUnexpectedEOF
  5015. }
  5016. b := dAtA[iNdEx]
  5017. iNdEx++
  5018. m.ExitStatus |= uint32(b&0x7F) << shift
  5019. if b < 0x80 {
  5020. break
  5021. }
  5022. }
  5023. case 10:
  5024. if wireType != 2 {
  5025. return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType)
  5026. }
  5027. var msglen int
  5028. for shift := uint(0); ; shift += 7 {
  5029. if shift >= 64 {
  5030. return ErrIntOverflowShim
  5031. }
  5032. if iNdEx >= l {
  5033. return io.ErrUnexpectedEOF
  5034. }
  5035. b := dAtA[iNdEx]
  5036. iNdEx++
  5037. msglen |= int(b&0x7F) << shift
  5038. if b < 0x80 {
  5039. break
  5040. }
  5041. }
  5042. if msglen < 0 {
  5043. return ErrInvalidLengthShim
  5044. }
  5045. postIndex := iNdEx + msglen
  5046. if postIndex < 0 {
  5047. return ErrInvalidLengthShim
  5048. }
  5049. if postIndex > l {
  5050. return io.ErrUnexpectedEOF
  5051. }
  5052. if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil {
  5053. return err
  5054. }
  5055. iNdEx = postIndex
  5056. case 11:
  5057. if wireType != 2 {
  5058. return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
  5059. }
  5060. var stringLen uint64
  5061. for shift := uint(0); ; shift += 7 {
  5062. if shift >= 64 {
  5063. return ErrIntOverflowShim
  5064. }
  5065. if iNdEx >= l {
  5066. return io.ErrUnexpectedEOF
  5067. }
  5068. b := dAtA[iNdEx]
  5069. iNdEx++
  5070. stringLen |= uint64(b&0x7F) << shift
  5071. if b < 0x80 {
  5072. break
  5073. }
  5074. }
  5075. intStringLen := int(stringLen)
  5076. if intStringLen < 0 {
  5077. return ErrInvalidLengthShim
  5078. }
  5079. postIndex := iNdEx + intStringLen
  5080. if postIndex < 0 {
  5081. return ErrInvalidLengthShim
  5082. }
  5083. if postIndex > l {
  5084. return io.ErrUnexpectedEOF
  5085. }
  5086. m.ExecID = string(dAtA[iNdEx:postIndex])
  5087. iNdEx = postIndex
  5088. default:
  5089. iNdEx = preIndex
  5090. skippy, err := skipShim(dAtA[iNdEx:])
  5091. if err != nil {
  5092. return err
  5093. }
  5094. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5095. return ErrInvalidLengthShim
  5096. }
  5097. if (iNdEx + skippy) > l {
  5098. return io.ErrUnexpectedEOF
  5099. }
  5100. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5101. iNdEx += skippy
  5102. }
  5103. }
  5104. if iNdEx > l {
  5105. return io.ErrUnexpectedEOF
  5106. }
  5107. return nil
  5108. }
  5109. func (m *KillRequest) Unmarshal(dAtA []byte) error {
  5110. l := len(dAtA)
  5111. iNdEx := 0
  5112. for iNdEx < l {
  5113. preIndex := iNdEx
  5114. var wire uint64
  5115. for shift := uint(0); ; shift += 7 {
  5116. if shift >= 64 {
  5117. return ErrIntOverflowShim
  5118. }
  5119. if iNdEx >= l {
  5120. return io.ErrUnexpectedEOF
  5121. }
  5122. b := dAtA[iNdEx]
  5123. iNdEx++
  5124. wire |= uint64(b&0x7F) << shift
  5125. if b < 0x80 {
  5126. break
  5127. }
  5128. }
  5129. fieldNum := int32(wire >> 3)
  5130. wireType := int(wire & 0x7)
  5131. if wireType == 4 {
  5132. return fmt.Errorf("proto: KillRequest: wiretype end group for non-group")
  5133. }
  5134. if fieldNum <= 0 {
  5135. return fmt.Errorf("proto: KillRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5136. }
  5137. switch fieldNum {
  5138. case 1:
  5139. if wireType != 2 {
  5140. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  5141. }
  5142. var stringLen uint64
  5143. for shift := uint(0); ; shift += 7 {
  5144. if shift >= 64 {
  5145. return ErrIntOverflowShim
  5146. }
  5147. if iNdEx >= l {
  5148. return io.ErrUnexpectedEOF
  5149. }
  5150. b := dAtA[iNdEx]
  5151. iNdEx++
  5152. stringLen |= uint64(b&0x7F) << shift
  5153. if b < 0x80 {
  5154. break
  5155. }
  5156. }
  5157. intStringLen := int(stringLen)
  5158. if intStringLen < 0 {
  5159. return ErrInvalidLengthShim
  5160. }
  5161. postIndex := iNdEx + intStringLen
  5162. if postIndex < 0 {
  5163. return ErrInvalidLengthShim
  5164. }
  5165. if postIndex > l {
  5166. return io.ErrUnexpectedEOF
  5167. }
  5168. m.ID = string(dAtA[iNdEx:postIndex])
  5169. iNdEx = postIndex
  5170. case 2:
  5171. if wireType != 2 {
  5172. return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
  5173. }
  5174. var stringLen uint64
  5175. for shift := uint(0); ; shift += 7 {
  5176. if shift >= 64 {
  5177. return ErrIntOverflowShim
  5178. }
  5179. if iNdEx >= l {
  5180. return io.ErrUnexpectedEOF
  5181. }
  5182. b := dAtA[iNdEx]
  5183. iNdEx++
  5184. stringLen |= uint64(b&0x7F) << shift
  5185. if b < 0x80 {
  5186. break
  5187. }
  5188. }
  5189. intStringLen := int(stringLen)
  5190. if intStringLen < 0 {
  5191. return ErrInvalidLengthShim
  5192. }
  5193. postIndex := iNdEx + intStringLen
  5194. if postIndex < 0 {
  5195. return ErrInvalidLengthShim
  5196. }
  5197. if postIndex > l {
  5198. return io.ErrUnexpectedEOF
  5199. }
  5200. m.ExecID = string(dAtA[iNdEx:postIndex])
  5201. iNdEx = postIndex
  5202. case 3:
  5203. if wireType != 0 {
  5204. return fmt.Errorf("proto: wrong wireType = %d for field Signal", wireType)
  5205. }
  5206. m.Signal = 0
  5207. for shift := uint(0); ; shift += 7 {
  5208. if shift >= 64 {
  5209. return ErrIntOverflowShim
  5210. }
  5211. if iNdEx >= l {
  5212. return io.ErrUnexpectedEOF
  5213. }
  5214. b := dAtA[iNdEx]
  5215. iNdEx++
  5216. m.Signal |= uint32(b&0x7F) << shift
  5217. if b < 0x80 {
  5218. break
  5219. }
  5220. }
  5221. case 4:
  5222. if wireType != 0 {
  5223. return fmt.Errorf("proto: wrong wireType = %d for field All", wireType)
  5224. }
  5225. var v int
  5226. for shift := uint(0); ; shift += 7 {
  5227. if shift >= 64 {
  5228. return ErrIntOverflowShim
  5229. }
  5230. if iNdEx >= l {
  5231. return io.ErrUnexpectedEOF
  5232. }
  5233. b := dAtA[iNdEx]
  5234. iNdEx++
  5235. v |= int(b&0x7F) << shift
  5236. if b < 0x80 {
  5237. break
  5238. }
  5239. }
  5240. m.All = bool(v != 0)
  5241. default:
  5242. iNdEx = preIndex
  5243. skippy, err := skipShim(dAtA[iNdEx:])
  5244. if err != nil {
  5245. return err
  5246. }
  5247. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5248. return ErrInvalidLengthShim
  5249. }
  5250. if (iNdEx + skippy) > l {
  5251. return io.ErrUnexpectedEOF
  5252. }
  5253. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5254. iNdEx += skippy
  5255. }
  5256. }
  5257. if iNdEx > l {
  5258. return io.ErrUnexpectedEOF
  5259. }
  5260. return nil
  5261. }
  5262. func (m *CloseIORequest) Unmarshal(dAtA []byte) error {
  5263. l := len(dAtA)
  5264. iNdEx := 0
  5265. for iNdEx < l {
  5266. preIndex := iNdEx
  5267. var wire uint64
  5268. for shift := uint(0); ; shift += 7 {
  5269. if shift >= 64 {
  5270. return ErrIntOverflowShim
  5271. }
  5272. if iNdEx >= l {
  5273. return io.ErrUnexpectedEOF
  5274. }
  5275. b := dAtA[iNdEx]
  5276. iNdEx++
  5277. wire |= uint64(b&0x7F) << shift
  5278. if b < 0x80 {
  5279. break
  5280. }
  5281. }
  5282. fieldNum := int32(wire >> 3)
  5283. wireType := int(wire & 0x7)
  5284. if wireType == 4 {
  5285. return fmt.Errorf("proto: CloseIORequest: wiretype end group for non-group")
  5286. }
  5287. if fieldNum <= 0 {
  5288. return fmt.Errorf("proto: CloseIORequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5289. }
  5290. switch fieldNum {
  5291. case 1:
  5292. if wireType != 2 {
  5293. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  5294. }
  5295. var stringLen uint64
  5296. for shift := uint(0); ; shift += 7 {
  5297. if shift >= 64 {
  5298. return ErrIntOverflowShim
  5299. }
  5300. if iNdEx >= l {
  5301. return io.ErrUnexpectedEOF
  5302. }
  5303. b := dAtA[iNdEx]
  5304. iNdEx++
  5305. stringLen |= uint64(b&0x7F) << shift
  5306. if b < 0x80 {
  5307. break
  5308. }
  5309. }
  5310. intStringLen := int(stringLen)
  5311. if intStringLen < 0 {
  5312. return ErrInvalidLengthShim
  5313. }
  5314. postIndex := iNdEx + intStringLen
  5315. if postIndex < 0 {
  5316. return ErrInvalidLengthShim
  5317. }
  5318. if postIndex > l {
  5319. return io.ErrUnexpectedEOF
  5320. }
  5321. m.ID = string(dAtA[iNdEx:postIndex])
  5322. iNdEx = postIndex
  5323. case 2:
  5324. if wireType != 2 {
  5325. return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
  5326. }
  5327. var stringLen uint64
  5328. for shift := uint(0); ; shift += 7 {
  5329. if shift >= 64 {
  5330. return ErrIntOverflowShim
  5331. }
  5332. if iNdEx >= l {
  5333. return io.ErrUnexpectedEOF
  5334. }
  5335. b := dAtA[iNdEx]
  5336. iNdEx++
  5337. stringLen |= uint64(b&0x7F) << shift
  5338. if b < 0x80 {
  5339. break
  5340. }
  5341. }
  5342. intStringLen := int(stringLen)
  5343. if intStringLen < 0 {
  5344. return ErrInvalidLengthShim
  5345. }
  5346. postIndex := iNdEx + intStringLen
  5347. if postIndex < 0 {
  5348. return ErrInvalidLengthShim
  5349. }
  5350. if postIndex > l {
  5351. return io.ErrUnexpectedEOF
  5352. }
  5353. m.ExecID = string(dAtA[iNdEx:postIndex])
  5354. iNdEx = postIndex
  5355. case 3:
  5356. if wireType != 0 {
  5357. return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType)
  5358. }
  5359. var v int
  5360. for shift := uint(0); ; shift += 7 {
  5361. if shift >= 64 {
  5362. return ErrIntOverflowShim
  5363. }
  5364. if iNdEx >= l {
  5365. return io.ErrUnexpectedEOF
  5366. }
  5367. b := dAtA[iNdEx]
  5368. iNdEx++
  5369. v |= int(b&0x7F) << shift
  5370. if b < 0x80 {
  5371. break
  5372. }
  5373. }
  5374. m.Stdin = bool(v != 0)
  5375. default:
  5376. iNdEx = preIndex
  5377. skippy, err := skipShim(dAtA[iNdEx:])
  5378. if err != nil {
  5379. return err
  5380. }
  5381. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5382. return ErrInvalidLengthShim
  5383. }
  5384. if (iNdEx + skippy) > l {
  5385. return io.ErrUnexpectedEOF
  5386. }
  5387. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5388. iNdEx += skippy
  5389. }
  5390. }
  5391. if iNdEx > l {
  5392. return io.ErrUnexpectedEOF
  5393. }
  5394. return nil
  5395. }
  5396. func (m *PidsRequest) Unmarshal(dAtA []byte) error {
  5397. l := len(dAtA)
  5398. iNdEx := 0
  5399. for iNdEx < l {
  5400. preIndex := iNdEx
  5401. var wire uint64
  5402. for shift := uint(0); ; shift += 7 {
  5403. if shift >= 64 {
  5404. return ErrIntOverflowShim
  5405. }
  5406. if iNdEx >= l {
  5407. return io.ErrUnexpectedEOF
  5408. }
  5409. b := dAtA[iNdEx]
  5410. iNdEx++
  5411. wire |= uint64(b&0x7F) << shift
  5412. if b < 0x80 {
  5413. break
  5414. }
  5415. }
  5416. fieldNum := int32(wire >> 3)
  5417. wireType := int(wire & 0x7)
  5418. if wireType == 4 {
  5419. return fmt.Errorf("proto: PidsRequest: wiretype end group for non-group")
  5420. }
  5421. if fieldNum <= 0 {
  5422. return fmt.Errorf("proto: PidsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5423. }
  5424. switch fieldNum {
  5425. case 1:
  5426. if wireType != 2 {
  5427. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  5428. }
  5429. var stringLen uint64
  5430. for shift := uint(0); ; shift += 7 {
  5431. if shift >= 64 {
  5432. return ErrIntOverflowShim
  5433. }
  5434. if iNdEx >= l {
  5435. return io.ErrUnexpectedEOF
  5436. }
  5437. b := dAtA[iNdEx]
  5438. iNdEx++
  5439. stringLen |= uint64(b&0x7F) << shift
  5440. if b < 0x80 {
  5441. break
  5442. }
  5443. }
  5444. intStringLen := int(stringLen)
  5445. if intStringLen < 0 {
  5446. return ErrInvalidLengthShim
  5447. }
  5448. postIndex := iNdEx + intStringLen
  5449. if postIndex < 0 {
  5450. return ErrInvalidLengthShim
  5451. }
  5452. if postIndex > l {
  5453. return io.ErrUnexpectedEOF
  5454. }
  5455. m.ID = string(dAtA[iNdEx:postIndex])
  5456. iNdEx = postIndex
  5457. default:
  5458. iNdEx = preIndex
  5459. skippy, err := skipShim(dAtA[iNdEx:])
  5460. if err != nil {
  5461. return err
  5462. }
  5463. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5464. return ErrInvalidLengthShim
  5465. }
  5466. if (iNdEx + skippy) > l {
  5467. return io.ErrUnexpectedEOF
  5468. }
  5469. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5470. iNdEx += skippy
  5471. }
  5472. }
  5473. if iNdEx > l {
  5474. return io.ErrUnexpectedEOF
  5475. }
  5476. return nil
  5477. }
  5478. func (m *PidsResponse) Unmarshal(dAtA []byte) error {
  5479. l := len(dAtA)
  5480. iNdEx := 0
  5481. for iNdEx < l {
  5482. preIndex := iNdEx
  5483. var wire uint64
  5484. for shift := uint(0); ; shift += 7 {
  5485. if shift >= 64 {
  5486. return ErrIntOverflowShim
  5487. }
  5488. if iNdEx >= l {
  5489. return io.ErrUnexpectedEOF
  5490. }
  5491. b := dAtA[iNdEx]
  5492. iNdEx++
  5493. wire |= uint64(b&0x7F) << shift
  5494. if b < 0x80 {
  5495. break
  5496. }
  5497. }
  5498. fieldNum := int32(wire >> 3)
  5499. wireType := int(wire & 0x7)
  5500. if wireType == 4 {
  5501. return fmt.Errorf("proto: PidsResponse: wiretype end group for non-group")
  5502. }
  5503. if fieldNum <= 0 {
  5504. return fmt.Errorf("proto: PidsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5505. }
  5506. switch fieldNum {
  5507. case 1:
  5508. if wireType != 2 {
  5509. return fmt.Errorf("proto: wrong wireType = %d for field Processes", wireType)
  5510. }
  5511. var msglen int
  5512. for shift := uint(0); ; shift += 7 {
  5513. if shift >= 64 {
  5514. return ErrIntOverflowShim
  5515. }
  5516. if iNdEx >= l {
  5517. return io.ErrUnexpectedEOF
  5518. }
  5519. b := dAtA[iNdEx]
  5520. iNdEx++
  5521. msglen |= int(b&0x7F) << shift
  5522. if b < 0x80 {
  5523. break
  5524. }
  5525. }
  5526. if msglen < 0 {
  5527. return ErrInvalidLengthShim
  5528. }
  5529. postIndex := iNdEx + msglen
  5530. if postIndex < 0 {
  5531. return ErrInvalidLengthShim
  5532. }
  5533. if postIndex > l {
  5534. return io.ErrUnexpectedEOF
  5535. }
  5536. m.Processes = append(m.Processes, &task.ProcessInfo{})
  5537. if err := m.Processes[len(m.Processes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5538. return err
  5539. }
  5540. iNdEx = postIndex
  5541. default:
  5542. iNdEx = preIndex
  5543. skippy, err := skipShim(dAtA[iNdEx:])
  5544. if err != nil {
  5545. return err
  5546. }
  5547. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5548. return ErrInvalidLengthShim
  5549. }
  5550. if (iNdEx + skippy) > l {
  5551. return io.ErrUnexpectedEOF
  5552. }
  5553. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5554. iNdEx += skippy
  5555. }
  5556. }
  5557. if iNdEx > l {
  5558. return io.ErrUnexpectedEOF
  5559. }
  5560. return nil
  5561. }
  5562. func (m *CheckpointTaskRequest) Unmarshal(dAtA []byte) error {
  5563. l := len(dAtA)
  5564. iNdEx := 0
  5565. for iNdEx < l {
  5566. preIndex := iNdEx
  5567. var wire uint64
  5568. for shift := uint(0); ; shift += 7 {
  5569. if shift >= 64 {
  5570. return ErrIntOverflowShim
  5571. }
  5572. if iNdEx >= l {
  5573. return io.ErrUnexpectedEOF
  5574. }
  5575. b := dAtA[iNdEx]
  5576. iNdEx++
  5577. wire |= uint64(b&0x7F) << shift
  5578. if b < 0x80 {
  5579. break
  5580. }
  5581. }
  5582. fieldNum := int32(wire >> 3)
  5583. wireType := int(wire & 0x7)
  5584. if wireType == 4 {
  5585. return fmt.Errorf("proto: CheckpointTaskRequest: wiretype end group for non-group")
  5586. }
  5587. if fieldNum <= 0 {
  5588. return fmt.Errorf("proto: CheckpointTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5589. }
  5590. switch fieldNum {
  5591. case 1:
  5592. if wireType != 2 {
  5593. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  5594. }
  5595. var stringLen uint64
  5596. for shift := uint(0); ; shift += 7 {
  5597. if shift >= 64 {
  5598. return ErrIntOverflowShim
  5599. }
  5600. if iNdEx >= l {
  5601. return io.ErrUnexpectedEOF
  5602. }
  5603. b := dAtA[iNdEx]
  5604. iNdEx++
  5605. stringLen |= uint64(b&0x7F) << shift
  5606. if b < 0x80 {
  5607. break
  5608. }
  5609. }
  5610. intStringLen := int(stringLen)
  5611. if intStringLen < 0 {
  5612. return ErrInvalidLengthShim
  5613. }
  5614. postIndex := iNdEx + intStringLen
  5615. if postIndex < 0 {
  5616. return ErrInvalidLengthShim
  5617. }
  5618. if postIndex > l {
  5619. return io.ErrUnexpectedEOF
  5620. }
  5621. m.ID = string(dAtA[iNdEx:postIndex])
  5622. iNdEx = postIndex
  5623. case 2:
  5624. if wireType != 2 {
  5625. return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
  5626. }
  5627. var stringLen uint64
  5628. for shift := uint(0); ; shift += 7 {
  5629. if shift >= 64 {
  5630. return ErrIntOverflowShim
  5631. }
  5632. if iNdEx >= l {
  5633. return io.ErrUnexpectedEOF
  5634. }
  5635. b := dAtA[iNdEx]
  5636. iNdEx++
  5637. stringLen |= uint64(b&0x7F) << shift
  5638. if b < 0x80 {
  5639. break
  5640. }
  5641. }
  5642. intStringLen := int(stringLen)
  5643. if intStringLen < 0 {
  5644. return ErrInvalidLengthShim
  5645. }
  5646. postIndex := iNdEx + intStringLen
  5647. if postIndex < 0 {
  5648. return ErrInvalidLengthShim
  5649. }
  5650. if postIndex > l {
  5651. return io.ErrUnexpectedEOF
  5652. }
  5653. m.Path = string(dAtA[iNdEx:postIndex])
  5654. iNdEx = postIndex
  5655. case 3:
  5656. if wireType != 2 {
  5657. return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
  5658. }
  5659. var msglen int
  5660. for shift := uint(0); ; shift += 7 {
  5661. if shift >= 64 {
  5662. return ErrIntOverflowShim
  5663. }
  5664. if iNdEx >= l {
  5665. return io.ErrUnexpectedEOF
  5666. }
  5667. b := dAtA[iNdEx]
  5668. iNdEx++
  5669. msglen |= int(b&0x7F) << shift
  5670. if b < 0x80 {
  5671. break
  5672. }
  5673. }
  5674. if msglen < 0 {
  5675. return ErrInvalidLengthShim
  5676. }
  5677. postIndex := iNdEx + msglen
  5678. if postIndex < 0 {
  5679. return ErrInvalidLengthShim
  5680. }
  5681. if postIndex > l {
  5682. return io.ErrUnexpectedEOF
  5683. }
  5684. if m.Options == nil {
  5685. m.Options = &types1.Any{}
  5686. }
  5687. if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5688. return err
  5689. }
  5690. iNdEx = postIndex
  5691. default:
  5692. iNdEx = preIndex
  5693. skippy, err := skipShim(dAtA[iNdEx:])
  5694. if err != nil {
  5695. return err
  5696. }
  5697. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5698. return ErrInvalidLengthShim
  5699. }
  5700. if (iNdEx + skippy) > l {
  5701. return io.ErrUnexpectedEOF
  5702. }
  5703. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5704. iNdEx += skippy
  5705. }
  5706. }
  5707. if iNdEx > l {
  5708. return io.ErrUnexpectedEOF
  5709. }
  5710. return nil
  5711. }
  5712. func (m *UpdateTaskRequest) Unmarshal(dAtA []byte) error {
  5713. l := len(dAtA)
  5714. iNdEx := 0
  5715. for iNdEx < l {
  5716. preIndex := iNdEx
  5717. var wire uint64
  5718. for shift := uint(0); ; shift += 7 {
  5719. if shift >= 64 {
  5720. return ErrIntOverflowShim
  5721. }
  5722. if iNdEx >= l {
  5723. return io.ErrUnexpectedEOF
  5724. }
  5725. b := dAtA[iNdEx]
  5726. iNdEx++
  5727. wire |= uint64(b&0x7F) << shift
  5728. if b < 0x80 {
  5729. break
  5730. }
  5731. }
  5732. fieldNum := int32(wire >> 3)
  5733. wireType := int(wire & 0x7)
  5734. if wireType == 4 {
  5735. return fmt.Errorf("proto: UpdateTaskRequest: wiretype end group for non-group")
  5736. }
  5737. if fieldNum <= 0 {
  5738. return fmt.Errorf("proto: UpdateTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5739. }
  5740. switch fieldNum {
  5741. case 1:
  5742. if wireType != 2 {
  5743. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  5744. }
  5745. var stringLen uint64
  5746. for shift := uint(0); ; shift += 7 {
  5747. if shift >= 64 {
  5748. return ErrIntOverflowShim
  5749. }
  5750. if iNdEx >= l {
  5751. return io.ErrUnexpectedEOF
  5752. }
  5753. b := dAtA[iNdEx]
  5754. iNdEx++
  5755. stringLen |= uint64(b&0x7F) << shift
  5756. if b < 0x80 {
  5757. break
  5758. }
  5759. }
  5760. intStringLen := int(stringLen)
  5761. if intStringLen < 0 {
  5762. return ErrInvalidLengthShim
  5763. }
  5764. postIndex := iNdEx + intStringLen
  5765. if postIndex < 0 {
  5766. return ErrInvalidLengthShim
  5767. }
  5768. if postIndex > l {
  5769. return io.ErrUnexpectedEOF
  5770. }
  5771. m.ID = string(dAtA[iNdEx:postIndex])
  5772. iNdEx = postIndex
  5773. case 2:
  5774. if wireType != 2 {
  5775. return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
  5776. }
  5777. var msglen int
  5778. for shift := uint(0); ; shift += 7 {
  5779. if shift >= 64 {
  5780. return ErrIntOverflowShim
  5781. }
  5782. if iNdEx >= l {
  5783. return io.ErrUnexpectedEOF
  5784. }
  5785. b := dAtA[iNdEx]
  5786. iNdEx++
  5787. msglen |= int(b&0x7F) << shift
  5788. if b < 0x80 {
  5789. break
  5790. }
  5791. }
  5792. if msglen < 0 {
  5793. return ErrInvalidLengthShim
  5794. }
  5795. postIndex := iNdEx + msglen
  5796. if postIndex < 0 {
  5797. return ErrInvalidLengthShim
  5798. }
  5799. if postIndex > l {
  5800. return io.ErrUnexpectedEOF
  5801. }
  5802. if m.Resources == nil {
  5803. m.Resources = &types1.Any{}
  5804. }
  5805. if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5806. return err
  5807. }
  5808. iNdEx = postIndex
  5809. case 3:
  5810. if wireType != 2 {
  5811. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  5812. }
  5813. var msglen int
  5814. for shift := uint(0); ; shift += 7 {
  5815. if shift >= 64 {
  5816. return ErrIntOverflowShim
  5817. }
  5818. if iNdEx >= l {
  5819. return io.ErrUnexpectedEOF
  5820. }
  5821. b := dAtA[iNdEx]
  5822. iNdEx++
  5823. msglen |= int(b&0x7F) << shift
  5824. if b < 0x80 {
  5825. break
  5826. }
  5827. }
  5828. if msglen < 0 {
  5829. return ErrInvalidLengthShim
  5830. }
  5831. postIndex := iNdEx + msglen
  5832. if postIndex < 0 {
  5833. return ErrInvalidLengthShim
  5834. }
  5835. if postIndex > l {
  5836. return io.ErrUnexpectedEOF
  5837. }
  5838. if m.Annotations == nil {
  5839. m.Annotations = make(map[string]string)
  5840. }
  5841. var mapkey string
  5842. var mapvalue string
  5843. for iNdEx < postIndex {
  5844. entryPreIndex := iNdEx
  5845. var wire uint64
  5846. for shift := uint(0); ; shift += 7 {
  5847. if shift >= 64 {
  5848. return ErrIntOverflowShim
  5849. }
  5850. if iNdEx >= l {
  5851. return io.ErrUnexpectedEOF
  5852. }
  5853. b := dAtA[iNdEx]
  5854. iNdEx++
  5855. wire |= uint64(b&0x7F) << shift
  5856. if b < 0x80 {
  5857. break
  5858. }
  5859. }
  5860. fieldNum := int32(wire >> 3)
  5861. if fieldNum == 1 {
  5862. var stringLenmapkey uint64
  5863. for shift := uint(0); ; shift += 7 {
  5864. if shift >= 64 {
  5865. return ErrIntOverflowShim
  5866. }
  5867. if iNdEx >= l {
  5868. return io.ErrUnexpectedEOF
  5869. }
  5870. b := dAtA[iNdEx]
  5871. iNdEx++
  5872. stringLenmapkey |= uint64(b&0x7F) << shift
  5873. if b < 0x80 {
  5874. break
  5875. }
  5876. }
  5877. intStringLenmapkey := int(stringLenmapkey)
  5878. if intStringLenmapkey < 0 {
  5879. return ErrInvalidLengthShim
  5880. }
  5881. postStringIndexmapkey := iNdEx + intStringLenmapkey
  5882. if postStringIndexmapkey < 0 {
  5883. return ErrInvalidLengthShim
  5884. }
  5885. if postStringIndexmapkey > l {
  5886. return io.ErrUnexpectedEOF
  5887. }
  5888. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  5889. iNdEx = postStringIndexmapkey
  5890. } else if fieldNum == 2 {
  5891. var stringLenmapvalue uint64
  5892. for shift := uint(0); ; shift += 7 {
  5893. if shift >= 64 {
  5894. return ErrIntOverflowShim
  5895. }
  5896. if iNdEx >= l {
  5897. return io.ErrUnexpectedEOF
  5898. }
  5899. b := dAtA[iNdEx]
  5900. iNdEx++
  5901. stringLenmapvalue |= uint64(b&0x7F) << shift
  5902. if b < 0x80 {
  5903. break
  5904. }
  5905. }
  5906. intStringLenmapvalue := int(stringLenmapvalue)
  5907. if intStringLenmapvalue < 0 {
  5908. return ErrInvalidLengthShim
  5909. }
  5910. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  5911. if postStringIndexmapvalue < 0 {
  5912. return ErrInvalidLengthShim
  5913. }
  5914. if postStringIndexmapvalue > l {
  5915. return io.ErrUnexpectedEOF
  5916. }
  5917. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  5918. iNdEx = postStringIndexmapvalue
  5919. } else {
  5920. iNdEx = entryPreIndex
  5921. skippy, err := skipShim(dAtA[iNdEx:])
  5922. if err != nil {
  5923. return err
  5924. }
  5925. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5926. return ErrInvalidLengthShim
  5927. }
  5928. if (iNdEx + skippy) > postIndex {
  5929. return io.ErrUnexpectedEOF
  5930. }
  5931. iNdEx += skippy
  5932. }
  5933. }
  5934. m.Annotations[mapkey] = mapvalue
  5935. iNdEx = postIndex
  5936. default:
  5937. iNdEx = preIndex
  5938. skippy, err := skipShim(dAtA[iNdEx:])
  5939. if err != nil {
  5940. return err
  5941. }
  5942. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5943. return ErrInvalidLengthShim
  5944. }
  5945. if (iNdEx + skippy) > l {
  5946. return io.ErrUnexpectedEOF
  5947. }
  5948. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5949. iNdEx += skippy
  5950. }
  5951. }
  5952. if iNdEx > l {
  5953. return io.ErrUnexpectedEOF
  5954. }
  5955. return nil
  5956. }
  5957. func (m *StartRequest) Unmarshal(dAtA []byte) error {
  5958. l := len(dAtA)
  5959. iNdEx := 0
  5960. for iNdEx < l {
  5961. preIndex := iNdEx
  5962. var wire uint64
  5963. for shift := uint(0); ; shift += 7 {
  5964. if shift >= 64 {
  5965. return ErrIntOverflowShim
  5966. }
  5967. if iNdEx >= l {
  5968. return io.ErrUnexpectedEOF
  5969. }
  5970. b := dAtA[iNdEx]
  5971. iNdEx++
  5972. wire |= uint64(b&0x7F) << shift
  5973. if b < 0x80 {
  5974. break
  5975. }
  5976. }
  5977. fieldNum := int32(wire >> 3)
  5978. wireType := int(wire & 0x7)
  5979. if wireType == 4 {
  5980. return fmt.Errorf("proto: StartRequest: wiretype end group for non-group")
  5981. }
  5982. if fieldNum <= 0 {
  5983. return fmt.Errorf("proto: StartRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5984. }
  5985. switch fieldNum {
  5986. case 1:
  5987. if wireType != 2 {
  5988. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  5989. }
  5990. var stringLen uint64
  5991. for shift := uint(0); ; shift += 7 {
  5992. if shift >= 64 {
  5993. return ErrIntOverflowShim
  5994. }
  5995. if iNdEx >= l {
  5996. return io.ErrUnexpectedEOF
  5997. }
  5998. b := dAtA[iNdEx]
  5999. iNdEx++
  6000. stringLen |= uint64(b&0x7F) << shift
  6001. if b < 0x80 {
  6002. break
  6003. }
  6004. }
  6005. intStringLen := int(stringLen)
  6006. if intStringLen < 0 {
  6007. return ErrInvalidLengthShim
  6008. }
  6009. postIndex := iNdEx + intStringLen
  6010. if postIndex < 0 {
  6011. return ErrInvalidLengthShim
  6012. }
  6013. if postIndex > l {
  6014. return io.ErrUnexpectedEOF
  6015. }
  6016. m.ID = string(dAtA[iNdEx:postIndex])
  6017. iNdEx = postIndex
  6018. case 2:
  6019. if wireType != 2 {
  6020. return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
  6021. }
  6022. var stringLen uint64
  6023. for shift := uint(0); ; shift += 7 {
  6024. if shift >= 64 {
  6025. return ErrIntOverflowShim
  6026. }
  6027. if iNdEx >= l {
  6028. return io.ErrUnexpectedEOF
  6029. }
  6030. b := dAtA[iNdEx]
  6031. iNdEx++
  6032. stringLen |= uint64(b&0x7F) << shift
  6033. if b < 0x80 {
  6034. break
  6035. }
  6036. }
  6037. intStringLen := int(stringLen)
  6038. if intStringLen < 0 {
  6039. return ErrInvalidLengthShim
  6040. }
  6041. postIndex := iNdEx + intStringLen
  6042. if postIndex < 0 {
  6043. return ErrInvalidLengthShim
  6044. }
  6045. if postIndex > l {
  6046. return io.ErrUnexpectedEOF
  6047. }
  6048. m.ExecID = string(dAtA[iNdEx:postIndex])
  6049. iNdEx = postIndex
  6050. default:
  6051. iNdEx = preIndex
  6052. skippy, err := skipShim(dAtA[iNdEx:])
  6053. if err != nil {
  6054. return err
  6055. }
  6056. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6057. return ErrInvalidLengthShim
  6058. }
  6059. if (iNdEx + skippy) > l {
  6060. return io.ErrUnexpectedEOF
  6061. }
  6062. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6063. iNdEx += skippy
  6064. }
  6065. }
  6066. if iNdEx > l {
  6067. return io.ErrUnexpectedEOF
  6068. }
  6069. return nil
  6070. }
  6071. func (m *StartResponse) Unmarshal(dAtA []byte) error {
  6072. l := len(dAtA)
  6073. iNdEx := 0
  6074. for iNdEx < l {
  6075. preIndex := iNdEx
  6076. var wire uint64
  6077. for shift := uint(0); ; shift += 7 {
  6078. if shift >= 64 {
  6079. return ErrIntOverflowShim
  6080. }
  6081. if iNdEx >= l {
  6082. return io.ErrUnexpectedEOF
  6083. }
  6084. b := dAtA[iNdEx]
  6085. iNdEx++
  6086. wire |= uint64(b&0x7F) << shift
  6087. if b < 0x80 {
  6088. break
  6089. }
  6090. }
  6091. fieldNum := int32(wire >> 3)
  6092. wireType := int(wire & 0x7)
  6093. if wireType == 4 {
  6094. return fmt.Errorf("proto: StartResponse: wiretype end group for non-group")
  6095. }
  6096. if fieldNum <= 0 {
  6097. return fmt.Errorf("proto: StartResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6098. }
  6099. switch fieldNum {
  6100. case 1:
  6101. if wireType != 0 {
  6102. return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
  6103. }
  6104. m.Pid = 0
  6105. for shift := uint(0); ; shift += 7 {
  6106. if shift >= 64 {
  6107. return ErrIntOverflowShim
  6108. }
  6109. if iNdEx >= l {
  6110. return io.ErrUnexpectedEOF
  6111. }
  6112. b := dAtA[iNdEx]
  6113. iNdEx++
  6114. m.Pid |= uint32(b&0x7F) << shift
  6115. if b < 0x80 {
  6116. break
  6117. }
  6118. }
  6119. default:
  6120. iNdEx = preIndex
  6121. skippy, err := skipShim(dAtA[iNdEx:])
  6122. if err != nil {
  6123. return err
  6124. }
  6125. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6126. return ErrInvalidLengthShim
  6127. }
  6128. if (iNdEx + skippy) > l {
  6129. return io.ErrUnexpectedEOF
  6130. }
  6131. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6132. iNdEx += skippy
  6133. }
  6134. }
  6135. if iNdEx > l {
  6136. return io.ErrUnexpectedEOF
  6137. }
  6138. return nil
  6139. }
  6140. func (m *WaitRequest) Unmarshal(dAtA []byte) error {
  6141. l := len(dAtA)
  6142. iNdEx := 0
  6143. for iNdEx < l {
  6144. preIndex := iNdEx
  6145. var wire uint64
  6146. for shift := uint(0); ; shift += 7 {
  6147. if shift >= 64 {
  6148. return ErrIntOverflowShim
  6149. }
  6150. if iNdEx >= l {
  6151. return io.ErrUnexpectedEOF
  6152. }
  6153. b := dAtA[iNdEx]
  6154. iNdEx++
  6155. wire |= uint64(b&0x7F) << shift
  6156. if b < 0x80 {
  6157. break
  6158. }
  6159. }
  6160. fieldNum := int32(wire >> 3)
  6161. wireType := int(wire & 0x7)
  6162. if wireType == 4 {
  6163. return fmt.Errorf("proto: WaitRequest: wiretype end group for non-group")
  6164. }
  6165. if fieldNum <= 0 {
  6166. return fmt.Errorf("proto: WaitRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6167. }
  6168. switch fieldNum {
  6169. case 1:
  6170. if wireType != 2 {
  6171. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  6172. }
  6173. var stringLen uint64
  6174. for shift := uint(0); ; shift += 7 {
  6175. if shift >= 64 {
  6176. return ErrIntOverflowShim
  6177. }
  6178. if iNdEx >= l {
  6179. return io.ErrUnexpectedEOF
  6180. }
  6181. b := dAtA[iNdEx]
  6182. iNdEx++
  6183. stringLen |= uint64(b&0x7F) << shift
  6184. if b < 0x80 {
  6185. break
  6186. }
  6187. }
  6188. intStringLen := int(stringLen)
  6189. if intStringLen < 0 {
  6190. return ErrInvalidLengthShim
  6191. }
  6192. postIndex := iNdEx + intStringLen
  6193. if postIndex < 0 {
  6194. return ErrInvalidLengthShim
  6195. }
  6196. if postIndex > l {
  6197. return io.ErrUnexpectedEOF
  6198. }
  6199. m.ID = string(dAtA[iNdEx:postIndex])
  6200. iNdEx = postIndex
  6201. case 2:
  6202. if wireType != 2 {
  6203. return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
  6204. }
  6205. var stringLen uint64
  6206. for shift := uint(0); ; shift += 7 {
  6207. if shift >= 64 {
  6208. return ErrIntOverflowShim
  6209. }
  6210. if iNdEx >= l {
  6211. return io.ErrUnexpectedEOF
  6212. }
  6213. b := dAtA[iNdEx]
  6214. iNdEx++
  6215. stringLen |= uint64(b&0x7F) << shift
  6216. if b < 0x80 {
  6217. break
  6218. }
  6219. }
  6220. intStringLen := int(stringLen)
  6221. if intStringLen < 0 {
  6222. return ErrInvalidLengthShim
  6223. }
  6224. postIndex := iNdEx + intStringLen
  6225. if postIndex < 0 {
  6226. return ErrInvalidLengthShim
  6227. }
  6228. if postIndex > l {
  6229. return io.ErrUnexpectedEOF
  6230. }
  6231. m.ExecID = string(dAtA[iNdEx:postIndex])
  6232. iNdEx = postIndex
  6233. default:
  6234. iNdEx = preIndex
  6235. skippy, err := skipShim(dAtA[iNdEx:])
  6236. if err != nil {
  6237. return err
  6238. }
  6239. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6240. return ErrInvalidLengthShim
  6241. }
  6242. if (iNdEx + skippy) > l {
  6243. return io.ErrUnexpectedEOF
  6244. }
  6245. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6246. iNdEx += skippy
  6247. }
  6248. }
  6249. if iNdEx > l {
  6250. return io.ErrUnexpectedEOF
  6251. }
  6252. return nil
  6253. }
  6254. func (m *WaitResponse) Unmarshal(dAtA []byte) error {
  6255. l := len(dAtA)
  6256. iNdEx := 0
  6257. for iNdEx < l {
  6258. preIndex := iNdEx
  6259. var wire uint64
  6260. for shift := uint(0); ; shift += 7 {
  6261. if shift >= 64 {
  6262. return ErrIntOverflowShim
  6263. }
  6264. if iNdEx >= l {
  6265. return io.ErrUnexpectedEOF
  6266. }
  6267. b := dAtA[iNdEx]
  6268. iNdEx++
  6269. wire |= uint64(b&0x7F) << shift
  6270. if b < 0x80 {
  6271. break
  6272. }
  6273. }
  6274. fieldNum := int32(wire >> 3)
  6275. wireType := int(wire & 0x7)
  6276. if wireType == 4 {
  6277. return fmt.Errorf("proto: WaitResponse: wiretype end group for non-group")
  6278. }
  6279. if fieldNum <= 0 {
  6280. return fmt.Errorf("proto: WaitResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6281. }
  6282. switch fieldNum {
  6283. case 1:
  6284. if wireType != 0 {
  6285. return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType)
  6286. }
  6287. m.ExitStatus = 0
  6288. for shift := uint(0); ; shift += 7 {
  6289. if shift >= 64 {
  6290. return ErrIntOverflowShim
  6291. }
  6292. if iNdEx >= l {
  6293. return io.ErrUnexpectedEOF
  6294. }
  6295. b := dAtA[iNdEx]
  6296. iNdEx++
  6297. m.ExitStatus |= uint32(b&0x7F) << shift
  6298. if b < 0x80 {
  6299. break
  6300. }
  6301. }
  6302. case 2:
  6303. if wireType != 2 {
  6304. return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType)
  6305. }
  6306. var msglen int
  6307. for shift := uint(0); ; shift += 7 {
  6308. if shift >= 64 {
  6309. return ErrIntOverflowShim
  6310. }
  6311. if iNdEx >= l {
  6312. return io.ErrUnexpectedEOF
  6313. }
  6314. b := dAtA[iNdEx]
  6315. iNdEx++
  6316. msglen |= int(b&0x7F) << shift
  6317. if b < 0x80 {
  6318. break
  6319. }
  6320. }
  6321. if msglen < 0 {
  6322. return ErrInvalidLengthShim
  6323. }
  6324. postIndex := iNdEx + msglen
  6325. if postIndex < 0 {
  6326. return ErrInvalidLengthShim
  6327. }
  6328. if postIndex > l {
  6329. return io.ErrUnexpectedEOF
  6330. }
  6331. if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil {
  6332. return err
  6333. }
  6334. iNdEx = postIndex
  6335. default:
  6336. iNdEx = preIndex
  6337. skippy, err := skipShim(dAtA[iNdEx:])
  6338. if err != nil {
  6339. return err
  6340. }
  6341. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6342. return ErrInvalidLengthShim
  6343. }
  6344. if (iNdEx + skippy) > l {
  6345. return io.ErrUnexpectedEOF
  6346. }
  6347. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6348. iNdEx += skippy
  6349. }
  6350. }
  6351. if iNdEx > l {
  6352. return io.ErrUnexpectedEOF
  6353. }
  6354. return nil
  6355. }
  6356. func (m *StatsRequest) Unmarshal(dAtA []byte) error {
  6357. l := len(dAtA)
  6358. iNdEx := 0
  6359. for iNdEx < l {
  6360. preIndex := iNdEx
  6361. var wire uint64
  6362. for shift := uint(0); ; shift += 7 {
  6363. if shift >= 64 {
  6364. return ErrIntOverflowShim
  6365. }
  6366. if iNdEx >= l {
  6367. return io.ErrUnexpectedEOF
  6368. }
  6369. b := dAtA[iNdEx]
  6370. iNdEx++
  6371. wire |= uint64(b&0x7F) << shift
  6372. if b < 0x80 {
  6373. break
  6374. }
  6375. }
  6376. fieldNum := int32(wire >> 3)
  6377. wireType := int(wire & 0x7)
  6378. if wireType == 4 {
  6379. return fmt.Errorf("proto: StatsRequest: wiretype end group for non-group")
  6380. }
  6381. if fieldNum <= 0 {
  6382. return fmt.Errorf("proto: StatsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6383. }
  6384. switch fieldNum {
  6385. case 1:
  6386. if wireType != 2 {
  6387. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  6388. }
  6389. var stringLen uint64
  6390. for shift := uint(0); ; shift += 7 {
  6391. if shift >= 64 {
  6392. return ErrIntOverflowShim
  6393. }
  6394. if iNdEx >= l {
  6395. return io.ErrUnexpectedEOF
  6396. }
  6397. b := dAtA[iNdEx]
  6398. iNdEx++
  6399. stringLen |= uint64(b&0x7F) << shift
  6400. if b < 0x80 {
  6401. break
  6402. }
  6403. }
  6404. intStringLen := int(stringLen)
  6405. if intStringLen < 0 {
  6406. return ErrInvalidLengthShim
  6407. }
  6408. postIndex := iNdEx + intStringLen
  6409. if postIndex < 0 {
  6410. return ErrInvalidLengthShim
  6411. }
  6412. if postIndex > l {
  6413. return io.ErrUnexpectedEOF
  6414. }
  6415. m.ID = string(dAtA[iNdEx:postIndex])
  6416. iNdEx = postIndex
  6417. default:
  6418. iNdEx = preIndex
  6419. skippy, err := skipShim(dAtA[iNdEx:])
  6420. if err != nil {
  6421. return err
  6422. }
  6423. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6424. return ErrInvalidLengthShim
  6425. }
  6426. if (iNdEx + skippy) > l {
  6427. return io.ErrUnexpectedEOF
  6428. }
  6429. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6430. iNdEx += skippy
  6431. }
  6432. }
  6433. if iNdEx > l {
  6434. return io.ErrUnexpectedEOF
  6435. }
  6436. return nil
  6437. }
  6438. func (m *StatsResponse) Unmarshal(dAtA []byte) error {
  6439. l := len(dAtA)
  6440. iNdEx := 0
  6441. for iNdEx < l {
  6442. preIndex := iNdEx
  6443. var wire uint64
  6444. for shift := uint(0); ; shift += 7 {
  6445. if shift >= 64 {
  6446. return ErrIntOverflowShim
  6447. }
  6448. if iNdEx >= l {
  6449. return io.ErrUnexpectedEOF
  6450. }
  6451. b := dAtA[iNdEx]
  6452. iNdEx++
  6453. wire |= uint64(b&0x7F) << shift
  6454. if b < 0x80 {
  6455. break
  6456. }
  6457. }
  6458. fieldNum := int32(wire >> 3)
  6459. wireType := int(wire & 0x7)
  6460. if wireType == 4 {
  6461. return fmt.Errorf("proto: StatsResponse: wiretype end group for non-group")
  6462. }
  6463. if fieldNum <= 0 {
  6464. return fmt.Errorf("proto: StatsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6465. }
  6466. switch fieldNum {
  6467. case 1:
  6468. if wireType != 2 {
  6469. return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType)
  6470. }
  6471. var msglen int
  6472. for shift := uint(0); ; shift += 7 {
  6473. if shift >= 64 {
  6474. return ErrIntOverflowShim
  6475. }
  6476. if iNdEx >= l {
  6477. return io.ErrUnexpectedEOF
  6478. }
  6479. b := dAtA[iNdEx]
  6480. iNdEx++
  6481. msglen |= int(b&0x7F) << shift
  6482. if b < 0x80 {
  6483. break
  6484. }
  6485. }
  6486. if msglen < 0 {
  6487. return ErrInvalidLengthShim
  6488. }
  6489. postIndex := iNdEx + msglen
  6490. if postIndex < 0 {
  6491. return ErrInvalidLengthShim
  6492. }
  6493. if postIndex > l {
  6494. return io.ErrUnexpectedEOF
  6495. }
  6496. if m.Stats == nil {
  6497. m.Stats = &types1.Any{}
  6498. }
  6499. if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6500. return err
  6501. }
  6502. iNdEx = postIndex
  6503. default:
  6504. iNdEx = preIndex
  6505. skippy, err := skipShim(dAtA[iNdEx:])
  6506. if err != nil {
  6507. return err
  6508. }
  6509. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6510. return ErrInvalidLengthShim
  6511. }
  6512. if (iNdEx + skippy) > l {
  6513. return io.ErrUnexpectedEOF
  6514. }
  6515. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6516. iNdEx += skippy
  6517. }
  6518. }
  6519. if iNdEx > l {
  6520. return io.ErrUnexpectedEOF
  6521. }
  6522. return nil
  6523. }
  6524. func (m *ConnectRequest) Unmarshal(dAtA []byte) error {
  6525. l := len(dAtA)
  6526. iNdEx := 0
  6527. for iNdEx < l {
  6528. preIndex := iNdEx
  6529. var wire uint64
  6530. for shift := uint(0); ; shift += 7 {
  6531. if shift >= 64 {
  6532. return ErrIntOverflowShim
  6533. }
  6534. if iNdEx >= l {
  6535. return io.ErrUnexpectedEOF
  6536. }
  6537. b := dAtA[iNdEx]
  6538. iNdEx++
  6539. wire |= uint64(b&0x7F) << shift
  6540. if b < 0x80 {
  6541. break
  6542. }
  6543. }
  6544. fieldNum := int32(wire >> 3)
  6545. wireType := int(wire & 0x7)
  6546. if wireType == 4 {
  6547. return fmt.Errorf("proto: ConnectRequest: wiretype end group for non-group")
  6548. }
  6549. if fieldNum <= 0 {
  6550. return fmt.Errorf("proto: ConnectRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6551. }
  6552. switch fieldNum {
  6553. case 1:
  6554. if wireType != 2 {
  6555. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  6556. }
  6557. var stringLen uint64
  6558. for shift := uint(0); ; shift += 7 {
  6559. if shift >= 64 {
  6560. return ErrIntOverflowShim
  6561. }
  6562. if iNdEx >= l {
  6563. return io.ErrUnexpectedEOF
  6564. }
  6565. b := dAtA[iNdEx]
  6566. iNdEx++
  6567. stringLen |= uint64(b&0x7F) << shift
  6568. if b < 0x80 {
  6569. break
  6570. }
  6571. }
  6572. intStringLen := int(stringLen)
  6573. if intStringLen < 0 {
  6574. return ErrInvalidLengthShim
  6575. }
  6576. postIndex := iNdEx + intStringLen
  6577. if postIndex < 0 {
  6578. return ErrInvalidLengthShim
  6579. }
  6580. if postIndex > l {
  6581. return io.ErrUnexpectedEOF
  6582. }
  6583. m.ID = string(dAtA[iNdEx:postIndex])
  6584. iNdEx = postIndex
  6585. default:
  6586. iNdEx = preIndex
  6587. skippy, err := skipShim(dAtA[iNdEx:])
  6588. if err != nil {
  6589. return err
  6590. }
  6591. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6592. return ErrInvalidLengthShim
  6593. }
  6594. if (iNdEx + skippy) > l {
  6595. return io.ErrUnexpectedEOF
  6596. }
  6597. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6598. iNdEx += skippy
  6599. }
  6600. }
  6601. if iNdEx > l {
  6602. return io.ErrUnexpectedEOF
  6603. }
  6604. return nil
  6605. }
  6606. func (m *ConnectResponse) Unmarshal(dAtA []byte) error {
  6607. l := len(dAtA)
  6608. iNdEx := 0
  6609. for iNdEx < l {
  6610. preIndex := iNdEx
  6611. var wire uint64
  6612. for shift := uint(0); ; shift += 7 {
  6613. if shift >= 64 {
  6614. return ErrIntOverflowShim
  6615. }
  6616. if iNdEx >= l {
  6617. return io.ErrUnexpectedEOF
  6618. }
  6619. b := dAtA[iNdEx]
  6620. iNdEx++
  6621. wire |= uint64(b&0x7F) << shift
  6622. if b < 0x80 {
  6623. break
  6624. }
  6625. }
  6626. fieldNum := int32(wire >> 3)
  6627. wireType := int(wire & 0x7)
  6628. if wireType == 4 {
  6629. return fmt.Errorf("proto: ConnectResponse: wiretype end group for non-group")
  6630. }
  6631. if fieldNum <= 0 {
  6632. return fmt.Errorf("proto: ConnectResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6633. }
  6634. switch fieldNum {
  6635. case 1:
  6636. if wireType != 0 {
  6637. return fmt.Errorf("proto: wrong wireType = %d for field ShimPid", wireType)
  6638. }
  6639. m.ShimPid = 0
  6640. for shift := uint(0); ; shift += 7 {
  6641. if shift >= 64 {
  6642. return ErrIntOverflowShim
  6643. }
  6644. if iNdEx >= l {
  6645. return io.ErrUnexpectedEOF
  6646. }
  6647. b := dAtA[iNdEx]
  6648. iNdEx++
  6649. m.ShimPid |= uint32(b&0x7F) << shift
  6650. if b < 0x80 {
  6651. break
  6652. }
  6653. }
  6654. case 2:
  6655. if wireType != 0 {
  6656. return fmt.Errorf("proto: wrong wireType = %d for field TaskPid", wireType)
  6657. }
  6658. m.TaskPid = 0
  6659. for shift := uint(0); ; shift += 7 {
  6660. if shift >= 64 {
  6661. return ErrIntOverflowShim
  6662. }
  6663. if iNdEx >= l {
  6664. return io.ErrUnexpectedEOF
  6665. }
  6666. b := dAtA[iNdEx]
  6667. iNdEx++
  6668. m.TaskPid |= uint32(b&0x7F) << shift
  6669. if b < 0x80 {
  6670. break
  6671. }
  6672. }
  6673. case 3:
  6674. if wireType != 2 {
  6675. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  6676. }
  6677. var stringLen uint64
  6678. for shift := uint(0); ; shift += 7 {
  6679. if shift >= 64 {
  6680. return ErrIntOverflowShim
  6681. }
  6682. if iNdEx >= l {
  6683. return io.ErrUnexpectedEOF
  6684. }
  6685. b := dAtA[iNdEx]
  6686. iNdEx++
  6687. stringLen |= uint64(b&0x7F) << shift
  6688. if b < 0x80 {
  6689. break
  6690. }
  6691. }
  6692. intStringLen := int(stringLen)
  6693. if intStringLen < 0 {
  6694. return ErrInvalidLengthShim
  6695. }
  6696. postIndex := iNdEx + intStringLen
  6697. if postIndex < 0 {
  6698. return ErrInvalidLengthShim
  6699. }
  6700. if postIndex > l {
  6701. return io.ErrUnexpectedEOF
  6702. }
  6703. m.Version = string(dAtA[iNdEx:postIndex])
  6704. iNdEx = postIndex
  6705. default:
  6706. iNdEx = preIndex
  6707. skippy, err := skipShim(dAtA[iNdEx:])
  6708. if err != nil {
  6709. return err
  6710. }
  6711. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6712. return ErrInvalidLengthShim
  6713. }
  6714. if (iNdEx + skippy) > l {
  6715. return io.ErrUnexpectedEOF
  6716. }
  6717. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6718. iNdEx += skippy
  6719. }
  6720. }
  6721. if iNdEx > l {
  6722. return io.ErrUnexpectedEOF
  6723. }
  6724. return nil
  6725. }
  6726. func (m *ShutdownRequest) Unmarshal(dAtA []byte) error {
  6727. l := len(dAtA)
  6728. iNdEx := 0
  6729. for iNdEx < l {
  6730. preIndex := iNdEx
  6731. var wire uint64
  6732. for shift := uint(0); ; shift += 7 {
  6733. if shift >= 64 {
  6734. return ErrIntOverflowShim
  6735. }
  6736. if iNdEx >= l {
  6737. return io.ErrUnexpectedEOF
  6738. }
  6739. b := dAtA[iNdEx]
  6740. iNdEx++
  6741. wire |= uint64(b&0x7F) << shift
  6742. if b < 0x80 {
  6743. break
  6744. }
  6745. }
  6746. fieldNum := int32(wire >> 3)
  6747. wireType := int(wire & 0x7)
  6748. if wireType == 4 {
  6749. return fmt.Errorf("proto: ShutdownRequest: wiretype end group for non-group")
  6750. }
  6751. if fieldNum <= 0 {
  6752. return fmt.Errorf("proto: ShutdownRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6753. }
  6754. switch fieldNum {
  6755. case 1:
  6756. if wireType != 2 {
  6757. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  6758. }
  6759. var stringLen uint64
  6760. for shift := uint(0); ; shift += 7 {
  6761. if shift >= 64 {
  6762. return ErrIntOverflowShim
  6763. }
  6764. if iNdEx >= l {
  6765. return io.ErrUnexpectedEOF
  6766. }
  6767. b := dAtA[iNdEx]
  6768. iNdEx++
  6769. stringLen |= uint64(b&0x7F) << shift
  6770. if b < 0x80 {
  6771. break
  6772. }
  6773. }
  6774. intStringLen := int(stringLen)
  6775. if intStringLen < 0 {
  6776. return ErrInvalidLengthShim
  6777. }
  6778. postIndex := iNdEx + intStringLen
  6779. if postIndex < 0 {
  6780. return ErrInvalidLengthShim
  6781. }
  6782. if postIndex > l {
  6783. return io.ErrUnexpectedEOF
  6784. }
  6785. m.ID = string(dAtA[iNdEx:postIndex])
  6786. iNdEx = postIndex
  6787. case 2:
  6788. if wireType != 0 {
  6789. return fmt.Errorf("proto: wrong wireType = %d for field Now", wireType)
  6790. }
  6791. var v int
  6792. for shift := uint(0); ; shift += 7 {
  6793. if shift >= 64 {
  6794. return ErrIntOverflowShim
  6795. }
  6796. if iNdEx >= l {
  6797. return io.ErrUnexpectedEOF
  6798. }
  6799. b := dAtA[iNdEx]
  6800. iNdEx++
  6801. v |= int(b&0x7F) << shift
  6802. if b < 0x80 {
  6803. break
  6804. }
  6805. }
  6806. m.Now = bool(v != 0)
  6807. default:
  6808. iNdEx = preIndex
  6809. skippy, err := skipShim(dAtA[iNdEx:])
  6810. if err != nil {
  6811. return err
  6812. }
  6813. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6814. return ErrInvalidLengthShim
  6815. }
  6816. if (iNdEx + skippy) > l {
  6817. return io.ErrUnexpectedEOF
  6818. }
  6819. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6820. iNdEx += skippy
  6821. }
  6822. }
  6823. if iNdEx > l {
  6824. return io.ErrUnexpectedEOF
  6825. }
  6826. return nil
  6827. }
  6828. func (m *PauseRequest) Unmarshal(dAtA []byte) error {
  6829. l := len(dAtA)
  6830. iNdEx := 0
  6831. for iNdEx < l {
  6832. preIndex := iNdEx
  6833. var wire uint64
  6834. for shift := uint(0); ; shift += 7 {
  6835. if shift >= 64 {
  6836. return ErrIntOverflowShim
  6837. }
  6838. if iNdEx >= l {
  6839. return io.ErrUnexpectedEOF
  6840. }
  6841. b := dAtA[iNdEx]
  6842. iNdEx++
  6843. wire |= uint64(b&0x7F) << shift
  6844. if b < 0x80 {
  6845. break
  6846. }
  6847. }
  6848. fieldNum := int32(wire >> 3)
  6849. wireType := int(wire & 0x7)
  6850. if wireType == 4 {
  6851. return fmt.Errorf("proto: PauseRequest: wiretype end group for non-group")
  6852. }
  6853. if fieldNum <= 0 {
  6854. return fmt.Errorf("proto: PauseRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6855. }
  6856. switch fieldNum {
  6857. case 1:
  6858. if wireType != 2 {
  6859. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  6860. }
  6861. var stringLen uint64
  6862. for shift := uint(0); ; shift += 7 {
  6863. if shift >= 64 {
  6864. return ErrIntOverflowShim
  6865. }
  6866. if iNdEx >= l {
  6867. return io.ErrUnexpectedEOF
  6868. }
  6869. b := dAtA[iNdEx]
  6870. iNdEx++
  6871. stringLen |= uint64(b&0x7F) << shift
  6872. if b < 0x80 {
  6873. break
  6874. }
  6875. }
  6876. intStringLen := int(stringLen)
  6877. if intStringLen < 0 {
  6878. return ErrInvalidLengthShim
  6879. }
  6880. postIndex := iNdEx + intStringLen
  6881. if postIndex < 0 {
  6882. return ErrInvalidLengthShim
  6883. }
  6884. if postIndex > l {
  6885. return io.ErrUnexpectedEOF
  6886. }
  6887. m.ID = string(dAtA[iNdEx:postIndex])
  6888. iNdEx = postIndex
  6889. default:
  6890. iNdEx = preIndex
  6891. skippy, err := skipShim(dAtA[iNdEx:])
  6892. if err != nil {
  6893. return err
  6894. }
  6895. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6896. return ErrInvalidLengthShim
  6897. }
  6898. if (iNdEx + skippy) > l {
  6899. return io.ErrUnexpectedEOF
  6900. }
  6901. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6902. iNdEx += skippy
  6903. }
  6904. }
  6905. if iNdEx > l {
  6906. return io.ErrUnexpectedEOF
  6907. }
  6908. return nil
  6909. }
  6910. func (m *ResumeRequest) Unmarshal(dAtA []byte) error {
  6911. l := len(dAtA)
  6912. iNdEx := 0
  6913. for iNdEx < l {
  6914. preIndex := iNdEx
  6915. var wire uint64
  6916. for shift := uint(0); ; shift += 7 {
  6917. if shift >= 64 {
  6918. return ErrIntOverflowShim
  6919. }
  6920. if iNdEx >= l {
  6921. return io.ErrUnexpectedEOF
  6922. }
  6923. b := dAtA[iNdEx]
  6924. iNdEx++
  6925. wire |= uint64(b&0x7F) << shift
  6926. if b < 0x80 {
  6927. break
  6928. }
  6929. }
  6930. fieldNum := int32(wire >> 3)
  6931. wireType := int(wire & 0x7)
  6932. if wireType == 4 {
  6933. return fmt.Errorf("proto: ResumeRequest: wiretype end group for non-group")
  6934. }
  6935. if fieldNum <= 0 {
  6936. return fmt.Errorf("proto: ResumeRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6937. }
  6938. switch fieldNum {
  6939. case 1:
  6940. if wireType != 2 {
  6941. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  6942. }
  6943. var stringLen uint64
  6944. for shift := uint(0); ; shift += 7 {
  6945. if shift >= 64 {
  6946. return ErrIntOverflowShim
  6947. }
  6948. if iNdEx >= l {
  6949. return io.ErrUnexpectedEOF
  6950. }
  6951. b := dAtA[iNdEx]
  6952. iNdEx++
  6953. stringLen |= uint64(b&0x7F) << shift
  6954. if b < 0x80 {
  6955. break
  6956. }
  6957. }
  6958. intStringLen := int(stringLen)
  6959. if intStringLen < 0 {
  6960. return ErrInvalidLengthShim
  6961. }
  6962. postIndex := iNdEx + intStringLen
  6963. if postIndex < 0 {
  6964. return ErrInvalidLengthShim
  6965. }
  6966. if postIndex > l {
  6967. return io.ErrUnexpectedEOF
  6968. }
  6969. m.ID = string(dAtA[iNdEx:postIndex])
  6970. iNdEx = postIndex
  6971. default:
  6972. iNdEx = preIndex
  6973. skippy, err := skipShim(dAtA[iNdEx:])
  6974. if err != nil {
  6975. return err
  6976. }
  6977. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6978. return ErrInvalidLengthShim
  6979. }
  6980. if (iNdEx + skippy) > l {
  6981. return io.ErrUnexpectedEOF
  6982. }
  6983. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6984. iNdEx += skippy
  6985. }
  6986. }
  6987. if iNdEx > l {
  6988. return io.ErrUnexpectedEOF
  6989. }
  6990. return nil
  6991. }
  6992. func skipShim(dAtA []byte) (n int, err error) {
  6993. l := len(dAtA)
  6994. iNdEx := 0
  6995. depth := 0
  6996. for iNdEx < l {
  6997. var wire uint64
  6998. for shift := uint(0); ; shift += 7 {
  6999. if shift >= 64 {
  7000. return 0, ErrIntOverflowShim
  7001. }
  7002. if iNdEx >= l {
  7003. return 0, io.ErrUnexpectedEOF
  7004. }
  7005. b := dAtA[iNdEx]
  7006. iNdEx++
  7007. wire |= (uint64(b) & 0x7F) << shift
  7008. if b < 0x80 {
  7009. break
  7010. }
  7011. }
  7012. wireType := int(wire & 0x7)
  7013. switch wireType {
  7014. case 0:
  7015. for shift := uint(0); ; shift += 7 {
  7016. if shift >= 64 {
  7017. return 0, ErrIntOverflowShim
  7018. }
  7019. if iNdEx >= l {
  7020. return 0, io.ErrUnexpectedEOF
  7021. }
  7022. iNdEx++
  7023. if dAtA[iNdEx-1] < 0x80 {
  7024. break
  7025. }
  7026. }
  7027. case 1:
  7028. iNdEx += 8
  7029. case 2:
  7030. var length int
  7031. for shift := uint(0); ; shift += 7 {
  7032. if shift >= 64 {
  7033. return 0, ErrIntOverflowShim
  7034. }
  7035. if iNdEx >= l {
  7036. return 0, io.ErrUnexpectedEOF
  7037. }
  7038. b := dAtA[iNdEx]
  7039. iNdEx++
  7040. length |= (int(b) & 0x7F) << shift
  7041. if b < 0x80 {
  7042. break
  7043. }
  7044. }
  7045. if length < 0 {
  7046. return 0, ErrInvalidLengthShim
  7047. }
  7048. iNdEx += length
  7049. case 3:
  7050. depth++
  7051. case 4:
  7052. if depth == 0 {
  7053. return 0, ErrUnexpectedEndOfGroupShim
  7054. }
  7055. depth--
  7056. case 5:
  7057. iNdEx += 4
  7058. default:
  7059. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  7060. }
  7061. if iNdEx < 0 {
  7062. return 0, ErrInvalidLengthShim
  7063. }
  7064. if depth == 0 {
  7065. return iNdEx, nil
  7066. }
  7067. }
  7068. return 0, io.ErrUnexpectedEOF
  7069. }
  7070. var (
  7071. ErrInvalidLengthShim = fmt.Errorf("proto: negative length found during unmarshaling")
  7072. ErrIntOverflowShim = fmt.Errorf("proto: integer overflow")
  7073. ErrUnexpectedEndOfGroupShim = fmt.Errorf("proto: unexpected end of group")
  7074. )