api.pb.go 1.2 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399
  1. /*
  2. Copyright The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  14. // source: api.proto
  15. package v1
  16. import (
  17. context "context"
  18. fmt "fmt"
  19. _ "github.com/gogo/protobuf/gogoproto"
  20. proto "github.com/gogo/protobuf/proto"
  21. github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
  22. grpc "google.golang.org/grpc"
  23. codes "google.golang.org/grpc/codes"
  24. status "google.golang.org/grpc/status"
  25. io "io"
  26. math "math"
  27. math_bits "math/bits"
  28. reflect "reflect"
  29. strings "strings"
  30. )
  31. // Reference imports to suppress errors if they are not otherwise used.
  32. var _ = proto.Marshal
  33. var _ = fmt.Errorf
  34. var _ = math.Inf
  35. // This is a compile-time assertion to ensure that this generated file
  36. // is compatible with the proto package it is being compiled against.
  37. // A compilation error at this line likely means your copy of the
  38. // proto package needs to be updated.
  39. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  40. type Protocol int32
  41. const (
  42. Protocol_TCP Protocol = 0
  43. Protocol_UDP Protocol = 1
  44. Protocol_SCTP Protocol = 2
  45. )
  46. var Protocol_name = map[int32]string{
  47. 0: "TCP",
  48. 1: "UDP",
  49. 2: "SCTP",
  50. }
  51. var Protocol_value = map[string]int32{
  52. "TCP": 0,
  53. "UDP": 1,
  54. "SCTP": 2,
  55. }
  56. func (x Protocol) String() string {
  57. return proto.EnumName(Protocol_name, int32(x))
  58. }
  59. func (Protocol) EnumDescriptor() ([]byte, []int) {
  60. return fileDescriptor_00212fb1f9d3bf1c, []int{0}
  61. }
  62. type MountPropagation int32
  63. const (
  64. // No mount propagation ("rprivate" in Linux terminology).
  65. MountPropagation_PROPAGATION_PRIVATE MountPropagation = 0
  66. // Mounts get propagated from the host to the container ("rslave" in Linux).
  67. MountPropagation_PROPAGATION_HOST_TO_CONTAINER MountPropagation = 1
  68. // Mounts get propagated from the host to the container and from the
  69. // container to the host ("rshared" in Linux).
  70. MountPropagation_PROPAGATION_BIDIRECTIONAL MountPropagation = 2
  71. )
  72. var MountPropagation_name = map[int32]string{
  73. 0: "PROPAGATION_PRIVATE",
  74. 1: "PROPAGATION_HOST_TO_CONTAINER",
  75. 2: "PROPAGATION_BIDIRECTIONAL",
  76. }
  77. var MountPropagation_value = map[string]int32{
  78. "PROPAGATION_PRIVATE": 0,
  79. "PROPAGATION_HOST_TO_CONTAINER": 1,
  80. "PROPAGATION_BIDIRECTIONAL": 2,
  81. }
  82. func (x MountPropagation) String() string {
  83. return proto.EnumName(MountPropagation_name, int32(x))
  84. }
  85. func (MountPropagation) EnumDescriptor() ([]byte, []int) {
  86. return fileDescriptor_00212fb1f9d3bf1c, []int{1}
  87. }
  88. // A NamespaceMode describes the intended namespace configuration for each
  89. // of the namespaces (Network, PID, IPC) in NamespaceOption. Runtimes should
  90. // map these modes as appropriate for the technology underlying the runtime.
  91. type NamespaceMode int32
  92. const (
  93. // A POD namespace is common to all containers in a pod.
  94. // For example, a container with a PID namespace of POD expects to view
  95. // all of the processes in all of the containers in the pod.
  96. NamespaceMode_POD NamespaceMode = 0
  97. // A CONTAINER namespace is restricted to a single container.
  98. // For example, a container with a PID namespace of CONTAINER expects to
  99. // view only the processes in that container.
  100. NamespaceMode_CONTAINER NamespaceMode = 1
  101. // A NODE namespace is the namespace of the Kubernetes node.
  102. // For example, a container with a PID namespace of NODE expects to view
  103. // all of the processes on the host running the kubelet.
  104. NamespaceMode_NODE NamespaceMode = 2
  105. // TARGET targets the namespace of another container. When this is specified,
  106. // a target_id must be specified in NamespaceOption and refer to a container
  107. // previously created with NamespaceMode CONTAINER. This containers namespace
  108. // will be made to match that of container target_id.
  109. // For example, a container with a PID namespace of TARGET expects to view
  110. // all of the processes that container target_id can view.
  111. NamespaceMode_TARGET NamespaceMode = 3
  112. )
  113. var NamespaceMode_name = map[int32]string{
  114. 0: "POD",
  115. 1: "CONTAINER",
  116. 2: "NODE",
  117. 3: "TARGET",
  118. }
  119. var NamespaceMode_value = map[string]int32{
  120. "POD": 0,
  121. "CONTAINER": 1,
  122. "NODE": 2,
  123. "TARGET": 3,
  124. }
  125. func (x NamespaceMode) String() string {
  126. return proto.EnumName(NamespaceMode_name, int32(x))
  127. }
  128. func (NamespaceMode) EnumDescriptor() ([]byte, []int) {
  129. return fileDescriptor_00212fb1f9d3bf1c, []int{2}
  130. }
  131. type PodSandboxState int32
  132. const (
  133. PodSandboxState_SANDBOX_READY PodSandboxState = 0
  134. PodSandboxState_SANDBOX_NOTREADY PodSandboxState = 1
  135. )
  136. var PodSandboxState_name = map[int32]string{
  137. 0: "SANDBOX_READY",
  138. 1: "SANDBOX_NOTREADY",
  139. }
  140. var PodSandboxState_value = map[string]int32{
  141. "SANDBOX_READY": 0,
  142. "SANDBOX_NOTREADY": 1,
  143. }
  144. func (x PodSandboxState) String() string {
  145. return proto.EnumName(PodSandboxState_name, int32(x))
  146. }
  147. func (PodSandboxState) EnumDescriptor() ([]byte, []int) {
  148. return fileDescriptor_00212fb1f9d3bf1c, []int{3}
  149. }
  150. type ContainerState int32
  151. const (
  152. ContainerState_CONTAINER_CREATED ContainerState = 0
  153. ContainerState_CONTAINER_RUNNING ContainerState = 1
  154. ContainerState_CONTAINER_EXITED ContainerState = 2
  155. ContainerState_CONTAINER_UNKNOWN ContainerState = 3
  156. )
  157. var ContainerState_name = map[int32]string{
  158. 0: "CONTAINER_CREATED",
  159. 1: "CONTAINER_RUNNING",
  160. 2: "CONTAINER_EXITED",
  161. 3: "CONTAINER_UNKNOWN",
  162. }
  163. var ContainerState_value = map[string]int32{
  164. "CONTAINER_CREATED": 0,
  165. "CONTAINER_RUNNING": 1,
  166. "CONTAINER_EXITED": 2,
  167. "CONTAINER_UNKNOWN": 3,
  168. }
  169. func (x ContainerState) String() string {
  170. return proto.EnumName(ContainerState_name, int32(x))
  171. }
  172. func (ContainerState) EnumDescriptor() ([]byte, []int) {
  173. return fileDescriptor_00212fb1f9d3bf1c, []int{4}
  174. }
  175. type ContainerEventType int32
  176. const (
  177. // Container created
  178. ContainerEventType_CONTAINER_CREATED_EVENT ContainerEventType = 0
  179. // Container started
  180. ContainerEventType_CONTAINER_STARTED_EVENT ContainerEventType = 1
  181. // Container stopped
  182. ContainerEventType_CONTAINER_STOPPED_EVENT ContainerEventType = 2
  183. // Container deleted
  184. ContainerEventType_CONTAINER_DELETED_EVENT ContainerEventType = 3
  185. )
  186. var ContainerEventType_name = map[int32]string{
  187. 0: "CONTAINER_CREATED_EVENT",
  188. 1: "CONTAINER_STARTED_EVENT",
  189. 2: "CONTAINER_STOPPED_EVENT",
  190. 3: "CONTAINER_DELETED_EVENT",
  191. }
  192. var ContainerEventType_value = map[string]int32{
  193. "CONTAINER_CREATED_EVENT": 0,
  194. "CONTAINER_STARTED_EVENT": 1,
  195. "CONTAINER_STOPPED_EVENT": 2,
  196. "CONTAINER_DELETED_EVENT": 3,
  197. }
  198. func (x ContainerEventType) String() string {
  199. return proto.EnumName(ContainerEventType_name, int32(x))
  200. }
  201. func (ContainerEventType) EnumDescriptor() ([]byte, []int) {
  202. return fileDescriptor_00212fb1f9d3bf1c, []int{5}
  203. }
  204. type MetricType int32
  205. const (
  206. MetricType_COUNTER MetricType = 0
  207. MetricType_GAUGE MetricType = 1
  208. )
  209. var MetricType_name = map[int32]string{
  210. 0: "COUNTER",
  211. 1: "GAUGE",
  212. }
  213. var MetricType_value = map[string]int32{
  214. "COUNTER": 0,
  215. "GAUGE": 1,
  216. }
  217. func (x MetricType) String() string {
  218. return proto.EnumName(MetricType_name, int32(x))
  219. }
  220. func (MetricType) EnumDescriptor() ([]byte, []int) {
  221. return fileDescriptor_00212fb1f9d3bf1c, []int{6}
  222. }
  223. type CgroupDriver int32
  224. const (
  225. CgroupDriver_SYSTEMD CgroupDriver = 0
  226. CgroupDriver_CGROUPFS CgroupDriver = 1
  227. )
  228. var CgroupDriver_name = map[int32]string{
  229. 0: "SYSTEMD",
  230. 1: "CGROUPFS",
  231. }
  232. var CgroupDriver_value = map[string]int32{
  233. "SYSTEMD": 0,
  234. "CGROUPFS": 1,
  235. }
  236. func (x CgroupDriver) String() string {
  237. return proto.EnumName(CgroupDriver_name, int32(x))
  238. }
  239. func (CgroupDriver) EnumDescriptor() ([]byte, []int) {
  240. return fileDescriptor_00212fb1f9d3bf1c, []int{7}
  241. }
  242. // Available profile types.
  243. type SecurityProfile_ProfileType int32
  244. const (
  245. // The container runtime default profile should be used.
  246. SecurityProfile_RuntimeDefault SecurityProfile_ProfileType = 0
  247. // Disable the feature for the sandbox or the container.
  248. SecurityProfile_Unconfined SecurityProfile_ProfileType = 1
  249. // A pre-defined profile on the node should be used.
  250. SecurityProfile_Localhost SecurityProfile_ProfileType = 2
  251. )
  252. var SecurityProfile_ProfileType_name = map[int32]string{
  253. 0: "RuntimeDefault",
  254. 1: "Unconfined",
  255. 2: "Localhost",
  256. }
  257. var SecurityProfile_ProfileType_value = map[string]int32{
  258. "RuntimeDefault": 0,
  259. "Unconfined": 1,
  260. "Localhost": 2,
  261. }
  262. func (x SecurityProfile_ProfileType) String() string {
  263. return proto.EnumName(SecurityProfile_ProfileType_name, int32(x))
  264. }
  265. func (SecurityProfile_ProfileType) EnumDescriptor() ([]byte, []int) {
  266. return fileDescriptor_00212fb1f9d3bf1c, []int{10, 0}
  267. }
  268. type VersionRequest struct {
  269. // Version of the kubelet runtime API.
  270. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  271. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  272. XXX_sizecache int32 `json:"-"`
  273. }
  274. func (m *VersionRequest) Reset() { *m = VersionRequest{} }
  275. func (*VersionRequest) ProtoMessage() {}
  276. func (*VersionRequest) Descriptor() ([]byte, []int) {
  277. return fileDescriptor_00212fb1f9d3bf1c, []int{0}
  278. }
  279. func (m *VersionRequest) XXX_Unmarshal(b []byte) error {
  280. return m.Unmarshal(b)
  281. }
  282. func (m *VersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  283. if deterministic {
  284. return xxx_messageInfo_VersionRequest.Marshal(b, m, deterministic)
  285. } else {
  286. b = b[:cap(b)]
  287. n, err := m.MarshalToSizedBuffer(b)
  288. if err != nil {
  289. return nil, err
  290. }
  291. return b[:n], nil
  292. }
  293. }
  294. func (m *VersionRequest) XXX_Merge(src proto.Message) {
  295. xxx_messageInfo_VersionRequest.Merge(m, src)
  296. }
  297. func (m *VersionRequest) XXX_Size() int {
  298. return m.Size()
  299. }
  300. func (m *VersionRequest) XXX_DiscardUnknown() {
  301. xxx_messageInfo_VersionRequest.DiscardUnknown(m)
  302. }
  303. var xxx_messageInfo_VersionRequest proto.InternalMessageInfo
  304. func (m *VersionRequest) GetVersion() string {
  305. if m != nil {
  306. return m.Version
  307. }
  308. return ""
  309. }
  310. type VersionResponse struct {
  311. // Version of the kubelet runtime API.
  312. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  313. // Name of the container runtime.
  314. RuntimeName string `protobuf:"bytes,2,opt,name=runtime_name,json=runtimeName,proto3" json:"runtime_name,omitempty"`
  315. // Version of the container runtime. The string must be
  316. // semver-compatible.
  317. RuntimeVersion string `protobuf:"bytes,3,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"`
  318. // API version of the container runtime. The string must be
  319. // semver-compatible.
  320. RuntimeApiVersion string `protobuf:"bytes,4,opt,name=runtime_api_version,json=runtimeApiVersion,proto3" json:"runtime_api_version,omitempty"`
  321. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  322. XXX_sizecache int32 `json:"-"`
  323. }
  324. func (m *VersionResponse) Reset() { *m = VersionResponse{} }
  325. func (*VersionResponse) ProtoMessage() {}
  326. func (*VersionResponse) Descriptor() ([]byte, []int) {
  327. return fileDescriptor_00212fb1f9d3bf1c, []int{1}
  328. }
  329. func (m *VersionResponse) XXX_Unmarshal(b []byte) error {
  330. return m.Unmarshal(b)
  331. }
  332. func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  333. if deterministic {
  334. return xxx_messageInfo_VersionResponse.Marshal(b, m, deterministic)
  335. } else {
  336. b = b[:cap(b)]
  337. n, err := m.MarshalToSizedBuffer(b)
  338. if err != nil {
  339. return nil, err
  340. }
  341. return b[:n], nil
  342. }
  343. }
  344. func (m *VersionResponse) XXX_Merge(src proto.Message) {
  345. xxx_messageInfo_VersionResponse.Merge(m, src)
  346. }
  347. func (m *VersionResponse) XXX_Size() int {
  348. return m.Size()
  349. }
  350. func (m *VersionResponse) XXX_DiscardUnknown() {
  351. xxx_messageInfo_VersionResponse.DiscardUnknown(m)
  352. }
  353. var xxx_messageInfo_VersionResponse proto.InternalMessageInfo
  354. func (m *VersionResponse) GetVersion() string {
  355. if m != nil {
  356. return m.Version
  357. }
  358. return ""
  359. }
  360. func (m *VersionResponse) GetRuntimeName() string {
  361. if m != nil {
  362. return m.RuntimeName
  363. }
  364. return ""
  365. }
  366. func (m *VersionResponse) GetRuntimeVersion() string {
  367. if m != nil {
  368. return m.RuntimeVersion
  369. }
  370. return ""
  371. }
  372. func (m *VersionResponse) GetRuntimeApiVersion() string {
  373. if m != nil {
  374. return m.RuntimeApiVersion
  375. }
  376. return ""
  377. }
  378. // DNSConfig specifies the DNS servers and search domains of a sandbox.
  379. type DNSConfig struct {
  380. // List of DNS servers of the cluster.
  381. Servers []string `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
  382. // List of DNS search domains of the cluster.
  383. Searches []string `protobuf:"bytes,2,rep,name=searches,proto3" json:"searches,omitempty"`
  384. // List of DNS options. See https://linux.die.net/man/5/resolv.conf
  385. // for all available options.
  386. Options []string `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"`
  387. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  388. XXX_sizecache int32 `json:"-"`
  389. }
  390. func (m *DNSConfig) Reset() { *m = DNSConfig{} }
  391. func (*DNSConfig) ProtoMessage() {}
  392. func (*DNSConfig) Descriptor() ([]byte, []int) {
  393. return fileDescriptor_00212fb1f9d3bf1c, []int{2}
  394. }
  395. func (m *DNSConfig) XXX_Unmarshal(b []byte) error {
  396. return m.Unmarshal(b)
  397. }
  398. func (m *DNSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  399. if deterministic {
  400. return xxx_messageInfo_DNSConfig.Marshal(b, m, deterministic)
  401. } else {
  402. b = b[:cap(b)]
  403. n, err := m.MarshalToSizedBuffer(b)
  404. if err != nil {
  405. return nil, err
  406. }
  407. return b[:n], nil
  408. }
  409. }
  410. func (m *DNSConfig) XXX_Merge(src proto.Message) {
  411. xxx_messageInfo_DNSConfig.Merge(m, src)
  412. }
  413. func (m *DNSConfig) XXX_Size() int {
  414. return m.Size()
  415. }
  416. func (m *DNSConfig) XXX_DiscardUnknown() {
  417. xxx_messageInfo_DNSConfig.DiscardUnknown(m)
  418. }
  419. var xxx_messageInfo_DNSConfig proto.InternalMessageInfo
  420. func (m *DNSConfig) GetServers() []string {
  421. if m != nil {
  422. return m.Servers
  423. }
  424. return nil
  425. }
  426. func (m *DNSConfig) GetSearches() []string {
  427. if m != nil {
  428. return m.Searches
  429. }
  430. return nil
  431. }
  432. func (m *DNSConfig) GetOptions() []string {
  433. if m != nil {
  434. return m.Options
  435. }
  436. return nil
  437. }
  438. // PortMapping specifies the port mapping configurations of a sandbox.
  439. type PortMapping struct {
  440. // Protocol of the port mapping.
  441. Protocol Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=runtime.v1.Protocol" json:"protocol,omitempty"`
  442. // Port number within the container. Default: 0 (not specified).
  443. ContainerPort int32 `protobuf:"varint,2,opt,name=container_port,json=containerPort,proto3" json:"container_port,omitempty"`
  444. // Port number on the host. Default: 0 (not specified).
  445. HostPort int32 `protobuf:"varint,3,opt,name=host_port,json=hostPort,proto3" json:"host_port,omitempty"`
  446. // Host IP.
  447. HostIp string `protobuf:"bytes,4,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"`
  448. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  449. XXX_sizecache int32 `json:"-"`
  450. }
  451. func (m *PortMapping) Reset() { *m = PortMapping{} }
  452. func (*PortMapping) ProtoMessage() {}
  453. func (*PortMapping) Descriptor() ([]byte, []int) {
  454. return fileDescriptor_00212fb1f9d3bf1c, []int{3}
  455. }
  456. func (m *PortMapping) XXX_Unmarshal(b []byte) error {
  457. return m.Unmarshal(b)
  458. }
  459. func (m *PortMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  460. if deterministic {
  461. return xxx_messageInfo_PortMapping.Marshal(b, m, deterministic)
  462. } else {
  463. b = b[:cap(b)]
  464. n, err := m.MarshalToSizedBuffer(b)
  465. if err != nil {
  466. return nil, err
  467. }
  468. return b[:n], nil
  469. }
  470. }
  471. func (m *PortMapping) XXX_Merge(src proto.Message) {
  472. xxx_messageInfo_PortMapping.Merge(m, src)
  473. }
  474. func (m *PortMapping) XXX_Size() int {
  475. return m.Size()
  476. }
  477. func (m *PortMapping) XXX_DiscardUnknown() {
  478. xxx_messageInfo_PortMapping.DiscardUnknown(m)
  479. }
  480. var xxx_messageInfo_PortMapping proto.InternalMessageInfo
  481. func (m *PortMapping) GetProtocol() Protocol {
  482. if m != nil {
  483. return m.Protocol
  484. }
  485. return Protocol_TCP
  486. }
  487. func (m *PortMapping) GetContainerPort() int32 {
  488. if m != nil {
  489. return m.ContainerPort
  490. }
  491. return 0
  492. }
  493. func (m *PortMapping) GetHostPort() int32 {
  494. if m != nil {
  495. return m.HostPort
  496. }
  497. return 0
  498. }
  499. func (m *PortMapping) GetHostIp() string {
  500. if m != nil {
  501. return m.HostIp
  502. }
  503. return ""
  504. }
  505. // Mount specifies a host volume to mount into a container.
  506. type Mount struct {
  507. // Path of the mount within the container.
  508. ContainerPath string `protobuf:"bytes,1,opt,name=container_path,json=containerPath,proto3" json:"container_path,omitempty"`
  509. // Path of the mount on the host. If the hostPath doesn't exist, then runtimes
  510. // should report error. If the hostpath is a symbolic link, runtimes should
  511. // follow the symlink and mount the real destination to container.
  512. HostPath string `protobuf:"bytes,2,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"`
  513. // If set, the mount is read-only.
  514. Readonly bool `protobuf:"varint,3,opt,name=readonly,proto3" json:"readonly,omitempty"`
  515. // If set, the mount needs SELinux relabeling.
  516. SelinuxRelabel bool `protobuf:"varint,4,opt,name=selinux_relabel,json=selinuxRelabel,proto3" json:"selinux_relabel,omitempty"`
  517. // Requested propagation mode.
  518. Propagation MountPropagation `protobuf:"varint,5,opt,name=propagation,proto3,enum=runtime.v1.MountPropagation" json:"propagation,omitempty"`
  519. // UidMappings specifies the runtime UID mappings for the mount.
  520. UidMappings []*IDMapping `protobuf:"bytes,6,rep,name=uidMappings,proto3" json:"uidMappings,omitempty"`
  521. // GidMappings specifies the runtime GID mappings for the mount.
  522. GidMappings []*IDMapping `protobuf:"bytes,7,rep,name=gidMappings,proto3" json:"gidMappings,omitempty"`
  523. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  524. XXX_sizecache int32 `json:"-"`
  525. }
  526. func (m *Mount) Reset() { *m = Mount{} }
  527. func (*Mount) ProtoMessage() {}
  528. func (*Mount) Descriptor() ([]byte, []int) {
  529. return fileDescriptor_00212fb1f9d3bf1c, []int{4}
  530. }
  531. func (m *Mount) XXX_Unmarshal(b []byte) error {
  532. return m.Unmarshal(b)
  533. }
  534. func (m *Mount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  535. if deterministic {
  536. return xxx_messageInfo_Mount.Marshal(b, m, deterministic)
  537. } else {
  538. b = b[:cap(b)]
  539. n, err := m.MarshalToSizedBuffer(b)
  540. if err != nil {
  541. return nil, err
  542. }
  543. return b[:n], nil
  544. }
  545. }
  546. func (m *Mount) XXX_Merge(src proto.Message) {
  547. xxx_messageInfo_Mount.Merge(m, src)
  548. }
  549. func (m *Mount) XXX_Size() int {
  550. return m.Size()
  551. }
  552. func (m *Mount) XXX_DiscardUnknown() {
  553. xxx_messageInfo_Mount.DiscardUnknown(m)
  554. }
  555. var xxx_messageInfo_Mount proto.InternalMessageInfo
  556. func (m *Mount) GetContainerPath() string {
  557. if m != nil {
  558. return m.ContainerPath
  559. }
  560. return ""
  561. }
  562. func (m *Mount) GetHostPath() string {
  563. if m != nil {
  564. return m.HostPath
  565. }
  566. return ""
  567. }
  568. func (m *Mount) GetReadonly() bool {
  569. if m != nil {
  570. return m.Readonly
  571. }
  572. return false
  573. }
  574. func (m *Mount) GetSelinuxRelabel() bool {
  575. if m != nil {
  576. return m.SelinuxRelabel
  577. }
  578. return false
  579. }
  580. func (m *Mount) GetPropagation() MountPropagation {
  581. if m != nil {
  582. return m.Propagation
  583. }
  584. return MountPropagation_PROPAGATION_PRIVATE
  585. }
  586. func (m *Mount) GetUidMappings() []*IDMapping {
  587. if m != nil {
  588. return m.UidMappings
  589. }
  590. return nil
  591. }
  592. func (m *Mount) GetGidMappings() []*IDMapping {
  593. if m != nil {
  594. return m.GidMappings
  595. }
  596. return nil
  597. }
  598. // IDMapping describes host to container ID mappings for a pod sandbox.
  599. type IDMapping struct {
  600. // HostId is the id on the host.
  601. HostId uint32 `protobuf:"varint,1,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
  602. // ContainerId is the id in the container.
  603. ContainerId uint32 `protobuf:"varint,2,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  604. // Length is the size of the range to map.
  605. Length uint32 `protobuf:"varint,3,opt,name=length,proto3" json:"length,omitempty"`
  606. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  607. XXX_sizecache int32 `json:"-"`
  608. }
  609. func (m *IDMapping) Reset() { *m = IDMapping{} }
  610. func (*IDMapping) ProtoMessage() {}
  611. func (*IDMapping) Descriptor() ([]byte, []int) {
  612. return fileDescriptor_00212fb1f9d3bf1c, []int{5}
  613. }
  614. func (m *IDMapping) XXX_Unmarshal(b []byte) error {
  615. return m.Unmarshal(b)
  616. }
  617. func (m *IDMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  618. if deterministic {
  619. return xxx_messageInfo_IDMapping.Marshal(b, m, deterministic)
  620. } else {
  621. b = b[:cap(b)]
  622. n, err := m.MarshalToSizedBuffer(b)
  623. if err != nil {
  624. return nil, err
  625. }
  626. return b[:n], nil
  627. }
  628. }
  629. func (m *IDMapping) XXX_Merge(src proto.Message) {
  630. xxx_messageInfo_IDMapping.Merge(m, src)
  631. }
  632. func (m *IDMapping) XXX_Size() int {
  633. return m.Size()
  634. }
  635. func (m *IDMapping) XXX_DiscardUnknown() {
  636. xxx_messageInfo_IDMapping.DiscardUnknown(m)
  637. }
  638. var xxx_messageInfo_IDMapping proto.InternalMessageInfo
  639. func (m *IDMapping) GetHostId() uint32 {
  640. if m != nil {
  641. return m.HostId
  642. }
  643. return 0
  644. }
  645. func (m *IDMapping) GetContainerId() uint32 {
  646. if m != nil {
  647. return m.ContainerId
  648. }
  649. return 0
  650. }
  651. func (m *IDMapping) GetLength() uint32 {
  652. if m != nil {
  653. return m.Length
  654. }
  655. return 0
  656. }
  657. // UserNamespace describes the intended user namespace configuration for a pod sandbox.
  658. type UserNamespace struct {
  659. // Mode is the NamespaceMode for this UserNamespace.
  660. // Note: NamespaceMode for UserNamespace currently supports only POD and NODE, not CONTAINER OR TARGET.
  661. Mode NamespaceMode `protobuf:"varint,1,opt,name=mode,proto3,enum=runtime.v1.NamespaceMode" json:"mode,omitempty"`
  662. // Uids specifies the UID mappings for the user namespace.
  663. Uids []*IDMapping `protobuf:"bytes,2,rep,name=uids,proto3" json:"uids,omitempty"`
  664. // Gids specifies the GID mappings for the user namespace.
  665. Gids []*IDMapping `protobuf:"bytes,3,rep,name=gids,proto3" json:"gids,omitempty"`
  666. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  667. XXX_sizecache int32 `json:"-"`
  668. }
  669. func (m *UserNamespace) Reset() { *m = UserNamespace{} }
  670. func (*UserNamespace) ProtoMessage() {}
  671. func (*UserNamespace) Descriptor() ([]byte, []int) {
  672. return fileDescriptor_00212fb1f9d3bf1c, []int{6}
  673. }
  674. func (m *UserNamespace) XXX_Unmarshal(b []byte) error {
  675. return m.Unmarshal(b)
  676. }
  677. func (m *UserNamespace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  678. if deterministic {
  679. return xxx_messageInfo_UserNamespace.Marshal(b, m, deterministic)
  680. } else {
  681. b = b[:cap(b)]
  682. n, err := m.MarshalToSizedBuffer(b)
  683. if err != nil {
  684. return nil, err
  685. }
  686. return b[:n], nil
  687. }
  688. }
  689. func (m *UserNamespace) XXX_Merge(src proto.Message) {
  690. xxx_messageInfo_UserNamespace.Merge(m, src)
  691. }
  692. func (m *UserNamespace) XXX_Size() int {
  693. return m.Size()
  694. }
  695. func (m *UserNamespace) XXX_DiscardUnknown() {
  696. xxx_messageInfo_UserNamespace.DiscardUnknown(m)
  697. }
  698. var xxx_messageInfo_UserNamespace proto.InternalMessageInfo
  699. func (m *UserNamespace) GetMode() NamespaceMode {
  700. if m != nil {
  701. return m.Mode
  702. }
  703. return NamespaceMode_POD
  704. }
  705. func (m *UserNamespace) GetUids() []*IDMapping {
  706. if m != nil {
  707. return m.Uids
  708. }
  709. return nil
  710. }
  711. func (m *UserNamespace) GetGids() []*IDMapping {
  712. if m != nil {
  713. return m.Gids
  714. }
  715. return nil
  716. }
  717. // NamespaceOption provides options for Linux namespaces.
  718. type NamespaceOption struct {
  719. // Network namespace for this container/sandbox.
  720. // Note: There is currently no way to set CONTAINER scoped network in the Kubernetes API.
  721. // Namespaces currently set by the kubelet: POD, NODE
  722. Network NamespaceMode `protobuf:"varint,1,opt,name=network,proto3,enum=runtime.v1.NamespaceMode" json:"network,omitempty"`
  723. // PID namespace for this container/sandbox.
  724. // Note: The CRI default is POD, but the v1.PodSpec default is CONTAINER.
  725. // The kubelet's runtime manager will set this to CONTAINER explicitly for v1 pods.
  726. // Namespaces currently set by the kubelet: POD, CONTAINER, NODE, TARGET
  727. Pid NamespaceMode `protobuf:"varint,2,opt,name=pid,proto3,enum=runtime.v1.NamespaceMode" json:"pid,omitempty"`
  728. // IPC namespace for this container/sandbox.
  729. // Note: There is currently no way to set CONTAINER scoped IPC in the Kubernetes API.
  730. // Namespaces currently set by the kubelet: POD, NODE
  731. Ipc NamespaceMode `protobuf:"varint,3,opt,name=ipc,proto3,enum=runtime.v1.NamespaceMode" json:"ipc,omitempty"`
  732. // Target Container ID for NamespaceMode of TARGET. This container must have been
  733. // previously created in the same pod. It is not possible to specify different targets
  734. // for each namespace.
  735. TargetId string `protobuf:"bytes,4,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
  736. // UsernsOptions for this pod sandbox.
  737. // The Kubelet picks the user namespace configuration to use for the pod sandbox. The mappings
  738. // are specified as part of the UserNamespace struct. If the struct is nil, then the POD mode
  739. // must be assumed. This is done for backward compatibility with older Kubelet versions that
  740. // do not set a user namespace.
  741. UsernsOptions *UserNamespace `protobuf:"bytes,5,opt,name=userns_options,json=usernsOptions,proto3" json:"userns_options,omitempty"`
  742. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  743. XXX_sizecache int32 `json:"-"`
  744. }
  745. func (m *NamespaceOption) Reset() { *m = NamespaceOption{} }
  746. func (*NamespaceOption) ProtoMessage() {}
  747. func (*NamespaceOption) Descriptor() ([]byte, []int) {
  748. return fileDescriptor_00212fb1f9d3bf1c, []int{7}
  749. }
  750. func (m *NamespaceOption) XXX_Unmarshal(b []byte) error {
  751. return m.Unmarshal(b)
  752. }
  753. func (m *NamespaceOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  754. if deterministic {
  755. return xxx_messageInfo_NamespaceOption.Marshal(b, m, deterministic)
  756. } else {
  757. b = b[:cap(b)]
  758. n, err := m.MarshalToSizedBuffer(b)
  759. if err != nil {
  760. return nil, err
  761. }
  762. return b[:n], nil
  763. }
  764. }
  765. func (m *NamespaceOption) XXX_Merge(src proto.Message) {
  766. xxx_messageInfo_NamespaceOption.Merge(m, src)
  767. }
  768. func (m *NamespaceOption) XXX_Size() int {
  769. return m.Size()
  770. }
  771. func (m *NamespaceOption) XXX_DiscardUnknown() {
  772. xxx_messageInfo_NamespaceOption.DiscardUnknown(m)
  773. }
  774. var xxx_messageInfo_NamespaceOption proto.InternalMessageInfo
  775. func (m *NamespaceOption) GetNetwork() NamespaceMode {
  776. if m != nil {
  777. return m.Network
  778. }
  779. return NamespaceMode_POD
  780. }
  781. func (m *NamespaceOption) GetPid() NamespaceMode {
  782. if m != nil {
  783. return m.Pid
  784. }
  785. return NamespaceMode_POD
  786. }
  787. func (m *NamespaceOption) GetIpc() NamespaceMode {
  788. if m != nil {
  789. return m.Ipc
  790. }
  791. return NamespaceMode_POD
  792. }
  793. func (m *NamespaceOption) GetTargetId() string {
  794. if m != nil {
  795. return m.TargetId
  796. }
  797. return ""
  798. }
  799. func (m *NamespaceOption) GetUsernsOptions() *UserNamespace {
  800. if m != nil {
  801. return m.UsernsOptions
  802. }
  803. return nil
  804. }
  805. // Int64Value is the wrapper of int64.
  806. type Int64Value struct {
  807. // The value.
  808. Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
  809. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  810. XXX_sizecache int32 `json:"-"`
  811. }
  812. func (m *Int64Value) Reset() { *m = Int64Value{} }
  813. func (*Int64Value) ProtoMessage() {}
  814. func (*Int64Value) Descriptor() ([]byte, []int) {
  815. return fileDescriptor_00212fb1f9d3bf1c, []int{8}
  816. }
  817. func (m *Int64Value) XXX_Unmarshal(b []byte) error {
  818. return m.Unmarshal(b)
  819. }
  820. func (m *Int64Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  821. if deterministic {
  822. return xxx_messageInfo_Int64Value.Marshal(b, m, deterministic)
  823. } else {
  824. b = b[:cap(b)]
  825. n, err := m.MarshalToSizedBuffer(b)
  826. if err != nil {
  827. return nil, err
  828. }
  829. return b[:n], nil
  830. }
  831. }
  832. func (m *Int64Value) XXX_Merge(src proto.Message) {
  833. xxx_messageInfo_Int64Value.Merge(m, src)
  834. }
  835. func (m *Int64Value) XXX_Size() int {
  836. return m.Size()
  837. }
  838. func (m *Int64Value) XXX_DiscardUnknown() {
  839. xxx_messageInfo_Int64Value.DiscardUnknown(m)
  840. }
  841. var xxx_messageInfo_Int64Value proto.InternalMessageInfo
  842. func (m *Int64Value) GetValue() int64 {
  843. if m != nil {
  844. return m.Value
  845. }
  846. return 0
  847. }
  848. // LinuxSandboxSecurityContext holds linux security configuration that will be
  849. // applied to a sandbox. Note that:
  850. // 1. It does not apply to containers in the pods.
  851. // 2. It may not be applicable to a PodSandbox which does not contain any running
  852. // process.
  853. type LinuxSandboxSecurityContext struct {
  854. // Configurations for the sandbox's namespaces.
  855. // This will be used only if the PodSandbox uses namespace for isolation.
  856. NamespaceOptions *NamespaceOption `protobuf:"bytes,1,opt,name=namespace_options,json=namespaceOptions,proto3" json:"namespace_options,omitempty"`
  857. // Optional SELinux context to be applied.
  858. SelinuxOptions *SELinuxOption `protobuf:"bytes,2,opt,name=selinux_options,json=selinuxOptions,proto3" json:"selinux_options,omitempty"`
  859. // UID to run sandbox processes as, when applicable.
  860. RunAsUser *Int64Value `protobuf:"bytes,3,opt,name=run_as_user,json=runAsUser,proto3" json:"run_as_user,omitempty"`
  861. // GID to run sandbox processes as, when applicable. run_as_group should only
  862. // be specified when run_as_user is specified; otherwise, the runtime MUST error.
  863. RunAsGroup *Int64Value `protobuf:"bytes,8,opt,name=run_as_group,json=runAsGroup,proto3" json:"run_as_group,omitempty"`
  864. // If set, the root filesystem of the sandbox is read-only.
  865. ReadonlyRootfs bool `protobuf:"varint,4,opt,name=readonly_rootfs,json=readonlyRootfs,proto3" json:"readonly_rootfs,omitempty"`
  866. // List of groups applied to the first process run in the sandbox, in
  867. // addition to the sandbox's primary GID, and group memberships defined
  868. // in the container image for the sandbox's primary UID of the container process.
  869. // If the list is empty, no additional groups are added to any container.
  870. // Note that group memberships defined in the container image for the sandbox's primary UID
  871. // of the container process are still effective, even if they are not included in this list.
  872. SupplementalGroups []int64 `protobuf:"varint,5,rep,packed,name=supplemental_groups,json=supplementalGroups,proto3" json:"supplemental_groups,omitempty"`
  873. // Indicates whether the sandbox will be asked to run a privileged
  874. // container. If a privileged container is to be executed within it, this
  875. // MUST be true.
  876. // This allows a sandbox to take additional security precautions if no
  877. // privileged containers are expected to be run.
  878. Privileged bool `protobuf:"varint,6,opt,name=privileged,proto3" json:"privileged,omitempty"`
  879. // Seccomp profile for the sandbox.
  880. Seccomp *SecurityProfile `protobuf:"bytes,9,opt,name=seccomp,proto3" json:"seccomp,omitempty"`
  881. // AppArmor profile for the sandbox.
  882. Apparmor *SecurityProfile `protobuf:"bytes,10,opt,name=apparmor,proto3" json:"apparmor,omitempty"`
  883. // Seccomp profile for the sandbox, candidate values are:
  884. // - runtime/default: the default profile for the container runtime
  885. // - unconfined: unconfined profile, ie, no seccomp sandboxing
  886. // - localhost/<full-path-to-profile>: the profile installed on the node.
  887. // <full-path-to-profile> is the full path of the profile.
  888. //
  889. // Default: "", which is identical with unconfined.
  890. SeccompProfilePath string `protobuf:"bytes,7,opt,name=seccomp_profile_path,json=seccompProfilePath,proto3" json:"seccomp_profile_path,omitempty"` // Deprecated: Do not use.
  891. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  892. XXX_sizecache int32 `json:"-"`
  893. }
  894. func (m *LinuxSandboxSecurityContext) Reset() { *m = LinuxSandboxSecurityContext{} }
  895. func (*LinuxSandboxSecurityContext) ProtoMessage() {}
  896. func (*LinuxSandboxSecurityContext) Descriptor() ([]byte, []int) {
  897. return fileDescriptor_00212fb1f9d3bf1c, []int{9}
  898. }
  899. func (m *LinuxSandboxSecurityContext) XXX_Unmarshal(b []byte) error {
  900. return m.Unmarshal(b)
  901. }
  902. func (m *LinuxSandboxSecurityContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  903. if deterministic {
  904. return xxx_messageInfo_LinuxSandboxSecurityContext.Marshal(b, m, deterministic)
  905. } else {
  906. b = b[:cap(b)]
  907. n, err := m.MarshalToSizedBuffer(b)
  908. if err != nil {
  909. return nil, err
  910. }
  911. return b[:n], nil
  912. }
  913. }
  914. func (m *LinuxSandboxSecurityContext) XXX_Merge(src proto.Message) {
  915. xxx_messageInfo_LinuxSandboxSecurityContext.Merge(m, src)
  916. }
  917. func (m *LinuxSandboxSecurityContext) XXX_Size() int {
  918. return m.Size()
  919. }
  920. func (m *LinuxSandboxSecurityContext) XXX_DiscardUnknown() {
  921. xxx_messageInfo_LinuxSandboxSecurityContext.DiscardUnknown(m)
  922. }
  923. var xxx_messageInfo_LinuxSandboxSecurityContext proto.InternalMessageInfo
  924. func (m *LinuxSandboxSecurityContext) GetNamespaceOptions() *NamespaceOption {
  925. if m != nil {
  926. return m.NamespaceOptions
  927. }
  928. return nil
  929. }
  930. func (m *LinuxSandboxSecurityContext) GetSelinuxOptions() *SELinuxOption {
  931. if m != nil {
  932. return m.SelinuxOptions
  933. }
  934. return nil
  935. }
  936. func (m *LinuxSandboxSecurityContext) GetRunAsUser() *Int64Value {
  937. if m != nil {
  938. return m.RunAsUser
  939. }
  940. return nil
  941. }
  942. func (m *LinuxSandboxSecurityContext) GetRunAsGroup() *Int64Value {
  943. if m != nil {
  944. return m.RunAsGroup
  945. }
  946. return nil
  947. }
  948. func (m *LinuxSandboxSecurityContext) GetReadonlyRootfs() bool {
  949. if m != nil {
  950. return m.ReadonlyRootfs
  951. }
  952. return false
  953. }
  954. func (m *LinuxSandboxSecurityContext) GetSupplementalGroups() []int64 {
  955. if m != nil {
  956. return m.SupplementalGroups
  957. }
  958. return nil
  959. }
  960. func (m *LinuxSandboxSecurityContext) GetPrivileged() bool {
  961. if m != nil {
  962. return m.Privileged
  963. }
  964. return false
  965. }
  966. func (m *LinuxSandboxSecurityContext) GetSeccomp() *SecurityProfile {
  967. if m != nil {
  968. return m.Seccomp
  969. }
  970. return nil
  971. }
  972. func (m *LinuxSandboxSecurityContext) GetApparmor() *SecurityProfile {
  973. if m != nil {
  974. return m.Apparmor
  975. }
  976. return nil
  977. }
  978. // Deprecated: Do not use.
  979. func (m *LinuxSandboxSecurityContext) GetSeccompProfilePath() string {
  980. if m != nil {
  981. return m.SeccompProfilePath
  982. }
  983. return ""
  984. }
  985. // A security profile which can be used for sandboxes and containers.
  986. type SecurityProfile struct {
  987. // Indicator which `ProfileType` should be applied.
  988. ProfileType SecurityProfile_ProfileType `protobuf:"varint,1,opt,name=profile_type,json=profileType,proto3,enum=runtime.v1.SecurityProfile_ProfileType" json:"profile_type,omitempty"`
  989. // Indicates that a pre-defined profile on the node should be used.
  990. // Must only be set if `ProfileType` is `Localhost`.
  991. // For seccomp, it must be an absolute path to the seccomp profile.
  992. // For AppArmor, this field is the AppArmor `<profile name>/`
  993. LocalhostRef string `protobuf:"bytes,2,opt,name=localhost_ref,json=localhostRef,proto3" json:"localhost_ref,omitempty"`
  994. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  995. XXX_sizecache int32 `json:"-"`
  996. }
  997. func (m *SecurityProfile) Reset() { *m = SecurityProfile{} }
  998. func (*SecurityProfile) ProtoMessage() {}
  999. func (*SecurityProfile) Descriptor() ([]byte, []int) {
  1000. return fileDescriptor_00212fb1f9d3bf1c, []int{10}
  1001. }
  1002. func (m *SecurityProfile) XXX_Unmarshal(b []byte) error {
  1003. return m.Unmarshal(b)
  1004. }
  1005. func (m *SecurityProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1006. if deterministic {
  1007. return xxx_messageInfo_SecurityProfile.Marshal(b, m, deterministic)
  1008. } else {
  1009. b = b[:cap(b)]
  1010. n, err := m.MarshalToSizedBuffer(b)
  1011. if err != nil {
  1012. return nil, err
  1013. }
  1014. return b[:n], nil
  1015. }
  1016. }
  1017. func (m *SecurityProfile) XXX_Merge(src proto.Message) {
  1018. xxx_messageInfo_SecurityProfile.Merge(m, src)
  1019. }
  1020. func (m *SecurityProfile) XXX_Size() int {
  1021. return m.Size()
  1022. }
  1023. func (m *SecurityProfile) XXX_DiscardUnknown() {
  1024. xxx_messageInfo_SecurityProfile.DiscardUnknown(m)
  1025. }
  1026. var xxx_messageInfo_SecurityProfile proto.InternalMessageInfo
  1027. func (m *SecurityProfile) GetProfileType() SecurityProfile_ProfileType {
  1028. if m != nil {
  1029. return m.ProfileType
  1030. }
  1031. return SecurityProfile_RuntimeDefault
  1032. }
  1033. func (m *SecurityProfile) GetLocalhostRef() string {
  1034. if m != nil {
  1035. return m.LocalhostRef
  1036. }
  1037. return ""
  1038. }
  1039. // LinuxPodSandboxConfig holds platform-specific configurations for Linux
  1040. // host platforms and Linux-based containers.
  1041. type LinuxPodSandboxConfig struct {
  1042. // Parent cgroup of the PodSandbox.
  1043. // The cgroupfs style syntax will be used, but the container runtime can
  1044. // convert it to systemd semantics if needed.
  1045. CgroupParent string `protobuf:"bytes,1,opt,name=cgroup_parent,json=cgroupParent,proto3" json:"cgroup_parent,omitempty"`
  1046. // LinuxSandboxSecurityContext holds sandbox security attributes.
  1047. SecurityContext *LinuxSandboxSecurityContext `protobuf:"bytes,2,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"`
  1048. // Sysctls holds linux sysctls config for the sandbox.
  1049. Sysctls map[string]string `protobuf:"bytes,3,rep,name=sysctls,proto3" json:"sysctls,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1050. // Optional overhead represents the overheads associated with this sandbox
  1051. Overhead *LinuxContainerResources `protobuf:"bytes,4,opt,name=overhead,proto3" json:"overhead,omitempty"`
  1052. // Optional resources represents the sum of container resources for this sandbox
  1053. Resources *LinuxContainerResources `protobuf:"bytes,5,opt,name=resources,proto3" json:"resources,omitempty"`
  1054. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1055. XXX_sizecache int32 `json:"-"`
  1056. }
  1057. func (m *LinuxPodSandboxConfig) Reset() { *m = LinuxPodSandboxConfig{} }
  1058. func (*LinuxPodSandboxConfig) ProtoMessage() {}
  1059. func (*LinuxPodSandboxConfig) Descriptor() ([]byte, []int) {
  1060. return fileDescriptor_00212fb1f9d3bf1c, []int{11}
  1061. }
  1062. func (m *LinuxPodSandboxConfig) XXX_Unmarshal(b []byte) error {
  1063. return m.Unmarshal(b)
  1064. }
  1065. func (m *LinuxPodSandboxConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1066. if deterministic {
  1067. return xxx_messageInfo_LinuxPodSandboxConfig.Marshal(b, m, deterministic)
  1068. } else {
  1069. b = b[:cap(b)]
  1070. n, err := m.MarshalToSizedBuffer(b)
  1071. if err != nil {
  1072. return nil, err
  1073. }
  1074. return b[:n], nil
  1075. }
  1076. }
  1077. func (m *LinuxPodSandboxConfig) XXX_Merge(src proto.Message) {
  1078. xxx_messageInfo_LinuxPodSandboxConfig.Merge(m, src)
  1079. }
  1080. func (m *LinuxPodSandboxConfig) XXX_Size() int {
  1081. return m.Size()
  1082. }
  1083. func (m *LinuxPodSandboxConfig) XXX_DiscardUnknown() {
  1084. xxx_messageInfo_LinuxPodSandboxConfig.DiscardUnknown(m)
  1085. }
  1086. var xxx_messageInfo_LinuxPodSandboxConfig proto.InternalMessageInfo
  1087. func (m *LinuxPodSandboxConfig) GetCgroupParent() string {
  1088. if m != nil {
  1089. return m.CgroupParent
  1090. }
  1091. return ""
  1092. }
  1093. func (m *LinuxPodSandboxConfig) GetSecurityContext() *LinuxSandboxSecurityContext {
  1094. if m != nil {
  1095. return m.SecurityContext
  1096. }
  1097. return nil
  1098. }
  1099. func (m *LinuxPodSandboxConfig) GetSysctls() map[string]string {
  1100. if m != nil {
  1101. return m.Sysctls
  1102. }
  1103. return nil
  1104. }
  1105. func (m *LinuxPodSandboxConfig) GetOverhead() *LinuxContainerResources {
  1106. if m != nil {
  1107. return m.Overhead
  1108. }
  1109. return nil
  1110. }
  1111. func (m *LinuxPodSandboxConfig) GetResources() *LinuxContainerResources {
  1112. if m != nil {
  1113. return m.Resources
  1114. }
  1115. return nil
  1116. }
  1117. // PodSandboxMetadata holds all necessary information for building the sandbox name.
  1118. // The container runtime is encouraged to expose the metadata associated with the
  1119. // PodSandbox in its user interface for better user experience. For example,
  1120. // the runtime can construct a unique PodSandboxName based on the metadata.
  1121. type PodSandboxMetadata struct {
  1122. // Pod name of the sandbox. Same as the pod name in the Pod ObjectMeta.
  1123. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  1124. // Pod UID of the sandbox. Same as the pod UID in the Pod ObjectMeta.
  1125. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
  1126. // Pod namespace of the sandbox. Same as the pod namespace in the Pod ObjectMeta.
  1127. Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
  1128. // Attempt number of creating the sandbox. Default: 0.
  1129. Attempt uint32 `protobuf:"varint,4,opt,name=attempt,proto3" json:"attempt,omitempty"`
  1130. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1131. XXX_sizecache int32 `json:"-"`
  1132. }
  1133. func (m *PodSandboxMetadata) Reset() { *m = PodSandboxMetadata{} }
  1134. func (*PodSandboxMetadata) ProtoMessage() {}
  1135. func (*PodSandboxMetadata) Descriptor() ([]byte, []int) {
  1136. return fileDescriptor_00212fb1f9d3bf1c, []int{12}
  1137. }
  1138. func (m *PodSandboxMetadata) XXX_Unmarshal(b []byte) error {
  1139. return m.Unmarshal(b)
  1140. }
  1141. func (m *PodSandboxMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1142. if deterministic {
  1143. return xxx_messageInfo_PodSandboxMetadata.Marshal(b, m, deterministic)
  1144. } else {
  1145. b = b[:cap(b)]
  1146. n, err := m.MarshalToSizedBuffer(b)
  1147. if err != nil {
  1148. return nil, err
  1149. }
  1150. return b[:n], nil
  1151. }
  1152. }
  1153. func (m *PodSandboxMetadata) XXX_Merge(src proto.Message) {
  1154. xxx_messageInfo_PodSandboxMetadata.Merge(m, src)
  1155. }
  1156. func (m *PodSandboxMetadata) XXX_Size() int {
  1157. return m.Size()
  1158. }
  1159. func (m *PodSandboxMetadata) XXX_DiscardUnknown() {
  1160. xxx_messageInfo_PodSandboxMetadata.DiscardUnknown(m)
  1161. }
  1162. var xxx_messageInfo_PodSandboxMetadata proto.InternalMessageInfo
  1163. func (m *PodSandboxMetadata) GetName() string {
  1164. if m != nil {
  1165. return m.Name
  1166. }
  1167. return ""
  1168. }
  1169. func (m *PodSandboxMetadata) GetUid() string {
  1170. if m != nil {
  1171. return m.Uid
  1172. }
  1173. return ""
  1174. }
  1175. func (m *PodSandboxMetadata) GetNamespace() string {
  1176. if m != nil {
  1177. return m.Namespace
  1178. }
  1179. return ""
  1180. }
  1181. func (m *PodSandboxMetadata) GetAttempt() uint32 {
  1182. if m != nil {
  1183. return m.Attempt
  1184. }
  1185. return 0
  1186. }
  1187. // PodSandboxConfig holds all the required and optional fields for creating a
  1188. // sandbox.
  1189. type PodSandboxConfig struct {
  1190. // Metadata of the sandbox. This information will uniquely identify the
  1191. // sandbox, and the runtime should leverage this to ensure correct
  1192. // operation. The runtime may also use this information to improve UX, such
  1193. // as by constructing a readable name.
  1194. Metadata *PodSandboxMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
  1195. // Hostname of the sandbox. Hostname could only be empty when the pod
  1196. // network namespace is NODE.
  1197. Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
  1198. // Path to the directory on the host in which container log files are
  1199. // stored.
  1200. // By default the log of a container going into the LogDirectory will be
  1201. // hooked up to STDOUT and STDERR. However, the LogDirectory may contain
  1202. // binary log files with structured logging data from the individual
  1203. // containers. For example, the files might be newline separated JSON
  1204. // structured logs, systemd-journald journal files, gRPC trace files, etc.
  1205. // E.g.,
  1206. //
  1207. // PodSandboxConfig.LogDirectory = `/var/log/pods/<NAMESPACE>_<NAME>_<UID>/`
  1208. // ContainerConfig.LogPath = `containerName/Instance#.log`
  1209. LogDirectory string `protobuf:"bytes,3,opt,name=log_directory,json=logDirectory,proto3" json:"log_directory,omitempty"`
  1210. // DNS config for the sandbox.
  1211. DnsConfig *DNSConfig `protobuf:"bytes,4,opt,name=dns_config,json=dnsConfig,proto3" json:"dns_config,omitempty"`
  1212. // Port mappings for the sandbox.
  1213. PortMappings []*PortMapping `protobuf:"bytes,5,rep,name=port_mappings,json=portMappings,proto3" json:"port_mappings,omitempty"`
  1214. // Key-value pairs that may be used to scope and select individual resources.
  1215. Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1216. // Unstructured key-value map that may be set by the kubelet to store and
  1217. // retrieve arbitrary metadata. This will include any annotations set on a
  1218. // pod through the Kubernetes API.
  1219. //
  1220. // Annotations MUST NOT be altered by the runtime; the annotations stored
  1221. // here MUST be returned in the PodSandboxStatus associated with the pod
  1222. // this PodSandboxConfig creates.
  1223. //
  1224. // In general, in order to preserve a well-defined interface between the
  1225. // kubelet and the container runtime, annotations SHOULD NOT influence
  1226. // runtime behaviour.
  1227. //
  1228. // Annotations can also be useful for runtime authors to experiment with
  1229. // new features that are opaque to the Kubernetes APIs (both user-facing
  1230. // and the CRI). Whenever possible, however, runtime authors SHOULD
  1231. // consider proposing new typed fields for any new features instead.
  1232. Annotations map[string]string `protobuf:"bytes,7,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1233. // Optional configurations specific to Linux hosts.
  1234. Linux *LinuxPodSandboxConfig `protobuf:"bytes,8,opt,name=linux,proto3" json:"linux,omitempty"`
  1235. // Optional configurations specific to Windows hosts.
  1236. Windows *WindowsPodSandboxConfig `protobuf:"bytes,9,opt,name=windows,proto3" json:"windows,omitempty"`
  1237. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1238. XXX_sizecache int32 `json:"-"`
  1239. }
  1240. func (m *PodSandboxConfig) Reset() { *m = PodSandboxConfig{} }
  1241. func (*PodSandboxConfig) ProtoMessage() {}
  1242. func (*PodSandboxConfig) Descriptor() ([]byte, []int) {
  1243. return fileDescriptor_00212fb1f9d3bf1c, []int{13}
  1244. }
  1245. func (m *PodSandboxConfig) XXX_Unmarshal(b []byte) error {
  1246. return m.Unmarshal(b)
  1247. }
  1248. func (m *PodSandboxConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1249. if deterministic {
  1250. return xxx_messageInfo_PodSandboxConfig.Marshal(b, m, deterministic)
  1251. } else {
  1252. b = b[:cap(b)]
  1253. n, err := m.MarshalToSizedBuffer(b)
  1254. if err != nil {
  1255. return nil, err
  1256. }
  1257. return b[:n], nil
  1258. }
  1259. }
  1260. func (m *PodSandboxConfig) XXX_Merge(src proto.Message) {
  1261. xxx_messageInfo_PodSandboxConfig.Merge(m, src)
  1262. }
  1263. func (m *PodSandboxConfig) XXX_Size() int {
  1264. return m.Size()
  1265. }
  1266. func (m *PodSandboxConfig) XXX_DiscardUnknown() {
  1267. xxx_messageInfo_PodSandboxConfig.DiscardUnknown(m)
  1268. }
  1269. var xxx_messageInfo_PodSandboxConfig proto.InternalMessageInfo
  1270. func (m *PodSandboxConfig) GetMetadata() *PodSandboxMetadata {
  1271. if m != nil {
  1272. return m.Metadata
  1273. }
  1274. return nil
  1275. }
  1276. func (m *PodSandboxConfig) GetHostname() string {
  1277. if m != nil {
  1278. return m.Hostname
  1279. }
  1280. return ""
  1281. }
  1282. func (m *PodSandboxConfig) GetLogDirectory() string {
  1283. if m != nil {
  1284. return m.LogDirectory
  1285. }
  1286. return ""
  1287. }
  1288. func (m *PodSandboxConfig) GetDnsConfig() *DNSConfig {
  1289. if m != nil {
  1290. return m.DnsConfig
  1291. }
  1292. return nil
  1293. }
  1294. func (m *PodSandboxConfig) GetPortMappings() []*PortMapping {
  1295. if m != nil {
  1296. return m.PortMappings
  1297. }
  1298. return nil
  1299. }
  1300. func (m *PodSandboxConfig) GetLabels() map[string]string {
  1301. if m != nil {
  1302. return m.Labels
  1303. }
  1304. return nil
  1305. }
  1306. func (m *PodSandboxConfig) GetAnnotations() map[string]string {
  1307. if m != nil {
  1308. return m.Annotations
  1309. }
  1310. return nil
  1311. }
  1312. func (m *PodSandboxConfig) GetLinux() *LinuxPodSandboxConfig {
  1313. if m != nil {
  1314. return m.Linux
  1315. }
  1316. return nil
  1317. }
  1318. func (m *PodSandboxConfig) GetWindows() *WindowsPodSandboxConfig {
  1319. if m != nil {
  1320. return m.Windows
  1321. }
  1322. return nil
  1323. }
  1324. type RunPodSandboxRequest struct {
  1325. // Configuration for creating a PodSandbox.
  1326. Config *PodSandboxConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
  1327. // Named runtime configuration to use for this PodSandbox.
  1328. // If the runtime handler is unknown, this request should be rejected. An
  1329. // empty string should select the default handler, equivalent to the
  1330. // behavior before this feature was added.
  1331. // See https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
  1332. RuntimeHandler string `protobuf:"bytes,2,opt,name=runtime_handler,json=runtimeHandler,proto3" json:"runtime_handler,omitempty"`
  1333. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1334. XXX_sizecache int32 `json:"-"`
  1335. }
  1336. func (m *RunPodSandboxRequest) Reset() { *m = RunPodSandboxRequest{} }
  1337. func (*RunPodSandboxRequest) ProtoMessage() {}
  1338. func (*RunPodSandboxRequest) Descriptor() ([]byte, []int) {
  1339. return fileDescriptor_00212fb1f9d3bf1c, []int{14}
  1340. }
  1341. func (m *RunPodSandboxRequest) XXX_Unmarshal(b []byte) error {
  1342. return m.Unmarshal(b)
  1343. }
  1344. func (m *RunPodSandboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1345. if deterministic {
  1346. return xxx_messageInfo_RunPodSandboxRequest.Marshal(b, m, deterministic)
  1347. } else {
  1348. b = b[:cap(b)]
  1349. n, err := m.MarshalToSizedBuffer(b)
  1350. if err != nil {
  1351. return nil, err
  1352. }
  1353. return b[:n], nil
  1354. }
  1355. }
  1356. func (m *RunPodSandboxRequest) XXX_Merge(src proto.Message) {
  1357. xxx_messageInfo_RunPodSandboxRequest.Merge(m, src)
  1358. }
  1359. func (m *RunPodSandboxRequest) XXX_Size() int {
  1360. return m.Size()
  1361. }
  1362. func (m *RunPodSandboxRequest) XXX_DiscardUnknown() {
  1363. xxx_messageInfo_RunPodSandboxRequest.DiscardUnknown(m)
  1364. }
  1365. var xxx_messageInfo_RunPodSandboxRequest proto.InternalMessageInfo
  1366. func (m *RunPodSandboxRequest) GetConfig() *PodSandboxConfig {
  1367. if m != nil {
  1368. return m.Config
  1369. }
  1370. return nil
  1371. }
  1372. func (m *RunPodSandboxRequest) GetRuntimeHandler() string {
  1373. if m != nil {
  1374. return m.RuntimeHandler
  1375. }
  1376. return ""
  1377. }
  1378. type RunPodSandboxResponse struct {
  1379. // ID of the PodSandbox to run.
  1380. PodSandboxId string `protobuf:"bytes,1,opt,name=pod_sandbox_id,json=podSandboxId,proto3" json:"pod_sandbox_id,omitempty"`
  1381. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1382. XXX_sizecache int32 `json:"-"`
  1383. }
  1384. func (m *RunPodSandboxResponse) Reset() { *m = RunPodSandboxResponse{} }
  1385. func (*RunPodSandboxResponse) ProtoMessage() {}
  1386. func (*RunPodSandboxResponse) Descriptor() ([]byte, []int) {
  1387. return fileDescriptor_00212fb1f9d3bf1c, []int{15}
  1388. }
  1389. func (m *RunPodSandboxResponse) XXX_Unmarshal(b []byte) error {
  1390. return m.Unmarshal(b)
  1391. }
  1392. func (m *RunPodSandboxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1393. if deterministic {
  1394. return xxx_messageInfo_RunPodSandboxResponse.Marshal(b, m, deterministic)
  1395. } else {
  1396. b = b[:cap(b)]
  1397. n, err := m.MarshalToSizedBuffer(b)
  1398. if err != nil {
  1399. return nil, err
  1400. }
  1401. return b[:n], nil
  1402. }
  1403. }
  1404. func (m *RunPodSandboxResponse) XXX_Merge(src proto.Message) {
  1405. xxx_messageInfo_RunPodSandboxResponse.Merge(m, src)
  1406. }
  1407. func (m *RunPodSandboxResponse) XXX_Size() int {
  1408. return m.Size()
  1409. }
  1410. func (m *RunPodSandboxResponse) XXX_DiscardUnknown() {
  1411. xxx_messageInfo_RunPodSandboxResponse.DiscardUnknown(m)
  1412. }
  1413. var xxx_messageInfo_RunPodSandboxResponse proto.InternalMessageInfo
  1414. func (m *RunPodSandboxResponse) GetPodSandboxId() string {
  1415. if m != nil {
  1416. return m.PodSandboxId
  1417. }
  1418. return ""
  1419. }
  1420. type StopPodSandboxRequest struct {
  1421. // ID of the PodSandbox to stop.
  1422. PodSandboxId string `protobuf:"bytes,1,opt,name=pod_sandbox_id,json=podSandboxId,proto3" json:"pod_sandbox_id,omitempty"`
  1423. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1424. XXX_sizecache int32 `json:"-"`
  1425. }
  1426. func (m *StopPodSandboxRequest) Reset() { *m = StopPodSandboxRequest{} }
  1427. func (*StopPodSandboxRequest) ProtoMessage() {}
  1428. func (*StopPodSandboxRequest) Descriptor() ([]byte, []int) {
  1429. return fileDescriptor_00212fb1f9d3bf1c, []int{16}
  1430. }
  1431. func (m *StopPodSandboxRequest) XXX_Unmarshal(b []byte) error {
  1432. return m.Unmarshal(b)
  1433. }
  1434. func (m *StopPodSandboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1435. if deterministic {
  1436. return xxx_messageInfo_StopPodSandboxRequest.Marshal(b, m, deterministic)
  1437. } else {
  1438. b = b[:cap(b)]
  1439. n, err := m.MarshalToSizedBuffer(b)
  1440. if err != nil {
  1441. return nil, err
  1442. }
  1443. return b[:n], nil
  1444. }
  1445. }
  1446. func (m *StopPodSandboxRequest) XXX_Merge(src proto.Message) {
  1447. xxx_messageInfo_StopPodSandboxRequest.Merge(m, src)
  1448. }
  1449. func (m *StopPodSandboxRequest) XXX_Size() int {
  1450. return m.Size()
  1451. }
  1452. func (m *StopPodSandboxRequest) XXX_DiscardUnknown() {
  1453. xxx_messageInfo_StopPodSandboxRequest.DiscardUnknown(m)
  1454. }
  1455. var xxx_messageInfo_StopPodSandboxRequest proto.InternalMessageInfo
  1456. func (m *StopPodSandboxRequest) GetPodSandboxId() string {
  1457. if m != nil {
  1458. return m.PodSandboxId
  1459. }
  1460. return ""
  1461. }
  1462. type StopPodSandboxResponse struct {
  1463. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1464. XXX_sizecache int32 `json:"-"`
  1465. }
  1466. func (m *StopPodSandboxResponse) Reset() { *m = StopPodSandboxResponse{} }
  1467. func (*StopPodSandboxResponse) ProtoMessage() {}
  1468. func (*StopPodSandboxResponse) Descriptor() ([]byte, []int) {
  1469. return fileDescriptor_00212fb1f9d3bf1c, []int{17}
  1470. }
  1471. func (m *StopPodSandboxResponse) XXX_Unmarshal(b []byte) error {
  1472. return m.Unmarshal(b)
  1473. }
  1474. func (m *StopPodSandboxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1475. if deterministic {
  1476. return xxx_messageInfo_StopPodSandboxResponse.Marshal(b, m, deterministic)
  1477. } else {
  1478. b = b[:cap(b)]
  1479. n, err := m.MarshalToSizedBuffer(b)
  1480. if err != nil {
  1481. return nil, err
  1482. }
  1483. return b[:n], nil
  1484. }
  1485. }
  1486. func (m *StopPodSandboxResponse) XXX_Merge(src proto.Message) {
  1487. xxx_messageInfo_StopPodSandboxResponse.Merge(m, src)
  1488. }
  1489. func (m *StopPodSandboxResponse) XXX_Size() int {
  1490. return m.Size()
  1491. }
  1492. func (m *StopPodSandboxResponse) XXX_DiscardUnknown() {
  1493. xxx_messageInfo_StopPodSandboxResponse.DiscardUnknown(m)
  1494. }
  1495. var xxx_messageInfo_StopPodSandboxResponse proto.InternalMessageInfo
  1496. type RemovePodSandboxRequest struct {
  1497. // ID of the PodSandbox to remove.
  1498. PodSandboxId string `protobuf:"bytes,1,opt,name=pod_sandbox_id,json=podSandboxId,proto3" json:"pod_sandbox_id,omitempty"`
  1499. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1500. XXX_sizecache int32 `json:"-"`
  1501. }
  1502. func (m *RemovePodSandboxRequest) Reset() { *m = RemovePodSandboxRequest{} }
  1503. func (*RemovePodSandboxRequest) ProtoMessage() {}
  1504. func (*RemovePodSandboxRequest) Descriptor() ([]byte, []int) {
  1505. return fileDescriptor_00212fb1f9d3bf1c, []int{18}
  1506. }
  1507. func (m *RemovePodSandboxRequest) XXX_Unmarshal(b []byte) error {
  1508. return m.Unmarshal(b)
  1509. }
  1510. func (m *RemovePodSandboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1511. if deterministic {
  1512. return xxx_messageInfo_RemovePodSandboxRequest.Marshal(b, m, deterministic)
  1513. } else {
  1514. b = b[:cap(b)]
  1515. n, err := m.MarshalToSizedBuffer(b)
  1516. if err != nil {
  1517. return nil, err
  1518. }
  1519. return b[:n], nil
  1520. }
  1521. }
  1522. func (m *RemovePodSandboxRequest) XXX_Merge(src proto.Message) {
  1523. xxx_messageInfo_RemovePodSandboxRequest.Merge(m, src)
  1524. }
  1525. func (m *RemovePodSandboxRequest) XXX_Size() int {
  1526. return m.Size()
  1527. }
  1528. func (m *RemovePodSandboxRequest) XXX_DiscardUnknown() {
  1529. xxx_messageInfo_RemovePodSandboxRequest.DiscardUnknown(m)
  1530. }
  1531. var xxx_messageInfo_RemovePodSandboxRequest proto.InternalMessageInfo
  1532. func (m *RemovePodSandboxRequest) GetPodSandboxId() string {
  1533. if m != nil {
  1534. return m.PodSandboxId
  1535. }
  1536. return ""
  1537. }
  1538. type RemovePodSandboxResponse struct {
  1539. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1540. XXX_sizecache int32 `json:"-"`
  1541. }
  1542. func (m *RemovePodSandboxResponse) Reset() { *m = RemovePodSandboxResponse{} }
  1543. func (*RemovePodSandboxResponse) ProtoMessage() {}
  1544. func (*RemovePodSandboxResponse) Descriptor() ([]byte, []int) {
  1545. return fileDescriptor_00212fb1f9d3bf1c, []int{19}
  1546. }
  1547. func (m *RemovePodSandboxResponse) XXX_Unmarshal(b []byte) error {
  1548. return m.Unmarshal(b)
  1549. }
  1550. func (m *RemovePodSandboxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1551. if deterministic {
  1552. return xxx_messageInfo_RemovePodSandboxResponse.Marshal(b, m, deterministic)
  1553. } else {
  1554. b = b[:cap(b)]
  1555. n, err := m.MarshalToSizedBuffer(b)
  1556. if err != nil {
  1557. return nil, err
  1558. }
  1559. return b[:n], nil
  1560. }
  1561. }
  1562. func (m *RemovePodSandboxResponse) XXX_Merge(src proto.Message) {
  1563. xxx_messageInfo_RemovePodSandboxResponse.Merge(m, src)
  1564. }
  1565. func (m *RemovePodSandboxResponse) XXX_Size() int {
  1566. return m.Size()
  1567. }
  1568. func (m *RemovePodSandboxResponse) XXX_DiscardUnknown() {
  1569. xxx_messageInfo_RemovePodSandboxResponse.DiscardUnknown(m)
  1570. }
  1571. var xxx_messageInfo_RemovePodSandboxResponse proto.InternalMessageInfo
  1572. type PodSandboxStatusRequest struct {
  1573. // ID of the PodSandbox for which to retrieve status.
  1574. PodSandboxId string `protobuf:"bytes,1,opt,name=pod_sandbox_id,json=podSandboxId,proto3" json:"pod_sandbox_id,omitempty"`
  1575. // Verbose indicates whether to return extra information about the pod sandbox.
  1576. Verbose bool `protobuf:"varint,2,opt,name=verbose,proto3" json:"verbose,omitempty"`
  1577. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1578. XXX_sizecache int32 `json:"-"`
  1579. }
  1580. func (m *PodSandboxStatusRequest) Reset() { *m = PodSandboxStatusRequest{} }
  1581. func (*PodSandboxStatusRequest) ProtoMessage() {}
  1582. func (*PodSandboxStatusRequest) Descriptor() ([]byte, []int) {
  1583. return fileDescriptor_00212fb1f9d3bf1c, []int{20}
  1584. }
  1585. func (m *PodSandboxStatusRequest) XXX_Unmarshal(b []byte) error {
  1586. return m.Unmarshal(b)
  1587. }
  1588. func (m *PodSandboxStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1589. if deterministic {
  1590. return xxx_messageInfo_PodSandboxStatusRequest.Marshal(b, m, deterministic)
  1591. } else {
  1592. b = b[:cap(b)]
  1593. n, err := m.MarshalToSizedBuffer(b)
  1594. if err != nil {
  1595. return nil, err
  1596. }
  1597. return b[:n], nil
  1598. }
  1599. }
  1600. func (m *PodSandboxStatusRequest) XXX_Merge(src proto.Message) {
  1601. xxx_messageInfo_PodSandboxStatusRequest.Merge(m, src)
  1602. }
  1603. func (m *PodSandboxStatusRequest) XXX_Size() int {
  1604. return m.Size()
  1605. }
  1606. func (m *PodSandboxStatusRequest) XXX_DiscardUnknown() {
  1607. xxx_messageInfo_PodSandboxStatusRequest.DiscardUnknown(m)
  1608. }
  1609. var xxx_messageInfo_PodSandboxStatusRequest proto.InternalMessageInfo
  1610. func (m *PodSandboxStatusRequest) GetPodSandboxId() string {
  1611. if m != nil {
  1612. return m.PodSandboxId
  1613. }
  1614. return ""
  1615. }
  1616. func (m *PodSandboxStatusRequest) GetVerbose() bool {
  1617. if m != nil {
  1618. return m.Verbose
  1619. }
  1620. return false
  1621. }
  1622. // PodIP represents an ip of a Pod
  1623. type PodIP struct {
  1624. // an ip is a string representation of an IPv4 or an IPv6
  1625. Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
  1626. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1627. XXX_sizecache int32 `json:"-"`
  1628. }
  1629. func (m *PodIP) Reset() { *m = PodIP{} }
  1630. func (*PodIP) ProtoMessage() {}
  1631. func (*PodIP) Descriptor() ([]byte, []int) {
  1632. return fileDescriptor_00212fb1f9d3bf1c, []int{21}
  1633. }
  1634. func (m *PodIP) XXX_Unmarshal(b []byte) error {
  1635. return m.Unmarshal(b)
  1636. }
  1637. func (m *PodIP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1638. if deterministic {
  1639. return xxx_messageInfo_PodIP.Marshal(b, m, deterministic)
  1640. } else {
  1641. b = b[:cap(b)]
  1642. n, err := m.MarshalToSizedBuffer(b)
  1643. if err != nil {
  1644. return nil, err
  1645. }
  1646. return b[:n], nil
  1647. }
  1648. }
  1649. func (m *PodIP) XXX_Merge(src proto.Message) {
  1650. xxx_messageInfo_PodIP.Merge(m, src)
  1651. }
  1652. func (m *PodIP) XXX_Size() int {
  1653. return m.Size()
  1654. }
  1655. func (m *PodIP) XXX_DiscardUnknown() {
  1656. xxx_messageInfo_PodIP.DiscardUnknown(m)
  1657. }
  1658. var xxx_messageInfo_PodIP proto.InternalMessageInfo
  1659. func (m *PodIP) GetIp() string {
  1660. if m != nil {
  1661. return m.Ip
  1662. }
  1663. return ""
  1664. }
  1665. // PodSandboxNetworkStatus is the status of the network for a PodSandbox.
  1666. // Currently ignored for pods sharing the host networking namespace.
  1667. type PodSandboxNetworkStatus struct {
  1668. // IP address of the PodSandbox.
  1669. Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
  1670. // list of additional ips (not inclusive of PodSandboxNetworkStatus.Ip) of the PodSandBoxNetworkStatus
  1671. AdditionalIps []*PodIP `protobuf:"bytes,2,rep,name=additional_ips,json=additionalIps,proto3" json:"additional_ips,omitempty"`
  1672. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1673. XXX_sizecache int32 `json:"-"`
  1674. }
  1675. func (m *PodSandboxNetworkStatus) Reset() { *m = PodSandboxNetworkStatus{} }
  1676. func (*PodSandboxNetworkStatus) ProtoMessage() {}
  1677. func (*PodSandboxNetworkStatus) Descriptor() ([]byte, []int) {
  1678. return fileDescriptor_00212fb1f9d3bf1c, []int{22}
  1679. }
  1680. func (m *PodSandboxNetworkStatus) XXX_Unmarshal(b []byte) error {
  1681. return m.Unmarshal(b)
  1682. }
  1683. func (m *PodSandboxNetworkStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1684. if deterministic {
  1685. return xxx_messageInfo_PodSandboxNetworkStatus.Marshal(b, m, deterministic)
  1686. } else {
  1687. b = b[:cap(b)]
  1688. n, err := m.MarshalToSizedBuffer(b)
  1689. if err != nil {
  1690. return nil, err
  1691. }
  1692. return b[:n], nil
  1693. }
  1694. }
  1695. func (m *PodSandboxNetworkStatus) XXX_Merge(src proto.Message) {
  1696. xxx_messageInfo_PodSandboxNetworkStatus.Merge(m, src)
  1697. }
  1698. func (m *PodSandboxNetworkStatus) XXX_Size() int {
  1699. return m.Size()
  1700. }
  1701. func (m *PodSandboxNetworkStatus) XXX_DiscardUnknown() {
  1702. xxx_messageInfo_PodSandboxNetworkStatus.DiscardUnknown(m)
  1703. }
  1704. var xxx_messageInfo_PodSandboxNetworkStatus proto.InternalMessageInfo
  1705. func (m *PodSandboxNetworkStatus) GetIp() string {
  1706. if m != nil {
  1707. return m.Ip
  1708. }
  1709. return ""
  1710. }
  1711. func (m *PodSandboxNetworkStatus) GetAdditionalIps() []*PodIP {
  1712. if m != nil {
  1713. return m.AdditionalIps
  1714. }
  1715. return nil
  1716. }
  1717. // Namespace contains paths to the namespaces.
  1718. type Namespace struct {
  1719. // Namespace options for Linux namespaces.
  1720. Options *NamespaceOption `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
  1721. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1722. XXX_sizecache int32 `json:"-"`
  1723. }
  1724. func (m *Namespace) Reset() { *m = Namespace{} }
  1725. func (*Namespace) ProtoMessage() {}
  1726. func (*Namespace) Descriptor() ([]byte, []int) {
  1727. return fileDescriptor_00212fb1f9d3bf1c, []int{23}
  1728. }
  1729. func (m *Namespace) XXX_Unmarshal(b []byte) error {
  1730. return m.Unmarshal(b)
  1731. }
  1732. func (m *Namespace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1733. if deterministic {
  1734. return xxx_messageInfo_Namespace.Marshal(b, m, deterministic)
  1735. } else {
  1736. b = b[:cap(b)]
  1737. n, err := m.MarshalToSizedBuffer(b)
  1738. if err != nil {
  1739. return nil, err
  1740. }
  1741. return b[:n], nil
  1742. }
  1743. }
  1744. func (m *Namespace) XXX_Merge(src proto.Message) {
  1745. xxx_messageInfo_Namespace.Merge(m, src)
  1746. }
  1747. func (m *Namespace) XXX_Size() int {
  1748. return m.Size()
  1749. }
  1750. func (m *Namespace) XXX_DiscardUnknown() {
  1751. xxx_messageInfo_Namespace.DiscardUnknown(m)
  1752. }
  1753. var xxx_messageInfo_Namespace proto.InternalMessageInfo
  1754. func (m *Namespace) GetOptions() *NamespaceOption {
  1755. if m != nil {
  1756. return m.Options
  1757. }
  1758. return nil
  1759. }
  1760. // LinuxSandboxStatus contains status specific to Linux sandboxes.
  1761. type LinuxPodSandboxStatus struct {
  1762. // Paths to the sandbox's namespaces.
  1763. Namespaces *Namespace `protobuf:"bytes,1,opt,name=namespaces,proto3" json:"namespaces,omitempty"`
  1764. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1765. XXX_sizecache int32 `json:"-"`
  1766. }
  1767. func (m *LinuxPodSandboxStatus) Reset() { *m = LinuxPodSandboxStatus{} }
  1768. func (*LinuxPodSandboxStatus) ProtoMessage() {}
  1769. func (*LinuxPodSandboxStatus) Descriptor() ([]byte, []int) {
  1770. return fileDescriptor_00212fb1f9d3bf1c, []int{24}
  1771. }
  1772. func (m *LinuxPodSandboxStatus) XXX_Unmarshal(b []byte) error {
  1773. return m.Unmarshal(b)
  1774. }
  1775. func (m *LinuxPodSandboxStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1776. if deterministic {
  1777. return xxx_messageInfo_LinuxPodSandboxStatus.Marshal(b, m, deterministic)
  1778. } else {
  1779. b = b[:cap(b)]
  1780. n, err := m.MarshalToSizedBuffer(b)
  1781. if err != nil {
  1782. return nil, err
  1783. }
  1784. return b[:n], nil
  1785. }
  1786. }
  1787. func (m *LinuxPodSandboxStatus) XXX_Merge(src proto.Message) {
  1788. xxx_messageInfo_LinuxPodSandboxStatus.Merge(m, src)
  1789. }
  1790. func (m *LinuxPodSandboxStatus) XXX_Size() int {
  1791. return m.Size()
  1792. }
  1793. func (m *LinuxPodSandboxStatus) XXX_DiscardUnknown() {
  1794. xxx_messageInfo_LinuxPodSandboxStatus.DiscardUnknown(m)
  1795. }
  1796. var xxx_messageInfo_LinuxPodSandboxStatus proto.InternalMessageInfo
  1797. func (m *LinuxPodSandboxStatus) GetNamespaces() *Namespace {
  1798. if m != nil {
  1799. return m.Namespaces
  1800. }
  1801. return nil
  1802. }
  1803. // PodSandboxStatus contains the status of the PodSandbox.
  1804. type PodSandboxStatus struct {
  1805. // ID of the sandbox.
  1806. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  1807. // Metadata of the sandbox.
  1808. Metadata *PodSandboxMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
  1809. // State of the sandbox.
  1810. State PodSandboxState `protobuf:"varint,3,opt,name=state,proto3,enum=runtime.v1.PodSandboxState" json:"state,omitempty"`
  1811. // Creation timestamp of the sandbox in nanoseconds. Must be > 0.
  1812. CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  1813. // Network contains network status if network is handled by the runtime.
  1814. Network *PodSandboxNetworkStatus `protobuf:"bytes,5,opt,name=network,proto3" json:"network,omitempty"`
  1815. // Linux-specific status to a pod sandbox.
  1816. Linux *LinuxPodSandboxStatus `protobuf:"bytes,6,opt,name=linux,proto3" json:"linux,omitempty"`
  1817. // Labels are key-value pairs that may be used to scope and select individual resources.
  1818. Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1819. // Unstructured key-value map holding arbitrary metadata.
  1820. // Annotations MUST NOT be altered by the runtime; the value of this field
  1821. // MUST be identical to that of the corresponding PodSandboxConfig used to
  1822. // instantiate the pod sandbox this status represents.
  1823. Annotations map[string]string `protobuf:"bytes,8,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1824. // runtime configuration used for this PodSandbox.
  1825. RuntimeHandler string `protobuf:"bytes,9,opt,name=runtime_handler,json=runtimeHandler,proto3" json:"runtime_handler,omitempty"`
  1826. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1827. XXX_sizecache int32 `json:"-"`
  1828. }
  1829. func (m *PodSandboxStatus) Reset() { *m = PodSandboxStatus{} }
  1830. func (*PodSandboxStatus) ProtoMessage() {}
  1831. func (*PodSandboxStatus) Descriptor() ([]byte, []int) {
  1832. return fileDescriptor_00212fb1f9d3bf1c, []int{25}
  1833. }
  1834. func (m *PodSandboxStatus) XXX_Unmarshal(b []byte) error {
  1835. return m.Unmarshal(b)
  1836. }
  1837. func (m *PodSandboxStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1838. if deterministic {
  1839. return xxx_messageInfo_PodSandboxStatus.Marshal(b, m, deterministic)
  1840. } else {
  1841. b = b[:cap(b)]
  1842. n, err := m.MarshalToSizedBuffer(b)
  1843. if err != nil {
  1844. return nil, err
  1845. }
  1846. return b[:n], nil
  1847. }
  1848. }
  1849. func (m *PodSandboxStatus) XXX_Merge(src proto.Message) {
  1850. xxx_messageInfo_PodSandboxStatus.Merge(m, src)
  1851. }
  1852. func (m *PodSandboxStatus) XXX_Size() int {
  1853. return m.Size()
  1854. }
  1855. func (m *PodSandboxStatus) XXX_DiscardUnknown() {
  1856. xxx_messageInfo_PodSandboxStatus.DiscardUnknown(m)
  1857. }
  1858. var xxx_messageInfo_PodSandboxStatus proto.InternalMessageInfo
  1859. func (m *PodSandboxStatus) GetId() string {
  1860. if m != nil {
  1861. return m.Id
  1862. }
  1863. return ""
  1864. }
  1865. func (m *PodSandboxStatus) GetMetadata() *PodSandboxMetadata {
  1866. if m != nil {
  1867. return m.Metadata
  1868. }
  1869. return nil
  1870. }
  1871. func (m *PodSandboxStatus) GetState() PodSandboxState {
  1872. if m != nil {
  1873. return m.State
  1874. }
  1875. return PodSandboxState_SANDBOX_READY
  1876. }
  1877. func (m *PodSandboxStatus) GetCreatedAt() int64 {
  1878. if m != nil {
  1879. return m.CreatedAt
  1880. }
  1881. return 0
  1882. }
  1883. func (m *PodSandboxStatus) GetNetwork() *PodSandboxNetworkStatus {
  1884. if m != nil {
  1885. return m.Network
  1886. }
  1887. return nil
  1888. }
  1889. func (m *PodSandboxStatus) GetLinux() *LinuxPodSandboxStatus {
  1890. if m != nil {
  1891. return m.Linux
  1892. }
  1893. return nil
  1894. }
  1895. func (m *PodSandboxStatus) GetLabels() map[string]string {
  1896. if m != nil {
  1897. return m.Labels
  1898. }
  1899. return nil
  1900. }
  1901. func (m *PodSandboxStatus) GetAnnotations() map[string]string {
  1902. if m != nil {
  1903. return m.Annotations
  1904. }
  1905. return nil
  1906. }
  1907. func (m *PodSandboxStatus) GetRuntimeHandler() string {
  1908. if m != nil {
  1909. return m.RuntimeHandler
  1910. }
  1911. return ""
  1912. }
  1913. type PodSandboxStatusResponse struct {
  1914. // Status of the PodSandbox.
  1915. Status *PodSandboxStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
  1916. // Info is extra information of the PodSandbox. The key could be arbitrary string, and
  1917. // value should be in json format. The information could include anything useful for
  1918. // debug, e.g. network namespace for linux container based container runtime.
  1919. // It should only be returned non-empty when Verbose is true.
  1920. Info map[string]string `protobuf:"bytes,2,rep,name=info,proto3" json:"info,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1921. // Container statuses
  1922. ContainersStatuses []*ContainerStatus `protobuf:"bytes,3,rep,name=containers_statuses,json=containersStatuses,proto3" json:"containers_statuses,omitempty"`
  1923. // Timestamp at which container and pod statuses were recorded
  1924. Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  1925. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1926. XXX_sizecache int32 `json:"-"`
  1927. }
  1928. func (m *PodSandboxStatusResponse) Reset() { *m = PodSandboxStatusResponse{} }
  1929. func (*PodSandboxStatusResponse) ProtoMessage() {}
  1930. func (*PodSandboxStatusResponse) Descriptor() ([]byte, []int) {
  1931. return fileDescriptor_00212fb1f9d3bf1c, []int{26}
  1932. }
  1933. func (m *PodSandboxStatusResponse) XXX_Unmarshal(b []byte) error {
  1934. return m.Unmarshal(b)
  1935. }
  1936. func (m *PodSandboxStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1937. if deterministic {
  1938. return xxx_messageInfo_PodSandboxStatusResponse.Marshal(b, m, deterministic)
  1939. } else {
  1940. b = b[:cap(b)]
  1941. n, err := m.MarshalToSizedBuffer(b)
  1942. if err != nil {
  1943. return nil, err
  1944. }
  1945. return b[:n], nil
  1946. }
  1947. }
  1948. func (m *PodSandboxStatusResponse) XXX_Merge(src proto.Message) {
  1949. xxx_messageInfo_PodSandboxStatusResponse.Merge(m, src)
  1950. }
  1951. func (m *PodSandboxStatusResponse) XXX_Size() int {
  1952. return m.Size()
  1953. }
  1954. func (m *PodSandboxStatusResponse) XXX_DiscardUnknown() {
  1955. xxx_messageInfo_PodSandboxStatusResponse.DiscardUnknown(m)
  1956. }
  1957. var xxx_messageInfo_PodSandboxStatusResponse proto.InternalMessageInfo
  1958. func (m *PodSandboxStatusResponse) GetStatus() *PodSandboxStatus {
  1959. if m != nil {
  1960. return m.Status
  1961. }
  1962. return nil
  1963. }
  1964. func (m *PodSandboxStatusResponse) GetInfo() map[string]string {
  1965. if m != nil {
  1966. return m.Info
  1967. }
  1968. return nil
  1969. }
  1970. func (m *PodSandboxStatusResponse) GetContainersStatuses() []*ContainerStatus {
  1971. if m != nil {
  1972. return m.ContainersStatuses
  1973. }
  1974. return nil
  1975. }
  1976. func (m *PodSandboxStatusResponse) GetTimestamp() int64 {
  1977. if m != nil {
  1978. return m.Timestamp
  1979. }
  1980. return 0
  1981. }
  1982. // PodSandboxStateValue is the wrapper of PodSandboxState.
  1983. type PodSandboxStateValue struct {
  1984. // State of the sandbox.
  1985. State PodSandboxState `protobuf:"varint,1,opt,name=state,proto3,enum=runtime.v1.PodSandboxState" json:"state,omitempty"`
  1986. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1987. XXX_sizecache int32 `json:"-"`
  1988. }
  1989. func (m *PodSandboxStateValue) Reset() { *m = PodSandboxStateValue{} }
  1990. func (*PodSandboxStateValue) ProtoMessage() {}
  1991. func (*PodSandboxStateValue) Descriptor() ([]byte, []int) {
  1992. return fileDescriptor_00212fb1f9d3bf1c, []int{27}
  1993. }
  1994. func (m *PodSandboxStateValue) XXX_Unmarshal(b []byte) error {
  1995. return m.Unmarshal(b)
  1996. }
  1997. func (m *PodSandboxStateValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1998. if deterministic {
  1999. return xxx_messageInfo_PodSandboxStateValue.Marshal(b, m, deterministic)
  2000. } else {
  2001. b = b[:cap(b)]
  2002. n, err := m.MarshalToSizedBuffer(b)
  2003. if err != nil {
  2004. return nil, err
  2005. }
  2006. return b[:n], nil
  2007. }
  2008. }
  2009. func (m *PodSandboxStateValue) XXX_Merge(src proto.Message) {
  2010. xxx_messageInfo_PodSandboxStateValue.Merge(m, src)
  2011. }
  2012. func (m *PodSandboxStateValue) XXX_Size() int {
  2013. return m.Size()
  2014. }
  2015. func (m *PodSandboxStateValue) XXX_DiscardUnknown() {
  2016. xxx_messageInfo_PodSandboxStateValue.DiscardUnknown(m)
  2017. }
  2018. var xxx_messageInfo_PodSandboxStateValue proto.InternalMessageInfo
  2019. func (m *PodSandboxStateValue) GetState() PodSandboxState {
  2020. if m != nil {
  2021. return m.State
  2022. }
  2023. return PodSandboxState_SANDBOX_READY
  2024. }
  2025. // PodSandboxFilter is used to filter a list of PodSandboxes.
  2026. // All those fields are combined with 'AND'
  2027. type PodSandboxFilter struct {
  2028. // ID of the sandbox.
  2029. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  2030. // State of the sandbox.
  2031. State *PodSandboxStateValue `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
  2032. // LabelSelector to select matches.
  2033. // Only api.MatchLabels is supported for now and the requirements
  2034. // are ANDed. MatchExpressions is not supported yet.
  2035. LabelSelector map[string]string `protobuf:"bytes,3,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  2036. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2037. XXX_sizecache int32 `json:"-"`
  2038. }
  2039. func (m *PodSandboxFilter) Reset() { *m = PodSandboxFilter{} }
  2040. func (*PodSandboxFilter) ProtoMessage() {}
  2041. func (*PodSandboxFilter) Descriptor() ([]byte, []int) {
  2042. return fileDescriptor_00212fb1f9d3bf1c, []int{28}
  2043. }
  2044. func (m *PodSandboxFilter) XXX_Unmarshal(b []byte) error {
  2045. return m.Unmarshal(b)
  2046. }
  2047. func (m *PodSandboxFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2048. if deterministic {
  2049. return xxx_messageInfo_PodSandboxFilter.Marshal(b, m, deterministic)
  2050. } else {
  2051. b = b[:cap(b)]
  2052. n, err := m.MarshalToSizedBuffer(b)
  2053. if err != nil {
  2054. return nil, err
  2055. }
  2056. return b[:n], nil
  2057. }
  2058. }
  2059. func (m *PodSandboxFilter) XXX_Merge(src proto.Message) {
  2060. xxx_messageInfo_PodSandboxFilter.Merge(m, src)
  2061. }
  2062. func (m *PodSandboxFilter) XXX_Size() int {
  2063. return m.Size()
  2064. }
  2065. func (m *PodSandboxFilter) XXX_DiscardUnknown() {
  2066. xxx_messageInfo_PodSandboxFilter.DiscardUnknown(m)
  2067. }
  2068. var xxx_messageInfo_PodSandboxFilter proto.InternalMessageInfo
  2069. func (m *PodSandboxFilter) GetId() string {
  2070. if m != nil {
  2071. return m.Id
  2072. }
  2073. return ""
  2074. }
  2075. func (m *PodSandboxFilter) GetState() *PodSandboxStateValue {
  2076. if m != nil {
  2077. return m.State
  2078. }
  2079. return nil
  2080. }
  2081. func (m *PodSandboxFilter) GetLabelSelector() map[string]string {
  2082. if m != nil {
  2083. return m.LabelSelector
  2084. }
  2085. return nil
  2086. }
  2087. type ListPodSandboxRequest struct {
  2088. // PodSandboxFilter to filter a list of PodSandboxes.
  2089. Filter *PodSandboxFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
  2090. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2091. XXX_sizecache int32 `json:"-"`
  2092. }
  2093. func (m *ListPodSandboxRequest) Reset() { *m = ListPodSandboxRequest{} }
  2094. func (*ListPodSandboxRequest) ProtoMessage() {}
  2095. func (*ListPodSandboxRequest) Descriptor() ([]byte, []int) {
  2096. return fileDescriptor_00212fb1f9d3bf1c, []int{29}
  2097. }
  2098. func (m *ListPodSandboxRequest) XXX_Unmarshal(b []byte) error {
  2099. return m.Unmarshal(b)
  2100. }
  2101. func (m *ListPodSandboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2102. if deterministic {
  2103. return xxx_messageInfo_ListPodSandboxRequest.Marshal(b, m, deterministic)
  2104. } else {
  2105. b = b[:cap(b)]
  2106. n, err := m.MarshalToSizedBuffer(b)
  2107. if err != nil {
  2108. return nil, err
  2109. }
  2110. return b[:n], nil
  2111. }
  2112. }
  2113. func (m *ListPodSandboxRequest) XXX_Merge(src proto.Message) {
  2114. xxx_messageInfo_ListPodSandboxRequest.Merge(m, src)
  2115. }
  2116. func (m *ListPodSandboxRequest) XXX_Size() int {
  2117. return m.Size()
  2118. }
  2119. func (m *ListPodSandboxRequest) XXX_DiscardUnknown() {
  2120. xxx_messageInfo_ListPodSandboxRequest.DiscardUnknown(m)
  2121. }
  2122. var xxx_messageInfo_ListPodSandboxRequest proto.InternalMessageInfo
  2123. func (m *ListPodSandboxRequest) GetFilter() *PodSandboxFilter {
  2124. if m != nil {
  2125. return m.Filter
  2126. }
  2127. return nil
  2128. }
  2129. // PodSandbox contains minimal information about a sandbox.
  2130. type PodSandbox struct {
  2131. // ID of the PodSandbox.
  2132. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  2133. // Metadata of the PodSandbox.
  2134. Metadata *PodSandboxMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
  2135. // State of the PodSandbox.
  2136. State PodSandboxState `protobuf:"varint,3,opt,name=state,proto3,enum=runtime.v1.PodSandboxState" json:"state,omitempty"`
  2137. // Creation timestamps of the PodSandbox in nanoseconds. Must be > 0.
  2138. CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  2139. // Labels of the PodSandbox.
  2140. Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  2141. // Unstructured key-value map holding arbitrary metadata.
  2142. // Annotations MUST NOT be altered by the runtime; the value of this field
  2143. // MUST be identical to that of the corresponding PodSandboxConfig used to
  2144. // instantiate this PodSandbox.
  2145. Annotations map[string]string `protobuf:"bytes,6,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  2146. // runtime configuration used for this PodSandbox.
  2147. RuntimeHandler string `protobuf:"bytes,7,opt,name=runtime_handler,json=runtimeHandler,proto3" json:"runtime_handler,omitempty"`
  2148. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2149. XXX_sizecache int32 `json:"-"`
  2150. }
  2151. func (m *PodSandbox) Reset() { *m = PodSandbox{} }
  2152. func (*PodSandbox) ProtoMessage() {}
  2153. func (*PodSandbox) Descriptor() ([]byte, []int) {
  2154. return fileDescriptor_00212fb1f9d3bf1c, []int{30}
  2155. }
  2156. func (m *PodSandbox) XXX_Unmarshal(b []byte) error {
  2157. return m.Unmarshal(b)
  2158. }
  2159. func (m *PodSandbox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2160. if deterministic {
  2161. return xxx_messageInfo_PodSandbox.Marshal(b, m, deterministic)
  2162. } else {
  2163. b = b[:cap(b)]
  2164. n, err := m.MarshalToSizedBuffer(b)
  2165. if err != nil {
  2166. return nil, err
  2167. }
  2168. return b[:n], nil
  2169. }
  2170. }
  2171. func (m *PodSandbox) XXX_Merge(src proto.Message) {
  2172. xxx_messageInfo_PodSandbox.Merge(m, src)
  2173. }
  2174. func (m *PodSandbox) XXX_Size() int {
  2175. return m.Size()
  2176. }
  2177. func (m *PodSandbox) XXX_DiscardUnknown() {
  2178. xxx_messageInfo_PodSandbox.DiscardUnknown(m)
  2179. }
  2180. var xxx_messageInfo_PodSandbox proto.InternalMessageInfo
  2181. func (m *PodSandbox) GetId() string {
  2182. if m != nil {
  2183. return m.Id
  2184. }
  2185. return ""
  2186. }
  2187. func (m *PodSandbox) GetMetadata() *PodSandboxMetadata {
  2188. if m != nil {
  2189. return m.Metadata
  2190. }
  2191. return nil
  2192. }
  2193. func (m *PodSandbox) GetState() PodSandboxState {
  2194. if m != nil {
  2195. return m.State
  2196. }
  2197. return PodSandboxState_SANDBOX_READY
  2198. }
  2199. func (m *PodSandbox) GetCreatedAt() int64 {
  2200. if m != nil {
  2201. return m.CreatedAt
  2202. }
  2203. return 0
  2204. }
  2205. func (m *PodSandbox) GetLabels() map[string]string {
  2206. if m != nil {
  2207. return m.Labels
  2208. }
  2209. return nil
  2210. }
  2211. func (m *PodSandbox) GetAnnotations() map[string]string {
  2212. if m != nil {
  2213. return m.Annotations
  2214. }
  2215. return nil
  2216. }
  2217. func (m *PodSandbox) GetRuntimeHandler() string {
  2218. if m != nil {
  2219. return m.RuntimeHandler
  2220. }
  2221. return ""
  2222. }
  2223. type ListPodSandboxResponse struct {
  2224. // List of PodSandboxes.
  2225. Items []*PodSandbox `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
  2226. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2227. XXX_sizecache int32 `json:"-"`
  2228. }
  2229. func (m *ListPodSandboxResponse) Reset() { *m = ListPodSandboxResponse{} }
  2230. func (*ListPodSandboxResponse) ProtoMessage() {}
  2231. func (*ListPodSandboxResponse) Descriptor() ([]byte, []int) {
  2232. return fileDescriptor_00212fb1f9d3bf1c, []int{31}
  2233. }
  2234. func (m *ListPodSandboxResponse) XXX_Unmarshal(b []byte) error {
  2235. return m.Unmarshal(b)
  2236. }
  2237. func (m *ListPodSandboxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2238. if deterministic {
  2239. return xxx_messageInfo_ListPodSandboxResponse.Marshal(b, m, deterministic)
  2240. } else {
  2241. b = b[:cap(b)]
  2242. n, err := m.MarshalToSizedBuffer(b)
  2243. if err != nil {
  2244. return nil, err
  2245. }
  2246. return b[:n], nil
  2247. }
  2248. }
  2249. func (m *ListPodSandboxResponse) XXX_Merge(src proto.Message) {
  2250. xxx_messageInfo_ListPodSandboxResponse.Merge(m, src)
  2251. }
  2252. func (m *ListPodSandboxResponse) XXX_Size() int {
  2253. return m.Size()
  2254. }
  2255. func (m *ListPodSandboxResponse) XXX_DiscardUnknown() {
  2256. xxx_messageInfo_ListPodSandboxResponse.DiscardUnknown(m)
  2257. }
  2258. var xxx_messageInfo_ListPodSandboxResponse proto.InternalMessageInfo
  2259. func (m *ListPodSandboxResponse) GetItems() []*PodSandbox {
  2260. if m != nil {
  2261. return m.Items
  2262. }
  2263. return nil
  2264. }
  2265. type PodSandboxStatsRequest struct {
  2266. // ID of the pod sandbox for which to retrieve stats.
  2267. PodSandboxId string `protobuf:"bytes,1,opt,name=pod_sandbox_id,json=podSandboxId,proto3" json:"pod_sandbox_id,omitempty"`
  2268. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2269. XXX_sizecache int32 `json:"-"`
  2270. }
  2271. func (m *PodSandboxStatsRequest) Reset() { *m = PodSandboxStatsRequest{} }
  2272. func (*PodSandboxStatsRequest) ProtoMessage() {}
  2273. func (*PodSandboxStatsRequest) Descriptor() ([]byte, []int) {
  2274. return fileDescriptor_00212fb1f9d3bf1c, []int{32}
  2275. }
  2276. func (m *PodSandboxStatsRequest) XXX_Unmarshal(b []byte) error {
  2277. return m.Unmarshal(b)
  2278. }
  2279. func (m *PodSandboxStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2280. if deterministic {
  2281. return xxx_messageInfo_PodSandboxStatsRequest.Marshal(b, m, deterministic)
  2282. } else {
  2283. b = b[:cap(b)]
  2284. n, err := m.MarshalToSizedBuffer(b)
  2285. if err != nil {
  2286. return nil, err
  2287. }
  2288. return b[:n], nil
  2289. }
  2290. }
  2291. func (m *PodSandboxStatsRequest) XXX_Merge(src proto.Message) {
  2292. xxx_messageInfo_PodSandboxStatsRequest.Merge(m, src)
  2293. }
  2294. func (m *PodSandboxStatsRequest) XXX_Size() int {
  2295. return m.Size()
  2296. }
  2297. func (m *PodSandboxStatsRequest) XXX_DiscardUnknown() {
  2298. xxx_messageInfo_PodSandboxStatsRequest.DiscardUnknown(m)
  2299. }
  2300. var xxx_messageInfo_PodSandboxStatsRequest proto.InternalMessageInfo
  2301. func (m *PodSandboxStatsRequest) GetPodSandboxId() string {
  2302. if m != nil {
  2303. return m.PodSandboxId
  2304. }
  2305. return ""
  2306. }
  2307. type PodSandboxStatsResponse struct {
  2308. Stats *PodSandboxStats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"`
  2309. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2310. XXX_sizecache int32 `json:"-"`
  2311. }
  2312. func (m *PodSandboxStatsResponse) Reset() { *m = PodSandboxStatsResponse{} }
  2313. func (*PodSandboxStatsResponse) ProtoMessage() {}
  2314. func (*PodSandboxStatsResponse) Descriptor() ([]byte, []int) {
  2315. return fileDescriptor_00212fb1f9d3bf1c, []int{33}
  2316. }
  2317. func (m *PodSandboxStatsResponse) XXX_Unmarshal(b []byte) error {
  2318. return m.Unmarshal(b)
  2319. }
  2320. func (m *PodSandboxStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2321. if deterministic {
  2322. return xxx_messageInfo_PodSandboxStatsResponse.Marshal(b, m, deterministic)
  2323. } else {
  2324. b = b[:cap(b)]
  2325. n, err := m.MarshalToSizedBuffer(b)
  2326. if err != nil {
  2327. return nil, err
  2328. }
  2329. return b[:n], nil
  2330. }
  2331. }
  2332. func (m *PodSandboxStatsResponse) XXX_Merge(src proto.Message) {
  2333. xxx_messageInfo_PodSandboxStatsResponse.Merge(m, src)
  2334. }
  2335. func (m *PodSandboxStatsResponse) XXX_Size() int {
  2336. return m.Size()
  2337. }
  2338. func (m *PodSandboxStatsResponse) XXX_DiscardUnknown() {
  2339. xxx_messageInfo_PodSandboxStatsResponse.DiscardUnknown(m)
  2340. }
  2341. var xxx_messageInfo_PodSandboxStatsResponse proto.InternalMessageInfo
  2342. func (m *PodSandboxStatsResponse) GetStats() *PodSandboxStats {
  2343. if m != nil {
  2344. return m.Stats
  2345. }
  2346. return nil
  2347. }
  2348. // PodSandboxStatsFilter is used to filter the list of pod sandboxes to retrieve stats for.
  2349. // All those fields are combined with 'AND'.
  2350. type PodSandboxStatsFilter struct {
  2351. // ID of the pod sandbox.
  2352. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  2353. // LabelSelector to select matches.
  2354. // Only api.MatchLabels is supported for now and the requirements
  2355. // are ANDed. MatchExpressions is not supported yet.
  2356. LabelSelector map[string]string `protobuf:"bytes,2,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  2357. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2358. XXX_sizecache int32 `json:"-"`
  2359. }
  2360. func (m *PodSandboxStatsFilter) Reset() { *m = PodSandboxStatsFilter{} }
  2361. func (*PodSandboxStatsFilter) ProtoMessage() {}
  2362. func (*PodSandboxStatsFilter) Descriptor() ([]byte, []int) {
  2363. return fileDescriptor_00212fb1f9d3bf1c, []int{34}
  2364. }
  2365. func (m *PodSandboxStatsFilter) XXX_Unmarshal(b []byte) error {
  2366. return m.Unmarshal(b)
  2367. }
  2368. func (m *PodSandboxStatsFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2369. if deterministic {
  2370. return xxx_messageInfo_PodSandboxStatsFilter.Marshal(b, m, deterministic)
  2371. } else {
  2372. b = b[:cap(b)]
  2373. n, err := m.MarshalToSizedBuffer(b)
  2374. if err != nil {
  2375. return nil, err
  2376. }
  2377. return b[:n], nil
  2378. }
  2379. }
  2380. func (m *PodSandboxStatsFilter) XXX_Merge(src proto.Message) {
  2381. xxx_messageInfo_PodSandboxStatsFilter.Merge(m, src)
  2382. }
  2383. func (m *PodSandboxStatsFilter) XXX_Size() int {
  2384. return m.Size()
  2385. }
  2386. func (m *PodSandboxStatsFilter) XXX_DiscardUnknown() {
  2387. xxx_messageInfo_PodSandboxStatsFilter.DiscardUnknown(m)
  2388. }
  2389. var xxx_messageInfo_PodSandboxStatsFilter proto.InternalMessageInfo
  2390. func (m *PodSandboxStatsFilter) GetId() string {
  2391. if m != nil {
  2392. return m.Id
  2393. }
  2394. return ""
  2395. }
  2396. func (m *PodSandboxStatsFilter) GetLabelSelector() map[string]string {
  2397. if m != nil {
  2398. return m.LabelSelector
  2399. }
  2400. return nil
  2401. }
  2402. type ListPodSandboxStatsRequest struct {
  2403. // Filter for the list request.
  2404. Filter *PodSandboxStatsFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
  2405. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2406. XXX_sizecache int32 `json:"-"`
  2407. }
  2408. func (m *ListPodSandboxStatsRequest) Reset() { *m = ListPodSandboxStatsRequest{} }
  2409. func (*ListPodSandboxStatsRequest) ProtoMessage() {}
  2410. func (*ListPodSandboxStatsRequest) Descriptor() ([]byte, []int) {
  2411. return fileDescriptor_00212fb1f9d3bf1c, []int{35}
  2412. }
  2413. func (m *ListPodSandboxStatsRequest) XXX_Unmarshal(b []byte) error {
  2414. return m.Unmarshal(b)
  2415. }
  2416. func (m *ListPodSandboxStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2417. if deterministic {
  2418. return xxx_messageInfo_ListPodSandboxStatsRequest.Marshal(b, m, deterministic)
  2419. } else {
  2420. b = b[:cap(b)]
  2421. n, err := m.MarshalToSizedBuffer(b)
  2422. if err != nil {
  2423. return nil, err
  2424. }
  2425. return b[:n], nil
  2426. }
  2427. }
  2428. func (m *ListPodSandboxStatsRequest) XXX_Merge(src proto.Message) {
  2429. xxx_messageInfo_ListPodSandboxStatsRequest.Merge(m, src)
  2430. }
  2431. func (m *ListPodSandboxStatsRequest) XXX_Size() int {
  2432. return m.Size()
  2433. }
  2434. func (m *ListPodSandboxStatsRequest) XXX_DiscardUnknown() {
  2435. xxx_messageInfo_ListPodSandboxStatsRequest.DiscardUnknown(m)
  2436. }
  2437. var xxx_messageInfo_ListPodSandboxStatsRequest proto.InternalMessageInfo
  2438. func (m *ListPodSandboxStatsRequest) GetFilter() *PodSandboxStatsFilter {
  2439. if m != nil {
  2440. return m.Filter
  2441. }
  2442. return nil
  2443. }
  2444. type ListPodSandboxStatsResponse struct {
  2445. // Stats of the pod sandbox.
  2446. Stats []*PodSandboxStats `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
  2447. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2448. XXX_sizecache int32 `json:"-"`
  2449. }
  2450. func (m *ListPodSandboxStatsResponse) Reset() { *m = ListPodSandboxStatsResponse{} }
  2451. func (*ListPodSandboxStatsResponse) ProtoMessage() {}
  2452. func (*ListPodSandboxStatsResponse) Descriptor() ([]byte, []int) {
  2453. return fileDescriptor_00212fb1f9d3bf1c, []int{36}
  2454. }
  2455. func (m *ListPodSandboxStatsResponse) XXX_Unmarshal(b []byte) error {
  2456. return m.Unmarshal(b)
  2457. }
  2458. func (m *ListPodSandboxStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2459. if deterministic {
  2460. return xxx_messageInfo_ListPodSandboxStatsResponse.Marshal(b, m, deterministic)
  2461. } else {
  2462. b = b[:cap(b)]
  2463. n, err := m.MarshalToSizedBuffer(b)
  2464. if err != nil {
  2465. return nil, err
  2466. }
  2467. return b[:n], nil
  2468. }
  2469. }
  2470. func (m *ListPodSandboxStatsResponse) XXX_Merge(src proto.Message) {
  2471. xxx_messageInfo_ListPodSandboxStatsResponse.Merge(m, src)
  2472. }
  2473. func (m *ListPodSandboxStatsResponse) XXX_Size() int {
  2474. return m.Size()
  2475. }
  2476. func (m *ListPodSandboxStatsResponse) XXX_DiscardUnknown() {
  2477. xxx_messageInfo_ListPodSandboxStatsResponse.DiscardUnknown(m)
  2478. }
  2479. var xxx_messageInfo_ListPodSandboxStatsResponse proto.InternalMessageInfo
  2480. func (m *ListPodSandboxStatsResponse) GetStats() []*PodSandboxStats {
  2481. if m != nil {
  2482. return m.Stats
  2483. }
  2484. return nil
  2485. }
  2486. // PodSandboxAttributes provides basic information of the pod sandbox.
  2487. type PodSandboxAttributes struct {
  2488. // ID of the pod sandbox.
  2489. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  2490. // Metadata of the pod sandbox.
  2491. Metadata *PodSandboxMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
  2492. // Key-value pairs that may be used to scope and select individual resources.
  2493. Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  2494. // Unstructured key-value map holding arbitrary metadata.
  2495. // Annotations MUST NOT be altered by the runtime; the value of this field
  2496. // MUST be identical to that of the corresponding PodSandboxStatus used to
  2497. // instantiate the PodSandbox this status represents.
  2498. Annotations map[string]string `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  2499. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2500. XXX_sizecache int32 `json:"-"`
  2501. }
  2502. func (m *PodSandboxAttributes) Reset() { *m = PodSandboxAttributes{} }
  2503. func (*PodSandboxAttributes) ProtoMessage() {}
  2504. func (*PodSandboxAttributes) Descriptor() ([]byte, []int) {
  2505. return fileDescriptor_00212fb1f9d3bf1c, []int{37}
  2506. }
  2507. func (m *PodSandboxAttributes) XXX_Unmarshal(b []byte) error {
  2508. return m.Unmarshal(b)
  2509. }
  2510. func (m *PodSandboxAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2511. if deterministic {
  2512. return xxx_messageInfo_PodSandboxAttributes.Marshal(b, m, deterministic)
  2513. } else {
  2514. b = b[:cap(b)]
  2515. n, err := m.MarshalToSizedBuffer(b)
  2516. if err != nil {
  2517. return nil, err
  2518. }
  2519. return b[:n], nil
  2520. }
  2521. }
  2522. func (m *PodSandboxAttributes) XXX_Merge(src proto.Message) {
  2523. xxx_messageInfo_PodSandboxAttributes.Merge(m, src)
  2524. }
  2525. func (m *PodSandboxAttributes) XXX_Size() int {
  2526. return m.Size()
  2527. }
  2528. func (m *PodSandboxAttributes) XXX_DiscardUnknown() {
  2529. xxx_messageInfo_PodSandboxAttributes.DiscardUnknown(m)
  2530. }
  2531. var xxx_messageInfo_PodSandboxAttributes proto.InternalMessageInfo
  2532. func (m *PodSandboxAttributes) GetId() string {
  2533. if m != nil {
  2534. return m.Id
  2535. }
  2536. return ""
  2537. }
  2538. func (m *PodSandboxAttributes) GetMetadata() *PodSandboxMetadata {
  2539. if m != nil {
  2540. return m.Metadata
  2541. }
  2542. return nil
  2543. }
  2544. func (m *PodSandboxAttributes) GetLabels() map[string]string {
  2545. if m != nil {
  2546. return m.Labels
  2547. }
  2548. return nil
  2549. }
  2550. func (m *PodSandboxAttributes) GetAnnotations() map[string]string {
  2551. if m != nil {
  2552. return m.Annotations
  2553. }
  2554. return nil
  2555. }
  2556. // PodSandboxStats provides the resource usage statistics for a pod.
  2557. // The linux or windows field will be populated depending on the platform.
  2558. type PodSandboxStats struct {
  2559. // Information of the pod.
  2560. Attributes *PodSandboxAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"`
  2561. // Stats from linux.
  2562. Linux *LinuxPodSandboxStats `protobuf:"bytes,2,opt,name=linux,proto3" json:"linux,omitempty"`
  2563. // Stats from windows.
  2564. Windows *WindowsPodSandboxStats `protobuf:"bytes,3,opt,name=windows,proto3" json:"windows,omitempty"`
  2565. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2566. XXX_sizecache int32 `json:"-"`
  2567. }
  2568. func (m *PodSandboxStats) Reset() { *m = PodSandboxStats{} }
  2569. func (*PodSandboxStats) ProtoMessage() {}
  2570. func (*PodSandboxStats) Descriptor() ([]byte, []int) {
  2571. return fileDescriptor_00212fb1f9d3bf1c, []int{38}
  2572. }
  2573. func (m *PodSandboxStats) XXX_Unmarshal(b []byte) error {
  2574. return m.Unmarshal(b)
  2575. }
  2576. func (m *PodSandboxStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2577. if deterministic {
  2578. return xxx_messageInfo_PodSandboxStats.Marshal(b, m, deterministic)
  2579. } else {
  2580. b = b[:cap(b)]
  2581. n, err := m.MarshalToSizedBuffer(b)
  2582. if err != nil {
  2583. return nil, err
  2584. }
  2585. return b[:n], nil
  2586. }
  2587. }
  2588. func (m *PodSandboxStats) XXX_Merge(src proto.Message) {
  2589. xxx_messageInfo_PodSandboxStats.Merge(m, src)
  2590. }
  2591. func (m *PodSandboxStats) XXX_Size() int {
  2592. return m.Size()
  2593. }
  2594. func (m *PodSandboxStats) XXX_DiscardUnknown() {
  2595. xxx_messageInfo_PodSandboxStats.DiscardUnknown(m)
  2596. }
  2597. var xxx_messageInfo_PodSandboxStats proto.InternalMessageInfo
  2598. func (m *PodSandboxStats) GetAttributes() *PodSandboxAttributes {
  2599. if m != nil {
  2600. return m.Attributes
  2601. }
  2602. return nil
  2603. }
  2604. func (m *PodSandboxStats) GetLinux() *LinuxPodSandboxStats {
  2605. if m != nil {
  2606. return m.Linux
  2607. }
  2608. return nil
  2609. }
  2610. func (m *PodSandboxStats) GetWindows() *WindowsPodSandboxStats {
  2611. if m != nil {
  2612. return m.Windows
  2613. }
  2614. return nil
  2615. }
  2616. // LinuxPodSandboxStats provides the resource usage statistics for a pod sandbox on linux.
  2617. type LinuxPodSandboxStats struct {
  2618. // CPU usage gathered for the pod sandbox.
  2619. Cpu *CpuUsage `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"`
  2620. // Memory usage gathered for the pod sandbox.
  2621. Memory *MemoryUsage `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory,omitempty"`
  2622. // Network usage gathered for the pod sandbox
  2623. Network *NetworkUsage `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
  2624. // Stats pertaining to processes in the pod sandbox.
  2625. Process *ProcessUsage `protobuf:"bytes,4,opt,name=process,proto3" json:"process,omitempty"`
  2626. // Stats of containers in the measured pod sandbox.
  2627. Containers []*ContainerStats `protobuf:"bytes,5,rep,name=containers,proto3" json:"containers,omitempty"`
  2628. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2629. XXX_sizecache int32 `json:"-"`
  2630. }
  2631. func (m *LinuxPodSandboxStats) Reset() { *m = LinuxPodSandboxStats{} }
  2632. func (*LinuxPodSandboxStats) ProtoMessage() {}
  2633. func (*LinuxPodSandboxStats) Descriptor() ([]byte, []int) {
  2634. return fileDescriptor_00212fb1f9d3bf1c, []int{39}
  2635. }
  2636. func (m *LinuxPodSandboxStats) XXX_Unmarshal(b []byte) error {
  2637. return m.Unmarshal(b)
  2638. }
  2639. func (m *LinuxPodSandboxStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2640. if deterministic {
  2641. return xxx_messageInfo_LinuxPodSandboxStats.Marshal(b, m, deterministic)
  2642. } else {
  2643. b = b[:cap(b)]
  2644. n, err := m.MarshalToSizedBuffer(b)
  2645. if err != nil {
  2646. return nil, err
  2647. }
  2648. return b[:n], nil
  2649. }
  2650. }
  2651. func (m *LinuxPodSandboxStats) XXX_Merge(src proto.Message) {
  2652. xxx_messageInfo_LinuxPodSandboxStats.Merge(m, src)
  2653. }
  2654. func (m *LinuxPodSandboxStats) XXX_Size() int {
  2655. return m.Size()
  2656. }
  2657. func (m *LinuxPodSandboxStats) XXX_DiscardUnknown() {
  2658. xxx_messageInfo_LinuxPodSandboxStats.DiscardUnknown(m)
  2659. }
  2660. var xxx_messageInfo_LinuxPodSandboxStats proto.InternalMessageInfo
  2661. func (m *LinuxPodSandboxStats) GetCpu() *CpuUsage {
  2662. if m != nil {
  2663. return m.Cpu
  2664. }
  2665. return nil
  2666. }
  2667. func (m *LinuxPodSandboxStats) GetMemory() *MemoryUsage {
  2668. if m != nil {
  2669. return m.Memory
  2670. }
  2671. return nil
  2672. }
  2673. func (m *LinuxPodSandboxStats) GetNetwork() *NetworkUsage {
  2674. if m != nil {
  2675. return m.Network
  2676. }
  2677. return nil
  2678. }
  2679. func (m *LinuxPodSandboxStats) GetProcess() *ProcessUsage {
  2680. if m != nil {
  2681. return m.Process
  2682. }
  2683. return nil
  2684. }
  2685. func (m *LinuxPodSandboxStats) GetContainers() []*ContainerStats {
  2686. if m != nil {
  2687. return m.Containers
  2688. }
  2689. return nil
  2690. }
  2691. // WindowsPodSandboxStats provides the resource usage statistics for a pod sandbox on windows
  2692. type WindowsPodSandboxStats struct {
  2693. // CPU usage gathered for the pod sandbox.
  2694. Cpu *WindowsCpuUsage `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"`
  2695. // Memory usage gathered for the pod sandbox.
  2696. Memory *WindowsMemoryUsage `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory,omitempty"`
  2697. // Network usage gathered for the pod sandbox
  2698. Network *WindowsNetworkUsage `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
  2699. // Stats pertaining to processes in the pod sandbox.
  2700. Process *WindowsProcessUsage `protobuf:"bytes,4,opt,name=process,proto3" json:"process,omitempty"`
  2701. // Stats of containers in the measured pod sandbox.
  2702. Containers []*WindowsContainerStats `protobuf:"bytes,5,rep,name=containers,proto3" json:"containers,omitempty"`
  2703. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2704. XXX_sizecache int32 `json:"-"`
  2705. }
  2706. func (m *WindowsPodSandboxStats) Reset() { *m = WindowsPodSandboxStats{} }
  2707. func (*WindowsPodSandboxStats) ProtoMessage() {}
  2708. func (*WindowsPodSandboxStats) Descriptor() ([]byte, []int) {
  2709. return fileDescriptor_00212fb1f9d3bf1c, []int{40}
  2710. }
  2711. func (m *WindowsPodSandboxStats) XXX_Unmarshal(b []byte) error {
  2712. return m.Unmarshal(b)
  2713. }
  2714. func (m *WindowsPodSandboxStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2715. if deterministic {
  2716. return xxx_messageInfo_WindowsPodSandboxStats.Marshal(b, m, deterministic)
  2717. } else {
  2718. b = b[:cap(b)]
  2719. n, err := m.MarshalToSizedBuffer(b)
  2720. if err != nil {
  2721. return nil, err
  2722. }
  2723. return b[:n], nil
  2724. }
  2725. }
  2726. func (m *WindowsPodSandboxStats) XXX_Merge(src proto.Message) {
  2727. xxx_messageInfo_WindowsPodSandboxStats.Merge(m, src)
  2728. }
  2729. func (m *WindowsPodSandboxStats) XXX_Size() int {
  2730. return m.Size()
  2731. }
  2732. func (m *WindowsPodSandboxStats) XXX_DiscardUnknown() {
  2733. xxx_messageInfo_WindowsPodSandboxStats.DiscardUnknown(m)
  2734. }
  2735. var xxx_messageInfo_WindowsPodSandboxStats proto.InternalMessageInfo
  2736. func (m *WindowsPodSandboxStats) GetCpu() *WindowsCpuUsage {
  2737. if m != nil {
  2738. return m.Cpu
  2739. }
  2740. return nil
  2741. }
  2742. func (m *WindowsPodSandboxStats) GetMemory() *WindowsMemoryUsage {
  2743. if m != nil {
  2744. return m.Memory
  2745. }
  2746. return nil
  2747. }
  2748. func (m *WindowsPodSandboxStats) GetNetwork() *WindowsNetworkUsage {
  2749. if m != nil {
  2750. return m.Network
  2751. }
  2752. return nil
  2753. }
  2754. func (m *WindowsPodSandboxStats) GetProcess() *WindowsProcessUsage {
  2755. if m != nil {
  2756. return m.Process
  2757. }
  2758. return nil
  2759. }
  2760. func (m *WindowsPodSandboxStats) GetContainers() []*WindowsContainerStats {
  2761. if m != nil {
  2762. return m.Containers
  2763. }
  2764. return nil
  2765. }
  2766. // NetworkUsage contains data about network resources.
  2767. type NetworkUsage struct {
  2768. // Timestamp in nanoseconds at which the information were collected. Must be > 0.
  2769. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  2770. // Stats for the default network interface.
  2771. DefaultInterface *NetworkInterfaceUsage `protobuf:"bytes,2,opt,name=default_interface,json=defaultInterface,proto3" json:"default_interface,omitempty"`
  2772. // Stats for all found network interfaces, excluding the default.
  2773. Interfaces []*NetworkInterfaceUsage `protobuf:"bytes,3,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
  2774. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2775. XXX_sizecache int32 `json:"-"`
  2776. }
  2777. func (m *NetworkUsage) Reset() { *m = NetworkUsage{} }
  2778. func (*NetworkUsage) ProtoMessage() {}
  2779. func (*NetworkUsage) Descriptor() ([]byte, []int) {
  2780. return fileDescriptor_00212fb1f9d3bf1c, []int{41}
  2781. }
  2782. func (m *NetworkUsage) XXX_Unmarshal(b []byte) error {
  2783. return m.Unmarshal(b)
  2784. }
  2785. func (m *NetworkUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2786. if deterministic {
  2787. return xxx_messageInfo_NetworkUsage.Marshal(b, m, deterministic)
  2788. } else {
  2789. b = b[:cap(b)]
  2790. n, err := m.MarshalToSizedBuffer(b)
  2791. if err != nil {
  2792. return nil, err
  2793. }
  2794. return b[:n], nil
  2795. }
  2796. }
  2797. func (m *NetworkUsage) XXX_Merge(src proto.Message) {
  2798. xxx_messageInfo_NetworkUsage.Merge(m, src)
  2799. }
  2800. func (m *NetworkUsage) XXX_Size() int {
  2801. return m.Size()
  2802. }
  2803. func (m *NetworkUsage) XXX_DiscardUnknown() {
  2804. xxx_messageInfo_NetworkUsage.DiscardUnknown(m)
  2805. }
  2806. var xxx_messageInfo_NetworkUsage proto.InternalMessageInfo
  2807. func (m *NetworkUsage) GetTimestamp() int64 {
  2808. if m != nil {
  2809. return m.Timestamp
  2810. }
  2811. return 0
  2812. }
  2813. func (m *NetworkUsage) GetDefaultInterface() *NetworkInterfaceUsage {
  2814. if m != nil {
  2815. return m.DefaultInterface
  2816. }
  2817. return nil
  2818. }
  2819. func (m *NetworkUsage) GetInterfaces() []*NetworkInterfaceUsage {
  2820. if m != nil {
  2821. return m.Interfaces
  2822. }
  2823. return nil
  2824. }
  2825. // WindowsNetworkUsage contains data about network resources specific to Windows.
  2826. type WindowsNetworkUsage struct {
  2827. // Timestamp in nanoseconds at which the information were collected. Must be > 0.
  2828. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  2829. // Stats for the default network interface.
  2830. DefaultInterface *WindowsNetworkInterfaceUsage `protobuf:"bytes,2,opt,name=default_interface,json=defaultInterface,proto3" json:"default_interface,omitempty"`
  2831. // Stats for all found network interfaces, excluding the default.
  2832. Interfaces []*WindowsNetworkInterfaceUsage `protobuf:"bytes,3,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
  2833. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2834. XXX_sizecache int32 `json:"-"`
  2835. }
  2836. func (m *WindowsNetworkUsage) Reset() { *m = WindowsNetworkUsage{} }
  2837. func (*WindowsNetworkUsage) ProtoMessage() {}
  2838. func (*WindowsNetworkUsage) Descriptor() ([]byte, []int) {
  2839. return fileDescriptor_00212fb1f9d3bf1c, []int{42}
  2840. }
  2841. func (m *WindowsNetworkUsage) XXX_Unmarshal(b []byte) error {
  2842. return m.Unmarshal(b)
  2843. }
  2844. func (m *WindowsNetworkUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2845. if deterministic {
  2846. return xxx_messageInfo_WindowsNetworkUsage.Marshal(b, m, deterministic)
  2847. } else {
  2848. b = b[:cap(b)]
  2849. n, err := m.MarshalToSizedBuffer(b)
  2850. if err != nil {
  2851. return nil, err
  2852. }
  2853. return b[:n], nil
  2854. }
  2855. }
  2856. func (m *WindowsNetworkUsage) XXX_Merge(src proto.Message) {
  2857. xxx_messageInfo_WindowsNetworkUsage.Merge(m, src)
  2858. }
  2859. func (m *WindowsNetworkUsage) XXX_Size() int {
  2860. return m.Size()
  2861. }
  2862. func (m *WindowsNetworkUsage) XXX_DiscardUnknown() {
  2863. xxx_messageInfo_WindowsNetworkUsage.DiscardUnknown(m)
  2864. }
  2865. var xxx_messageInfo_WindowsNetworkUsage proto.InternalMessageInfo
  2866. func (m *WindowsNetworkUsage) GetTimestamp() int64 {
  2867. if m != nil {
  2868. return m.Timestamp
  2869. }
  2870. return 0
  2871. }
  2872. func (m *WindowsNetworkUsage) GetDefaultInterface() *WindowsNetworkInterfaceUsage {
  2873. if m != nil {
  2874. return m.DefaultInterface
  2875. }
  2876. return nil
  2877. }
  2878. func (m *WindowsNetworkUsage) GetInterfaces() []*WindowsNetworkInterfaceUsage {
  2879. if m != nil {
  2880. return m.Interfaces
  2881. }
  2882. return nil
  2883. }
  2884. // NetworkInterfaceUsage contains resource value data about a network interface.
  2885. type NetworkInterfaceUsage struct {
  2886. // The name of the network interface.
  2887. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  2888. // Cumulative count of bytes received.
  2889. RxBytes *UInt64Value `protobuf:"bytes,2,opt,name=rx_bytes,json=rxBytes,proto3" json:"rx_bytes,omitempty"`
  2890. // Cumulative count of receive errors encountered.
  2891. RxErrors *UInt64Value `protobuf:"bytes,3,opt,name=rx_errors,json=rxErrors,proto3" json:"rx_errors,omitempty"`
  2892. // Cumulative count of bytes transmitted.
  2893. TxBytes *UInt64Value `protobuf:"bytes,4,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"`
  2894. // Cumulative count of transmit errors encountered.
  2895. TxErrors *UInt64Value `protobuf:"bytes,5,opt,name=tx_errors,json=txErrors,proto3" json:"tx_errors,omitempty"`
  2896. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2897. XXX_sizecache int32 `json:"-"`
  2898. }
  2899. func (m *NetworkInterfaceUsage) Reset() { *m = NetworkInterfaceUsage{} }
  2900. func (*NetworkInterfaceUsage) ProtoMessage() {}
  2901. func (*NetworkInterfaceUsage) Descriptor() ([]byte, []int) {
  2902. return fileDescriptor_00212fb1f9d3bf1c, []int{43}
  2903. }
  2904. func (m *NetworkInterfaceUsage) XXX_Unmarshal(b []byte) error {
  2905. return m.Unmarshal(b)
  2906. }
  2907. func (m *NetworkInterfaceUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2908. if deterministic {
  2909. return xxx_messageInfo_NetworkInterfaceUsage.Marshal(b, m, deterministic)
  2910. } else {
  2911. b = b[:cap(b)]
  2912. n, err := m.MarshalToSizedBuffer(b)
  2913. if err != nil {
  2914. return nil, err
  2915. }
  2916. return b[:n], nil
  2917. }
  2918. }
  2919. func (m *NetworkInterfaceUsage) XXX_Merge(src proto.Message) {
  2920. xxx_messageInfo_NetworkInterfaceUsage.Merge(m, src)
  2921. }
  2922. func (m *NetworkInterfaceUsage) XXX_Size() int {
  2923. return m.Size()
  2924. }
  2925. func (m *NetworkInterfaceUsage) XXX_DiscardUnknown() {
  2926. xxx_messageInfo_NetworkInterfaceUsage.DiscardUnknown(m)
  2927. }
  2928. var xxx_messageInfo_NetworkInterfaceUsage proto.InternalMessageInfo
  2929. func (m *NetworkInterfaceUsage) GetName() string {
  2930. if m != nil {
  2931. return m.Name
  2932. }
  2933. return ""
  2934. }
  2935. func (m *NetworkInterfaceUsage) GetRxBytes() *UInt64Value {
  2936. if m != nil {
  2937. return m.RxBytes
  2938. }
  2939. return nil
  2940. }
  2941. func (m *NetworkInterfaceUsage) GetRxErrors() *UInt64Value {
  2942. if m != nil {
  2943. return m.RxErrors
  2944. }
  2945. return nil
  2946. }
  2947. func (m *NetworkInterfaceUsage) GetTxBytes() *UInt64Value {
  2948. if m != nil {
  2949. return m.TxBytes
  2950. }
  2951. return nil
  2952. }
  2953. func (m *NetworkInterfaceUsage) GetTxErrors() *UInt64Value {
  2954. if m != nil {
  2955. return m.TxErrors
  2956. }
  2957. return nil
  2958. }
  2959. // WindowsNetworkInterfaceUsage contains resource value data about a network interface specific for Windows.
  2960. type WindowsNetworkInterfaceUsage struct {
  2961. // The name of the network interface.
  2962. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  2963. // Cumulative count of bytes received.
  2964. RxBytes *UInt64Value `protobuf:"bytes,2,opt,name=rx_bytes,json=rxBytes,proto3" json:"rx_bytes,omitempty"`
  2965. // Cumulative count of receive errors encountered.
  2966. RxPacketsDropped *UInt64Value `protobuf:"bytes,3,opt,name=rx_packets_dropped,json=rxPacketsDropped,proto3" json:"rx_packets_dropped,omitempty"`
  2967. // Cumulative count of bytes transmitted.
  2968. TxBytes *UInt64Value `protobuf:"bytes,4,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"`
  2969. // Cumulative count of transmit errors encountered.
  2970. TxPacketsDropped *UInt64Value `protobuf:"bytes,5,opt,name=tx_packets_dropped,json=txPacketsDropped,proto3" json:"tx_packets_dropped,omitempty"`
  2971. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2972. XXX_sizecache int32 `json:"-"`
  2973. }
  2974. func (m *WindowsNetworkInterfaceUsage) Reset() { *m = WindowsNetworkInterfaceUsage{} }
  2975. func (*WindowsNetworkInterfaceUsage) ProtoMessage() {}
  2976. func (*WindowsNetworkInterfaceUsage) Descriptor() ([]byte, []int) {
  2977. return fileDescriptor_00212fb1f9d3bf1c, []int{44}
  2978. }
  2979. func (m *WindowsNetworkInterfaceUsage) XXX_Unmarshal(b []byte) error {
  2980. return m.Unmarshal(b)
  2981. }
  2982. func (m *WindowsNetworkInterfaceUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2983. if deterministic {
  2984. return xxx_messageInfo_WindowsNetworkInterfaceUsage.Marshal(b, m, deterministic)
  2985. } else {
  2986. b = b[:cap(b)]
  2987. n, err := m.MarshalToSizedBuffer(b)
  2988. if err != nil {
  2989. return nil, err
  2990. }
  2991. return b[:n], nil
  2992. }
  2993. }
  2994. func (m *WindowsNetworkInterfaceUsage) XXX_Merge(src proto.Message) {
  2995. xxx_messageInfo_WindowsNetworkInterfaceUsage.Merge(m, src)
  2996. }
  2997. func (m *WindowsNetworkInterfaceUsage) XXX_Size() int {
  2998. return m.Size()
  2999. }
  3000. func (m *WindowsNetworkInterfaceUsage) XXX_DiscardUnknown() {
  3001. xxx_messageInfo_WindowsNetworkInterfaceUsage.DiscardUnknown(m)
  3002. }
  3003. var xxx_messageInfo_WindowsNetworkInterfaceUsage proto.InternalMessageInfo
  3004. func (m *WindowsNetworkInterfaceUsage) GetName() string {
  3005. if m != nil {
  3006. return m.Name
  3007. }
  3008. return ""
  3009. }
  3010. func (m *WindowsNetworkInterfaceUsage) GetRxBytes() *UInt64Value {
  3011. if m != nil {
  3012. return m.RxBytes
  3013. }
  3014. return nil
  3015. }
  3016. func (m *WindowsNetworkInterfaceUsage) GetRxPacketsDropped() *UInt64Value {
  3017. if m != nil {
  3018. return m.RxPacketsDropped
  3019. }
  3020. return nil
  3021. }
  3022. func (m *WindowsNetworkInterfaceUsage) GetTxBytes() *UInt64Value {
  3023. if m != nil {
  3024. return m.TxBytes
  3025. }
  3026. return nil
  3027. }
  3028. func (m *WindowsNetworkInterfaceUsage) GetTxPacketsDropped() *UInt64Value {
  3029. if m != nil {
  3030. return m.TxPacketsDropped
  3031. }
  3032. return nil
  3033. }
  3034. // ProcessUsage are stats pertaining to processes.
  3035. type ProcessUsage struct {
  3036. // Timestamp in nanoseconds at which the information were collected. Must be > 0.
  3037. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  3038. // Number of processes.
  3039. ProcessCount *UInt64Value `protobuf:"bytes,2,opt,name=process_count,json=processCount,proto3" json:"process_count,omitempty"`
  3040. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3041. XXX_sizecache int32 `json:"-"`
  3042. }
  3043. func (m *ProcessUsage) Reset() { *m = ProcessUsage{} }
  3044. func (*ProcessUsage) ProtoMessage() {}
  3045. func (*ProcessUsage) Descriptor() ([]byte, []int) {
  3046. return fileDescriptor_00212fb1f9d3bf1c, []int{45}
  3047. }
  3048. func (m *ProcessUsage) XXX_Unmarshal(b []byte) error {
  3049. return m.Unmarshal(b)
  3050. }
  3051. func (m *ProcessUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3052. if deterministic {
  3053. return xxx_messageInfo_ProcessUsage.Marshal(b, m, deterministic)
  3054. } else {
  3055. b = b[:cap(b)]
  3056. n, err := m.MarshalToSizedBuffer(b)
  3057. if err != nil {
  3058. return nil, err
  3059. }
  3060. return b[:n], nil
  3061. }
  3062. }
  3063. func (m *ProcessUsage) XXX_Merge(src proto.Message) {
  3064. xxx_messageInfo_ProcessUsage.Merge(m, src)
  3065. }
  3066. func (m *ProcessUsage) XXX_Size() int {
  3067. return m.Size()
  3068. }
  3069. func (m *ProcessUsage) XXX_DiscardUnknown() {
  3070. xxx_messageInfo_ProcessUsage.DiscardUnknown(m)
  3071. }
  3072. var xxx_messageInfo_ProcessUsage proto.InternalMessageInfo
  3073. func (m *ProcessUsage) GetTimestamp() int64 {
  3074. if m != nil {
  3075. return m.Timestamp
  3076. }
  3077. return 0
  3078. }
  3079. func (m *ProcessUsage) GetProcessCount() *UInt64Value {
  3080. if m != nil {
  3081. return m.ProcessCount
  3082. }
  3083. return nil
  3084. }
  3085. // WindowsProcessUsage are stats pertaining to processes specific to Windows.
  3086. type WindowsProcessUsage struct {
  3087. // Timestamp in nanoseconds at which the information were collected. Must be > 0.
  3088. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  3089. // Number of processes.
  3090. ProcessCount *UInt64Value `protobuf:"bytes,2,opt,name=process_count,json=processCount,proto3" json:"process_count,omitempty"`
  3091. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3092. XXX_sizecache int32 `json:"-"`
  3093. }
  3094. func (m *WindowsProcessUsage) Reset() { *m = WindowsProcessUsage{} }
  3095. func (*WindowsProcessUsage) ProtoMessage() {}
  3096. func (*WindowsProcessUsage) Descriptor() ([]byte, []int) {
  3097. return fileDescriptor_00212fb1f9d3bf1c, []int{46}
  3098. }
  3099. func (m *WindowsProcessUsage) XXX_Unmarshal(b []byte) error {
  3100. return m.Unmarshal(b)
  3101. }
  3102. func (m *WindowsProcessUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3103. if deterministic {
  3104. return xxx_messageInfo_WindowsProcessUsage.Marshal(b, m, deterministic)
  3105. } else {
  3106. b = b[:cap(b)]
  3107. n, err := m.MarshalToSizedBuffer(b)
  3108. if err != nil {
  3109. return nil, err
  3110. }
  3111. return b[:n], nil
  3112. }
  3113. }
  3114. func (m *WindowsProcessUsage) XXX_Merge(src proto.Message) {
  3115. xxx_messageInfo_WindowsProcessUsage.Merge(m, src)
  3116. }
  3117. func (m *WindowsProcessUsage) XXX_Size() int {
  3118. return m.Size()
  3119. }
  3120. func (m *WindowsProcessUsage) XXX_DiscardUnknown() {
  3121. xxx_messageInfo_WindowsProcessUsage.DiscardUnknown(m)
  3122. }
  3123. var xxx_messageInfo_WindowsProcessUsage proto.InternalMessageInfo
  3124. func (m *WindowsProcessUsage) GetTimestamp() int64 {
  3125. if m != nil {
  3126. return m.Timestamp
  3127. }
  3128. return 0
  3129. }
  3130. func (m *WindowsProcessUsage) GetProcessCount() *UInt64Value {
  3131. if m != nil {
  3132. return m.ProcessCount
  3133. }
  3134. return nil
  3135. }
  3136. // ImageSpec is an internal representation of an image.
  3137. type ImageSpec struct {
  3138. // Container's Image field (e.g. imageID or imageDigest).
  3139. Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
  3140. // Unstructured key-value map holding arbitrary metadata.
  3141. // ImageSpec Annotations can be used to help the runtime target specific
  3142. // images in multi-arch images.
  3143. Annotations map[string]string `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3144. // The container image reference specified by the user (e.g. image[:tag] or digest).
  3145. // Only set if available within the RPC context.
  3146. UserSpecifiedImage string `protobuf:"bytes,18,opt,name=user_specified_image,json=userSpecifiedImage,proto3" json:"user_specified_image,omitempty"`
  3147. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3148. XXX_sizecache int32 `json:"-"`
  3149. }
  3150. func (m *ImageSpec) Reset() { *m = ImageSpec{} }
  3151. func (*ImageSpec) ProtoMessage() {}
  3152. func (*ImageSpec) Descriptor() ([]byte, []int) {
  3153. return fileDescriptor_00212fb1f9d3bf1c, []int{47}
  3154. }
  3155. func (m *ImageSpec) XXX_Unmarshal(b []byte) error {
  3156. return m.Unmarshal(b)
  3157. }
  3158. func (m *ImageSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3159. if deterministic {
  3160. return xxx_messageInfo_ImageSpec.Marshal(b, m, deterministic)
  3161. } else {
  3162. b = b[:cap(b)]
  3163. n, err := m.MarshalToSizedBuffer(b)
  3164. if err != nil {
  3165. return nil, err
  3166. }
  3167. return b[:n], nil
  3168. }
  3169. }
  3170. func (m *ImageSpec) XXX_Merge(src proto.Message) {
  3171. xxx_messageInfo_ImageSpec.Merge(m, src)
  3172. }
  3173. func (m *ImageSpec) XXX_Size() int {
  3174. return m.Size()
  3175. }
  3176. func (m *ImageSpec) XXX_DiscardUnknown() {
  3177. xxx_messageInfo_ImageSpec.DiscardUnknown(m)
  3178. }
  3179. var xxx_messageInfo_ImageSpec proto.InternalMessageInfo
  3180. func (m *ImageSpec) GetImage() string {
  3181. if m != nil {
  3182. return m.Image
  3183. }
  3184. return ""
  3185. }
  3186. func (m *ImageSpec) GetAnnotations() map[string]string {
  3187. if m != nil {
  3188. return m.Annotations
  3189. }
  3190. return nil
  3191. }
  3192. func (m *ImageSpec) GetUserSpecifiedImage() string {
  3193. if m != nil {
  3194. return m.UserSpecifiedImage
  3195. }
  3196. return ""
  3197. }
  3198. type KeyValue struct {
  3199. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  3200. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  3201. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3202. XXX_sizecache int32 `json:"-"`
  3203. }
  3204. func (m *KeyValue) Reset() { *m = KeyValue{} }
  3205. func (*KeyValue) ProtoMessage() {}
  3206. func (*KeyValue) Descriptor() ([]byte, []int) {
  3207. return fileDescriptor_00212fb1f9d3bf1c, []int{48}
  3208. }
  3209. func (m *KeyValue) XXX_Unmarshal(b []byte) error {
  3210. return m.Unmarshal(b)
  3211. }
  3212. func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3213. if deterministic {
  3214. return xxx_messageInfo_KeyValue.Marshal(b, m, deterministic)
  3215. } else {
  3216. b = b[:cap(b)]
  3217. n, err := m.MarshalToSizedBuffer(b)
  3218. if err != nil {
  3219. return nil, err
  3220. }
  3221. return b[:n], nil
  3222. }
  3223. }
  3224. func (m *KeyValue) XXX_Merge(src proto.Message) {
  3225. xxx_messageInfo_KeyValue.Merge(m, src)
  3226. }
  3227. func (m *KeyValue) XXX_Size() int {
  3228. return m.Size()
  3229. }
  3230. func (m *KeyValue) XXX_DiscardUnknown() {
  3231. xxx_messageInfo_KeyValue.DiscardUnknown(m)
  3232. }
  3233. var xxx_messageInfo_KeyValue proto.InternalMessageInfo
  3234. func (m *KeyValue) GetKey() string {
  3235. if m != nil {
  3236. return m.Key
  3237. }
  3238. return ""
  3239. }
  3240. func (m *KeyValue) GetValue() string {
  3241. if m != nil {
  3242. return m.Value
  3243. }
  3244. return ""
  3245. }
  3246. // LinuxContainerResources specifies Linux specific configuration for
  3247. // resources.
  3248. type LinuxContainerResources struct {
  3249. // CPU CFS (Completely Fair Scheduler) period. Default: 0 (not specified).
  3250. CpuPeriod int64 `protobuf:"varint,1,opt,name=cpu_period,json=cpuPeriod,proto3" json:"cpu_period,omitempty"`
  3251. // CPU CFS (Completely Fair Scheduler) quota. Default: 0 (not specified).
  3252. CpuQuota int64 `protobuf:"varint,2,opt,name=cpu_quota,json=cpuQuota,proto3" json:"cpu_quota,omitempty"`
  3253. // CPU shares (relative weight vs. other containers). Default: 0 (not specified).
  3254. CpuShares int64 `protobuf:"varint,3,opt,name=cpu_shares,json=cpuShares,proto3" json:"cpu_shares,omitempty"`
  3255. // Memory limit in bytes. Default: 0 (not specified).
  3256. MemoryLimitInBytes int64 `protobuf:"varint,4,opt,name=memory_limit_in_bytes,json=memoryLimitInBytes,proto3" json:"memory_limit_in_bytes,omitempty"`
  3257. // OOMScoreAdj adjusts the oom-killer score. Default: 0 (not specified).
  3258. OomScoreAdj int64 `protobuf:"varint,5,opt,name=oom_score_adj,json=oomScoreAdj,proto3" json:"oom_score_adj,omitempty"`
  3259. // CpusetCpus constrains the allowed set of logical CPUs. Default: "" (not specified).
  3260. CpusetCpus string `protobuf:"bytes,6,opt,name=cpuset_cpus,json=cpusetCpus,proto3" json:"cpuset_cpus,omitempty"`
  3261. // CpusetMems constrains the allowed set of memory nodes. Default: "" (not specified).
  3262. CpusetMems string `protobuf:"bytes,7,opt,name=cpuset_mems,json=cpusetMems,proto3" json:"cpuset_mems,omitempty"`
  3263. // List of HugepageLimits to limit the HugeTLB usage of container per page size. Default: nil (not specified).
  3264. HugepageLimits []*HugepageLimit `protobuf:"bytes,8,rep,name=hugepage_limits,json=hugepageLimits,proto3" json:"hugepage_limits,omitempty"`
  3265. // Unified resources for cgroup v2. Default: nil (not specified).
  3266. // Each key/value in the map refers to the cgroup v2.
  3267. // e.g. "memory.max": "6937202688" or "io.weight": "default 100".
  3268. Unified map[string]string `protobuf:"bytes,9,rep,name=unified,proto3" json:"unified,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3269. // Memory swap limit in bytes. Default 0 (not specified).
  3270. MemorySwapLimitInBytes int64 `protobuf:"varint,10,opt,name=memory_swap_limit_in_bytes,json=memorySwapLimitInBytes,proto3" json:"memory_swap_limit_in_bytes,omitempty"`
  3271. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3272. XXX_sizecache int32 `json:"-"`
  3273. }
  3274. func (m *LinuxContainerResources) Reset() { *m = LinuxContainerResources{} }
  3275. func (*LinuxContainerResources) ProtoMessage() {}
  3276. func (*LinuxContainerResources) Descriptor() ([]byte, []int) {
  3277. return fileDescriptor_00212fb1f9d3bf1c, []int{49}
  3278. }
  3279. func (m *LinuxContainerResources) XXX_Unmarshal(b []byte) error {
  3280. return m.Unmarshal(b)
  3281. }
  3282. func (m *LinuxContainerResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3283. if deterministic {
  3284. return xxx_messageInfo_LinuxContainerResources.Marshal(b, m, deterministic)
  3285. } else {
  3286. b = b[:cap(b)]
  3287. n, err := m.MarshalToSizedBuffer(b)
  3288. if err != nil {
  3289. return nil, err
  3290. }
  3291. return b[:n], nil
  3292. }
  3293. }
  3294. func (m *LinuxContainerResources) XXX_Merge(src proto.Message) {
  3295. xxx_messageInfo_LinuxContainerResources.Merge(m, src)
  3296. }
  3297. func (m *LinuxContainerResources) XXX_Size() int {
  3298. return m.Size()
  3299. }
  3300. func (m *LinuxContainerResources) XXX_DiscardUnknown() {
  3301. xxx_messageInfo_LinuxContainerResources.DiscardUnknown(m)
  3302. }
  3303. var xxx_messageInfo_LinuxContainerResources proto.InternalMessageInfo
  3304. func (m *LinuxContainerResources) GetCpuPeriod() int64 {
  3305. if m != nil {
  3306. return m.CpuPeriod
  3307. }
  3308. return 0
  3309. }
  3310. func (m *LinuxContainerResources) GetCpuQuota() int64 {
  3311. if m != nil {
  3312. return m.CpuQuota
  3313. }
  3314. return 0
  3315. }
  3316. func (m *LinuxContainerResources) GetCpuShares() int64 {
  3317. if m != nil {
  3318. return m.CpuShares
  3319. }
  3320. return 0
  3321. }
  3322. func (m *LinuxContainerResources) GetMemoryLimitInBytes() int64 {
  3323. if m != nil {
  3324. return m.MemoryLimitInBytes
  3325. }
  3326. return 0
  3327. }
  3328. func (m *LinuxContainerResources) GetOomScoreAdj() int64 {
  3329. if m != nil {
  3330. return m.OomScoreAdj
  3331. }
  3332. return 0
  3333. }
  3334. func (m *LinuxContainerResources) GetCpusetCpus() string {
  3335. if m != nil {
  3336. return m.CpusetCpus
  3337. }
  3338. return ""
  3339. }
  3340. func (m *LinuxContainerResources) GetCpusetMems() string {
  3341. if m != nil {
  3342. return m.CpusetMems
  3343. }
  3344. return ""
  3345. }
  3346. func (m *LinuxContainerResources) GetHugepageLimits() []*HugepageLimit {
  3347. if m != nil {
  3348. return m.HugepageLimits
  3349. }
  3350. return nil
  3351. }
  3352. func (m *LinuxContainerResources) GetUnified() map[string]string {
  3353. if m != nil {
  3354. return m.Unified
  3355. }
  3356. return nil
  3357. }
  3358. func (m *LinuxContainerResources) GetMemorySwapLimitInBytes() int64 {
  3359. if m != nil {
  3360. return m.MemorySwapLimitInBytes
  3361. }
  3362. return 0
  3363. }
  3364. // HugepageLimit corresponds to the file`hugetlb.<hugepagesize>.limit_in_byte` in container level cgroup.
  3365. // For example, `PageSize=1GB`, `Limit=1073741824` means setting `1073741824` bytes to hugetlb.1GB.limit_in_bytes.
  3366. type HugepageLimit struct {
  3367. // The value of PageSize has the format <size><unit-prefix>B (2MB, 1GB),
  3368. // and must match the <hugepagesize> of the corresponding control file found in `hugetlb.<hugepagesize>.limit_in_bytes`.
  3369. // The values of <unit-prefix> are intended to be parsed using base 1024("1KB" = 1024, "1MB" = 1048576, etc).
  3370. PageSize string `protobuf:"bytes,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  3371. // limit in bytes of hugepagesize HugeTLB usage.
  3372. Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
  3373. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3374. XXX_sizecache int32 `json:"-"`
  3375. }
  3376. func (m *HugepageLimit) Reset() { *m = HugepageLimit{} }
  3377. func (*HugepageLimit) ProtoMessage() {}
  3378. func (*HugepageLimit) Descriptor() ([]byte, []int) {
  3379. return fileDescriptor_00212fb1f9d3bf1c, []int{50}
  3380. }
  3381. func (m *HugepageLimit) XXX_Unmarshal(b []byte) error {
  3382. return m.Unmarshal(b)
  3383. }
  3384. func (m *HugepageLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3385. if deterministic {
  3386. return xxx_messageInfo_HugepageLimit.Marshal(b, m, deterministic)
  3387. } else {
  3388. b = b[:cap(b)]
  3389. n, err := m.MarshalToSizedBuffer(b)
  3390. if err != nil {
  3391. return nil, err
  3392. }
  3393. return b[:n], nil
  3394. }
  3395. }
  3396. func (m *HugepageLimit) XXX_Merge(src proto.Message) {
  3397. xxx_messageInfo_HugepageLimit.Merge(m, src)
  3398. }
  3399. func (m *HugepageLimit) XXX_Size() int {
  3400. return m.Size()
  3401. }
  3402. func (m *HugepageLimit) XXX_DiscardUnknown() {
  3403. xxx_messageInfo_HugepageLimit.DiscardUnknown(m)
  3404. }
  3405. var xxx_messageInfo_HugepageLimit proto.InternalMessageInfo
  3406. func (m *HugepageLimit) GetPageSize() string {
  3407. if m != nil {
  3408. return m.PageSize
  3409. }
  3410. return ""
  3411. }
  3412. func (m *HugepageLimit) GetLimit() uint64 {
  3413. if m != nil {
  3414. return m.Limit
  3415. }
  3416. return 0
  3417. }
  3418. // SELinuxOption are the labels to be applied to the container.
  3419. type SELinuxOption struct {
  3420. User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
  3421. Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
  3422. Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
  3423. Level string `protobuf:"bytes,4,opt,name=level,proto3" json:"level,omitempty"`
  3424. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3425. XXX_sizecache int32 `json:"-"`
  3426. }
  3427. func (m *SELinuxOption) Reset() { *m = SELinuxOption{} }
  3428. func (*SELinuxOption) ProtoMessage() {}
  3429. func (*SELinuxOption) Descriptor() ([]byte, []int) {
  3430. return fileDescriptor_00212fb1f9d3bf1c, []int{51}
  3431. }
  3432. func (m *SELinuxOption) XXX_Unmarshal(b []byte) error {
  3433. return m.Unmarshal(b)
  3434. }
  3435. func (m *SELinuxOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3436. if deterministic {
  3437. return xxx_messageInfo_SELinuxOption.Marshal(b, m, deterministic)
  3438. } else {
  3439. b = b[:cap(b)]
  3440. n, err := m.MarshalToSizedBuffer(b)
  3441. if err != nil {
  3442. return nil, err
  3443. }
  3444. return b[:n], nil
  3445. }
  3446. }
  3447. func (m *SELinuxOption) XXX_Merge(src proto.Message) {
  3448. xxx_messageInfo_SELinuxOption.Merge(m, src)
  3449. }
  3450. func (m *SELinuxOption) XXX_Size() int {
  3451. return m.Size()
  3452. }
  3453. func (m *SELinuxOption) XXX_DiscardUnknown() {
  3454. xxx_messageInfo_SELinuxOption.DiscardUnknown(m)
  3455. }
  3456. var xxx_messageInfo_SELinuxOption proto.InternalMessageInfo
  3457. func (m *SELinuxOption) GetUser() string {
  3458. if m != nil {
  3459. return m.User
  3460. }
  3461. return ""
  3462. }
  3463. func (m *SELinuxOption) GetRole() string {
  3464. if m != nil {
  3465. return m.Role
  3466. }
  3467. return ""
  3468. }
  3469. func (m *SELinuxOption) GetType() string {
  3470. if m != nil {
  3471. return m.Type
  3472. }
  3473. return ""
  3474. }
  3475. func (m *SELinuxOption) GetLevel() string {
  3476. if m != nil {
  3477. return m.Level
  3478. }
  3479. return ""
  3480. }
  3481. // Capability contains the container capabilities to add or drop
  3482. // Dropping a capability will drop it from all sets.
  3483. // If a capability is added to only the add_capabilities list then it gets added to permitted,
  3484. // inheritable, effective and bounding sets, i.e. all sets except the ambient set.
  3485. // If a capability is added to only the add_ambient_capabilities list then it gets added to all sets, i.e permitted
  3486. // inheritable, effective, bounding and ambient sets.
  3487. // If a capability is added to add_capabilities and add_ambient_capabilities lists then it gets added to all sets, i.e.
  3488. // permitted, inheritable, effective, bounding and ambient sets.
  3489. type Capability struct {
  3490. // List of capabilities to add.
  3491. AddCapabilities []string `protobuf:"bytes,1,rep,name=add_capabilities,json=addCapabilities,proto3" json:"add_capabilities,omitempty"`
  3492. // List of capabilities to drop.
  3493. DropCapabilities []string `protobuf:"bytes,2,rep,name=drop_capabilities,json=dropCapabilities,proto3" json:"drop_capabilities,omitempty"`
  3494. // List of ambient capabilities to add.
  3495. AddAmbientCapabilities []string `protobuf:"bytes,3,rep,name=add_ambient_capabilities,json=addAmbientCapabilities,proto3" json:"add_ambient_capabilities,omitempty"`
  3496. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3497. XXX_sizecache int32 `json:"-"`
  3498. }
  3499. func (m *Capability) Reset() { *m = Capability{} }
  3500. func (*Capability) ProtoMessage() {}
  3501. func (*Capability) Descriptor() ([]byte, []int) {
  3502. return fileDescriptor_00212fb1f9d3bf1c, []int{52}
  3503. }
  3504. func (m *Capability) XXX_Unmarshal(b []byte) error {
  3505. return m.Unmarshal(b)
  3506. }
  3507. func (m *Capability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3508. if deterministic {
  3509. return xxx_messageInfo_Capability.Marshal(b, m, deterministic)
  3510. } else {
  3511. b = b[:cap(b)]
  3512. n, err := m.MarshalToSizedBuffer(b)
  3513. if err != nil {
  3514. return nil, err
  3515. }
  3516. return b[:n], nil
  3517. }
  3518. }
  3519. func (m *Capability) XXX_Merge(src proto.Message) {
  3520. xxx_messageInfo_Capability.Merge(m, src)
  3521. }
  3522. func (m *Capability) XXX_Size() int {
  3523. return m.Size()
  3524. }
  3525. func (m *Capability) XXX_DiscardUnknown() {
  3526. xxx_messageInfo_Capability.DiscardUnknown(m)
  3527. }
  3528. var xxx_messageInfo_Capability proto.InternalMessageInfo
  3529. func (m *Capability) GetAddCapabilities() []string {
  3530. if m != nil {
  3531. return m.AddCapabilities
  3532. }
  3533. return nil
  3534. }
  3535. func (m *Capability) GetDropCapabilities() []string {
  3536. if m != nil {
  3537. return m.DropCapabilities
  3538. }
  3539. return nil
  3540. }
  3541. func (m *Capability) GetAddAmbientCapabilities() []string {
  3542. if m != nil {
  3543. return m.AddAmbientCapabilities
  3544. }
  3545. return nil
  3546. }
  3547. // LinuxContainerSecurityContext holds linux security configuration that will be applied to a container.
  3548. type LinuxContainerSecurityContext struct {
  3549. // Capabilities to add or drop.
  3550. Capabilities *Capability `protobuf:"bytes,1,opt,name=capabilities,proto3" json:"capabilities,omitempty"`
  3551. // If set, run container in privileged mode.
  3552. // Privileged mode is incompatible with the following options. If
  3553. // privileged is set, the following features MAY have no effect:
  3554. // 1. capabilities
  3555. // 2. selinux_options
  3556. // 4. seccomp
  3557. // 5. apparmor
  3558. //
  3559. // Privileged mode implies the following specific options are applied:
  3560. // 1. All capabilities are added.
  3561. // 2. Sensitive paths, such as kernel module paths within sysfs, are not masked.
  3562. // 3. Any sysfs and procfs mounts are mounted RW.
  3563. // 4. AppArmor confinement is not applied.
  3564. // 5. Seccomp restrictions are not applied.
  3565. // 6. The device cgroup does not restrict access to any devices.
  3566. // 7. All devices from the host's /dev are available within the container.
  3567. // 8. SELinux restrictions are not applied (e.g. label=disabled).
  3568. Privileged bool `protobuf:"varint,2,opt,name=privileged,proto3" json:"privileged,omitempty"`
  3569. // Configurations for the container's namespaces.
  3570. // Only used if the container uses namespace for isolation.
  3571. NamespaceOptions *NamespaceOption `protobuf:"bytes,3,opt,name=namespace_options,json=namespaceOptions,proto3" json:"namespace_options,omitempty"`
  3572. // SELinux context to be optionally applied.
  3573. SelinuxOptions *SELinuxOption `protobuf:"bytes,4,opt,name=selinux_options,json=selinuxOptions,proto3" json:"selinux_options,omitempty"`
  3574. // UID to run the container process as. Only one of run_as_user and
  3575. // run_as_username can be specified at a time.
  3576. RunAsUser *Int64Value `protobuf:"bytes,5,opt,name=run_as_user,json=runAsUser,proto3" json:"run_as_user,omitempty"`
  3577. // GID to run the container process as. run_as_group should only be specified
  3578. // when run_as_user or run_as_username is specified; otherwise, the runtime
  3579. // MUST error.
  3580. RunAsGroup *Int64Value `protobuf:"bytes,12,opt,name=run_as_group,json=runAsGroup,proto3" json:"run_as_group,omitempty"`
  3581. // User name to run the container process as. If specified, the user MUST
  3582. // exist in the container image (i.e. in the /etc/passwd inside the image),
  3583. // and be resolved there by the runtime; otherwise, the runtime MUST error.
  3584. RunAsUsername string `protobuf:"bytes,6,opt,name=run_as_username,json=runAsUsername,proto3" json:"run_as_username,omitempty"`
  3585. // If set, the root filesystem of the container is read-only.
  3586. ReadonlyRootfs bool `protobuf:"varint,7,opt,name=readonly_rootfs,json=readonlyRootfs,proto3" json:"readonly_rootfs,omitempty"`
  3587. // List of groups applied to the first process run in the container, in
  3588. // addition to the container's primary GID, and group memberships defined
  3589. // in the container image for the container's primary UID of the container process.
  3590. // If the list is empty, no additional groups are added to any container.
  3591. // Note that group memberships defined in the container image for the container's primary UID
  3592. // of the container process are still effective, even if they are not included in this list.
  3593. SupplementalGroups []int64 `protobuf:"varint,8,rep,packed,name=supplemental_groups,json=supplementalGroups,proto3" json:"supplemental_groups,omitempty"`
  3594. // no_new_privs defines if the flag for no_new_privs should be set on the
  3595. // container.
  3596. NoNewPrivs bool `protobuf:"varint,11,opt,name=no_new_privs,json=noNewPrivs,proto3" json:"no_new_privs,omitempty"`
  3597. // masked_paths is a slice of paths that should be masked by the container
  3598. // runtime, this can be passed directly to the OCI spec.
  3599. MaskedPaths []string `protobuf:"bytes,13,rep,name=masked_paths,json=maskedPaths,proto3" json:"masked_paths,omitempty"`
  3600. // readonly_paths is a slice of paths that should be set as readonly by the
  3601. // container runtime, this can be passed directly to the OCI spec.
  3602. ReadonlyPaths []string `protobuf:"bytes,14,rep,name=readonly_paths,json=readonlyPaths,proto3" json:"readonly_paths,omitempty"`
  3603. // Seccomp profile for the container.
  3604. Seccomp *SecurityProfile `protobuf:"bytes,15,opt,name=seccomp,proto3" json:"seccomp,omitempty"`
  3605. // AppArmor profile for the container.
  3606. Apparmor *SecurityProfile `protobuf:"bytes,16,opt,name=apparmor,proto3" json:"apparmor,omitempty"`
  3607. // AppArmor profile for the container, candidate values are:
  3608. // - runtime/default: equivalent to not specifying a profile.
  3609. // - unconfined: no profiles are loaded
  3610. // - localhost/<profile_name>: profile loaded on the node
  3611. // (localhost) by name. The possible profile names are detailed at
  3612. // https://gitlab.com/apparmor/apparmor/-/wikis/AppArmor_Core_Policy_Reference
  3613. ApparmorProfile string `protobuf:"bytes,9,opt,name=apparmor_profile,json=apparmorProfile,proto3" json:"apparmor_profile,omitempty"` // Deprecated: Do not use.
  3614. // Seccomp profile for the container, candidate values are:
  3615. // - runtime/default: the default profile for the container runtime
  3616. // - unconfined: unconfined profile, ie, no seccomp sandboxing
  3617. // - localhost/<full-path-to-profile>: the profile installed on the node.
  3618. // <full-path-to-profile> is the full path of the profile.
  3619. //
  3620. // Default: "", which is identical with unconfined.
  3621. SeccompProfilePath string `protobuf:"bytes,10,opt,name=seccomp_profile_path,json=seccompProfilePath,proto3" json:"seccomp_profile_path,omitempty"` // Deprecated: Do not use.
  3622. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3623. XXX_sizecache int32 `json:"-"`
  3624. }
  3625. func (m *LinuxContainerSecurityContext) Reset() { *m = LinuxContainerSecurityContext{} }
  3626. func (*LinuxContainerSecurityContext) ProtoMessage() {}
  3627. func (*LinuxContainerSecurityContext) Descriptor() ([]byte, []int) {
  3628. return fileDescriptor_00212fb1f9d3bf1c, []int{53}
  3629. }
  3630. func (m *LinuxContainerSecurityContext) XXX_Unmarshal(b []byte) error {
  3631. return m.Unmarshal(b)
  3632. }
  3633. func (m *LinuxContainerSecurityContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3634. if deterministic {
  3635. return xxx_messageInfo_LinuxContainerSecurityContext.Marshal(b, m, deterministic)
  3636. } else {
  3637. b = b[:cap(b)]
  3638. n, err := m.MarshalToSizedBuffer(b)
  3639. if err != nil {
  3640. return nil, err
  3641. }
  3642. return b[:n], nil
  3643. }
  3644. }
  3645. func (m *LinuxContainerSecurityContext) XXX_Merge(src proto.Message) {
  3646. xxx_messageInfo_LinuxContainerSecurityContext.Merge(m, src)
  3647. }
  3648. func (m *LinuxContainerSecurityContext) XXX_Size() int {
  3649. return m.Size()
  3650. }
  3651. func (m *LinuxContainerSecurityContext) XXX_DiscardUnknown() {
  3652. xxx_messageInfo_LinuxContainerSecurityContext.DiscardUnknown(m)
  3653. }
  3654. var xxx_messageInfo_LinuxContainerSecurityContext proto.InternalMessageInfo
  3655. func (m *LinuxContainerSecurityContext) GetCapabilities() *Capability {
  3656. if m != nil {
  3657. return m.Capabilities
  3658. }
  3659. return nil
  3660. }
  3661. func (m *LinuxContainerSecurityContext) GetPrivileged() bool {
  3662. if m != nil {
  3663. return m.Privileged
  3664. }
  3665. return false
  3666. }
  3667. func (m *LinuxContainerSecurityContext) GetNamespaceOptions() *NamespaceOption {
  3668. if m != nil {
  3669. return m.NamespaceOptions
  3670. }
  3671. return nil
  3672. }
  3673. func (m *LinuxContainerSecurityContext) GetSelinuxOptions() *SELinuxOption {
  3674. if m != nil {
  3675. return m.SelinuxOptions
  3676. }
  3677. return nil
  3678. }
  3679. func (m *LinuxContainerSecurityContext) GetRunAsUser() *Int64Value {
  3680. if m != nil {
  3681. return m.RunAsUser
  3682. }
  3683. return nil
  3684. }
  3685. func (m *LinuxContainerSecurityContext) GetRunAsGroup() *Int64Value {
  3686. if m != nil {
  3687. return m.RunAsGroup
  3688. }
  3689. return nil
  3690. }
  3691. func (m *LinuxContainerSecurityContext) GetRunAsUsername() string {
  3692. if m != nil {
  3693. return m.RunAsUsername
  3694. }
  3695. return ""
  3696. }
  3697. func (m *LinuxContainerSecurityContext) GetReadonlyRootfs() bool {
  3698. if m != nil {
  3699. return m.ReadonlyRootfs
  3700. }
  3701. return false
  3702. }
  3703. func (m *LinuxContainerSecurityContext) GetSupplementalGroups() []int64 {
  3704. if m != nil {
  3705. return m.SupplementalGroups
  3706. }
  3707. return nil
  3708. }
  3709. func (m *LinuxContainerSecurityContext) GetNoNewPrivs() bool {
  3710. if m != nil {
  3711. return m.NoNewPrivs
  3712. }
  3713. return false
  3714. }
  3715. func (m *LinuxContainerSecurityContext) GetMaskedPaths() []string {
  3716. if m != nil {
  3717. return m.MaskedPaths
  3718. }
  3719. return nil
  3720. }
  3721. func (m *LinuxContainerSecurityContext) GetReadonlyPaths() []string {
  3722. if m != nil {
  3723. return m.ReadonlyPaths
  3724. }
  3725. return nil
  3726. }
  3727. func (m *LinuxContainerSecurityContext) GetSeccomp() *SecurityProfile {
  3728. if m != nil {
  3729. return m.Seccomp
  3730. }
  3731. return nil
  3732. }
  3733. func (m *LinuxContainerSecurityContext) GetApparmor() *SecurityProfile {
  3734. if m != nil {
  3735. return m.Apparmor
  3736. }
  3737. return nil
  3738. }
  3739. // Deprecated: Do not use.
  3740. func (m *LinuxContainerSecurityContext) GetApparmorProfile() string {
  3741. if m != nil {
  3742. return m.ApparmorProfile
  3743. }
  3744. return ""
  3745. }
  3746. // Deprecated: Do not use.
  3747. func (m *LinuxContainerSecurityContext) GetSeccompProfilePath() string {
  3748. if m != nil {
  3749. return m.SeccompProfilePath
  3750. }
  3751. return ""
  3752. }
  3753. // LinuxContainerConfig contains platform-specific configuration for
  3754. // Linux-based containers.
  3755. type LinuxContainerConfig struct {
  3756. // Resources specification for the container.
  3757. Resources *LinuxContainerResources `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources,omitempty"`
  3758. // LinuxContainerSecurityContext configuration for the container.
  3759. SecurityContext *LinuxContainerSecurityContext `protobuf:"bytes,2,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"`
  3760. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3761. XXX_sizecache int32 `json:"-"`
  3762. }
  3763. func (m *LinuxContainerConfig) Reset() { *m = LinuxContainerConfig{} }
  3764. func (*LinuxContainerConfig) ProtoMessage() {}
  3765. func (*LinuxContainerConfig) Descriptor() ([]byte, []int) {
  3766. return fileDescriptor_00212fb1f9d3bf1c, []int{54}
  3767. }
  3768. func (m *LinuxContainerConfig) XXX_Unmarshal(b []byte) error {
  3769. return m.Unmarshal(b)
  3770. }
  3771. func (m *LinuxContainerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3772. if deterministic {
  3773. return xxx_messageInfo_LinuxContainerConfig.Marshal(b, m, deterministic)
  3774. } else {
  3775. b = b[:cap(b)]
  3776. n, err := m.MarshalToSizedBuffer(b)
  3777. if err != nil {
  3778. return nil, err
  3779. }
  3780. return b[:n], nil
  3781. }
  3782. }
  3783. func (m *LinuxContainerConfig) XXX_Merge(src proto.Message) {
  3784. xxx_messageInfo_LinuxContainerConfig.Merge(m, src)
  3785. }
  3786. func (m *LinuxContainerConfig) XXX_Size() int {
  3787. return m.Size()
  3788. }
  3789. func (m *LinuxContainerConfig) XXX_DiscardUnknown() {
  3790. xxx_messageInfo_LinuxContainerConfig.DiscardUnknown(m)
  3791. }
  3792. var xxx_messageInfo_LinuxContainerConfig proto.InternalMessageInfo
  3793. func (m *LinuxContainerConfig) GetResources() *LinuxContainerResources {
  3794. if m != nil {
  3795. return m.Resources
  3796. }
  3797. return nil
  3798. }
  3799. func (m *LinuxContainerConfig) GetSecurityContext() *LinuxContainerSecurityContext {
  3800. if m != nil {
  3801. return m.SecurityContext
  3802. }
  3803. return nil
  3804. }
  3805. // WindowsNamespaceOption provides options for Windows namespaces.
  3806. type WindowsNamespaceOption struct {
  3807. // Network namespace for this container/sandbox.
  3808. // Namespaces currently set by the kubelet: POD, NODE
  3809. Network NamespaceMode `protobuf:"varint,1,opt,name=network,proto3,enum=runtime.v1.NamespaceMode" json:"network,omitempty"`
  3810. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3811. XXX_sizecache int32 `json:"-"`
  3812. }
  3813. func (m *WindowsNamespaceOption) Reset() { *m = WindowsNamespaceOption{} }
  3814. func (*WindowsNamespaceOption) ProtoMessage() {}
  3815. func (*WindowsNamespaceOption) Descriptor() ([]byte, []int) {
  3816. return fileDescriptor_00212fb1f9d3bf1c, []int{55}
  3817. }
  3818. func (m *WindowsNamespaceOption) XXX_Unmarshal(b []byte) error {
  3819. return m.Unmarshal(b)
  3820. }
  3821. func (m *WindowsNamespaceOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3822. if deterministic {
  3823. return xxx_messageInfo_WindowsNamespaceOption.Marshal(b, m, deterministic)
  3824. } else {
  3825. b = b[:cap(b)]
  3826. n, err := m.MarshalToSizedBuffer(b)
  3827. if err != nil {
  3828. return nil, err
  3829. }
  3830. return b[:n], nil
  3831. }
  3832. }
  3833. func (m *WindowsNamespaceOption) XXX_Merge(src proto.Message) {
  3834. xxx_messageInfo_WindowsNamespaceOption.Merge(m, src)
  3835. }
  3836. func (m *WindowsNamespaceOption) XXX_Size() int {
  3837. return m.Size()
  3838. }
  3839. func (m *WindowsNamespaceOption) XXX_DiscardUnknown() {
  3840. xxx_messageInfo_WindowsNamespaceOption.DiscardUnknown(m)
  3841. }
  3842. var xxx_messageInfo_WindowsNamespaceOption proto.InternalMessageInfo
  3843. func (m *WindowsNamespaceOption) GetNetwork() NamespaceMode {
  3844. if m != nil {
  3845. return m.Network
  3846. }
  3847. return NamespaceMode_POD
  3848. }
  3849. // WindowsSandboxSecurityContext holds platform-specific configurations that will be
  3850. // applied to a sandbox.
  3851. // These settings will only apply to the sandbox container.
  3852. type WindowsSandboxSecurityContext struct {
  3853. // User name to run the container process as. If specified, the user MUST
  3854. // exist in the container image and be resolved there by the runtime;
  3855. // otherwise, the runtime MUST return error.
  3856. RunAsUsername string `protobuf:"bytes,1,opt,name=run_as_username,json=runAsUsername,proto3" json:"run_as_username,omitempty"`
  3857. // The contents of the GMSA credential spec to use to run this container.
  3858. CredentialSpec string `protobuf:"bytes,2,opt,name=credential_spec,json=credentialSpec,proto3" json:"credential_spec,omitempty"`
  3859. // Indicates whether the container requested to run as a HostProcess container.
  3860. HostProcess bool `protobuf:"varint,3,opt,name=host_process,json=hostProcess,proto3" json:"host_process,omitempty"`
  3861. // Configuration for the sandbox's namespaces
  3862. NamespaceOptions *WindowsNamespaceOption `protobuf:"bytes,4,opt,name=namespace_options,json=namespaceOptions,proto3" json:"namespace_options,omitempty"`
  3863. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3864. XXX_sizecache int32 `json:"-"`
  3865. }
  3866. func (m *WindowsSandboxSecurityContext) Reset() { *m = WindowsSandboxSecurityContext{} }
  3867. func (*WindowsSandboxSecurityContext) ProtoMessage() {}
  3868. func (*WindowsSandboxSecurityContext) Descriptor() ([]byte, []int) {
  3869. return fileDescriptor_00212fb1f9d3bf1c, []int{56}
  3870. }
  3871. func (m *WindowsSandboxSecurityContext) XXX_Unmarshal(b []byte) error {
  3872. return m.Unmarshal(b)
  3873. }
  3874. func (m *WindowsSandboxSecurityContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3875. if deterministic {
  3876. return xxx_messageInfo_WindowsSandboxSecurityContext.Marshal(b, m, deterministic)
  3877. } else {
  3878. b = b[:cap(b)]
  3879. n, err := m.MarshalToSizedBuffer(b)
  3880. if err != nil {
  3881. return nil, err
  3882. }
  3883. return b[:n], nil
  3884. }
  3885. }
  3886. func (m *WindowsSandboxSecurityContext) XXX_Merge(src proto.Message) {
  3887. xxx_messageInfo_WindowsSandboxSecurityContext.Merge(m, src)
  3888. }
  3889. func (m *WindowsSandboxSecurityContext) XXX_Size() int {
  3890. return m.Size()
  3891. }
  3892. func (m *WindowsSandboxSecurityContext) XXX_DiscardUnknown() {
  3893. xxx_messageInfo_WindowsSandboxSecurityContext.DiscardUnknown(m)
  3894. }
  3895. var xxx_messageInfo_WindowsSandboxSecurityContext proto.InternalMessageInfo
  3896. func (m *WindowsSandboxSecurityContext) GetRunAsUsername() string {
  3897. if m != nil {
  3898. return m.RunAsUsername
  3899. }
  3900. return ""
  3901. }
  3902. func (m *WindowsSandboxSecurityContext) GetCredentialSpec() string {
  3903. if m != nil {
  3904. return m.CredentialSpec
  3905. }
  3906. return ""
  3907. }
  3908. func (m *WindowsSandboxSecurityContext) GetHostProcess() bool {
  3909. if m != nil {
  3910. return m.HostProcess
  3911. }
  3912. return false
  3913. }
  3914. func (m *WindowsSandboxSecurityContext) GetNamespaceOptions() *WindowsNamespaceOption {
  3915. if m != nil {
  3916. return m.NamespaceOptions
  3917. }
  3918. return nil
  3919. }
  3920. // WindowsPodSandboxConfig holds platform-specific configurations for Windows
  3921. // host platforms and Windows-based containers.
  3922. type WindowsPodSandboxConfig struct {
  3923. // WindowsSandboxSecurityContext holds sandbox security attributes.
  3924. SecurityContext *WindowsSandboxSecurityContext `protobuf:"bytes,1,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"`
  3925. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3926. XXX_sizecache int32 `json:"-"`
  3927. }
  3928. func (m *WindowsPodSandboxConfig) Reset() { *m = WindowsPodSandboxConfig{} }
  3929. func (*WindowsPodSandboxConfig) ProtoMessage() {}
  3930. func (*WindowsPodSandboxConfig) Descriptor() ([]byte, []int) {
  3931. return fileDescriptor_00212fb1f9d3bf1c, []int{57}
  3932. }
  3933. func (m *WindowsPodSandboxConfig) XXX_Unmarshal(b []byte) error {
  3934. return m.Unmarshal(b)
  3935. }
  3936. func (m *WindowsPodSandboxConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3937. if deterministic {
  3938. return xxx_messageInfo_WindowsPodSandboxConfig.Marshal(b, m, deterministic)
  3939. } else {
  3940. b = b[:cap(b)]
  3941. n, err := m.MarshalToSizedBuffer(b)
  3942. if err != nil {
  3943. return nil, err
  3944. }
  3945. return b[:n], nil
  3946. }
  3947. }
  3948. func (m *WindowsPodSandboxConfig) XXX_Merge(src proto.Message) {
  3949. xxx_messageInfo_WindowsPodSandboxConfig.Merge(m, src)
  3950. }
  3951. func (m *WindowsPodSandboxConfig) XXX_Size() int {
  3952. return m.Size()
  3953. }
  3954. func (m *WindowsPodSandboxConfig) XXX_DiscardUnknown() {
  3955. xxx_messageInfo_WindowsPodSandboxConfig.DiscardUnknown(m)
  3956. }
  3957. var xxx_messageInfo_WindowsPodSandboxConfig proto.InternalMessageInfo
  3958. func (m *WindowsPodSandboxConfig) GetSecurityContext() *WindowsSandboxSecurityContext {
  3959. if m != nil {
  3960. return m.SecurityContext
  3961. }
  3962. return nil
  3963. }
  3964. // WindowsContainerSecurityContext holds windows security configuration that will be applied to a container.
  3965. type WindowsContainerSecurityContext struct {
  3966. // User name to run the container process as. If specified, the user MUST
  3967. // exist in the container image and be resolved there by the runtime;
  3968. // otherwise, the runtime MUST return error.
  3969. RunAsUsername string `protobuf:"bytes,1,opt,name=run_as_username,json=runAsUsername,proto3" json:"run_as_username,omitempty"`
  3970. // The contents of the GMSA credential spec to use to run this container.
  3971. CredentialSpec string `protobuf:"bytes,2,opt,name=credential_spec,json=credentialSpec,proto3" json:"credential_spec,omitempty"`
  3972. // Indicates whether a container is to be run as a HostProcess container.
  3973. HostProcess bool `protobuf:"varint,3,opt,name=host_process,json=hostProcess,proto3" json:"host_process,omitempty"`
  3974. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3975. XXX_sizecache int32 `json:"-"`
  3976. }
  3977. func (m *WindowsContainerSecurityContext) Reset() { *m = WindowsContainerSecurityContext{} }
  3978. func (*WindowsContainerSecurityContext) ProtoMessage() {}
  3979. func (*WindowsContainerSecurityContext) Descriptor() ([]byte, []int) {
  3980. return fileDescriptor_00212fb1f9d3bf1c, []int{58}
  3981. }
  3982. func (m *WindowsContainerSecurityContext) XXX_Unmarshal(b []byte) error {
  3983. return m.Unmarshal(b)
  3984. }
  3985. func (m *WindowsContainerSecurityContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3986. if deterministic {
  3987. return xxx_messageInfo_WindowsContainerSecurityContext.Marshal(b, m, deterministic)
  3988. } else {
  3989. b = b[:cap(b)]
  3990. n, err := m.MarshalToSizedBuffer(b)
  3991. if err != nil {
  3992. return nil, err
  3993. }
  3994. return b[:n], nil
  3995. }
  3996. }
  3997. func (m *WindowsContainerSecurityContext) XXX_Merge(src proto.Message) {
  3998. xxx_messageInfo_WindowsContainerSecurityContext.Merge(m, src)
  3999. }
  4000. func (m *WindowsContainerSecurityContext) XXX_Size() int {
  4001. return m.Size()
  4002. }
  4003. func (m *WindowsContainerSecurityContext) XXX_DiscardUnknown() {
  4004. xxx_messageInfo_WindowsContainerSecurityContext.DiscardUnknown(m)
  4005. }
  4006. var xxx_messageInfo_WindowsContainerSecurityContext proto.InternalMessageInfo
  4007. func (m *WindowsContainerSecurityContext) GetRunAsUsername() string {
  4008. if m != nil {
  4009. return m.RunAsUsername
  4010. }
  4011. return ""
  4012. }
  4013. func (m *WindowsContainerSecurityContext) GetCredentialSpec() string {
  4014. if m != nil {
  4015. return m.CredentialSpec
  4016. }
  4017. return ""
  4018. }
  4019. func (m *WindowsContainerSecurityContext) GetHostProcess() bool {
  4020. if m != nil {
  4021. return m.HostProcess
  4022. }
  4023. return false
  4024. }
  4025. // WindowsContainerConfig contains platform-specific configuration for
  4026. // Windows-based containers.
  4027. type WindowsContainerConfig struct {
  4028. // Resources specification for the container.
  4029. Resources *WindowsContainerResources `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources,omitempty"`
  4030. // WindowsContainerSecurityContext configuration for the container.
  4031. SecurityContext *WindowsContainerSecurityContext `protobuf:"bytes,2,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"`
  4032. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4033. XXX_sizecache int32 `json:"-"`
  4034. }
  4035. func (m *WindowsContainerConfig) Reset() { *m = WindowsContainerConfig{} }
  4036. func (*WindowsContainerConfig) ProtoMessage() {}
  4037. func (*WindowsContainerConfig) Descriptor() ([]byte, []int) {
  4038. return fileDescriptor_00212fb1f9d3bf1c, []int{59}
  4039. }
  4040. func (m *WindowsContainerConfig) XXX_Unmarshal(b []byte) error {
  4041. return m.Unmarshal(b)
  4042. }
  4043. func (m *WindowsContainerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4044. if deterministic {
  4045. return xxx_messageInfo_WindowsContainerConfig.Marshal(b, m, deterministic)
  4046. } else {
  4047. b = b[:cap(b)]
  4048. n, err := m.MarshalToSizedBuffer(b)
  4049. if err != nil {
  4050. return nil, err
  4051. }
  4052. return b[:n], nil
  4053. }
  4054. }
  4055. func (m *WindowsContainerConfig) XXX_Merge(src proto.Message) {
  4056. xxx_messageInfo_WindowsContainerConfig.Merge(m, src)
  4057. }
  4058. func (m *WindowsContainerConfig) XXX_Size() int {
  4059. return m.Size()
  4060. }
  4061. func (m *WindowsContainerConfig) XXX_DiscardUnknown() {
  4062. xxx_messageInfo_WindowsContainerConfig.DiscardUnknown(m)
  4063. }
  4064. var xxx_messageInfo_WindowsContainerConfig proto.InternalMessageInfo
  4065. func (m *WindowsContainerConfig) GetResources() *WindowsContainerResources {
  4066. if m != nil {
  4067. return m.Resources
  4068. }
  4069. return nil
  4070. }
  4071. func (m *WindowsContainerConfig) GetSecurityContext() *WindowsContainerSecurityContext {
  4072. if m != nil {
  4073. return m.SecurityContext
  4074. }
  4075. return nil
  4076. }
  4077. // WindowsContainerResources specifies Windows specific configuration for
  4078. // resources.
  4079. type WindowsContainerResources struct {
  4080. // CPU shares (relative weight vs. other containers). Default: 0 (not specified).
  4081. CpuShares int64 `protobuf:"varint,1,opt,name=cpu_shares,json=cpuShares,proto3" json:"cpu_shares,omitempty"`
  4082. // Number of CPUs available to the container. Default: 0 (not specified).
  4083. CpuCount int64 `protobuf:"varint,2,opt,name=cpu_count,json=cpuCount,proto3" json:"cpu_count,omitempty"`
  4084. // Specifies the portion of processor cycles that this container can use as a percentage times 100.
  4085. CpuMaximum int64 `protobuf:"varint,3,opt,name=cpu_maximum,json=cpuMaximum,proto3" json:"cpu_maximum,omitempty"`
  4086. // Memory limit in bytes. Default: 0 (not specified).
  4087. MemoryLimitInBytes int64 `protobuf:"varint,4,opt,name=memory_limit_in_bytes,json=memoryLimitInBytes,proto3" json:"memory_limit_in_bytes,omitempty"`
  4088. // Specifies the size of the rootfs / scratch space in bytes to be configured for this container. Default: 0 (not specified).
  4089. RootfsSizeInBytes int64 `protobuf:"varint,5,opt,name=rootfs_size_in_bytes,json=rootfsSizeInBytes,proto3" json:"rootfs_size_in_bytes,omitempty"`
  4090. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4091. XXX_sizecache int32 `json:"-"`
  4092. }
  4093. func (m *WindowsContainerResources) Reset() { *m = WindowsContainerResources{} }
  4094. func (*WindowsContainerResources) ProtoMessage() {}
  4095. func (*WindowsContainerResources) Descriptor() ([]byte, []int) {
  4096. return fileDescriptor_00212fb1f9d3bf1c, []int{60}
  4097. }
  4098. func (m *WindowsContainerResources) XXX_Unmarshal(b []byte) error {
  4099. return m.Unmarshal(b)
  4100. }
  4101. func (m *WindowsContainerResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4102. if deterministic {
  4103. return xxx_messageInfo_WindowsContainerResources.Marshal(b, m, deterministic)
  4104. } else {
  4105. b = b[:cap(b)]
  4106. n, err := m.MarshalToSizedBuffer(b)
  4107. if err != nil {
  4108. return nil, err
  4109. }
  4110. return b[:n], nil
  4111. }
  4112. }
  4113. func (m *WindowsContainerResources) XXX_Merge(src proto.Message) {
  4114. xxx_messageInfo_WindowsContainerResources.Merge(m, src)
  4115. }
  4116. func (m *WindowsContainerResources) XXX_Size() int {
  4117. return m.Size()
  4118. }
  4119. func (m *WindowsContainerResources) XXX_DiscardUnknown() {
  4120. xxx_messageInfo_WindowsContainerResources.DiscardUnknown(m)
  4121. }
  4122. var xxx_messageInfo_WindowsContainerResources proto.InternalMessageInfo
  4123. func (m *WindowsContainerResources) GetCpuShares() int64 {
  4124. if m != nil {
  4125. return m.CpuShares
  4126. }
  4127. return 0
  4128. }
  4129. func (m *WindowsContainerResources) GetCpuCount() int64 {
  4130. if m != nil {
  4131. return m.CpuCount
  4132. }
  4133. return 0
  4134. }
  4135. func (m *WindowsContainerResources) GetCpuMaximum() int64 {
  4136. if m != nil {
  4137. return m.CpuMaximum
  4138. }
  4139. return 0
  4140. }
  4141. func (m *WindowsContainerResources) GetMemoryLimitInBytes() int64 {
  4142. if m != nil {
  4143. return m.MemoryLimitInBytes
  4144. }
  4145. return 0
  4146. }
  4147. func (m *WindowsContainerResources) GetRootfsSizeInBytes() int64 {
  4148. if m != nil {
  4149. return m.RootfsSizeInBytes
  4150. }
  4151. return 0
  4152. }
  4153. // ContainerMetadata holds all necessary information for building the container
  4154. // name. The container runtime is encouraged to expose the metadata in its user
  4155. // interface for better user experience. E.g., runtime can construct a unique
  4156. // container name based on the metadata. Note that (name, attempt) is unique
  4157. // within a sandbox for the entire lifetime of the sandbox.
  4158. type ContainerMetadata struct {
  4159. // Name of the container. Same as the container name in the PodSpec.
  4160. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  4161. // Attempt number of creating the container. Default: 0.
  4162. Attempt uint32 `protobuf:"varint,2,opt,name=attempt,proto3" json:"attempt,omitempty"`
  4163. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4164. XXX_sizecache int32 `json:"-"`
  4165. }
  4166. func (m *ContainerMetadata) Reset() { *m = ContainerMetadata{} }
  4167. func (*ContainerMetadata) ProtoMessage() {}
  4168. func (*ContainerMetadata) Descriptor() ([]byte, []int) {
  4169. return fileDescriptor_00212fb1f9d3bf1c, []int{61}
  4170. }
  4171. func (m *ContainerMetadata) XXX_Unmarshal(b []byte) error {
  4172. return m.Unmarshal(b)
  4173. }
  4174. func (m *ContainerMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4175. if deterministic {
  4176. return xxx_messageInfo_ContainerMetadata.Marshal(b, m, deterministic)
  4177. } else {
  4178. b = b[:cap(b)]
  4179. n, err := m.MarshalToSizedBuffer(b)
  4180. if err != nil {
  4181. return nil, err
  4182. }
  4183. return b[:n], nil
  4184. }
  4185. }
  4186. func (m *ContainerMetadata) XXX_Merge(src proto.Message) {
  4187. xxx_messageInfo_ContainerMetadata.Merge(m, src)
  4188. }
  4189. func (m *ContainerMetadata) XXX_Size() int {
  4190. return m.Size()
  4191. }
  4192. func (m *ContainerMetadata) XXX_DiscardUnknown() {
  4193. xxx_messageInfo_ContainerMetadata.DiscardUnknown(m)
  4194. }
  4195. var xxx_messageInfo_ContainerMetadata proto.InternalMessageInfo
  4196. func (m *ContainerMetadata) GetName() string {
  4197. if m != nil {
  4198. return m.Name
  4199. }
  4200. return ""
  4201. }
  4202. func (m *ContainerMetadata) GetAttempt() uint32 {
  4203. if m != nil {
  4204. return m.Attempt
  4205. }
  4206. return 0
  4207. }
  4208. // Device specifies a host device to mount into a container.
  4209. type Device struct {
  4210. // Path of the device within the container.
  4211. ContainerPath string `protobuf:"bytes,1,opt,name=container_path,json=containerPath,proto3" json:"container_path,omitempty"`
  4212. // Path of the device on the host.
  4213. HostPath string `protobuf:"bytes,2,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"`
  4214. // Cgroups permissions of the device, candidates are one or more of
  4215. // * r - allows container to read from the specified device.
  4216. // * w - allows container to write to the specified device.
  4217. // * m - allows container to create device files that do not yet exist.
  4218. Permissions string `protobuf:"bytes,3,opt,name=permissions,proto3" json:"permissions,omitempty"`
  4219. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4220. XXX_sizecache int32 `json:"-"`
  4221. }
  4222. func (m *Device) Reset() { *m = Device{} }
  4223. func (*Device) ProtoMessage() {}
  4224. func (*Device) Descriptor() ([]byte, []int) {
  4225. return fileDescriptor_00212fb1f9d3bf1c, []int{62}
  4226. }
  4227. func (m *Device) XXX_Unmarshal(b []byte) error {
  4228. return m.Unmarshal(b)
  4229. }
  4230. func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4231. if deterministic {
  4232. return xxx_messageInfo_Device.Marshal(b, m, deterministic)
  4233. } else {
  4234. b = b[:cap(b)]
  4235. n, err := m.MarshalToSizedBuffer(b)
  4236. if err != nil {
  4237. return nil, err
  4238. }
  4239. return b[:n], nil
  4240. }
  4241. }
  4242. func (m *Device) XXX_Merge(src proto.Message) {
  4243. xxx_messageInfo_Device.Merge(m, src)
  4244. }
  4245. func (m *Device) XXX_Size() int {
  4246. return m.Size()
  4247. }
  4248. func (m *Device) XXX_DiscardUnknown() {
  4249. xxx_messageInfo_Device.DiscardUnknown(m)
  4250. }
  4251. var xxx_messageInfo_Device proto.InternalMessageInfo
  4252. func (m *Device) GetContainerPath() string {
  4253. if m != nil {
  4254. return m.ContainerPath
  4255. }
  4256. return ""
  4257. }
  4258. func (m *Device) GetHostPath() string {
  4259. if m != nil {
  4260. return m.HostPath
  4261. }
  4262. return ""
  4263. }
  4264. func (m *Device) GetPermissions() string {
  4265. if m != nil {
  4266. return m.Permissions
  4267. }
  4268. return ""
  4269. }
  4270. // CDIDevice specifies a CDI device information.
  4271. type CDIDevice struct {
  4272. // Fully qualified CDI device name
  4273. // for example: vendor.com/gpu=gpudevice1
  4274. // see more details in the CDI specification:
  4275. // https://github.com/container-orchestrated-devices/container-device-interface/blob/main/SPEC.md
  4276. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  4277. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4278. XXX_sizecache int32 `json:"-"`
  4279. }
  4280. func (m *CDIDevice) Reset() { *m = CDIDevice{} }
  4281. func (*CDIDevice) ProtoMessage() {}
  4282. func (*CDIDevice) Descriptor() ([]byte, []int) {
  4283. return fileDescriptor_00212fb1f9d3bf1c, []int{63}
  4284. }
  4285. func (m *CDIDevice) XXX_Unmarshal(b []byte) error {
  4286. return m.Unmarshal(b)
  4287. }
  4288. func (m *CDIDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4289. if deterministic {
  4290. return xxx_messageInfo_CDIDevice.Marshal(b, m, deterministic)
  4291. } else {
  4292. b = b[:cap(b)]
  4293. n, err := m.MarshalToSizedBuffer(b)
  4294. if err != nil {
  4295. return nil, err
  4296. }
  4297. return b[:n], nil
  4298. }
  4299. }
  4300. func (m *CDIDevice) XXX_Merge(src proto.Message) {
  4301. xxx_messageInfo_CDIDevice.Merge(m, src)
  4302. }
  4303. func (m *CDIDevice) XXX_Size() int {
  4304. return m.Size()
  4305. }
  4306. func (m *CDIDevice) XXX_DiscardUnknown() {
  4307. xxx_messageInfo_CDIDevice.DiscardUnknown(m)
  4308. }
  4309. var xxx_messageInfo_CDIDevice proto.InternalMessageInfo
  4310. func (m *CDIDevice) GetName() string {
  4311. if m != nil {
  4312. return m.Name
  4313. }
  4314. return ""
  4315. }
  4316. // ContainerConfig holds all the required and optional fields for creating a
  4317. // container.
  4318. type ContainerConfig struct {
  4319. // Metadata of the container. This information will uniquely identify the
  4320. // container, and the runtime should leverage this to ensure correct
  4321. // operation. The runtime may also use this information to improve UX, such
  4322. // as by constructing a readable name.
  4323. Metadata *ContainerMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
  4324. // Image to use.
  4325. Image *ImageSpec `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
  4326. // Command to execute (i.e., entrypoint for docker)
  4327. Command []string `protobuf:"bytes,3,rep,name=command,proto3" json:"command,omitempty"`
  4328. // Args for the Command (i.e., command for docker)
  4329. Args []string `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
  4330. // Current working directory of the command.
  4331. WorkingDir string `protobuf:"bytes,5,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"`
  4332. // List of environment variable to set in the container.
  4333. Envs []*KeyValue `protobuf:"bytes,6,rep,name=envs,proto3" json:"envs,omitempty"`
  4334. // Mounts for the container.
  4335. Mounts []*Mount `protobuf:"bytes,7,rep,name=mounts,proto3" json:"mounts,omitempty"`
  4336. // Devices for the container.
  4337. Devices []*Device `protobuf:"bytes,8,rep,name=devices,proto3" json:"devices,omitempty"`
  4338. // Key-value pairs that may be used to scope and select individual resources.
  4339. // Label keys are of the form:
  4340. //
  4341. // label-key ::= prefixed-name | name
  4342. // prefixed-name ::= prefix '/' name
  4343. // prefix ::= DNS_SUBDOMAIN
  4344. // name ::= DNS_LABEL
  4345. Labels map[string]string `protobuf:"bytes,9,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  4346. // Unstructured key-value map that may be used by the kubelet to store and
  4347. // retrieve arbitrary metadata.
  4348. //
  4349. // Annotations MUST NOT be altered by the runtime; the annotations stored
  4350. // here MUST be returned in the ContainerStatus associated with the container
  4351. // this ContainerConfig creates.
  4352. //
  4353. // In general, in order to preserve a well-defined interface between the
  4354. // kubelet and the container runtime, annotations SHOULD NOT influence
  4355. // runtime behaviour.
  4356. Annotations map[string]string `protobuf:"bytes,10,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  4357. // Path relative to PodSandboxConfig.LogDirectory for container to store
  4358. // the log (STDOUT and STDERR) on the host.
  4359. // E.g.,
  4360. //
  4361. // PodSandboxConfig.LogDirectory = `/var/log/pods/<NAMESPACE>_<NAME>_<UID>/`
  4362. // ContainerConfig.LogPath = `containerName/Instance#.log`
  4363. LogPath string `protobuf:"bytes,11,opt,name=log_path,json=logPath,proto3" json:"log_path,omitempty"`
  4364. // Variables for interactive containers, these have very specialized
  4365. // use-cases (e.g. debugging).
  4366. Stdin bool `protobuf:"varint,12,opt,name=stdin,proto3" json:"stdin,omitempty"`
  4367. StdinOnce bool `protobuf:"varint,13,opt,name=stdin_once,json=stdinOnce,proto3" json:"stdin_once,omitempty"`
  4368. Tty bool `protobuf:"varint,14,opt,name=tty,proto3" json:"tty,omitempty"`
  4369. // Configuration specific to Linux containers.
  4370. Linux *LinuxContainerConfig `protobuf:"bytes,15,opt,name=linux,proto3" json:"linux,omitempty"`
  4371. // Configuration specific to Windows containers.
  4372. Windows *WindowsContainerConfig `protobuf:"bytes,16,opt,name=windows,proto3" json:"windows,omitempty"`
  4373. // CDI devices for the container.
  4374. CDIDevices []*CDIDevice `protobuf:"bytes,17,rep,name=CDI_devices,json=CDIDevices,proto3" json:"CDI_devices,omitempty"`
  4375. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4376. XXX_sizecache int32 `json:"-"`
  4377. }
  4378. func (m *ContainerConfig) Reset() { *m = ContainerConfig{} }
  4379. func (*ContainerConfig) ProtoMessage() {}
  4380. func (*ContainerConfig) Descriptor() ([]byte, []int) {
  4381. return fileDescriptor_00212fb1f9d3bf1c, []int{64}
  4382. }
  4383. func (m *ContainerConfig) XXX_Unmarshal(b []byte) error {
  4384. return m.Unmarshal(b)
  4385. }
  4386. func (m *ContainerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4387. if deterministic {
  4388. return xxx_messageInfo_ContainerConfig.Marshal(b, m, deterministic)
  4389. } else {
  4390. b = b[:cap(b)]
  4391. n, err := m.MarshalToSizedBuffer(b)
  4392. if err != nil {
  4393. return nil, err
  4394. }
  4395. return b[:n], nil
  4396. }
  4397. }
  4398. func (m *ContainerConfig) XXX_Merge(src proto.Message) {
  4399. xxx_messageInfo_ContainerConfig.Merge(m, src)
  4400. }
  4401. func (m *ContainerConfig) XXX_Size() int {
  4402. return m.Size()
  4403. }
  4404. func (m *ContainerConfig) XXX_DiscardUnknown() {
  4405. xxx_messageInfo_ContainerConfig.DiscardUnknown(m)
  4406. }
  4407. var xxx_messageInfo_ContainerConfig proto.InternalMessageInfo
  4408. func (m *ContainerConfig) GetMetadata() *ContainerMetadata {
  4409. if m != nil {
  4410. return m.Metadata
  4411. }
  4412. return nil
  4413. }
  4414. func (m *ContainerConfig) GetImage() *ImageSpec {
  4415. if m != nil {
  4416. return m.Image
  4417. }
  4418. return nil
  4419. }
  4420. func (m *ContainerConfig) GetCommand() []string {
  4421. if m != nil {
  4422. return m.Command
  4423. }
  4424. return nil
  4425. }
  4426. func (m *ContainerConfig) GetArgs() []string {
  4427. if m != nil {
  4428. return m.Args
  4429. }
  4430. return nil
  4431. }
  4432. func (m *ContainerConfig) GetWorkingDir() string {
  4433. if m != nil {
  4434. return m.WorkingDir
  4435. }
  4436. return ""
  4437. }
  4438. func (m *ContainerConfig) GetEnvs() []*KeyValue {
  4439. if m != nil {
  4440. return m.Envs
  4441. }
  4442. return nil
  4443. }
  4444. func (m *ContainerConfig) GetMounts() []*Mount {
  4445. if m != nil {
  4446. return m.Mounts
  4447. }
  4448. return nil
  4449. }
  4450. func (m *ContainerConfig) GetDevices() []*Device {
  4451. if m != nil {
  4452. return m.Devices
  4453. }
  4454. return nil
  4455. }
  4456. func (m *ContainerConfig) GetLabels() map[string]string {
  4457. if m != nil {
  4458. return m.Labels
  4459. }
  4460. return nil
  4461. }
  4462. func (m *ContainerConfig) GetAnnotations() map[string]string {
  4463. if m != nil {
  4464. return m.Annotations
  4465. }
  4466. return nil
  4467. }
  4468. func (m *ContainerConfig) GetLogPath() string {
  4469. if m != nil {
  4470. return m.LogPath
  4471. }
  4472. return ""
  4473. }
  4474. func (m *ContainerConfig) GetStdin() bool {
  4475. if m != nil {
  4476. return m.Stdin
  4477. }
  4478. return false
  4479. }
  4480. func (m *ContainerConfig) GetStdinOnce() bool {
  4481. if m != nil {
  4482. return m.StdinOnce
  4483. }
  4484. return false
  4485. }
  4486. func (m *ContainerConfig) GetTty() bool {
  4487. if m != nil {
  4488. return m.Tty
  4489. }
  4490. return false
  4491. }
  4492. func (m *ContainerConfig) GetLinux() *LinuxContainerConfig {
  4493. if m != nil {
  4494. return m.Linux
  4495. }
  4496. return nil
  4497. }
  4498. func (m *ContainerConfig) GetWindows() *WindowsContainerConfig {
  4499. if m != nil {
  4500. return m.Windows
  4501. }
  4502. return nil
  4503. }
  4504. func (m *ContainerConfig) GetCDIDevices() []*CDIDevice {
  4505. if m != nil {
  4506. return m.CDIDevices
  4507. }
  4508. return nil
  4509. }
  4510. type CreateContainerRequest struct {
  4511. // ID of the PodSandbox in which the container should be created.
  4512. PodSandboxId string `protobuf:"bytes,1,opt,name=pod_sandbox_id,json=podSandboxId,proto3" json:"pod_sandbox_id,omitempty"`
  4513. // Config of the container.
  4514. Config *ContainerConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
  4515. // Config of the PodSandbox. This is the same config that was passed
  4516. // to RunPodSandboxRequest to create the PodSandbox. It is passed again
  4517. // here just for easy reference. The PodSandboxConfig is immutable and
  4518. // remains the same throughout the lifetime of the pod.
  4519. SandboxConfig *PodSandboxConfig `protobuf:"bytes,3,opt,name=sandbox_config,json=sandboxConfig,proto3" json:"sandbox_config,omitempty"`
  4520. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4521. XXX_sizecache int32 `json:"-"`
  4522. }
  4523. func (m *CreateContainerRequest) Reset() { *m = CreateContainerRequest{} }
  4524. func (*CreateContainerRequest) ProtoMessage() {}
  4525. func (*CreateContainerRequest) Descriptor() ([]byte, []int) {
  4526. return fileDescriptor_00212fb1f9d3bf1c, []int{65}
  4527. }
  4528. func (m *CreateContainerRequest) XXX_Unmarshal(b []byte) error {
  4529. return m.Unmarshal(b)
  4530. }
  4531. func (m *CreateContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4532. if deterministic {
  4533. return xxx_messageInfo_CreateContainerRequest.Marshal(b, m, deterministic)
  4534. } else {
  4535. b = b[:cap(b)]
  4536. n, err := m.MarshalToSizedBuffer(b)
  4537. if err != nil {
  4538. return nil, err
  4539. }
  4540. return b[:n], nil
  4541. }
  4542. }
  4543. func (m *CreateContainerRequest) XXX_Merge(src proto.Message) {
  4544. xxx_messageInfo_CreateContainerRequest.Merge(m, src)
  4545. }
  4546. func (m *CreateContainerRequest) XXX_Size() int {
  4547. return m.Size()
  4548. }
  4549. func (m *CreateContainerRequest) XXX_DiscardUnknown() {
  4550. xxx_messageInfo_CreateContainerRequest.DiscardUnknown(m)
  4551. }
  4552. var xxx_messageInfo_CreateContainerRequest proto.InternalMessageInfo
  4553. func (m *CreateContainerRequest) GetPodSandboxId() string {
  4554. if m != nil {
  4555. return m.PodSandboxId
  4556. }
  4557. return ""
  4558. }
  4559. func (m *CreateContainerRequest) GetConfig() *ContainerConfig {
  4560. if m != nil {
  4561. return m.Config
  4562. }
  4563. return nil
  4564. }
  4565. func (m *CreateContainerRequest) GetSandboxConfig() *PodSandboxConfig {
  4566. if m != nil {
  4567. return m.SandboxConfig
  4568. }
  4569. return nil
  4570. }
  4571. type CreateContainerResponse struct {
  4572. // ID of the created container.
  4573. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  4574. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4575. XXX_sizecache int32 `json:"-"`
  4576. }
  4577. func (m *CreateContainerResponse) Reset() { *m = CreateContainerResponse{} }
  4578. func (*CreateContainerResponse) ProtoMessage() {}
  4579. func (*CreateContainerResponse) Descriptor() ([]byte, []int) {
  4580. return fileDescriptor_00212fb1f9d3bf1c, []int{66}
  4581. }
  4582. func (m *CreateContainerResponse) XXX_Unmarshal(b []byte) error {
  4583. return m.Unmarshal(b)
  4584. }
  4585. func (m *CreateContainerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4586. if deterministic {
  4587. return xxx_messageInfo_CreateContainerResponse.Marshal(b, m, deterministic)
  4588. } else {
  4589. b = b[:cap(b)]
  4590. n, err := m.MarshalToSizedBuffer(b)
  4591. if err != nil {
  4592. return nil, err
  4593. }
  4594. return b[:n], nil
  4595. }
  4596. }
  4597. func (m *CreateContainerResponse) XXX_Merge(src proto.Message) {
  4598. xxx_messageInfo_CreateContainerResponse.Merge(m, src)
  4599. }
  4600. func (m *CreateContainerResponse) XXX_Size() int {
  4601. return m.Size()
  4602. }
  4603. func (m *CreateContainerResponse) XXX_DiscardUnknown() {
  4604. xxx_messageInfo_CreateContainerResponse.DiscardUnknown(m)
  4605. }
  4606. var xxx_messageInfo_CreateContainerResponse proto.InternalMessageInfo
  4607. func (m *CreateContainerResponse) GetContainerId() string {
  4608. if m != nil {
  4609. return m.ContainerId
  4610. }
  4611. return ""
  4612. }
  4613. type StartContainerRequest struct {
  4614. // ID of the container to start.
  4615. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  4616. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4617. XXX_sizecache int32 `json:"-"`
  4618. }
  4619. func (m *StartContainerRequest) Reset() { *m = StartContainerRequest{} }
  4620. func (*StartContainerRequest) ProtoMessage() {}
  4621. func (*StartContainerRequest) Descriptor() ([]byte, []int) {
  4622. return fileDescriptor_00212fb1f9d3bf1c, []int{67}
  4623. }
  4624. func (m *StartContainerRequest) XXX_Unmarshal(b []byte) error {
  4625. return m.Unmarshal(b)
  4626. }
  4627. func (m *StartContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4628. if deterministic {
  4629. return xxx_messageInfo_StartContainerRequest.Marshal(b, m, deterministic)
  4630. } else {
  4631. b = b[:cap(b)]
  4632. n, err := m.MarshalToSizedBuffer(b)
  4633. if err != nil {
  4634. return nil, err
  4635. }
  4636. return b[:n], nil
  4637. }
  4638. }
  4639. func (m *StartContainerRequest) XXX_Merge(src proto.Message) {
  4640. xxx_messageInfo_StartContainerRequest.Merge(m, src)
  4641. }
  4642. func (m *StartContainerRequest) XXX_Size() int {
  4643. return m.Size()
  4644. }
  4645. func (m *StartContainerRequest) XXX_DiscardUnknown() {
  4646. xxx_messageInfo_StartContainerRequest.DiscardUnknown(m)
  4647. }
  4648. var xxx_messageInfo_StartContainerRequest proto.InternalMessageInfo
  4649. func (m *StartContainerRequest) GetContainerId() string {
  4650. if m != nil {
  4651. return m.ContainerId
  4652. }
  4653. return ""
  4654. }
  4655. type StartContainerResponse struct {
  4656. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4657. XXX_sizecache int32 `json:"-"`
  4658. }
  4659. func (m *StartContainerResponse) Reset() { *m = StartContainerResponse{} }
  4660. func (*StartContainerResponse) ProtoMessage() {}
  4661. func (*StartContainerResponse) Descriptor() ([]byte, []int) {
  4662. return fileDescriptor_00212fb1f9d3bf1c, []int{68}
  4663. }
  4664. func (m *StartContainerResponse) XXX_Unmarshal(b []byte) error {
  4665. return m.Unmarshal(b)
  4666. }
  4667. func (m *StartContainerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4668. if deterministic {
  4669. return xxx_messageInfo_StartContainerResponse.Marshal(b, m, deterministic)
  4670. } else {
  4671. b = b[:cap(b)]
  4672. n, err := m.MarshalToSizedBuffer(b)
  4673. if err != nil {
  4674. return nil, err
  4675. }
  4676. return b[:n], nil
  4677. }
  4678. }
  4679. func (m *StartContainerResponse) XXX_Merge(src proto.Message) {
  4680. xxx_messageInfo_StartContainerResponse.Merge(m, src)
  4681. }
  4682. func (m *StartContainerResponse) XXX_Size() int {
  4683. return m.Size()
  4684. }
  4685. func (m *StartContainerResponse) XXX_DiscardUnknown() {
  4686. xxx_messageInfo_StartContainerResponse.DiscardUnknown(m)
  4687. }
  4688. var xxx_messageInfo_StartContainerResponse proto.InternalMessageInfo
  4689. type StopContainerRequest struct {
  4690. // ID of the container to stop.
  4691. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  4692. // Timeout in seconds to wait for the container to stop before forcibly
  4693. // terminating it. Default: 0 (forcibly terminate the container immediately)
  4694. Timeout int64 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
  4695. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4696. XXX_sizecache int32 `json:"-"`
  4697. }
  4698. func (m *StopContainerRequest) Reset() { *m = StopContainerRequest{} }
  4699. func (*StopContainerRequest) ProtoMessage() {}
  4700. func (*StopContainerRequest) Descriptor() ([]byte, []int) {
  4701. return fileDescriptor_00212fb1f9d3bf1c, []int{69}
  4702. }
  4703. func (m *StopContainerRequest) XXX_Unmarshal(b []byte) error {
  4704. return m.Unmarshal(b)
  4705. }
  4706. func (m *StopContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4707. if deterministic {
  4708. return xxx_messageInfo_StopContainerRequest.Marshal(b, m, deterministic)
  4709. } else {
  4710. b = b[:cap(b)]
  4711. n, err := m.MarshalToSizedBuffer(b)
  4712. if err != nil {
  4713. return nil, err
  4714. }
  4715. return b[:n], nil
  4716. }
  4717. }
  4718. func (m *StopContainerRequest) XXX_Merge(src proto.Message) {
  4719. xxx_messageInfo_StopContainerRequest.Merge(m, src)
  4720. }
  4721. func (m *StopContainerRequest) XXX_Size() int {
  4722. return m.Size()
  4723. }
  4724. func (m *StopContainerRequest) XXX_DiscardUnknown() {
  4725. xxx_messageInfo_StopContainerRequest.DiscardUnknown(m)
  4726. }
  4727. var xxx_messageInfo_StopContainerRequest proto.InternalMessageInfo
  4728. func (m *StopContainerRequest) GetContainerId() string {
  4729. if m != nil {
  4730. return m.ContainerId
  4731. }
  4732. return ""
  4733. }
  4734. func (m *StopContainerRequest) GetTimeout() int64 {
  4735. if m != nil {
  4736. return m.Timeout
  4737. }
  4738. return 0
  4739. }
  4740. type StopContainerResponse struct {
  4741. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4742. XXX_sizecache int32 `json:"-"`
  4743. }
  4744. func (m *StopContainerResponse) Reset() { *m = StopContainerResponse{} }
  4745. func (*StopContainerResponse) ProtoMessage() {}
  4746. func (*StopContainerResponse) Descriptor() ([]byte, []int) {
  4747. return fileDescriptor_00212fb1f9d3bf1c, []int{70}
  4748. }
  4749. func (m *StopContainerResponse) XXX_Unmarshal(b []byte) error {
  4750. return m.Unmarshal(b)
  4751. }
  4752. func (m *StopContainerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4753. if deterministic {
  4754. return xxx_messageInfo_StopContainerResponse.Marshal(b, m, deterministic)
  4755. } else {
  4756. b = b[:cap(b)]
  4757. n, err := m.MarshalToSizedBuffer(b)
  4758. if err != nil {
  4759. return nil, err
  4760. }
  4761. return b[:n], nil
  4762. }
  4763. }
  4764. func (m *StopContainerResponse) XXX_Merge(src proto.Message) {
  4765. xxx_messageInfo_StopContainerResponse.Merge(m, src)
  4766. }
  4767. func (m *StopContainerResponse) XXX_Size() int {
  4768. return m.Size()
  4769. }
  4770. func (m *StopContainerResponse) XXX_DiscardUnknown() {
  4771. xxx_messageInfo_StopContainerResponse.DiscardUnknown(m)
  4772. }
  4773. var xxx_messageInfo_StopContainerResponse proto.InternalMessageInfo
  4774. type RemoveContainerRequest struct {
  4775. // ID of the container to remove.
  4776. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  4777. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4778. XXX_sizecache int32 `json:"-"`
  4779. }
  4780. func (m *RemoveContainerRequest) Reset() { *m = RemoveContainerRequest{} }
  4781. func (*RemoveContainerRequest) ProtoMessage() {}
  4782. func (*RemoveContainerRequest) Descriptor() ([]byte, []int) {
  4783. return fileDescriptor_00212fb1f9d3bf1c, []int{71}
  4784. }
  4785. func (m *RemoveContainerRequest) XXX_Unmarshal(b []byte) error {
  4786. return m.Unmarshal(b)
  4787. }
  4788. func (m *RemoveContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4789. if deterministic {
  4790. return xxx_messageInfo_RemoveContainerRequest.Marshal(b, m, deterministic)
  4791. } else {
  4792. b = b[:cap(b)]
  4793. n, err := m.MarshalToSizedBuffer(b)
  4794. if err != nil {
  4795. return nil, err
  4796. }
  4797. return b[:n], nil
  4798. }
  4799. }
  4800. func (m *RemoveContainerRequest) XXX_Merge(src proto.Message) {
  4801. xxx_messageInfo_RemoveContainerRequest.Merge(m, src)
  4802. }
  4803. func (m *RemoveContainerRequest) XXX_Size() int {
  4804. return m.Size()
  4805. }
  4806. func (m *RemoveContainerRequest) XXX_DiscardUnknown() {
  4807. xxx_messageInfo_RemoveContainerRequest.DiscardUnknown(m)
  4808. }
  4809. var xxx_messageInfo_RemoveContainerRequest proto.InternalMessageInfo
  4810. func (m *RemoveContainerRequest) GetContainerId() string {
  4811. if m != nil {
  4812. return m.ContainerId
  4813. }
  4814. return ""
  4815. }
  4816. type RemoveContainerResponse struct {
  4817. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4818. XXX_sizecache int32 `json:"-"`
  4819. }
  4820. func (m *RemoveContainerResponse) Reset() { *m = RemoveContainerResponse{} }
  4821. func (*RemoveContainerResponse) ProtoMessage() {}
  4822. func (*RemoveContainerResponse) Descriptor() ([]byte, []int) {
  4823. return fileDescriptor_00212fb1f9d3bf1c, []int{72}
  4824. }
  4825. func (m *RemoveContainerResponse) XXX_Unmarshal(b []byte) error {
  4826. return m.Unmarshal(b)
  4827. }
  4828. func (m *RemoveContainerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4829. if deterministic {
  4830. return xxx_messageInfo_RemoveContainerResponse.Marshal(b, m, deterministic)
  4831. } else {
  4832. b = b[:cap(b)]
  4833. n, err := m.MarshalToSizedBuffer(b)
  4834. if err != nil {
  4835. return nil, err
  4836. }
  4837. return b[:n], nil
  4838. }
  4839. }
  4840. func (m *RemoveContainerResponse) XXX_Merge(src proto.Message) {
  4841. xxx_messageInfo_RemoveContainerResponse.Merge(m, src)
  4842. }
  4843. func (m *RemoveContainerResponse) XXX_Size() int {
  4844. return m.Size()
  4845. }
  4846. func (m *RemoveContainerResponse) XXX_DiscardUnknown() {
  4847. xxx_messageInfo_RemoveContainerResponse.DiscardUnknown(m)
  4848. }
  4849. var xxx_messageInfo_RemoveContainerResponse proto.InternalMessageInfo
  4850. // ContainerStateValue is the wrapper of ContainerState.
  4851. type ContainerStateValue struct {
  4852. // State of the container.
  4853. State ContainerState `protobuf:"varint,1,opt,name=state,proto3,enum=runtime.v1.ContainerState" json:"state,omitempty"`
  4854. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4855. XXX_sizecache int32 `json:"-"`
  4856. }
  4857. func (m *ContainerStateValue) Reset() { *m = ContainerStateValue{} }
  4858. func (*ContainerStateValue) ProtoMessage() {}
  4859. func (*ContainerStateValue) Descriptor() ([]byte, []int) {
  4860. return fileDescriptor_00212fb1f9d3bf1c, []int{73}
  4861. }
  4862. func (m *ContainerStateValue) XXX_Unmarshal(b []byte) error {
  4863. return m.Unmarshal(b)
  4864. }
  4865. func (m *ContainerStateValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4866. if deterministic {
  4867. return xxx_messageInfo_ContainerStateValue.Marshal(b, m, deterministic)
  4868. } else {
  4869. b = b[:cap(b)]
  4870. n, err := m.MarshalToSizedBuffer(b)
  4871. if err != nil {
  4872. return nil, err
  4873. }
  4874. return b[:n], nil
  4875. }
  4876. }
  4877. func (m *ContainerStateValue) XXX_Merge(src proto.Message) {
  4878. xxx_messageInfo_ContainerStateValue.Merge(m, src)
  4879. }
  4880. func (m *ContainerStateValue) XXX_Size() int {
  4881. return m.Size()
  4882. }
  4883. func (m *ContainerStateValue) XXX_DiscardUnknown() {
  4884. xxx_messageInfo_ContainerStateValue.DiscardUnknown(m)
  4885. }
  4886. var xxx_messageInfo_ContainerStateValue proto.InternalMessageInfo
  4887. func (m *ContainerStateValue) GetState() ContainerState {
  4888. if m != nil {
  4889. return m.State
  4890. }
  4891. return ContainerState_CONTAINER_CREATED
  4892. }
  4893. // ContainerFilter is used to filter containers.
  4894. // All those fields are combined with 'AND'
  4895. type ContainerFilter struct {
  4896. // ID of the container.
  4897. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  4898. // State of the container.
  4899. State *ContainerStateValue `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
  4900. // ID of the PodSandbox.
  4901. PodSandboxId string `protobuf:"bytes,3,opt,name=pod_sandbox_id,json=podSandboxId,proto3" json:"pod_sandbox_id,omitempty"`
  4902. // LabelSelector to select matches.
  4903. // Only api.MatchLabels is supported for now and the requirements
  4904. // are ANDed. MatchExpressions is not supported yet.
  4905. LabelSelector map[string]string `protobuf:"bytes,4,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  4906. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4907. XXX_sizecache int32 `json:"-"`
  4908. }
  4909. func (m *ContainerFilter) Reset() { *m = ContainerFilter{} }
  4910. func (*ContainerFilter) ProtoMessage() {}
  4911. func (*ContainerFilter) Descriptor() ([]byte, []int) {
  4912. return fileDescriptor_00212fb1f9d3bf1c, []int{74}
  4913. }
  4914. func (m *ContainerFilter) XXX_Unmarshal(b []byte) error {
  4915. return m.Unmarshal(b)
  4916. }
  4917. func (m *ContainerFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4918. if deterministic {
  4919. return xxx_messageInfo_ContainerFilter.Marshal(b, m, deterministic)
  4920. } else {
  4921. b = b[:cap(b)]
  4922. n, err := m.MarshalToSizedBuffer(b)
  4923. if err != nil {
  4924. return nil, err
  4925. }
  4926. return b[:n], nil
  4927. }
  4928. }
  4929. func (m *ContainerFilter) XXX_Merge(src proto.Message) {
  4930. xxx_messageInfo_ContainerFilter.Merge(m, src)
  4931. }
  4932. func (m *ContainerFilter) XXX_Size() int {
  4933. return m.Size()
  4934. }
  4935. func (m *ContainerFilter) XXX_DiscardUnknown() {
  4936. xxx_messageInfo_ContainerFilter.DiscardUnknown(m)
  4937. }
  4938. var xxx_messageInfo_ContainerFilter proto.InternalMessageInfo
  4939. func (m *ContainerFilter) GetId() string {
  4940. if m != nil {
  4941. return m.Id
  4942. }
  4943. return ""
  4944. }
  4945. func (m *ContainerFilter) GetState() *ContainerStateValue {
  4946. if m != nil {
  4947. return m.State
  4948. }
  4949. return nil
  4950. }
  4951. func (m *ContainerFilter) GetPodSandboxId() string {
  4952. if m != nil {
  4953. return m.PodSandboxId
  4954. }
  4955. return ""
  4956. }
  4957. func (m *ContainerFilter) GetLabelSelector() map[string]string {
  4958. if m != nil {
  4959. return m.LabelSelector
  4960. }
  4961. return nil
  4962. }
  4963. type ListContainersRequest struct {
  4964. Filter *ContainerFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
  4965. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4966. XXX_sizecache int32 `json:"-"`
  4967. }
  4968. func (m *ListContainersRequest) Reset() { *m = ListContainersRequest{} }
  4969. func (*ListContainersRequest) ProtoMessage() {}
  4970. func (*ListContainersRequest) Descriptor() ([]byte, []int) {
  4971. return fileDescriptor_00212fb1f9d3bf1c, []int{75}
  4972. }
  4973. func (m *ListContainersRequest) XXX_Unmarshal(b []byte) error {
  4974. return m.Unmarshal(b)
  4975. }
  4976. func (m *ListContainersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4977. if deterministic {
  4978. return xxx_messageInfo_ListContainersRequest.Marshal(b, m, deterministic)
  4979. } else {
  4980. b = b[:cap(b)]
  4981. n, err := m.MarshalToSizedBuffer(b)
  4982. if err != nil {
  4983. return nil, err
  4984. }
  4985. return b[:n], nil
  4986. }
  4987. }
  4988. func (m *ListContainersRequest) XXX_Merge(src proto.Message) {
  4989. xxx_messageInfo_ListContainersRequest.Merge(m, src)
  4990. }
  4991. func (m *ListContainersRequest) XXX_Size() int {
  4992. return m.Size()
  4993. }
  4994. func (m *ListContainersRequest) XXX_DiscardUnknown() {
  4995. xxx_messageInfo_ListContainersRequest.DiscardUnknown(m)
  4996. }
  4997. var xxx_messageInfo_ListContainersRequest proto.InternalMessageInfo
  4998. func (m *ListContainersRequest) GetFilter() *ContainerFilter {
  4999. if m != nil {
  5000. return m.Filter
  5001. }
  5002. return nil
  5003. }
  5004. // Container provides the runtime information for a container, such as ID, hash,
  5005. // state of the container.
  5006. type Container struct {
  5007. // ID of the container, used by the container runtime to identify
  5008. // a container.
  5009. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  5010. // ID of the sandbox to which this container belongs.
  5011. PodSandboxId string `protobuf:"bytes,2,opt,name=pod_sandbox_id,json=podSandboxId,proto3" json:"pod_sandbox_id,omitempty"`
  5012. // Metadata of the container.
  5013. Metadata *ContainerMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
  5014. // Spec of the image.
  5015. Image *ImageSpec `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
  5016. // Reference to the image in use. For most runtimes, this should be an
  5017. // image ID.
  5018. ImageRef string `protobuf:"bytes,5,opt,name=image_ref,json=imageRef,proto3" json:"image_ref,omitempty"`
  5019. // State of the container.
  5020. State ContainerState `protobuf:"varint,6,opt,name=state,proto3,enum=runtime.v1.ContainerState" json:"state,omitempty"`
  5021. // Creation time of the container in nanoseconds.
  5022. CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  5023. // Key-value pairs that may be used to scope and select individual resources.
  5024. Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  5025. // Unstructured key-value map holding arbitrary metadata.
  5026. // Annotations MUST NOT be altered by the runtime; the value of this field
  5027. // MUST be identical to that of the corresponding ContainerConfig used to
  5028. // instantiate this Container.
  5029. Annotations map[string]string `protobuf:"bytes,9,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  5030. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5031. XXX_sizecache int32 `json:"-"`
  5032. }
  5033. func (m *Container) Reset() { *m = Container{} }
  5034. func (*Container) ProtoMessage() {}
  5035. func (*Container) Descriptor() ([]byte, []int) {
  5036. return fileDescriptor_00212fb1f9d3bf1c, []int{76}
  5037. }
  5038. func (m *Container) XXX_Unmarshal(b []byte) error {
  5039. return m.Unmarshal(b)
  5040. }
  5041. func (m *Container) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5042. if deterministic {
  5043. return xxx_messageInfo_Container.Marshal(b, m, deterministic)
  5044. } else {
  5045. b = b[:cap(b)]
  5046. n, err := m.MarshalToSizedBuffer(b)
  5047. if err != nil {
  5048. return nil, err
  5049. }
  5050. return b[:n], nil
  5051. }
  5052. }
  5053. func (m *Container) XXX_Merge(src proto.Message) {
  5054. xxx_messageInfo_Container.Merge(m, src)
  5055. }
  5056. func (m *Container) XXX_Size() int {
  5057. return m.Size()
  5058. }
  5059. func (m *Container) XXX_DiscardUnknown() {
  5060. xxx_messageInfo_Container.DiscardUnknown(m)
  5061. }
  5062. var xxx_messageInfo_Container proto.InternalMessageInfo
  5063. func (m *Container) GetId() string {
  5064. if m != nil {
  5065. return m.Id
  5066. }
  5067. return ""
  5068. }
  5069. func (m *Container) GetPodSandboxId() string {
  5070. if m != nil {
  5071. return m.PodSandboxId
  5072. }
  5073. return ""
  5074. }
  5075. func (m *Container) GetMetadata() *ContainerMetadata {
  5076. if m != nil {
  5077. return m.Metadata
  5078. }
  5079. return nil
  5080. }
  5081. func (m *Container) GetImage() *ImageSpec {
  5082. if m != nil {
  5083. return m.Image
  5084. }
  5085. return nil
  5086. }
  5087. func (m *Container) GetImageRef() string {
  5088. if m != nil {
  5089. return m.ImageRef
  5090. }
  5091. return ""
  5092. }
  5093. func (m *Container) GetState() ContainerState {
  5094. if m != nil {
  5095. return m.State
  5096. }
  5097. return ContainerState_CONTAINER_CREATED
  5098. }
  5099. func (m *Container) GetCreatedAt() int64 {
  5100. if m != nil {
  5101. return m.CreatedAt
  5102. }
  5103. return 0
  5104. }
  5105. func (m *Container) GetLabels() map[string]string {
  5106. if m != nil {
  5107. return m.Labels
  5108. }
  5109. return nil
  5110. }
  5111. func (m *Container) GetAnnotations() map[string]string {
  5112. if m != nil {
  5113. return m.Annotations
  5114. }
  5115. return nil
  5116. }
  5117. type ListContainersResponse struct {
  5118. // List of containers.
  5119. Containers []*Container `protobuf:"bytes,1,rep,name=containers,proto3" json:"containers,omitempty"`
  5120. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5121. XXX_sizecache int32 `json:"-"`
  5122. }
  5123. func (m *ListContainersResponse) Reset() { *m = ListContainersResponse{} }
  5124. func (*ListContainersResponse) ProtoMessage() {}
  5125. func (*ListContainersResponse) Descriptor() ([]byte, []int) {
  5126. return fileDescriptor_00212fb1f9d3bf1c, []int{77}
  5127. }
  5128. func (m *ListContainersResponse) XXX_Unmarshal(b []byte) error {
  5129. return m.Unmarshal(b)
  5130. }
  5131. func (m *ListContainersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5132. if deterministic {
  5133. return xxx_messageInfo_ListContainersResponse.Marshal(b, m, deterministic)
  5134. } else {
  5135. b = b[:cap(b)]
  5136. n, err := m.MarshalToSizedBuffer(b)
  5137. if err != nil {
  5138. return nil, err
  5139. }
  5140. return b[:n], nil
  5141. }
  5142. }
  5143. func (m *ListContainersResponse) XXX_Merge(src proto.Message) {
  5144. xxx_messageInfo_ListContainersResponse.Merge(m, src)
  5145. }
  5146. func (m *ListContainersResponse) XXX_Size() int {
  5147. return m.Size()
  5148. }
  5149. func (m *ListContainersResponse) XXX_DiscardUnknown() {
  5150. xxx_messageInfo_ListContainersResponse.DiscardUnknown(m)
  5151. }
  5152. var xxx_messageInfo_ListContainersResponse proto.InternalMessageInfo
  5153. func (m *ListContainersResponse) GetContainers() []*Container {
  5154. if m != nil {
  5155. return m.Containers
  5156. }
  5157. return nil
  5158. }
  5159. type ContainerStatusRequest struct {
  5160. // ID of the container for which to retrieve status.
  5161. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  5162. // Verbose indicates whether to return extra information about the container.
  5163. Verbose bool `protobuf:"varint,2,opt,name=verbose,proto3" json:"verbose,omitempty"`
  5164. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5165. XXX_sizecache int32 `json:"-"`
  5166. }
  5167. func (m *ContainerStatusRequest) Reset() { *m = ContainerStatusRequest{} }
  5168. func (*ContainerStatusRequest) ProtoMessage() {}
  5169. func (*ContainerStatusRequest) Descriptor() ([]byte, []int) {
  5170. return fileDescriptor_00212fb1f9d3bf1c, []int{78}
  5171. }
  5172. func (m *ContainerStatusRequest) XXX_Unmarshal(b []byte) error {
  5173. return m.Unmarshal(b)
  5174. }
  5175. func (m *ContainerStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5176. if deterministic {
  5177. return xxx_messageInfo_ContainerStatusRequest.Marshal(b, m, deterministic)
  5178. } else {
  5179. b = b[:cap(b)]
  5180. n, err := m.MarshalToSizedBuffer(b)
  5181. if err != nil {
  5182. return nil, err
  5183. }
  5184. return b[:n], nil
  5185. }
  5186. }
  5187. func (m *ContainerStatusRequest) XXX_Merge(src proto.Message) {
  5188. xxx_messageInfo_ContainerStatusRequest.Merge(m, src)
  5189. }
  5190. func (m *ContainerStatusRequest) XXX_Size() int {
  5191. return m.Size()
  5192. }
  5193. func (m *ContainerStatusRequest) XXX_DiscardUnknown() {
  5194. xxx_messageInfo_ContainerStatusRequest.DiscardUnknown(m)
  5195. }
  5196. var xxx_messageInfo_ContainerStatusRequest proto.InternalMessageInfo
  5197. func (m *ContainerStatusRequest) GetContainerId() string {
  5198. if m != nil {
  5199. return m.ContainerId
  5200. }
  5201. return ""
  5202. }
  5203. func (m *ContainerStatusRequest) GetVerbose() bool {
  5204. if m != nil {
  5205. return m.Verbose
  5206. }
  5207. return false
  5208. }
  5209. // ContainerStatus represents the status of a container.
  5210. type ContainerStatus struct {
  5211. // ID of the container.
  5212. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  5213. // Metadata of the container.
  5214. Metadata *ContainerMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
  5215. // Status of the container.
  5216. State ContainerState `protobuf:"varint,3,opt,name=state,proto3,enum=runtime.v1.ContainerState" json:"state,omitempty"`
  5217. // Creation time of the container in nanoseconds.
  5218. CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  5219. // Start time of the container in nanoseconds. Default: 0 (not specified).
  5220. StartedAt int64 `protobuf:"varint,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
  5221. // Finish time of the container in nanoseconds. Default: 0 (not specified).
  5222. FinishedAt int64 `protobuf:"varint,6,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"`
  5223. // Exit code of the container. Only required when finished_at != 0. Default: 0.
  5224. ExitCode int32 `protobuf:"varint,7,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
  5225. // Spec of the image.
  5226. Image *ImageSpec `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"`
  5227. // Reference to the image in use. For most runtimes, this should be an
  5228. // image ID
  5229. ImageRef string `protobuf:"bytes,9,opt,name=image_ref,json=imageRef,proto3" json:"image_ref,omitempty"`
  5230. // Brief CamelCase string explaining why container is in its current state.
  5231. // Must be set to "OOMKilled" for containers terminated by cgroup-based Out-of-Memory killer.
  5232. Reason string `protobuf:"bytes,10,opt,name=reason,proto3" json:"reason,omitempty"`
  5233. // Human-readable message indicating details about why container is in its
  5234. // current state.
  5235. Message string `protobuf:"bytes,11,opt,name=message,proto3" json:"message,omitempty"`
  5236. // Key-value pairs that may be used to scope and select individual resources.
  5237. Labels map[string]string `protobuf:"bytes,12,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  5238. // Unstructured key-value map holding arbitrary metadata.
  5239. // Annotations MUST NOT be altered by the runtime; the value of this field
  5240. // MUST be identical to that of the corresponding ContainerConfig used to
  5241. // instantiate the Container this status represents.
  5242. Annotations map[string]string `protobuf:"bytes,13,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  5243. // Mounts for the container.
  5244. Mounts []*Mount `protobuf:"bytes,14,rep,name=mounts,proto3" json:"mounts,omitempty"`
  5245. // Log path of container.
  5246. LogPath string `protobuf:"bytes,15,opt,name=log_path,json=logPath,proto3" json:"log_path,omitempty"`
  5247. // Resource limits configuration of the container.
  5248. Resources *ContainerResources `protobuf:"bytes,16,opt,name=resources,proto3" json:"resources,omitempty"`
  5249. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5250. XXX_sizecache int32 `json:"-"`
  5251. }
  5252. func (m *ContainerStatus) Reset() { *m = ContainerStatus{} }
  5253. func (*ContainerStatus) ProtoMessage() {}
  5254. func (*ContainerStatus) Descriptor() ([]byte, []int) {
  5255. return fileDescriptor_00212fb1f9d3bf1c, []int{79}
  5256. }
  5257. func (m *ContainerStatus) XXX_Unmarshal(b []byte) error {
  5258. return m.Unmarshal(b)
  5259. }
  5260. func (m *ContainerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5261. if deterministic {
  5262. return xxx_messageInfo_ContainerStatus.Marshal(b, m, deterministic)
  5263. } else {
  5264. b = b[:cap(b)]
  5265. n, err := m.MarshalToSizedBuffer(b)
  5266. if err != nil {
  5267. return nil, err
  5268. }
  5269. return b[:n], nil
  5270. }
  5271. }
  5272. func (m *ContainerStatus) XXX_Merge(src proto.Message) {
  5273. xxx_messageInfo_ContainerStatus.Merge(m, src)
  5274. }
  5275. func (m *ContainerStatus) XXX_Size() int {
  5276. return m.Size()
  5277. }
  5278. func (m *ContainerStatus) XXX_DiscardUnknown() {
  5279. xxx_messageInfo_ContainerStatus.DiscardUnknown(m)
  5280. }
  5281. var xxx_messageInfo_ContainerStatus proto.InternalMessageInfo
  5282. func (m *ContainerStatus) GetId() string {
  5283. if m != nil {
  5284. return m.Id
  5285. }
  5286. return ""
  5287. }
  5288. func (m *ContainerStatus) GetMetadata() *ContainerMetadata {
  5289. if m != nil {
  5290. return m.Metadata
  5291. }
  5292. return nil
  5293. }
  5294. func (m *ContainerStatus) GetState() ContainerState {
  5295. if m != nil {
  5296. return m.State
  5297. }
  5298. return ContainerState_CONTAINER_CREATED
  5299. }
  5300. func (m *ContainerStatus) GetCreatedAt() int64 {
  5301. if m != nil {
  5302. return m.CreatedAt
  5303. }
  5304. return 0
  5305. }
  5306. func (m *ContainerStatus) GetStartedAt() int64 {
  5307. if m != nil {
  5308. return m.StartedAt
  5309. }
  5310. return 0
  5311. }
  5312. func (m *ContainerStatus) GetFinishedAt() int64 {
  5313. if m != nil {
  5314. return m.FinishedAt
  5315. }
  5316. return 0
  5317. }
  5318. func (m *ContainerStatus) GetExitCode() int32 {
  5319. if m != nil {
  5320. return m.ExitCode
  5321. }
  5322. return 0
  5323. }
  5324. func (m *ContainerStatus) GetImage() *ImageSpec {
  5325. if m != nil {
  5326. return m.Image
  5327. }
  5328. return nil
  5329. }
  5330. func (m *ContainerStatus) GetImageRef() string {
  5331. if m != nil {
  5332. return m.ImageRef
  5333. }
  5334. return ""
  5335. }
  5336. func (m *ContainerStatus) GetReason() string {
  5337. if m != nil {
  5338. return m.Reason
  5339. }
  5340. return ""
  5341. }
  5342. func (m *ContainerStatus) GetMessage() string {
  5343. if m != nil {
  5344. return m.Message
  5345. }
  5346. return ""
  5347. }
  5348. func (m *ContainerStatus) GetLabels() map[string]string {
  5349. if m != nil {
  5350. return m.Labels
  5351. }
  5352. return nil
  5353. }
  5354. func (m *ContainerStatus) GetAnnotations() map[string]string {
  5355. if m != nil {
  5356. return m.Annotations
  5357. }
  5358. return nil
  5359. }
  5360. func (m *ContainerStatus) GetMounts() []*Mount {
  5361. if m != nil {
  5362. return m.Mounts
  5363. }
  5364. return nil
  5365. }
  5366. func (m *ContainerStatus) GetLogPath() string {
  5367. if m != nil {
  5368. return m.LogPath
  5369. }
  5370. return ""
  5371. }
  5372. func (m *ContainerStatus) GetResources() *ContainerResources {
  5373. if m != nil {
  5374. return m.Resources
  5375. }
  5376. return nil
  5377. }
  5378. type ContainerStatusResponse struct {
  5379. // Status of the container.
  5380. Status *ContainerStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
  5381. // Info is extra information of the Container. The key could be arbitrary string, and
  5382. // value should be in json format. The information could include anything useful for
  5383. // debug, e.g. pid for linux container based container runtime.
  5384. // It should only be returned non-empty when Verbose is true.
  5385. Info map[string]string `protobuf:"bytes,2,rep,name=info,proto3" json:"info,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  5386. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5387. XXX_sizecache int32 `json:"-"`
  5388. }
  5389. func (m *ContainerStatusResponse) Reset() { *m = ContainerStatusResponse{} }
  5390. func (*ContainerStatusResponse) ProtoMessage() {}
  5391. func (*ContainerStatusResponse) Descriptor() ([]byte, []int) {
  5392. return fileDescriptor_00212fb1f9d3bf1c, []int{80}
  5393. }
  5394. func (m *ContainerStatusResponse) XXX_Unmarshal(b []byte) error {
  5395. return m.Unmarshal(b)
  5396. }
  5397. func (m *ContainerStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5398. if deterministic {
  5399. return xxx_messageInfo_ContainerStatusResponse.Marshal(b, m, deterministic)
  5400. } else {
  5401. b = b[:cap(b)]
  5402. n, err := m.MarshalToSizedBuffer(b)
  5403. if err != nil {
  5404. return nil, err
  5405. }
  5406. return b[:n], nil
  5407. }
  5408. }
  5409. func (m *ContainerStatusResponse) XXX_Merge(src proto.Message) {
  5410. xxx_messageInfo_ContainerStatusResponse.Merge(m, src)
  5411. }
  5412. func (m *ContainerStatusResponse) XXX_Size() int {
  5413. return m.Size()
  5414. }
  5415. func (m *ContainerStatusResponse) XXX_DiscardUnknown() {
  5416. xxx_messageInfo_ContainerStatusResponse.DiscardUnknown(m)
  5417. }
  5418. var xxx_messageInfo_ContainerStatusResponse proto.InternalMessageInfo
  5419. func (m *ContainerStatusResponse) GetStatus() *ContainerStatus {
  5420. if m != nil {
  5421. return m.Status
  5422. }
  5423. return nil
  5424. }
  5425. func (m *ContainerStatusResponse) GetInfo() map[string]string {
  5426. if m != nil {
  5427. return m.Info
  5428. }
  5429. return nil
  5430. }
  5431. // ContainerResources holds resource limits configuration for a container.
  5432. type ContainerResources struct {
  5433. // Resource limits configuration specific to Linux container.
  5434. Linux *LinuxContainerResources `protobuf:"bytes,1,opt,name=linux,proto3" json:"linux,omitempty"`
  5435. // Resource limits configuration specific to Windows container.
  5436. Windows *WindowsContainerResources `protobuf:"bytes,2,opt,name=windows,proto3" json:"windows,omitempty"`
  5437. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5438. XXX_sizecache int32 `json:"-"`
  5439. }
  5440. func (m *ContainerResources) Reset() { *m = ContainerResources{} }
  5441. func (*ContainerResources) ProtoMessage() {}
  5442. func (*ContainerResources) Descriptor() ([]byte, []int) {
  5443. return fileDescriptor_00212fb1f9d3bf1c, []int{81}
  5444. }
  5445. func (m *ContainerResources) XXX_Unmarshal(b []byte) error {
  5446. return m.Unmarshal(b)
  5447. }
  5448. func (m *ContainerResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5449. if deterministic {
  5450. return xxx_messageInfo_ContainerResources.Marshal(b, m, deterministic)
  5451. } else {
  5452. b = b[:cap(b)]
  5453. n, err := m.MarshalToSizedBuffer(b)
  5454. if err != nil {
  5455. return nil, err
  5456. }
  5457. return b[:n], nil
  5458. }
  5459. }
  5460. func (m *ContainerResources) XXX_Merge(src proto.Message) {
  5461. xxx_messageInfo_ContainerResources.Merge(m, src)
  5462. }
  5463. func (m *ContainerResources) XXX_Size() int {
  5464. return m.Size()
  5465. }
  5466. func (m *ContainerResources) XXX_DiscardUnknown() {
  5467. xxx_messageInfo_ContainerResources.DiscardUnknown(m)
  5468. }
  5469. var xxx_messageInfo_ContainerResources proto.InternalMessageInfo
  5470. func (m *ContainerResources) GetLinux() *LinuxContainerResources {
  5471. if m != nil {
  5472. return m.Linux
  5473. }
  5474. return nil
  5475. }
  5476. func (m *ContainerResources) GetWindows() *WindowsContainerResources {
  5477. if m != nil {
  5478. return m.Windows
  5479. }
  5480. return nil
  5481. }
  5482. type UpdateContainerResourcesRequest struct {
  5483. // ID of the container to update.
  5484. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  5485. // Resource configuration specific to Linux containers.
  5486. Linux *LinuxContainerResources `protobuf:"bytes,2,opt,name=linux,proto3" json:"linux,omitempty"`
  5487. // Resource configuration specific to Windows containers.
  5488. Windows *WindowsContainerResources `protobuf:"bytes,3,opt,name=windows,proto3" json:"windows,omitempty"`
  5489. // Unstructured key-value map holding arbitrary additional information for
  5490. // container resources updating. This can be used for specifying experimental
  5491. // resources to update or other options to use when updating the container.
  5492. Annotations map[string]string `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  5493. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5494. XXX_sizecache int32 `json:"-"`
  5495. }
  5496. func (m *UpdateContainerResourcesRequest) Reset() { *m = UpdateContainerResourcesRequest{} }
  5497. func (*UpdateContainerResourcesRequest) ProtoMessage() {}
  5498. func (*UpdateContainerResourcesRequest) Descriptor() ([]byte, []int) {
  5499. return fileDescriptor_00212fb1f9d3bf1c, []int{82}
  5500. }
  5501. func (m *UpdateContainerResourcesRequest) XXX_Unmarshal(b []byte) error {
  5502. return m.Unmarshal(b)
  5503. }
  5504. func (m *UpdateContainerResourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5505. if deterministic {
  5506. return xxx_messageInfo_UpdateContainerResourcesRequest.Marshal(b, m, deterministic)
  5507. } else {
  5508. b = b[:cap(b)]
  5509. n, err := m.MarshalToSizedBuffer(b)
  5510. if err != nil {
  5511. return nil, err
  5512. }
  5513. return b[:n], nil
  5514. }
  5515. }
  5516. func (m *UpdateContainerResourcesRequest) XXX_Merge(src proto.Message) {
  5517. xxx_messageInfo_UpdateContainerResourcesRequest.Merge(m, src)
  5518. }
  5519. func (m *UpdateContainerResourcesRequest) XXX_Size() int {
  5520. return m.Size()
  5521. }
  5522. func (m *UpdateContainerResourcesRequest) XXX_DiscardUnknown() {
  5523. xxx_messageInfo_UpdateContainerResourcesRequest.DiscardUnknown(m)
  5524. }
  5525. var xxx_messageInfo_UpdateContainerResourcesRequest proto.InternalMessageInfo
  5526. func (m *UpdateContainerResourcesRequest) GetContainerId() string {
  5527. if m != nil {
  5528. return m.ContainerId
  5529. }
  5530. return ""
  5531. }
  5532. func (m *UpdateContainerResourcesRequest) GetLinux() *LinuxContainerResources {
  5533. if m != nil {
  5534. return m.Linux
  5535. }
  5536. return nil
  5537. }
  5538. func (m *UpdateContainerResourcesRequest) GetWindows() *WindowsContainerResources {
  5539. if m != nil {
  5540. return m.Windows
  5541. }
  5542. return nil
  5543. }
  5544. func (m *UpdateContainerResourcesRequest) GetAnnotations() map[string]string {
  5545. if m != nil {
  5546. return m.Annotations
  5547. }
  5548. return nil
  5549. }
  5550. type UpdateContainerResourcesResponse struct {
  5551. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5552. XXX_sizecache int32 `json:"-"`
  5553. }
  5554. func (m *UpdateContainerResourcesResponse) Reset() { *m = UpdateContainerResourcesResponse{} }
  5555. func (*UpdateContainerResourcesResponse) ProtoMessage() {}
  5556. func (*UpdateContainerResourcesResponse) Descriptor() ([]byte, []int) {
  5557. return fileDescriptor_00212fb1f9d3bf1c, []int{83}
  5558. }
  5559. func (m *UpdateContainerResourcesResponse) XXX_Unmarshal(b []byte) error {
  5560. return m.Unmarshal(b)
  5561. }
  5562. func (m *UpdateContainerResourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5563. if deterministic {
  5564. return xxx_messageInfo_UpdateContainerResourcesResponse.Marshal(b, m, deterministic)
  5565. } else {
  5566. b = b[:cap(b)]
  5567. n, err := m.MarshalToSizedBuffer(b)
  5568. if err != nil {
  5569. return nil, err
  5570. }
  5571. return b[:n], nil
  5572. }
  5573. }
  5574. func (m *UpdateContainerResourcesResponse) XXX_Merge(src proto.Message) {
  5575. xxx_messageInfo_UpdateContainerResourcesResponse.Merge(m, src)
  5576. }
  5577. func (m *UpdateContainerResourcesResponse) XXX_Size() int {
  5578. return m.Size()
  5579. }
  5580. func (m *UpdateContainerResourcesResponse) XXX_DiscardUnknown() {
  5581. xxx_messageInfo_UpdateContainerResourcesResponse.DiscardUnknown(m)
  5582. }
  5583. var xxx_messageInfo_UpdateContainerResourcesResponse proto.InternalMessageInfo
  5584. type ExecSyncRequest struct {
  5585. // ID of the container.
  5586. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  5587. // Command to execute.
  5588. Cmd []string `protobuf:"bytes,2,rep,name=cmd,proto3" json:"cmd,omitempty"`
  5589. // Timeout in seconds to stop the command. Default: 0 (run forever).
  5590. Timeout int64 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
  5591. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5592. XXX_sizecache int32 `json:"-"`
  5593. }
  5594. func (m *ExecSyncRequest) Reset() { *m = ExecSyncRequest{} }
  5595. func (*ExecSyncRequest) ProtoMessage() {}
  5596. func (*ExecSyncRequest) Descriptor() ([]byte, []int) {
  5597. return fileDescriptor_00212fb1f9d3bf1c, []int{84}
  5598. }
  5599. func (m *ExecSyncRequest) XXX_Unmarshal(b []byte) error {
  5600. return m.Unmarshal(b)
  5601. }
  5602. func (m *ExecSyncRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5603. if deterministic {
  5604. return xxx_messageInfo_ExecSyncRequest.Marshal(b, m, deterministic)
  5605. } else {
  5606. b = b[:cap(b)]
  5607. n, err := m.MarshalToSizedBuffer(b)
  5608. if err != nil {
  5609. return nil, err
  5610. }
  5611. return b[:n], nil
  5612. }
  5613. }
  5614. func (m *ExecSyncRequest) XXX_Merge(src proto.Message) {
  5615. xxx_messageInfo_ExecSyncRequest.Merge(m, src)
  5616. }
  5617. func (m *ExecSyncRequest) XXX_Size() int {
  5618. return m.Size()
  5619. }
  5620. func (m *ExecSyncRequest) XXX_DiscardUnknown() {
  5621. xxx_messageInfo_ExecSyncRequest.DiscardUnknown(m)
  5622. }
  5623. var xxx_messageInfo_ExecSyncRequest proto.InternalMessageInfo
  5624. func (m *ExecSyncRequest) GetContainerId() string {
  5625. if m != nil {
  5626. return m.ContainerId
  5627. }
  5628. return ""
  5629. }
  5630. func (m *ExecSyncRequest) GetCmd() []string {
  5631. if m != nil {
  5632. return m.Cmd
  5633. }
  5634. return nil
  5635. }
  5636. func (m *ExecSyncRequest) GetTimeout() int64 {
  5637. if m != nil {
  5638. return m.Timeout
  5639. }
  5640. return 0
  5641. }
  5642. type ExecSyncResponse struct {
  5643. // Captured command stdout output.
  5644. // The runtime should cap the output of this response to 16MB.
  5645. // If the stdout of the command produces more than 16MB, the remaining output
  5646. // should be discarded, and the command should proceed with no error.
  5647. // See CVE-2022-1708 and CVE-2022-31030 for more information.
  5648. Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"`
  5649. // Captured command stderr output.
  5650. // The runtime should cap the output of this response to 16MB.
  5651. // If the stderr of the command produces more than 16MB, the remaining output
  5652. // should be discarded, and the command should proceed with no error.
  5653. // See CVE-2022-1708 and CVE-2022-31030 for more information.
  5654. Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"`
  5655. // Exit code the command finished with. Default: 0 (success).
  5656. ExitCode int32 `protobuf:"varint,3,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
  5657. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5658. XXX_sizecache int32 `json:"-"`
  5659. }
  5660. func (m *ExecSyncResponse) Reset() { *m = ExecSyncResponse{} }
  5661. func (*ExecSyncResponse) ProtoMessage() {}
  5662. func (*ExecSyncResponse) Descriptor() ([]byte, []int) {
  5663. return fileDescriptor_00212fb1f9d3bf1c, []int{85}
  5664. }
  5665. func (m *ExecSyncResponse) XXX_Unmarshal(b []byte) error {
  5666. return m.Unmarshal(b)
  5667. }
  5668. func (m *ExecSyncResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5669. if deterministic {
  5670. return xxx_messageInfo_ExecSyncResponse.Marshal(b, m, deterministic)
  5671. } else {
  5672. b = b[:cap(b)]
  5673. n, err := m.MarshalToSizedBuffer(b)
  5674. if err != nil {
  5675. return nil, err
  5676. }
  5677. return b[:n], nil
  5678. }
  5679. }
  5680. func (m *ExecSyncResponse) XXX_Merge(src proto.Message) {
  5681. xxx_messageInfo_ExecSyncResponse.Merge(m, src)
  5682. }
  5683. func (m *ExecSyncResponse) XXX_Size() int {
  5684. return m.Size()
  5685. }
  5686. func (m *ExecSyncResponse) XXX_DiscardUnknown() {
  5687. xxx_messageInfo_ExecSyncResponse.DiscardUnknown(m)
  5688. }
  5689. var xxx_messageInfo_ExecSyncResponse proto.InternalMessageInfo
  5690. func (m *ExecSyncResponse) GetStdout() []byte {
  5691. if m != nil {
  5692. return m.Stdout
  5693. }
  5694. return nil
  5695. }
  5696. func (m *ExecSyncResponse) GetStderr() []byte {
  5697. if m != nil {
  5698. return m.Stderr
  5699. }
  5700. return nil
  5701. }
  5702. func (m *ExecSyncResponse) GetExitCode() int32 {
  5703. if m != nil {
  5704. return m.ExitCode
  5705. }
  5706. return 0
  5707. }
  5708. type ExecRequest struct {
  5709. // ID of the container in which to execute the command.
  5710. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  5711. // Command to execute.
  5712. Cmd []string `protobuf:"bytes,2,rep,name=cmd,proto3" json:"cmd,omitempty"`
  5713. // Whether to exec the command in a TTY.
  5714. Tty bool `protobuf:"varint,3,opt,name=tty,proto3" json:"tty,omitempty"`
  5715. // Whether to stream stdin.
  5716. // One of `stdin`, `stdout`, and `stderr` MUST be true.
  5717. Stdin bool `protobuf:"varint,4,opt,name=stdin,proto3" json:"stdin,omitempty"`
  5718. // Whether to stream stdout.
  5719. // One of `stdin`, `stdout`, and `stderr` MUST be true.
  5720. Stdout bool `protobuf:"varint,5,opt,name=stdout,proto3" json:"stdout,omitempty"`
  5721. // Whether to stream stderr.
  5722. // One of `stdin`, `stdout`, and `stderr` MUST be true.
  5723. // If `tty` is true, `stderr` MUST be false. Multiplexing is not supported
  5724. // in this case. The output of stdout and stderr will be combined to a
  5725. // single stream.
  5726. Stderr bool `protobuf:"varint,6,opt,name=stderr,proto3" json:"stderr,omitempty"`
  5727. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5728. XXX_sizecache int32 `json:"-"`
  5729. }
  5730. func (m *ExecRequest) Reset() { *m = ExecRequest{} }
  5731. func (*ExecRequest) ProtoMessage() {}
  5732. func (*ExecRequest) Descriptor() ([]byte, []int) {
  5733. return fileDescriptor_00212fb1f9d3bf1c, []int{86}
  5734. }
  5735. func (m *ExecRequest) XXX_Unmarshal(b []byte) error {
  5736. return m.Unmarshal(b)
  5737. }
  5738. func (m *ExecRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5739. if deterministic {
  5740. return xxx_messageInfo_ExecRequest.Marshal(b, m, deterministic)
  5741. } else {
  5742. b = b[:cap(b)]
  5743. n, err := m.MarshalToSizedBuffer(b)
  5744. if err != nil {
  5745. return nil, err
  5746. }
  5747. return b[:n], nil
  5748. }
  5749. }
  5750. func (m *ExecRequest) XXX_Merge(src proto.Message) {
  5751. xxx_messageInfo_ExecRequest.Merge(m, src)
  5752. }
  5753. func (m *ExecRequest) XXX_Size() int {
  5754. return m.Size()
  5755. }
  5756. func (m *ExecRequest) XXX_DiscardUnknown() {
  5757. xxx_messageInfo_ExecRequest.DiscardUnknown(m)
  5758. }
  5759. var xxx_messageInfo_ExecRequest proto.InternalMessageInfo
  5760. func (m *ExecRequest) GetContainerId() string {
  5761. if m != nil {
  5762. return m.ContainerId
  5763. }
  5764. return ""
  5765. }
  5766. func (m *ExecRequest) GetCmd() []string {
  5767. if m != nil {
  5768. return m.Cmd
  5769. }
  5770. return nil
  5771. }
  5772. func (m *ExecRequest) GetTty() bool {
  5773. if m != nil {
  5774. return m.Tty
  5775. }
  5776. return false
  5777. }
  5778. func (m *ExecRequest) GetStdin() bool {
  5779. if m != nil {
  5780. return m.Stdin
  5781. }
  5782. return false
  5783. }
  5784. func (m *ExecRequest) GetStdout() bool {
  5785. if m != nil {
  5786. return m.Stdout
  5787. }
  5788. return false
  5789. }
  5790. func (m *ExecRequest) GetStderr() bool {
  5791. if m != nil {
  5792. return m.Stderr
  5793. }
  5794. return false
  5795. }
  5796. type ExecResponse struct {
  5797. // Fully qualified URL of the exec streaming server.
  5798. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
  5799. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5800. XXX_sizecache int32 `json:"-"`
  5801. }
  5802. func (m *ExecResponse) Reset() { *m = ExecResponse{} }
  5803. func (*ExecResponse) ProtoMessage() {}
  5804. func (*ExecResponse) Descriptor() ([]byte, []int) {
  5805. return fileDescriptor_00212fb1f9d3bf1c, []int{87}
  5806. }
  5807. func (m *ExecResponse) XXX_Unmarshal(b []byte) error {
  5808. return m.Unmarshal(b)
  5809. }
  5810. func (m *ExecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5811. if deterministic {
  5812. return xxx_messageInfo_ExecResponse.Marshal(b, m, deterministic)
  5813. } else {
  5814. b = b[:cap(b)]
  5815. n, err := m.MarshalToSizedBuffer(b)
  5816. if err != nil {
  5817. return nil, err
  5818. }
  5819. return b[:n], nil
  5820. }
  5821. }
  5822. func (m *ExecResponse) XXX_Merge(src proto.Message) {
  5823. xxx_messageInfo_ExecResponse.Merge(m, src)
  5824. }
  5825. func (m *ExecResponse) XXX_Size() int {
  5826. return m.Size()
  5827. }
  5828. func (m *ExecResponse) XXX_DiscardUnknown() {
  5829. xxx_messageInfo_ExecResponse.DiscardUnknown(m)
  5830. }
  5831. var xxx_messageInfo_ExecResponse proto.InternalMessageInfo
  5832. func (m *ExecResponse) GetUrl() string {
  5833. if m != nil {
  5834. return m.Url
  5835. }
  5836. return ""
  5837. }
  5838. type AttachRequest struct {
  5839. // ID of the container to which to attach.
  5840. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  5841. // Whether to stream stdin.
  5842. // One of `stdin`, `stdout`, and `stderr` MUST be true.
  5843. Stdin bool `protobuf:"varint,2,opt,name=stdin,proto3" json:"stdin,omitempty"`
  5844. // Whether the process being attached is running in a TTY.
  5845. // This must match the TTY setting in the ContainerConfig.
  5846. Tty bool `protobuf:"varint,3,opt,name=tty,proto3" json:"tty,omitempty"`
  5847. // Whether to stream stdout.
  5848. // One of `stdin`, `stdout`, and `stderr` MUST be true.
  5849. Stdout bool `protobuf:"varint,4,opt,name=stdout,proto3" json:"stdout,omitempty"`
  5850. // Whether to stream stderr.
  5851. // One of `stdin`, `stdout`, and `stderr` MUST be true.
  5852. // If `tty` is true, `stderr` MUST be false. Multiplexing is not supported
  5853. // in this case. The output of stdout and stderr will be combined to a
  5854. // single stream.
  5855. Stderr bool `protobuf:"varint,5,opt,name=stderr,proto3" json:"stderr,omitempty"`
  5856. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5857. XXX_sizecache int32 `json:"-"`
  5858. }
  5859. func (m *AttachRequest) Reset() { *m = AttachRequest{} }
  5860. func (*AttachRequest) ProtoMessage() {}
  5861. func (*AttachRequest) Descriptor() ([]byte, []int) {
  5862. return fileDescriptor_00212fb1f9d3bf1c, []int{88}
  5863. }
  5864. func (m *AttachRequest) XXX_Unmarshal(b []byte) error {
  5865. return m.Unmarshal(b)
  5866. }
  5867. func (m *AttachRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5868. if deterministic {
  5869. return xxx_messageInfo_AttachRequest.Marshal(b, m, deterministic)
  5870. } else {
  5871. b = b[:cap(b)]
  5872. n, err := m.MarshalToSizedBuffer(b)
  5873. if err != nil {
  5874. return nil, err
  5875. }
  5876. return b[:n], nil
  5877. }
  5878. }
  5879. func (m *AttachRequest) XXX_Merge(src proto.Message) {
  5880. xxx_messageInfo_AttachRequest.Merge(m, src)
  5881. }
  5882. func (m *AttachRequest) XXX_Size() int {
  5883. return m.Size()
  5884. }
  5885. func (m *AttachRequest) XXX_DiscardUnknown() {
  5886. xxx_messageInfo_AttachRequest.DiscardUnknown(m)
  5887. }
  5888. var xxx_messageInfo_AttachRequest proto.InternalMessageInfo
  5889. func (m *AttachRequest) GetContainerId() string {
  5890. if m != nil {
  5891. return m.ContainerId
  5892. }
  5893. return ""
  5894. }
  5895. func (m *AttachRequest) GetStdin() bool {
  5896. if m != nil {
  5897. return m.Stdin
  5898. }
  5899. return false
  5900. }
  5901. func (m *AttachRequest) GetTty() bool {
  5902. if m != nil {
  5903. return m.Tty
  5904. }
  5905. return false
  5906. }
  5907. func (m *AttachRequest) GetStdout() bool {
  5908. if m != nil {
  5909. return m.Stdout
  5910. }
  5911. return false
  5912. }
  5913. func (m *AttachRequest) GetStderr() bool {
  5914. if m != nil {
  5915. return m.Stderr
  5916. }
  5917. return false
  5918. }
  5919. type AttachResponse struct {
  5920. // Fully qualified URL of the attach streaming server.
  5921. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
  5922. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5923. XXX_sizecache int32 `json:"-"`
  5924. }
  5925. func (m *AttachResponse) Reset() { *m = AttachResponse{} }
  5926. func (*AttachResponse) ProtoMessage() {}
  5927. func (*AttachResponse) Descriptor() ([]byte, []int) {
  5928. return fileDescriptor_00212fb1f9d3bf1c, []int{89}
  5929. }
  5930. func (m *AttachResponse) XXX_Unmarshal(b []byte) error {
  5931. return m.Unmarshal(b)
  5932. }
  5933. func (m *AttachResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5934. if deterministic {
  5935. return xxx_messageInfo_AttachResponse.Marshal(b, m, deterministic)
  5936. } else {
  5937. b = b[:cap(b)]
  5938. n, err := m.MarshalToSizedBuffer(b)
  5939. if err != nil {
  5940. return nil, err
  5941. }
  5942. return b[:n], nil
  5943. }
  5944. }
  5945. func (m *AttachResponse) XXX_Merge(src proto.Message) {
  5946. xxx_messageInfo_AttachResponse.Merge(m, src)
  5947. }
  5948. func (m *AttachResponse) XXX_Size() int {
  5949. return m.Size()
  5950. }
  5951. func (m *AttachResponse) XXX_DiscardUnknown() {
  5952. xxx_messageInfo_AttachResponse.DiscardUnknown(m)
  5953. }
  5954. var xxx_messageInfo_AttachResponse proto.InternalMessageInfo
  5955. func (m *AttachResponse) GetUrl() string {
  5956. if m != nil {
  5957. return m.Url
  5958. }
  5959. return ""
  5960. }
  5961. type PortForwardRequest struct {
  5962. // ID of the container to which to forward the port.
  5963. PodSandboxId string `protobuf:"bytes,1,opt,name=pod_sandbox_id,json=podSandboxId,proto3" json:"pod_sandbox_id,omitempty"`
  5964. // Port to forward.
  5965. Port []int32 `protobuf:"varint,2,rep,packed,name=port,proto3" json:"port,omitempty"`
  5966. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  5967. XXX_sizecache int32 `json:"-"`
  5968. }
  5969. func (m *PortForwardRequest) Reset() { *m = PortForwardRequest{} }
  5970. func (*PortForwardRequest) ProtoMessage() {}
  5971. func (*PortForwardRequest) Descriptor() ([]byte, []int) {
  5972. return fileDescriptor_00212fb1f9d3bf1c, []int{90}
  5973. }
  5974. func (m *PortForwardRequest) XXX_Unmarshal(b []byte) error {
  5975. return m.Unmarshal(b)
  5976. }
  5977. func (m *PortForwardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  5978. if deterministic {
  5979. return xxx_messageInfo_PortForwardRequest.Marshal(b, m, deterministic)
  5980. } else {
  5981. b = b[:cap(b)]
  5982. n, err := m.MarshalToSizedBuffer(b)
  5983. if err != nil {
  5984. return nil, err
  5985. }
  5986. return b[:n], nil
  5987. }
  5988. }
  5989. func (m *PortForwardRequest) XXX_Merge(src proto.Message) {
  5990. xxx_messageInfo_PortForwardRequest.Merge(m, src)
  5991. }
  5992. func (m *PortForwardRequest) XXX_Size() int {
  5993. return m.Size()
  5994. }
  5995. func (m *PortForwardRequest) XXX_DiscardUnknown() {
  5996. xxx_messageInfo_PortForwardRequest.DiscardUnknown(m)
  5997. }
  5998. var xxx_messageInfo_PortForwardRequest proto.InternalMessageInfo
  5999. func (m *PortForwardRequest) GetPodSandboxId() string {
  6000. if m != nil {
  6001. return m.PodSandboxId
  6002. }
  6003. return ""
  6004. }
  6005. func (m *PortForwardRequest) GetPort() []int32 {
  6006. if m != nil {
  6007. return m.Port
  6008. }
  6009. return nil
  6010. }
  6011. type PortForwardResponse struct {
  6012. // Fully qualified URL of the port-forward streaming server.
  6013. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
  6014. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6015. XXX_sizecache int32 `json:"-"`
  6016. }
  6017. func (m *PortForwardResponse) Reset() { *m = PortForwardResponse{} }
  6018. func (*PortForwardResponse) ProtoMessage() {}
  6019. func (*PortForwardResponse) Descriptor() ([]byte, []int) {
  6020. return fileDescriptor_00212fb1f9d3bf1c, []int{91}
  6021. }
  6022. func (m *PortForwardResponse) XXX_Unmarshal(b []byte) error {
  6023. return m.Unmarshal(b)
  6024. }
  6025. func (m *PortForwardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6026. if deterministic {
  6027. return xxx_messageInfo_PortForwardResponse.Marshal(b, m, deterministic)
  6028. } else {
  6029. b = b[:cap(b)]
  6030. n, err := m.MarshalToSizedBuffer(b)
  6031. if err != nil {
  6032. return nil, err
  6033. }
  6034. return b[:n], nil
  6035. }
  6036. }
  6037. func (m *PortForwardResponse) XXX_Merge(src proto.Message) {
  6038. xxx_messageInfo_PortForwardResponse.Merge(m, src)
  6039. }
  6040. func (m *PortForwardResponse) XXX_Size() int {
  6041. return m.Size()
  6042. }
  6043. func (m *PortForwardResponse) XXX_DiscardUnknown() {
  6044. xxx_messageInfo_PortForwardResponse.DiscardUnknown(m)
  6045. }
  6046. var xxx_messageInfo_PortForwardResponse proto.InternalMessageInfo
  6047. func (m *PortForwardResponse) GetUrl() string {
  6048. if m != nil {
  6049. return m.Url
  6050. }
  6051. return ""
  6052. }
  6053. type ImageFilter struct {
  6054. // Spec of the image.
  6055. Image *ImageSpec `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
  6056. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6057. XXX_sizecache int32 `json:"-"`
  6058. }
  6059. func (m *ImageFilter) Reset() { *m = ImageFilter{} }
  6060. func (*ImageFilter) ProtoMessage() {}
  6061. func (*ImageFilter) Descriptor() ([]byte, []int) {
  6062. return fileDescriptor_00212fb1f9d3bf1c, []int{92}
  6063. }
  6064. func (m *ImageFilter) XXX_Unmarshal(b []byte) error {
  6065. return m.Unmarshal(b)
  6066. }
  6067. func (m *ImageFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6068. if deterministic {
  6069. return xxx_messageInfo_ImageFilter.Marshal(b, m, deterministic)
  6070. } else {
  6071. b = b[:cap(b)]
  6072. n, err := m.MarshalToSizedBuffer(b)
  6073. if err != nil {
  6074. return nil, err
  6075. }
  6076. return b[:n], nil
  6077. }
  6078. }
  6079. func (m *ImageFilter) XXX_Merge(src proto.Message) {
  6080. xxx_messageInfo_ImageFilter.Merge(m, src)
  6081. }
  6082. func (m *ImageFilter) XXX_Size() int {
  6083. return m.Size()
  6084. }
  6085. func (m *ImageFilter) XXX_DiscardUnknown() {
  6086. xxx_messageInfo_ImageFilter.DiscardUnknown(m)
  6087. }
  6088. var xxx_messageInfo_ImageFilter proto.InternalMessageInfo
  6089. func (m *ImageFilter) GetImage() *ImageSpec {
  6090. if m != nil {
  6091. return m.Image
  6092. }
  6093. return nil
  6094. }
  6095. type ListImagesRequest struct {
  6096. // Filter to list images.
  6097. Filter *ImageFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
  6098. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6099. XXX_sizecache int32 `json:"-"`
  6100. }
  6101. func (m *ListImagesRequest) Reset() { *m = ListImagesRequest{} }
  6102. func (*ListImagesRequest) ProtoMessage() {}
  6103. func (*ListImagesRequest) Descriptor() ([]byte, []int) {
  6104. return fileDescriptor_00212fb1f9d3bf1c, []int{93}
  6105. }
  6106. func (m *ListImagesRequest) XXX_Unmarshal(b []byte) error {
  6107. return m.Unmarshal(b)
  6108. }
  6109. func (m *ListImagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6110. if deterministic {
  6111. return xxx_messageInfo_ListImagesRequest.Marshal(b, m, deterministic)
  6112. } else {
  6113. b = b[:cap(b)]
  6114. n, err := m.MarshalToSizedBuffer(b)
  6115. if err != nil {
  6116. return nil, err
  6117. }
  6118. return b[:n], nil
  6119. }
  6120. }
  6121. func (m *ListImagesRequest) XXX_Merge(src proto.Message) {
  6122. xxx_messageInfo_ListImagesRequest.Merge(m, src)
  6123. }
  6124. func (m *ListImagesRequest) XXX_Size() int {
  6125. return m.Size()
  6126. }
  6127. func (m *ListImagesRequest) XXX_DiscardUnknown() {
  6128. xxx_messageInfo_ListImagesRequest.DiscardUnknown(m)
  6129. }
  6130. var xxx_messageInfo_ListImagesRequest proto.InternalMessageInfo
  6131. func (m *ListImagesRequest) GetFilter() *ImageFilter {
  6132. if m != nil {
  6133. return m.Filter
  6134. }
  6135. return nil
  6136. }
  6137. // Basic information about a container image.
  6138. type Image struct {
  6139. // ID of the image.
  6140. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  6141. // Other names by which this image is known.
  6142. RepoTags []string `protobuf:"bytes,2,rep,name=repo_tags,json=repoTags,proto3" json:"repo_tags,omitempty"`
  6143. // Digests by which this image is known.
  6144. RepoDigests []string `protobuf:"bytes,3,rep,name=repo_digests,json=repoDigests,proto3" json:"repo_digests,omitempty"`
  6145. // Size of the image in bytes. Must be > 0.
  6146. Size_ uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
  6147. // UID that will run the command(s). This is used as a default if no user is
  6148. // specified when creating the container. UID and the following user name
  6149. // are mutually exclusive.
  6150. Uid *Int64Value `protobuf:"bytes,5,opt,name=uid,proto3" json:"uid,omitempty"`
  6151. // User name that will run the command(s). This is used if UID is not set
  6152. // and no user is specified when creating container.
  6153. Username string `protobuf:"bytes,6,opt,name=username,proto3" json:"username,omitempty"`
  6154. // ImageSpec for image which includes annotations
  6155. Spec *ImageSpec `protobuf:"bytes,7,opt,name=spec,proto3" json:"spec,omitempty"`
  6156. // Recommendation on whether this image should be exempt from garbage collection.
  6157. // It must only be treated as a recommendation -- the client can still request that the image be deleted,
  6158. // and the runtime must oblige.
  6159. Pinned bool `protobuf:"varint,8,opt,name=pinned,proto3" json:"pinned,omitempty"`
  6160. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6161. XXX_sizecache int32 `json:"-"`
  6162. }
  6163. func (m *Image) Reset() { *m = Image{} }
  6164. func (*Image) ProtoMessage() {}
  6165. func (*Image) Descriptor() ([]byte, []int) {
  6166. return fileDescriptor_00212fb1f9d3bf1c, []int{94}
  6167. }
  6168. func (m *Image) XXX_Unmarshal(b []byte) error {
  6169. return m.Unmarshal(b)
  6170. }
  6171. func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6172. if deterministic {
  6173. return xxx_messageInfo_Image.Marshal(b, m, deterministic)
  6174. } else {
  6175. b = b[:cap(b)]
  6176. n, err := m.MarshalToSizedBuffer(b)
  6177. if err != nil {
  6178. return nil, err
  6179. }
  6180. return b[:n], nil
  6181. }
  6182. }
  6183. func (m *Image) XXX_Merge(src proto.Message) {
  6184. xxx_messageInfo_Image.Merge(m, src)
  6185. }
  6186. func (m *Image) XXX_Size() int {
  6187. return m.Size()
  6188. }
  6189. func (m *Image) XXX_DiscardUnknown() {
  6190. xxx_messageInfo_Image.DiscardUnknown(m)
  6191. }
  6192. var xxx_messageInfo_Image proto.InternalMessageInfo
  6193. func (m *Image) GetId() string {
  6194. if m != nil {
  6195. return m.Id
  6196. }
  6197. return ""
  6198. }
  6199. func (m *Image) GetRepoTags() []string {
  6200. if m != nil {
  6201. return m.RepoTags
  6202. }
  6203. return nil
  6204. }
  6205. func (m *Image) GetRepoDigests() []string {
  6206. if m != nil {
  6207. return m.RepoDigests
  6208. }
  6209. return nil
  6210. }
  6211. func (m *Image) GetSize_() uint64 {
  6212. if m != nil {
  6213. return m.Size_
  6214. }
  6215. return 0
  6216. }
  6217. func (m *Image) GetUid() *Int64Value {
  6218. if m != nil {
  6219. return m.Uid
  6220. }
  6221. return nil
  6222. }
  6223. func (m *Image) GetUsername() string {
  6224. if m != nil {
  6225. return m.Username
  6226. }
  6227. return ""
  6228. }
  6229. func (m *Image) GetSpec() *ImageSpec {
  6230. if m != nil {
  6231. return m.Spec
  6232. }
  6233. return nil
  6234. }
  6235. func (m *Image) GetPinned() bool {
  6236. if m != nil {
  6237. return m.Pinned
  6238. }
  6239. return false
  6240. }
  6241. type ListImagesResponse struct {
  6242. // List of images.
  6243. Images []*Image `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"`
  6244. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6245. XXX_sizecache int32 `json:"-"`
  6246. }
  6247. func (m *ListImagesResponse) Reset() { *m = ListImagesResponse{} }
  6248. func (*ListImagesResponse) ProtoMessage() {}
  6249. func (*ListImagesResponse) Descriptor() ([]byte, []int) {
  6250. return fileDescriptor_00212fb1f9d3bf1c, []int{95}
  6251. }
  6252. func (m *ListImagesResponse) XXX_Unmarshal(b []byte) error {
  6253. return m.Unmarshal(b)
  6254. }
  6255. func (m *ListImagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6256. if deterministic {
  6257. return xxx_messageInfo_ListImagesResponse.Marshal(b, m, deterministic)
  6258. } else {
  6259. b = b[:cap(b)]
  6260. n, err := m.MarshalToSizedBuffer(b)
  6261. if err != nil {
  6262. return nil, err
  6263. }
  6264. return b[:n], nil
  6265. }
  6266. }
  6267. func (m *ListImagesResponse) XXX_Merge(src proto.Message) {
  6268. xxx_messageInfo_ListImagesResponse.Merge(m, src)
  6269. }
  6270. func (m *ListImagesResponse) XXX_Size() int {
  6271. return m.Size()
  6272. }
  6273. func (m *ListImagesResponse) XXX_DiscardUnknown() {
  6274. xxx_messageInfo_ListImagesResponse.DiscardUnknown(m)
  6275. }
  6276. var xxx_messageInfo_ListImagesResponse proto.InternalMessageInfo
  6277. func (m *ListImagesResponse) GetImages() []*Image {
  6278. if m != nil {
  6279. return m.Images
  6280. }
  6281. return nil
  6282. }
  6283. type ImageStatusRequest struct {
  6284. // Spec of the image.
  6285. Image *ImageSpec `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
  6286. // Verbose indicates whether to return extra information about the image.
  6287. Verbose bool `protobuf:"varint,2,opt,name=verbose,proto3" json:"verbose,omitempty"`
  6288. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6289. XXX_sizecache int32 `json:"-"`
  6290. }
  6291. func (m *ImageStatusRequest) Reset() { *m = ImageStatusRequest{} }
  6292. func (*ImageStatusRequest) ProtoMessage() {}
  6293. func (*ImageStatusRequest) Descriptor() ([]byte, []int) {
  6294. return fileDescriptor_00212fb1f9d3bf1c, []int{96}
  6295. }
  6296. func (m *ImageStatusRequest) XXX_Unmarshal(b []byte) error {
  6297. return m.Unmarshal(b)
  6298. }
  6299. func (m *ImageStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6300. if deterministic {
  6301. return xxx_messageInfo_ImageStatusRequest.Marshal(b, m, deterministic)
  6302. } else {
  6303. b = b[:cap(b)]
  6304. n, err := m.MarshalToSizedBuffer(b)
  6305. if err != nil {
  6306. return nil, err
  6307. }
  6308. return b[:n], nil
  6309. }
  6310. }
  6311. func (m *ImageStatusRequest) XXX_Merge(src proto.Message) {
  6312. xxx_messageInfo_ImageStatusRequest.Merge(m, src)
  6313. }
  6314. func (m *ImageStatusRequest) XXX_Size() int {
  6315. return m.Size()
  6316. }
  6317. func (m *ImageStatusRequest) XXX_DiscardUnknown() {
  6318. xxx_messageInfo_ImageStatusRequest.DiscardUnknown(m)
  6319. }
  6320. var xxx_messageInfo_ImageStatusRequest proto.InternalMessageInfo
  6321. func (m *ImageStatusRequest) GetImage() *ImageSpec {
  6322. if m != nil {
  6323. return m.Image
  6324. }
  6325. return nil
  6326. }
  6327. func (m *ImageStatusRequest) GetVerbose() bool {
  6328. if m != nil {
  6329. return m.Verbose
  6330. }
  6331. return false
  6332. }
  6333. type ImageStatusResponse struct {
  6334. // Status of the image.
  6335. Image *Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
  6336. // Info is extra information of the Image. The key could be arbitrary string, and
  6337. // value should be in json format. The information could include anything useful
  6338. // for debug, e.g. image config for oci image based container runtime.
  6339. // It should only be returned non-empty when Verbose is true.
  6340. Info map[string]string `protobuf:"bytes,2,rep,name=info,proto3" json:"info,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  6341. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6342. XXX_sizecache int32 `json:"-"`
  6343. }
  6344. func (m *ImageStatusResponse) Reset() { *m = ImageStatusResponse{} }
  6345. func (*ImageStatusResponse) ProtoMessage() {}
  6346. func (*ImageStatusResponse) Descriptor() ([]byte, []int) {
  6347. return fileDescriptor_00212fb1f9d3bf1c, []int{97}
  6348. }
  6349. func (m *ImageStatusResponse) XXX_Unmarshal(b []byte) error {
  6350. return m.Unmarshal(b)
  6351. }
  6352. func (m *ImageStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6353. if deterministic {
  6354. return xxx_messageInfo_ImageStatusResponse.Marshal(b, m, deterministic)
  6355. } else {
  6356. b = b[:cap(b)]
  6357. n, err := m.MarshalToSizedBuffer(b)
  6358. if err != nil {
  6359. return nil, err
  6360. }
  6361. return b[:n], nil
  6362. }
  6363. }
  6364. func (m *ImageStatusResponse) XXX_Merge(src proto.Message) {
  6365. xxx_messageInfo_ImageStatusResponse.Merge(m, src)
  6366. }
  6367. func (m *ImageStatusResponse) XXX_Size() int {
  6368. return m.Size()
  6369. }
  6370. func (m *ImageStatusResponse) XXX_DiscardUnknown() {
  6371. xxx_messageInfo_ImageStatusResponse.DiscardUnknown(m)
  6372. }
  6373. var xxx_messageInfo_ImageStatusResponse proto.InternalMessageInfo
  6374. func (m *ImageStatusResponse) GetImage() *Image {
  6375. if m != nil {
  6376. return m.Image
  6377. }
  6378. return nil
  6379. }
  6380. func (m *ImageStatusResponse) GetInfo() map[string]string {
  6381. if m != nil {
  6382. return m.Info
  6383. }
  6384. return nil
  6385. }
  6386. // AuthConfig contains authorization information for connecting to a registry.
  6387. type AuthConfig struct {
  6388. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  6389. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  6390. Auth string `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
  6391. ServerAddress string `protobuf:"bytes,4,opt,name=server_address,json=serverAddress,proto3" json:"server_address,omitempty"`
  6392. // IdentityToken is used to authenticate the user and get
  6393. // an access token for the registry.
  6394. IdentityToken string `protobuf:"bytes,5,opt,name=identity_token,json=identityToken,proto3" json:"identity_token,omitempty"`
  6395. // RegistryToken is a bearer token to be sent to a registry
  6396. RegistryToken string `protobuf:"bytes,6,opt,name=registry_token,json=registryToken,proto3" json:"registry_token,omitempty"`
  6397. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6398. XXX_sizecache int32 `json:"-"`
  6399. }
  6400. func (m *AuthConfig) Reset() { *m = AuthConfig{} }
  6401. func (*AuthConfig) ProtoMessage() {}
  6402. func (*AuthConfig) Descriptor() ([]byte, []int) {
  6403. return fileDescriptor_00212fb1f9d3bf1c, []int{98}
  6404. }
  6405. func (m *AuthConfig) XXX_Unmarshal(b []byte) error {
  6406. return m.Unmarshal(b)
  6407. }
  6408. func (m *AuthConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6409. if deterministic {
  6410. return xxx_messageInfo_AuthConfig.Marshal(b, m, deterministic)
  6411. } else {
  6412. b = b[:cap(b)]
  6413. n, err := m.MarshalToSizedBuffer(b)
  6414. if err != nil {
  6415. return nil, err
  6416. }
  6417. return b[:n], nil
  6418. }
  6419. }
  6420. func (m *AuthConfig) XXX_Merge(src proto.Message) {
  6421. xxx_messageInfo_AuthConfig.Merge(m, src)
  6422. }
  6423. func (m *AuthConfig) XXX_Size() int {
  6424. return m.Size()
  6425. }
  6426. func (m *AuthConfig) XXX_DiscardUnknown() {
  6427. xxx_messageInfo_AuthConfig.DiscardUnknown(m)
  6428. }
  6429. var xxx_messageInfo_AuthConfig proto.InternalMessageInfo
  6430. func (m *AuthConfig) GetUsername() string {
  6431. if m != nil {
  6432. return m.Username
  6433. }
  6434. return ""
  6435. }
  6436. func (m *AuthConfig) GetPassword() string {
  6437. if m != nil {
  6438. return m.Password
  6439. }
  6440. return ""
  6441. }
  6442. func (m *AuthConfig) GetAuth() string {
  6443. if m != nil {
  6444. return m.Auth
  6445. }
  6446. return ""
  6447. }
  6448. func (m *AuthConfig) GetServerAddress() string {
  6449. if m != nil {
  6450. return m.ServerAddress
  6451. }
  6452. return ""
  6453. }
  6454. func (m *AuthConfig) GetIdentityToken() string {
  6455. if m != nil {
  6456. return m.IdentityToken
  6457. }
  6458. return ""
  6459. }
  6460. func (m *AuthConfig) GetRegistryToken() string {
  6461. if m != nil {
  6462. return m.RegistryToken
  6463. }
  6464. return ""
  6465. }
  6466. type PullImageRequest struct {
  6467. // Spec of the image.
  6468. Image *ImageSpec `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
  6469. // Authentication configuration for pulling the image.
  6470. Auth *AuthConfig `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"`
  6471. // Config of the PodSandbox, which is used to pull image in PodSandbox context.
  6472. SandboxConfig *PodSandboxConfig `protobuf:"bytes,3,opt,name=sandbox_config,json=sandboxConfig,proto3" json:"sandbox_config,omitempty"`
  6473. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6474. XXX_sizecache int32 `json:"-"`
  6475. }
  6476. func (m *PullImageRequest) Reset() { *m = PullImageRequest{} }
  6477. func (*PullImageRequest) ProtoMessage() {}
  6478. func (*PullImageRequest) Descriptor() ([]byte, []int) {
  6479. return fileDescriptor_00212fb1f9d3bf1c, []int{99}
  6480. }
  6481. func (m *PullImageRequest) XXX_Unmarshal(b []byte) error {
  6482. return m.Unmarshal(b)
  6483. }
  6484. func (m *PullImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6485. if deterministic {
  6486. return xxx_messageInfo_PullImageRequest.Marshal(b, m, deterministic)
  6487. } else {
  6488. b = b[:cap(b)]
  6489. n, err := m.MarshalToSizedBuffer(b)
  6490. if err != nil {
  6491. return nil, err
  6492. }
  6493. return b[:n], nil
  6494. }
  6495. }
  6496. func (m *PullImageRequest) XXX_Merge(src proto.Message) {
  6497. xxx_messageInfo_PullImageRequest.Merge(m, src)
  6498. }
  6499. func (m *PullImageRequest) XXX_Size() int {
  6500. return m.Size()
  6501. }
  6502. func (m *PullImageRequest) XXX_DiscardUnknown() {
  6503. xxx_messageInfo_PullImageRequest.DiscardUnknown(m)
  6504. }
  6505. var xxx_messageInfo_PullImageRequest proto.InternalMessageInfo
  6506. func (m *PullImageRequest) GetImage() *ImageSpec {
  6507. if m != nil {
  6508. return m.Image
  6509. }
  6510. return nil
  6511. }
  6512. func (m *PullImageRequest) GetAuth() *AuthConfig {
  6513. if m != nil {
  6514. return m.Auth
  6515. }
  6516. return nil
  6517. }
  6518. func (m *PullImageRequest) GetSandboxConfig() *PodSandboxConfig {
  6519. if m != nil {
  6520. return m.SandboxConfig
  6521. }
  6522. return nil
  6523. }
  6524. type PullImageResponse struct {
  6525. // Reference to the image in use. For most runtimes, this should be an
  6526. // image ID or digest.
  6527. ImageRef string `protobuf:"bytes,1,opt,name=image_ref,json=imageRef,proto3" json:"image_ref,omitempty"`
  6528. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6529. XXX_sizecache int32 `json:"-"`
  6530. }
  6531. func (m *PullImageResponse) Reset() { *m = PullImageResponse{} }
  6532. func (*PullImageResponse) ProtoMessage() {}
  6533. func (*PullImageResponse) Descriptor() ([]byte, []int) {
  6534. return fileDescriptor_00212fb1f9d3bf1c, []int{100}
  6535. }
  6536. func (m *PullImageResponse) XXX_Unmarshal(b []byte) error {
  6537. return m.Unmarshal(b)
  6538. }
  6539. func (m *PullImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6540. if deterministic {
  6541. return xxx_messageInfo_PullImageResponse.Marshal(b, m, deterministic)
  6542. } else {
  6543. b = b[:cap(b)]
  6544. n, err := m.MarshalToSizedBuffer(b)
  6545. if err != nil {
  6546. return nil, err
  6547. }
  6548. return b[:n], nil
  6549. }
  6550. }
  6551. func (m *PullImageResponse) XXX_Merge(src proto.Message) {
  6552. xxx_messageInfo_PullImageResponse.Merge(m, src)
  6553. }
  6554. func (m *PullImageResponse) XXX_Size() int {
  6555. return m.Size()
  6556. }
  6557. func (m *PullImageResponse) XXX_DiscardUnknown() {
  6558. xxx_messageInfo_PullImageResponse.DiscardUnknown(m)
  6559. }
  6560. var xxx_messageInfo_PullImageResponse proto.InternalMessageInfo
  6561. func (m *PullImageResponse) GetImageRef() string {
  6562. if m != nil {
  6563. return m.ImageRef
  6564. }
  6565. return ""
  6566. }
  6567. type RemoveImageRequest struct {
  6568. // Spec of the image to remove.
  6569. Image *ImageSpec `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
  6570. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6571. XXX_sizecache int32 `json:"-"`
  6572. }
  6573. func (m *RemoveImageRequest) Reset() { *m = RemoveImageRequest{} }
  6574. func (*RemoveImageRequest) ProtoMessage() {}
  6575. func (*RemoveImageRequest) Descriptor() ([]byte, []int) {
  6576. return fileDescriptor_00212fb1f9d3bf1c, []int{101}
  6577. }
  6578. func (m *RemoveImageRequest) XXX_Unmarshal(b []byte) error {
  6579. return m.Unmarshal(b)
  6580. }
  6581. func (m *RemoveImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6582. if deterministic {
  6583. return xxx_messageInfo_RemoveImageRequest.Marshal(b, m, deterministic)
  6584. } else {
  6585. b = b[:cap(b)]
  6586. n, err := m.MarshalToSizedBuffer(b)
  6587. if err != nil {
  6588. return nil, err
  6589. }
  6590. return b[:n], nil
  6591. }
  6592. }
  6593. func (m *RemoveImageRequest) XXX_Merge(src proto.Message) {
  6594. xxx_messageInfo_RemoveImageRequest.Merge(m, src)
  6595. }
  6596. func (m *RemoveImageRequest) XXX_Size() int {
  6597. return m.Size()
  6598. }
  6599. func (m *RemoveImageRequest) XXX_DiscardUnknown() {
  6600. xxx_messageInfo_RemoveImageRequest.DiscardUnknown(m)
  6601. }
  6602. var xxx_messageInfo_RemoveImageRequest proto.InternalMessageInfo
  6603. func (m *RemoveImageRequest) GetImage() *ImageSpec {
  6604. if m != nil {
  6605. return m.Image
  6606. }
  6607. return nil
  6608. }
  6609. type RemoveImageResponse struct {
  6610. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6611. XXX_sizecache int32 `json:"-"`
  6612. }
  6613. func (m *RemoveImageResponse) Reset() { *m = RemoveImageResponse{} }
  6614. func (*RemoveImageResponse) ProtoMessage() {}
  6615. func (*RemoveImageResponse) Descriptor() ([]byte, []int) {
  6616. return fileDescriptor_00212fb1f9d3bf1c, []int{102}
  6617. }
  6618. func (m *RemoveImageResponse) XXX_Unmarshal(b []byte) error {
  6619. return m.Unmarshal(b)
  6620. }
  6621. func (m *RemoveImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6622. if deterministic {
  6623. return xxx_messageInfo_RemoveImageResponse.Marshal(b, m, deterministic)
  6624. } else {
  6625. b = b[:cap(b)]
  6626. n, err := m.MarshalToSizedBuffer(b)
  6627. if err != nil {
  6628. return nil, err
  6629. }
  6630. return b[:n], nil
  6631. }
  6632. }
  6633. func (m *RemoveImageResponse) XXX_Merge(src proto.Message) {
  6634. xxx_messageInfo_RemoveImageResponse.Merge(m, src)
  6635. }
  6636. func (m *RemoveImageResponse) XXX_Size() int {
  6637. return m.Size()
  6638. }
  6639. func (m *RemoveImageResponse) XXX_DiscardUnknown() {
  6640. xxx_messageInfo_RemoveImageResponse.DiscardUnknown(m)
  6641. }
  6642. var xxx_messageInfo_RemoveImageResponse proto.InternalMessageInfo
  6643. type NetworkConfig struct {
  6644. // CIDR to use for pod IP addresses. If the CIDR is empty, runtimes
  6645. // should omit it.
  6646. PodCidr string `protobuf:"bytes,1,opt,name=pod_cidr,json=podCidr,proto3" json:"pod_cidr,omitempty"`
  6647. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6648. XXX_sizecache int32 `json:"-"`
  6649. }
  6650. func (m *NetworkConfig) Reset() { *m = NetworkConfig{} }
  6651. func (*NetworkConfig) ProtoMessage() {}
  6652. func (*NetworkConfig) Descriptor() ([]byte, []int) {
  6653. return fileDescriptor_00212fb1f9d3bf1c, []int{103}
  6654. }
  6655. func (m *NetworkConfig) XXX_Unmarshal(b []byte) error {
  6656. return m.Unmarshal(b)
  6657. }
  6658. func (m *NetworkConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6659. if deterministic {
  6660. return xxx_messageInfo_NetworkConfig.Marshal(b, m, deterministic)
  6661. } else {
  6662. b = b[:cap(b)]
  6663. n, err := m.MarshalToSizedBuffer(b)
  6664. if err != nil {
  6665. return nil, err
  6666. }
  6667. return b[:n], nil
  6668. }
  6669. }
  6670. func (m *NetworkConfig) XXX_Merge(src proto.Message) {
  6671. xxx_messageInfo_NetworkConfig.Merge(m, src)
  6672. }
  6673. func (m *NetworkConfig) XXX_Size() int {
  6674. return m.Size()
  6675. }
  6676. func (m *NetworkConfig) XXX_DiscardUnknown() {
  6677. xxx_messageInfo_NetworkConfig.DiscardUnknown(m)
  6678. }
  6679. var xxx_messageInfo_NetworkConfig proto.InternalMessageInfo
  6680. func (m *NetworkConfig) GetPodCidr() string {
  6681. if m != nil {
  6682. return m.PodCidr
  6683. }
  6684. return ""
  6685. }
  6686. type RuntimeConfig struct {
  6687. NetworkConfig *NetworkConfig `protobuf:"bytes,1,opt,name=network_config,json=networkConfig,proto3" json:"network_config,omitempty"`
  6688. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6689. XXX_sizecache int32 `json:"-"`
  6690. }
  6691. func (m *RuntimeConfig) Reset() { *m = RuntimeConfig{} }
  6692. func (*RuntimeConfig) ProtoMessage() {}
  6693. func (*RuntimeConfig) Descriptor() ([]byte, []int) {
  6694. return fileDescriptor_00212fb1f9d3bf1c, []int{104}
  6695. }
  6696. func (m *RuntimeConfig) XXX_Unmarshal(b []byte) error {
  6697. return m.Unmarshal(b)
  6698. }
  6699. func (m *RuntimeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6700. if deterministic {
  6701. return xxx_messageInfo_RuntimeConfig.Marshal(b, m, deterministic)
  6702. } else {
  6703. b = b[:cap(b)]
  6704. n, err := m.MarshalToSizedBuffer(b)
  6705. if err != nil {
  6706. return nil, err
  6707. }
  6708. return b[:n], nil
  6709. }
  6710. }
  6711. func (m *RuntimeConfig) XXX_Merge(src proto.Message) {
  6712. xxx_messageInfo_RuntimeConfig.Merge(m, src)
  6713. }
  6714. func (m *RuntimeConfig) XXX_Size() int {
  6715. return m.Size()
  6716. }
  6717. func (m *RuntimeConfig) XXX_DiscardUnknown() {
  6718. xxx_messageInfo_RuntimeConfig.DiscardUnknown(m)
  6719. }
  6720. var xxx_messageInfo_RuntimeConfig proto.InternalMessageInfo
  6721. func (m *RuntimeConfig) GetNetworkConfig() *NetworkConfig {
  6722. if m != nil {
  6723. return m.NetworkConfig
  6724. }
  6725. return nil
  6726. }
  6727. type UpdateRuntimeConfigRequest struct {
  6728. RuntimeConfig *RuntimeConfig `protobuf:"bytes,1,opt,name=runtime_config,json=runtimeConfig,proto3" json:"runtime_config,omitempty"`
  6729. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6730. XXX_sizecache int32 `json:"-"`
  6731. }
  6732. func (m *UpdateRuntimeConfigRequest) Reset() { *m = UpdateRuntimeConfigRequest{} }
  6733. func (*UpdateRuntimeConfigRequest) ProtoMessage() {}
  6734. func (*UpdateRuntimeConfigRequest) Descriptor() ([]byte, []int) {
  6735. return fileDescriptor_00212fb1f9d3bf1c, []int{105}
  6736. }
  6737. func (m *UpdateRuntimeConfigRequest) XXX_Unmarshal(b []byte) error {
  6738. return m.Unmarshal(b)
  6739. }
  6740. func (m *UpdateRuntimeConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6741. if deterministic {
  6742. return xxx_messageInfo_UpdateRuntimeConfigRequest.Marshal(b, m, deterministic)
  6743. } else {
  6744. b = b[:cap(b)]
  6745. n, err := m.MarshalToSizedBuffer(b)
  6746. if err != nil {
  6747. return nil, err
  6748. }
  6749. return b[:n], nil
  6750. }
  6751. }
  6752. func (m *UpdateRuntimeConfigRequest) XXX_Merge(src proto.Message) {
  6753. xxx_messageInfo_UpdateRuntimeConfigRequest.Merge(m, src)
  6754. }
  6755. func (m *UpdateRuntimeConfigRequest) XXX_Size() int {
  6756. return m.Size()
  6757. }
  6758. func (m *UpdateRuntimeConfigRequest) XXX_DiscardUnknown() {
  6759. xxx_messageInfo_UpdateRuntimeConfigRequest.DiscardUnknown(m)
  6760. }
  6761. var xxx_messageInfo_UpdateRuntimeConfigRequest proto.InternalMessageInfo
  6762. func (m *UpdateRuntimeConfigRequest) GetRuntimeConfig() *RuntimeConfig {
  6763. if m != nil {
  6764. return m.RuntimeConfig
  6765. }
  6766. return nil
  6767. }
  6768. type UpdateRuntimeConfigResponse struct {
  6769. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6770. XXX_sizecache int32 `json:"-"`
  6771. }
  6772. func (m *UpdateRuntimeConfigResponse) Reset() { *m = UpdateRuntimeConfigResponse{} }
  6773. func (*UpdateRuntimeConfigResponse) ProtoMessage() {}
  6774. func (*UpdateRuntimeConfigResponse) Descriptor() ([]byte, []int) {
  6775. return fileDescriptor_00212fb1f9d3bf1c, []int{106}
  6776. }
  6777. func (m *UpdateRuntimeConfigResponse) XXX_Unmarshal(b []byte) error {
  6778. return m.Unmarshal(b)
  6779. }
  6780. func (m *UpdateRuntimeConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6781. if deterministic {
  6782. return xxx_messageInfo_UpdateRuntimeConfigResponse.Marshal(b, m, deterministic)
  6783. } else {
  6784. b = b[:cap(b)]
  6785. n, err := m.MarshalToSizedBuffer(b)
  6786. if err != nil {
  6787. return nil, err
  6788. }
  6789. return b[:n], nil
  6790. }
  6791. }
  6792. func (m *UpdateRuntimeConfigResponse) XXX_Merge(src proto.Message) {
  6793. xxx_messageInfo_UpdateRuntimeConfigResponse.Merge(m, src)
  6794. }
  6795. func (m *UpdateRuntimeConfigResponse) XXX_Size() int {
  6796. return m.Size()
  6797. }
  6798. func (m *UpdateRuntimeConfigResponse) XXX_DiscardUnknown() {
  6799. xxx_messageInfo_UpdateRuntimeConfigResponse.DiscardUnknown(m)
  6800. }
  6801. var xxx_messageInfo_UpdateRuntimeConfigResponse proto.InternalMessageInfo
  6802. // RuntimeCondition contains condition information for the runtime.
  6803. // There are 2 kinds of runtime conditions:
  6804. // 1. Required conditions: Conditions are required for kubelet to work
  6805. // properly. If any required condition is unmet, the node will be not ready.
  6806. // The required conditions include:
  6807. // - RuntimeReady: RuntimeReady means the runtime is up and ready to accept
  6808. // basic containers e.g. container only needs host network.
  6809. // - NetworkReady: NetworkReady means the runtime network is up and ready to
  6810. // accept containers which require container network.
  6811. //
  6812. // 2. Optional conditions: Conditions are informative to the user, but kubelet
  6813. // will not rely on. Since condition type is an arbitrary string, all conditions
  6814. // not required are optional. These conditions will be exposed to users to help
  6815. // them understand the status of the system.
  6816. type RuntimeCondition struct {
  6817. // Type of runtime condition.
  6818. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  6819. // Status of the condition, one of true/false. Default: false.
  6820. Status bool `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
  6821. // Brief CamelCase string containing reason for the condition's last transition.
  6822. Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
  6823. // Human-readable message indicating details about last transition.
  6824. Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
  6825. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6826. XXX_sizecache int32 `json:"-"`
  6827. }
  6828. func (m *RuntimeCondition) Reset() { *m = RuntimeCondition{} }
  6829. func (*RuntimeCondition) ProtoMessage() {}
  6830. func (*RuntimeCondition) Descriptor() ([]byte, []int) {
  6831. return fileDescriptor_00212fb1f9d3bf1c, []int{107}
  6832. }
  6833. func (m *RuntimeCondition) XXX_Unmarshal(b []byte) error {
  6834. return m.Unmarshal(b)
  6835. }
  6836. func (m *RuntimeCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6837. if deterministic {
  6838. return xxx_messageInfo_RuntimeCondition.Marshal(b, m, deterministic)
  6839. } else {
  6840. b = b[:cap(b)]
  6841. n, err := m.MarshalToSizedBuffer(b)
  6842. if err != nil {
  6843. return nil, err
  6844. }
  6845. return b[:n], nil
  6846. }
  6847. }
  6848. func (m *RuntimeCondition) XXX_Merge(src proto.Message) {
  6849. xxx_messageInfo_RuntimeCondition.Merge(m, src)
  6850. }
  6851. func (m *RuntimeCondition) XXX_Size() int {
  6852. return m.Size()
  6853. }
  6854. func (m *RuntimeCondition) XXX_DiscardUnknown() {
  6855. xxx_messageInfo_RuntimeCondition.DiscardUnknown(m)
  6856. }
  6857. var xxx_messageInfo_RuntimeCondition proto.InternalMessageInfo
  6858. func (m *RuntimeCondition) GetType() string {
  6859. if m != nil {
  6860. return m.Type
  6861. }
  6862. return ""
  6863. }
  6864. func (m *RuntimeCondition) GetStatus() bool {
  6865. if m != nil {
  6866. return m.Status
  6867. }
  6868. return false
  6869. }
  6870. func (m *RuntimeCondition) GetReason() string {
  6871. if m != nil {
  6872. return m.Reason
  6873. }
  6874. return ""
  6875. }
  6876. func (m *RuntimeCondition) GetMessage() string {
  6877. if m != nil {
  6878. return m.Message
  6879. }
  6880. return ""
  6881. }
  6882. // RuntimeStatus is information about the current status of the runtime.
  6883. type RuntimeStatus struct {
  6884. // List of current observed runtime conditions.
  6885. Conditions []*RuntimeCondition `protobuf:"bytes,1,rep,name=conditions,proto3" json:"conditions,omitempty"`
  6886. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6887. XXX_sizecache int32 `json:"-"`
  6888. }
  6889. func (m *RuntimeStatus) Reset() { *m = RuntimeStatus{} }
  6890. func (*RuntimeStatus) ProtoMessage() {}
  6891. func (*RuntimeStatus) Descriptor() ([]byte, []int) {
  6892. return fileDescriptor_00212fb1f9d3bf1c, []int{108}
  6893. }
  6894. func (m *RuntimeStatus) XXX_Unmarshal(b []byte) error {
  6895. return m.Unmarshal(b)
  6896. }
  6897. func (m *RuntimeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6898. if deterministic {
  6899. return xxx_messageInfo_RuntimeStatus.Marshal(b, m, deterministic)
  6900. } else {
  6901. b = b[:cap(b)]
  6902. n, err := m.MarshalToSizedBuffer(b)
  6903. if err != nil {
  6904. return nil, err
  6905. }
  6906. return b[:n], nil
  6907. }
  6908. }
  6909. func (m *RuntimeStatus) XXX_Merge(src proto.Message) {
  6910. xxx_messageInfo_RuntimeStatus.Merge(m, src)
  6911. }
  6912. func (m *RuntimeStatus) XXX_Size() int {
  6913. return m.Size()
  6914. }
  6915. func (m *RuntimeStatus) XXX_DiscardUnknown() {
  6916. xxx_messageInfo_RuntimeStatus.DiscardUnknown(m)
  6917. }
  6918. var xxx_messageInfo_RuntimeStatus proto.InternalMessageInfo
  6919. func (m *RuntimeStatus) GetConditions() []*RuntimeCondition {
  6920. if m != nil {
  6921. return m.Conditions
  6922. }
  6923. return nil
  6924. }
  6925. type StatusRequest struct {
  6926. // Verbose indicates whether to return extra information about the runtime.
  6927. Verbose bool `protobuf:"varint,1,opt,name=verbose,proto3" json:"verbose,omitempty"`
  6928. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6929. XXX_sizecache int32 `json:"-"`
  6930. }
  6931. func (m *StatusRequest) Reset() { *m = StatusRequest{} }
  6932. func (*StatusRequest) ProtoMessage() {}
  6933. func (*StatusRequest) Descriptor() ([]byte, []int) {
  6934. return fileDescriptor_00212fb1f9d3bf1c, []int{109}
  6935. }
  6936. func (m *StatusRequest) XXX_Unmarshal(b []byte) error {
  6937. return m.Unmarshal(b)
  6938. }
  6939. func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6940. if deterministic {
  6941. return xxx_messageInfo_StatusRequest.Marshal(b, m, deterministic)
  6942. } else {
  6943. b = b[:cap(b)]
  6944. n, err := m.MarshalToSizedBuffer(b)
  6945. if err != nil {
  6946. return nil, err
  6947. }
  6948. return b[:n], nil
  6949. }
  6950. }
  6951. func (m *StatusRequest) XXX_Merge(src proto.Message) {
  6952. xxx_messageInfo_StatusRequest.Merge(m, src)
  6953. }
  6954. func (m *StatusRequest) XXX_Size() int {
  6955. return m.Size()
  6956. }
  6957. func (m *StatusRequest) XXX_DiscardUnknown() {
  6958. xxx_messageInfo_StatusRequest.DiscardUnknown(m)
  6959. }
  6960. var xxx_messageInfo_StatusRequest proto.InternalMessageInfo
  6961. func (m *StatusRequest) GetVerbose() bool {
  6962. if m != nil {
  6963. return m.Verbose
  6964. }
  6965. return false
  6966. }
  6967. type StatusResponse struct {
  6968. // Status of the Runtime.
  6969. Status *RuntimeStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
  6970. // Info is extra information of the Runtime. The key could be arbitrary string, and
  6971. // value should be in json format. The information could include anything useful for
  6972. // debug, e.g. plugins used by the container runtime.
  6973. // It should only be returned non-empty when Verbose is true.
  6974. Info map[string]string `protobuf:"bytes,2,rep,name=info,proto3" json:"info,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  6975. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  6976. XXX_sizecache int32 `json:"-"`
  6977. }
  6978. func (m *StatusResponse) Reset() { *m = StatusResponse{} }
  6979. func (*StatusResponse) ProtoMessage() {}
  6980. func (*StatusResponse) Descriptor() ([]byte, []int) {
  6981. return fileDescriptor_00212fb1f9d3bf1c, []int{110}
  6982. }
  6983. func (m *StatusResponse) XXX_Unmarshal(b []byte) error {
  6984. return m.Unmarshal(b)
  6985. }
  6986. func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  6987. if deterministic {
  6988. return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic)
  6989. } else {
  6990. b = b[:cap(b)]
  6991. n, err := m.MarshalToSizedBuffer(b)
  6992. if err != nil {
  6993. return nil, err
  6994. }
  6995. return b[:n], nil
  6996. }
  6997. }
  6998. func (m *StatusResponse) XXX_Merge(src proto.Message) {
  6999. xxx_messageInfo_StatusResponse.Merge(m, src)
  7000. }
  7001. func (m *StatusResponse) XXX_Size() int {
  7002. return m.Size()
  7003. }
  7004. func (m *StatusResponse) XXX_DiscardUnknown() {
  7005. xxx_messageInfo_StatusResponse.DiscardUnknown(m)
  7006. }
  7007. var xxx_messageInfo_StatusResponse proto.InternalMessageInfo
  7008. func (m *StatusResponse) GetStatus() *RuntimeStatus {
  7009. if m != nil {
  7010. return m.Status
  7011. }
  7012. return nil
  7013. }
  7014. func (m *StatusResponse) GetInfo() map[string]string {
  7015. if m != nil {
  7016. return m.Info
  7017. }
  7018. return nil
  7019. }
  7020. type ImageFsInfoRequest struct {
  7021. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7022. XXX_sizecache int32 `json:"-"`
  7023. }
  7024. func (m *ImageFsInfoRequest) Reset() { *m = ImageFsInfoRequest{} }
  7025. func (*ImageFsInfoRequest) ProtoMessage() {}
  7026. func (*ImageFsInfoRequest) Descriptor() ([]byte, []int) {
  7027. return fileDescriptor_00212fb1f9d3bf1c, []int{111}
  7028. }
  7029. func (m *ImageFsInfoRequest) XXX_Unmarshal(b []byte) error {
  7030. return m.Unmarshal(b)
  7031. }
  7032. func (m *ImageFsInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7033. if deterministic {
  7034. return xxx_messageInfo_ImageFsInfoRequest.Marshal(b, m, deterministic)
  7035. } else {
  7036. b = b[:cap(b)]
  7037. n, err := m.MarshalToSizedBuffer(b)
  7038. if err != nil {
  7039. return nil, err
  7040. }
  7041. return b[:n], nil
  7042. }
  7043. }
  7044. func (m *ImageFsInfoRequest) XXX_Merge(src proto.Message) {
  7045. xxx_messageInfo_ImageFsInfoRequest.Merge(m, src)
  7046. }
  7047. func (m *ImageFsInfoRequest) XXX_Size() int {
  7048. return m.Size()
  7049. }
  7050. func (m *ImageFsInfoRequest) XXX_DiscardUnknown() {
  7051. xxx_messageInfo_ImageFsInfoRequest.DiscardUnknown(m)
  7052. }
  7053. var xxx_messageInfo_ImageFsInfoRequest proto.InternalMessageInfo
  7054. // UInt64Value is the wrapper of uint64.
  7055. type UInt64Value struct {
  7056. // The value.
  7057. Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
  7058. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7059. XXX_sizecache int32 `json:"-"`
  7060. }
  7061. func (m *UInt64Value) Reset() { *m = UInt64Value{} }
  7062. func (*UInt64Value) ProtoMessage() {}
  7063. func (*UInt64Value) Descriptor() ([]byte, []int) {
  7064. return fileDescriptor_00212fb1f9d3bf1c, []int{112}
  7065. }
  7066. func (m *UInt64Value) XXX_Unmarshal(b []byte) error {
  7067. return m.Unmarshal(b)
  7068. }
  7069. func (m *UInt64Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7070. if deterministic {
  7071. return xxx_messageInfo_UInt64Value.Marshal(b, m, deterministic)
  7072. } else {
  7073. b = b[:cap(b)]
  7074. n, err := m.MarshalToSizedBuffer(b)
  7075. if err != nil {
  7076. return nil, err
  7077. }
  7078. return b[:n], nil
  7079. }
  7080. }
  7081. func (m *UInt64Value) XXX_Merge(src proto.Message) {
  7082. xxx_messageInfo_UInt64Value.Merge(m, src)
  7083. }
  7084. func (m *UInt64Value) XXX_Size() int {
  7085. return m.Size()
  7086. }
  7087. func (m *UInt64Value) XXX_DiscardUnknown() {
  7088. xxx_messageInfo_UInt64Value.DiscardUnknown(m)
  7089. }
  7090. var xxx_messageInfo_UInt64Value proto.InternalMessageInfo
  7091. func (m *UInt64Value) GetValue() uint64 {
  7092. if m != nil {
  7093. return m.Value
  7094. }
  7095. return 0
  7096. }
  7097. // FilesystemIdentifier uniquely identify the filesystem.
  7098. type FilesystemIdentifier struct {
  7099. // Mountpoint of a filesystem.
  7100. Mountpoint string `protobuf:"bytes,1,opt,name=mountpoint,proto3" json:"mountpoint,omitempty"`
  7101. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7102. XXX_sizecache int32 `json:"-"`
  7103. }
  7104. func (m *FilesystemIdentifier) Reset() { *m = FilesystemIdentifier{} }
  7105. func (*FilesystemIdentifier) ProtoMessage() {}
  7106. func (*FilesystemIdentifier) Descriptor() ([]byte, []int) {
  7107. return fileDescriptor_00212fb1f9d3bf1c, []int{113}
  7108. }
  7109. func (m *FilesystemIdentifier) XXX_Unmarshal(b []byte) error {
  7110. return m.Unmarshal(b)
  7111. }
  7112. func (m *FilesystemIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7113. if deterministic {
  7114. return xxx_messageInfo_FilesystemIdentifier.Marshal(b, m, deterministic)
  7115. } else {
  7116. b = b[:cap(b)]
  7117. n, err := m.MarshalToSizedBuffer(b)
  7118. if err != nil {
  7119. return nil, err
  7120. }
  7121. return b[:n], nil
  7122. }
  7123. }
  7124. func (m *FilesystemIdentifier) XXX_Merge(src proto.Message) {
  7125. xxx_messageInfo_FilesystemIdentifier.Merge(m, src)
  7126. }
  7127. func (m *FilesystemIdentifier) XXX_Size() int {
  7128. return m.Size()
  7129. }
  7130. func (m *FilesystemIdentifier) XXX_DiscardUnknown() {
  7131. xxx_messageInfo_FilesystemIdentifier.DiscardUnknown(m)
  7132. }
  7133. var xxx_messageInfo_FilesystemIdentifier proto.InternalMessageInfo
  7134. func (m *FilesystemIdentifier) GetMountpoint() string {
  7135. if m != nil {
  7136. return m.Mountpoint
  7137. }
  7138. return ""
  7139. }
  7140. // FilesystemUsage provides the filesystem usage information.
  7141. type FilesystemUsage struct {
  7142. // Timestamp in nanoseconds at which the information were collected. Must be > 0.
  7143. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  7144. // The unique identifier of the filesystem.
  7145. FsId *FilesystemIdentifier `protobuf:"bytes,2,opt,name=fs_id,json=fsId,proto3" json:"fs_id,omitempty"`
  7146. // UsedBytes represents the bytes used for images on the filesystem.
  7147. // This may differ from the total bytes used on the filesystem and may not
  7148. // equal CapacityBytes - AvailableBytes.
  7149. UsedBytes *UInt64Value `protobuf:"bytes,3,opt,name=used_bytes,json=usedBytes,proto3" json:"used_bytes,omitempty"`
  7150. // InodesUsed represents the inodes used by the images.
  7151. // This may not equal InodesCapacity - InodesAvailable because the underlying
  7152. // filesystem may also be used for purposes other than storing images.
  7153. InodesUsed *UInt64Value `protobuf:"bytes,4,opt,name=inodes_used,json=inodesUsed,proto3" json:"inodes_used,omitempty"`
  7154. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7155. XXX_sizecache int32 `json:"-"`
  7156. }
  7157. func (m *FilesystemUsage) Reset() { *m = FilesystemUsage{} }
  7158. func (*FilesystemUsage) ProtoMessage() {}
  7159. func (*FilesystemUsage) Descriptor() ([]byte, []int) {
  7160. return fileDescriptor_00212fb1f9d3bf1c, []int{114}
  7161. }
  7162. func (m *FilesystemUsage) XXX_Unmarshal(b []byte) error {
  7163. return m.Unmarshal(b)
  7164. }
  7165. func (m *FilesystemUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7166. if deterministic {
  7167. return xxx_messageInfo_FilesystemUsage.Marshal(b, m, deterministic)
  7168. } else {
  7169. b = b[:cap(b)]
  7170. n, err := m.MarshalToSizedBuffer(b)
  7171. if err != nil {
  7172. return nil, err
  7173. }
  7174. return b[:n], nil
  7175. }
  7176. }
  7177. func (m *FilesystemUsage) XXX_Merge(src proto.Message) {
  7178. xxx_messageInfo_FilesystemUsage.Merge(m, src)
  7179. }
  7180. func (m *FilesystemUsage) XXX_Size() int {
  7181. return m.Size()
  7182. }
  7183. func (m *FilesystemUsage) XXX_DiscardUnknown() {
  7184. xxx_messageInfo_FilesystemUsage.DiscardUnknown(m)
  7185. }
  7186. var xxx_messageInfo_FilesystemUsage proto.InternalMessageInfo
  7187. func (m *FilesystemUsage) GetTimestamp() int64 {
  7188. if m != nil {
  7189. return m.Timestamp
  7190. }
  7191. return 0
  7192. }
  7193. func (m *FilesystemUsage) GetFsId() *FilesystemIdentifier {
  7194. if m != nil {
  7195. return m.FsId
  7196. }
  7197. return nil
  7198. }
  7199. func (m *FilesystemUsage) GetUsedBytes() *UInt64Value {
  7200. if m != nil {
  7201. return m.UsedBytes
  7202. }
  7203. return nil
  7204. }
  7205. func (m *FilesystemUsage) GetInodesUsed() *UInt64Value {
  7206. if m != nil {
  7207. return m.InodesUsed
  7208. }
  7209. return nil
  7210. }
  7211. // WindowsFilesystemUsage provides the filesystem usage information specific to Windows.
  7212. type WindowsFilesystemUsage struct {
  7213. // Timestamp in nanoseconds at which the information were collected. Must be > 0.
  7214. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  7215. // The unique identifier of the filesystem.
  7216. FsId *FilesystemIdentifier `protobuf:"bytes,2,opt,name=fs_id,json=fsId,proto3" json:"fs_id,omitempty"`
  7217. // UsedBytes represents the bytes used for images on the filesystem.
  7218. // This may differ from the total bytes used on the filesystem and may not
  7219. // equal CapacityBytes - AvailableBytes.
  7220. UsedBytes *UInt64Value `protobuf:"bytes,3,opt,name=used_bytes,json=usedBytes,proto3" json:"used_bytes,omitempty"`
  7221. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7222. XXX_sizecache int32 `json:"-"`
  7223. }
  7224. func (m *WindowsFilesystemUsage) Reset() { *m = WindowsFilesystemUsage{} }
  7225. func (*WindowsFilesystemUsage) ProtoMessage() {}
  7226. func (*WindowsFilesystemUsage) Descriptor() ([]byte, []int) {
  7227. return fileDescriptor_00212fb1f9d3bf1c, []int{115}
  7228. }
  7229. func (m *WindowsFilesystemUsage) XXX_Unmarshal(b []byte) error {
  7230. return m.Unmarshal(b)
  7231. }
  7232. func (m *WindowsFilesystemUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7233. if deterministic {
  7234. return xxx_messageInfo_WindowsFilesystemUsage.Marshal(b, m, deterministic)
  7235. } else {
  7236. b = b[:cap(b)]
  7237. n, err := m.MarshalToSizedBuffer(b)
  7238. if err != nil {
  7239. return nil, err
  7240. }
  7241. return b[:n], nil
  7242. }
  7243. }
  7244. func (m *WindowsFilesystemUsage) XXX_Merge(src proto.Message) {
  7245. xxx_messageInfo_WindowsFilesystemUsage.Merge(m, src)
  7246. }
  7247. func (m *WindowsFilesystemUsage) XXX_Size() int {
  7248. return m.Size()
  7249. }
  7250. func (m *WindowsFilesystemUsage) XXX_DiscardUnknown() {
  7251. xxx_messageInfo_WindowsFilesystemUsage.DiscardUnknown(m)
  7252. }
  7253. var xxx_messageInfo_WindowsFilesystemUsage proto.InternalMessageInfo
  7254. func (m *WindowsFilesystemUsage) GetTimestamp() int64 {
  7255. if m != nil {
  7256. return m.Timestamp
  7257. }
  7258. return 0
  7259. }
  7260. func (m *WindowsFilesystemUsage) GetFsId() *FilesystemIdentifier {
  7261. if m != nil {
  7262. return m.FsId
  7263. }
  7264. return nil
  7265. }
  7266. func (m *WindowsFilesystemUsage) GetUsedBytes() *UInt64Value {
  7267. if m != nil {
  7268. return m.UsedBytes
  7269. }
  7270. return nil
  7271. }
  7272. type ImageFsInfoResponse struct {
  7273. // Information of image filesystem(s).
  7274. ImageFilesystems []*FilesystemUsage `protobuf:"bytes,1,rep,name=image_filesystems,json=imageFilesystems,proto3" json:"image_filesystems,omitempty"`
  7275. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7276. XXX_sizecache int32 `json:"-"`
  7277. }
  7278. func (m *ImageFsInfoResponse) Reset() { *m = ImageFsInfoResponse{} }
  7279. func (*ImageFsInfoResponse) ProtoMessage() {}
  7280. func (*ImageFsInfoResponse) Descriptor() ([]byte, []int) {
  7281. return fileDescriptor_00212fb1f9d3bf1c, []int{116}
  7282. }
  7283. func (m *ImageFsInfoResponse) XXX_Unmarshal(b []byte) error {
  7284. return m.Unmarshal(b)
  7285. }
  7286. func (m *ImageFsInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7287. if deterministic {
  7288. return xxx_messageInfo_ImageFsInfoResponse.Marshal(b, m, deterministic)
  7289. } else {
  7290. b = b[:cap(b)]
  7291. n, err := m.MarshalToSizedBuffer(b)
  7292. if err != nil {
  7293. return nil, err
  7294. }
  7295. return b[:n], nil
  7296. }
  7297. }
  7298. func (m *ImageFsInfoResponse) XXX_Merge(src proto.Message) {
  7299. xxx_messageInfo_ImageFsInfoResponse.Merge(m, src)
  7300. }
  7301. func (m *ImageFsInfoResponse) XXX_Size() int {
  7302. return m.Size()
  7303. }
  7304. func (m *ImageFsInfoResponse) XXX_DiscardUnknown() {
  7305. xxx_messageInfo_ImageFsInfoResponse.DiscardUnknown(m)
  7306. }
  7307. var xxx_messageInfo_ImageFsInfoResponse proto.InternalMessageInfo
  7308. func (m *ImageFsInfoResponse) GetImageFilesystems() []*FilesystemUsage {
  7309. if m != nil {
  7310. return m.ImageFilesystems
  7311. }
  7312. return nil
  7313. }
  7314. type ContainerStatsRequest struct {
  7315. // ID of the container for which to retrieve stats.
  7316. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  7317. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7318. XXX_sizecache int32 `json:"-"`
  7319. }
  7320. func (m *ContainerStatsRequest) Reset() { *m = ContainerStatsRequest{} }
  7321. func (*ContainerStatsRequest) ProtoMessage() {}
  7322. func (*ContainerStatsRequest) Descriptor() ([]byte, []int) {
  7323. return fileDescriptor_00212fb1f9d3bf1c, []int{117}
  7324. }
  7325. func (m *ContainerStatsRequest) XXX_Unmarshal(b []byte) error {
  7326. return m.Unmarshal(b)
  7327. }
  7328. func (m *ContainerStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7329. if deterministic {
  7330. return xxx_messageInfo_ContainerStatsRequest.Marshal(b, m, deterministic)
  7331. } else {
  7332. b = b[:cap(b)]
  7333. n, err := m.MarshalToSizedBuffer(b)
  7334. if err != nil {
  7335. return nil, err
  7336. }
  7337. return b[:n], nil
  7338. }
  7339. }
  7340. func (m *ContainerStatsRequest) XXX_Merge(src proto.Message) {
  7341. xxx_messageInfo_ContainerStatsRequest.Merge(m, src)
  7342. }
  7343. func (m *ContainerStatsRequest) XXX_Size() int {
  7344. return m.Size()
  7345. }
  7346. func (m *ContainerStatsRequest) XXX_DiscardUnknown() {
  7347. xxx_messageInfo_ContainerStatsRequest.DiscardUnknown(m)
  7348. }
  7349. var xxx_messageInfo_ContainerStatsRequest proto.InternalMessageInfo
  7350. func (m *ContainerStatsRequest) GetContainerId() string {
  7351. if m != nil {
  7352. return m.ContainerId
  7353. }
  7354. return ""
  7355. }
  7356. type ContainerStatsResponse struct {
  7357. // Stats of the container.
  7358. Stats *ContainerStats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"`
  7359. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7360. XXX_sizecache int32 `json:"-"`
  7361. }
  7362. func (m *ContainerStatsResponse) Reset() { *m = ContainerStatsResponse{} }
  7363. func (*ContainerStatsResponse) ProtoMessage() {}
  7364. func (*ContainerStatsResponse) Descriptor() ([]byte, []int) {
  7365. return fileDescriptor_00212fb1f9d3bf1c, []int{118}
  7366. }
  7367. func (m *ContainerStatsResponse) XXX_Unmarshal(b []byte) error {
  7368. return m.Unmarshal(b)
  7369. }
  7370. func (m *ContainerStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7371. if deterministic {
  7372. return xxx_messageInfo_ContainerStatsResponse.Marshal(b, m, deterministic)
  7373. } else {
  7374. b = b[:cap(b)]
  7375. n, err := m.MarshalToSizedBuffer(b)
  7376. if err != nil {
  7377. return nil, err
  7378. }
  7379. return b[:n], nil
  7380. }
  7381. }
  7382. func (m *ContainerStatsResponse) XXX_Merge(src proto.Message) {
  7383. xxx_messageInfo_ContainerStatsResponse.Merge(m, src)
  7384. }
  7385. func (m *ContainerStatsResponse) XXX_Size() int {
  7386. return m.Size()
  7387. }
  7388. func (m *ContainerStatsResponse) XXX_DiscardUnknown() {
  7389. xxx_messageInfo_ContainerStatsResponse.DiscardUnknown(m)
  7390. }
  7391. var xxx_messageInfo_ContainerStatsResponse proto.InternalMessageInfo
  7392. func (m *ContainerStatsResponse) GetStats() *ContainerStats {
  7393. if m != nil {
  7394. return m.Stats
  7395. }
  7396. return nil
  7397. }
  7398. type ListContainerStatsRequest struct {
  7399. // Filter for the list request.
  7400. Filter *ContainerStatsFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
  7401. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7402. XXX_sizecache int32 `json:"-"`
  7403. }
  7404. func (m *ListContainerStatsRequest) Reset() { *m = ListContainerStatsRequest{} }
  7405. func (*ListContainerStatsRequest) ProtoMessage() {}
  7406. func (*ListContainerStatsRequest) Descriptor() ([]byte, []int) {
  7407. return fileDescriptor_00212fb1f9d3bf1c, []int{119}
  7408. }
  7409. func (m *ListContainerStatsRequest) XXX_Unmarshal(b []byte) error {
  7410. return m.Unmarshal(b)
  7411. }
  7412. func (m *ListContainerStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7413. if deterministic {
  7414. return xxx_messageInfo_ListContainerStatsRequest.Marshal(b, m, deterministic)
  7415. } else {
  7416. b = b[:cap(b)]
  7417. n, err := m.MarshalToSizedBuffer(b)
  7418. if err != nil {
  7419. return nil, err
  7420. }
  7421. return b[:n], nil
  7422. }
  7423. }
  7424. func (m *ListContainerStatsRequest) XXX_Merge(src proto.Message) {
  7425. xxx_messageInfo_ListContainerStatsRequest.Merge(m, src)
  7426. }
  7427. func (m *ListContainerStatsRequest) XXX_Size() int {
  7428. return m.Size()
  7429. }
  7430. func (m *ListContainerStatsRequest) XXX_DiscardUnknown() {
  7431. xxx_messageInfo_ListContainerStatsRequest.DiscardUnknown(m)
  7432. }
  7433. var xxx_messageInfo_ListContainerStatsRequest proto.InternalMessageInfo
  7434. func (m *ListContainerStatsRequest) GetFilter() *ContainerStatsFilter {
  7435. if m != nil {
  7436. return m.Filter
  7437. }
  7438. return nil
  7439. }
  7440. // ContainerStatsFilter is used to filter containers.
  7441. // All those fields are combined with 'AND'
  7442. type ContainerStatsFilter struct {
  7443. // ID of the container.
  7444. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  7445. // ID of the PodSandbox.
  7446. PodSandboxId string `protobuf:"bytes,2,opt,name=pod_sandbox_id,json=podSandboxId,proto3" json:"pod_sandbox_id,omitempty"`
  7447. // LabelSelector to select matches.
  7448. // Only api.MatchLabels is supported for now and the requirements
  7449. // are ANDed. MatchExpressions is not supported yet.
  7450. LabelSelector map[string]string `protobuf:"bytes,3,rep,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  7451. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7452. XXX_sizecache int32 `json:"-"`
  7453. }
  7454. func (m *ContainerStatsFilter) Reset() { *m = ContainerStatsFilter{} }
  7455. func (*ContainerStatsFilter) ProtoMessage() {}
  7456. func (*ContainerStatsFilter) Descriptor() ([]byte, []int) {
  7457. return fileDescriptor_00212fb1f9d3bf1c, []int{120}
  7458. }
  7459. func (m *ContainerStatsFilter) XXX_Unmarshal(b []byte) error {
  7460. return m.Unmarshal(b)
  7461. }
  7462. func (m *ContainerStatsFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7463. if deterministic {
  7464. return xxx_messageInfo_ContainerStatsFilter.Marshal(b, m, deterministic)
  7465. } else {
  7466. b = b[:cap(b)]
  7467. n, err := m.MarshalToSizedBuffer(b)
  7468. if err != nil {
  7469. return nil, err
  7470. }
  7471. return b[:n], nil
  7472. }
  7473. }
  7474. func (m *ContainerStatsFilter) XXX_Merge(src proto.Message) {
  7475. xxx_messageInfo_ContainerStatsFilter.Merge(m, src)
  7476. }
  7477. func (m *ContainerStatsFilter) XXX_Size() int {
  7478. return m.Size()
  7479. }
  7480. func (m *ContainerStatsFilter) XXX_DiscardUnknown() {
  7481. xxx_messageInfo_ContainerStatsFilter.DiscardUnknown(m)
  7482. }
  7483. var xxx_messageInfo_ContainerStatsFilter proto.InternalMessageInfo
  7484. func (m *ContainerStatsFilter) GetId() string {
  7485. if m != nil {
  7486. return m.Id
  7487. }
  7488. return ""
  7489. }
  7490. func (m *ContainerStatsFilter) GetPodSandboxId() string {
  7491. if m != nil {
  7492. return m.PodSandboxId
  7493. }
  7494. return ""
  7495. }
  7496. func (m *ContainerStatsFilter) GetLabelSelector() map[string]string {
  7497. if m != nil {
  7498. return m.LabelSelector
  7499. }
  7500. return nil
  7501. }
  7502. type ListContainerStatsResponse struct {
  7503. // Stats of the container.
  7504. Stats []*ContainerStats `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
  7505. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7506. XXX_sizecache int32 `json:"-"`
  7507. }
  7508. func (m *ListContainerStatsResponse) Reset() { *m = ListContainerStatsResponse{} }
  7509. func (*ListContainerStatsResponse) ProtoMessage() {}
  7510. func (*ListContainerStatsResponse) Descriptor() ([]byte, []int) {
  7511. return fileDescriptor_00212fb1f9d3bf1c, []int{121}
  7512. }
  7513. func (m *ListContainerStatsResponse) XXX_Unmarshal(b []byte) error {
  7514. return m.Unmarshal(b)
  7515. }
  7516. func (m *ListContainerStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7517. if deterministic {
  7518. return xxx_messageInfo_ListContainerStatsResponse.Marshal(b, m, deterministic)
  7519. } else {
  7520. b = b[:cap(b)]
  7521. n, err := m.MarshalToSizedBuffer(b)
  7522. if err != nil {
  7523. return nil, err
  7524. }
  7525. return b[:n], nil
  7526. }
  7527. }
  7528. func (m *ListContainerStatsResponse) XXX_Merge(src proto.Message) {
  7529. xxx_messageInfo_ListContainerStatsResponse.Merge(m, src)
  7530. }
  7531. func (m *ListContainerStatsResponse) XXX_Size() int {
  7532. return m.Size()
  7533. }
  7534. func (m *ListContainerStatsResponse) XXX_DiscardUnknown() {
  7535. xxx_messageInfo_ListContainerStatsResponse.DiscardUnknown(m)
  7536. }
  7537. var xxx_messageInfo_ListContainerStatsResponse proto.InternalMessageInfo
  7538. func (m *ListContainerStatsResponse) GetStats() []*ContainerStats {
  7539. if m != nil {
  7540. return m.Stats
  7541. }
  7542. return nil
  7543. }
  7544. // ContainerAttributes provides basic information of the container.
  7545. type ContainerAttributes struct {
  7546. // ID of the container.
  7547. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  7548. // Metadata of the container.
  7549. Metadata *ContainerMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
  7550. // Key-value pairs that may be used to scope and select individual resources.
  7551. Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  7552. // Unstructured key-value map holding arbitrary metadata.
  7553. // Annotations MUST NOT be altered by the runtime; the value of this field
  7554. // MUST be identical to that of the corresponding ContainerConfig used to
  7555. // instantiate the Container this status represents.
  7556. Annotations map[string]string `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  7557. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7558. XXX_sizecache int32 `json:"-"`
  7559. }
  7560. func (m *ContainerAttributes) Reset() { *m = ContainerAttributes{} }
  7561. func (*ContainerAttributes) ProtoMessage() {}
  7562. func (*ContainerAttributes) Descriptor() ([]byte, []int) {
  7563. return fileDescriptor_00212fb1f9d3bf1c, []int{122}
  7564. }
  7565. func (m *ContainerAttributes) XXX_Unmarshal(b []byte) error {
  7566. return m.Unmarshal(b)
  7567. }
  7568. func (m *ContainerAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7569. if deterministic {
  7570. return xxx_messageInfo_ContainerAttributes.Marshal(b, m, deterministic)
  7571. } else {
  7572. b = b[:cap(b)]
  7573. n, err := m.MarshalToSizedBuffer(b)
  7574. if err != nil {
  7575. return nil, err
  7576. }
  7577. return b[:n], nil
  7578. }
  7579. }
  7580. func (m *ContainerAttributes) XXX_Merge(src proto.Message) {
  7581. xxx_messageInfo_ContainerAttributes.Merge(m, src)
  7582. }
  7583. func (m *ContainerAttributes) XXX_Size() int {
  7584. return m.Size()
  7585. }
  7586. func (m *ContainerAttributes) XXX_DiscardUnknown() {
  7587. xxx_messageInfo_ContainerAttributes.DiscardUnknown(m)
  7588. }
  7589. var xxx_messageInfo_ContainerAttributes proto.InternalMessageInfo
  7590. func (m *ContainerAttributes) GetId() string {
  7591. if m != nil {
  7592. return m.Id
  7593. }
  7594. return ""
  7595. }
  7596. func (m *ContainerAttributes) GetMetadata() *ContainerMetadata {
  7597. if m != nil {
  7598. return m.Metadata
  7599. }
  7600. return nil
  7601. }
  7602. func (m *ContainerAttributes) GetLabels() map[string]string {
  7603. if m != nil {
  7604. return m.Labels
  7605. }
  7606. return nil
  7607. }
  7608. func (m *ContainerAttributes) GetAnnotations() map[string]string {
  7609. if m != nil {
  7610. return m.Annotations
  7611. }
  7612. return nil
  7613. }
  7614. // ContainerStats provides the resource usage statistics for a container.
  7615. type ContainerStats struct {
  7616. // Information of the container.
  7617. Attributes *ContainerAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"`
  7618. // CPU usage gathered from the container.
  7619. Cpu *CpuUsage `protobuf:"bytes,2,opt,name=cpu,proto3" json:"cpu,omitempty"`
  7620. // Memory usage gathered from the container.
  7621. Memory *MemoryUsage `protobuf:"bytes,3,opt,name=memory,proto3" json:"memory,omitempty"`
  7622. // Usage of the writable layer.
  7623. WritableLayer *FilesystemUsage `protobuf:"bytes,4,opt,name=writable_layer,json=writableLayer,proto3" json:"writable_layer,omitempty"`
  7624. // Swap usage gathered from the container.
  7625. Swap *SwapUsage `protobuf:"bytes,5,opt,name=swap,proto3" json:"swap,omitempty"`
  7626. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7627. XXX_sizecache int32 `json:"-"`
  7628. }
  7629. func (m *ContainerStats) Reset() { *m = ContainerStats{} }
  7630. func (*ContainerStats) ProtoMessage() {}
  7631. func (*ContainerStats) Descriptor() ([]byte, []int) {
  7632. return fileDescriptor_00212fb1f9d3bf1c, []int{123}
  7633. }
  7634. func (m *ContainerStats) XXX_Unmarshal(b []byte) error {
  7635. return m.Unmarshal(b)
  7636. }
  7637. func (m *ContainerStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7638. if deterministic {
  7639. return xxx_messageInfo_ContainerStats.Marshal(b, m, deterministic)
  7640. } else {
  7641. b = b[:cap(b)]
  7642. n, err := m.MarshalToSizedBuffer(b)
  7643. if err != nil {
  7644. return nil, err
  7645. }
  7646. return b[:n], nil
  7647. }
  7648. }
  7649. func (m *ContainerStats) XXX_Merge(src proto.Message) {
  7650. xxx_messageInfo_ContainerStats.Merge(m, src)
  7651. }
  7652. func (m *ContainerStats) XXX_Size() int {
  7653. return m.Size()
  7654. }
  7655. func (m *ContainerStats) XXX_DiscardUnknown() {
  7656. xxx_messageInfo_ContainerStats.DiscardUnknown(m)
  7657. }
  7658. var xxx_messageInfo_ContainerStats proto.InternalMessageInfo
  7659. func (m *ContainerStats) GetAttributes() *ContainerAttributes {
  7660. if m != nil {
  7661. return m.Attributes
  7662. }
  7663. return nil
  7664. }
  7665. func (m *ContainerStats) GetCpu() *CpuUsage {
  7666. if m != nil {
  7667. return m.Cpu
  7668. }
  7669. return nil
  7670. }
  7671. func (m *ContainerStats) GetMemory() *MemoryUsage {
  7672. if m != nil {
  7673. return m.Memory
  7674. }
  7675. return nil
  7676. }
  7677. func (m *ContainerStats) GetWritableLayer() *FilesystemUsage {
  7678. if m != nil {
  7679. return m.WritableLayer
  7680. }
  7681. return nil
  7682. }
  7683. func (m *ContainerStats) GetSwap() *SwapUsage {
  7684. if m != nil {
  7685. return m.Swap
  7686. }
  7687. return nil
  7688. }
  7689. // WindowsContainerStats provides the resource usage statistics for a container specific for Windows
  7690. type WindowsContainerStats struct {
  7691. // Information of the container.
  7692. Attributes *ContainerAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"`
  7693. // CPU usage gathered from the container.
  7694. Cpu *WindowsCpuUsage `protobuf:"bytes,2,opt,name=cpu,proto3" json:"cpu,omitempty"`
  7695. // Memory usage gathered from the container.
  7696. Memory *WindowsMemoryUsage `protobuf:"bytes,3,opt,name=memory,proto3" json:"memory,omitempty"`
  7697. // Usage of the writable layer.
  7698. WritableLayer *WindowsFilesystemUsage `protobuf:"bytes,4,opt,name=writable_layer,json=writableLayer,proto3" json:"writable_layer,omitempty"`
  7699. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7700. XXX_sizecache int32 `json:"-"`
  7701. }
  7702. func (m *WindowsContainerStats) Reset() { *m = WindowsContainerStats{} }
  7703. func (*WindowsContainerStats) ProtoMessage() {}
  7704. func (*WindowsContainerStats) Descriptor() ([]byte, []int) {
  7705. return fileDescriptor_00212fb1f9d3bf1c, []int{124}
  7706. }
  7707. func (m *WindowsContainerStats) XXX_Unmarshal(b []byte) error {
  7708. return m.Unmarshal(b)
  7709. }
  7710. func (m *WindowsContainerStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7711. if deterministic {
  7712. return xxx_messageInfo_WindowsContainerStats.Marshal(b, m, deterministic)
  7713. } else {
  7714. b = b[:cap(b)]
  7715. n, err := m.MarshalToSizedBuffer(b)
  7716. if err != nil {
  7717. return nil, err
  7718. }
  7719. return b[:n], nil
  7720. }
  7721. }
  7722. func (m *WindowsContainerStats) XXX_Merge(src proto.Message) {
  7723. xxx_messageInfo_WindowsContainerStats.Merge(m, src)
  7724. }
  7725. func (m *WindowsContainerStats) XXX_Size() int {
  7726. return m.Size()
  7727. }
  7728. func (m *WindowsContainerStats) XXX_DiscardUnknown() {
  7729. xxx_messageInfo_WindowsContainerStats.DiscardUnknown(m)
  7730. }
  7731. var xxx_messageInfo_WindowsContainerStats proto.InternalMessageInfo
  7732. func (m *WindowsContainerStats) GetAttributes() *ContainerAttributes {
  7733. if m != nil {
  7734. return m.Attributes
  7735. }
  7736. return nil
  7737. }
  7738. func (m *WindowsContainerStats) GetCpu() *WindowsCpuUsage {
  7739. if m != nil {
  7740. return m.Cpu
  7741. }
  7742. return nil
  7743. }
  7744. func (m *WindowsContainerStats) GetMemory() *WindowsMemoryUsage {
  7745. if m != nil {
  7746. return m.Memory
  7747. }
  7748. return nil
  7749. }
  7750. func (m *WindowsContainerStats) GetWritableLayer() *WindowsFilesystemUsage {
  7751. if m != nil {
  7752. return m.WritableLayer
  7753. }
  7754. return nil
  7755. }
  7756. // CpuUsage provides the CPU usage information.
  7757. type CpuUsage struct {
  7758. // Timestamp in nanoseconds at which the information were collected. Must be > 0.
  7759. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  7760. // Cumulative CPU usage (sum across all cores) since object creation.
  7761. UsageCoreNanoSeconds *UInt64Value `protobuf:"bytes,2,opt,name=usage_core_nano_seconds,json=usageCoreNanoSeconds,proto3" json:"usage_core_nano_seconds,omitempty"`
  7762. // Total CPU usage (sum of all cores) averaged over the sample window.
  7763. // The "core" unit can be interpreted as CPU core-nanoseconds per second.
  7764. UsageNanoCores *UInt64Value `protobuf:"bytes,3,opt,name=usage_nano_cores,json=usageNanoCores,proto3" json:"usage_nano_cores,omitempty"`
  7765. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7766. XXX_sizecache int32 `json:"-"`
  7767. }
  7768. func (m *CpuUsage) Reset() { *m = CpuUsage{} }
  7769. func (*CpuUsage) ProtoMessage() {}
  7770. func (*CpuUsage) Descriptor() ([]byte, []int) {
  7771. return fileDescriptor_00212fb1f9d3bf1c, []int{125}
  7772. }
  7773. func (m *CpuUsage) XXX_Unmarshal(b []byte) error {
  7774. return m.Unmarshal(b)
  7775. }
  7776. func (m *CpuUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7777. if deterministic {
  7778. return xxx_messageInfo_CpuUsage.Marshal(b, m, deterministic)
  7779. } else {
  7780. b = b[:cap(b)]
  7781. n, err := m.MarshalToSizedBuffer(b)
  7782. if err != nil {
  7783. return nil, err
  7784. }
  7785. return b[:n], nil
  7786. }
  7787. }
  7788. func (m *CpuUsage) XXX_Merge(src proto.Message) {
  7789. xxx_messageInfo_CpuUsage.Merge(m, src)
  7790. }
  7791. func (m *CpuUsage) XXX_Size() int {
  7792. return m.Size()
  7793. }
  7794. func (m *CpuUsage) XXX_DiscardUnknown() {
  7795. xxx_messageInfo_CpuUsage.DiscardUnknown(m)
  7796. }
  7797. var xxx_messageInfo_CpuUsage proto.InternalMessageInfo
  7798. func (m *CpuUsage) GetTimestamp() int64 {
  7799. if m != nil {
  7800. return m.Timestamp
  7801. }
  7802. return 0
  7803. }
  7804. func (m *CpuUsage) GetUsageCoreNanoSeconds() *UInt64Value {
  7805. if m != nil {
  7806. return m.UsageCoreNanoSeconds
  7807. }
  7808. return nil
  7809. }
  7810. func (m *CpuUsage) GetUsageNanoCores() *UInt64Value {
  7811. if m != nil {
  7812. return m.UsageNanoCores
  7813. }
  7814. return nil
  7815. }
  7816. // WindowsCpuUsage provides the CPU usage information specific to Windows
  7817. type WindowsCpuUsage struct {
  7818. // Timestamp in nanoseconds at which the information were collected. Must be > 0.
  7819. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  7820. // Cumulative CPU usage (sum across all cores) since object creation.
  7821. UsageCoreNanoSeconds *UInt64Value `protobuf:"bytes,2,opt,name=usage_core_nano_seconds,json=usageCoreNanoSeconds,proto3" json:"usage_core_nano_seconds,omitempty"`
  7822. // Total CPU usage (sum of all cores) averaged over the sample window.
  7823. // The "core" unit can be interpreted as CPU core-nanoseconds per second.
  7824. UsageNanoCores *UInt64Value `protobuf:"bytes,3,opt,name=usage_nano_cores,json=usageNanoCores,proto3" json:"usage_nano_cores,omitempty"`
  7825. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7826. XXX_sizecache int32 `json:"-"`
  7827. }
  7828. func (m *WindowsCpuUsage) Reset() { *m = WindowsCpuUsage{} }
  7829. func (*WindowsCpuUsage) ProtoMessage() {}
  7830. func (*WindowsCpuUsage) Descriptor() ([]byte, []int) {
  7831. return fileDescriptor_00212fb1f9d3bf1c, []int{126}
  7832. }
  7833. func (m *WindowsCpuUsage) XXX_Unmarshal(b []byte) error {
  7834. return m.Unmarshal(b)
  7835. }
  7836. func (m *WindowsCpuUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7837. if deterministic {
  7838. return xxx_messageInfo_WindowsCpuUsage.Marshal(b, m, deterministic)
  7839. } else {
  7840. b = b[:cap(b)]
  7841. n, err := m.MarshalToSizedBuffer(b)
  7842. if err != nil {
  7843. return nil, err
  7844. }
  7845. return b[:n], nil
  7846. }
  7847. }
  7848. func (m *WindowsCpuUsage) XXX_Merge(src proto.Message) {
  7849. xxx_messageInfo_WindowsCpuUsage.Merge(m, src)
  7850. }
  7851. func (m *WindowsCpuUsage) XXX_Size() int {
  7852. return m.Size()
  7853. }
  7854. func (m *WindowsCpuUsage) XXX_DiscardUnknown() {
  7855. xxx_messageInfo_WindowsCpuUsage.DiscardUnknown(m)
  7856. }
  7857. var xxx_messageInfo_WindowsCpuUsage proto.InternalMessageInfo
  7858. func (m *WindowsCpuUsage) GetTimestamp() int64 {
  7859. if m != nil {
  7860. return m.Timestamp
  7861. }
  7862. return 0
  7863. }
  7864. func (m *WindowsCpuUsage) GetUsageCoreNanoSeconds() *UInt64Value {
  7865. if m != nil {
  7866. return m.UsageCoreNanoSeconds
  7867. }
  7868. return nil
  7869. }
  7870. func (m *WindowsCpuUsage) GetUsageNanoCores() *UInt64Value {
  7871. if m != nil {
  7872. return m.UsageNanoCores
  7873. }
  7874. return nil
  7875. }
  7876. // MemoryUsage provides the memory usage information.
  7877. type MemoryUsage struct {
  7878. // Timestamp in nanoseconds at which the information were collected. Must be > 0.
  7879. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  7880. // The amount of working set memory in bytes.
  7881. WorkingSetBytes *UInt64Value `protobuf:"bytes,2,opt,name=working_set_bytes,json=workingSetBytes,proto3" json:"working_set_bytes,omitempty"`
  7882. // Available memory for use. This is defined as the memory limit - workingSetBytes.
  7883. AvailableBytes *UInt64Value `protobuf:"bytes,3,opt,name=available_bytes,json=availableBytes,proto3" json:"available_bytes,omitempty"`
  7884. // Total memory in use. This includes all memory regardless of when it was accessed.
  7885. UsageBytes *UInt64Value `protobuf:"bytes,4,opt,name=usage_bytes,json=usageBytes,proto3" json:"usage_bytes,omitempty"`
  7886. // The amount of anonymous and swap cache memory (includes transparent hugepages).
  7887. RssBytes *UInt64Value `protobuf:"bytes,5,opt,name=rss_bytes,json=rssBytes,proto3" json:"rss_bytes,omitempty"`
  7888. // Cumulative number of minor page faults.
  7889. PageFaults *UInt64Value `protobuf:"bytes,6,opt,name=page_faults,json=pageFaults,proto3" json:"page_faults,omitempty"`
  7890. // Cumulative number of major page faults.
  7891. MajorPageFaults *UInt64Value `protobuf:"bytes,7,opt,name=major_page_faults,json=majorPageFaults,proto3" json:"major_page_faults,omitempty"`
  7892. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7893. XXX_sizecache int32 `json:"-"`
  7894. }
  7895. func (m *MemoryUsage) Reset() { *m = MemoryUsage{} }
  7896. func (*MemoryUsage) ProtoMessage() {}
  7897. func (*MemoryUsage) Descriptor() ([]byte, []int) {
  7898. return fileDescriptor_00212fb1f9d3bf1c, []int{127}
  7899. }
  7900. func (m *MemoryUsage) XXX_Unmarshal(b []byte) error {
  7901. return m.Unmarshal(b)
  7902. }
  7903. func (m *MemoryUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7904. if deterministic {
  7905. return xxx_messageInfo_MemoryUsage.Marshal(b, m, deterministic)
  7906. } else {
  7907. b = b[:cap(b)]
  7908. n, err := m.MarshalToSizedBuffer(b)
  7909. if err != nil {
  7910. return nil, err
  7911. }
  7912. return b[:n], nil
  7913. }
  7914. }
  7915. func (m *MemoryUsage) XXX_Merge(src proto.Message) {
  7916. xxx_messageInfo_MemoryUsage.Merge(m, src)
  7917. }
  7918. func (m *MemoryUsage) XXX_Size() int {
  7919. return m.Size()
  7920. }
  7921. func (m *MemoryUsage) XXX_DiscardUnknown() {
  7922. xxx_messageInfo_MemoryUsage.DiscardUnknown(m)
  7923. }
  7924. var xxx_messageInfo_MemoryUsage proto.InternalMessageInfo
  7925. func (m *MemoryUsage) GetTimestamp() int64 {
  7926. if m != nil {
  7927. return m.Timestamp
  7928. }
  7929. return 0
  7930. }
  7931. func (m *MemoryUsage) GetWorkingSetBytes() *UInt64Value {
  7932. if m != nil {
  7933. return m.WorkingSetBytes
  7934. }
  7935. return nil
  7936. }
  7937. func (m *MemoryUsage) GetAvailableBytes() *UInt64Value {
  7938. if m != nil {
  7939. return m.AvailableBytes
  7940. }
  7941. return nil
  7942. }
  7943. func (m *MemoryUsage) GetUsageBytes() *UInt64Value {
  7944. if m != nil {
  7945. return m.UsageBytes
  7946. }
  7947. return nil
  7948. }
  7949. func (m *MemoryUsage) GetRssBytes() *UInt64Value {
  7950. if m != nil {
  7951. return m.RssBytes
  7952. }
  7953. return nil
  7954. }
  7955. func (m *MemoryUsage) GetPageFaults() *UInt64Value {
  7956. if m != nil {
  7957. return m.PageFaults
  7958. }
  7959. return nil
  7960. }
  7961. func (m *MemoryUsage) GetMajorPageFaults() *UInt64Value {
  7962. if m != nil {
  7963. return m.MajorPageFaults
  7964. }
  7965. return nil
  7966. }
  7967. type SwapUsage struct {
  7968. // Timestamp in nanoseconds at which the information were collected. Must be > 0.
  7969. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  7970. // Available swap for use. This is defined as the swap limit - swapUsageBytes.
  7971. SwapAvailableBytes *UInt64Value `protobuf:"bytes,2,opt,name=swap_available_bytes,json=swapAvailableBytes,proto3" json:"swap_available_bytes,omitempty"`
  7972. // Total memory in use. This includes all memory regardless of when it was accessed.
  7973. SwapUsageBytes *UInt64Value `protobuf:"bytes,3,opt,name=swap_usage_bytes,json=swapUsageBytes,proto3" json:"swap_usage_bytes,omitempty"`
  7974. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  7975. XXX_sizecache int32 `json:"-"`
  7976. }
  7977. func (m *SwapUsage) Reset() { *m = SwapUsage{} }
  7978. func (*SwapUsage) ProtoMessage() {}
  7979. func (*SwapUsage) Descriptor() ([]byte, []int) {
  7980. return fileDescriptor_00212fb1f9d3bf1c, []int{128}
  7981. }
  7982. func (m *SwapUsage) XXX_Unmarshal(b []byte) error {
  7983. return m.Unmarshal(b)
  7984. }
  7985. func (m *SwapUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  7986. if deterministic {
  7987. return xxx_messageInfo_SwapUsage.Marshal(b, m, deterministic)
  7988. } else {
  7989. b = b[:cap(b)]
  7990. n, err := m.MarshalToSizedBuffer(b)
  7991. if err != nil {
  7992. return nil, err
  7993. }
  7994. return b[:n], nil
  7995. }
  7996. }
  7997. func (m *SwapUsage) XXX_Merge(src proto.Message) {
  7998. xxx_messageInfo_SwapUsage.Merge(m, src)
  7999. }
  8000. func (m *SwapUsage) XXX_Size() int {
  8001. return m.Size()
  8002. }
  8003. func (m *SwapUsage) XXX_DiscardUnknown() {
  8004. xxx_messageInfo_SwapUsage.DiscardUnknown(m)
  8005. }
  8006. var xxx_messageInfo_SwapUsage proto.InternalMessageInfo
  8007. func (m *SwapUsage) GetTimestamp() int64 {
  8008. if m != nil {
  8009. return m.Timestamp
  8010. }
  8011. return 0
  8012. }
  8013. func (m *SwapUsage) GetSwapAvailableBytes() *UInt64Value {
  8014. if m != nil {
  8015. return m.SwapAvailableBytes
  8016. }
  8017. return nil
  8018. }
  8019. func (m *SwapUsage) GetSwapUsageBytes() *UInt64Value {
  8020. if m != nil {
  8021. return m.SwapUsageBytes
  8022. }
  8023. return nil
  8024. }
  8025. // WindowsMemoryUsage provides the memory usage information specific to Windows
  8026. type WindowsMemoryUsage struct {
  8027. // Timestamp in nanoseconds at which the information were collected. Must be > 0.
  8028. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  8029. // The amount of working set memory in bytes.
  8030. WorkingSetBytes *UInt64Value `protobuf:"bytes,2,opt,name=working_set_bytes,json=workingSetBytes,proto3" json:"working_set_bytes,omitempty"`
  8031. // Available memory for use. This is defined as the memory limit - commit_memory_bytes.
  8032. AvailableBytes *UInt64Value `protobuf:"bytes,3,opt,name=available_bytes,json=availableBytes,proto3" json:"available_bytes,omitempty"`
  8033. // Cumulative number of page faults.
  8034. PageFaults *UInt64Value `protobuf:"bytes,4,opt,name=page_faults,json=pageFaults,proto3" json:"page_faults,omitempty"`
  8035. // Total commit memory in use. Commit memory is total of physical and virtual memory in use.
  8036. CommitMemoryBytes *UInt64Value `protobuf:"bytes,5,opt,name=commit_memory_bytes,json=commitMemoryBytes,proto3" json:"commit_memory_bytes,omitempty"`
  8037. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8038. XXX_sizecache int32 `json:"-"`
  8039. }
  8040. func (m *WindowsMemoryUsage) Reset() { *m = WindowsMemoryUsage{} }
  8041. func (*WindowsMemoryUsage) ProtoMessage() {}
  8042. func (*WindowsMemoryUsage) Descriptor() ([]byte, []int) {
  8043. return fileDescriptor_00212fb1f9d3bf1c, []int{129}
  8044. }
  8045. func (m *WindowsMemoryUsage) XXX_Unmarshal(b []byte) error {
  8046. return m.Unmarshal(b)
  8047. }
  8048. func (m *WindowsMemoryUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8049. if deterministic {
  8050. return xxx_messageInfo_WindowsMemoryUsage.Marshal(b, m, deterministic)
  8051. } else {
  8052. b = b[:cap(b)]
  8053. n, err := m.MarshalToSizedBuffer(b)
  8054. if err != nil {
  8055. return nil, err
  8056. }
  8057. return b[:n], nil
  8058. }
  8059. }
  8060. func (m *WindowsMemoryUsage) XXX_Merge(src proto.Message) {
  8061. xxx_messageInfo_WindowsMemoryUsage.Merge(m, src)
  8062. }
  8063. func (m *WindowsMemoryUsage) XXX_Size() int {
  8064. return m.Size()
  8065. }
  8066. func (m *WindowsMemoryUsage) XXX_DiscardUnknown() {
  8067. xxx_messageInfo_WindowsMemoryUsage.DiscardUnknown(m)
  8068. }
  8069. var xxx_messageInfo_WindowsMemoryUsage proto.InternalMessageInfo
  8070. func (m *WindowsMemoryUsage) GetTimestamp() int64 {
  8071. if m != nil {
  8072. return m.Timestamp
  8073. }
  8074. return 0
  8075. }
  8076. func (m *WindowsMemoryUsage) GetWorkingSetBytes() *UInt64Value {
  8077. if m != nil {
  8078. return m.WorkingSetBytes
  8079. }
  8080. return nil
  8081. }
  8082. func (m *WindowsMemoryUsage) GetAvailableBytes() *UInt64Value {
  8083. if m != nil {
  8084. return m.AvailableBytes
  8085. }
  8086. return nil
  8087. }
  8088. func (m *WindowsMemoryUsage) GetPageFaults() *UInt64Value {
  8089. if m != nil {
  8090. return m.PageFaults
  8091. }
  8092. return nil
  8093. }
  8094. func (m *WindowsMemoryUsage) GetCommitMemoryBytes() *UInt64Value {
  8095. if m != nil {
  8096. return m.CommitMemoryBytes
  8097. }
  8098. return nil
  8099. }
  8100. type ReopenContainerLogRequest struct {
  8101. // ID of the container for which to reopen the log.
  8102. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  8103. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8104. XXX_sizecache int32 `json:"-"`
  8105. }
  8106. func (m *ReopenContainerLogRequest) Reset() { *m = ReopenContainerLogRequest{} }
  8107. func (*ReopenContainerLogRequest) ProtoMessage() {}
  8108. func (*ReopenContainerLogRequest) Descriptor() ([]byte, []int) {
  8109. return fileDescriptor_00212fb1f9d3bf1c, []int{130}
  8110. }
  8111. func (m *ReopenContainerLogRequest) XXX_Unmarshal(b []byte) error {
  8112. return m.Unmarshal(b)
  8113. }
  8114. func (m *ReopenContainerLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8115. if deterministic {
  8116. return xxx_messageInfo_ReopenContainerLogRequest.Marshal(b, m, deterministic)
  8117. } else {
  8118. b = b[:cap(b)]
  8119. n, err := m.MarshalToSizedBuffer(b)
  8120. if err != nil {
  8121. return nil, err
  8122. }
  8123. return b[:n], nil
  8124. }
  8125. }
  8126. func (m *ReopenContainerLogRequest) XXX_Merge(src proto.Message) {
  8127. xxx_messageInfo_ReopenContainerLogRequest.Merge(m, src)
  8128. }
  8129. func (m *ReopenContainerLogRequest) XXX_Size() int {
  8130. return m.Size()
  8131. }
  8132. func (m *ReopenContainerLogRequest) XXX_DiscardUnknown() {
  8133. xxx_messageInfo_ReopenContainerLogRequest.DiscardUnknown(m)
  8134. }
  8135. var xxx_messageInfo_ReopenContainerLogRequest proto.InternalMessageInfo
  8136. func (m *ReopenContainerLogRequest) GetContainerId() string {
  8137. if m != nil {
  8138. return m.ContainerId
  8139. }
  8140. return ""
  8141. }
  8142. type ReopenContainerLogResponse struct {
  8143. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8144. XXX_sizecache int32 `json:"-"`
  8145. }
  8146. func (m *ReopenContainerLogResponse) Reset() { *m = ReopenContainerLogResponse{} }
  8147. func (*ReopenContainerLogResponse) ProtoMessage() {}
  8148. func (*ReopenContainerLogResponse) Descriptor() ([]byte, []int) {
  8149. return fileDescriptor_00212fb1f9d3bf1c, []int{131}
  8150. }
  8151. func (m *ReopenContainerLogResponse) XXX_Unmarshal(b []byte) error {
  8152. return m.Unmarshal(b)
  8153. }
  8154. func (m *ReopenContainerLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8155. if deterministic {
  8156. return xxx_messageInfo_ReopenContainerLogResponse.Marshal(b, m, deterministic)
  8157. } else {
  8158. b = b[:cap(b)]
  8159. n, err := m.MarshalToSizedBuffer(b)
  8160. if err != nil {
  8161. return nil, err
  8162. }
  8163. return b[:n], nil
  8164. }
  8165. }
  8166. func (m *ReopenContainerLogResponse) XXX_Merge(src proto.Message) {
  8167. xxx_messageInfo_ReopenContainerLogResponse.Merge(m, src)
  8168. }
  8169. func (m *ReopenContainerLogResponse) XXX_Size() int {
  8170. return m.Size()
  8171. }
  8172. func (m *ReopenContainerLogResponse) XXX_DiscardUnknown() {
  8173. xxx_messageInfo_ReopenContainerLogResponse.DiscardUnknown(m)
  8174. }
  8175. var xxx_messageInfo_ReopenContainerLogResponse proto.InternalMessageInfo
  8176. type CheckpointContainerRequest struct {
  8177. // ID of the container to be checkpointed.
  8178. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  8179. // Location of the checkpoint archive used for export
  8180. Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
  8181. // Timeout in seconds for the checkpoint to complete.
  8182. // Timeout of zero means to use the CRI default.
  8183. // Timeout > 0 means to use the user specified timeout.
  8184. Timeout int64 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
  8185. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8186. XXX_sizecache int32 `json:"-"`
  8187. }
  8188. func (m *CheckpointContainerRequest) Reset() { *m = CheckpointContainerRequest{} }
  8189. func (*CheckpointContainerRequest) ProtoMessage() {}
  8190. func (*CheckpointContainerRequest) Descriptor() ([]byte, []int) {
  8191. return fileDescriptor_00212fb1f9d3bf1c, []int{132}
  8192. }
  8193. func (m *CheckpointContainerRequest) XXX_Unmarshal(b []byte) error {
  8194. return m.Unmarshal(b)
  8195. }
  8196. func (m *CheckpointContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8197. if deterministic {
  8198. return xxx_messageInfo_CheckpointContainerRequest.Marshal(b, m, deterministic)
  8199. } else {
  8200. b = b[:cap(b)]
  8201. n, err := m.MarshalToSizedBuffer(b)
  8202. if err != nil {
  8203. return nil, err
  8204. }
  8205. return b[:n], nil
  8206. }
  8207. }
  8208. func (m *CheckpointContainerRequest) XXX_Merge(src proto.Message) {
  8209. xxx_messageInfo_CheckpointContainerRequest.Merge(m, src)
  8210. }
  8211. func (m *CheckpointContainerRequest) XXX_Size() int {
  8212. return m.Size()
  8213. }
  8214. func (m *CheckpointContainerRequest) XXX_DiscardUnknown() {
  8215. xxx_messageInfo_CheckpointContainerRequest.DiscardUnknown(m)
  8216. }
  8217. var xxx_messageInfo_CheckpointContainerRequest proto.InternalMessageInfo
  8218. func (m *CheckpointContainerRequest) GetContainerId() string {
  8219. if m != nil {
  8220. return m.ContainerId
  8221. }
  8222. return ""
  8223. }
  8224. func (m *CheckpointContainerRequest) GetLocation() string {
  8225. if m != nil {
  8226. return m.Location
  8227. }
  8228. return ""
  8229. }
  8230. func (m *CheckpointContainerRequest) GetTimeout() int64 {
  8231. if m != nil {
  8232. return m.Timeout
  8233. }
  8234. return 0
  8235. }
  8236. type CheckpointContainerResponse struct {
  8237. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8238. XXX_sizecache int32 `json:"-"`
  8239. }
  8240. func (m *CheckpointContainerResponse) Reset() { *m = CheckpointContainerResponse{} }
  8241. func (*CheckpointContainerResponse) ProtoMessage() {}
  8242. func (*CheckpointContainerResponse) Descriptor() ([]byte, []int) {
  8243. return fileDescriptor_00212fb1f9d3bf1c, []int{133}
  8244. }
  8245. func (m *CheckpointContainerResponse) XXX_Unmarshal(b []byte) error {
  8246. return m.Unmarshal(b)
  8247. }
  8248. func (m *CheckpointContainerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8249. if deterministic {
  8250. return xxx_messageInfo_CheckpointContainerResponse.Marshal(b, m, deterministic)
  8251. } else {
  8252. b = b[:cap(b)]
  8253. n, err := m.MarshalToSizedBuffer(b)
  8254. if err != nil {
  8255. return nil, err
  8256. }
  8257. return b[:n], nil
  8258. }
  8259. }
  8260. func (m *CheckpointContainerResponse) XXX_Merge(src proto.Message) {
  8261. xxx_messageInfo_CheckpointContainerResponse.Merge(m, src)
  8262. }
  8263. func (m *CheckpointContainerResponse) XXX_Size() int {
  8264. return m.Size()
  8265. }
  8266. func (m *CheckpointContainerResponse) XXX_DiscardUnknown() {
  8267. xxx_messageInfo_CheckpointContainerResponse.DiscardUnknown(m)
  8268. }
  8269. var xxx_messageInfo_CheckpointContainerResponse proto.InternalMessageInfo
  8270. type GetEventsRequest struct {
  8271. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8272. XXX_sizecache int32 `json:"-"`
  8273. }
  8274. func (m *GetEventsRequest) Reset() { *m = GetEventsRequest{} }
  8275. func (*GetEventsRequest) ProtoMessage() {}
  8276. func (*GetEventsRequest) Descriptor() ([]byte, []int) {
  8277. return fileDescriptor_00212fb1f9d3bf1c, []int{134}
  8278. }
  8279. func (m *GetEventsRequest) XXX_Unmarshal(b []byte) error {
  8280. return m.Unmarshal(b)
  8281. }
  8282. func (m *GetEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8283. if deterministic {
  8284. return xxx_messageInfo_GetEventsRequest.Marshal(b, m, deterministic)
  8285. } else {
  8286. b = b[:cap(b)]
  8287. n, err := m.MarshalToSizedBuffer(b)
  8288. if err != nil {
  8289. return nil, err
  8290. }
  8291. return b[:n], nil
  8292. }
  8293. }
  8294. func (m *GetEventsRequest) XXX_Merge(src proto.Message) {
  8295. xxx_messageInfo_GetEventsRequest.Merge(m, src)
  8296. }
  8297. func (m *GetEventsRequest) XXX_Size() int {
  8298. return m.Size()
  8299. }
  8300. func (m *GetEventsRequest) XXX_DiscardUnknown() {
  8301. xxx_messageInfo_GetEventsRequest.DiscardUnknown(m)
  8302. }
  8303. var xxx_messageInfo_GetEventsRequest proto.InternalMessageInfo
  8304. type ContainerEventResponse struct {
  8305. // ID of the container
  8306. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  8307. // Type of the container event
  8308. ContainerEventType ContainerEventType `protobuf:"varint,2,opt,name=container_event_type,json=containerEventType,proto3,enum=runtime.v1.ContainerEventType" json:"container_event_type,omitempty"`
  8309. // Creation timestamp of this event
  8310. CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  8311. // Sandbox status
  8312. PodSandboxStatus *PodSandboxStatus `protobuf:"bytes,4,opt,name=pod_sandbox_status,json=podSandboxStatus,proto3" json:"pod_sandbox_status,omitempty"`
  8313. // Container statuses
  8314. ContainersStatuses []*ContainerStatus `protobuf:"bytes,5,rep,name=containers_statuses,json=containersStatuses,proto3" json:"containers_statuses,omitempty"`
  8315. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8316. XXX_sizecache int32 `json:"-"`
  8317. }
  8318. func (m *ContainerEventResponse) Reset() { *m = ContainerEventResponse{} }
  8319. func (*ContainerEventResponse) ProtoMessage() {}
  8320. func (*ContainerEventResponse) Descriptor() ([]byte, []int) {
  8321. return fileDescriptor_00212fb1f9d3bf1c, []int{135}
  8322. }
  8323. func (m *ContainerEventResponse) XXX_Unmarshal(b []byte) error {
  8324. return m.Unmarshal(b)
  8325. }
  8326. func (m *ContainerEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8327. if deterministic {
  8328. return xxx_messageInfo_ContainerEventResponse.Marshal(b, m, deterministic)
  8329. } else {
  8330. b = b[:cap(b)]
  8331. n, err := m.MarshalToSizedBuffer(b)
  8332. if err != nil {
  8333. return nil, err
  8334. }
  8335. return b[:n], nil
  8336. }
  8337. }
  8338. func (m *ContainerEventResponse) XXX_Merge(src proto.Message) {
  8339. xxx_messageInfo_ContainerEventResponse.Merge(m, src)
  8340. }
  8341. func (m *ContainerEventResponse) XXX_Size() int {
  8342. return m.Size()
  8343. }
  8344. func (m *ContainerEventResponse) XXX_DiscardUnknown() {
  8345. xxx_messageInfo_ContainerEventResponse.DiscardUnknown(m)
  8346. }
  8347. var xxx_messageInfo_ContainerEventResponse proto.InternalMessageInfo
  8348. func (m *ContainerEventResponse) GetContainerId() string {
  8349. if m != nil {
  8350. return m.ContainerId
  8351. }
  8352. return ""
  8353. }
  8354. func (m *ContainerEventResponse) GetContainerEventType() ContainerEventType {
  8355. if m != nil {
  8356. return m.ContainerEventType
  8357. }
  8358. return ContainerEventType_CONTAINER_CREATED_EVENT
  8359. }
  8360. func (m *ContainerEventResponse) GetCreatedAt() int64 {
  8361. if m != nil {
  8362. return m.CreatedAt
  8363. }
  8364. return 0
  8365. }
  8366. func (m *ContainerEventResponse) GetPodSandboxStatus() *PodSandboxStatus {
  8367. if m != nil {
  8368. return m.PodSandboxStatus
  8369. }
  8370. return nil
  8371. }
  8372. func (m *ContainerEventResponse) GetContainersStatuses() []*ContainerStatus {
  8373. if m != nil {
  8374. return m.ContainersStatuses
  8375. }
  8376. return nil
  8377. }
  8378. type ListMetricDescriptorsRequest struct {
  8379. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8380. XXX_sizecache int32 `json:"-"`
  8381. }
  8382. func (m *ListMetricDescriptorsRequest) Reset() { *m = ListMetricDescriptorsRequest{} }
  8383. func (*ListMetricDescriptorsRequest) ProtoMessage() {}
  8384. func (*ListMetricDescriptorsRequest) Descriptor() ([]byte, []int) {
  8385. return fileDescriptor_00212fb1f9d3bf1c, []int{136}
  8386. }
  8387. func (m *ListMetricDescriptorsRequest) XXX_Unmarshal(b []byte) error {
  8388. return m.Unmarshal(b)
  8389. }
  8390. func (m *ListMetricDescriptorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8391. if deterministic {
  8392. return xxx_messageInfo_ListMetricDescriptorsRequest.Marshal(b, m, deterministic)
  8393. } else {
  8394. b = b[:cap(b)]
  8395. n, err := m.MarshalToSizedBuffer(b)
  8396. if err != nil {
  8397. return nil, err
  8398. }
  8399. return b[:n], nil
  8400. }
  8401. }
  8402. func (m *ListMetricDescriptorsRequest) XXX_Merge(src proto.Message) {
  8403. xxx_messageInfo_ListMetricDescriptorsRequest.Merge(m, src)
  8404. }
  8405. func (m *ListMetricDescriptorsRequest) XXX_Size() int {
  8406. return m.Size()
  8407. }
  8408. func (m *ListMetricDescriptorsRequest) XXX_DiscardUnknown() {
  8409. xxx_messageInfo_ListMetricDescriptorsRequest.DiscardUnknown(m)
  8410. }
  8411. var xxx_messageInfo_ListMetricDescriptorsRequest proto.InternalMessageInfo
  8412. type ListMetricDescriptorsResponse struct {
  8413. Descriptors []*MetricDescriptor `protobuf:"bytes,1,rep,name=descriptors,proto3" json:"descriptors,omitempty"`
  8414. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8415. XXX_sizecache int32 `json:"-"`
  8416. }
  8417. func (m *ListMetricDescriptorsResponse) Reset() { *m = ListMetricDescriptorsResponse{} }
  8418. func (*ListMetricDescriptorsResponse) ProtoMessage() {}
  8419. func (*ListMetricDescriptorsResponse) Descriptor() ([]byte, []int) {
  8420. return fileDescriptor_00212fb1f9d3bf1c, []int{137}
  8421. }
  8422. func (m *ListMetricDescriptorsResponse) XXX_Unmarshal(b []byte) error {
  8423. return m.Unmarshal(b)
  8424. }
  8425. func (m *ListMetricDescriptorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8426. if deterministic {
  8427. return xxx_messageInfo_ListMetricDescriptorsResponse.Marshal(b, m, deterministic)
  8428. } else {
  8429. b = b[:cap(b)]
  8430. n, err := m.MarshalToSizedBuffer(b)
  8431. if err != nil {
  8432. return nil, err
  8433. }
  8434. return b[:n], nil
  8435. }
  8436. }
  8437. func (m *ListMetricDescriptorsResponse) XXX_Merge(src proto.Message) {
  8438. xxx_messageInfo_ListMetricDescriptorsResponse.Merge(m, src)
  8439. }
  8440. func (m *ListMetricDescriptorsResponse) XXX_Size() int {
  8441. return m.Size()
  8442. }
  8443. func (m *ListMetricDescriptorsResponse) XXX_DiscardUnknown() {
  8444. xxx_messageInfo_ListMetricDescriptorsResponse.DiscardUnknown(m)
  8445. }
  8446. var xxx_messageInfo_ListMetricDescriptorsResponse proto.InternalMessageInfo
  8447. func (m *ListMetricDescriptorsResponse) GetDescriptors() []*MetricDescriptor {
  8448. if m != nil {
  8449. return m.Descriptors
  8450. }
  8451. return nil
  8452. }
  8453. type MetricDescriptor struct {
  8454. // The name field will be used as a unique identifier of this MetricDescriptor,
  8455. // and be used in conjunction with the Metric structure to populate the full Metric.
  8456. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  8457. Help string `protobuf:"bytes,2,opt,name=help,proto3" json:"help,omitempty"`
  8458. // When a metric uses this metric descriptor, it should only define
  8459. // labels that have previously been declared in label_keys.
  8460. // It is the responsibility of the runtime to correctly keep sorted the keys and values.
  8461. // If the two slices have different length, the behavior is undefined.
  8462. LabelKeys []string `protobuf:"bytes,3,rep,name=label_keys,json=labelKeys,proto3" json:"label_keys,omitempty"`
  8463. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8464. XXX_sizecache int32 `json:"-"`
  8465. }
  8466. func (m *MetricDescriptor) Reset() { *m = MetricDescriptor{} }
  8467. func (*MetricDescriptor) ProtoMessage() {}
  8468. func (*MetricDescriptor) Descriptor() ([]byte, []int) {
  8469. return fileDescriptor_00212fb1f9d3bf1c, []int{138}
  8470. }
  8471. func (m *MetricDescriptor) XXX_Unmarshal(b []byte) error {
  8472. return m.Unmarshal(b)
  8473. }
  8474. func (m *MetricDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8475. if deterministic {
  8476. return xxx_messageInfo_MetricDescriptor.Marshal(b, m, deterministic)
  8477. } else {
  8478. b = b[:cap(b)]
  8479. n, err := m.MarshalToSizedBuffer(b)
  8480. if err != nil {
  8481. return nil, err
  8482. }
  8483. return b[:n], nil
  8484. }
  8485. }
  8486. func (m *MetricDescriptor) XXX_Merge(src proto.Message) {
  8487. xxx_messageInfo_MetricDescriptor.Merge(m, src)
  8488. }
  8489. func (m *MetricDescriptor) XXX_Size() int {
  8490. return m.Size()
  8491. }
  8492. func (m *MetricDescriptor) XXX_DiscardUnknown() {
  8493. xxx_messageInfo_MetricDescriptor.DiscardUnknown(m)
  8494. }
  8495. var xxx_messageInfo_MetricDescriptor proto.InternalMessageInfo
  8496. func (m *MetricDescriptor) GetName() string {
  8497. if m != nil {
  8498. return m.Name
  8499. }
  8500. return ""
  8501. }
  8502. func (m *MetricDescriptor) GetHelp() string {
  8503. if m != nil {
  8504. return m.Help
  8505. }
  8506. return ""
  8507. }
  8508. func (m *MetricDescriptor) GetLabelKeys() []string {
  8509. if m != nil {
  8510. return m.LabelKeys
  8511. }
  8512. return nil
  8513. }
  8514. type ListPodSandboxMetricsRequest struct {
  8515. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8516. XXX_sizecache int32 `json:"-"`
  8517. }
  8518. func (m *ListPodSandboxMetricsRequest) Reset() { *m = ListPodSandboxMetricsRequest{} }
  8519. func (*ListPodSandboxMetricsRequest) ProtoMessage() {}
  8520. func (*ListPodSandboxMetricsRequest) Descriptor() ([]byte, []int) {
  8521. return fileDescriptor_00212fb1f9d3bf1c, []int{139}
  8522. }
  8523. func (m *ListPodSandboxMetricsRequest) XXX_Unmarshal(b []byte) error {
  8524. return m.Unmarshal(b)
  8525. }
  8526. func (m *ListPodSandboxMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8527. if deterministic {
  8528. return xxx_messageInfo_ListPodSandboxMetricsRequest.Marshal(b, m, deterministic)
  8529. } else {
  8530. b = b[:cap(b)]
  8531. n, err := m.MarshalToSizedBuffer(b)
  8532. if err != nil {
  8533. return nil, err
  8534. }
  8535. return b[:n], nil
  8536. }
  8537. }
  8538. func (m *ListPodSandboxMetricsRequest) XXX_Merge(src proto.Message) {
  8539. xxx_messageInfo_ListPodSandboxMetricsRequest.Merge(m, src)
  8540. }
  8541. func (m *ListPodSandboxMetricsRequest) XXX_Size() int {
  8542. return m.Size()
  8543. }
  8544. func (m *ListPodSandboxMetricsRequest) XXX_DiscardUnknown() {
  8545. xxx_messageInfo_ListPodSandboxMetricsRequest.DiscardUnknown(m)
  8546. }
  8547. var xxx_messageInfo_ListPodSandboxMetricsRequest proto.InternalMessageInfo
  8548. type ListPodSandboxMetricsResponse struct {
  8549. PodMetrics []*PodSandboxMetrics `protobuf:"bytes,1,rep,name=pod_metrics,json=podMetrics,proto3" json:"pod_metrics,omitempty"`
  8550. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8551. XXX_sizecache int32 `json:"-"`
  8552. }
  8553. func (m *ListPodSandboxMetricsResponse) Reset() { *m = ListPodSandboxMetricsResponse{} }
  8554. func (*ListPodSandboxMetricsResponse) ProtoMessage() {}
  8555. func (*ListPodSandboxMetricsResponse) Descriptor() ([]byte, []int) {
  8556. return fileDescriptor_00212fb1f9d3bf1c, []int{140}
  8557. }
  8558. func (m *ListPodSandboxMetricsResponse) XXX_Unmarshal(b []byte) error {
  8559. return m.Unmarshal(b)
  8560. }
  8561. func (m *ListPodSandboxMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8562. if deterministic {
  8563. return xxx_messageInfo_ListPodSandboxMetricsResponse.Marshal(b, m, deterministic)
  8564. } else {
  8565. b = b[:cap(b)]
  8566. n, err := m.MarshalToSizedBuffer(b)
  8567. if err != nil {
  8568. return nil, err
  8569. }
  8570. return b[:n], nil
  8571. }
  8572. }
  8573. func (m *ListPodSandboxMetricsResponse) XXX_Merge(src proto.Message) {
  8574. xxx_messageInfo_ListPodSandboxMetricsResponse.Merge(m, src)
  8575. }
  8576. func (m *ListPodSandboxMetricsResponse) XXX_Size() int {
  8577. return m.Size()
  8578. }
  8579. func (m *ListPodSandboxMetricsResponse) XXX_DiscardUnknown() {
  8580. xxx_messageInfo_ListPodSandboxMetricsResponse.DiscardUnknown(m)
  8581. }
  8582. var xxx_messageInfo_ListPodSandboxMetricsResponse proto.InternalMessageInfo
  8583. func (m *ListPodSandboxMetricsResponse) GetPodMetrics() []*PodSandboxMetrics {
  8584. if m != nil {
  8585. return m.PodMetrics
  8586. }
  8587. return nil
  8588. }
  8589. type PodSandboxMetrics struct {
  8590. PodSandboxId string `protobuf:"bytes,1,opt,name=pod_sandbox_id,json=podSandboxId,proto3" json:"pod_sandbox_id,omitempty"`
  8591. Metrics []*Metric `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
  8592. ContainerMetrics []*ContainerMetrics `protobuf:"bytes,3,rep,name=container_metrics,json=containerMetrics,proto3" json:"container_metrics,omitempty"`
  8593. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8594. XXX_sizecache int32 `json:"-"`
  8595. }
  8596. func (m *PodSandboxMetrics) Reset() { *m = PodSandboxMetrics{} }
  8597. func (*PodSandboxMetrics) ProtoMessage() {}
  8598. func (*PodSandboxMetrics) Descriptor() ([]byte, []int) {
  8599. return fileDescriptor_00212fb1f9d3bf1c, []int{141}
  8600. }
  8601. func (m *PodSandboxMetrics) XXX_Unmarshal(b []byte) error {
  8602. return m.Unmarshal(b)
  8603. }
  8604. func (m *PodSandboxMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8605. if deterministic {
  8606. return xxx_messageInfo_PodSandboxMetrics.Marshal(b, m, deterministic)
  8607. } else {
  8608. b = b[:cap(b)]
  8609. n, err := m.MarshalToSizedBuffer(b)
  8610. if err != nil {
  8611. return nil, err
  8612. }
  8613. return b[:n], nil
  8614. }
  8615. }
  8616. func (m *PodSandboxMetrics) XXX_Merge(src proto.Message) {
  8617. xxx_messageInfo_PodSandboxMetrics.Merge(m, src)
  8618. }
  8619. func (m *PodSandboxMetrics) XXX_Size() int {
  8620. return m.Size()
  8621. }
  8622. func (m *PodSandboxMetrics) XXX_DiscardUnknown() {
  8623. xxx_messageInfo_PodSandboxMetrics.DiscardUnknown(m)
  8624. }
  8625. var xxx_messageInfo_PodSandboxMetrics proto.InternalMessageInfo
  8626. func (m *PodSandboxMetrics) GetPodSandboxId() string {
  8627. if m != nil {
  8628. return m.PodSandboxId
  8629. }
  8630. return ""
  8631. }
  8632. func (m *PodSandboxMetrics) GetMetrics() []*Metric {
  8633. if m != nil {
  8634. return m.Metrics
  8635. }
  8636. return nil
  8637. }
  8638. func (m *PodSandboxMetrics) GetContainerMetrics() []*ContainerMetrics {
  8639. if m != nil {
  8640. return m.ContainerMetrics
  8641. }
  8642. return nil
  8643. }
  8644. type ContainerMetrics struct {
  8645. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  8646. Metrics []*Metric `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
  8647. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8648. XXX_sizecache int32 `json:"-"`
  8649. }
  8650. func (m *ContainerMetrics) Reset() { *m = ContainerMetrics{} }
  8651. func (*ContainerMetrics) ProtoMessage() {}
  8652. func (*ContainerMetrics) Descriptor() ([]byte, []int) {
  8653. return fileDescriptor_00212fb1f9d3bf1c, []int{142}
  8654. }
  8655. func (m *ContainerMetrics) XXX_Unmarshal(b []byte) error {
  8656. return m.Unmarshal(b)
  8657. }
  8658. func (m *ContainerMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8659. if deterministic {
  8660. return xxx_messageInfo_ContainerMetrics.Marshal(b, m, deterministic)
  8661. } else {
  8662. b = b[:cap(b)]
  8663. n, err := m.MarshalToSizedBuffer(b)
  8664. if err != nil {
  8665. return nil, err
  8666. }
  8667. return b[:n], nil
  8668. }
  8669. }
  8670. func (m *ContainerMetrics) XXX_Merge(src proto.Message) {
  8671. xxx_messageInfo_ContainerMetrics.Merge(m, src)
  8672. }
  8673. func (m *ContainerMetrics) XXX_Size() int {
  8674. return m.Size()
  8675. }
  8676. func (m *ContainerMetrics) XXX_DiscardUnknown() {
  8677. xxx_messageInfo_ContainerMetrics.DiscardUnknown(m)
  8678. }
  8679. var xxx_messageInfo_ContainerMetrics proto.InternalMessageInfo
  8680. func (m *ContainerMetrics) GetContainerId() string {
  8681. if m != nil {
  8682. return m.ContainerId
  8683. }
  8684. return ""
  8685. }
  8686. func (m *ContainerMetrics) GetMetrics() []*Metric {
  8687. if m != nil {
  8688. return m.Metrics
  8689. }
  8690. return nil
  8691. }
  8692. type Metric struct {
  8693. // Name must match a name previously returned in a MetricDescriptors call,
  8694. // otherwise, it will be ignored.
  8695. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  8696. // Timestamp should be 0 if the metric was gathered live.
  8697. // If it was cached, the Timestamp should reflect the time it was collected.
  8698. Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  8699. MetricType MetricType `protobuf:"varint,3,opt,name=metric_type,json=metricType,proto3,enum=runtime.v1.MetricType" json:"metric_type,omitempty"`
  8700. // The corresponding LabelValues to the LabelKeys defined in the MetricDescriptor.
  8701. // It is the responsibility of the runtime to correctly keep sorted the keys and values.
  8702. // If the two slices have different length, the behavior is undefined.
  8703. LabelValues []string `protobuf:"bytes,4,rep,name=label_values,json=labelValues,proto3" json:"label_values,omitempty"`
  8704. Value *UInt64Value `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
  8705. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8706. XXX_sizecache int32 `json:"-"`
  8707. }
  8708. func (m *Metric) Reset() { *m = Metric{} }
  8709. func (*Metric) ProtoMessage() {}
  8710. func (*Metric) Descriptor() ([]byte, []int) {
  8711. return fileDescriptor_00212fb1f9d3bf1c, []int{143}
  8712. }
  8713. func (m *Metric) XXX_Unmarshal(b []byte) error {
  8714. return m.Unmarshal(b)
  8715. }
  8716. func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8717. if deterministic {
  8718. return xxx_messageInfo_Metric.Marshal(b, m, deterministic)
  8719. } else {
  8720. b = b[:cap(b)]
  8721. n, err := m.MarshalToSizedBuffer(b)
  8722. if err != nil {
  8723. return nil, err
  8724. }
  8725. return b[:n], nil
  8726. }
  8727. }
  8728. func (m *Metric) XXX_Merge(src proto.Message) {
  8729. xxx_messageInfo_Metric.Merge(m, src)
  8730. }
  8731. func (m *Metric) XXX_Size() int {
  8732. return m.Size()
  8733. }
  8734. func (m *Metric) XXX_DiscardUnknown() {
  8735. xxx_messageInfo_Metric.DiscardUnknown(m)
  8736. }
  8737. var xxx_messageInfo_Metric proto.InternalMessageInfo
  8738. func (m *Metric) GetName() string {
  8739. if m != nil {
  8740. return m.Name
  8741. }
  8742. return ""
  8743. }
  8744. func (m *Metric) GetTimestamp() int64 {
  8745. if m != nil {
  8746. return m.Timestamp
  8747. }
  8748. return 0
  8749. }
  8750. func (m *Metric) GetMetricType() MetricType {
  8751. if m != nil {
  8752. return m.MetricType
  8753. }
  8754. return MetricType_COUNTER
  8755. }
  8756. func (m *Metric) GetLabelValues() []string {
  8757. if m != nil {
  8758. return m.LabelValues
  8759. }
  8760. return nil
  8761. }
  8762. func (m *Metric) GetValue() *UInt64Value {
  8763. if m != nil {
  8764. return m.Value
  8765. }
  8766. return nil
  8767. }
  8768. type RuntimeConfigRequest struct {
  8769. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8770. XXX_sizecache int32 `json:"-"`
  8771. }
  8772. func (m *RuntimeConfigRequest) Reset() { *m = RuntimeConfigRequest{} }
  8773. func (*RuntimeConfigRequest) ProtoMessage() {}
  8774. func (*RuntimeConfigRequest) Descriptor() ([]byte, []int) {
  8775. return fileDescriptor_00212fb1f9d3bf1c, []int{144}
  8776. }
  8777. func (m *RuntimeConfigRequest) XXX_Unmarshal(b []byte) error {
  8778. return m.Unmarshal(b)
  8779. }
  8780. func (m *RuntimeConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8781. if deterministic {
  8782. return xxx_messageInfo_RuntimeConfigRequest.Marshal(b, m, deterministic)
  8783. } else {
  8784. b = b[:cap(b)]
  8785. n, err := m.MarshalToSizedBuffer(b)
  8786. if err != nil {
  8787. return nil, err
  8788. }
  8789. return b[:n], nil
  8790. }
  8791. }
  8792. func (m *RuntimeConfigRequest) XXX_Merge(src proto.Message) {
  8793. xxx_messageInfo_RuntimeConfigRequest.Merge(m, src)
  8794. }
  8795. func (m *RuntimeConfigRequest) XXX_Size() int {
  8796. return m.Size()
  8797. }
  8798. func (m *RuntimeConfigRequest) XXX_DiscardUnknown() {
  8799. xxx_messageInfo_RuntimeConfigRequest.DiscardUnknown(m)
  8800. }
  8801. var xxx_messageInfo_RuntimeConfigRequest proto.InternalMessageInfo
  8802. type RuntimeConfigResponse struct {
  8803. // Configuration information for Linux-based runtimes. This field contains
  8804. // global runtime configuration options that are not specific to runtime
  8805. // handlers.
  8806. Linux *LinuxRuntimeConfiguration `protobuf:"bytes,1,opt,name=linux,proto3" json:"linux,omitempty"`
  8807. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8808. XXX_sizecache int32 `json:"-"`
  8809. }
  8810. func (m *RuntimeConfigResponse) Reset() { *m = RuntimeConfigResponse{} }
  8811. func (*RuntimeConfigResponse) ProtoMessage() {}
  8812. func (*RuntimeConfigResponse) Descriptor() ([]byte, []int) {
  8813. return fileDescriptor_00212fb1f9d3bf1c, []int{145}
  8814. }
  8815. func (m *RuntimeConfigResponse) XXX_Unmarshal(b []byte) error {
  8816. return m.Unmarshal(b)
  8817. }
  8818. func (m *RuntimeConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8819. if deterministic {
  8820. return xxx_messageInfo_RuntimeConfigResponse.Marshal(b, m, deterministic)
  8821. } else {
  8822. b = b[:cap(b)]
  8823. n, err := m.MarshalToSizedBuffer(b)
  8824. if err != nil {
  8825. return nil, err
  8826. }
  8827. return b[:n], nil
  8828. }
  8829. }
  8830. func (m *RuntimeConfigResponse) XXX_Merge(src proto.Message) {
  8831. xxx_messageInfo_RuntimeConfigResponse.Merge(m, src)
  8832. }
  8833. func (m *RuntimeConfigResponse) XXX_Size() int {
  8834. return m.Size()
  8835. }
  8836. func (m *RuntimeConfigResponse) XXX_DiscardUnknown() {
  8837. xxx_messageInfo_RuntimeConfigResponse.DiscardUnknown(m)
  8838. }
  8839. var xxx_messageInfo_RuntimeConfigResponse proto.InternalMessageInfo
  8840. func (m *RuntimeConfigResponse) GetLinux() *LinuxRuntimeConfiguration {
  8841. if m != nil {
  8842. return m.Linux
  8843. }
  8844. return nil
  8845. }
  8846. type LinuxRuntimeConfiguration struct {
  8847. // Cgroup driver to use
  8848. // Note: this field should not change for the lifecycle of the Kubelet,
  8849. // or while there are running containers.
  8850. // The Kubelet will not re-request this after startup, and will construct the cgroup
  8851. // hierarchy assuming it is static.
  8852. // If the runtime wishes to change this value, it must be accompanied by removal of
  8853. // all pods, and a restart of the Kubelet. The easiest way to do this is with a full node reboot.
  8854. CgroupDriver CgroupDriver `protobuf:"varint,1,opt,name=cgroup_driver,json=cgroupDriver,proto3,enum=runtime.v1.CgroupDriver" json:"cgroup_driver,omitempty"`
  8855. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  8856. XXX_sizecache int32 `json:"-"`
  8857. }
  8858. func (m *LinuxRuntimeConfiguration) Reset() { *m = LinuxRuntimeConfiguration{} }
  8859. func (*LinuxRuntimeConfiguration) ProtoMessage() {}
  8860. func (*LinuxRuntimeConfiguration) Descriptor() ([]byte, []int) {
  8861. return fileDescriptor_00212fb1f9d3bf1c, []int{146}
  8862. }
  8863. func (m *LinuxRuntimeConfiguration) XXX_Unmarshal(b []byte) error {
  8864. return m.Unmarshal(b)
  8865. }
  8866. func (m *LinuxRuntimeConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  8867. if deterministic {
  8868. return xxx_messageInfo_LinuxRuntimeConfiguration.Marshal(b, m, deterministic)
  8869. } else {
  8870. b = b[:cap(b)]
  8871. n, err := m.MarshalToSizedBuffer(b)
  8872. if err != nil {
  8873. return nil, err
  8874. }
  8875. return b[:n], nil
  8876. }
  8877. }
  8878. func (m *LinuxRuntimeConfiguration) XXX_Merge(src proto.Message) {
  8879. xxx_messageInfo_LinuxRuntimeConfiguration.Merge(m, src)
  8880. }
  8881. func (m *LinuxRuntimeConfiguration) XXX_Size() int {
  8882. return m.Size()
  8883. }
  8884. func (m *LinuxRuntimeConfiguration) XXX_DiscardUnknown() {
  8885. xxx_messageInfo_LinuxRuntimeConfiguration.DiscardUnknown(m)
  8886. }
  8887. var xxx_messageInfo_LinuxRuntimeConfiguration proto.InternalMessageInfo
  8888. func (m *LinuxRuntimeConfiguration) GetCgroupDriver() CgroupDriver {
  8889. if m != nil {
  8890. return m.CgroupDriver
  8891. }
  8892. return CgroupDriver_SYSTEMD
  8893. }
  8894. func init() {
  8895. proto.RegisterEnum("runtime.v1.Protocol", Protocol_name, Protocol_value)
  8896. proto.RegisterEnum("runtime.v1.MountPropagation", MountPropagation_name, MountPropagation_value)
  8897. proto.RegisterEnum("runtime.v1.NamespaceMode", NamespaceMode_name, NamespaceMode_value)
  8898. proto.RegisterEnum("runtime.v1.PodSandboxState", PodSandboxState_name, PodSandboxState_value)
  8899. proto.RegisterEnum("runtime.v1.ContainerState", ContainerState_name, ContainerState_value)
  8900. proto.RegisterEnum("runtime.v1.ContainerEventType", ContainerEventType_name, ContainerEventType_value)
  8901. proto.RegisterEnum("runtime.v1.MetricType", MetricType_name, MetricType_value)
  8902. proto.RegisterEnum("runtime.v1.CgroupDriver", CgroupDriver_name, CgroupDriver_value)
  8903. proto.RegisterEnum("runtime.v1.SecurityProfile_ProfileType", SecurityProfile_ProfileType_name, SecurityProfile_ProfileType_value)
  8904. proto.RegisterType((*VersionRequest)(nil), "runtime.v1.VersionRequest")
  8905. proto.RegisterType((*VersionResponse)(nil), "runtime.v1.VersionResponse")
  8906. proto.RegisterType((*DNSConfig)(nil), "runtime.v1.DNSConfig")
  8907. proto.RegisterType((*PortMapping)(nil), "runtime.v1.PortMapping")
  8908. proto.RegisterType((*Mount)(nil), "runtime.v1.Mount")
  8909. proto.RegisterType((*IDMapping)(nil), "runtime.v1.IDMapping")
  8910. proto.RegisterType((*UserNamespace)(nil), "runtime.v1.UserNamespace")
  8911. proto.RegisterType((*NamespaceOption)(nil), "runtime.v1.NamespaceOption")
  8912. proto.RegisterType((*Int64Value)(nil), "runtime.v1.Int64Value")
  8913. proto.RegisterType((*LinuxSandboxSecurityContext)(nil), "runtime.v1.LinuxSandboxSecurityContext")
  8914. proto.RegisterType((*SecurityProfile)(nil), "runtime.v1.SecurityProfile")
  8915. proto.RegisterType((*LinuxPodSandboxConfig)(nil), "runtime.v1.LinuxPodSandboxConfig")
  8916. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.LinuxPodSandboxConfig.SysctlsEntry")
  8917. proto.RegisterType((*PodSandboxMetadata)(nil), "runtime.v1.PodSandboxMetadata")
  8918. proto.RegisterType((*PodSandboxConfig)(nil), "runtime.v1.PodSandboxConfig")
  8919. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.PodSandboxConfig.AnnotationsEntry")
  8920. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.PodSandboxConfig.LabelsEntry")
  8921. proto.RegisterType((*RunPodSandboxRequest)(nil), "runtime.v1.RunPodSandboxRequest")
  8922. proto.RegisterType((*RunPodSandboxResponse)(nil), "runtime.v1.RunPodSandboxResponse")
  8923. proto.RegisterType((*StopPodSandboxRequest)(nil), "runtime.v1.StopPodSandboxRequest")
  8924. proto.RegisterType((*StopPodSandboxResponse)(nil), "runtime.v1.StopPodSandboxResponse")
  8925. proto.RegisterType((*RemovePodSandboxRequest)(nil), "runtime.v1.RemovePodSandboxRequest")
  8926. proto.RegisterType((*RemovePodSandboxResponse)(nil), "runtime.v1.RemovePodSandboxResponse")
  8927. proto.RegisterType((*PodSandboxStatusRequest)(nil), "runtime.v1.PodSandboxStatusRequest")
  8928. proto.RegisterType((*PodIP)(nil), "runtime.v1.PodIP")
  8929. proto.RegisterType((*PodSandboxNetworkStatus)(nil), "runtime.v1.PodSandboxNetworkStatus")
  8930. proto.RegisterType((*Namespace)(nil), "runtime.v1.Namespace")
  8931. proto.RegisterType((*LinuxPodSandboxStatus)(nil), "runtime.v1.LinuxPodSandboxStatus")
  8932. proto.RegisterType((*PodSandboxStatus)(nil), "runtime.v1.PodSandboxStatus")
  8933. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.PodSandboxStatus.AnnotationsEntry")
  8934. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.PodSandboxStatus.LabelsEntry")
  8935. proto.RegisterType((*PodSandboxStatusResponse)(nil), "runtime.v1.PodSandboxStatusResponse")
  8936. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.PodSandboxStatusResponse.InfoEntry")
  8937. proto.RegisterType((*PodSandboxStateValue)(nil), "runtime.v1.PodSandboxStateValue")
  8938. proto.RegisterType((*PodSandboxFilter)(nil), "runtime.v1.PodSandboxFilter")
  8939. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.PodSandboxFilter.LabelSelectorEntry")
  8940. proto.RegisterType((*ListPodSandboxRequest)(nil), "runtime.v1.ListPodSandboxRequest")
  8941. proto.RegisterType((*PodSandbox)(nil), "runtime.v1.PodSandbox")
  8942. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.PodSandbox.AnnotationsEntry")
  8943. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.PodSandbox.LabelsEntry")
  8944. proto.RegisterType((*ListPodSandboxResponse)(nil), "runtime.v1.ListPodSandboxResponse")
  8945. proto.RegisterType((*PodSandboxStatsRequest)(nil), "runtime.v1.PodSandboxStatsRequest")
  8946. proto.RegisterType((*PodSandboxStatsResponse)(nil), "runtime.v1.PodSandboxStatsResponse")
  8947. proto.RegisterType((*PodSandboxStatsFilter)(nil), "runtime.v1.PodSandboxStatsFilter")
  8948. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.PodSandboxStatsFilter.LabelSelectorEntry")
  8949. proto.RegisterType((*ListPodSandboxStatsRequest)(nil), "runtime.v1.ListPodSandboxStatsRequest")
  8950. proto.RegisterType((*ListPodSandboxStatsResponse)(nil), "runtime.v1.ListPodSandboxStatsResponse")
  8951. proto.RegisterType((*PodSandboxAttributes)(nil), "runtime.v1.PodSandboxAttributes")
  8952. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.PodSandboxAttributes.AnnotationsEntry")
  8953. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.PodSandboxAttributes.LabelsEntry")
  8954. proto.RegisterType((*PodSandboxStats)(nil), "runtime.v1.PodSandboxStats")
  8955. proto.RegisterType((*LinuxPodSandboxStats)(nil), "runtime.v1.LinuxPodSandboxStats")
  8956. proto.RegisterType((*WindowsPodSandboxStats)(nil), "runtime.v1.WindowsPodSandboxStats")
  8957. proto.RegisterType((*NetworkUsage)(nil), "runtime.v1.NetworkUsage")
  8958. proto.RegisterType((*WindowsNetworkUsage)(nil), "runtime.v1.WindowsNetworkUsage")
  8959. proto.RegisterType((*NetworkInterfaceUsage)(nil), "runtime.v1.NetworkInterfaceUsage")
  8960. proto.RegisterType((*WindowsNetworkInterfaceUsage)(nil), "runtime.v1.WindowsNetworkInterfaceUsage")
  8961. proto.RegisterType((*ProcessUsage)(nil), "runtime.v1.ProcessUsage")
  8962. proto.RegisterType((*WindowsProcessUsage)(nil), "runtime.v1.WindowsProcessUsage")
  8963. proto.RegisterType((*ImageSpec)(nil), "runtime.v1.ImageSpec")
  8964. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.ImageSpec.AnnotationsEntry")
  8965. proto.RegisterType((*KeyValue)(nil), "runtime.v1.KeyValue")
  8966. proto.RegisterType((*LinuxContainerResources)(nil), "runtime.v1.LinuxContainerResources")
  8967. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.LinuxContainerResources.UnifiedEntry")
  8968. proto.RegisterType((*HugepageLimit)(nil), "runtime.v1.HugepageLimit")
  8969. proto.RegisterType((*SELinuxOption)(nil), "runtime.v1.SELinuxOption")
  8970. proto.RegisterType((*Capability)(nil), "runtime.v1.Capability")
  8971. proto.RegisterType((*LinuxContainerSecurityContext)(nil), "runtime.v1.LinuxContainerSecurityContext")
  8972. proto.RegisterType((*LinuxContainerConfig)(nil), "runtime.v1.LinuxContainerConfig")
  8973. proto.RegisterType((*WindowsNamespaceOption)(nil), "runtime.v1.WindowsNamespaceOption")
  8974. proto.RegisterType((*WindowsSandboxSecurityContext)(nil), "runtime.v1.WindowsSandboxSecurityContext")
  8975. proto.RegisterType((*WindowsPodSandboxConfig)(nil), "runtime.v1.WindowsPodSandboxConfig")
  8976. proto.RegisterType((*WindowsContainerSecurityContext)(nil), "runtime.v1.WindowsContainerSecurityContext")
  8977. proto.RegisterType((*WindowsContainerConfig)(nil), "runtime.v1.WindowsContainerConfig")
  8978. proto.RegisterType((*WindowsContainerResources)(nil), "runtime.v1.WindowsContainerResources")
  8979. proto.RegisterType((*ContainerMetadata)(nil), "runtime.v1.ContainerMetadata")
  8980. proto.RegisterType((*Device)(nil), "runtime.v1.Device")
  8981. proto.RegisterType((*CDIDevice)(nil), "runtime.v1.CDIDevice")
  8982. proto.RegisterType((*ContainerConfig)(nil), "runtime.v1.ContainerConfig")
  8983. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.ContainerConfig.AnnotationsEntry")
  8984. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.ContainerConfig.LabelsEntry")
  8985. proto.RegisterType((*CreateContainerRequest)(nil), "runtime.v1.CreateContainerRequest")
  8986. proto.RegisterType((*CreateContainerResponse)(nil), "runtime.v1.CreateContainerResponse")
  8987. proto.RegisterType((*StartContainerRequest)(nil), "runtime.v1.StartContainerRequest")
  8988. proto.RegisterType((*StartContainerResponse)(nil), "runtime.v1.StartContainerResponse")
  8989. proto.RegisterType((*StopContainerRequest)(nil), "runtime.v1.StopContainerRequest")
  8990. proto.RegisterType((*StopContainerResponse)(nil), "runtime.v1.StopContainerResponse")
  8991. proto.RegisterType((*RemoveContainerRequest)(nil), "runtime.v1.RemoveContainerRequest")
  8992. proto.RegisterType((*RemoveContainerResponse)(nil), "runtime.v1.RemoveContainerResponse")
  8993. proto.RegisterType((*ContainerStateValue)(nil), "runtime.v1.ContainerStateValue")
  8994. proto.RegisterType((*ContainerFilter)(nil), "runtime.v1.ContainerFilter")
  8995. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.ContainerFilter.LabelSelectorEntry")
  8996. proto.RegisterType((*ListContainersRequest)(nil), "runtime.v1.ListContainersRequest")
  8997. proto.RegisterType((*Container)(nil), "runtime.v1.Container")
  8998. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.Container.AnnotationsEntry")
  8999. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.Container.LabelsEntry")
  9000. proto.RegisterType((*ListContainersResponse)(nil), "runtime.v1.ListContainersResponse")
  9001. proto.RegisterType((*ContainerStatusRequest)(nil), "runtime.v1.ContainerStatusRequest")
  9002. proto.RegisterType((*ContainerStatus)(nil), "runtime.v1.ContainerStatus")
  9003. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.ContainerStatus.AnnotationsEntry")
  9004. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.ContainerStatus.LabelsEntry")
  9005. proto.RegisterType((*ContainerStatusResponse)(nil), "runtime.v1.ContainerStatusResponse")
  9006. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.ContainerStatusResponse.InfoEntry")
  9007. proto.RegisterType((*ContainerResources)(nil), "runtime.v1.ContainerResources")
  9008. proto.RegisterType((*UpdateContainerResourcesRequest)(nil), "runtime.v1.UpdateContainerResourcesRequest")
  9009. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.UpdateContainerResourcesRequest.AnnotationsEntry")
  9010. proto.RegisterType((*UpdateContainerResourcesResponse)(nil), "runtime.v1.UpdateContainerResourcesResponse")
  9011. proto.RegisterType((*ExecSyncRequest)(nil), "runtime.v1.ExecSyncRequest")
  9012. proto.RegisterType((*ExecSyncResponse)(nil), "runtime.v1.ExecSyncResponse")
  9013. proto.RegisterType((*ExecRequest)(nil), "runtime.v1.ExecRequest")
  9014. proto.RegisterType((*ExecResponse)(nil), "runtime.v1.ExecResponse")
  9015. proto.RegisterType((*AttachRequest)(nil), "runtime.v1.AttachRequest")
  9016. proto.RegisterType((*AttachResponse)(nil), "runtime.v1.AttachResponse")
  9017. proto.RegisterType((*PortForwardRequest)(nil), "runtime.v1.PortForwardRequest")
  9018. proto.RegisterType((*PortForwardResponse)(nil), "runtime.v1.PortForwardResponse")
  9019. proto.RegisterType((*ImageFilter)(nil), "runtime.v1.ImageFilter")
  9020. proto.RegisterType((*ListImagesRequest)(nil), "runtime.v1.ListImagesRequest")
  9021. proto.RegisterType((*Image)(nil), "runtime.v1.Image")
  9022. proto.RegisterType((*ListImagesResponse)(nil), "runtime.v1.ListImagesResponse")
  9023. proto.RegisterType((*ImageStatusRequest)(nil), "runtime.v1.ImageStatusRequest")
  9024. proto.RegisterType((*ImageStatusResponse)(nil), "runtime.v1.ImageStatusResponse")
  9025. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.ImageStatusResponse.InfoEntry")
  9026. proto.RegisterType((*AuthConfig)(nil), "runtime.v1.AuthConfig")
  9027. proto.RegisterType((*PullImageRequest)(nil), "runtime.v1.PullImageRequest")
  9028. proto.RegisterType((*PullImageResponse)(nil), "runtime.v1.PullImageResponse")
  9029. proto.RegisterType((*RemoveImageRequest)(nil), "runtime.v1.RemoveImageRequest")
  9030. proto.RegisterType((*RemoveImageResponse)(nil), "runtime.v1.RemoveImageResponse")
  9031. proto.RegisterType((*NetworkConfig)(nil), "runtime.v1.NetworkConfig")
  9032. proto.RegisterType((*RuntimeConfig)(nil), "runtime.v1.RuntimeConfig")
  9033. proto.RegisterType((*UpdateRuntimeConfigRequest)(nil), "runtime.v1.UpdateRuntimeConfigRequest")
  9034. proto.RegisterType((*UpdateRuntimeConfigResponse)(nil), "runtime.v1.UpdateRuntimeConfigResponse")
  9035. proto.RegisterType((*RuntimeCondition)(nil), "runtime.v1.RuntimeCondition")
  9036. proto.RegisterType((*RuntimeStatus)(nil), "runtime.v1.RuntimeStatus")
  9037. proto.RegisterType((*StatusRequest)(nil), "runtime.v1.StatusRequest")
  9038. proto.RegisterType((*StatusResponse)(nil), "runtime.v1.StatusResponse")
  9039. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.StatusResponse.InfoEntry")
  9040. proto.RegisterType((*ImageFsInfoRequest)(nil), "runtime.v1.ImageFsInfoRequest")
  9041. proto.RegisterType((*UInt64Value)(nil), "runtime.v1.UInt64Value")
  9042. proto.RegisterType((*FilesystemIdentifier)(nil), "runtime.v1.FilesystemIdentifier")
  9043. proto.RegisterType((*FilesystemUsage)(nil), "runtime.v1.FilesystemUsage")
  9044. proto.RegisterType((*WindowsFilesystemUsage)(nil), "runtime.v1.WindowsFilesystemUsage")
  9045. proto.RegisterType((*ImageFsInfoResponse)(nil), "runtime.v1.ImageFsInfoResponse")
  9046. proto.RegisterType((*ContainerStatsRequest)(nil), "runtime.v1.ContainerStatsRequest")
  9047. proto.RegisterType((*ContainerStatsResponse)(nil), "runtime.v1.ContainerStatsResponse")
  9048. proto.RegisterType((*ListContainerStatsRequest)(nil), "runtime.v1.ListContainerStatsRequest")
  9049. proto.RegisterType((*ContainerStatsFilter)(nil), "runtime.v1.ContainerStatsFilter")
  9050. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.ContainerStatsFilter.LabelSelectorEntry")
  9051. proto.RegisterType((*ListContainerStatsResponse)(nil), "runtime.v1.ListContainerStatsResponse")
  9052. proto.RegisterType((*ContainerAttributes)(nil), "runtime.v1.ContainerAttributes")
  9053. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.ContainerAttributes.AnnotationsEntry")
  9054. proto.RegisterMapType((map[string]string)(nil), "runtime.v1.ContainerAttributes.LabelsEntry")
  9055. proto.RegisterType((*ContainerStats)(nil), "runtime.v1.ContainerStats")
  9056. proto.RegisterType((*WindowsContainerStats)(nil), "runtime.v1.WindowsContainerStats")
  9057. proto.RegisterType((*CpuUsage)(nil), "runtime.v1.CpuUsage")
  9058. proto.RegisterType((*WindowsCpuUsage)(nil), "runtime.v1.WindowsCpuUsage")
  9059. proto.RegisterType((*MemoryUsage)(nil), "runtime.v1.MemoryUsage")
  9060. proto.RegisterType((*SwapUsage)(nil), "runtime.v1.SwapUsage")
  9061. proto.RegisterType((*WindowsMemoryUsage)(nil), "runtime.v1.WindowsMemoryUsage")
  9062. proto.RegisterType((*ReopenContainerLogRequest)(nil), "runtime.v1.ReopenContainerLogRequest")
  9063. proto.RegisterType((*ReopenContainerLogResponse)(nil), "runtime.v1.ReopenContainerLogResponse")
  9064. proto.RegisterType((*CheckpointContainerRequest)(nil), "runtime.v1.CheckpointContainerRequest")
  9065. proto.RegisterType((*CheckpointContainerResponse)(nil), "runtime.v1.CheckpointContainerResponse")
  9066. proto.RegisterType((*GetEventsRequest)(nil), "runtime.v1.GetEventsRequest")
  9067. proto.RegisterType((*ContainerEventResponse)(nil), "runtime.v1.ContainerEventResponse")
  9068. proto.RegisterType((*ListMetricDescriptorsRequest)(nil), "runtime.v1.ListMetricDescriptorsRequest")
  9069. proto.RegisterType((*ListMetricDescriptorsResponse)(nil), "runtime.v1.ListMetricDescriptorsResponse")
  9070. proto.RegisterType((*MetricDescriptor)(nil), "runtime.v1.MetricDescriptor")
  9071. proto.RegisterType((*ListPodSandboxMetricsRequest)(nil), "runtime.v1.ListPodSandboxMetricsRequest")
  9072. proto.RegisterType((*ListPodSandboxMetricsResponse)(nil), "runtime.v1.ListPodSandboxMetricsResponse")
  9073. proto.RegisterType((*PodSandboxMetrics)(nil), "runtime.v1.PodSandboxMetrics")
  9074. proto.RegisterType((*ContainerMetrics)(nil), "runtime.v1.ContainerMetrics")
  9075. proto.RegisterType((*Metric)(nil), "runtime.v1.Metric")
  9076. proto.RegisterType((*RuntimeConfigRequest)(nil), "runtime.v1.RuntimeConfigRequest")
  9077. proto.RegisterType((*RuntimeConfigResponse)(nil), "runtime.v1.RuntimeConfigResponse")
  9078. proto.RegisterType((*LinuxRuntimeConfiguration)(nil), "runtime.v1.LinuxRuntimeConfiguration")
  9079. }
  9080. func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) }
  9081. var fileDescriptor_00212fb1f9d3bf1c = []byte{
  9082. // 6791 bytes of a gzipped FileDescriptorProto
  9083. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x3d, 0x4b, 0x6c, 0x1c, 0xc9,
  9084. 0x75, 0xec, 0x99, 0x21, 0x39, 0xf3, 0x86, 0x43, 0x0e, 0x4b, 0x14, 0x49, 0x8d, 0xfe, 0xbd, 0x3f,
  9085. 0x49, 0xbb, 0xfa, 0xac, 0xf6, 0x27, 0xc9, 0xfb, 0xd1, 0x88, 0xe4, 0x6a, 0x67, 0x2d, 0x91, 0xe3,
  9086. 0x1e, 0x72, 0xed, 0x5d, 0x07, 0xee, 0xb4, 0xa6, 0x8b, 0x64, 0xaf, 0x66, 0xba, 0xdb, 0xdd, 0x3d,
  9087. 0x92, 0xe8, 0x53, 0x8e, 0x89, 0x4f, 0x06, 0x12, 0xc7, 0x88, 0x11, 0x24, 0xc8, 0x21, 0x48, 0x6e,
  9088. 0x09, 0x02, 0x24, 0x71, 0x90, 0x1f, 0x60, 0x24, 0x86, 0x13, 0x20, 0x40, 0x0e, 0x09, 0xe0, 0x43,
  9089. 0x82, 0xd8, 0x9b, 0x00, 0x01, 0x72, 0xf6, 0x21, 0xa7, 0x38, 0xa8, 0x5f, 0x77, 0x57, 0xff, 0x66,
  9090. 0xc8, 0x5d, 0xef, 0xae, 0x4f, 0x9c, 0x7e, 0xf5, 0xde, 0xab, 0x57, 0xaf, 0x5e, 0xbd, 0x7a, 0x55,
  9091. 0xf5, 0xaa, 0x08, 0x35, 0xc3, 0xb5, 0xae, 0xb8, 0x9e, 0x13, 0x38, 0x08, 0xbc, 0x91, 0x1d, 0x58,
  9092. 0x43, 0x7c, 0xe5, 0xd1, 0x8b, 0xad, 0xcb, 0x7b, 0x56, 0xb0, 0x3f, 0x7a, 0x70, 0xa5, 0xef, 0x0c,
  9093. 0xaf, 0xee, 0x39, 0x7b, 0xce, 0x55, 0x8a, 0xf2, 0x60, 0xb4, 0x4b, 0xbf, 0xe8, 0x07, 0xfd, 0xc5,
  9094. 0x48, 0xd5, 0x4b, 0x30, 0xff, 0x1e, 0xf6, 0x7c, 0xcb, 0xb1, 0x35, 0xfc, 0xf5, 0x11, 0xf6, 0x03,
  9095. 0xb4, 0x0a, 0xb3, 0x8f, 0x18, 0x64, 0x55, 0x39, 0xa7, 0x5c, 0xa8, 0x69, 0xe2, 0x53, 0xfd, 0x03,
  9096. 0x05, 0x16, 0x42, 0x64, 0xdf, 0x75, 0x6c, 0x1f, 0xe7, 0x63, 0xa3, 0xf3, 0x30, 0xc7, 0xc5, 0xd2,
  9097. 0x6d, 0x63, 0x88, 0x57, 0x4b, 0xb4, 0xb8, 0xce, 0x61, 0x9b, 0xc6, 0x10, 0xa3, 0xe7, 0x60, 0x41,
  9098. 0xa0, 0x08, 0x26, 0x65, 0x8a, 0x35, 0xcf, 0xc1, 0xbc, 0x36, 0x74, 0x05, 0x8e, 0x09, 0x44, 0xc3,
  9099. 0xb5, 0x42, 0xe4, 0x0a, 0x45, 0x5e, 0xe4, 0x45, 0x6d, 0xd7, 0xe2, 0xf8, 0xea, 0x57, 0xa1, 0xb6,
  9100. 0xbe, 0xd9, 0x5b, 0x73, 0xec, 0x5d, 0x6b, 0x8f, 0x88, 0xe8, 0x63, 0x8f, 0xd0, 0xac, 0x2a, 0xe7,
  9101. 0xca, 0x44, 0x44, 0xfe, 0x89, 0x5a, 0x50, 0xf5, 0xb1, 0xe1, 0xf5, 0xf7, 0xb1, 0xbf, 0x5a, 0xa2,
  9102. 0x45, 0xe1, 0x37, 0xa1, 0x72, 0xdc, 0xc0, 0x72, 0x6c, 0x7f, 0xb5, 0xcc, 0xa8, 0xf8, 0xa7, 0xfa,
  9103. 0xdb, 0x0a, 0xd4, 0xbb, 0x8e, 0x17, 0xdc, 0x37, 0x5c, 0xd7, 0xb2, 0xf7, 0xd0, 0x35, 0xa8, 0x52,
  9104. 0x5d, 0xf6, 0x9d, 0x01, 0xd5, 0xc1, 0xfc, 0xf5, 0xa5, 0x2b, 0x51, 0x87, 0x5c, 0xe9, 0xf2, 0x32,
  9105. 0x2d, 0xc4, 0x42, 0xcf, 0xc0, 0x7c, 0xdf, 0xb1, 0x03, 0xc3, 0xb2, 0xb1, 0xa7, 0xbb, 0x8e, 0x17,
  9106. 0x50, 0xe5, 0x4c, 0x6b, 0x8d, 0x10, 0x4a, 0xf8, 0xa3, 0x93, 0x50, 0xdb, 0x77, 0xfc, 0x80, 0x61,
  9107. 0x94, 0x29, 0x46, 0x95, 0x00, 0x68, 0xe1, 0x0a, 0xcc, 0xd2, 0x42, 0xcb, 0xe5, 0x6a, 0x98, 0x21,
  9108. 0x9f, 0x1d, 0x57, 0xfd, 0x7e, 0x09, 0xa6, 0xef, 0x3b, 0x23, 0x3b, 0x48, 0x54, 0x63, 0x04, 0xfb,
  9109. 0xbc, 0x8b, 0x62, 0xd5, 0x18, 0xc1, 0x7e, 0x54, 0x0d, 0xc1, 0x60, 0xbd, 0xc4, 0xaa, 0x21, 0x85,
  9110. 0x2d, 0xa8, 0x7a, 0xd8, 0x30, 0x1d, 0x7b, 0x70, 0x40, 0x45, 0xa8, 0x6a, 0xe1, 0x37, 0xe9, 0x3e,
  9111. 0x1f, 0x0f, 0x2c, 0x7b, 0xf4, 0x44, 0xf7, 0xf0, 0xc0, 0x78, 0x80, 0x07, 0x54, 0x94, 0xaa, 0x36,
  9112. 0xcf, 0xc1, 0x1a, 0x83, 0xa2, 0x37, 0xa1, 0xee, 0x7a, 0x8e, 0x6b, 0xec, 0x19, 0x44, 0x83, 0xab,
  9113. 0xd3, 0x54, 0x49, 0xa7, 0xe2, 0x4a, 0xa2, 0x02, 0x77, 0x23, 0x1c, 0x2d, 0x4e, 0x80, 0x5e, 0x83,
  9114. 0xfa, 0xc8, 0x32, 0xb9, 0xbe, 0xfd, 0xd5, 0x99, 0x73, 0xe5, 0x0b, 0xf5, 0xeb, 0xc7, 0xe3, 0xf4,
  9115. 0x9d, 0x75, 0x5e, 0xaa, 0xc5, 0x31, 0x09, 0xe1, 0x5e, 0x8c, 0x70, 0xb6, 0x90, 0x30, 0x86, 0xa9,
  9116. 0xea, 0x50, 0x0b, 0x4b, 0x22, 0x55, 0x9b, 0x54, 0x81, 0x0d, 0xae, 0x6a, 0x93, 0x98, 0x78, 0xa4,
  9117. 0x60, 0xcb, 0xa4, 0xca, 0x6b, 0x68, 0xf5, 0x10, 0xd6, 0x31, 0xd1, 0x32, 0xcc, 0x0c, 0xb0, 0xbd,
  9118. 0x17, 0xec, 0x53, 0xed, 0x35, 0x34, 0xfe, 0xa5, 0xfe, 0x86, 0x02, 0x8d, 0x1d, 0x1f, 0x7b, 0x64,
  9119. 0x1c, 0xf8, 0xae, 0xd1, 0xc7, 0xe8, 0x32, 0x54, 0x86, 0x8e, 0x89, 0xb9, 0x09, 0x9d, 0x88, 0x0b,
  9120. 0x19, 0x22, 0xdd, 0x77, 0x4c, 0xac, 0x51, 0x34, 0x74, 0x11, 0x2a, 0x23, 0xcb, 0x64, 0x76, 0x9b,
  9121. 0xdb, 0x26, 0x8a, 0x42, 0x50, 0xf7, 0x08, 0x6a, 0xb9, 0x10, 0x95, 0xa0, 0xa8, 0x3f, 0x53, 0x60,
  9122. 0x21, 0xac, 0x6d, 0x8b, 0x1a, 0x3c, 0x7a, 0x09, 0x66, 0x6d, 0x1c, 0x3c, 0x76, 0xbc, 0x87, 0xe3,
  9123. 0x65, 0x13, 0x98, 0xe8, 0x79, 0x28, 0xbb, 0x5c, 0x23, 0x85, 0x04, 0x04, 0x8b, 0x20, 0x5b, 0x6e,
  9124. 0x9f, 0x6a, 0xa8, 0x18, 0xd9, 0x72, 0xfb, 0xc4, 0x5c, 0x03, 0xc3, 0xdb, 0xc3, 0xb4, 0x3f, 0x98,
  9125. 0xe9, 0x57, 0x19, 0xa0, 0x63, 0xa2, 0xdb, 0x30, 0x3f, 0xf2, 0xb1, 0x67, 0xfb, 0xba, 0x18, 0xbc,
  9126. 0xc4, 0xd8, 0xea, 0x32, 0x53, 0x49, 0xef, 0x5a, 0x83, 0x11, 0x6c, 0xf1, 0xd1, 0xad, 0x02, 0x74,
  9127. 0xec, 0xe0, 0xd5, 0x97, 0xdf, 0x33, 0x06, 0x23, 0x8c, 0x96, 0x60, 0xfa, 0x11, 0xf9, 0x41, 0x5b,
  9128. 0x5e, 0xd6, 0xd8, 0x87, 0xfa, 0xd7, 0x15, 0x38, 0x79, 0x8f, 0x18, 0x78, 0xcf, 0xb0, 0xcd, 0x07,
  9129. 0xce, 0x93, 0x1e, 0xee, 0x8f, 0x3c, 0x2b, 0x38, 0x58, 0x73, 0xec, 0x00, 0x3f, 0x09, 0xd0, 0x3b,
  9130. 0xb0, 0x68, 0x0b, 0xfe, 0xa1, 0x20, 0x0a, 0x15, 0xe4, 0x64, 0x66, 0xeb, 0x58, 0xe5, 0x5a, 0xd3,
  9131. 0x96, 0x01, 0x3e, 0xba, 0x13, 0x0d, 0x31, 0xc1, 0xa7, 0x94, 0x6e, 0x50, 0x6f, 0x83, 0x4a, 0xc3,
  9132. 0xb9, 0x88, 0xd1, 0x27, 0x78, 0xbc, 0x0a, 0xc4, 0xe9, 0xea, 0x86, 0xaf, 0x93, 0x96, 0x52, 0x2d,
  9133. 0xd7, 0xaf, 0x2f, 0x4b, 0x56, 0x10, 0x36, 0x58, 0xab, 0x79, 0x23, 0xbb, 0xed, 0x13, 0x0d, 0xa1,
  9134. 0x1b, 0xd4, 0x81, 0x13, 0xba, 0x3d, 0xcf, 0x19, 0xb9, 0xab, 0xd5, 0x42, 0x42, 0xa0, 0x84, 0x77,
  9135. 0x09, 0x26, 0xf5, 0xeb, 0xdc, 0x49, 0xe8, 0x9e, 0xe3, 0x04, 0xbb, 0xbe, 0x70, 0x0c, 0x02, 0xac,
  9136. 0x51, 0x28, 0xba, 0x0a, 0xc7, 0xfc, 0x91, 0xeb, 0x0e, 0xf0, 0x10, 0xdb, 0x81, 0x31, 0x60, 0x15,
  9137. 0x91, 0x3e, 0x2b, 0x5f, 0x28, 0x6b, 0x28, 0x5e, 0x44, 0x19, 0xfb, 0xe8, 0x0c, 0x80, 0xeb, 0x59,
  9138. 0x8f, 0xac, 0x01, 0xde, 0xc3, 0xe6, 0xea, 0x0c, 0x65, 0x1a, 0x83, 0xa0, 0x57, 0x88, 0xaf, 0xef,
  9139. 0xf7, 0x9d, 0xa1, 0xbb, 0x5a, 0x4b, 0xeb, 0x5b, 0xf4, 0x53, 0xd7, 0x73, 0x76, 0xad, 0x01, 0xd6,
  9140. 0x04, 0x2e, 0x7a, 0x0d, 0xaa, 0x86, 0xeb, 0x1a, 0xde, 0xd0, 0xf1, 0x56, 0x61, 0x3c, 0x5d, 0x88,
  9141. 0x8c, 0x5e, 0x86, 0x25, 0xce, 0x43, 0x77, 0x59, 0x21, 0x73, 0xa3, 0xb3, 0xc4, 0x2e, 0xef, 0x94,
  9142. 0x56, 0x15, 0x0d, 0xf1, 0x72, 0x4e, 0x4b, 0x9c, 0xaa, 0xfa, 0x77, 0x0a, 0x2c, 0x24, 0x78, 0xa2,
  9143. 0x77, 0x61, 0x4e, 0x70, 0x08, 0x0e, 0x5c, 0xe1, 0x06, 0x9e, 0x2b, 0x10, 0xe3, 0x0a, 0xff, 0xbb,
  9144. 0x7d, 0xe0, 0x62, 0xea, 0x2f, 0xc5, 0x07, 0x7a, 0x0a, 0x1a, 0x03, 0xa7, 0x6f, 0x0c, 0xa8, 0xd7,
  9145. 0xf2, 0xf0, 0x2e, 0xf7, 0xea, 0x73, 0x21, 0x50, 0xc3, 0xbb, 0xea, 0x6d, 0xa8, 0xc7, 0x18, 0x20,
  9146. 0x04, 0xf3, 0x1a, 0xab, 0x6a, 0x1d, 0xef, 0x1a, 0xa3, 0x41, 0xd0, 0x9c, 0x42, 0xf3, 0x00, 0x3b,
  9147. 0x76, 0x9f, 0xcc, 0xa2, 0x36, 0x36, 0x9b, 0x0a, 0x6a, 0x40, 0xed, 0x9e, 0x60, 0xd1, 0x2c, 0xa9,
  9148. 0xdf, 0x2d, 0xc3, 0x71, 0x6a, 0x78, 0x5d, 0xc7, 0xe4, 0x23, 0x81, 0x4f, 0xb9, 0x4f, 0x41, 0xa3,
  9149. 0x4f, 0xfb, 0x52, 0x77, 0x0d, 0x0f, 0xdb, 0x01, 0x9f, 0x78, 0xe6, 0x18, 0xb0, 0x4b, 0x61, 0x48,
  9150. 0x83, 0xa6, 0xcf, 0x5b, 0xa4, 0xf7, 0xd9, 0xc8, 0xe1, 0xc6, 0x2d, 0xb5, 0xba, 0x60, 0xa0, 0x69,
  9151. 0x0b, 0x7e, 0x6a, 0xe4, 0xcd, 0xfa, 0x07, 0x7e, 0x3f, 0x18, 0x08, 0x6f, 0x77, 0x25, 0xc5, 0x2a,
  9152. 0x29, 0xec, 0x95, 0x1e, 0x23, 0xd8, 0xb0, 0x03, 0xef, 0x40, 0x13, 0xe4, 0xe8, 0x2d, 0xa8, 0x3a,
  9153. 0x8f, 0xb0, 0xb7, 0x8f, 0x0d, 0xe6, 0x65, 0xea, 0xd7, 0x9f, 0x4a, 0xb1, 0x5a, 0x13, 0x8e, 0x5e,
  9154. 0xc3, 0xbe, 0x33, 0xf2, 0xfa, 0xd8, 0xd7, 0x42, 0x22, 0xd4, 0x86, 0x9a, 0x27, 0xc0, 0xdc, 0x0b,
  9155. 0x4d, 0xc4, 0x21, 0xa2, 0x6a, 0xdd, 0x82, 0xb9, 0xb8, 0x70, 0xa8, 0x09, 0xe5, 0x87, 0xf8, 0x80,
  9156. 0x2b, 0x93, 0xfc, 0x8c, 0xfc, 0x13, 0xeb, 0x61, 0xf6, 0x71, 0xab, 0x74, 0x43, 0x51, 0x3d, 0x40,
  9157. 0x51, 0x4b, 0xef, 0xe3, 0xc0, 0x30, 0x8d, 0xc0, 0x40, 0x08, 0x2a, 0x34, 0x18, 0x63, 0x2c, 0xe8,
  9158. 0x6f, 0xc2, 0x75, 0xc4, 0x5d, 0x75, 0x4d, 0x23, 0x3f, 0xd1, 0x29, 0xa8, 0x85, 0x9e, 0x88, 0x47,
  9159. 0x64, 0x11, 0x80, 0x44, 0x46, 0x46, 0x10, 0xe0, 0xa1, 0x1b, 0x50, 0xc5, 0x34, 0x34, 0xf1, 0xa9,
  9160. 0xfe, 0xda, 0x34, 0x34, 0x53, 0xb6, 0x70, 0x0b, 0xaa, 0x43, 0x5e, 0x3d, 0xf7, 0x81, 0x67, 0xa4,
  9161. 0xf0, 0x28, 0x25, 0xa4, 0x16, 0xe2, 0x93, 0xe8, 0x83, 0xd8, 0x5a, 0x2c, 0x7e, 0x0c, 0xbf, 0x99,
  9162. 0x91, 0xef, 0xe9, 0xa6, 0xe5, 0xe1, 0x7e, 0xe0, 0x78, 0x07, 0x5c, 0xd0, 0xb9, 0x81, 0xb3, 0xb7,
  9163. 0x2e, 0x60, 0xe8, 0x65, 0x00, 0xd3, 0xf6, 0x75, 0x6a, 0xc3, 0x7b, 0xbc, 0x1f, 0xa5, 0x09, 0x30,
  9164. 0x0c, 0x13, 0xb5, 0x9a, 0x69, 0xfb, 0x5c, 0xe4, 0xd7, 0xa1, 0x41, 0x62, 0x2e, 0x7d, 0x28, 0x02,
  9165. 0x87, 0x69, 0x6a, 0x4b, 0x2b, 0xb2, 0xdc, 0x61, 0x04, 0xa8, 0xcd, 0xb9, 0xd1, 0x87, 0x8f, 0x6e,
  9166. 0xc3, 0x0c, 0x0d, 0x7b, 0x44, 0xa0, 0x72, 0x21, 0xbb, 0xb9, 0xdc, 0xfa, 0xee, 0x51, 0x54, 0x66,
  9167. 0x7c, 0x9c, 0x0e, 0x6d, 0x41, 0xdd, 0xb0, 0x6d, 0x27, 0x30, 0x98, 0xc7, 0x67, 0x61, 0xcb, 0xe5,
  9168. 0x42, 0x36, 0xed, 0x08, 0x9f, 0xf1, 0x8a, 0x73, 0x40, 0xaf, 0xc1, 0x34, 0x9d, 0x12, 0xb8, 0x0f,
  9169. 0x3f, 0x3f, 0x76, 0x50, 0x68, 0x0c, 0x1f, 0xbd, 0x01, 0xb3, 0x8f, 0x2d, 0xdb, 0x74, 0x1e, 0xfb,
  9170. 0xdc, 0x9f, 0x4a, 0x26, 0xfc, 0x65, 0x56, 0x94, 0x22, 0x16, 0x34, 0xad, 0x9b, 0x50, 0x8f, 0xb5,
  9171. 0xef, 0x30, 0xf6, 0xdb, 0x7a, 0x13, 0x9a, 0xc9, 0x36, 0x1d, 0xca, 0xfe, 0x47, 0xb0, 0xa4, 0x8d,
  9172. 0xec, 0x48, 0x34, 0xb1, 0xbc, 0x79, 0x19, 0x66, 0xb8, 0x35, 0x30, 0x63, 0x3c, 0x55, 0xa4, 0x56,
  9173. 0x8d, 0xe3, 0xc6, 0x57, 0x2a, 0xfb, 0x86, 0x6d, 0x0e, 0xb0, 0xc7, 0x6b, 0x14, 0x2b, 0x95, 0x77,
  9174. 0x18, 0x54, 0x7d, 0x03, 0x8e, 0x27, 0xaa, 0xe5, 0x0b, 0xa5, 0xa7, 0x61, 0xde, 0x75, 0x4c, 0xdd,
  9175. 0x67, 0x60, 0x11, 0x4b, 0xd6, 0x88, 0xed, 0x08, 0xdc, 0x8e, 0x49, 0xc8, 0x7b, 0x81, 0xe3, 0xa6,
  9176. 0xc5, 0x9e, 0x8c, 0x7c, 0x15, 0x96, 0x93, 0xe4, 0xac, 0x7a, 0xf5, 0x2d, 0x58, 0xd1, 0xf0, 0xd0,
  9177. 0x79, 0x84, 0x8f, 0xca, 0xba, 0x05, 0xab, 0x69, 0x06, 0x9c, 0xf9, 0xfb, 0xb0, 0x12, 0x41, 0x7b,
  9178. 0x81, 0x11, 0x8c, 0xfc, 0x43, 0x31, 0xe7, 0xab, 0xc8, 0x07, 0x8e, 0xcf, 0x3a, 0xb2, 0xaa, 0x89,
  9179. 0x4f, 0x75, 0x05, 0xa6, 0xbb, 0x8e, 0xd9, 0xe9, 0xa2, 0x79, 0x28, 0x59, 0x2e, 0x27, 0x2e, 0x59,
  9180. 0xae, 0xda, 0x8f, 0xd7, 0xb9, 0xc9, 0xa2, 0x4e, 0x56, 0x75, 0x12, 0x15, 0xdd, 0x80, 0x79, 0xc3,
  9181. 0x34, 0x2d, 0x62, 0x48, 0xc6, 0x40, 0xb7, 0x5c, 0x11, 0x34, 0x2f, 0x26, 0xba, 0xbe, 0xd3, 0xd5,
  9182. 0x1a, 0x11, 0x62, 0xc7, 0xf5, 0xd5, 0x3b, 0x50, 0x8b, 0x02, 0xf4, 0x57, 0xa2, 0x15, 0x61, 0x69,
  9183. 0x7c, 0x2c, 0x17, 0x2e, 0x17, 0x37, 0x53, 0x93, 0x24, 0x17, 0xf3, 0x15, 0x80, 0xd0, 0xa9, 0x8a,
  9184. 0xf0, 0xf0, 0x78, 0x26, 0x4b, 0x2d, 0x86, 0xa8, 0xfe, 0x47, 0x25, 0xee, 0x64, 0x63, 0x4d, 0x36,
  9185. 0xc3, 0x26, 0x9b, 0x92, 0xd3, 0x2d, 0x1d, 0xd2, 0xe9, 0xbe, 0x08, 0xd3, 0x7e, 0x60, 0x04, 0x98,
  9186. 0xc7, 0xe3, 0x27, 0xb3, 0x09, 0x49, 0xc5, 0x58, 0x63, 0x98, 0xe8, 0x34, 0x40, 0xdf, 0xc3, 0x46,
  9187. 0x80, 0x4d, 0xdd, 0x60, 0xb3, 0x42, 0x59, 0xab, 0x71, 0x48, 0x3b, 0x20, 0x5e, 0x44, 0xac, 0x20,
  9188. 0x32, 0x26, 0xc2, 0x9c, 0x6e, 0x8c, 0xd6, 0x12, 0xa1, 0xf7, 0x9a, 0x19, 0xeb, 0xbd, 0x38, 0x29,
  9189. 0xf7, 0x5e, 0x91, 0x27, 0x9e, 0x2d, 0xf2, 0xc4, 0x8c, 0x68, 0x12, 0x4f, 0x5c, 0x2d, 0xf2, 0xc4,
  9190. 0x9c, 0x4d, 0xb1, 0x27, 0xce, 0x70, 0x24, 0xb5, 0x2c, 0x47, 0xf2, 0x59, 0xba, 0xce, 0xbf, 0x28,
  9191. 0xc1, 0x6a, 0x7a, 0x3c, 0x73, 0x3f, 0xf6, 0x32, 0xcc, 0xf8, 0x14, 0x52, 0xec, 0x3f, 0x39, 0x15,
  9192. 0xc7, 0x45, 0x77, 0xa0, 0x62, 0xd9, 0xbb, 0x0e, 0x1f, 0x78, 0x57, 0x0a, 0x69, 0x78, 0x4d, 0x57,
  9193. 0x3a, 0xf6, 0xae, 0xc3, 0x34, 0x48, 0x69, 0xd1, 0x3d, 0x38, 0x16, 0xae, 0xac, 0x7d, 0x9d, 0x31,
  9194. 0xc6, 0x22, 0xce, 0x93, 0xac, 0x34, 0x8c, 0xaa, 0x38, 0x47, 0x14, 0xd1, 0xf5, 0x38, 0x19, 0x89,
  9195. 0x71, 0x08, 0xba, 0x1f, 0x18, 0x43, 0x57, 0x58, 0x6c, 0x08, 0x68, 0xbd, 0x06, 0xb5, 0xb0, 0xfa,
  9196. 0x43, 0xe9, 0xae, 0x03, 0x4b, 0x89, 0x31, 0xc2, 0x16, 0x92, 0xe1, 0xa0, 0x52, 0x26, 0x1d, 0x54,
  9197. 0xea, 0x4f, 0x95, 0xf8, 0x40, 0x7f, 0xdb, 0x1a, 0x04, 0xd8, 0x4b, 0x0d, 0xf4, 0x57, 0x05, 0x5f,
  9198. 0x36, 0xca, 0xcf, 0x15, 0xf0, 0x65, 0xeb, 0x34, 0x3e, 0x62, 0xdf, 0x83, 0x79, 0x6a, 0xe2, 0xba,
  9199. 0x8f, 0x07, 0x34, 0x56, 0xe2, 0x7a, 0xbc, 0x9a, 0xcd, 0x80, 0xd5, 0xce, 0x86, 0x48, 0x8f, 0x53,
  9200. 0xb0, 0xbe, 0x69, 0x0c, 0xe2, 0xb0, 0xd6, 0x6d, 0x40, 0x69, 0xa4, 0x43, 0x69, 0xf0, 0x3e, 0xf1,
  9201. 0x97, 0x7e, 0x90, 0x39, 0x73, 0xef, 0x52, 0x31, 0x8a, 0x2d, 0x8f, 0x89, 0xaa, 0x71, 0x5c, 0xf5,
  9202. 0x5f, 0xcb, 0x00, 0x51, 0xe1, 0xe7, 0xdc, 0x51, 0xde, 0x0a, 0x1d, 0x16, 0x8b, 0x38, 0xd5, 0x6c,
  9203. 0x96, 0x99, 0xae, 0xaa, 0x23, 0xbb, 0x2a, 0x16, 0x7b, 0x3e, 0x97, 0xc3, 0xe0, 0xd0, 0x4e, 0x6a,
  9204. 0xf6, 0xf3, 0xe6, 0xa4, 0xde, 0x86, 0xe5, 0xa4, 0x99, 0x70, 0x0f, 0xf5, 0x02, 0x4c, 0x5b, 0x01,
  9205. 0x1e, 0xb2, 0xdd, 0xde, 0xc4, 0x86, 0x45, 0x0c, 0x9d, 0x21, 0xa9, 0x6f, 0xc2, 0xb2, 0xdc, 0x57,
  9206. 0x87, 0x0b, 0x5d, 0xd4, 0x7b, 0xc9, 0xd8, 0x27, 0x72, 0x95, 0xdc, 0x3e, 0x32, 0xb7, 0x7e, 0x92,
  9207. 0x34, 0x0c, 0x53, 0xfd, 0x81, 0x02, 0xc7, 0x13, 0x45, 0x39, 0x03, 0xff, 0xab, 0xa9, 0x01, 0xcc,
  9208. 0x7c, 0xeb, 0xcb, 0x05, 0xb5, 0x7c, 0x8a, 0xa3, 0xf8, 0xcb, 0xd0, 0x92, 0xbb, 0x47, 0x52, 0xed,
  9209. 0xcd, 0xc4, 0x50, 0x3e, 0x3f, 0x56, 0xe8, 0x70, 0x3c, 0x77, 0xe1, 0x64, 0x26, 0xe3, 0xb4, 0xce,
  9210. 0xcb, 0x13, 0xea, 0xfc, 0x7f, 0x4b, 0x71, 0x9f, 0xdd, 0x0e, 0x02, 0xcf, 0x7a, 0x30, 0x0a, 0xf0,
  9211. 0x27, 0x1b, 0x54, 0xad, 0x87, 0x23, 0x9b, 0xf9, 0xd9, 0x17, 0xb2, 0x29, 0xa3, 0xda, 0x33, 0xc7,
  9212. 0x78, 0x4f, 0x1e, 0xe3, 0x15, 0xca, 0xea, 0xc5, 0xb1, 0xac, 0x0a, 0x47, 0xfb, 0x67, 0x39, 0x88,
  9213. 0xff, 0x41, 0x81, 0x85, 0x44, 0xaf, 0xa0, 0xdb, 0x00, 0x46, 0x28, 0x3a, 0xb7, 0x8f, 0x73, 0xe3,
  9214. 0x9a, 0xa8, 0xc5, 0x68, 0xc8, 0x9c, 0xc8, 0xe2, 0xc5, 0x8c, 0x39, 0x31, 0x23, 0x5e, 0x0c, 0xc3,
  9215. 0xc5, 0xd7, 0xa3, 0xc5, 0x2e, 0xdb, 0x24, 0x55, 0x0b, 0x17, 0xbb, 0x8c, 0x56, 0x90, 0xa8, 0xbf,
  9216. 0x5e, 0x82, 0xa5, 0x2c, 0xee, 0xe8, 0x59, 0x28, 0xf7, 0xdd, 0x11, 0x6f, 0x89, 0x74, 0x34, 0xb4,
  9217. 0xe6, 0x8e, 0x76, 0x7c, 0x63, 0x0f, 0x6b, 0x04, 0x01, 0x5d, 0x85, 0x99, 0x21, 0x1e, 0x3a, 0xde,
  9218. 0x01, 0x97, 0x5b, 0xda, 0x6e, 0xb8, 0x4f, 0x4b, 0x18, 0x36, 0x47, 0x43, 0xd7, 0xa3, 0xb0, 0x9a,
  9219. 0xc9, 0xbb, 0x2a, 0xad, 0x1e, 0x58, 0x11, 0x23, 0x09, 0x63, 0xe9, 0xeb, 0x30, 0xeb, 0x7a, 0x4e,
  9220. 0x1f, 0xfb, 0x3e, 0xdf, 0x0d, 0x59, 0x4d, 0x9c, 0x55, 0x91, 0x22, 0x4e, 0xc3, 0x11, 0xd1, 0x2d,
  9221. 0x80, 0x28, 0x80, 0xe2, 0x33, 0x53, 0x2b, 0x37, 0xde, 0xf2, 0xb5, 0x18, 0xb6, 0xfa, 0xbd, 0x12,
  9222. 0x2c, 0x67, 0x6b, 0x0e, 0x5d, 0x8e, 0xeb, 0xe5, 0x64, 0x86, 0xaa, 0x65, 0xf5, 0xbc, 0x9a, 0x50,
  9223. 0xcf, 0x99, 0x0c, 0x8a, 0x2c, 0x2d, 0xdd, 0x4c, 0x6a, 0xe9, 0x6c, 0x06, 0x61, 0xb6, 0xb2, 0x6e,
  9224. 0x26, 0x95, 0x95, 0x45, 0x9a, 0xad, 0xb3, 0x76, 0x86, 0xce, 0xce, 0x67, 0xb5, 0x31, 0x5f, 0x75,
  9225. 0x7f, 0xab, 0xc0, 0x5c, 0x5c, 0x2e, 0x39, 0x64, 0x55, 0x12, 0x21, 0x2b, 0xda, 0x84, 0x45, 0x93,
  9226. 0xed, 0xdc, 0xea, 0x96, 0x1d, 0x60, 0x6f, 0xd7, 0xe8, 0x8b, 0xa8, 0xf0, 0x7c, 0x86, 0x5d, 0x74,
  9227. 0x04, 0x0e, 0x13, 0xbc, 0xc9, 0x69, 0x43, 0x30, 0x69, 0x41, 0xc8, 0x47, 0x78, 0xad, 0x09, 0x18,
  9228. 0xc5, 0x88, 0xd4, 0x7f, 0x51, 0xe0, 0x58, 0x86, 0x82, 0xc7, 0x34, 0x64, 0x27, 0xbf, 0x21, 0x17,
  9229. 0xf2, 0xbb, 0x6e, 0x6c, 0x7b, 0xde, 0xc9, 0x68, 0xcf, 0xe4, 0xfc, 0xe2, 0xcd, 0xfa, 0x99, 0x02,
  9230. 0xc7, 0x33, 0xb1, 0x32, 0xb7, 0x57, 0xaf, 0x43, 0xd5, 0x7b, 0xa2, 0x3f, 0x38, 0x08, 0xb0, 0x9f,
  9231. 0x35, 0xb0, 0x77, 0x62, 0x67, 0x28, 0xb3, 0xde, 0x93, 0x3b, 0x04, 0x0f, 0xbd, 0x0c, 0x35, 0xef,
  9232. 0x89, 0x8e, 0x3d, 0xcf, 0xf1, 0x84, 0x2f, 0xca, 0x25, 0xaa, 0x7a, 0x4f, 0x36, 0x28, 0x22, 0xa9,
  9233. 0x29, 0x10, 0x35, 0x55, 0xc6, 0xd4, 0x14, 0x44, 0x35, 0x05, 0x61, 0x4d, 0xd3, 0x63, 0x6a, 0x0a,
  9234. 0x78, 0x4d, 0xea, 0x1f, 0x96, 0xe0, 0x54, 0x91, 0xba, 0x3e, 0x31, 0x45, 0x6c, 0x00, 0xf2, 0x9e,
  9235. 0xe8, 0xae, 0xd1, 0x7f, 0x88, 0x03, 0x5f, 0x37, 0x3d, 0xc7, 0x75, 0xb1, 0x39, 0x4e, 0x23, 0x4d,
  9236. 0xef, 0x49, 0x97, 0x51, 0xac, 0x33, 0x82, 0x23, 0x69, 0x66, 0x03, 0x50, 0x90, 0xae, 0x7a, 0x8c,
  9237. 0x8a, 0x9a, 0x41, 0xa2, 0x6a, 0xf5, 0x43, 0x98, 0x8b, 0x7b, 0x88, 0x31, 0xb6, 0xff, 0x3a, 0x34,
  9238. 0xb8, 0x07, 0xd1, 0xfb, 0xce, 0xc8, 0x0e, 0xc6, 0x29, 0x6a, 0x8e, 0x63, 0xaf, 0x11, 0x64, 0xf5,
  9239. 0xeb, 0xe1, 0x70, 0xfb, 0xd4, 0xaa, 0xfc, 0x77, 0x05, 0x6a, 0x9d, 0xa1, 0xb1, 0x87, 0x7b, 0x2e,
  9240. 0xee, 0x93, 0x99, 0xde, 0x22, 0x1f, 0xbc, 0xdf, 0xd9, 0x07, 0x7a, 0x47, 0x8e, 0x5a, 0x58, 0x9c,
  9241. 0xfa, 0xac, 0x74, 0x8e, 0x28, 0x38, 0x8c, 0x59, 0x98, 0x5c, 0x83, 0xa5, 0x91, 0x8f, 0x3d, 0xdd,
  9242. 0x77, 0x71, 0xdf, 0xda, 0xb5, 0xb0, 0xa9, 0xb3, 0xea, 0x10, 0xad, 0x0e, 0x91, 0xb2, 0x9e, 0x28,
  9243. 0xa2, 0x3c, 0x3f, 0x76, 0x84, 0x72, 0x1d, 0xaa, 0x5f, 0xc4, 0x07, 0x6c, 0x0d, 0x3f, 0x21, 0x9d,
  9244. 0xfa, 0xed, 0x0a, 0xac, 0xe4, 0x9c, 0xee, 0xd0, 0x05, 0xa0, 0x3b, 0xd2, 0x5d, 0xec, 0x59, 0x8e,
  9245. 0x29, 0x3a, 0xa3, 0xef, 0x8e, 0xba, 0x14, 0x80, 0x4e, 0x02, 0xf9, 0xd0, 0xbf, 0x3e, 0x72, 0x78,
  9246. 0x8c, 0x59, 0xd6, 0xaa, 0x7d, 0x77, 0xf4, 0x25, 0xf2, 0x2d, 0x68, 0xfd, 0x7d, 0xc3, 0xc3, 0xcc,
  9247. 0x2d, 0x30, 0xda, 0x1e, 0x05, 0xa0, 0x17, 0xe1, 0x38, 0x9b, 0xf2, 0xf4, 0x81, 0x35, 0xb4, 0x88,
  9248. 0xf3, 0x8c, 0x59, 0x7c, 0x59, 0x43, 0xac, 0xf0, 0x1e, 0x29, 0xeb, 0xd8, 0xcc, 0xc6, 0x55, 0x68,
  9249. 0x38, 0xce, 0x50, 0xf7, 0xfb, 0x8e, 0x87, 0x75, 0xc3, 0xfc, 0x90, 0x9a, 0x77, 0x59, 0xab, 0x3b,
  9250. 0xce, 0xb0, 0x47, 0x60, 0x6d, 0xf3, 0x43, 0x74, 0x16, 0xea, 0x7d, 0x77, 0xe4, 0xe3, 0x40, 0x27,
  9251. 0x7f, 0xe8, 0x1e, 0x5c, 0x4d, 0x03, 0x06, 0x5a, 0x73, 0x47, 0x7e, 0x0c, 0x61, 0x48, 0x56, 0x5d,
  9252. 0xb3, 0x71, 0x84, 0xfb, 0x78, 0x48, 0x0f, 0xb1, 0xf7, 0x47, 0x7b, 0xd8, 0x35, 0xf6, 0x30, 0x13,
  9253. 0x4d, 0x6c, 0xa4, 0x49, 0x87, 0xd8, 0xef, 0x70, 0x14, 0x2a, 0xa0, 0x36, 0xbf, 0x1f, 0xff, 0xf4,
  9254. 0xd1, 0xbb, 0x30, 0x3b, 0xb2, 0x69, 0xbf, 0xae, 0xd6, 0x28, 0xed, 0xb5, 0x09, 0xce, 0xd2, 0xae,
  9255. 0xec, 0x30, 0x12, 0x7e, 0xb4, 0xc7, 0x19, 0xa0, 0x5b, 0xd0, 0xe2, 0x8a, 0xf2, 0x1f, 0x1b, 0x6e,
  9256. 0x52, 0x5b, 0x40, 0x55, 0xb0, 0xcc, 0x30, 0x7a, 0x8f, 0x0d, 0x37, 0xae, 0xb1, 0xd6, 0x2d, 0x98,
  9257. 0x8b, 0x33, 0x3d, 0x94, 0x2d, 0xdd, 0x81, 0x86, 0xd4, 0x48, 0xd2, 0xdb, 0x54, 0x29, 0xbe, 0xf5,
  9258. 0x0d, 0x31, 0x64, 0xaa, 0x04, 0xd0, 0xb3, 0xbe, 0x41, 0x53, 0x0f, 0xa8, 0x64, 0x94, 0x4f, 0x45,
  9259. 0x63, 0x1f, 0xaa, 0x01, 0x0d, 0xe9, 0xb4, 0x9f, 0x78, 0x5a, 0x7a, 0xac, 0xcf, 0x3d, 0x2d, 0xf9,
  9260. 0x4d, 0x60, 0x9e, 0x33, 0x10, 0x12, 0xd0, 0xdf, 0x04, 0x46, 0xcf, 0x95, 0xd9, 0x29, 0x19, 0xfd,
  9261. 0x4d, 0xab, 0xc0, 0x8f, 0x78, 0xda, 0x4e, 0x4d, 0x63, 0x1f, 0xea, 0xef, 0x28, 0x00, 0x6b, 0x86,
  9262. 0x6b, 0x3c, 0xb0, 0x06, 0x56, 0x70, 0x80, 0x2e, 0x42, 0xd3, 0x30, 0x4d, 0xbd, 0x2f, 0x20, 0x16,
  9263. 0x16, 0x79, 0x54, 0x0b, 0x86, 0x69, 0xae, 0xc5, 0xc0, 0xe8, 0x79, 0x58, 0x24, 0x7e, 0x52, 0xc6,
  9264. 0x65, 0x89, 0x55, 0x4d, 0x52, 0x20, 0x21, 0xdf, 0x80, 0x55, 0xc2, 0xd7, 0x18, 0x3e, 0xb0, 0xb0,
  9265. 0x1d, 0xc8, 0x34, 0x2c, 0xe3, 0x6a, 0xd9, 0x30, 0xcd, 0x36, 0x2b, 0x8e, 0x53, 0xaa, 0x7f, 0x33,
  9266. 0x03, 0xa7, 0xe5, 0x1e, 0x4f, 0x26, 0x60, 0xdc, 0x82, 0xb9, 0x84, 0xbc, 0xa9, 0xd4, 0x85, 0xa8,
  9267. 0x85, 0x9a, 0x84, 0x9b, 0x48, 0x31, 0x28, 0xa5, 0x52, 0x0c, 0x32, 0x93, 0x3b, 0xca, 0x9f, 0x50,
  9268. 0x72, 0x47, 0xe5, 0x63, 0x26, 0x77, 0x4c, 0x1f, 0x35, 0xb9, 0x63, 0x6e, 0xe2, 0xe4, 0x8e, 0x67,
  9269. 0xe9, 0xe6, 0x90, 0xa8, 0x91, 0xce, 0xf2, 0xcc, 0x27, 0x34, 0x42, 0xee, 0xb6, 0x48, 0xee, 0x4b,
  9270. 0x24, 0x81, 0xcc, 0x1e, 0x26, 0x09, 0xa4, 0x9a, 0x9b, 0x04, 0x72, 0x0e, 0xe6, 0x6c, 0x47, 0xb7,
  9271. 0xf1, 0x63, 0x9d, 0x74, 0x8b, 0xbf, 0x5a, 0x67, 0x7d, 0x64, 0x3b, 0x9b, 0xf8, 0x71, 0x97, 0x40,
  9272. 0xd0, 0x79, 0x98, 0x1b, 0x1a, 0xfe, 0x43, 0x6c, 0xd2, 0x6c, 0x0c, 0x7f, 0xb5, 0x41, 0xed, 0xa9,
  9273. 0xce, 0x60, 0x5d, 0x02, 0x42, 0xcf, 0x40, 0x28, 0x07, 0x47, 0x9a, 0xa7, 0x48, 0x0d, 0x01, 0x65,
  9274. 0x68, 0xb1, 0x84, 0x92, 0x85, 0x23, 0x26, 0x94, 0x34, 0x0f, 0x93, 0x50, 0x72, 0x19, 0x9a, 0xe2,
  9275. 0xb7, 0xc8, 0x28, 0x61, 0x07, 0x04, 0x34, 0x99, 0x64, 0x41, 0x94, 0x89, 0xac, 0x91, 0xbc, 0xfc,
  9276. 0x13, 0x28, 0xcc, 0x3f, 0xf9, 0x23, 0x85, 0x2f, 0x55, 0xc3, 0x01, 0xc4, 0x0f, 0xbe, 0xa5, 0x9c,
  9277. 0x05, 0xe5, 0x28, 0x39, 0x0b, 0x68, 0x3b, 0x37, 0xab, 0xe3, 0x62, 0x3e, 0xa7, 0x71, 0x79, 0x1d,
  9278. 0xea, 0xfd, 0x70, 0x15, 0xf9, 0x49, 0x64, 0xa7, 0xa9, 0xff, 0xa5, 0xc0, 0x69, 0xce, 0x2f, 0x27,
  9279. 0x85, 0x2b, 0xc3, 0xca, 0x95, 0x1c, 0x2b, 0xef, 0x7b, 0xd8, 0xc4, 0x76, 0x60, 0x19, 0x03, 0x1a,
  9280. 0x97, 0x88, 0x83, 0xe1, 0x08, 0x4c, 0x43, 0xa3, 0xf3, 0x30, 0xc7, 0xb2, 0x2c, 0xf9, 0x82, 0x92,
  9281. 0x25, 0x53, 0xd6, 0x69, 0xa2, 0x25, 0x5f, 0x33, 0x6e, 0x65, 0x79, 0x96, 0x4a, 0xee, 0x4e, 0xc4,
  9282. 0x58, 0x07, 0xa3, 0x3a, 0xb0, 0x92, 0x73, 0x44, 0x9f, 0xd9, 0x4d, 0x4a, 0xba, 0x9b, 0x0a, 0x95,
  9283. 0x94, 0xee, 0xa6, 0x6f, 0x2b, 0x70, 0x36, 0xb5, 0xb0, 0xfd, 0xec, 0x35, 0xab, 0xfe, 0xa9, 0x12,
  9284. 0xda, 0x4f, 0xd2, 0xe4, 0xd7, 0xd2, 0x26, 0xff, 0x4c, 0xd1, 0x3a, 0x3d, 0xd3, 0xe8, 0xdf, 0xcb,
  9285. 0x35, 0xfa, 0xe7, 0x0b, 0xd7, 0xfc, 0xe3, 0xf4, 0xf9, 0x6f, 0x0a, 0x9c, 0xc8, 0x15, 0x20, 0x11,
  9286. 0x0f, 0x2a, 0xc9, 0x78, 0x90, 0xc7, 0x92, 0x51, 0x50, 0xcf, 0x62, 0x49, 0x1a, 0xb7, 0xf3, 0xa0,
  9287. 0x4d, 0x1f, 0x1a, 0x4f, 0xac, 0xe1, 0x68, 0xc8, 0x83, 0x49, 0xc2, 0xee, 0x3e, 0x83, 0x1c, 0x25,
  9288. 0x9a, 0xbc, 0x0a, 0x4b, 0xcc, 0xd1, 0xd3, 0x80, 0x26, 0xa2, 0x60, 0x41, 0xe5, 0x22, 0x2b, 0x23,
  9289. 0xb1, 0x0d, 0x27, 0x50, 0xdb, 0xb0, 0x18, 0x36, 0xab, 0x30, 0x45, 0x29, 0x96, 0x72, 0x54, 0x92,
  9290. 0x53, 0x8e, 0x6c, 0x98, 0x59, 0xc7, 0x8f, 0xac, 0x3e, 0xfe, 0x44, 0xb2, 0x9d, 0xcf, 0x41, 0xdd,
  9291. 0xc5, 0xde, 0xd0, 0xf2, 0xfd, 0x70, 0x56, 0xaf, 0x69, 0x71, 0x90, 0x7a, 0x16, 0x6a, 0x6b, 0xeb,
  9292. 0x1d, 0x5e, 0x65, 0x86, 0xa8, 0xea, 0x7f, 0xcf, 0xc0, 0x42, 0xd2, 0xc6, 0x6e, 0xa6, 0x52, 0xa0,
  9293. 0x4e, 0x67, 0x6e, 0x9f, 0x65, 0xec, 0x1b, 0x3f, 0x2f, 0x56, 0x54, 0xa5, 0x74, 0x7e, 0x40, 0xb8,
  9294. 0x6a, 0x12, 0x0b, 0xad, 0x55, 0x98, 0xed, 0x3b, 0xc3, 0xa1, 0x61, 0x9b, 0x22, 0x67, 0x9d, 0x7f,
  9295. 0x12, 0x49, 0x0d, 0x6f, 0x8f, 0xed, 0x18, 0xd7, 0x34, 0xfa, 0x9b, 0x98, 0x00, 0x71, 0x86, 0x96,
  9296. 0x4d, 0x93, 0xa8, 0x68, 0x2f, 0xd5, 0x34, 0xe0, 0xa0, 0x75, 0xcb, 0x43, 0x17, 0xa0, 0x82, 0xed,
  9297. 0x47, 0xe2, 0x28, 0x49, 0xda, 0xb9, 0x14, 0x6b, 0x22, 0x8d, 0x62, 0xa0, 0x8b, 0x30, 0x33, 0x24,
  9298. 0x66, 0x25, 0x0e, 0xda, 0x17, 0x53, 0xb9, 0xdd, 0x1a, 0x47, 0x40, 0x2f, 0xc0, 0xac, 0x49, 0xb5,
  9299. 0x27, 0x16, 0x01, 0x48, 0x4a, 0xc7, 0xa2, 0x45, 0x9a, 0x40, 0x41, 0x6f, 0x85, 0xdb, 0xe6, 0xb5,
  9300. 0xf4, 0x79, 0x56, 0x42, 0xcd, 0x99, 0x3b, 0xe6, 0x9b, 0xf2, 0xda, 0x13, 0xd2, 0x9b, 0xef, 0x49,
  9301. 0x2e, 0xc5, 0x2b, 0xd0, 0x13, 0x50, 0x1d, 0x38, 0x7b, 0xcc, 0x7a, 0xea, 0xec, 0xc2, 0xc3, 0xc0,
  9302. 0xd9, 0xa3, 0xc6, 0xb3, 0x04, 0xd3, 0x7e, 0x60, 0x5a, 0x36, 0x8d, 0xa5, 0xaa, 0x1a, 0xfb, 0x20,
  9303. 0x83, 0x94, 0xfe, 0xd0, 0x1d, 0xbb, 0x8f, 0x57, 0x1b, 0xb4, 0xa8, 0x46, 0x21, 0x5b, 0x76, 0x9f,
  9304. 0xae, 0x29, 0x83, 0xe0, 0x60, 0x75, 0x9e, 0xc2, 0xc9, 0xcf, 0x68, 0xf7, 0x7a, 0x21, 0x67, 0xf7,
  9305. 0x3a, 0x21, 0x70, 0xc6, 0xee, 0x75, 0x33, 0x77, 0xce, 0x48, 0xd2, 0x0a, 0x12, 0x12, 0x47, 0xae,
  9306. 0xad, 0x77, 0x74, 0xd1, 0x35, 0x8b, 0xe9, 0x54, 0xf1, 0xd0, 0xec, 0x35, 0x08, 0x7f, 0x7e, 0xa6,
  9307. 0x87, 0x07, 0xdf, 0x53, 0x60, 0x79, 0x8d, 0x1e, 0x9d, 0xc6, 0x7c, 0xe3, 0x61, 0xb2, 0x8e, 0x5e,
  9308. 0x0a, 0x53, 0xc1, 0x32, 0xf2, 0x79, 0x92, 0x9a, 0x12, 0x99, 0x60, 0x6b, 0x30, 0x2f, 0xd8, 0x72,
  9309. 0xe2, 0xf2, 0x04, 0x79, 0x64, 0x0d, 0x3f, 0xfe, 0xa9, 0xbe, 0x0e, 0x2b, 0x29, 0xc9, 0xf9, 0x01,
  9310. 0x56, 0xf2, 0x4e, 0x01, 0x13, 0x3c, 0x7e, 0xa7, 0x40, 0xbd, 0x05, 0xc7, 0x7b, 0x81, 0xe1, 0x05,
  9311. 0xa9, 0x66, 0x4f, 0x40, 0x4b, 0x33, 0xc4, 0x64, 0x5a, 0x9e, 0xc4, 0xd5, 0x83, 0xa5, 0x5e, 0xe0,
  9312. 0xb8, 0x47, 0x60, 0x4a, 0xfc, 0x0e, 0x69, 0xb9, 0x33, 0x12, 0xf3, 0x8c, 0xf8, 0x54, 0x57, 0x58,
  9313. 0x3e, 0x5b, 0xba, 0xb6, 0x2f, 0xc0, 0x32, 0x4b, 0x27, 0x3b, 0x4a, 0x23, 0x4e, 0x88, 0x64, 0xb6,
  9314. 0x34, 0xdf, 0xbb, 0x70, 0x4c, 0xda, 0x52, 0xe7, 0xe9, 0x17, 0xd7, 0xe4, 0xf4, 0x8b, 0xfc, 0xd3,
  9315. 0x8b, 0x30, 0xfb, 0xe2, 0x3b, 0xa5, 0x98, 0x1f, 0xcf, 0x39, 0x83, 0x7d, 0x45, 0x4e, 0xbe, 0x38,
  9316. 0x9b, 0xcf, 0x55, 0xca, 0xbd, 0x48, 0x5b, 0x67, 0x39, 0xc3, 0x3a, 0x77, 0x52, 0x07, 0xbc, 0x95,
  9317. 0x74, 0xf2, 0x4c, 0x42, 0xc2, 0x4f, 0xe5, 0x68, 0xf7, 0x1e, 0x4b, 0xd0, 0x08, 0xab, 0x0e, 0x4f,
  9318. 0x75, 0x5f, 0x4a, 0x9c, 0xea, 0x9e, 0x2c, 0x90, 0x34, 0x3c, 0xcf, 0xfd, 0x4e, 0x05, 0x6a, 0x61,
  9319. 0x59, 0x4a, 0xc3, 0x69, 0x55, 0x95, 0x32, 0x54, 0x15, 0x9f, 0x5f, 0xcb, 0x47, 0x9c, 0x5f, 0x2b,
  9320. 0x13, 0xcc, 0xaf, 0x27, 0xa1, 0x46, 0x7f, 0xd0, 0x9c, 0x7a, 0x36, 0x5f, 0x56, 0x29, 0x40, 0xc3,
  9321. 0xbb, 0x91, 0x89, 0xcd, 0x4c, 0x68, 0x62, 0x89, 0x64, 0x90, 0xd9, 0x64, 0x32, 0xc8, 0xcd, 0x70,
  9322. 0xee, 0xab, 0xa6, 0x0f, 0x5f, 0x42, 0x8e, 0x99, 0xb3, 0x5e, 0x62, 0xc7, 0xb5, 0x96, 0xde, 0x71,
  9323. 0x8d, 0xe8, 0x3f, 0xb7, 0x87, 0xc3, 0x5b, 0x2c, 0xc3, 0x23, 0x6e, 0x67, 0xdc, 0x47, 0xbe, 0x22,
  9324. 0x1d, 0xae, 0x29, 0x19, 0x73, 0x55, 0xe8, 0x17, 0xe2, 0x07, 0x6a, 0x3b, 0xb0, 0x9c, 0xcc, 0x0c,
  9325. 0x3b, 0x94, 0x8f, 0xcb, 0x49, 0x51, 0xfd, 0xcd, 0x78, 0xc4, 0x97, 0x93, 0x8f, 0x79, 0x33, 0x95,
  9326. 0x3a, 0x30, 0xb1, 0x85, 0x5e, 0x93, 0xb3, 0x8c, 0x0e, 0x6d, 0x57, 0xa9, 0x24, 0x23, 0x1a, 0x91,
  9327. 0x18, 0x1e, 0x2f, 0x66, 0xc1, 0x79, 0x8d, 0x43, 0xda, 0x74, 0x65, 0xb0, 0x6b, 0xd9, 0x96, 0xbf,
  9328. 0xcf, 0xca, 0x67, 0xd8, 0xca, 0x40, 0x80, 0xda, 0x74, 0xd7, 0x12, 0x3f, 0xb1, 0x02, 0xbd, 0xef,
  9329. 0x98, 0x98, 0x5a, 0xed, 0xb4, 0x56, 0x25, 0x80, 0x35, 0xc7, 0xc4, 0xd1, 0x78, 0xaa, 0x1e, 0x76,
  9330. 0x3c, 0xd5, 0x12, 0xe3, 0x69, 0x19, 0x66, 0x3c, 0x6c, 0xf8, 0x8e, 0xcd, 0x36, 0x33, 0x34, 0xfe,
  9331. 0x45, 0x3a, 0x62, 0x88, 0x7d, 0x9f, 0xd4, 0xc1, 0x03, 0x30, 0xfe, 0x19, 0x0b, 0x16, 0xe7, 0x0a,
  9332. 0x82, 0xc5, 0x82, 0x6c, 0xcf, 0x44, 0xb0, 0xd8, 0x28, 0x08, 0x16, 0x27, 0x4a, 0xf6, 0x8c, 0xc2,
  9333. 0xe2, 0xf9, 0x71, 0x61, 0x71, 0x3c, 0xae, 0x5c, 0x90, 0xe3, 0xca, 0xd7, 0xe3, 0x2b, 0xd4, 0x66,
  9334. 0xfa, 0xec, 0xbb, 0xf8, 0x0e, 0xc9, 0x67, 0x38, 0x80, 0xff, 0x51, 0x81, 0x95, 0xd4, 0x80, 0xe3,
  9335. 0x43, 0xf8, 0xa5, 0x44, 0x1a, 0x69, 0x61, 0xfe, 0xa6, 0xc8, 0x22, 0x6d, 0x4b, 0x59, 0xa4, 0x97,
  9336. 0x8b, 0x48, 0x72, 0x92, 0x48, 0x8f, 0x9e, 0xd8, 0xf9, 0x2d, 0x05, 0x50, 0xc6, 0x1a, 0xfc, 0xa6,
  9337. 0x88, 0xd6, 0x0f, 0xb1, 0x5b, 0xc6, 0x03, 0xf6, 0xb7, 0xa2, 0x80, 0xbd, 0x74, 0x98, 0x7d, 0x87,
  9338. 0x30, 0xe3, 0xe4, 0xc7, 0x25, 0x38, 0xbb, 0xe3, 0x9a, 0x89, 0x30, 0x92, 0x63, 0x4d, 0xee, 0xd9,
  9339. 0x6e, 0xca, 0xe9, 0x32, 0x47, 0x6c, 0x42, 0xf9, 0x28, 0x4d, 0x40, 0x5f, 0xcb, 0x4a, 0x68, 0x7a,
  9340. 0x5d, 0x3a, 0x7a, 0x2c, 0x6e, 0xe0, 0x98, 0xe9, 0xeb, 0xe3, 0x9a, 0xb0, 0x0a, 0xe7, 0xf2, 0x05,
  9341. 0xe0, 0x21, 0xe7, 0x2f, 0xc3, 0xc2, 0xc6, 0x13, 0xdc, 0xef, 0x1d, 0xd8, 0xfd, 0x43, 0x68, 0xbd,
  9342. 0x09, 0xe5, 0xfe, 0xd0, 0xe4, 0xa7, 0x23, 0xe4, 0x67, 0x3c, 0x8a, 0x2e, 0xcb, 0x51, 0xb4, 0x0e,
  9343. 0xcd, 0xa8, 0x06, 0x3e, 0x80, 0x96, 0xc9, 0x00, 0x32, 0x09, 0x32, 0x61, 0x3e, 0xa7, 0xf1, 0x2f,
  9344. 0x0e, 0xc7, 0x1e, 0xbb, 0xa0, 0xc2, 0xe0, 0xd8, 0xf3, 0x64, 0xaf, 0x5d, 0x96, 0xbd, 0xb6, 0xfa,
  9345. 0x5d, 0x05, 0xea, 0xa4, 0x86, 0x8f, 0x25, 0x3f, 0x5f, 0xca, 0x96, 0xa3, 0xa5, 0x6c, 0xb8, 0x22,
  9346. 0xae, 0xc4, 0x57, 0xc4, 0x91, 0xe4, 0xd3, 0x14, 0x9c, 0x96, 0x7c, 0x26, 0x84, 0x63, 0xcf, 0x53,
  9347. 0xcf, 0xc1, 0x1c, 0x93, 0x8d, 0xb7, 0xbc, 0x09, 0xe5, 0x91, 0x37, 0x10, 0xfd, 0x37, 0xf2, 0x06,
  9348. 0xea, 0x37, 0x15, 0x68, 0xb4, 0x83, 0xc0, 0xe8, 0xef, 0x1f, 0xa2, 0x01, 0xa1, 0x70, 0xa5, 0xb8,
  9349. 0x70, 0xe9, 0x46, 0x44, 0xe2, 0x56, 0x72, 0xc4, 0x9d, 0x96, 0xc4, 0x55, 0x61, 0x5e, 0xc8, 0x92,
  9350. 0x2b, 0xf0, 0x26, 0xa0, 0xae, 0xe3, 0x05, 0x6f, 0x3b, 0xde, 0x63, 0xc3, 0x33, 0x0f, 0xb7, 0x6a,
  9351. 0x45, 0x50, 0xe1, 0x4f, 0x06, 0x94, 0x2f, 0x4c, 0x6b, 0xf4, 0xb7, 0xfa, 0x1c, 0x1c, 0x93, 0xf8,
  9352. 0xe5, 0x56, 0x7c, 0x0b, 0xea, 0x74, 0x16, 0xe6, 0x0b, 0x9a, 0xe7, 0xe3, 0xe7, 0xf5, 0x63, 0x66,
  9353. 0x6b, 0x75, 0x1d, 0x16, 0x49, 0x3c, 0x46, 0xe1, 0xa1, 0x7f, 0xb9, 0x9a, 0x88, 0xf9, 0x57, 0x52,
  9354. 0x2c, 0x12, 0xf1, 0xfe, 0x4f, 0x15, 0x98, 0xa6, 0xf0, 0x54, 0x8c, 0x74, 0x92, 0xcc, 0x73, 0xae,
  9355. 0xa3, 0x07, 0xc6, 0x5e, 0xf8, 0x1c, 0x03, 0x01, 0x6c, 0x1b, 0x7b, 0xf4, 0x44, 0x87, 0x16, 0x9a,
  9356. 0xd6, 0x1e, 0xf6, 0x03, 0x71, 0x42, 0x58, 0x27, 0xb0, 0x75, 0x06, 0x22, 0x8a, 0xa1, 0x07, 0xa9,
  9357. 0x15, 0x7a, 0x5e, 0x4a, 0x7f, 0xa3, 0x0b, 0xec, 0x6e, 0x63, 0xf1, 0xb1, 0x18, 0xbd, 0xf3, 0xd8,
  9358. 0x82, 0x6a, 0xe2, 0x3c, 0x2b, 0xfc, 0x46, 0x17, 0xa1, 0x42, 0xf7, 0x9f, 0x67, 0x8b, 0xb4, 0x44,
  9359. 0x51, 0x88, 0x55, 0xb8, 0x96, 0x6d, 0x63, 0x93, 0x06, 0x40, 0x55, 0x8d, 0x7f, 0xa9, 0x6f, 0x01,
  9360. 0x8a, 0x2b, 0x8f, 0x77, 0xd0, 0x45, 0x98, 0xa1, 0xba, 0x15, 0x41, 0xec, 0x62, 0x8a, 0xb5, 0xc6,
  9361. 0x11, 0xd4, 0xaf, 0x02, 0x62, 0x75, 0x49, 0x81, 0xeb, 0x61, 0x3a, 0xb0, 0x20, 0x84, 0xfd, 0x33,
  9362. 0x05, 0x8e, 0x49, 0xdc, 0xb9, 0x7c, 0xcf, 0xc9, 0xec, 0x33, 0xc4, 0xe3, 0xac, 0xdf, 0x90, 0x66,
  9363. 0xe6, 0x8b, 0x69, 0x31, 0x7e, 0x4e, 0xb3, 0xf2, 0x3f, 0x29, 0x00, 0xed, 0x51, 0xb0, 0xcf, 0x37,
  9364. 0x5a, 0xe3, 0x9d, 0xa8, 0x24, 0x3a, 0xb1, 0x05, 0x55, 0xd7, 0xf0, 0xfd, 0xc7, 0x8e, 0x27, 0x16,
  9365. 0x91, 0xe1, 0x37, 0xdd, 0x1e, 0x1d, 0xf1, 0x37, 0x1a, 0x6a, 0x1a, 0xfd, 0x8d, 0x9e, 0x81, 0x79,
  9366. 0xf6, 0x4e, 0x88, 0x6e, 0x98, 0xa6, 0x27, 0x72, 0x00, 0x6b, 0x5a, 0x83, 0x41, 0xdb, 0x0c, 0x48,
  9367. 0xd0, 0x2c, 0x7a, 0x1a, 0x11, 0x1c, 0xe8, 0x81, 0xf3, 0x10, 0xdb, 0x7c, 0x61, 0xd8, 0x10, 0xd0,
  9368. 0x6d, 0x02, 0x64, 0xc7, 0x8d, 0x7b, 0x96, 0x1f, 0x78, 0x02, 0x4d, 0x1c, 0x9a, 0x72, 0x28, 0x45,
  9369. 0x53, 0xff, 0x58, 0x81, 0x66, 0x77, 0x34, 0x18, 0x30, 0xe5, 0x1e, 0xa5, 0x93, 0x2f, 0xf1, 0xa6,
  9370. 0x94, 0xd2, 0x26, 0x1f, 0x29, 0x8a, 0x37, 0xf1, 0x13, 0xd9, 0xcb, 0xba, 0x06, 0x8b, 0x31, 0x89,
  9371. 0xb9, 0xe1, 0x48, 0x91, 0xbd, 0x22, 0x47, 0xf6, 0x6a, 0x1b, 0x10, 0xdb, 0xbe, 0x39, 0x72, 0x2b,
  9372. 0xd5, 0xe3, 0x70, 0x4c, 0x62, 0xc1, 0xa7, 0xe2, 0x4b, 0xd0, 0xe0, 0xf9, 0x68, 0xdc, 0x20, 0x4e,
  9373. 0x40, 0x95, 0xb8, 0xd4, 0xbe, 0x65, 0x8a, 0x0c, 0x89, 0x59, 0xd7, 0x31, 0xd7, 0x2c, 0xd3, 0x53,
  9374. 0xbf, 0x04, 0x0d, 0x7e, 0xe1, 0x9d, 0xe3, 0xde, 0x86, 0x79, 0x7e, 0x3e, 0xa8, 0x4b, 0x37, 0x44,
  9375. 0x4f, 0x64, 0x24, 0x3d, 0x0a, 0x55, 0xd8, 0xf1, 0x4f, 0xf5, 0x6b, 0xd0, 0x62, 0xd1, 0x82, 0xc4,
  9376. 0x58, 0x34, 0xf0, 0x36, 0x88, 0xeb, 0x13, 0x05, 0xfc, 0x65, 0xca, 0x86, 0x17, 0xff, 0x54, 0x4f,
  9377. 0xc3, 0xc9, 0x4c, 0xfe, 0xbc, 0xf5, 0x2e, 0x34, 0xa3, 0x02, 0x76, 0x8d, 0x31, 0x4c, 0xfb, 0x50,
  9378. 0x62, 0x69, 0x1f, 0xcb, 0x61, 0xec, 0x5d, 0x12, 0x33, 0x17, 0x0d, 0xaf, 0xa3, 0x15, 0x57, 0x39,
  9379. 0x6f, 0xc5, 0x55, 0x91, 0x56, 0x5c, 0xea, 0xfd, 0x50, 0x87, 0x7c, 0xdd, 0xfb, 0x3a, 0x5d, 0x99,
  9380. 0xb3, 0xba, 0x85, 0x53, 0x3b, 0x95, 0xdd, 0x3e, 0x86, 0xa4, 0xc5, 0xf0, 0xd5, 0x8b, 0xd0, 0x90,
  9381. 0xdd, 0x5b, 0xcc, 0x63, 0x29, 0x29, 0x8f, 0x35, 0x9f, 0x70, 0x56, 0x2f, 0x26, 0x96, 0x14, 0x59,
  9382. 0x7a, 0x4d, 0x2c, 0x28, 0x6e, 0x48, 0x6e, 0xeb, 0x69, 0xe9, 0x88, 0xfe, 0xe7, 0xe4, 0xb1, 0x96,
  9383. 0xb8, 0x1f, 0x7f, 0xdb, 0x27, 0xf4, 0xbc, 0xa1, 0xea, 0x53, 0x50, 0xdf, 0xc9, 0x7b, 0x76, 0xa4,
  9384. 0x22, 0xf2, 0xca, 0x5e, 0x85, 0xa5, 0xb7, 0xad, 0x01, 0xf6, 0x0f, 0xfc, 0x00, 0x0f, 0x3b, 0xd4,
  9385. 0xbd, 0xec, 0x5a, 0xd8, 0x43, 0x67, 0x00, 0xe8, 0x2a, 0xd2, 0x75, 0xac, 0xf0, 0xa9, 0x85, 0x18,
  9386. 0x44, 0xfd, 0x91, 0x02, 0x0b, 0x11, 0xe1, 0x24, 0x39, 0x81, 0xaf, 0xc0, 0xf4, 0xae, 0x2f, 0x76,
  9387. 0xdb, 0x12, 0x67, 0x10, 0x59, 0x22, 0x68, 0x95, 0x5d, 0xbf, 0x63, 0xa2, 0x57, 0x01, 0x46, 0x3e,
  9388. 0x36, 0xf9, 0xb1, 0xdf, 0x98, 0x2c, 0xcd, 0x1a, 0x41, 0x65, 0x07, 0x87, 0x37, 0xa0, 0x6e, 0xd9,
  9389. 0x8e, 0x89, 0xe9, 0x91, 0xb0, 0x39, 0x2e, 0x43, 0x13, 0x18, 0xee, 0x8e, 0x8f, 0x4d, 0xf5, 0xf7,
  9390. 0xa3, 0x83, 0xdd, 0xcf, 0x73, 0x0b, 0x55, 0x9d, 0xcf, 0xaf, 0xa2, 0xd7, 0xb9, 0xc9, 0xbe, 0x03,
  9391. 0x8b, 0xcc, 0x4d, 0xee, 0x86, 0x55, 0x66, 0xde, 0x5c, 0x49, 0xb4, 0x4d, 0x6b, 0x5a, 0x3c, 0xb2,
  9392. 0x12, 0x44, 0xea, 0x2d, 0x38, 0x9e, 0x48, 0x25, 0x9f, 0x7c, 0x3b, 0xfd, 0xdd, 0xc4, 0xbe, 0x58,
  9393. 0x34, 0xa4, 0xae, 0xc9, 0x37, 0x98, 0x8a, 0x92, 0xfe, 0xf9, 0x65, 0x9a, 0x1d, 0x38, 0x21, 0x6d,
  9394. 0xda, 0x49, 0xb2, 0xdc, 0x48, 0x04, 0x8b, 0xe7, 0xf2, 0xf9, 0x25, 0xa2, 0xc6, 0xff, 0x51, 0x60,
  9395. 0x29, 0x0b, 0xe1, 0x88, 0x1b, 0xc6, 0x1f, 0xe4, 0xdc, 0x7e, 0x7c, 0x69, 0x9c, 0x40, 0x9f, 0xca,
  9396. 0x06, 0xfb, 0x26, 0xbb, 0x3b, 0x35, 0xbe, 0x4f, 0xca, 0x93, 0xf5, 0xc9, 0x4f, 0x4b, 0xb1, 0x43,
  9397. 0x91, 0x82, 0xfb, 0x4d, 0x1f, 0x63, 0x93, 0x72, 0x2d, 0x71, 0xbd, 0xe9, 0xf9, 0x4c, 0xc2, 0x31,
  9398. 0xb7, 0x9b, 0xb4, 0xac, 0xcd, 0x80, 0x6b, 0xe3, 0x38, 0x7d, 0x6e, 0xf7, 0xaf, 0x7f, 0xab, 0x04,
  9399. 0xf3, 0x72, 0x87, 0xa0, 0xb7, 0x32, 0xee, 0x36, 0x9d, 0x1d, 0xd3, 0x40, 0xe9, 0x6a, 0x13, 0xbf,
  9400. 0x4b, 0x54, 0x9a, 0xfc, 0x2e, 0x51, 0x79, 0xb2, 0xbb, 0x44, 0x77, 0x60, 0xfe, 0xb1, 0x67, 0x05,
  9401. 0xc6, 0x83, 0x01, 0xd6, 0x07, 0xc6, 0x01, 0xf6, 0xb8, 0x17, 0x2e, 0x74, 0x43, 0x0d, 0x41, 0x72,
  9402. 0x8f, 0x50, 0xd0, 0x65, 0xd2, 0x63, 0xc3, 0xe5, 0xab, 0x2d, 0x29, 0x80, 0xeb, 0x3d, 0x36, 0x5c,
  9403. 0x46, 0x43, 0x51, 0xd4, 0x6f, 0x96, 0xe0, 0x78, 0xe6, 0x0d, 0x98, 0x8f, 0xaf, 0xa2, 0xcb, 0x71,
  9404. 0x15, 0x1d, 0xe6, 0x5a, 0x51, 0xf9, 0x50, 0xd7, 0x8a, 0x3a, 0x39, 0x0a, 0xcb, 0x3a, 0x75, 0x2f,
  9405. 0xd6, 0x9b, 0xfa, 0x97, 0x0a, 0x54, 0x85, 0x50, 0x63, 0x2f, 0xf9, 0xac, 0x8c, 0x08, 0x9a, 0x4e,
  9406. 0x33, 0xb6, 0x6d, 0xc3, 0x76, 0x74, 0x1f, 0x93, 0x08, 0x6a, 0xec, 0x95, 0x8a, 0x25, 0x4a, 0xb7,
  9407. 0xe6, 0x78, 0x78, 0xd3, 0xb0, 0x9d, 0x1e, 0x23, 0x42, 0x6d, 0x68, 0x32, 0x7e, 0x94, 0x15, 0x61,
  9408. 0x3a, 0x76, 0x56, 0x9b, 0xa7, 0x04, 0x84, 0x09, 0x61, 0xe6, 0xab, 0xdf, 0x57, 0x60, 0x21, 0xa1,
  9409. 0xd9, 0x5f, 0xbc, 0x46, 0xfc, 0x5e, 0x19, 0xea, 0xb1, 0x5e, 0x1e, 0xd3, 0x80, 0x35, 0x58, 0x14,
  9410. 0x99, 0x33, 0x3e, 0x0e, 0x26, 0xbb, 0xd2, 0xb2, 0xc0, 0x29, 0x7a, 0x38, 0x60, 0x41, 0xcf, 0x6d,
  9411. 0x58, 0x30, 0x1e, 0x19, 0xd6, 0x80, 0x5a, 0xd0, 0x44, 0xf1, 0xc4, 0x7c, 0x88, 0x1f, 0x86, 0x4d,
  9412. 0xac, 0xdd, 0x13, 0x5d, 0x6c, 0x01, 0x8a, 0x1b, 0xdd, 0x2f, 0xf2, 0xfd, 0x58, 0x7a, 0x56, 0xe1,
  9413. 0xfd, 0x22, 0xdf, 0x0f, 0xeb, 0xa3, 0xe9, 0xea, 0xf4, 0x62, 0x95, 0xcf, 0x5f, 0xe3, 0xc8, 0xaf,
  9414. 0x8f, 0xe0, 0xbe, 0x4d, 0x51, 0x89, 0xc2, 0x86, 0xc6, 0x87, 0x8e, 0xa7, 0xc7, 0xe9, 0x67, 0xc7,
  9415. 0x28, 0x8c, 0x52, 0x74, 0x43, 0x26, 0xea, 0x9f, 0x2b, 0x50, 0x0b, 0xfd, 0xc8, 0x98, 0x1e, 0xea,
  9416. 0xc0, 0x12, 0xcd, 0xed, 0x4f, 0x6a, 0x78, 0x4c, 0x27, 0x21, 0x42, 0xd4, 0x96, 0xb5, 0xdc, 0x86,
  9417. 0x26, 0x65, 0x15, 0x57, 0xf5, 0xb8, 0x8e, 0xf2, 0x85, 0x98, 0x2c, 0xfa, 0xfb, 0xab, 0x12, 0xa0,
  9418. 0xb4, 0x2b, 0xf9, 0x85, 0x31, 0xb2, 0x78, 0xa7, 0x55, 0x26, 0xef, 0xf4, 0xbb, 0x70, 0xac, 0xef,
  9419. 0x0c, 0x87, 0x16, 0xbd, 0x17, 0xe2, 0x78, 0x07, 0x93, 0x99, 0xdb, 0x22, 0xa3, 0x61, 0x7a, 0x62,
  9420. 0xea, 0x7b, 0x13, 0x4e, 0x68, 0xd8, 0x71, 0xb1, 0x1d, 0xba, 0xfe, 0x7b, 0xce, 0xde, 0x21, 0xe2,
  9421. 0xdb, 0x53, 0xd0, 0xca, 0xa2, 0xe7, 0xab, 0xe6, 0x11, 0xb4, 0xd6, 0xf6, 0x71, 0xff, 0x21, 0x5d,
  9422. 0x2b, 0x1d, 0x25, 0xfb, 0xa5, 0x05, 0xd5, 0x81, 0xd3, 0x67, 0x4f, 0x9b, 0xf2, 0x8d, 0x25, 0xf1,
  9423. 0x5d, 0xb0, 0xa7, 0x7f, 0x1a, 0x4e, 0x66, 0x56, 0xcb, 0xa5, 0x42, 0xd0, 0xbc, 0x8b, 0x83, 0x8d,
  9424. 0x47, 0xd8, 0x0e, 0xc3, 0x67, 0xf5, 0x07, 0xa5, 0x58, 0xa0, 0x4e, 0x8b, 0x0e, 0x91, 0x35, 0x84,
  9425. 0xba, 0xb0, 0x14, 0xa1, 0x60, 0x42, 0xcd, 0x1e, 0x1a, 0x64, 0x4f, 0x74, 0x66, 0x9f, 0x28, 0xd2,
  9426. 0x4a, 0xe8, 0xfb, 0x82, 0xd1, 0x13, 0x2a, 0x21, 0x2c, 0x71, 0xce, 0x5c, 0x4e, 0x9e, 0x33, 0xbf,
  9427. 0x0b, 0x28, 0x1e, 0x8a, 0xf3, 0xb5, 0x79, 0x65, 0x82, 0x57, 0x63, 0x9a, 0x6e, 0xf2, 0x7d, 0xa3,
  9428. 0x9c, 0xb7, 0x5f, 0xa6, 0x8f, 0xf4, 0xf6, 0x8b, 0x7a, 0x06, 0x4e, 0x91, 0x00, 0xfb, 0x3e, 0x0e,
  9429. 0x3c, 0xab, 0xbf, 0x8e, 0xfd, 0xbe, 0x67, 0xb9, 0x81, 0x13, 0x26, 0xb2, 0xa8, 0x3a, 0x9c, 0xce,
  9430. 0x29, 0xe7, 0xea, 0x7e, 0x13, 0xea, 0x66, 0x04, 0xce, 0xda, 0xe7, 0x48, 0xd2, 0x6a, 0x71, 0x02,
  9431. 0xf5, 0x7d, 0x68, 0x26, 0x11, 0x32, 0xf3, 0x5e, 0x11, 0x54, 0xf6, 0xf1, 0xc0, 0x15, 0x17, 0x79,
  9432. 0xc8, 0x6f, 0xa2, 0x75, 0xb6, 0x76, 0x79, 0x88, 0x0f, 0xc4, 0x3e, 0x78, 0x8d, 0x42, 0xbe, 0x88,
  9433. 0x0f, 0xc2, 0xb6, 0x49, 0x8f, 0x11, 0x78, 0x56, 0x3f, 0xd9, 0xb6, 0x8c, 0xf2, 0xa8, 0x6d, 0xa4,
  9434. 0xdb, 0x86, 0x0c, 0xcc, 0xdb, 0x76, 0x3a, 0xf7, 0xa1, 0x03, 0x4a, 0x0b, 0xae, 0x63, 0xf2, 0xdf,
  9435. 0xea, 0x9f, 0x28, 0xb0, 0x98, 0xc2, 0x98, 0xf0, 0x6c, 0xe3, 0x05, 0x98, 0x15, 0xf5, 0x96, 0xd2,
  9436. 0xc9, 0xa1, 0x8c, 0x97, 0x26, 0x50, 0x50, 0x07, 0x16, 0x23, 0x8b, 0x16, 0x74, 0xe5, 0x74, 0x5f,
  9437. 0xc4, 0x17, 0x2e, 0x54, 0xdc, 0x66, 0x3f, 0x01, 0x51, 0xfb, 0xd0, 0x4c, 0x62, 0x4d, 0x32, 0xa6,
  9438. 0x0e, 0x25, 0xaf, 0xfa, 0xf7, 0x0a, 0xcc, 0x30, 0x58, 0x66, 0x67, 0x4b, 0xd3, 0x41, 0x29, 0x39,
  9439. 0x1d, 0xbc, 0x06, 0x75, 0xc6, 0x47, 0x0f, 0xaf, 0x71, 0xcd, 0xcb, 0xdb, 0xbb, 0x8c, 0x35, 0x1d,
  9440. 0xad, 0x30, 0x0c, 0x7f, 0x93, 0x66, 0x30, 0x7b, 0xa1, 0x2b, 0x13, 0x91, 0x02, 0x5c, 0xa7, 0x30,
  9441. 0xea, 0x72, 0x49, 0xc8, 0xcc, 0xd7, 0x30, 0x63, 0x7c, 0x33, 0xdf, 0x87, 0x5a, 0xa6, 0x4f, 0xeb,
  9442. 0xa5, 0x36, 0x38, 0xd5, 0x6d, 0xfa, 0xf6, 0x5d, 0x7a, 0x63, 0x12, 0x7d, 0x41, 0x3e, 0x24, 0x7f,
  9443. 0x26, 0x75, 0xc2, 0x2c, 0x91, 0x8d, 0x3c, 0xf6, 0x04, 0x34, 0xa3, 0x51, 0x3f, 0x80, 0x13, 0xb9,
  9444. 0x38, 0xe8, 0x8d, 0xf0, 0xa1, 0x51, 0xd3, 0xb3, 0x1e, 0xf1, 0x8d, 0x85, 0x79, 0xf9, 0x51, 0x83,
  9445. 0x35, 0x8a, 0xb0, 0x4e, 0xcb, 0xc5, 0x13, 0xa4, 0xec, 0xeb, 0xd2, 0xb3, 0x50, 0x15, 0xcf, 0x73,
  9446. 0xa3, 0x59, 0x28, 0x6f, 0xaf, 0x75, 0x9b, 0x53, 0xe4, 0xc7, 0xce, 0x7a, 0xb7, 0xa9, 0xa0, 0x2a,
  9447. 0x54, 0x7a, 0x6b, 0xdb, 0xdd, 0x66, 0xe9, 0xd2, 0x10, 0x9a, 0xc9, 0x17, 0xaa, 0xd1, 0x0a, 0x1c,
  9448. 0xeb, 0x6a, 0x5b, 0xdd, 0xf6, 0xdd, 0xf6, 0x76, 0x67, 0x6b, 0x53, 0xef, 0x6a, 0x9d, 0xf7, 0xda,
  9449. 0xdb, 0x1b, 0xcd, 0x29, 0x74, 0x1e, 0x4e, 0xc7, 0x0b, 0xde, 0xd9, 0xea, 0x6d, 0xeb, 0xdb, 0x5b,
  9450. 0xfa, 0xda, 0xd6, 0xe6, 0x76, 0xbb, 0xb3, 0xb9, 0xa1, 0x35, 0x15, 0x74, 0x1a, 0x4e, 0xc4, 0x51,
  9451. 0xee, 0x74, 0xd6, 0x3b, 0xda, 0xc6, 0x1a, 0xf9, 0xdd, 0xbe, 0xd7, 0x2c, 0x5d, 0x7a, 0x03, 0x1a,
  9452. 0xd2, 0xc5, 0x15, 0x22, 0x52, 0x77, 0x6b, 0xbd, 0x39, 0x85, 0x1a, 0x50, 0x8b, 0xf3, 0xa9, 0x42,
  9453. 0x65, 0x73, 0x6b, 0x7d, 0xa3, 0x59, 0x42, 0x00, 0x33, 0xdb, 0x6d, 0xed, 0xee, 0xc6, 0x76, 0xb3,
  9454. 0x7c, 0xe9, 0x56, 0xf2, 0x51, 0x0d, 0x8c, 0x16, 0xa1, 0xd1, 0x6b, 0x6f, 0xae, 0xdf, 0xd9, 0xfa,
  9455. 0x8a, 0xae, 0x6d, 0xb4, 0xd7, 0xdf, 0x6f, 0x4e, 0xa1, 0x25, 0x68, 0x0a, 0xd0, 0xe6, 0xd6, 0x36,
  9456. 0x83, 0x2a, 0x97, 0x1e, 0x26, 0xd6, 0xac, 0x18, 0x1d, 0x87, 0xc5, 0xb0, 0x4a, 0x7d, 0x4d, 0xdb,
  9457. 0x68, 0x6f, 0x6f, 0x10, 0x49, 0x24, 0xb0, 0xb6, 0xb3, 0xb9, 0xd9, 0xd9, 0xbc, 0xdb, 0x54, 0x08,
  9458. 0xd7, 0x08, 0xbc, 0xf1, 0x95, 0x0e, 0x41, 0x2e, 0xc9, 0xc8, 0x3b, 0x9b, 0x5f, 0xdc, 0xdc, 0xfa,
  9459. 0xf2, 0x66, 0xb3, 0x7c, 0xe9, 0x57, 0xe3, 0x39, 0x15, 0xd1, 0xbc, 0x72, 0x12, 0x56, 0x52, 0x35,
  9460. 0xea, 0x1b, 0xef, 0x6d, 0x6c, 0x6e, 0x37, 0xa7, 0xe4, 0xc2, 0xde, 0x76, 0x5b, 0x8b, 0x0a, 0x95,
  9461. 0x64, 0xe1, 0x56, 0xb7, 0x1b, 0x16, 0x96, 0xe4, 0xc2, 0xf5, 0x8d, 0x7b, 0x1b, 0x11, 0x65, 0xf9,
  9462. 0xd2, 0xd3, 0x00, 0xd1, 0xf8, 0x41, 0x75, 0x98, 0x5d, 0xdb, 0xda, 0xd9, 0xdc, 0xde, 0xd0, 0x9a,
  9463. 0x53, 0xa8, 0x06, 0xd3, 0x77, 0xdb, 0x3b, 0x77, 0x37, 0x9a, 0xca, 0xa5, 0x8b, 0x30, 0x17, 0xb7,
  9464. 0x26, 0x82, 0xd7, 0x7b, 0xbf, 0xb7, 0xbd, 0x71, 0x9f, 0x68, 0x64, 0x0e, 0xaa, 0x6b, 0x77, 0xb5,
  9465. 0xad, 0x9d, 0xee, 0xdb, 0xbd, 0xa6, 0x72, 0xfd, 0xff, 0x96, 0xc2, 0x07, 0x75, 0x7b, 0xd8, 0xa3,
  9466. 0xd7, 0x05, 0xd6, 0x61, 0x56, 0x3c, 0x68, 0x2f, 0xed, 0xda, 0xc8, 0x0f, 0xf0, 0xb7, 0x4e, 0x66,
  9467. 0x96, 0xf1, 0xb8, 0x60, 0x0a, 0xbd, 0x47, 0xf7, 0xdc, 0x63, 0x4f, 0x5a, 0x9d, 0x4b, 0xec, 0x73,
  9468. 0xa7, 0x5e, 0xce, 0x6a, 0x9d, 0x2f, 0xc0, 0x08, 0xf9, 0xbe, 0x0f, 0xf3, 0xf2, 0xdb, 0x91, 0xe8,
  9469. 0xbc, 0xbc, 0x1f, 0x9e, 0xf1, 0x2c, 0x65, 0x4b, 0x2d, 0x42, 0x09, 0x59, 0xeb, 0xd0, 0x4c, 0xbe,
  9470. 0x1d, 0x89, 0xa4, 0x34, 0x93, 0x9c, 0xa7, 0x29, 0x5b, 0x4f, 0x17, 0x23, 0xc5, 0x2b, 0x48, 0x3d,
  9471. 0x89, 0xf8, 0x54, 0xf1, 0x23, 0x73, 0x19, 0x15, 0xe4, 0xbd, 0x44, 0xc7, 0x94, 0x23, 0xcf, 0x9a,
  9472. 0x28, 0xf1, 0x0a, 0x61, 0xc6, 0x83, 0x65, 0xb2, 0x72, 0xb2, 0x1f, 0xab, 0x52, 0xa7, 0xd0, 0x2f,
  9473. 0xc1, 0x42, 0x22, 0x17, 0x1c, 0x49, 0x84, 0xd9, 0x29, 0xee, 0xad, 0xa7, 0x0a, 0x71, 0xe4, 0x5e,
  9474. 0x8d, 0xe7, 0x7b, 0x27, 0x7b, 0x35, 0x23, 0x8f, 0x3c, 0xd9, 0xab, 0x99, 0xe9, 0xe2, 0xd4, 0x10,
  9475. 0xa5, 0xdc, 0x6e, 0xd9, 0x10, 0xb3, 0x72, 0xc9, 0x5b, 0xe7, 0x0b, 0x30, 0xe2, 0x0a, 0x49, 0x64,
  9476. 0x77, 0xcb, 0x0a, 0xc9, 0xce, 0x1b, 0x6f, 0x3d, 0x55, 0x88, 0x93, 0xec, 0xc9, 0x28, 0xab, 0x34,
  9477. 0xdd, 0x93, 0xa9, 0xcc, 0xe6, 0x74, 0x4f, 0xa6, 0x93, 0x52, 0x79, 0x4f, 0x26, 0xf2, 0x40, 0xd5,
  9478. 0xc2, 0x1c, 0xb5, 0xac, 0x9e, 0xcc, 0xce, 0x63, 0x53, 0xa7, 0xd0, 0x63, 0x58, 0xcd, 0x4b, 0x45,
  9479. 0x42, 0xcf, 0x1f, 0x22, 0x63, 0xaa, 0xf5, 0xc2, 0x64, 0xc8, 0x61, 0xc5, 0x18, 0x50, 0x7a, 0xf9,
  9480. 0x84, 0x9e, 0x91, 0xd5, 0x9d, 0xb3, 0x3c, 0x6b, 0x3d, 0x3b, 0x0e, 0x2d, 0xac, 0xe6, 0x2e, 0x54,
  9481. 0x45, 0x92, 0x13, 0x92, 0x5c, 0x60, 0x22, 0xb9, 0xaa, 0x75, 0x2a, 0xbb, 0x30, 0x64, 0xf4, 0x05,
  9482. 0xa8, 0x10, 0x28, 0x5a, 0x49, 0xe2, 0x09, 0x06, 0xab, 0xe9, 0x82, 0x90, 0xb8, 0x0d, 0x33, 0x2c,
  9483. 0x7b, 0x07, 0x49, 0xc7, 0x87, 0x52, 0x76, 0x51, 0xab, 0x95, 0x55, 0x14, 0xb2, 0xe8, 0xb2, 0x7f,
  9484. 0x0f, 0xc2, 0x93, 0x71, 0xd0, 0x99, 0xe4, 0xab, 0xd1, 0x72, 0xd6, 0x4f, 0xeb, 0x6c, 0x6e, 0x79,
  9485. 0xdc, 0x66, 0x13, 0xbb, 0xa4, 0xe7, 0x0b, 0x76, 0xfd, 0xb3, 0x6c, 0x36, 0xfb, 0x2c, 0x81, 0x75,
  9486. 0x6e, 0xfa, 0xac, 0x01, 0x3d, 0x93, 0x6b, 0xef, 0x52, 0x15, 0xcf, 0x8e, 0x43, 0x8b, 0x0f, 0x8d,
  9487. 0xe4, 0xf3, 0x4f, 0x6a, 0xd1, 0xd3, 0x6c, 0x59, 0x43, 0x23, 0xe7, 0xc9, 0x37, 0x75, 0x0a, 0xed,
  9488. 0xc3, 0xb1, 0x8c, 0x37, 0xe1, 0xd0, 0xb3, 0xf9, 0xfe, 0x57, 0xaa, 0xe5, 0xb9, 0xb1, 0x78, 0xf1,
  9489. 0x9a, 0x32, 0x4e, 0xe0, 0xe5, 0x9a, 0xf2, 0x53, 0x00, 0xe4, 0x9a, 0x8a, 0x8e, 0xf2, 0xa9, 0x21,
  9490. 0x72, 0x1f, 0x72, 0x22, 0xeb, 0x58, 0x3a, 0xc3, 0x10, 0x53, 0x1e, 0x63, 0x1f, 0x8e, 0x65, 0x6c,
  9491. 0x31, 0xc8, 0xc2, 0xe6, 0x6f, 0x7d, 0xc8, 0xc2, 0x16, 0xed, 0x55, 0x4c, 0xa1, 0x0f, 0x00, 0xdd,
  9492. 0xc5, 0x81, 0x1c, 0xca, 0xf9, 0x48, 0x1a, 0xa8, 0xc9, 0xdd, 0x8c, 0x1c, 0xfb, 0x94, 0xb6, 0x35,
  9493. 0xd4, 0xa9, 0x6b, 0x0a, 0xb2, 0xd9, 0x75, 0x93, 0xd4, 0x62, 0x1c, 0x5d, 0x48, 0x76, 0x5b, 0xde,
  9494. 0x7a, 0xbe, 0x75, 0x71, 0x02, 0xcc, 0xb0, 0x2d, 0x76, 0xf2, 0xfd, 0x51, 0xb1, 0x1e, 0xbc, 0x90,
  9495. 0x6f, 0x26, 0xf2, 0x1a, 0x3b, 0x5d, 0x5f, 0xee, 0x6a, 0x3b, 0x8c, 0xe7, 0x62, 0xc6, 0x74, 0x2e,
  9496. 0x3f, 0x1f, 0x24, 0x27, 0x9e, 0xcb, 0x32, 0xa0, 0xeb, 0xbf, 0x5b, 0x86, 0x39, 0x96, 0x37, 0xc3,
  9497. 0xc3, 0xcf, 0xfb, 0x00, 0x51, 0x0a, 0x1a, 0x3a, 0x9d, 0x94, 0x51, 0xca, 0xeb, 0x6b, 0x9d, 0xc9,
  9498. 0x2b, 0x8e, 0xbb, 0xb9, 0x58, 0x6a, 0x97, 0xec, 0xe6, 0xd2, 0x99, 0x6a, 0xb2, 0x9b, 0xcb, 0xc8,
  9499. 0x09, 0x53, 0xa7, 0xd0, 0xbb, 0x50, 0x0b, 0x33, 0x89, 0x64, 0xe3, 0x49, 0xa6, 0x44, 0xb5, 0x4e,
  9500. 0xe7, 0x94, 0xc6, 0xa5, 0x8b, 0x25, 0x08, 0xc9, 0xd2, 0xa5, 0x93, 0x8f, 0x64, 0xe9, 0xb2, 0x32,
  9501. 0x8b, 0xa2, 0xf6, 0xb2, 0x23, 0xfc, 0x8c, 0xf6, 0x4a, 0x19, 0x1d, 0x19, 0xed, 0x95, 0xcf, 0xfe,
  9502. 0xd5, 0xa9, 0x3b, 0xb7, 0x7f, 0xf8, 0x93, 0x33, 0xca, 0x8f, 0x7e, 0x72, 0x66, 0xea, 0x57, 0x3e,
  9503. 0x3a, 0xa3, 0xfc, 0xf0, 0xa3, 0x33, 0xca, 0x3f, 0x7f, 0x74, 0x46, 0xf9, 0xf1, 0x47, 0x67, 0x94,
  9504. 0x6f, 0xfd, 0xe7, 0x99, 0xa9, 0x0f, 0xd4, 0x87, 0x37, 0xfc, 0x2b, 0x96, 0x73, 0xb5, 0xef, 0x59,
  9505. 0x97, 0x0d, 0xd7, 0xba, 0xea, 0x3e, 0xdc, 0xbb, 0x6a, 0xb8, 0x96, 0x7f, 0x95, 0xf3, 0xbd, 0xfa,
  9506. 0xe8, 0xc5, 0x07, 0x33, 0xf4, 0x5f, 0x4a, 0xbd, 0xf4, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x15,
  9507. 0xf3, 0x86, 0xa5, 0x0c, 0x6c, 0x00, 0x00,
  9508. }
  9509. // Reference imports to suppress errors if they are not otherwise used.
  9510. var _ context.Context
  9511. var _ grpc.ClientConn
  9512. // This is a compile-time assertion to ensure that this generated file
  9513. // is compatible with the grpc package it is being compiled against.
  9514. const _ = grpc.SupportPackageIsVersion4
  9515. // RuntimeServiceClient is the client API for RuntimeService service.
  9516. //
  9517. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  9518. type RuntimeServiceClient interface {
  9519. // Version returns the runtime name, runtime version, and runtime API version.
  9520. Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error)
  9521. // RunPodSandbox creates and starts a pod-level sandbox. Runtimes must ensure
  9522. // the sandbox is in the ready state on success.
  9523. RunPodSandbox(ctx context.Context, in *RunPodSandboxRequest, opts ...grpc.CallOption) (*RunPodSandboxResponse, error)
  9524. // StopPodSandbox stops any running process that is part of the sandbox and
  9525. // reclaims network resources (e.g., IP addresses) allocated to the sandbox.
  9526. // If there are any running containers in the sandbox, they must be forcibly
  9527. // terminated.
  9528. // This call is idempotent, and must not return an error if all relevant
  9529. // resources have already been reclaimed. kubelet will call StopPodSandbox
  9530. // at least once before calling RemovePodSandbox. It will also attempt to
  9531. // reclaim resources eagerly, as soon as a sandbox is not needed. Hence,
  9532. // multiple StopPodSandbox calls are expected.
  9533. StopPodSandbox(ctx context.Context, in *StopPodSandboxRequest, opts ...grpc.CallOption) (*StopPodSandboxResponse, error)
  9534. // RemovePodSandbox removes the sandbox. If there are any running containers
  9535. // in the sandbox, they must be forcibly terminated and removed.
  9536. // This call is idempotent, and must not return an error if the sandbox has
  9537. // already been removed.
  9538. RemovePodSandbox(ctx context.Context, in *RemovePodSandboxRequest, opts ...grpc.CallOption) (*RemovePodSandboxResponse, error)
  9539. // PodSandboxStatus returns the status of the PodSandbox. If the PodSandbox is not
  9540. // present, returns an error.
  9541. PodSandboxStatus(ctx context.Context, in *PodSandboxStatusRequest, opts ...grpc.CallOption) (*PodSandboxStatusResponse, error)
  9542. // ListPodSandbox returns a list of PodSandboxes.
  9543. ListPodSandbox(ctx context.Context, in *ListPodSandboxRequest, opts ...grpc.CallOption) (*ListPodSandboxResponse, error)
  9544. // CreateContainer creates a new container in specified PodSandbox
  9545. CreateContainer(ctx context.Context, in *CreateContainerRequest, opts ...grpc.CallOption) (*CreateContainerResponse, error)
  9546. // StartContainer starts the container.
  9547. StartContainer(ctx context.Context, in *StartContainerRequest, opts ...grpc.CallOption) (*StartContainerResponse, error)
  9548. // StopContainer stops a running container with a grace period (i.e., timeout).
  9549. // This call is idempotent, and must not return an error if the container has
  9550. // already been stopped.
  9551. // The runtime must forcibly kill the container after the grace period is
  9552. // reached.
  9553. StopContainer(ctx context.Context, in *StopContainerRequest, opts ...grpc.CallOption) (*StopContainerResponse, error)
  9554. // RemoveContainer removes the container. If the container is running, the
  9555. // container must be forcibly removed.
  9556. // This call is idempotent, and must not return an error if the container has
  9557. // already been removed.
  9558. RemoveContainer(ctx context.Context, in *RemoveContainerRequest, opts ...grpc.CallOption) (*RemoveContainerResponse, error)
  9559. // ListContainers lists all containers by filters.
  9560. ListContainers(ctx context.Context, in *ListContainersRequest, opts ...grpc.CallOption) (*ListContainersResponse, error)
  9561. // ContainerStatus returns status of the container. If the container is not
  9562. // present, returns an error.
  9563. ContainerStatus(ctx context.Context, in *ContainerStatusRequest, opts ...grpc.CallOption) (*ContainerStatusResponse, error)
  9564. // UpdateContainerResources updates ContainerConfig of the container synchronously.
  9565. // If runtime fails to transactionally update the requested resources, an error is returned.
  9566. UpdateContainerResources(ctx context.Context, in *UpdateContainerResourcesRequest, opts ...grpc.CallOption) (*UpdateContainerResourcesResponse, error)
  9567. // ReopenContainerLog asks runtime to reopen the stdout/stderr log file
  9568. // for the container. This is often called after the log file has been
  9569. // rotated. If the container is not running, container runtime can choose
  9570. // to either create a new log file and return nil, or return an error.
  9571. // Once it returns error, new container log file MUST NOT be created.
  9572. ReopenContainerLog(ctx context.Context, in *ReopenContainerLogRequest, opts ...grpc.CallOption) (*ReopenContainerLogResponse, error)
  9573. // ExecSync runs a command in a container synchronously.
  9574. ExecSync(ctx context.Context, in *ExecSyncRequest, opts ...grpc.CallOption) (*ExecSyncResponse, error)
  9575. // Exec prepares a streaming endpoint to execute a command in the container.
  9576. Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error)
  9577. // Attach prepares a streaming endpoint to attach to a running container.
  9578. Attach(ctx context.Context, in *AttachRequest, opts ...grpc.CallOption) (*AttachResponse, error)
  9579. // PortForward prepares a streaming endpoint to forward ports from a PodSandbox.
  9580. PortForward(ctx context.Context, in *PortForwardRequest, opts ...grpc.CallOption) (*PortForwardResponse, error)
  9581. // ContainerStats returns stats of the container. If the container does not
  9582. // exist, the call returns an error.
  9583. ContainerStats(ctx context.Context, in *ContainerStatsRequest, opts ...grpc.CallOption) (*ContainerStatsResponse, error)
  9584. // ListContainerStats returns stats of all running containers.
  9585. ListContainerStats(ctx context.Context, in *ListContainerStatsRequest, opts ...grpc.CallOption) (*ListContainerStatsResponse, error)
  9586. // PodSandboxStats returns stats of the pod sandbox. If the pod sandbox does not
  9587. // exist, the call returns an error.
  9588. PodSandboxStats(ctx context.Context, in *PodSandboxStatsRequest, opts ...grpc.CallOption) (*PodSandboxStatsResponse, error)
  9589. // ListPodSandboxStats returns stats of the pod sandboxes matching a filter.
  9590. ListPodSandboxStats(ctx context.Context, in *ListPodSandboxStatsRequest, opts ...grpc.CallOption) (*ListPodSandboxStatsResponse, error)
  9591. // UpdateRuntimeConfig updates the runtime configuration based on the given request.
  9592. UpdateRuntimeConfig(ctx context.Context, in *UpdateRuntimeConfigRequest, opts ...grpc.CallOption) (*UpdateRuntimeConfigResponse, error)
  9593. // Status returns the status of the runtime.
  9594. Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
  9595. // CheckpointContainer checkpoints a container
  9596. CheckpointContainer(ctx context.Context, in *CheckpointContainerRequest, opts ...grpc.CallOption) (*CheckpointContainerResponse, error)
  9597. // GetContainerEvents gets container events from the CRI runtime
  9598. GetContainerEvents(ctx context.Context, in *GetEventsRequest, opts ...grpc.CallOption) (RuntimeService_GetContainerEventsClient, error)
  9599. // ListMetricDescriptors gets the descriptors for the metrics that will be returned in ListPodSandboxMetrics.
  9600. // This list should be static at startup: either the client and server restart together when
  9601. // adding or removing metrics descriptors, or they should not change.
  9602. // Put differently, if ListPodSandboxMetrics references a name that is not described in the initial
  9603. // ListMetricDescriptors call, then the metric will not be broadcasted.
  9604. ListMetricDescriptors(ctx context.Context, in *ListMetricDescriptorsRequest, opts ...grpc.CallOption) (*ListMetricDescriptorsResponse, error)
  9605. // ListPodSandboxMetrics gets pod sandbox metrics from CRI Runtime
  9606. ListPodSandboxMetrics(ctx context.Context, in *ListPodSandboxMetricsRequest, opts ...grpc.CallOption) (*ListPodSandboxMetricsResponse, error)
  9607. // RuntimeConfig returns configuration information of the runtime.
  9608. // A couple of notes:
  9609. // - The RuntimeConfigRequest object is not to be confused with the contents of UpdateRuntimeConfigRequest.
  9610. // The former is for having runtime tell Kubelet what to do, the latter vice versa.
  9611. // - It is the expectation of the Kubelet that these fields are static for the lifecycle of the Kubelet.
  9612. // The Kubelet will not re-request the RuntimeConfiguration after startup, and CRI implementations should
  9613. // avoid updating them without a full node reboot.
  9614. RuntimeConfig(ctx context.Context, in *RuntimeConfigRequest, opts ...grpc.CallOption) (*RuntimeConfigResponse, error)
  9615. }
  9616. type runtimeServiceClient struct {
  9617. cc *grpc.ClientConn
  9618. }
  9619. func NewRuntimeServiceClient(cc *grpc.ClientConn) RuntimeServiceClient {
  9620. return &runtimeServiceClient{cc}
  9621. }
  9622. func (c *runtimeServiceClient) Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) {
  9623. out := new(VersionResponse)
  9624. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/Version", in, out, opts...)
  9625. if err != nil {
  9626. return nil, err
  9627. }
  9628. return out, nil
  9629. }
  9630. func (c *runtimeServiceClient) RunPodSandbox(ctx context.Context, in *RunPodSandboxRequest, opts ...grpc.CallOption) (*RunPodSandboxResponse, error) {
  9631. out := new(RunPodSandboxResponse)
  9632. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/RunPodSandbox", in, out, opts...)
  9633. if err != nil {
  9634. return nil, err
  9635. }
  9636. return out, nil
  9637. }
  9638. func (c *runtimeServiceClient) StopPodSandbox(ctx context.Context, in *StopPodSandboxRequest, opts ...grpc.CallOption) (*StopPodSandboxResponse, error) {
  9639. out := new(StopPodSandboxResponse)
  9640. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/StopPodSandbox", in, out, opts...)
  9641. if err != nil {
  9642. return nil, err
  9643. }
  9644. return out, nil
  9645. }
  9646. func (c *runtimeServiceClient) RemovePodSandbox(ctx context.Context, in *RemovePodSandboxRequest, opts ...grpc.CallOption) (*RemovePodSandboxResponse, error) {
  9647. out := new(RemovePodSandboxResponse)
  9648. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/RemovePodSandbox", in, out, opts...)
  9649. if err != nil {
  9650. return nil, err
  9651. }
  9652. return out, nil
  9653. }
  9654. func (c *runtimeServiceClient) PodSandboxStatus(ctx context.Context, in *PodSandboxStatusRequest, opts ...grpc.CallOption) (*PodSandboxStatusResponse, error) {
  9655. out := new(PodSandboxStatusResponse)
  9656. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/PodSandboxStatus", in, out, opts...)
  9657. if err != nil {
  9658. return nil, err
  9659. }
  9660. return out, nil
  9661. }
  9662. func (c *runtimeServiceClient) ListPodSandbox(ctx context.Context, in *ListPodSandboxRequest, opts ...grpc.CallOption) (*ListPodSandboxResponse, error) {
  9663. out := new(ListPodSandboxResponse)
  9664. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/ListPodSandbox", in, out, opts...)
  9665. if err != nil {
  9666. return nil, err
  9667. }
  9668. return out, nil
  9669. }
  9670. func (c *runtimeServiceClient) CreateContainer(ctx context.Context, in *CreateContainerRequest, opts ...grpc.CallOption) (*CreateContainerResponse, error) {
  9671. out := new(CreateContainerResponse)
  9672. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/CreateContainer", in, out, opts...)
  9673. if err != nil {
  9674. return nil, err
  9675. }
  9676. return out, nil
  9677. }
  9678. func (c *runtimeServiceClient) StartContainer(ctx context.Context, in *StartContainerRequest, opts ...grpc.CallOption) (*StartContainerResponse, error) {
  9679. out := new(StartContainerResponse)
  9680. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/StartContainer", in, out, opts...)
  9681. if err != nil {
  9682. return nil, err
  9683. }
  9684. return out, nil
  9685. }
  9686. func (c *runtimeServiceClient) StopContainer(ctx context.Context, in *StopContainerRequest, opts ...grpc.CallOption) (*StopContainerResponse, error) {
  9687. out := new(StopContainerResponse)
  9688. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/StopContainer", in, out, opts...)
  9689. if err != nil {
  9690. return nil, err
  9691. }
  9692. return out, nil
  9693. }
  9694. func (c *runtimeServiceClient) RemoveContainer(ctx context.Context, in *RemoveContainerRequest, opts ...grpc.CallOption) (*RemoveContainerResponse, error) {
  9695. out := new(RemoveContainerResponse)
  9696. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/RemoveContainer", in, out, opts...)
  9697. if err != nil {
  9698. return nil, err
  9699. }
  9700. return out, nil
  9701. }
  9702. func (c *runtimeServiceClient) ListContainers(ctx context.Context, in *ListContainersRequest, opts ...grpc.CallOption) (*ListContainersResponse, error) {
  9703. out := new(ListContainersResponse)
  9704. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/ListContainers", in, out, opts...)
  9705. if err != nil {
  9706. return nil, err
  9707. }
  9708. return out, nil
  9709. }
  9710. func (c *runtimeServiceClient) ContainerStatus(ctx context.Context, in *ContainerStatusRequest, opts ...grpc.CallOption) (*ContainerStatusResponse, error) {
  9711. out := new(ContainerStatusResponse)
  9712. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/ContainerStatus", in, out, opts...)
  9713. if err != nil {
  9714. return nil, err
  9715. }
  9716. return out, nil
  9717. }
  9718. func (c *runtimeServiceClient) UpdateContainerResources(ctx context.Context, in *UpdateContainerResourcesRequest, opts ...grpc.CallOption) (*UpdateContainerResourcesResponse, error) {
  9719. out := new(UpdateContainerResourcesResponse)
  9720. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/UpdateContainerResources", in, out, opts...)
  9721. if err != nil {
  9722. return nil, err
  9723. }
  9724. return out, nil
  9725. }
  9726. func (c *runtimeServiceClient) ReopenContainerLog(ctx context.Context, in *ReopenContainerLogRequest, opts ...grpc.CallOption) (*ReopenContainerLogResponse, error) {
  9727. out := new(ReopenContainerLogResponse)
  9728. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/ReopenContainerLog", in, out, opts...)
  9729. if err != nil {
  9730. return nil, err
  9731. }
  9732. return out, nil
  9733. }
  9734. func (c *runtimeServiceClient) ExecSync(ctx context.Context, in *ExecSyncRequest, opts ...grpc.CallOption) (*ExecSyncResponse, error) {
  9735. out := new(ExecSyncResponse)
  9736. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/ExecSync", in, out, opts...)
  9737. if err != nil {
  9738. return nil, err
  9739. }
  9740. return out, nil
  9741. }
  9742. func (c *runtimeServiceClient) Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error) {
  9743. out := new(ExecResponse)
  9744. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/Exec", in, out, opts...)
  9745. if err != nil {
  9746. return nil, err
  9747. }
  9748. return out, nil
  9749. }
  9750. func (c *runtimeServiceClient) Attach(ctx context.Context, in *AttachRequest, opts ...grpc.CallOption) (*AttachResponse, error) {
  9751. out := new(AttachResponse)
  9752. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/Attach", in, out, opts...)
  9753. if err != nil {
  9754. return nil, err
  9755. }
  9756. return out, nil
  9757. }
  9758. func (c *runtimeServiceClient) PortForward(ctx context.Context, in *PortForwardRequest, opts ...grpc.CallOption) (*PortForwardResponse, error) {
  9759. out := new(PortForwardResponse)
  9760. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/PortForward", in, out, opts...)
  9761. if err != nil {
  9762. return nil, err
  9763. }
  9764. return out, nil
  9765. }
  9766. func (c *runtimeServiceClient) ContainerStats(ctx context.Context, in *ContainerStatsRequest, opts ...grpc.CallOption) (*ContainerStatsResponse, error) {
  9767. out := new(ContainerStatsResponse)
  9768. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/ContainerStats", in, out, opts...)
  9769. if err != nil {
  9770. return nil, err
  9771. }
  9772. return out, nil
  9773. }
  9774. func (c *runtimeServiceClient) ListContainerStats(ctx context.Context, in *ListContainerStatsRequest, opts ...grpc.CallOption) (*ListContainerStatsResponse, error) {
  9775. out := new(ListContainerStatsResponse)
  9776. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/ListContainerStats", in, out, opts...)
  9777. if err != nil {
  9778. return nil, err
  9779. }
  9780. return out, nil
  9781. }
  9782. func (c *runtimeServiceClient) PodSandboxStats(ctx context.Context, in *PodSandboxStatsRequest, opts ...grpc.CallOption) (*PodSandboxStatsResponse, error) {
  9783. out := new(PodSandboxStatsResponse)
  9784. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/PodSandboxStats", in, out, opts...)
  9785. if err != nil {
  9786. return nil, err
  9787. }
  9788. return out, nil
  9789. }
  9790. func (c *runtimeServiceClient) ListPodSandboxStats(ctx context.Context, in *ListPodSandboxStatsRequest, opts ...grpc.CallOption) (*ListPodSandboxStatsResponse, error) {
  9791. out := new(ListPodSandboxStatsResponse)
  9792. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/ListPodSandboxStats", in, out, opts...)
  9793. if err != nil {
  9794. return nil, err
  9795. }
  9796. return out, nil
  9797. }
  9798. func (c *runtimeServiceClient) UpdateRuntimeConfig(ctx context.Context, in *UpdateRuntimeConfigRequest, opts ...grpc.CallOption) (*UpdateRuntimeConfigResponse, error) {
  9799. out := new(UpdateRuntimeConfigResponse)
  9800. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/UpdateRuntimeConfig", in, out, opts...)
  9801. if err != nil {
  9802. return nil, err
  9803. }
  9804. return out, nil
  9805. }
  9806. func (c *runtimeServiceClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) {
  9807. out := new(StatusResponse)
  9808. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/Status", in, out, opts...)
  9809. if err != nil {
  9810. return nil, err
  9811. }
  9812. return out, nil
  9813. }
  9814. func (c *runtimeServiceClient) CheckpointContainer(ctx context.Context, in *CheckpointContainerRequest, opts ...grpc.CallOption) (*CheckpointContainerResponse, error) {
  9815. out := new(CheckpointContainerResponse)
  9816. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/CheckpointContainer", in, out, opts...)
  9817. if err != nil {
  9818. return nil, err
  9819. }
  9820. return out, nil
  9821. }
  9822. func (c *runtimeServiceClient) GetContainerEvents(ctx context.Context, in *GetEventsRequest, opts ...grpc.CallOption) (RuntimeService_GetContainerEventsClient, error) {
  9823. stream, err := c.cc.NewStream(ctx, &_RuntimeService_serviceDesc.Streams[0], "/runtime.v1.RuntimeService/GetContainerEvents", opts...)
  9824. if err != nil {
  9825. return nil, err
  9826. }
  9827. x := &runtimeServiceGetContainerEventsClient{stream}
  9828. if err := x.ClientStream.SendMsg(in); err != nil {
  9829. return nil, err
  9830. }
  9831. if err := x.ClientStream.CloseSend(); err != nil {
  9832. return nil, err
  9833. }
  9834. return x, nil
  9835. }
  9836. type RuntimeService_GetContainerEventsClient interface {
  9837. Recv() (*ContainerEventResponse, error)
  9838. grpc.ClientStream
  9839. }
  9840. type runtimeServiceGetContainerEventsClient struct {
  9841. grpc.ClientStream
  9842. }
  9843. func (x *runtimeServiceGetContainerEventsClient) Recv() (*ContainerEventResponse, error) {
  9844. m := new(ContainerEventResponse)
  9845. if err := x.ClientStream.RecvMsg(m); err != nil {
  9846. return nil, err
  9847. }
  9848. return m, nil
  9849. }
  9850. func (c *runtimeServiceClient) ListMetricDescriptors(ctx context.Context, in *ListMetricDescriptorsRequest, opts ...grpc.CallOption) (*ListMetricDescriptorsResponse, error) {
  9851. out := new(ListMetricDescriptorsResponse)
  9852. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/ListMetricDescriptors", in, out, opts...)
  9853. if err != nil {
  9854. return nil, err
  9855. }
  9856. return out, nil
  9857. }
  9858. func (c *runtimeServiceClient) ListPodSandboxMetrics(ctx context.Context, in *ListPodSandboxMetricsRequest, opts ...grpc.CallOption) (*ListPodSandboxMetricsResponse, error) {
  9859. out := new(ListPodSandboxMetricsResponse)
  9860. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/ListPodSandboxMetrics", in, out, opts...)
  9861. if err != nil {
  9862. return nil, err
  9863. }
  9864. return out, nil
  9865. }
  9866. func (c *runtimeServiceClient) RuntimeConfig(ctx context.Context, in *RuntimeConfigRequest, opts ...grpc.CallOption) (*RuntimeConfigResponse, error) {
  9867. out := new(RuntimeConfigResponse)
  9868. err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeService/RuntimeConfig", in, out, opts...)
  9869. if err != nil {
  9870. return nil, err
  9871. }
  9872. return out, nil
  9873. }
  9874. // RuntimeServiceServer is the server API for RuntimeService service.
  9875. type RuntimeServiceServer interface {
  9876. // Version returns the runtime name, runtime version, and runtime API version.
  9877. Version(context.Context, *VersionRequest) (*VersionResponse, error)
  9878. // RunPodSandbox creates and starts a pod-level sandbox. Runtimes must ensure
  9879. // the sandbox is in the ready state on success.
  9880. RunPodSandbox(context.Context, *RunPodSandboxRequest) (*RunPodSandboxResponse, error)
  9881. // StopPodSandbox stops any running process that is part of the sandbox and
  9882. // reclaims network resources (e.g., IP addresses) allocated to the sandbox.
  9883. // If there are any running containers in the sandbox, they must be forcibly
  9884. // terminated.
  9885. // This call is idempotent, and must not return an error if all relevant
  9886. // resources have already been reclaimed. kubelet will call StopPodSandbox
  9887. // at least once before calling RemovePodSandbox. It will also attempt to
  9888. // reclaim resources eagerly, as soon as a sandbox is not needed. Hence,
  9889. // multiple StopPodSandbox calls are expected.
  9890. StopPodSandbox(context.Context, *StopPodSandboxRequest) (*StopPodSandboxResponse, error)
  9891. // RemovePodSandbox removes the sandbox. If there are any running containers
  9892. // in the sandbox, they must be forcibly terminated and removed.
  9893. // This call is idempotent, and must not return an error if the sandbox has
  9894. // already been removed.
  9895. RemovePodSandbox(context.Context, *RemovePodSandboxRequest) (*RemovePodSandboxResponse, error)
  9896. // PodSandboxStatus returns the status of the PodSandbox. If the PodSandbox is not
  9897. // present, returns an error.
  9898. PodSandboxStatus(context.Context, *PodSandboxStatusRequest) (*PodSandboxStatusResponse, error)
  9899. // ListPodSandbox returns a list of PodSandboxes.
  9900. ListPodSandbox(context.Context, *ListPodSandboxRequest) (*ListPodSandboxResponse, error)
  9901. // CreateContainer creates a new container in specified PodSandbox
  9902. CreateContainer(context.Context, *CreateContainerRequest) (*CreateContainerResponse, error)
  9903. // StartContainer starts the container.
  9904. StartContainer(context.Context, *StartContainerRequest) (*StartContainerResponse, error)
  9905. // StopContainer stops a running container with a grace period (i.e., timeout).
  9906. // This call is idempotent, and must not return an error if the container has
  9907. // already been stopped.
  9908. // The runtime must forcibly kill the container after the grace period is
  9909. // reached.
  9910. StopContainer(context.Context, *StopContainerRequest) (*StopContainerResponse, error)
  9911. // RemoveContainer removes the container. If the container is running, the
  9912. // container must be forcibly removed.
  9913. // This call is idempotent, and must not return an error if the container has
  9914. // already been removed.
  9915. RemoveContainer(context.Context, *RemoveContainerRequest) (*RemoveContainerResponse, error)
  9916. // ListContainers lists all containers by filters.
  9917. ListContainers(context.Context, *ListContainersRequest) (*ListContainersResponse, error)
  9918. // ContainerStatus returns status of the container. If the container is not
  9919. // present, returns an error.
  9920. ContainerStatus(context.Context, *ContainerStatusRequest) (*ContainerStatusResponse, error)
  9921. // UpdateContainerResources updates ContainerConfig of the container synchronously.
  9922. // If runtime fails to transactionally update the requested resources, an error is returned.
  9923. UpdateContainerResources(context.Context, *UpdateContainerResourcesRequest) (*UpdateContainerResourcesResponse, error)
  9924. // ReopenContainerLog asks runtime to reopen the stdout/stderr log file
  9925. // for the container. This is often called after the log file has been
  9926. // rotated. If the container is not running, container runtime can choose
  9927. // to either create a new log file and return nil, or return an error.
  9928. // Once it returns error, new container log file MUST NOT be created.
  9929. ReopenContainerLog(context.Context, *ReopenContainerLogRequest) (*ReopenContainerLogResponse, error)
  9930. // ExecSync runs a command in a container synchronously.
  9931. ExecSync(context.Context, *ExecSyncRequest) (*ExecSyncResponse, error)
  9932. // Exec prepares a streaming endpoint to execute a command in the container.
  9933. Exec(context.Context, *ExecRequest) (*ExecResponse, error)
  9934. // Attach prepares a streaming endpoint to attach to a running container.
  9935. Attach(context.Context, *AttachRequest) (*AttachResponse, error)
  9936. // PortForward prepares a streaming endpoint to forward ports from a PodSandbox.
  9937. PortForward(context.Context, *PortForwardRequest) (*PortForwardResponse, error)
  9938. // ContainerStats returns stats of the container. If the container does not
  9939. // exist, the call returns an error.
  9940. ContainerStats(context.Context, *ContainerStatsRequest) (*ContainerStatsResponse, error)
  9941. // ListContainerStats returns stats of all running containers.
  9942. ListContainerStats(context.Context, *ListContainerStatsRequest) (*ListContainerStatsResponse, error)
  9943. // PodSandboxStats returns stats of the pod sandbox. If the pod sandbox does not
  9944. // exist, the call returns an error.
  9945. PodSandboxStats(context.Context, *PodSandboxStatsRequest) (*PodSandboxStatsResponse, error)
  9946. // ListPodSandboxStats returns stats of the pod sandboxes matching a filter.
  9947. ListPodSandboxStats(context.Context, *ListPodSandboxStatsRequest) (*ListPodSandboxStatsResponse, error)
  9948. // UpdateRuntimeConfig updates the runtime configuration based on the given request.
  9949. UpdateRuntimeConfig(context.Context, *UpdateRuntimeConfigRequest) (*UpdateRuntimeConfigResponse, error)
  9950. // Status returns the status of the runtime.
  9951. Status(context.Context, *StatusRequest) (*StatusResponse, error)
  9952. // CheckpointContainer checkpoints a container
  9953. CheckpointContainer(context.Context, *CheckpointContainerRequest) (*CheckpointContainerResponse, error)
  9954. // GetContainerEvents gets container events from the CRI runtime
  9955. GetContainerEvents(*GetEventsRequest, RuntimeService_GetContainerEventsServer) error
  9956. // ListMetricDescriptors gets the descriptors for the metrics that will be returned in ListPodSandboxMetrics.
  9957. // This list should be static at startup: either the client and server restart together when
  9958. // adding or removing metrics descriptors, or they should not change.
  9959. // Put differently, if ListPodSandboxMetrics references a name that is not described in the initial
  9960. // ListMetricDescriptors call, then the metric will not be broadcasted.
  9961. ListMetricDescriptors(context.Context, *ListMetricDescriptorsRequest) (*ListMetricDescriptorsResponse, error)
  9962. // ListPodSandboxMetrics gets pod sandbox metrics from CRI Runtime
  9963. ListPodSandboxMetrics(context.Context, *ListPodSandboxMetricsRequest) (*ListPodSandboxMetricsResponse, error)
  9964. // RuntimeConfig returns configuration information of the runtime.
  9965. // A couple of notes:
  9966. // - The RuntimeConfigRequest object is not to be confused with the contents of UpdateRuntimeConfigRequest.
  9967. // The former is for having runtime tell Kubelet what to do, the latter vice versa.
  9968. // - It is the expectation of the Kubelet that these fields are static for the lifecycle of the Kubelet.
  9969. // The Kubelet will not re-request the RuntimeConfiguration after startup, and CRI implementations should
  9970. // avoid updating them without a full node reboot.
  9971. RuntimeConfig(context.Context, *RuntimeConfigRequest) (*RuntimeConfigResponse, error)
  9972. }
  9973. // UnimplementedRuntimeServiceServer can be embedded to have forward compatible implementations.
  9974. type UnimplementedRuntimeServiceServer struct {
  9975. }
  9976. func (*UnimplementedRuntimeServiceServer) Version(ctx context.Context, req *VersionRequest) (*VersionResponse, error) {
  9977. return nil, status.Errorf(codes.Unimplemented, "method Version not implemented")
  9978. }
  9979. func (*UnimplementedRuntimeServiceServer) RunPodSandbox(ctx context.Context, req *RunPodSandboxRequest) (*RunPodSandboxResponse, error) {
  9980. return nil, status.Errorf(codes.Unimplemented, "method RunPodSandbox not implemented")
  9981. }
  9982. func (*UnimplementedRuntimeServiceServer) StopPodSandbox(ctx context.Context, req *StopPodSandboxRequest) (*StopPodSandboxResponse, error) {
  9983. return nil, status.Errorf(codes.Unimplemented, "method StopPodSandbox not implemented")
  9984. }
  9985. func (*UnimplementedRuntimeServiceServer) RemovePodSandbox(ctx context.Context, req *RemovePodSandboxRequest) (*RemovePodSandboxResponse, error) {
  9986. return nil, status.Errorf(codes.Unimplemented, "method RemovePodSandbox not implemented")
  9987. }
  9988. func (*UnimplementedRuntimeServiceServer) PodSandboxStatus(ctx context.Context, req *PodSandboxStatusRequest) (*PodSandboxStatusResponse, error) {
  9989. return nil, status.Errorf(codes.Unimplemented, "method PodSandboxStatus not implemented")
  9990. }
  9991. func (*UnimplementedRuntimeServiceServer) ListPodSandbox(ctx context.Context, req *ListPodSandboxRequest) (*ListPodSandboxResponse, error) {
  9992. return nil, status.Errorf(codes.Unimplemented, "method ListPodSandbox not implemented")
  9993. }
  9994. func (*UnimplementedRuntimeServiceServer) CreateContainer(ctx context.Context, req *CreateContainerRequest) (*CreateContainerResponse, error) {
  9995. return nil, status.Errorf(codes.Unimplemented, "method CreateContainer not implemented")
  9996. }
  9997. func (*UnimplementedRuntimeServiceServer) StartContainer(ctx context.Context, req *StartContainerRequest) (*StartContainerResponse, error) {
  9998. return nil, status.Errorf(codes.Unimplemented, "method StartContainer not implemented")
  9999. }
  10000. func (*UnimplementedRuntimeServiceServer) StopContainer(ctx context.Context, req *StopContainerRequest) (*StopContainerResponse, error) {
  10001. return nil, status.Errorf(codes.Unimplemented, "method StopContainer not implemented")
  10002. }
  10003. func (*UnimplementedRuntimeServiceServer) RemoveContainer(ctx context.Context, req *RemoveContainerRequest) (*RemoveContainerResponse, error) {
  10004. return nil, status.Errorf(codes.Unimplemented, "method RemoveContainer not implemented")
  10005. }
  10006. func (*UnimplementedRuntimeServiceServer) ListContainers(ctx context.Context, req *ListContainersRequest) (*ListContainersResponse, error) {
  10007. return nil, status.Errorf(codes.Unimplemented, "method ListContainers not implemented")
  10008. }
  10009. func (*UnimplementedRuntimeServiceServer) ContainerStatus(ctx context.Context, req *ContainerStatusRequest) (*ContainerStatusResponse, error) {
  10010. return nil, status.Errorf(codes.Unimplemented, "method ContainerStatus not implemented")
  10011. }
  10012. func (*UnimplementedRuntimeServiceServer) UpdateContainerResources(ctx context.Context, req *UpdateContainerResourcesRequest) (*UpdateContainerResourcesResponse, error) {
  10013. return nil, status.Errorf(codes.Unimplemented, "method UpdateContainerResources not implemented")
  10014. }
  10015. func (*UnimplementedRuntimeServiceServer) ReopenContainerLog(ctx context.Context, req *ReopenContainerLogRequest) (*ReopenContainerLogResponse, error) {
  10016. return nil, status.Errorf(codes.Unimplemented, "method ReopenContainerLog not implemented")
  10017. }
  10018. func (*UnimplementedRuntimeServiceServer) ExecSync(ctx context.Context, req *ExecSyncRequest) (*ExecSyncResponse, error) {
  10019. return nil, status.Errorf(codes.Unimplemented, "method ExecSync not implemented")
  10020. }
  10021. func (*UnimplementedRuntimeServiceServer) Exec(ctx context.Context, req *ExecRequest) (*ExecResponse, error) {
  10022. return nil, status.Errorf(codes.Unimplemented, "method Exec not implemented")
  10023. }
  10024. func (*UnimplementedRuntimeServiceServer) Attach(ctx context.Context, req *AttachRequest) (*AttachResponse, error) {
  10025. return nil, status.Errorf(codes.Unimplemented, "method Attach not implemented")
  10026. }
  10027. func (*UnimplementedRuntimeServiceServer) PortForward(ctx context.Context, req *PortForwardRequest) (*PortForwardResponse, error) {
  10028. return nil, status.Errorf(codes.Unimplemented, "method PortForward not implemented")
  10029. }
  10030. func (*UnimplementedRuntimeServiceServer) ContainerStats(ctx context.Context, req *ContainerStatsRequest) (*ContainerStatsResponse, error) {
  10031. return nil, status.Errorf(codes.Unimplemented, "method ContainerStats not implemented")
  10032. }
  10033. func (*UnimplementedRuntimeServiceServer) ListContainerStats(ctx context.Context, req *ListContainerStatsRequest) (*ListContainerStatsResponse, error) {
  10034. return nil, status.Errorf(codes.Unimplemented, "method ListContainerStats not implemented")
  10035. }
  10036. func (*UnimplementedRuntimeServiceServer) PodSandboxStats(ctx context.Context, req *PodSandboxStatsRequest) (*PodSandboxStatsResponse, error) {
  10037. return nil, status.Errorf(codes.Unimplemented, "method PodSandboxStats not implemented")
  10038. }
  10039. func (*UnimplementedRuntimeServiceServer) ListPodSandboxStats(ctx context.Context, req *ListPodSandboxStatsRequest) (*ListPodSandboxStatsResponse, error) {
  10040. return nil, status.Errorf(codes.Unimplemented, "method ListPodSandboxStats not implemented")
  10041. }
  10042. func (*UnimplementedRuntimeServiceServer) UpdateRuntimeConfig(ctx context.Context, req *UpdateRuntimeConfigRequest) (*UpdateRuntimeConfigResponse, error) {
  10043. return nil, status.Errorf(codes.Unimplemented, "method UpdateRuntimeConfig not implemented")
  10044. }
  10045. func (*UnimplementedRuntimeServiceServer) Status(ctx context.Context, req *StatusRequest) (*StatusResponse, error) {
  10046. return nil, status.Errorf(codes.Unimplemented, "method Status not implemented")
  10047. }
  10048. func (*UnimplementedRuntimeServiceServer) CheckpointContainer(ctx context.Context, req *CheckpointContainerRequest) (*CheckpointContainerResponse, error) {
  10049. return nil, status.Errorf(codes.Unimplemented, "method CheckpointContainer not implemented")
  10050. }
  10051. func (*UnimplementedRuntimeServiceServer) GetContainerEvents(req *GetEventsRequest, srv RuntimeService_GetContainerEventsServer) error {
  10052. return status.Errorf(codes.Unimplemented, "method GetContainerEvents not implemented")
  10053. }
  10054. func (*UnimplementedRuntimeServiceServer) ListMetricDescriptors(ctx context.Context, req *ListMetricDescriptorsRequest) (*ListMetricDescriptorsResponse, error) {
  10055. return nil, status.Errorf(codes.Unimplemented, "method ListMetricDescriptors not implemented")
  10056. }
  10057. func (*UnimplementedRuntimeServiceServer) ListPodSandboxMetrics(ctx context.Context, req *ListPodSandboxMetricsRequest) (*ListPodSandboxMetricsResponse, error) {
  10058. return nil, status.Errorf(codes.Unimplemented, "method ListPodSandboxMetrics not implemented")
  10059. }
  10060. func (*UnimplementedRuntimeServiceServer) RuntimeConfig(ctx context.Context, req *RuntimeConfigRequest) (*RuntimeConfigResponse, error) {
  10061. return nil, status.Errorf(codes.Unimplemented, "method RuntimeConfig not implemented")
  10062. }
  10063. func RegisterRuntimeServiceServer(s *grpc.Server, srv RuntimeServiceServer) {
  10064. s.RegisterService(&_RuntimeService_serviceDesc, srv)
  10065. }
  10066. func _RuntimeService_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10067. in := new(VersionRequest)
  10068. if err := dec(in); err != nil {
  10069. return nil, err
  10070. }
  10071. if interceptor == nil {
  10072. return srv.(RuntimeServiceServer).Version(ctx, in)
  10073. }
  10074. info := &grpc.UnaryServerInfo{
  10075. Server: srv,
  10076. FullMethod: "/runtime.v1.RuntimeService/Version",
  10077. }
  10078. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10079. return srv.(RuntimeServiceServer).Version(ctx, req.(*VersionRequest))
  10080. }
  10081. return interceptor(ctx, in, info, handler)
  10082. }
  10083. func _RuntimeService_RunPodSandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10084. in := new(RunPodSandboxRequest)
  10085. if err := dec(in); err != nil {
  10086. return nil, err
  10087. }
  10088. if interceptor == nil {
  10089. return srv.(RuntimeServiceServer).RunPodSandbox(ctx, in)
  10090. }
  10091. info := &grpc.UnaryServerInfo{
  10092. Server: srv,
  10093. FullMethod: "/runtime.v1.RuntimeService/RunPodSandbox",
  10094. }
  10095. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10096. return srv.(RuntimeServiceServer).RunPodSandbox(ctx, req.(*RunPodSandboxRequest))
  10097. }
  10098. return interceptor(ctx, in, info, handler)
  10099. }
  10100. func _RuntimeService_StopPodSandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10101. in := new(StopPodSandboxRequest)
  10102. if err := dec(in); err != nil {
  10103. return nil, err
  10104. }
  10105. if interceptor == nil {
  10106. return srv.(RuntimeServiceServer).StopPodSandbox(ctx, in)
  10107. }
  10108. info := &grpc.UnaryServerInfo{
  10109. Server: srv,
  10110. FullMethod: "/runtime.v1.RuntimeService/StopPodSandbox",
  10111. }
  10112. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10113. return srv.(RuntimeServiceServer).StopPodSandbox(ctx, req.(*StopPodSandboxRequest))
  10114. }
  10115. return interceptor(ctx, in, info, handler)
  10116. }
  10117. func _RuntimeService_RemovePodSandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10118. in := new(RemovePodSandboxRequest)
  10119. if err := dec(in); err != nil {
  10120. return nil, err
  10121. }
  10122. if interceptor == nil {
  10123. return srv.(RuntimeServiceServer).RemovePodSandbox(ctx, in)
  10124. }
  10125. info := &grpc.UnaryServerInfo{
  10126. Server: srv,
  10127. FullMethod: "/runtime.v1.RuntimeService/RemovePodSandbox",
  10128. }
  10129. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10130. return srv.(RuntimeServiceServer).RemovePodSandbox(ctx, req.(*RemovePodSandboxRequest))
  10131. }
  10132. return interceptor(ctx, in, info, handler)
  10133. }
  10134. func _RuntimeService_PodSandboxStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10135. in := new(PodSandboxStatusRequest)
  10136. if err := dec(in); err != nil {
  10137. return nil, err
  10138. }
  10139. if interceptor == nil {
  10140. return srv.(RuntimeServiceServer).PodSandboxStatus(ctx, in)
  10141. }
  10142. info := &grpc.UnaryServerInfo{
  10143. Server: srv,
  10144. FullMethod: "/runtime.v1.RuntimeService/PodSandboxStatus",
  10145. }
  10146. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10147. return srv.(RuntimeServiceServer).PodSandboxStatus(ctx, req.(*PodSandboxStatusRequest))
  10148. }
  10149. return interceptor(ctx, in, info, handler)
  10150. }
  10151. func _RuntimeService_ListPodSandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10152. in := new(ListPodSandboxRequest)
  10153. if err := dec(in); err != nil {
  10154. return nil, err
  10155. }
  10156. if interceptor == nil {
  10157. return srv.(RuntimeServiceServer).ListPodSandbox(ctx, in)
  10158. }
  10159. info := &grpc.UnaryServerInfo{
  10160. Server: srv,
  10161. FullMethod: "/runtime.v1.RuntimeService/ListPodSandbox",
  10162. }
  10163. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10164. return srv.(RuntimeServiceServer).ListPodSandbox(ctx, req.(*ListPodSandboxRequest))
  10165. }
  10166. return interceptor(ctx, in, info, handler)
  10167. }
  10168. func _RuntimeService_CreateContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10169. in := new(CreateContainerRequest)
  10170. if err := dec(in); err != nil {
  10171. return nil, err
  10172. }
  10173. if interceptor == nil {
  10174. return srv.(RuntimeServiceServer).CreateContainer(ctx, in)
  10175. }
  10176. info := &grpc.UnaryServerInfo{
  10177. Server: srv,
  10178. FullMethod: "/runtime.v1.RuntimeService/CreateContainer",
  10179. }
  10180. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10181. return srv.(RuntimeServiceServer).CreateContainer(ctx, req.(*CreateContainerRequest))
  10182. }
  10183. return interceptor(ctx, in, info, handler)
  10184. }
  10185. func _RuntimeService_StartContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10186. in := new(StartContainerRequest)
  10187. if err := dec(in); err != nil {
  10188. return nil, err
  10189. }
  10190. if interceptor == nil {
  10191. return srv.(RuntimeServiceServer).StartContainer(ctx, in)
  10192. }
  10193. info := &grpc.UnaryServerInfo{
  10194. Server: srv,
  10195. FullMethod: "/runtime.v1.RuntimeService/StartContainer",
  10196. }
  10197. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10198. return srv.(RuntimeServiceServer).StartContainer(ctx, req.(*StartContainerRequest))
  10199. }
  10200. return interceptor(ctx, in, info, handler)
  10201. }
  10202. func _RuntimeService_StopContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10203. in := new(StopContainerRequest)
  10204. if err := dec(in); err != nil {
  10205. return nil, err
  10206. }
  10207. if interceptor == nil {
  10208. return srv.(RuntimeServiceServer).StopContainer(ctx, in)
  10209. }
  10210. info := &grpc.UnaryServerInfo{
  10211. Server: srv,
  10212. FullMethod: "/runtime.v1.RuntimeService/StopContainer",
  10213. }
  10214. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10215. return srv.(RuntimeServiceServer).StopContainer(ctx, req.(*StopContainerRequest))
  10216. }
  10217. return interceptor(ctx, in, info, handler)
  10218. }
  10219. func _RuntimeService_RemoveContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10220. in := new(RemoveContainerRequest)
  10221. if err := dec(in); err != nil {
  10222. return nil, err
  10223. }
  10224. if interceptor == nil {
  10225. return srv.(RuntimeServiceServer).RemoveContainer(ctx, in)
  10226. }
  10227. info := &grpc.UnaryServerInfo{
  10228. Server: srv,
  10229. FullMethod: "/runtime.v1.RuntimeService/RemoveContainer",
  10230. }
  10231. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10232. return srv.(RuntimeServiceServer).RemoveContainer(ctx, req.(*RemoveContainerRequest))
  10233. }
  10234. return interceptor(ctx, in, info, handler)
  10235. }
  10236. func _RuntimeService_ListContainers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10237. in := new(ListContainersRequest)
  10238. if err := dec(in); err != nil {
  10239. return nil, err
  10240. }
  10241. if interceptor == nil {
  10242. return srv.(RuntimeServiceServer).ListContainers(ctx, in)
  10243. }
  10244. info := &grpc.UnaryServerInfo{
  10245. Server: srv,
  10246. FullMethod: "/runtime.v1.RuntimeService/ListContainers",
  10247. }
  10248. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10249. return srv.(RuntimeServiceServer).ListContainers(ctx, req.(*ListContainersRequest))
  10250. }
  10251. return interceptor(ctx, in, info, handler)
  10252. }
  10253. func _RuntimeService_ContainerStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10254. in := new(ContainerStatusRequest)
  10255. if err := dec(in); err != nil {
  10256. return nil, err
  10257. }
  10258. if interceptor == nil {
  10259. return srv.(RuntimeServiceServer).ContainerStatus(ctx, in)
  10260. }
  10261. info := &grpc.UnaryServerInfo{
  10262. Server: srv,
  10263. FullMethod: "/runtime.v1.RuntimeService/ContainerStatus",
  10264. }
  10265. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10266. return srv.(RuntimeServiceServer).ContainerStatus(ctx, req.(*ContainerStatusRequest))
  10267. }
  10268. return interceptor(ctx, in, info, handler)
  10269. }
  10270. func _RuntimeService_UpdateContainerResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10271. in := new(UpdateContainerResourcesRequest)
  10272. if err := dec(in); err != nil {
  10273. return nil, err
  10274. }
  10275. if interceptor == nil {
  10276. return srv.(RuntimeServiceServer).UpdateContainerResources(ctx, in)
  10277. }
  10278. info := &grpc.UnaryServerInfo{
  10279. Server: srv,
  10280. FullMethod: "/runtime.v1.RuntimeService/UpdateContainerResources",
  10281. }
  10282. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10283. return srv.(RuntimeServiceServer).UpdateContainerResources(ctx, req.(*UpdateContainerResourcesRequest))
  10284. }
  10285. return interceptor(ctx, in, info, handler)
  10286. }
  10287. func _RuntimeService_ReopenContainerLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10288. in := new(ReopenContainerLogRequest)
  10289. if err := dec(in); err != nil {
  10290. return nil, err
  10291. }
  10292. if interceptor == nil {
  10293. return srv.(RuntimeServiceServer).ReopenContainerLog(ctx, in)
  10294. }
  10295. info := &grpc.UnaryServerInfo{
  10296. Server: srv,
  10297. FullMethod: "/runtime.v1.RuntimeService/ReopenContainerLog",
  10298. }
  10299. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10300. return srv.(RuntimeServiceServer).ReopenContainerLog(ctx, req.(*ReopenContainerLogRequest))
  10301. }
  10302. return interceptor(ctx, in, info, handler)
  10303. }
  10304. func _RuntimeService_ExecSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10305. in := new(ExecSyncRequest)
  10306. if err := dec(in); err != nil {
  10307. return nil, err
  10308. }
  10309. if interceptor == nil {
  10310. return srv.(RuntimeServiceServer).ExecSync(ctx, in)
  10311. }
  10312. info := &grpc.UnaryServerInfo{
  10313. Server: srv,
  10314. FullMethod: "/runtime.v1.RuntimeService/ExecSync",
  10315. }
  10316. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10317. return srv.(RuntimeServiceServer).ExecSync(ctx, req.(*ExecSyncRequest))
  10318. }
  10319. return interceptor(ctx, in, info, handler)
  10320. }
  10321. func _RuntimeService_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10322. in := new(ExecRequest)
  10323. if err := dec(in); err != nil {
  10324. return nil, err
  10325. }
  10326. if interceptor == nil {
  10327. return srv.(RuntimeServiceServer).Exec(ctx, in)
  10328. }
  10329. info := &grpc.UnaryServerInfo{
  10330. Server: srv,
  10331. FullMethod: "/runtime.v1.RuntimeService/Exec",
  10332. }
  10333. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10334. return srv.(RuntimeServiceServer).Exec(ctx, req.(*ExecRequest))
  10335. }
  10336. return interceptor(ctx, in, info, handler)
  10337. }
  10338. func _RuntimeService_Attach_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10339. in := new(AttachRequest)
  10340. if err := dec(in); err != nil {
  10341. return nil, err
  10342. }
  10343. if interceptor == nil {
  10344. return srv.(RuntimeServiceServer).Attach(ctx, in)
  10345. }
  10346. info := &grpc.UnaryServerInfo{
  10347. Server: srv,
  10348. FullMethod: "/runtime.v1.RuntimeService/Attach",
  10349. }
  10350. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10351. return srv.(RuntimeServiceServer).Attach(ctx, req.(*AttachRequest))
  10352. }
  10353. return interceptor(ctx, in, info, handler)
  10354. }
  10355. func _RuntimeService_PortForward_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10356. in := new(PortForwardRequest)
  10357. if err := dec(in); err != nil {
  10358. return nil, err
  10359. }
  10360. if interceptor == nil {
  10361. return srv.(RuntimeServiceServer).PortForward(ctx, in)
  10362. }
  10363. info := &grpc.UnaryServerInfo{
  10364. Server: srv,
  10365. FullMethod: "/runtime.v1.RuntimeService/PortForward",
  10366. }
  10367. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10368. return srv.(RuntimeServiceServer).PortForward(ctx, req.(*PortForwardRequest))
  10369. }
  10370. return interceptor(ctx, in, info, handler)
  10371. }
  10372. func _RuntimeService_ContainerStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10373. in := new(ContainerStatsRequest)
  10374. if err := dec(in); err != nil {
  10375. return nil, err
  10376. }
  10377. if interceptor == nil {
  10378. return srv.(RuntimeServiceServer).ContainerStats(ctx, in)
  10379. }
  10380. info := &grpc.UnaryServerInfo{
  10381. Server: srv,
  10382. FullMethod: "/runtime.v1.RuntimeService/ContainerStats",
  10383. }
  10384. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10385. return srv.(RuntimeServiceServer).ContainerStats(ctx, req.(*ContainerStatsRequest))
  10386. }
  10387. return interceptor(ctx, in, info, handler)
  10388. }
  10389. func _RuntimeService_ListContainerStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10390. in := new(ListContainerStatsRequest)
  10391. if err := dec(in); err != nil {
  10392. return nil, err
  10393. }
  10394. if interceptor == nil {
  10395. return srv.(RuntimeServiceServer).ListContainerStats(ctx, in)
  10396. }
  10397. info := &grpc.UnaryServerInfo{
  10398. Server: srv,
  10399. FullMethod: "/runtime.v1.RuntimeService/ListContainerStats",
  10400. }
  10401. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10402. return srv.(RuntimeServiceServer).ListContainerStats(ctx, req.(*ListContainerStatsRequest))
  10403. }
  10404. return interceptor(ctx, in, info, handler)
  10405. }
  10406. func _RuntimeService_PodSandboxStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10407. in := new(PodSandboxStatsRequest)
  10408. if err := dec(in); err != nil {
  10409. return nil, err
  10410. }
  10411. if interceptor == nil {
  10412. return srv.(RuntimeServiceServer).PodSandboxStats(ctx, in)
  10413. }
  10414. info := &grpc.UnaryServerInfo{
  10415. Server: srv,
  10416. FullMethod: "/runtime.v1.RuntimeService/PodSandboxStats",
  10417. }
  10418. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10419. return srv.(RuntimeServiceServer).PodSandboxStats(ctx, req.(*PodSandboxStatsRequest))
  10420. }
  10421. return interceptor(ctx, in, info, handler)
  10422. }
  10423. func _RuntimeService_ListPodSandboxStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10424. in := new(ListPodSandboxStatsRequest)
  10425. if err := dec(in); err != nil {
  10426. return nil, err
  10427. }
  10428. if interceptor == nil {
  10429. return srv.(RuntimeServiceServer).ListPodSandboxStats(ctx, in)
  10430. }
  10431. info := &grpc.UnaryServerInfo{
  10432. Server: srv,
  10433. FullMethod: "/runtime.v1.RuntimeService/ListPodSandboxStats",
  10434. }
  10435. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10436. return srv.(RuntimeServiceServer).ListPodSandboxStats(ctx, req.(*ListPodSandboxStatsRequest))
  10437. }
  10438. return interceptor(ctx, in, info, handler)
  10439. }
  10440. func _RuntimeService_UpdateRuntimeConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10441. in := new(UpdateRuntimeConfigRequest)
  10442. if err := dec(in); err != nil {
  10443. return nil, err
  10444. }
  10445. if interceptor == nil {
  10446. return srv.(RuntimeServiceServer).UpdateRuntimeConfig(ctx, in)
  10447. }
  10448. info := &grpc.UnaryServerInfo{
  10449. Server: srv,
  10450. FullMethod: "/runtime.v1.RuntimeService/UpdateRuntimeConfig",
  10451. }
  10452. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10453. return srv.(RuntimeServiceServer).UpdateRuntimeConfig(ctx, req.(*UpdateRuntimeConfigRequest))
  10454. }
  10455. return interceptor(ctx, in, info, handler)
  10456. }
  10457. func _RuntimeService_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10458. in := new(StatusRequest)
  10459. if err := dec(in); err != nil {
  10460. return nil, err
  10461. }
  10462. if interceptor == nil {
  10463. return srv.(RuntimeServiceServer).Status(ctx, in)
  10464. }
  10465. info := &grpc.UnaryServerInfo{
  10466. Server: srv,
  10467. FullMethod: "/runtime.v1.RuntimeService/Status",
  10468. }
  10469. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10470. return srv.(RuntimeServiceServer).Status(ctx, req.(*StatusRequest))
  10471. }
  10472. return interceptor(ctx, in, info, handler)
  10473. }
  10474. func _RuntimeService_CheckpointContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10475. in := new(CheckpointContainerRequest)
  10476. if err := dec(in); err != nil {
  10477. return nil, err
  10478. }
  10479. if interceptor == nil {
  10480. return srv.(RuntimeServiceServer).CheckpointContainer(ctx, in)
  10481. }
  10482. info := &grpc.UnaryServerInfo{
  10483. Server: srv,
  10484. FullMethod: "/runtime.v1.RuntimeService/CheckpointContainer",
  10485. }
  10486. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10487. return srv.(RuntimeServiceServer).CheckpointContainer(ctx, req.(*CheckpointContainerRequest))
  10488. }
  10489. return interceptor(ctx, in, info, handler)
  10490. }
  10491. func _RuntimeService_GetContainerEvents_Handler(srv interface{}, stream grpc.ServerStream) error {
  10492. m := new(GetEventsRequest)
  10493. if err := stream.RecvMsg(m); err != nil {
  10494. return err
  10495. }
  10496. return srv.(RuntimeServiceServer).GetContainerEvents(m, &runtimeServiceGetContainerEventsServer{stream})
  10497. }
  10498. type RuntimeService_GetContainerEventsServer interface {
  10499. Send(*ContainerEventResponse) error
  10500. grpc.ServerStream
  10501. }
  10502. type runtimeServiceGetContainerEventsServer struct {
  10503. grpc.ServerStream
  10504. }
  10505. func (x *runtimeServiceGetContainerEventsServer) Send(m *ContainerEventResponse) error {
  10506. return x.ServerStream.SendMsg(m)
  10507. }
  10508. func _RuntimeService_ListMetricDescriptors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10509. in := new(ListMetricDescriptorsRequest)
  10510. if err := dec(in); err != nil {
  10511. return nil, err
  10512. }
  10513. if interceptor == nil {
  10514. return srv.(RuntimeServiceServer).ListMetricDescriptors(ctx, in)
  10515. }
  10516. info := &grpc.UnaryServerInfo{
  10517. Server: srv,
  10518. FullMethod: "/runtime.v1.RuntimeService/ListMetricDescriptors",
  10519. }
  10520. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10521. return srv.(RuntimeServiceServer).ListMetricDescriptors(ctx, req.(*ListMetricDescriptorsRequest))
  10522. }
  10523. return interceptor(ctx, in, info, handler)
  10524. }
  10525. func _RuntimeService_ListPodSandboxMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10526. in := new(ListPodSandboxMetricsRequest)
  10527. if err := dec(in); err != nil {
  10528. return nil, err
  10529. }
  10530. if interceptor == nil {
  10531. return srv.(RuntimeServiceServer).ListPodSandboxMetrics(ctx, in)
  10532. }
  10533. info := &grpc.UnaryServerInfo{
  10534. Server: srv,
  10535. FullMethod: "/runtime.v1.RuntimeService/ListPodSandboxMetrics",
  10536. }
  10537. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10538. return srv.(RuntimeServiceServer).ListPodSandboxMetrics(ctx, req.(*ListPodSandboxMetricsRequest))
  10539. }
  10540. return interceptor(ctx, in, info, handler)
  10541. }
  10542. func _RuntimeService_RuntimeConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10543. in := new(RuntimeConfigRequest)
  10544. if err := dec(in); err != nil {
  10545. return nil, err
  10546. }
  10547. if interceptor == nil {
  10548. return srv.(RuntimeServiceServer).RuntimeConfig(ctx, in)
  10549. }
  10550. info := &grpc.UnaryServerInfo{
  10551. Server: srv,
  10552. FullMethod: "/runtime.v1.RuntimeService/RuntimeConfig",
  10553. }
  10554. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10555. return srv.(RuntimeServiceServer).RuntimeConfig(ctx, req.(*RuntimeConfigRequest))
  10556. }
  10557. return interceptor(ctx, in, info, handler)
  10558. }
  10559. var _RuntimeService_serviceDesc = grpc.ServiceDesc{
  10560. ServiceName: "runtime.v1.RuntimeService",
  10561. HandlerType: (*RuntimeServiceServer)(nil),
  10562. Methods: []grpc.MethodDesc{
  10563. {
  10564. MethodName: "Version",
  10565. Handler: _RuntimeService_Version_Handler,
  10566. },
  10567. {
  10568. MethodName: "RunPodSandbox",
  10569. Handler: _RuntimeService_RunPodSandbox_Handler,
  10570. },
  10571. {
  10572. MethodName: "StopPodSandbox",
  10573. Handler: _RuntimeService_StopPodSandbox_Handler,
  10574. },
  10575. {
  10576. MethodName: "RemovePodSandbox",
  10577. Handler: _RuntimeService_RemovePodSandbox_Handler,
  10578. },
  10579. {
  10580. MethodName: "PodSandboxStatus",
  10581. Handler: _RuntimeService_PodSandboxStatus_Handler,
  10582. },
  10583. {
  10584. MethodName: "ListPodSandbox",
  10585. Handler: _RuntimeService_ListPodSandbox_Handler,
  10586. },
  10587. {
  10588. MethodName: "CreateContainer",
  10589. Handler: _RuntimeService_CreateContainer_Handler,
  10590. },
  10591. {
  10592. MethodName: "StartContainer",
  10593. Handler: _RuntimeService_StartContainer_Handler,
  10594. },
  10595. {
  10596. MethodName: "StopContainer",
  10597. Handler: _RuntimeService_StopContainer_Handler,
  10598. },
  10599. {
  10600. MethodName: "RemoveContainer",
  10601. Handler: _RuntimeService_RemoveContainer_Handler,
  10602. },
  10603. {
  10604. MethodName: "ListContainers",
  10605. Handler: _RuntimeService_ListContainers_Handler,
  10606. },
  10607. {
  10608. MethodName: "ContainerStatus",
  10609. Handler: _RuntimeService_ContainerStatus_Handler,
  10610. },
  10611. {
  10612. MethodName: "UpdateContainerResources",
  10613. Handler: _RuntimeService_UpdateContainerResources_Handler,
  10614. },
  10615. {
  10616. MethodName: "ReopenContainerLog",
  10617. Handler: _RuntimeService_ReopenContainerLog_Handler,
  10618. },
  10619. {
  10620. MethodName: "ExecSync",
  10621. Handler: _RuntimeService_ExecSync_Handler,
  10622. },
  10623. {
  10624. MethodName: "Exec",
  10625. Handler: _RuntimeService_Exec_Handler,
  10626. },
  10627. {
  10628. MethodName: "Attach",
  10629. Handler: _RuntimeService_Attach_Handler,
  10630. },
  10631. {
  10632. MethodName: "PortForward",
  10633. Handler: _RuntimeService_PortForward_Handler,
  10634. },
  10635. {
  10636. MethodName: "ContainerStats",
  10637. Handler: _RuntimeService_ContainerStats_Handler,
  10638. },
  10639. {
  10640. MethodName: "ListContainerStats",
  10641. Handler: _RuntimeService_ListContainerStats_Handler,
  10642. },
  10643. {
  10644. MethodName: "PodSandboxStats",
  10645. Handler: _RuntimeService_PodSandboxStats_Handler,
  10646. },
  10647. {
  10648. MethodName: "ListPodSandboxStats",
  10649. Handler: _RuntimeService_ListPodSandboxStats_Handler,
  10650. },
  10651. {
  10652. MethodName: "UpdateRuntimeConfig",
  10653. Handler: _RuntimeService_UpdateRuntimeConfig_Handler,
  10654. },
  10655. {
  10656. MethodName: "Status",
  10657. Handler: _RuntimeService_Status_Handler,
  10658. },
  10659. {
  10660. MethodName: "CheckpointContainer",
  10661. Handler: _RuntimeService_CheckpointContainer_Handler,
  10662. },
  10663. {
  10664. MethodName: "ListMetricDescriptors",
  10665. Handler: _RuntimeService_ListMetricDescriptors_Handler,
  10666. },
  10667. {
  10668. MethodName: "ListPodSandboxMetrics",
  10669. Handler: _RuntimeService_ListPodSandboxMetrics_Handler,
  10670. },
  10671. {
  10672. MethodName: "RuntimeConfig",
  10673. Handler: _RuntimeService_RuntimeConfig_Handler,
  10674. },
  10675. },
  10676. Streams: []grpc.StreamDesc{
  10677. {
  10678. StreamName: "GetContainerEvents",
  10679. Handler: _RuntimeService_GetContainerEvents_Handler,
  10680. ServerStreams: true,
  10681. },
  10682. },
  10683. Metadata: "api.proto",
  10684. }
  10685. // ImageServiceClient is the client API for ImageService service.
  10686. //
  10687. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  10688. type ImageServiceClient interface {
  10689. // ListImages lists existing images.
  10690. ListImages(ctx context.Context, in *ListImagesRequest, opts ...grpc.CallOption) (*ListImagesResponse, error)
  10691. // ImageStatus returns the status of the image. If the image is not
  10692. // present, returns a response with ImageStatusResponse.Image set to
  10693. // nil.
  10694. ImageStatus(ctx context.Context, in *ImageStatusRequest, opts ...grpc.CallOption) (*ImageStatusResponse, error)
  10695. // PullImage pulls an image with authentication config.
  10696. PullImage(ctx context.Context, in *PullImageRequest, opts ...grpc.CallOption) (*PullImageResponse, error)
  10697. // RemoveImage removes the image.
  10698. // This call is idempotent, and must not return an error if the image has
  10699. // already been removed.
  10700. RemoveImage(ctx context.Context, in *RemoveImageRequest, opts ...grpc.CallOption) (*RemoveImageResponse, error)
  10701. // ImageFSInfo returns information of the filesystem that is used to store images.
  10702. ImageFsInfo(ctx context.Context, in *ImageFsInfoRequest, opts ...grpc.CallOption) (*ImageFsInfoResponse, error)
  10703. }
  10704. type imageServiceClient struct {
  10705. cc *grpc.ClientConn
  10706. }
  10707. func NewImageServiceClient(cc *grpc.ClientConn) ImageServiceClient {
  10708. return &imageServiceClient{cc}
  10709. }
  10710. func (c *imageServiceClient) ListImages(ctx context.Context, in *ListImagesRequest, opts ...grpc.CallOption) (*ListImagesResponse, error) {
  10711. out := new(ListImagesResponse)
  10712. err := c.cc.Invoke(ctx, "/runtime.v1.ImageService/ListImages", in, out, opts...)
  10713. if err != nil {
  10714. return nil, err
  10715. }
  10716. return out, nil
  10717. }
  10718. func (c *imageServiceClient) ImageStatus(ctx context.Context, in *ImageStatusRequest, opts ...grpc.CallOption) (*ImageStatusResponse, error) {
  10719. out := new(ImageStatusResponse)
  10720. err := c.cc.Invoke(ctx, "/runtime.v1.ImageService/ImageStatus", in, out, opts...)
  10721. if err != nil {
  10722. return nil, err
  10723. }
  10724. return out, nil
  10725. }
  10726. func (c *imageServiceClient) PullImage(ctx context.Context, in *PullImageRequest, opts ...grpc.CallOption) (*PullImageResponse, error) {
  10727. out := new(PullImageResponse)
  10728. err := c.cc.Invoke(ctx, "/runtime.v1.ImageService/PullImage", in, out, opts...)
  10729. if err != nil {
  10730. return nil, err
  10731. }
  10732. return out, nil
  10733. }
  10734. func (c *imageServiceClient) RemoveImage(ctx context.Context, in *RemoveImageRequest, opts ...grpc.CallOption) (*RemoveImageResponse, error) {
  10735. out := new(RemoveImageResponse)
  10736. err := c.cc.Invoke(ctx, "/runtime.v1.ImageService/RemoveImage", in, out, opts...)
  10737. if err != nil {
  10738. return nil, err
  10739. }
  10740. return out, nil
  10741. }
  10742. func (c *imageServiceClient) ImageFsInfo(ctx context.Context, in *ImageFsInfoRequest, opts ...grpc.CallOption) (*ImageFsInfoResponse, error) {
  10743. out := new(ImageFsInfoResponse)
  10744. err := c.cc.Invoke(ctx, "/runtime.v1.ImageService/ImageFsInfo", in, out, opts...)
  10745. if err != nil {
  10746. return nil, err
  10747. }
  10748. return out, nil
  10749. }
  10750. // ImageServiceServer is the server API for ImageService service.
  10751. type ImageServiceServer interface {
  10752. // ListImages lists existing images.
  10753. ListImages(context.Context, *ListImagesRequest) (*ListImagesResponse, error)
  10754. // ImageStatus returns the status of the image. If the image is not
  10755. // present, returns a response with ImageStatusResponse.Image set to
  10756. // nil.
  10757. ImageStatus(context.Context, *ImageStatusRequest) (*ImageStatusResponse, error)
  10758. // PullImage pulls an image with authentication config.
  10759. PullImage(context.Context, *PullImageRequest) (*PullImageResponse, error)
  10760. // RemoveImage removes the image.
  10761. // This call is idempotent, and must not return an error if the image has
  10762. // already been removed.
  10763. RemoveImage(context.Context, *RemoveImageRequest) (*RemoveImageResponse, error)
  10764. // ImageFSInfo returns information of the filesystem that is used to store images.
  10765. ImageFsInfo(context.Context, *ImageFsInfoRequest) (*ImageFsInfoResponse, error)
  10766. }
  10767. // UnimplementedImageServiceServer can be embedded to have forward compatible implementations.
  10768. type UnimplementedImageServiceServer struct {
  10769. }
  10770. func (*UnimplementedImageServiceServer) ListImages(ctx context.Context, req *ListImagesRequest) (*ListImagesResponse, error) {
  10771. return nil, status.Errorf(codes.Unimplemented, "method ListImages not implemented")
  10772. }
  10773. func (*UnimplementedImageServiceServer) ImageStatus(ctx context.Context, req *ImageStatusRequest) (*ImageStatusResponse, error) {
  10774. return nil, status.Errorf(codes.Unimplemented, "method ImageStatus not implemented")
  10775. }
  10776. func (*UnimplementedImageServiceServer) PullImage(ctx context.Context, req *PullImageRequest) (*PullImageResponse, error) {
  10777. return nil, status.Errorf(codes.Unimplemented, "method PullImage not implemented")
  10778. }
  10779. func (*UnimplementedImageServiceServer) RemoveImage(ctx context.Context, req *RemoveImageRequest) (*RemoveImageResponse, error) {
  10780. return nil, status.Errorf(codes.Unimplemented, "method RemoveImage not implemented")
  10781. }
  10782. func (*UnimplementedImageServiceServer) ImageFsInfo(ctx context.Context, req *ImageFsInfoRequest) (*ImageFsInfoResponse, error) {
  10783. return nil, status.Errorf(codes.Unimplemented, "method ImageFsInfo not implemented")
  10784. }
  10785. func RegisterImageServiceServer(s *grpc.Server, srv ImageServiceServer) {
  10786. s.RegisterService(&_ImageService_serviceDesc, srv)
  10787. }
  10788. func _ImageService_ListImages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10789. in := new(ListImagesRequest)
  10790. if err := dec(in); err != nil {
  10791. return nil, err
  10792. }
  10793. if interceptor == nil {
  10794. return srv.(ImageServiceServer).ListImages(ctx, in)
  10795. }
  10796. info := &grpc.UnaryServerInfo{
  10797. Server: srv,
  10798. FullMethod: "/runtime.v1.ImageService/ListImages",
  10799. }
  10800. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10801. return srv.(ImageServiceServer).ListImages(ctx, req.(*ListImagesRequest))
  10802. }
  10803. return interceptor(ctx, in, info, handler)
  10804. }
  10805. func _ImageService_ImageStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10806. in := new(ImageStatusRequest)
  10807. if err := dec(in); err != nil {
  10808. return nil, err
  10809. }
  10810. if interceptor == nil {
  10811. return srv.(ImageServiceServer).ImageStatus(ctx, in)
  10812. }
  10813. info := &grpc.UnaryServerInfo{
  10814. Server: srv,
  10815. FullMethod: "/runtime.v1.ImageService/ImageStatus",
  10816. }
  10817. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10818. return srv.(ImageServiceServer).ImageStatus(ctx, req.(*ImageStatusRequest))
  10819. }
  10820. return interceptor(ctx, in, info, handler)
  10821. }
  10822. func _ImageService_PullImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10823. in := new(PullImageRequest)
  10824. if err := dec(in); err != nil {
  10825. return nil, err
  10826. }
  10827. if interceptor == nil {
  10828. return srv.(ImageServiceServer).PullImage(ctx, in)
  10829. }
  10830. info := &grpc.UnaryServerInfo{
  10831. Server: srv,
  10832. FullMethod: "/runtime.v1.ImageService/PullImage",
  10833. }
  10834. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10835. return srv.(ImageServiceServer).PullImage(ctx, req.(*PullImageRequest))
  10836. }
  10837. return interceptor(ctx, in, info, handler)
  10838. }
  10839. func _ImageService_RemoveImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10840. in := new(RemoveImageRequest)
  10841. if err := dec(in); err != nil {
  10842. return nil, err
  10843. }
  10844. if interceptor == nil {
  10845. return srv.(ImageServiceServer).RemoveImage(ctx, in)
  10846. }
  10847. info := &grpc.UnaryServerInfo{
  10848. Server: srv,
  10849. FullMethod: "/runtime.v1.ImageService/RemoveImage",
  10850. }
  10851. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10852. return srv.(ImageServiceServer).RemoveImage(ctx, req.(*RemoveImageRequest))
  10853. }
  10854. return interceptor(ctx, in, info, handler)
  10855. }
  10856. func _ImageService_ImageFsInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  10857. in := new(ImageFsInfoRequest)
  10858. if err := dec(in); err != nil {
  10859. return nil, err
  10860. }
  10861. if interceptor == nil {
  10862. return srv.(ImageServiceServer).ImageFsInfo(ctx, in)
  10863. }
  10864. info := &grpc.UnaryServerInfo{
  10865. Server: srv,
  10866. FullMethod: "/runtime.v1.ImageService/ImageFsInfo",
  10867. }
  10868. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  10869. return srv.(ImageServiceServer).ImageFsInfo(ctx, req.(*ImageFsInfoRequest))
  10870. }
  10871. return interceptor(ctx, in, info, handler)
  10872. }
  10873. var _ImageService_serviceDesc = grpc.ServiceDesc{
  10874. ServiceName: "runtime.v1.ImageService",
  10875. HandlerType: (*ImageServiceServer)(nil),
  10876. Methods: []grpc.MethodDesc{
  10877. {
  10878. MethodName: "ListImages",
  10879. Handler: _ImageService_ListImages_Handler,
  10880. },
  10881. {
  10882. MethodName: "ImageStatus",
  10883. Handler: _ImageService_ImageStatus_Handler,
  10884. },
  10885. {
  10886. MethodName: "PullImage",
  10887. Handler: _ImageService_PullImage_Handler,
  10888. },
  10889. {
  10890. MethodName: "RemoveImage",
  10891. Handler: _ImageService_RemoveImage_Handler,
  10892. },
  10893. {
  10894. MethodName: "ImageFsInfo",
  10895. Handler: _ImageService_ImageFsInfo_Handler,
  10896. },
  10897. },
  10898. Streams: []grpc.StreamDesc{},
  10899. Metadata: "api.proto",
  10900. }
  10901. func (m *VersionRequest) Marshal() (dAtA []byte, err error) {
  10902. size := m.Size()
  10903. dAtA = make([]byte, size)
  10904. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10905. if err != nil {
  10906. return nil, err
  10907. }
  10908. return dAtA[:n], nil
  10909. }
  10910. func (m *VersionRequest) MarshalTo(dAtA []byte) (int, error) {
  10911. size := m.Size()
  10912. return m.MarshalToSizedBuffer(dAtA[:size])
  10913. }
  10914. func (m *VersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10915. i := len(dAtA)
  10916. _ = i
  10917. var l int
  10918. _ = l
  10919. if len(m.Version) > 0 {
  10920. i -= len(m.Version)
  10921. copy(dAtA[i:], m.Version)
  10922. i = encodeVarintApi(dAtA, i, uint64(len(m.Version)))
  10923. i--
  10924. dAtA[i] = 0xa
  10925. }
  10926. return len(dAtA) - i, nil
  10927. }
  10928. func (m *VersionResponse) Marshal() (dAtA []byte, err error) {
  10929. size := m.Size()
  10930. dAtA = make([]byte, size)
  10931. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10932. if err != nil {
  10933. return nil, err
  10934. }
  10935. return dAtA[:n], nil
  10936. }
  10937. func (m *VersionResponse) MarshalTo(dAtA []byte) (int, error) {
  10938. size := m.Size()
  10939. return m.MarshalToSizedBuffer(dAtA[:size])
  10940. }
  10941. func (m *VersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10942. i := len(dAtA)
  10943. _ = i
  10944. var l int
  10945. _ = l
  10946. if len(m.RuntimeApiVersion) > 0 {
  10947. i -= len(m.RuntimeApiVersion)
  10948. copy(dAtA[i:], m.RuntimeApiVersion)
  10949. i = encodeVarintApi(dAtA, i, uint64(len(m.RuntimeApiVersion)))
  10950. i--
  10951. dAtA[i] = 0x22
  10952. }
  10953. if len(m.RuntimeVersion) > 0 {
  10954. i -= len(m.RuntimeVersion)
  10955. copy(dAtA[i:], m.RuntimeVersion)
  10956. i = encodeVarintApi(dAtA, i, uint64(len(m.RuntimeVersion)))
  10957. i--
  10958. dAtA[i] = 0x1a
  10959. }
  10960. if len(m.RuntimeName) > 0 {
  10961. i -= len(m.RuntimeName)
  10962. copy(dAtA[i:], m.RuntimeName)
  10963. i = encodeVarintApi(dAtA, i, uint64(len(m.RuntimeName)))
  10964. i--
  10965. dAtA[i] = 0x12
  10966. }
  10967. if len(m.Version) > 0 {
  10968. i -= len(m.Version)
  10969. copy(dAtA[i:], m.Version)
  10970. i = encodeVarintApi(dAtA, i, uint64(len(m.Version)))
  10971. i--
  10972. dAtA[i] = 0xa
  10973. }
  10974. return len(dAtA) - i, nil
  10975. }
  10976. func (m *DNSConfig) Marshal() (dAtA []byte, err error) {
  10977. size := m.Size()
  10978. dAtA = make([]byte, size)
  10979. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  10980. if err != nil {
  10981. return nil, err
  10982. }
  10983. return dAtA[:n], nil
  10984. }
  10985. func (m *DNSConfig) MarshalTo(dAtA []byte) (int, error) {
  10986. size := m.Size()
  10987. return m.MarshalToSizedBuffer(dAtA[:size])
  10988. }
  10989. func (m *DNSConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  10990. i := len(dAtA)
  10991. _ = i
  10992. var l int
  10993. _ = l
  10994. if len(m.Options) > 0 {
  10995. for iNdEx := len(m.Options) - 1; iNdEx >= 0; iNdEx-- {
  10996. i -= len(m.Options[iNdEx])
  10997. copy(dAtA[i:], m.Options[iNdEx])
  10998. i = encodeVarintApi(dAtA, i, uint64(len(m.Options[iNdEx])))
  10999. i--
  11000. dAtA[i] = 0x1a
  11001. }
  11002. }
  11003. if len(m.Searches) > 0 {
  11004. for iNdEx := len(m.Searches) - 1; iNdEx >= 0; iNdEx-- {
  11005. i -= len(m.Searches[iNdEx])
  11006. copy(dAtA[i:], m.Searches[iNdEx])
  11007. i = encodeVarintApi(dAtA, i, uint64(len(m.Searches[iNdEx])))
  11008. i--
  11009. dAtA[i] = 0x12
  11010. }
  11011. }
  11012. if len(m.Servers) > 0 {
  11013. for iNdEx := len(m.Servers) - 1; iNdEx >= 0; iNdEx-- {
  11014. i -= len(m.Servers[iNdEx])
  11015. copy(dAtA[i:], m.Servers[iNdEx])
  11016. i = encodeVarintApi(dAtA, i, uint64(len(m.Servers[iNdEx])))
  11017. i--
  11018. dAtA[i] = 0xa
  11019. }
  11020. }
  11021. return len(dAtA) - i, nil
  11022. }
  11023. func (m *PortMapping) Marshal() (dAtA []byte, err error) {
  11024. size := m.Size()
  11025. dAtA = make([]byte, size)
  11026. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11027. if err != nil {
  11028. return nil, err
  11029. }
  11030. return dAtA[:n], nil
  11031. }
  11032. func (m *PortMapping) MarshalTo(dAtA []byte) (int, error) {
  11033. size := m.Size()
  11034. return m.MarshalToSizedBuffer(dAtA[:size])
  11035. }
  11036. func (m *PortMapping) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11037. i := len(dAtA)
  11038. _ = i
  11039. var l int
  11040. _ = l
  11041. if len(m.HostIp) > 0 {
  11042. i -= len(m.HostIp)
  11043. copy(dAtA[i:], m.HostIp)
  11044. i = encodeVarintApi(dAtA, i, uint64(len(m.HostIp)))
  11045. i--
  11046. dAtA[i] = 0x22
  11047. }
  11048. if m.HostPort != 0 {
  11049. i = encodeVarintApi(dAtA, i, uint64(m.HostPort))
  11050. i--
  11051. dAtA[i] = 0x18
  11052. }
  11053. if m.ContainerPort != 0 {
  11054. i = encodeVarintApi(dAtA, i, uint64(m.ContainerPort))
  11055. i--
  11056. dAtA[i] = 0x10
  11057. }
  11058. if m.Protocol != 0 {
  11059. i = encodeVarintApi(dAtA, i, uint64(m.Protocol))
  11060. i--
  11061. dAtA[i] = 0x8
  11062. }
  11063. return len(dAtA) - i, nil
  11064. }
  11065. func (m *Mount) Marshal() (dAtA []byte, err error) {
  11066. size := m.Size()
  11067. dAtA = make([]byte, size)
  11068. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11069. if err != nil {
  11070. return nil, err
  11071. }
  11072. return dAtA[:n], nil
  11073. }
  11074. func (m *Mount) MarshalTo(dAtA []byte) (int, error) {
  11075. size := m.Size()
  11076. return m.MarshalToSizedBuffer(dAtA[:size])
  11077. }
  11078. func (m *Mount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11079. i := len(dAtA)
  11080. _ = i
  11081. var l int
  11082. _ = l
  11083. if len(m.GidMappings) > 0 {
  11084. for iNdEx := len(m.GidMappings) - 1; iNdEx >= 0; iNdEx-- {
  11085. {
  11086. size, err := m.GidMappings[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  11087. if err != nil {
  11088. return 0, err
  11089. }
  11090. i -= size
  11091. i = encodeVarintApi(dAtA, i, uint64(size))
  11092. }
  11093. i--
  11094. dAtA[i] = 0x3a
  11095. }
  11096. }
  11097. if len(m.UidMappings) > 0 {
  11098. for iNdEx := len(m.UidMappings) - 1; iNdEx >= 0; iNdEx-- {
  11099. {
  11100. size, err := m.UidMappings[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  11101. if err != nil {
  11102. return 0, err
  11103. }
  11104. i -= size
  11105. i = encodeVarintApi(dAtA, i, uint64(size))
  11106. }
  11107. i--
  11108. dAtA[i] = 0x32
  11109. }
  11110. }
  11111. if m.Propagation != 0 {
  11112. i = encodeVarintApi(dAtA, i, uint64(m.Propagation))
  11113. i--
  11114. dAtA[i] = 0x28
  11115. }
  11116. if m.SelinuxRelabel {
  11117. i--
  11118. if m.SelinuxRelabel {
  11119. dAtA[i] = 1
  11120. } else {
  11121. dAtA[i] = 0
  11122. }
  11123. i--
  11124. dAtA[i] = 0x20
  11125. }
  11126. if m.Readonly {
  11127. i--
  11128. if m.Readonly {
  11129. dAtA[i] = 1
  11130. } else {
  11131. dAtA[i] = 0
  11132. }
  11133. i--
  11134. dAtA[i] = 0x18
  11135. }
  11136. if len(m.HostPath) > 0 {
  11137. i -= len(m.HostPath)
  11138. copy(dAtA[i:], m.HostPath)
  11139. i = encodeVarintApi(dAtA, i, uint64(len(m.HostPath)))
  11140. i--
  11141. dAtA[i] = 0x12
  11142. }
  11143. if len(m.ContainerPath) > 0 {
  11144. i -= len(m.ContainerPath)
  11145. copy(dAtA[i:], m.ContainerPath)
  11146. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerPath)))
  11147. i--
  11148. dAtA[i] = 0xa
  11149. }
  11150. return len(dAtA) - i, nil
  11151. }
  11152. func (m *IDMapping) Marshal() (dAtA []byte, err error) {
  11153. size := m.Size()
  11154. dAtA = make([]byte, size)
  11155. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11156. if err != nil {
  11157. return nil, err
  11158. }
  11159. return dAtA[:n], nil
  11160. }
  11161. func (m *IDMapping) MarshalTo(dAtA []byte) (int, error) {
  11162. size := m.Size()
  11163. return m.MarshalToSizedBuffer(dAtA[:size])
  11164. }
  11165. func (m *IDMapping) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11166. i := len(dAtA)
  11167. _ = i
  11168. var l int
  11169. _ = l
  11170. if m.Length != 0 {
  11171. i = encodeVarintApi(dAtA, i, uint64(m.Length))
  11172. i--
  11173. dAtA[i] = 0x18
  11174. }
  11175. if m.ContainerId != 0 {
  11176. i = encodeVarintApi(dAtA, i, uint64(m.ContainerId))
  11177. i--
  11178. dAtA[i] = 0x10
  11179. }
  11180. if m.HostId != 0 {
  11181. i = encodeVarintApi(dAtA, i, uint64(m.HostId))
  11182. i--
  11183. dAtA[i] = 0x8
  11184. }
  11185. return len(dAtA) - i, nil
  11186. }
  11187. func (m *UserNamespace) Marshal() (dAtA []byte, err error) {
  11188. size := m.Size()
  11189. dAtA = make([]byte, size)
  11190. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11191. if err != nil {
  11192. return nil, err
  11193. }
  11194. return dAtA[:n], nil
  11195. }
  11196. func (m *UserNamespace) MarshalTo(dAtA []byte) (int, error) {
  11197. size := m.Size()
  11198. return m.MarshalToSizedBuffer(dAtA[:size])
  11199. }
  11200. func (m *UserNamespace) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11201. i := len(dAtA)
  11202. _ = i
  11203. var l int
  11204. _ = l
  11205. if len(m.Gids) > 0 {
  11206. for iNdEx := len(m.Gids) - 1; iNdEx >= 0; iNdEx-- {
  11207. {
  11208. size, err := m.Gids[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  11209. if err != nil {
  11210. return 0, err
  11211. }
  11212. i -= size
  11213. i = encodeVarintApi(dAtA, i, uint64(size))
  11214. }
  11215. i--
  11216. dAtA[i] = 0x1a
  11217. }
  11218. }
  11219. if len(m.Uids) > 0 {
  11220. for iNdEx := len(m.Uids) - 1; iNdEx >= 0; iNdEx-- {
  11221. {
  11222. size, err := m.Uids[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  11223. if err != nil {
  11224. return 0, err
  11225. }
  11226. i -= size
  11227. i = encodeVarintApi(dAtA, i, uint64(size))
  11228. }
  11229. i--
  11230. dAtA[i] = 0x12
  11231. }
  11232. }
  11233. if m.Mode != 0 {
  11234. i = encodeVarintApi(dAtA, i, uint64(m.Mode))
  11235. i--
  11236. dAtA[i] = 0x8
  11237. }
  11238. return len(dAtA) - i, nil
  11239. }
  11240. func (m *NamespaceOption) Marshal() (dAtA []byte, err error) {
  11241. size := m.Size()
  11242. dAtA = make([]byte, size)
  11243. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11244. if err != nil {
  11245. return nil, err
  11246. }
  11247. return dAtA[:n], nil
  11248. }
  11249. func (m *NamespaceOption) MarshalTo(dAtA []byte) (int, error) {
  11250. size := m.Size()
  11251. return m.MarshalToSizedBuffer(dAtA[:size])
  11252. }
  11253. func (m *NamespaceOption) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11254. i := len(dAtA)
  11255. _ = i
  11256. var l int
  11257. _ = l
  11258. if m.UsernsOptions != nil {
  11259. {
  11260. size, err := m.UsernsOptions.MarshalToSizedBuffer(dAtA[:i])
  11261. if err != nil {
  11262. return 0, err
  11263. }
  11264. i -= size
  11265. i = encodeVarintApi(dAtA, i, uint64(size))
  11266. }
  11267. i--
  11268. dAtA[i] = 0x2a
  11269. }
  11270. if len(m.TargetId) > 0 {
  11271. i -= len(m.TargetId)
  11272. copy(dAtA[i:], m.TargetId)
  11273. i = encodeVarintApi(dAtA, i, uint64(len(m.TargetId)))
  11274. i--
  11275. dAtA[i] = 0x22
  11276. }
  11277. if m.Ipc != 0 {
  11278. i = encodeVarintApi(dAtA, i, uint64(m.Ipc))
  11279. i--
  11280. dAtA[i] = 0x18
  11281. }
  11282. if m.Pid != 0 {
  11283. i = encodeVarintApi(dAtA, i, uint64(m.Pid))
  11284. i--
  11285. dAtA[i] = 0x10
  11286. }
  11287. if m.Network != 0 {
  11288. i = encodeVarintApi(dAtA, i, uint64(m.Network))
  11289. i--
  11290. dAtA[i] = 0x8
  11291. }
  11292. return len(dAtA) - i, nil
  11293. }
  11294. func (m *Int64Value) Marshal() (dAtA []byte, err error) {
  11295. size := m.Size()
  11296. dAtA = make([]byte, size)
  11297. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11298. if err != nil {
  11299. return nil, err
  11300. }
  11301. return dAtA[:n], nil
  11302. }
  11303. func (m *Int64Value) MarshalTo(dAtA []byte) (int, error) {
  11304. size := m.Size()
  11305. return m.MarshalToSizedBuffer(dAtA[:size])
  11306. }
  11307. func (m *Int64Value) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11308. i := len(dAtA)
  11309. _ = i
  11310. var l int
  11311. _ = l
  11312. if m.Value != 0 {
  11313. i = encodeVarintApi(dAtA, i, uint64(m.Value))
  11314. i--
  11315. dAtA[i] = 0x8
  11316. }
  11317. return len(dAtA) - i, nil
  11318. }
  11319. func (m *LinuxSandboxSecurityContext) Marshal() (dAtA []byte, err error) {
  11320. size := m.Size()
  11321. dAtA = make([]byte, size)
  11322. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11323. if err != nil {
  11324. return nil, err
  11325. }
  11326. return dAtA[:n], nil
  11327. }
  11328. func (m *LinuxSandboxSecurityContext) MarshalTo(dAtA []byte) (int, error) {
  11329. size := m.Size()
  11330. return m.MarshalToSizedBuffer(dAtA[:size])
  11331. }
  11332. func (m *LinuxSandboxSecurityContext) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11333. i := len(dAtA)
  11334. _ = i
  11335. var l int
  11336. _ = l
  11337. if m.Apparmor != nil {
  11338. {
  11339. size, err := m.Apparmor.MarshalToSizedBuffer(dAtA[:i])
  11340. if err != nil {
  11341. return 0, err
  11342. }
  11343. i -= size
  11344. i = encodeVarintApi(dAtA, i, uint64(size))
  11345. }
  11346. i--
  11347. dAtA[i] = 0x52
  11348. }
  11349. if m.Seccomp != nil {
  11350. {
  11351. size, err := m.Seccomp.MarshalToSizedBuffer(dAtA[:i])
  11352. if err != nil {
  11353. return 0, err
  11354. }
  11355. i -= size
  11356. i = encodeVarintApi(dAtA, i, uint64(size))
  11357. }
  11358. i--
  11359. dAtA[i] = 0x4a
  11360. }
  11361. if m.RunAsGroup != nil {
  11362. {
  11363. size, err := m.RunAsGroup.MarshalToSizedBuffer(dAtA[:i])
  11364. if err != nil {
  11365. return 0, err
  11366. }
  11367. i -= size
  11368. i = encodeVarintApi(dAtA, i, uint64(size))
  11369. }
  11370. i--
  11371. dAtA[i] = 0x42
  11372. }
  11373. if len(m.SeccompProfilePath) > 0 {
  11374. i -= len(m.SeccompProfilePath)
  11375. copy(dAtA[i:], m.SeccompProfilePath)
  11376. i = encodeVarintApi(dAtA, i, uint64(len(m.SeccompProfilePath)))
  11377. i--
  11378. dAtA[i] = 0x3a
  11379. }
  11380. if m.Privileged {
  11381. i--
  11382. if m.Privileged {
  11383. dAtA[i] = 1
  11384. } else {
  11385. dAtA[i] = 0
  11386. }
  11387. i--
  11388. dAtA[i] = 0x30
  11389. }
  11390. if len(m.SupplementalGroups) > 0 {
  11391. dAtA6 := make([]byte, len(m.SupplementalGroups)*10)
  11392. var j5 int
  11393. for _, num1 := range m.SupplementalGroups {
  11394. num := uint64(num1)
  11395. for num >= 1<<7 {
  11396. dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80)
  11397. num >>= 7
  11398. j5++
  11399. }
  11400. dAtA6[j5] = uint8(num)
  11401. j5++
  11402. }
  11403. i -= j5
  11404. copy(dAtA[i:], dAtA6[:j5])
  11405. i = encodeVarintApi(dAtA, i, uint64(j5))
  11406. i--
  11407. dAtA[i] = 0x2a
  11408. }
  11409. if m.ReadonlyRootfs {
  11410. i--
  11411. if m.ReadonlyRootfs {
  11412. dAtA[i] = 1
  11413. } else {
  11414. dAtA[i] = 0
  11415. }
  11416. i--
  11417. dAtA[i] = 0x20
  11418. }
  11419. if m.RunAsUser != nil {
  11420. {
  11421. size, err := m.RunAsUser.MarshalToSizedBuffer(dAtA[:i])
  11422. if err != nil {
  11423. return 0, err
  11424. }
  11425. i -= size
  11426. i = encodeVarintApi(dAtA, i, uint64(size))
  11427. }
  11428. i--
  11429. dAtA[i] = 0x1a
  11430. }
  11431. if m.SelinuxOptions != nil {
  11432. {
  11433. size, err := m.SelinuxOptions.MarshalToSizedBuffer(dAtA[:i])
  11434. if err != nil {
  11435. return 0, err
  11436. }
  11437. i -= size
  11438. i = encodeVarintApi(dAtA, i, uint64(size))
  11439. }
  11440. i--
  11441. dAtA[i] = 0x12
  11442. }
  11443. if m.NamespaceOptions != nil {
  11444. {
  11445. size, err := m.NamespaceOptions.MarshalToSizedBuffer(dAtA[:i])
  11446. if err != nil {
  11447. return 0, err
  11448. }
  11449. i -= size
  11450. i = encodeVarintApi(dAtA, i, uint64(size))
  11451. }
  11452. i--
  11453. dAtA[i] = 0xa
  11454. }
  11455. return len(dAtA) - i, nil
  11456. }
  11457. func (m *SecurityProfile) Marshal() (dAtA []byte, err error) {
  11458. size := m.Size()
  11459. dAtA = make([]byte, size)
  11460. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11461. if err != nil {
  11462. return nil, err
  11463. }
  11464. return dAtA[:n], nil
  11465. }
  11466. func (m *SecurityProfile) MarshalTo(dAtA []byte) (int, error) {
  11467. size := m.Size()
  11468. return m.MarshalToSizedBuffer(dAtA[:size])
  11469. }
  11470. func (m *SecurityProfile) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11471. i := len(dAtA)
  11472. _ = i
  11473. var l int
  11474. _ = l
  11475. if len(m.LocalhostRef) > 0 {
  11476. i -= len(m.LocalhostRef)
  11477. copy(dAtA[i:], m.LocalhostRef)
  11478. i = encodeVarintApi(dAtA, i, uint64(len(m.LocalhostRef)))
  11479. i--
  11480. dAtA[i] = 0x12
  11481. }
  11482. if m.ProfileType != 0 {
  11483. i = encodeVarintApi(dAtA, i, uint64(m.ProfileType))
  11484. i--
  11485. dAtA[i] = 0x8
  11486. }
  11487. return len(dAtA) - i, nil
  11488. }
  11489. func (m *LinuxPodSandboxConfig) Marshal() (dAtA []byte, err error) {
  11490. size := m.Size()
  11491. dAtA = make([]byte, size)
  11492. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11493. if err != nil {
  11494. return nil, err
  11495. }
  11496. return dAtA[:n], nil
  11497. }
  11498. func (m *LinuxPodSandboxConfig) MarshalTo(dAtA []byte) (int, error) {
  11499. size := m.Size()
  11500. return m.MarshalToSizedBuffer(dAtA[:size])
  11501. }
  11502. func (m *LinuxPodSandboxConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11503. i := len(dAtA)
  11504. _ = i
  11505. var l int
  11506. _ = l
  11507. if m.Resources != nil {
  11508. {
  11509. size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i])
  11510. if err != nil {
  11511. return 0, err
  11512. }
  11513. i -= size
  11514. i = encodeVarintApi(dAtA, i, uint64(size))
  11515. }
  11516. i--
  11517. dAtA[i] = 0x2a
  11518. }
  11519. if m.Overhead != nil {
  11520. {
  11521. size, err := m.Overhead.MarshalToSizedBuffer(dAtA[:i])
  11522. if err != nil {
  11523. return 0, err
  11524. }
  11525. i -= size
  11526. i = encodeVarintApi(dAtA, i, uint64(size))
  11527. }
  11528. i--
  11529. dAtA[i] = 0x22
  11530. }
  11531. if len(m.Sysctls) > 0 {
  11532. for k := range m.Sysctls {
  11533. v := m.Sysctls[k]
  11534. baseI := i
  11535. i -= len(v)
  11536. copy(dAtA[i:], v)
  11537. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  11538. i--
  11539. dAtA[i] = 0x12
  11540. i -= len(k)
  11541. copy(dAtA[i:], k)
  11542. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  11543. i--
  11544. dAtA[i] = 0xa
  11545. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  11546. i--
  11547. dAtA[i] = 0x1a
  11548. }
  11549. }
  11550. if m.SecurityContext != nil {
  11551. {
  11552. size, err := m.SecurityContext.MarshalToSizedBuffer(dAtA[:i])
  11553. if err != nil {
  11554. return 0, err
  11555. }
  11556. i -= size
  11557. i = encodeVarintApi(dAtA, i, uint64(size))
  11558. }
  11559. i--
  11560. dAtA[i] = 0x12
  11561. }
  11562. if len(m.CgroupParent) > 0 {
  11563. i -= len(m.CgroupParent)
  11564. copy(dAtA[i:], m.CgroupParent)
  11565. i = encodeVarintApi(dAtA, i, uint64(len(m.CgroupParent)))
  11566. i--
  11567. dAtA[i] = 0xa
  11568. }
  11569. return len(dAtA) - i, nil
  11570. }
  11571. func (m *PodSandboxMetadata) Marshal() (dAtA []byte, err error) {
  11572. size := m.Size()
  11573. dAtA = make([]byte, size)
  11574. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11575. if err != nil {
  11576. return nil, err
  11577. }
  11578. return dAtA[:n], nil
  11579. }
  11580. func (m *PodSandboxMetadata) MarshalTo(dAtA []byte) (int, error) {
  11581. size := m.Size()
  11582. return m.MarshalToSizedBuffer(dAtA[:size])
  11583. }
  11584. func (m *PodSandboxMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11585. i := len(dAtA)
  11586. _ = i
  11587. var l int
  11588. _ = l
  11589. if m.Attempt != 0 {
  11590. i = encodeVarintApi(dAtA, i, uint64(m.Attempt))
  11591. i--
  11592. dAtA[i] = 0x20
  11593. }
  11594. if len(m.Namespace) > 0 {
  11595. i -= len(m.Namespace)
  11596. copy(dAtA[i:], m.Namespace)
  11597. i = encodeVarintApi(dAtA, i, uint64(len(m.Namespace)))
  11598. i--
  11599. dAtA[i] = 0x1a
  11600. }
  11601. if len(m.Uid) > 0 {
  11602. i -= len(m.Uid)
  11603. copy(dAtA[i:], m.Uid)
  11604. i = encodeVarintApi(dAtA, i, uint64(len(m.Uid)))
  11605. i--
  11606. dAtA[i] = 0x12
  11607. }
  11608. if len(m.Name) > 0 {
  11609. i -= len(m.Name)
  11610. copy(dAtA[i:], m.Name)
  11611. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  11612. i--
  11613. dAtA[i] = 0xa
  11614. }
  11615. return len(dAtA) - i, nil
  11616. }
  11617. func (m *PodSandboxConfig) Marshal() (dAtA []byte, err error) {
  11618. size := m.Size()
  11619. dAtA = make([]byte, size)
  11620. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11621. if err != nil {
  11622. return nil, err
  11623. }
  11624. return dAtA[:n], nil
  11625. }
  11626. func (m *PodSandboxConfig) MarshalTo(dAtA []byte) (int, error) {
  11627. size := m.Size()
  11628. return m.MarshalToSizedBuffer(dAtA[:size])
  11629. }
  11630. func (m *PodSandboxConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11631. i := len(dAtA)
  11632. _ = i
  11633. var l int
  11634. _ = l
  11635. if m.Windows != nil {
  11636. {
  11637. size, err := m.Windows.MarshalToSizedBuffer(dAtA[:i])
  11638. if err != nil {
  11639. return 0, err
  11640. }
  11641. i -= size
  11642. i = encodeVarintApi(dAtA, i, uint64(size))
  11643. }
  11644. i--
  11645. dAtA[i] = 0x4a
  11646. }
  11647. if m.Linux != nil {
  11648. {
  11649. size, err := m.Linux.MarshalToSizedBuffer(dAtA[:i])
  11650. if err != nil {
  11651. return 0, err
  11652. }
  11653. i -= size
  11654. i = encodeVarintApi(dAtA, i, uint64(size))
  11655. }
  11656. i--
  11657. dAtA[i] = 0x42
  11658. }
  11659. if len(m.Annotations) > 0 {
  11660. for k := range m.Annotations {
  11661. v := m.Annotations[k]
  11662. baseI := i
  11663. i -= len(v)
  11664. copy(dAtA[i:], v)
  11665. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  11666. i--
  11667. dAtA[i] = 0x12
  11668. i -= len(k)
  11669. copy(dAtA[i:], k)
  11670. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  11671. i--
  11672. dAtA[i] = 0xa
  11673. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  11674. i--
  11675. dAtA[i] = 0x3a
  11676. }
  11677. }
  11678. if len(m.Labels) > 0 {
  11679. for k := range m.Labels {
  11680. v := m.Labels[k]
  11681. baseI := i
  11682. i -= len(v)
  11683. copy(dAtA[i:], v)
  11684. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  11685. i--
  11686. dAtA[i] = 0x12
  11687. i -= len(k)
  11688. copy(dAtA[i:], k)
  11689. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  11690. i--
  11691. dAtA[i] = 0xa
  11692. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  11693. i--
  11694. dAtA[i] = 0x32
  11695. }
  11696. }
  11697. if len(m.PortMappings) > 0 {
  11698. for iNdEx := len(m.PortMappings) - 1; iNdEx >= 0; iNdEx-- {
  11699. {
  11700. size, err := m.PortMappings[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  11701. if err != nil {
  11702. return 0, err
  11703. }
  11704. i -= size
  11705. i = encodeVarintApi(dAtA, i, uint64(size))
  11706. }
  11707. i--
  11708. dAtA[i] = 0x2a
  11709. }
  11710. }
  11711. if m.DnsConfig != nil {
  11712. {
  11713. size, err := m.DnsConfig.MarshalToSizedBuffer(dAtA[:i])
  11714. if err != nil {
  11715. return 0, err
  11716. }
  11717. i -= size
  11718. i = encodeVarintApi(dAtA, i, uint64(size))
  11719. }
  11720. i--
  11721. dAtA[i] = 0x22
  11722. }
  11723. if len(m.LogDirectory) > 0 {
  11724. i -= len(m.LogDirectory)
  11725. copy(dAtA[i:], m.LogDirectory)
  11726. i = encodeVarintApi(dAtA, i, uint64(len(m.LogDirectory)))
  11727. i--
  11728. dAtA[i] = 0x1a
  11729. }
  11730. if len(m.Hostname) > 0 {
  11731. i -= len(m.Hostname)
  11732. copy(dAtA[i:], m.Hostname)
  11733. i = encodeVarintApi(dAtA, i, uint64(len(m.Hostname)))
  11734. i--
  11735. dAtA[i] = 0x12
  11736. }
  11737. if m.Metadata != nil {
  11738. {
  11739. size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i])
  11740. if err != nil {
  11741. return 0, err
  11742. }
  11743. i -= size
  11744. i = encodeVarintApi(dAtA, i, uint64(size))
  11745. }
  11746. i--
  11747. dAtA[i] = 0xa
  11748. }
  11749. return len(dAtA) - i, nil
  11750. }
  11751. func (m *RunPodSandboxRequest) Marshal() (dAtA []byte, err error) {
  11752. size := m.Size()
  11753. dAtA = make([]byte, size)
  11754. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11755. if err != nil {
  11756. return nil, err
  11757. }
  11758. return dAtA[:n], nil
  11759. }
  11760. func (m *RunPodSandboxRequest) MarshalTo(dAtA []byte) (int, error) {
  11761. size := m.Size()
  11762. return m.MarshalToSizedBuffer(dAtA[:size])
  11763. }
  11764. func (m *RunPodSandboxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11765. i := len(dAtA)
  11766. _ = i
  11767. var l int
  11768. _ = l
  11769. if len(m.RuntimeHandler) > 0 {
  11770. i -= len(m.RuntimeHandler)
  11771. copy(dAtA[i:], m.RuntimeHandler)
  11772. i = encodeVarintApi(dAtA, i, uint64(len(m.RuntimeHandler)))
  11773. i--
  11774. dAtA[i] = 0x12
  11775. }
  11776. if m.Config != nil {
  11777. {
  11778. size, err := m.Config.MarshalToSizedBuffer(dAtA[:i])
  11779. if err != nil {
  11780. return 0, err
  11781. }
  11782. i -= size
  11783. i = encodeVarintApi(dAtA, i, uint64(size))
  11784. }
  11785. i--
  11786. dAtA[i] = 0xa
  11787. }
  11788. return len(dAtA) - i, nil
  11789. }
  11790. func (m *RunPodSandboxResponse) Marshal() (dAtA []byte, err error) {
  11791. size := m.Size()
  11792. dAtA = make([]byte, size)
  11793. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11794. if err != nil {
  11795. return nil, err
  11796. }
  11797. return dAtA[:n], nil
  11798. }
  11799. func (m *RunPodSandboxResponse) MarshalTo(dAtA []byte) (int, error) {
  11800. size := m.Size()
  11801. return m.MarshalToSizedBuffer(dAtA[:size])
  11802. }
  11803. func (m *RunPodSandboxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11804. i := len(dAtA)
  11805. _ = i
  11806. var l int
  11807. _ = l
  11808. if len(m.PodSandboxId) > 0 {
  11809. i -= len(m.PodSandboxId)
  11810. copy(dAtA[i:], m.PodSandboxId)
  11811. i = encodeVarintApi(dAtA, i, uint64(len(m.PodSandboxId)))
  11812. i--
  11813. dAtA[i] = 0xa
  11814. }
  11815. return len(dAtA) - i, nil
  11816. }
  11817. func (m *StopPodSandboxRequest) Marshal() (dAtA []byte, err error) {
  11818. size := m.Size()
  11819. dAtA = make([]byte, size)
  11820. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11821. if err != nil {
  11822. return nil, err
  11823. }
  11824. return dAtA[:n], nil
  11825. }
  11826. func (m *StopPodSandboxRequest) MarshalTo(dAtA []byte) (int, error) {
  11827. size := m.Size()
  11828. return m.MarshalToSizedBuffer(dAtA[:size])
  11829. }
  11830. func (m *StopPodSandboxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11831. i := len(dAtA)
  11832. _ = i
  11833. var l int
  11834. _ = l
  11835. if len(m.PodSandboxId) > 0 {
  11836. i -= len(m.PodSandboxId)
  11837. copy(dAtA[i:], m.PodSandboxId)
  11838. i = encodeVarintApi(dAtA, i, uint64(len(m.PodSandboxId)))
  11839. i--
  11840. dAtA[i] = 0xa
  11841. }
  11842. return len(dAtA) - i, nil
  11843. }
  11844. func (m *StopPodSandboxResponse) Marshal() (dAtA []byte, err error) {
  11845. size := m.Size()
  11846. dAtA = make([]byte, size)
  11847. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11848. if err != nil {
  11849. return nil, err
  11850. }
  11851. return dAtA[:n], nil
  11852. }
  11853. func (m *StopPodSandboxResponse) MarshalTo(dAtA []byte) (int, error) {
  11854. size := m.Size()
  11855. return m.MarshalToSizedBuffer(dAtA[:size])
  11856. }
  11857. func (m *StopPodSandboxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11858. i := len(dAtA)
  11859. _ = i
  11860. var l int
  11861. _ = l
  11862. return len(dAtA) - i, nil
  11863. }
  11864. func (m *RemovePodSandboxRequest) Marshal() (dAtA []byte, err error) {
  11865. size := m.Size()
  11866. dAtA = make([]byte, size)
  11867. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11868. if err != nil {
  11869. return nil, err
  11870. }
  11871. return dAtA[:n], nil
  11872. }
  11873. func (m *RemovePodSandboxRequest) MarshalTo(dAtA []byte) (int, error) {
  11874. size := m.Size()
  11875. return m.MarshalToSizedBuffer(dAtA[:size])
  11876. }
  11877. func (m *RemovePodSandboxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11878. i := len(dAtA)
  11879. _ = i
  11880. var l int
  11881. _ = l
  11882. if len(m.PodSandboxId) > 0 {
  11883. i -= len(m.PodSandboxId)
  11884. copy(dAtA[i:], m.PodSandboxId)
  11885. i = encodeVarintApi(dAtA, i, uint64(len(m.PodSandboxId)))
  11886. i--
  11887. dAtA[i] = 0xa
  11888. }
  11889. return len(dAtA) - i, nil
  11890. }
  11891. func (m *RemovePodSandboxResponse) Marshal() (dAtA []byte, err error) {
  11892. size := m.Size()
  11893. dAtA = make([]byte, size)
  11894. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11895. if err != nil {
  11896. return nil, err
  11897. }
  11898. return dAtA[:n], nil
  11899. }
  11900. func (m *RemovePodSandboxResponse) MarshalTo(dAtA []byte) (int, error) {
  11901. size := m.Size()
  11902. return m.MarshalToSizedBuffer(dAtA[:size])
  11903. }
  11904. func (m *RemovePodSandboxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11905. i := len(dAtA)
  11906. _ = i
  11907. var l int
  11908. _ = l
  11909. return len(dAtA) - i, nil
  11910. }
  11911. func (m *PodSandboxStatusRequest) Marshal() (dAtA []byte, err error) {
  11912. size := m.Size()
  11913. dAtA = make([]byte, size)
  11914. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11915. if err != nil {
  11916. return nil, err
  11917. }
  11918. return dAtA[:n], nil
  11919. }
  11920. func (m *PodSandboxStatusRequest) MarshalTo(dAtA []byte) (int, error) {
  11921. size := m.Size()
  11922. return m.MarshalToSizedBuffer(dAtA[:size])
  11923. }
  11924. func (m *PodSandboxStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11925. i := len(dAtA)
  11926. _ = i
  11927. var l int
  11928. _ = l
  11929. if m.Verbose {
  11930. i--
  11931. if m.Verbose {
  11932. dAtA[i] = 1
  11933. } else {
  11934. dAtA[i] = 0
  11935. }
  11936. i--
  11937. dAtA[i] = 0x10
  11938. }
  11939. if len(m.PodSandboxId) > 0 {
  11940. i -= len(m.PodSandboxId)
  11941. copy(dAtA[i:], m.PodSandboxId)
  11942. i = encodeVarintApi(dAtA, i, uint64(len(m.PodSandboxId)))
  11943. i--
  11944. dAtA[i] = 0xa
  11945. }
  11946. return len(dAtA) - i, nil
  11947. }
  11948. func (m *PodIP) Marshal() (dAtA []byte, err error) {
  11949. size := m.Size()
  11950. dAtA = make([]byte, size)
  11951. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11952. if err != nil {
  11953. return nil, err
  11954. }
  11955. return dAtA[:n], nil
  11956. }
  11957. func (m *PodIP) MarshalTo(dAtA []byte) (int, error) {
  11958. size := m.Size()
  11959. return m.MarshalToSizedBuffer(dAtA[:size])
  11960. }
  11961. func (m *PodIP) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11962. i := len(dAtA)
  11963. _ = i
  11964. var l int
  11965. _ = l
  11966. if len(m.Ip) > 0 {
  11967. i -= len(m.Ip)
  11968. copy(dAtA[i:], m.Ip)
  11969. i = encodeVarintApi(dAtA, i, uint64(len(m.Ip)))
  11970. i--
  11971. dAtA[i] = 0xa
  11972. }
  11973. return len(dAtA) - i, nil
  11974. }
  11975. func (m *PodSandboxNetworkStatus) Marshal() (dAtA []byte, err error) {
  11976. size := m.Size()
  11977. dAtA = make([]byte, size)
  11978. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  11979. if err != nil {
  11980. return nil, err
  11981. }
  11982. return dAtA[:n], nil
  11983. }
  11984. func (m *PodSandboxNetworkStatus) MarshalTo(dAtA []byte) (int, error) {
  11985. size := m.Size()
  11986. return m.MarshalToSizedBuffer(dAtA[:size])
  11987. }
  11988. func (m *PodSandboxNetworkStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  11989. i := len(dAtA)
  11990. _ = i
  11991. var l int
  11992. _ = l
  11993. if len(m.AdditionalIps) > 0 {
  11994. for iNdEx := len(m.AdditionalIps) - 1; iNdEx >= 0; iNdEx-- {
  11995. {
  11996. size, err := m.AdditionalIps[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  11997. if err != nil {
  11998. return 0, err
  11999. }
  12000. i -= size
  12001. i = encodeVarintApi(dAtA, i, uint64(size))
  12002. }
  12003. i--
  12004. dAtA[i] = 0x12
  12005. }
  12006. }
  12007. if len(m.Ip) > 0 {
  12008. i -= len(m.Ip)
  12009. copy(dAtA[i:], m.Ip)
  12010. i = encodeVarintApi(dAtA, i, uint64(len(m.Ip)))
  12011. i--
  12012. dAtA[i] = 0xa
  12013. }
  12014. return len(dAtA) - i, nil
  12015. }
  12016. func (m *Namespace) Marshal() (dAtA []byte, err error) {
  12017. size := m.Size()
  12018. dAtA = make([]byte, size)
  12019. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12020. if err != nil {
  12021. return nil, err
  12022. }
  12023. return dAtA[:n], nil
  12024. }
  12025. func (m *Namespace) MarshalTo(dAtA []byte) (int, error) {
  12026. size := m.Size()
  12027. return m.MarshalToSizedBuffer(dAtA[:size])
  12028. }
  12029. func (m *Namespace) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12030. i := len(dAtA)
  12031. _ = i
  12032. var l int
  12033. _ = l
  12034. if m.Options != nil {
  12035. {
  12036. size, err := m.Options.MarshalToSizedBuffer(dAtA[:i])
  12037. if err != nil {
  12038. return 0, err
  12039. }
  12040. i -= size
  12041. i = encodeVarintApi(dAtA, i, uint64(size))
  12042. }
  12043. i--
  12044. dAtA[i] = 0x12
  12045. }
  12046. return len(dAtA) - i, nil
  12047. }
  12048. func (m *LinuxPodSandboxStatus) Marshal() (dAtA []byte, err error) {
  12049. size := m.Size()
  12050. dAtA = make([]byte, size)
  12051. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12052. if err != nil {
  12053. return nil, err
  12054. }
  12055. return dAtA[:n], nil
  12056. }
  12057. func (m *LinuxPodSandboxStatus) MarshalTo(dAtA []byte) (int, error) {
  12058. size := m.Size()
  12059. return m.MarshalToSizedBuffer(dAtA[:size])
  12060. }
  12061. func (m *LinuxPodSandboxStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12062. i := len(dAtA)
  12063. _ = i
  12064. var l int
  12065. _ = l
  12066. if m.Namespaces != nil {
  12067. {
  12068. size, err := m.Namespaces.MarshalToSizedBuffer(dAtA[:i])
  12069. if err != nil {
  12070. return 0, err
  12071. }
  12072. i -= size
  12073. i = encodeVarintApi(dAtA, i, uint64(size))
  12074. }
  12075. i--
  12076. dAtA[i] = 0xa
  12077. }
  12078. return len(dAtA) - i, nil
  12079. }
  12080. func (m *PodSandboxStatus) Marshal() (dAtA []byte, err error) {
  12081. size := m.Size()
  12082. dAtA = make([]byte, size)
  12083. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12084. if err != nil {
  12085. return nil, err
  12086. }
  12087. return dAtA[:n], nil
  12088. }
  12089. func (m *PodSandboxStatus) MarshalTo(dAtA []byte) (int, error) {
  12090. size := m.Size()
  12091. return m.MarshalToSizedBuffer(dAtA[:size])
  12092. }
  12093. func (m *PodSandboxStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12094. i := len(dAtA)
  12095. _ = i
  12096. var l int
  12097. _ = l
  12098. if len(m.RuntimeHandler) > 0 {
  12099. i -= len(m.RuntimeHandler)
  12100. copy(dAtA[i:], m.RuntimeHandler)
  12101. i = encodeVarintApi(dAtA, i, uint64(len(m.RuntimeHandler)))
  12102. i--
  12103. dAtA[i] = 0x4a
  12104. }
  12105. if len(m.Annotations) > 0 {
  12106. for k := range m.Annotations {
  12107. v := m.Annotations[k]
  12108. baseI := i
  12109. i -= len(v)
  12110. copy(dAtA[i:], v)
  12111. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  12112. i--
  12113. dAtA[i] = 0x12
  12114. i -= len(k)
  12115. copy(dAtA[i:], k)
  12116. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  12117. i--
  12118. dAtA[i] = 0xa
  12119. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  12120. i--
  12121. dAtA[i] = 0x42
  12122. }
  12123. }
  12124. if len(m.Labels) > 0 {
  12125. for k := range m.Labels {
  12126. v := m.Labels[k]
  12127. baseI := i
  12128. i -= len(v)
  12129. copy(dAtA[i:], v)
  12130. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  12131. i--
  12132. dAtA[i] = 0x12
  12133. i -= len(k)
  12134. copy(dAtA[i:], k)
  12135. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  12136. i--
  12137. dAtA[i] = 0xa
  12138. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  12139. i--
  12140. dAtA[i] = 0x3a
  12141. }
  12142. }
  12143. if m.Linux != nil {
  12144. {
  12145. size, err := m.Linux.MarshalToSizedBuffer(dAtA[:i])
  12146. if err != nil {
  12147. return 0, err
  12148. }
  12149. i -= size
  12150. i = encodeVarintApi(dAtA, i, uint64(size))
  12151. }
  12152. i--
  12153. dAtA[i] = 0x32
  12154. }
  12155. if m.Network != nil {
  12156. {
  12157. size, err := m.Network.MarshalToSizedBuffer(dAtA[:i])
  12158. if err != nil {
  12159. return 0, err
  12160. }
  12161. i -= size
  12162. i = encodeVarintApi(dAtA, i, uint64(size))
  12163. }
  12164. i--
  12165. dAtA[i] = 0x2a
  12166. }
  12167. if m.CreatedAt != 0 {
  12168. i = encodeVarintApi(dAtA, i, uint64(m.CreatedAt))
  12169. i--
  12170. dAtA[i] = 0x20
  12171. }
  12172. if m.State != 0 {
  12173. i = encodeVarintApi(dAtA, i, uint64(m.State))
  12174. i--
  12175. dAtA[i] = 0x18
  12176. }
  12177. if m.Metadata != nil {
  12178. {
  12179. size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i])
  12180. if err != nil {
  12181. return 0, err
  12182. }
  12183. i -= size
  12184. i = encodeVarintApi(dAtA, i, uint64(size))
  12185. }
  12186. i--
  12187. dAtA[i] = 0x12
  12188. }
  12189. if len(m.Id) > 0 {
  12190. i -= len(m.Id)
  12191. copy(dAtA[i:], m.Id)
  12192. i = encodeVarintApi(dAtA, i, uint64(len(m.Id)))
  12193. i--
  12194. dAtA[i] = 0xa
  12195. }
  12196. return len(dAtA) - i, nil
  12197. }
  12198. func (m *PodSandboxStatusResponse) Marshal() (dAtA []byte, err error) {
  12199. size := m.Size()
  12200. dAtA = make([]byte, size)
  12201. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12202. if err != nil {
  12203. return nil, err
  12204. }
  12205. return dAtA[:n], nil
  12206. }
  12207. func (m *PodSandboxStatusResponse) MarshalTo(dAtA []byte) (int, error) {
  12208. size := m.Size()
  12209. return m.MarshalToSizedBuffer(dAtA[:size])
  12210. }
  12211. func (m *PodSandboxStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12212. i := len(dAtA)
  12213. _ = i
  12214. var l int
  12215. _ = l
  12216. if m.Timestamp != 0 {
  12217. i = encodeVarintApi(dAtA, i, uint64(m.Timestamp))
  12218. i--
  12219. dAtA[i] = 0x20
  12220. }
  12221. if len(m.ContainersStatuses) > 0 {
  12222. for iNdEx := len(m.ContainersStatuses) - 1; iNdEx >= 0; iNdEx-- {
  12223. {
  12224. size, err := m.ContainersStatuses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  12225. if err != nil {
  12226. return 0, err
  12227. }
  12228. i -= size
  12229. i = encodeVarintApi(dAtA, i, uint64(size))
  12230. }
  12231. i--
  12232. dAtA[i] = 0x1a
  12233. }
  12234. }
  12235. if len(m.Info) > 0 {
  12236. for k := range m.Info {
  12237. v := m.Info[k]
  12238. baseI := i
  12239. i -= len(v)
  12240. copy(dAtA[i:], v)
  12241. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  12242. i--
  12243. dAtA[i] = 0x12
  12244. i -= len(k)
  12245. copy(dAtA[i:], k)
  12246. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  12247. i--
  12248. dAtA[i] = 0xa
  12249. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  12250. i--
  12251. dAtA[i] = 0x12
  12252. }
  12253. }
  12254. if m.Status != nil {
  12255. {
  12256. size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  12257. if err != nil {
  12258. return 0, err
  12259. }
  12260. i -= size
  12261. i = encodeVarintApi(dAtA, i, uint64(size))
  12262. }
  12263. i--
  12264. dAtA[i] = 0xa
  12265. }
  12266. return len(dAtA) - i, nil
  12267. }
  12268. func (m *PodSandboxStateValue) Marshal() (dAtA []byte, err error) {
  12269. size := m.Size()
  12270. dAtA = make([]byte, size)
  12271. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12272. if err != nil {
  12273. return nil, err
  12274. }
  12275. return dAtA[:n], nil
  12276. }
  12277. func (m *PodSandboxStateValue) MarshalTo(dAtA []byte) (int, error) {
  12278. size := m.Size()
  12279. return m.MarshalToSizedBuffer(dAtA[:size])
  12280. }
  12281. func (m *PodSandboxStateValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12282. i := len(dAtA)
  12283. _ = i
  12284. var l int
  12285. _ = l
  12286. if m.State != 0 {
  12287. i = encodeVarintApi(dAtA, i, uint64(m.State))
  12288. i--
  12289. dAtA[i] = 0x8
  12290. }
  12291. return len(dAtA) - i, nil
  12292. }
  12293. func (m *PodSandboxFilter) Marshal() (dAtA []byte, err error) {
  12294. size := m.Size()
  12295. dAtA = make([]byte, size)
  12296. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12297. if err != nil {
  12298. return nil, err
  12299. }
  12300. return dAtA[:n], nil
  12301. }
  12302. func (m *PodSandboxFilter) MarshalTo(dAtA []byte) (int, error) {
  12303. size := m.Size()
  12304. return m.MarshalToSizedBuffer(dAtA[:size])
  12305. }
  12306. func (m *PodSandboxFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12307. i := len(dAtA)
  12308. _ = i
  12309. var l int
  12310. _ = l
  12311. if len(m.LabelSelector) > 0 {
  12312. for k := range m.LabelSelector {
  12313. v := m.LabelSelector[k]
  12314. baseI := i
  12315. i -= len(v)
  12316. copy(dAtA[i:], v)
  12317. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  12318. i--
  12319. dAtA[i] = 0x12
  12320. i -= len(k)
  12321. copy(dAtA[i:], k)
  12322. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  12323. i--
  12324. dAtA[i] = 0xa
  12325. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  12326. i--
  12327. dAtA[i] = 0x1a
  12328. }
  12329. }
  12330. if m.State != nil {
  12331. {
  12332. size, err := m.State.MarshalToSizedBuffer(dAtA[:i])
  12333. if err != nil {
  12334. return 0, err
  12335. }
  12336. i -= size
  12337. i = encodeVarintApi(dAtA, i, uint64(size))
  12338. }
  12339. i--
  12340. dAtA[i] = 0x12
  12341. }
  12342. if len(m.Id) > 0 {
  12343. i -= len(m.Id)
  12344. copy(dAtA[i:], m.Id)
  12345. i = encodeVarintApi(dAtA, i, uint64(len(m.Id)))
  12346. i--
  12347. dAtA[i] = 0xa
  12348. }
  12349. return len(dAtA) - i, nil
  12350. }
  12351. func (m *ListPodSandboxRequest) Marshal() (dAtA []byte, err error) {
  12352. size := m.Size()
  12353. dAtA = make([]byte, size)
  12354. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12355. if err != nil {
  12356. return nil, err
  12357. }
  12358. return dAtA[:n], nil
  12359. }
  12360. func (m *ListPodSandboxRequest) MarshalTo(dAtA []byte) (int, error) {
  12361. size := m.Size()
  12362. return m.MarshalToSizedBuffer(dAtA[:size])
  12363. }
  12364. func (m *ListPodSandboxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12365. i := len(dAtA)
  12366. _ = i
  12367. var l int
  12368. _ = l
  12369. if m.Filter != nil {
  12370. {
  12371. size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i])
  12372. if err != nil {
  12373. return 0, err
  12374. }
  12375. i -= size
  12376. i = encodeVarintApi(dAtA, i, uint64(size))
  12377. }
  12378. i--
  12379. dAtA[i] = 0xa
  12380. }
  12381. return len(dAtA) - i, nil
  12382. }
  12383. func (m *PodSandbox) Marshal() (dAtA []byte, err error) {
  12384. size := m.Size()
  12385. dAtA = make([]byte, size)
  12386. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12387. if err != nil {
  12388. return nil, err
  12389. }
  12390. return dAtA[:n], nil
  12391. }
  12392. func (m *PodSandbox) MarshalTo(dAtA []byte) (int, error) {
  12393. size := m.Size()
  12394. return m.MarshalToSizedBuffer(dAtA[:size])
  12395. }
  12396. func (m *PodSandbox) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12397. i := len(dAtA)
  12398. _ = i
  12399. var l int
  12400. _ = l
  12401. if len(m.RuntimeHandler) > 0 {
  12402. i -= len(m.RuntimeHandler)
  12403. copy(dAtA[i:], m.RuntimeHandler)
  12404. i = encodeVarintApi(dAtA, i, uint64(len(m.RuntimeHandler)))
  12405. i--
  12406. dAtA[i] = 0x3a
  12407. }
  12408. if len(m.Annotations) > 0 {
  12409. for k := range m.Annotations {
  12410. v := m.Annotations[k]
  12411. baseI := i
  12412. i -= len(v)
  12413. copy(dAtA[i:], v)
  12414. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  12415. i--
  12416. dAtA[i] = 0x12
  12417. i -= len(k)
  12418. copy(dAtA[i:], k)
  12419. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  12420. i--
  12421. dAtA[i] = 0xa
  12422. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  12423. i--
  12424. dAtA[i] = 0x32
  12425. }
  12426. }
  12427. if len(m.Labels) > 0 {
  12428. for k := range m.Labels {
  12429. v := m.Labels[k]
  12430. baseI := i
  12431. i -= len(v)
  12432. copy(dAtA[i:], v)
  12433. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  12434. i--
  12435. dAtA[i] = 0x12
  12436. i -= len(k)
  12437. copy(dAtA[i:], k)
  12438. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  12439. i--
  12440. dAtA[i] = 0xa
  12441. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  12442. i--
  12443. dAtA[i] = 0x2a
  12444. }
  12445. }
  12446. if m.CreatedAt != 0 {
  12447. i = encodeVarintApi(dAtA, i, uint64(m.CreatedAt))
  12448. i--
  12449. dAtA[i] = 0x20
  12450. }
  12451. if m.State != 0 {
  12452. i = encodeVarintApi(dAtA, i, uint64(m.State))
  12453. i--
  12454. dAtA[i] = 0x18
  12455. }
  12456. if m.Metadata != nil {
  12457. {
  12458. size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i])
  12459. if err != nil {
  12460. return 0, err
  12461. }
  12462. i -= size
  12463. i = encodeVarintApi(dAtA, i, uint64(size))
  12464. }
  12465. i--
  12466. dAtA[i] = 0x12
  12467. }
  12468. if len(m.Id) > 0 {
  12469. i -= len(m.Id)
  12470. copy(dAtA[i:], m.Id)
  12471. i = encodeVarintApi(dAtA, i, uint64(len(m.Id)))
  12472. i--
  12473. dAtA[i] = 0xa
  12474. }
  12475. return len(dAtA) - i, nil
  12476. }
  12477. func (m *ListPodSandboxResponse) Marshal() (dAtA []byte, err error) {
  12478. size := m.Size()
  12479. dAtA = make([]byte, size)
  12480. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12481. if err != nil {
  12482. return nil, err
  12483. }
  12484. return dAtA[:n], nil
  12485. }
  12486. func (m *ListPodSandboxResponse) MarshalTo(dAtA []byte) (int, error) {
  12487. size := m.Size()
  12488. return m.MarshalToSizedBuffer(dAtA[:size])
  12489. }
  12490. func (m *ListPodSandboxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12491. i := len(dAtA)
  12492. _ = i
  12493. var l int
  12494. _ = l
  12495. if len(m.Items) > 0 {
  12496. for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  12497. {
  12498. size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  12499. if err != nil {
  12500. return 0, err
  12501. }
  12502. i -= size
  12503. i = encodeVarintApi(dAtA, i, uint64(size))
  12504. }
  12505. i--
  12506. dAtA[i] = 0xa
  12507. }
  12508. }
  12509. return len(dAtA) - i, nil
  12510. }
  12511. func (m *PodSandboxStatsRequest) Marshal() (dAtA []byte, err error) {
  12512. size := m.Size()
  12513. dAtA = make([]byte, size)
  12514. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12515. if err != nil {
  12516. return nil, err
  12517. }
  12518. return dAtA[:n], nil
  12519. }
  12520. func (m *PodSandboxStatsRequest) MarshalTo(dAtA []byte) (int, error) {
  12521. size := m.Size()
  12522. return m.MarshalToSizedBuffer(dAtA[:size])
  12523. }
  12524. func (m *PodSandboxStatsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12525. i := len(dAtA)
  12526. _ = i
  12527. var l int
  12528. _ = l
  12529. if len(m.PodSandboxId) > 0 {
  12530. i -= len(m.PodSandboxId)
  12531. copy(dAtA[i:], m.PodSandboxId)
  12532. i = encodeVarintApi(dAtA, i, uint64(len(m.PodSandboxId)))
  12533. i--
  12534. dAtA[i] = 0xa
  12535. }
  12536. return len(dAtA) - i, nil
  12537. }
  12538. func (m *PodSandboxStatsResponse) Marshal() (dAtA []byte, err error) {
  12539. size := m.Size()
  12540. dAtA = make([]byte, size)
  12541. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12542. if err != nil {
  12543. return nil, err
  12544. }
  12545. return dAtA[:n], nil
  12546. }
  12547. func (m *PodSandboxStatsResponse) MarshalTo(dAtA []byte) (int, error) {
  12548. size := m.Size()
  12549. return m.MarshalToSizedBuffer(dAtA[:size])
  12550. }
  12551. func (m *PodSandboxStatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12552. i := len(dAtA)
  12553. _ = i
  12554. var l int
  12555. _ = l
  12556. if m.Stats != nil {
  12557. {
  12558. size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i])
  12559. if err != nil {
  12560. return 0, err
  12561. }
  12562. i -= size
  12563. i = encodeVarintApi(dAtA, i, uint64(size))
  12564. }
  12565. i--
  12566. dAtA[i] = 0xa
  12567. }
  12568. return len(dAtA) - i, nil
  12569. }
  12570. func (m *PodSandboxStatsFilter) Marshal() (dAtA []byte, err error) {
  12571. size := m.Size()
  12572. dAtA = make([]byte, size)
  12573. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12574. if err != nil {
  12575. return nil, err
  12576. }
  12577. return dAtA[:n], nil
  12578. }
  12579. func (m *PodSandboxStatsFilter) MarshalTo(dAtA []byte) (int, error) {
  12580. size := m.Size()
  12581. return m.MarshalToSizedBuffer(dAtA[:size])
  12582. }
  12583. func (m *PodSandboxStatsFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12584. i := len(dAtA)
  12585. _ = i
  12586. var l int
  12587. _ = l
  12588. if len(m.LabelSelector) > 0 {
  12589. for k := range m.LabelSelector {
  12590. v := m.LabelSelector[k]
  12591. baseI := i
  12592. i -= len(v)
  12593. copy(dAtA[i:], v)
  12594. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  12595. i--
  12596. dAtA[i] = 0x12
  12597. i -= len(k)
  12598. copy(dAtA[i:], k)
  12599. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  12600. i--
  12601. dAtA[i] = 0xa
  12602. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  12603. i--
  12604. dAtA[i] = 0x12
  12605. }
  12606. }
  12607. if len(m.Id) > 0 {
  12608. i -= len(m.Id)
  12609. copy(dAtA[i:], m.Id)
  12610. i = encodeVarintApi(dAtA, i, uint64(len(m.Id)))
  12611. i--
  12612. dAtA[i] = 0xa
  12613. }
  12614. return len(dAtA) - i, nil
  12615. }
  12616. func (m *ListPodSandboxStatsRequest) Marshal() (dAtA []byte, err error) {
  12617. size := m.Size()
  12618. dAtA = make([]byte, size)
  12619. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12620. if err != nil {
  12621. return nil, err
  12622. }
  12623. return dAtA[:n], nil
  12624. }
  12625. func (m *ListPodSandboxStatsRequest) MarshalTo(dAtA []byte) (int, error) {
  12626. size := m.Size()
  12627. return m.MarshalToSizedBuffer(dAtA[:size])
  12628. }
  12629. func (m *ListPodSandboxStatsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12630. i := len(dAtA)
  12631. _ = i
  12632. var l int
  12633. _ = l
  12634. if m.Filter != nil {
  12635. {
  12636. size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i])
  12637. if err != nil {
  12638. return 0, err
  12639. }
  12640. i -= size
  12641. i = encodeVarintApi(dAtA, i, uint64(size))
  12642. }
  12643. i--
  12644. dAtA[i] = 0xa
  12645. }
  12646. return len(dAtA) - i, nil
  12647. }
  12648. func (m *ListPodSandboxStatsResponse) Marshal() (dAtA []byte, err error) {
  12649. size := m.Size()
  12650. dAtA = make([]byte, size)
  12651. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12652. if err != nil {
  12653. return nil, err
  12654. }
  12655. return dAtA[:n], nil
  12656. }
  12657. func (m *ListPodSandboxStatsResponse) MarshalTo(dAtA []byte) (int, error) {
  12658. size := m.Size()
  12659. return m.MarshalToSizedBuffer(dAtA[:size])
  12660. }
  12661. func (m *ListPodSandboxStatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12662. i := len(dAtA)
  12663. _ = i
  12664. var l int
  12665. _ = l
  12666. if len(m.Stats) > 0 {
  12667. for iNdEx := len(m.Stats) - 1; iNdEx >= 0; iNdEx-- {
  12668. {
  12669. size, err := m.Stats[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  12670. if err != nil {
  12671. return 0, err
  12672. }
  12673. i -= size
  12674. i = encodeVarintApi(dAtA, i, uint64(size))
  12675. }
  12676. i--
  12677. dAtA[i] = 0xa
  12678. }
  12679. }
  12680. return len(dAtA) - i, nil
  12681. }
  12682. func (m *PodSandboxAttributes) Marshal() (dAtA []byte, err error) {
  12683. size := m.Size()
  12684. dAtA = make([]byte, size)
  12685. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12686. if err != nil {
  12687. return nil, err
  12688. }
  12689. return dAtA[:n], nil
  12690. }
  12691. func (m *PodSandboxAttributes) MarshalTo(dAtA []byte) (int, error) {
  12692. size := m.Size()
  12693. return m.MarshalToSizedBuffer(dAtA[:size])
  12694. }
  12695. func (m *PodSandboxAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12696. i := len(dAtA)
  12697. _ = i
  12698. var l int
  12699. _ = l
  12700. if len(m.Annotations) > 0 {
  12701. for k := range m.Annotations {
  12702. v := m.Annotations[k]
  12703. baseI := i
  12704. i -= len(v)
  12705. copy(dAtA[i:], v)
  12706. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  12707. i--
  12708. dAtA[i] = 0x12
  12709. i -= len(k)
  12710. copy(dAtA[i:], k)
  12711. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  12712. i--
  12713. dAtA[i] = 0xa
  12714. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  12715. i--
  12716. dAtA[i] = 0x22
  12717. }
  12718. }
  12719. if len(m.Labels) > 0 {
  12720. for k := range m.Labels {
  12721. v := m.Labels[k]
  12722. baseI := i
  12723. i -= len(v)
  12724. copy(dAtA[i:], v)
  12725. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  12726. i--
  12727. dAtA[i] = 0x12
  12728. i -= len(k)
  12729. copy(dAtA[i:], k)
  12730. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  12731. i--
  12732. dAtA[i] = 0xa
  12733. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  12734. i--
  12735. dAtA[i] = 0x1a
  12736. }
  12737. }
  12738. if m.Metadata != nil {
  12739. {
  12740. size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i])
  12741. if err != nil {
  12742. return 0, err
  12743. }
  12744. i -= size
  12745. i = encodeVarintApi(dAtA, i, uint64(size))
  12746. }
  12747. i--
  12748. dAtA[i] = 0x12
  12749. }
  12750. if len(m.Id) > 0 {
  12751. i -= len(m.Id)
  12752. copy(dAtA[i:], m.Id)
  12753. i = encodeVarintApi(dAtA, i, uint64(len(m.Id)))
  12754. i--
  12755. dAtA[i] = 0xa
  12756. }
  12757. return len(dAtA) - i, nil
  12758. }
  12759. func (m *PodSandboxStats) Marshal() (dAtA []byte, err error) {
  12760. size := m.Size()
  12761. dAtA = make([]byte, size)
  12762. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12763. if err != nil {
  12764. return nil, err
  12765. }
  12766. return dAtA[:n], nil
  12767. }
  12768. func (m *PodSandboxStats) MarshalTo(dAtA []byte) (int, error) {
  12769. size := m.Size()
  12770. return m.MarshalToSizedBuffer(dAtA[:size])
  12771. }
  12772. func (m *PodSandboxStats) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12773. i := len(dAtA)
  12774. _ = i
  12775. var l int
  12776. _ = l
  12777. if m.Windows != nil {
  12778. {
  12779. size, err := m.Windows.MarshalToSizedBuffer(dAtA[:i])
  12780. if err != nil {
  12781. return 0, err
  12782. }
  12783. i -= size
  12784. i = encodeVarintApi(dAtA, i, uint64(size))
  12785. }
  12786. i--
  12787. dAtA[i] = 0x1a
  12788. }
  12789. if m.Linux != nil {
  12790. {
  12791. size, err := m.Linux.MarshalToSizedBuffer(dAtA[:i])
  12792. if err != nil {
  12793. return 0, err
  12794. }
  12795. i -= size
  12796. i = encodeVarintApi(dAtA, i, uint64(size))
  12797. }
  12798. i--
  12799. dAtA[i] = 0x12
  12800. }
  12801. if m.Attributes != nil {
  12802. {
  12803. size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i])
  12804. if err != nil {
  12805. return 0, err
  12806. }
  12807. i -= size
  12808. i = encodeVarintApi(dAtA, i, uint64(size))
  12809. }
  12810. i--
  12811. dAtA[i] = 0xa
  12812. }
  12813. return len(dAtA) - i, nil
  12814. }
  12815. func (m *LinuxPodSandboxStats) Marshal() (dAtA []byte, err error) {
  12816. size := m.Size()
  12817. dAtA = make([]byte, size)
  12818. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12819. if err != nil {
  12820. return nil, err
  12821. }
  12822. return dAtA[:n], nil
  12823. }
  12824. func (m *LinuxPodSandboxStats) MarshalTo(dAtA []byte) (int, error) {
  12825. size := m.Size()
  12826. return m.MarshalToSizedBuffer(dAtA[:size])
  12827. }
  12828. func (m *LinuxPodSandboxStats) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12829. i := len(dAtA)
  12830. _ = i
  12831. var l int
  12832. _ = l
  12833. if len(m.Containers) > 0 {
  12834. for iNdEx := len(m.Containers) - 1; iNdEx >= 0; iNdEx-- {
  12835. {
  12836. size, err := m.Containers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  12837. if err != nil {
  12838. return 0, err
  12839. }
  12840. i -= size
  12841. i = encodeVarintApi(dAtA, i, uint64(size))
  12842. }
  12843. i--
  12844. dAtA[i] = 0x2a
  12845. }
  12846. }
  12847. if m.Process != nil {
  12848. {
  12849. size, err := m.Process.MarshalToSizedBuffer(dAtA[:i])
  12850. if err != nil {
  12851. return 0, err
  12852. }
  12853. i -= size
  12854. i = encodeVarintApi(dAtA, i, uint64(size))
  12855. }
  12856. i--
  12857. dAtA[i] = 0x22
  12858. }
  12859. if m.Network != nil {
  12860. {
  12861. size, err := m.Network.MarshalToSizedBuffer(dAtA[:i])
  12862. if err != nil {
  12863. return 0, err
  12864. }
  12865. i -= size
  12866. i = encodeVarintApi(dAtA, i, uint64(size))
  12867. }
  12868. i--
  12869. dAtA[i] = 0x1a
  12870. }
  12871. if m.Memory != nil {
  12872. {
  12873. size, err := m.Memory.MarshalToSizedBuffer(dAtA[:i])
  12874. if err != nil {
  12875. return 0, err
  12876. }
  12877. i -= size
  12878. i = encodeVarintApi(dAtA, i, uint64(size))
  12879. }
  12880. i--
  12881. dAtA[i] = 0x12
  12882. }
  12883. if m.Cpu != nil {
  12884. {
  12885. size, err := m.Cpu.MarshalToSizedBuffer(dAtA[:i])
  12886. if err != nil {
  12887. return 0, err
  12888. }
  12889. i -= size
  12890. i = encodeVarintApi(dAtA, i, uint64(size))
  12891. }
  12892. i--
  12893. dAtA[i] = 0xa
  12894. }
  12895. return len(dAtA) - i, nil
  12896. }
  12897. func (m *WindowsPodSandboxStats) Marshal() (dAtA []byte, err error) {
  12898. size := m.Size()
  12899. dAtA = make([]byte, size)
  12900. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12901. if err != nil {
  12902. return nil, err
  12903. }
  12904. return dAtA[:n], nil
  12905. }
  12906. func (m *WindowsPodSandboxStats) MarshalTo(dAtA []byte) (int, error) {
  12907. size := m.Size()
  12908. return m.MarshalToSizedBuffer(dAtA[:size])
  12909. }
  12910. func (m *WindowsPodSandboxStats) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12911. i := len(dAtA)
  12912. _ = i
  12913. var l int
  12914. _ = l
  12915. if len(m.Containers) > 0 {
  12916. for iNdEx := len(m.Containers) - 1; iNdEx >= 0; iNdEx-- {
  12917. {
  12918. size, err := m.Containers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  12919. if err != nil {
  12920. return 0, err
  12921. }
  12922. i -= size
  12923. i = encodeVarintApi(dAtA, i, uint64(size))
  12924. }
  12925. i--
  12926. dAtA[i] = 0x2a
  12927. }
  12928. }
  12929. if m.Process != nil {
  12930. {
  12931. size, err := m.Process.MarshalToSizedBuffer(dAtA[:i])
  12932. if err != nil {
  12933. return 0, err
  12934. }
  12935. i -= size
  12936. i = encodeVarintApi(dAtA, i, uint64(size))
  12937. }
  12938. i--
  12939. dAtA[i] = 0x22
  12940. }
  12941. if m.Network != nil {
  12942. {
  12943. size, err := m.Network.MarshalToSizedBuffer(dAtA[:i])
  12944. if err != nil {
  12945. return 0, err
  12946. }
  12947. i -= size
  12948. i = encodeVarintApi(dAtA, i, uint64(size))
  12949. }
  12950. i--
  12951. dAtA[i] = 0x1a
  12952. }
  12953. if m.Memory != nil {
  12954. {
  12955. size, err := m.Memory.MarshalToSizedBuffer(dAtA[:i])
  12956. if err != nil {
  12957. return 0, err
  12958. }
  12959. i -= size
  12960. i = encodeVarintApi(dAtA, i, uint64(size))
  12961. }
  12962. i--
  12963. dAtA[i] = 0x12
  12964. }
  12965. if m.Cpu != nil {
  12966. {
  12967. size, err := m.Cpu.MarshalToSizedBuffer(dAtA[:i])
  12968. if err != nil {
  12969. return 0, err
  12970. }
  12971. i -= size
  12972. i = encodeVarintApi(dAtA, i, uint64(size))
  12973. }
  12974. i--
  12975. dAtA[i] = 0xa
  12976. }
  12977. return len(dAtA) - i, nil
  12978. }
  12979. func (m *NetworkUsage) Marshal() (dAtA []byte, err error) {
  12980. size := m.Size()
  12981. dAtA = make([]byte, size)
  12982. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  12983. if err != nil {
  12984. return nil, err
  12985. }
  12986. return dAtA[:n], nil
  12987. }
  12988. func (m *NetworkUsage) MarshalTo(dAtA []byte) (int, error) {
  12989. size := m.Size()
  12990. return m.MarshalToSizedBuffer(dAtA[:size])
  12991. }
  12992. func (m *NetworkUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  12993. i := len(dAtA)
  12994. _ = i
  12995. var l int
  12996. _ = l
  12997. if len(m.Interfaces) > 0 {
  12998. for iNdEx := len(m.Interfaces) - 1; iNdEx >= 0; iNdEx-- {
  12999. {
  13000. size, err := m.Interfaces[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  13001. if err != nil {
  13002. return 0, err
  13003. }
  13004. i -= size
  13005. i = encodeVarintApi(dAtA, i, uint64(size))
  13006. }
  13007. i--
  13008. dAtA[i] = 0x1a
  13009. }
  13010. }
  13011. if m.DefaultInterface != nil {
  13012. {
  13013. size, err := m.DefaultInterface.MarshalToSizedBuffer(dAtA[:i])
  13014. if err != nil {
  13015. return 0, err
  13016. }
  13017. i -= size
  13018. i = encodeVarintApi(dAtA, i, uint64(size))
  13019. }
  13020. i--
  13021. dAtA[i] = 0x12
  13022. }
  13023. if m.Timestamp != 0 {
  13024. i = encodeVarintApi(dAtA, i, uint64(m.Timestamp))
  13025. i--
  13026. dAtA[i] = 0x8
  13027. }
  13028. return len(dAtA) - i, nil
  13029. }
  13030. func (m *WindowsNetworkUsage) Marshal() (dAtA []byte, err error) {
  13031. size := m.Size()
  13032. dAtA = make([]byte, size)
  13033. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13034. if err != nil {
  13035. return nil, err
  13036. }
  13037. return dAtA[:n], nil
  13038. }
  13039. func (m *WindowsNetworkUsage) MarshalTo(dAtA []byte) (int, error) {
  13040. size := m.Size()
  13041. return m.MarshalToSizedBuffer(dAtA[:size])
  13042. }
  13043. func (m *WindowsNetworkUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13044. i := len(dAtA)
  13045. _ = i
  13046. var l int
  13047. _ = l
  13048. if len(m.Interfaces) > 0 {
  13049. for iNdEx := len(m.Interfaces) - 1; iNdEx >= 0; iNdEx-- {
  13050. {
  13051. size, err := m.Interfaces[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  13052. if err != nil {
  13053. return 0, err
  13054. }
  13055. i -= size
  13056. i = encodeVarintApi(dAtA, i, uint64(size))
  13057. }
  13058. i--
  13059. dAtA[i] = 0x1a
  13060. }
  13061. }
  13062. if m.DefaultInterface != nil {
  13063. {
  13064. size, err := m.DefaultInterface.MarshalToSizedBuffer(dAtA[:i])
  13065. if err != nil {
  13066. return 0, err
  13067. }
  13068. i -= size
  13069. i = encodeVarintApi(dAtA, i, uint64(size))
  13070. }
  13071. i--
  13072. dAtA[i] = 0x12
  13073. }
  13074. if m.Timestamp != 0 {
  13075. i = encodeVarintApi(dAtA, i, uint64(m.Timestamp))
  13076. i--
  13077. dAtA[i] = 0x8
  13078. }
  13079. return len(dAtA) - i, nil
  13080. }
  13081. func (m *NetworkInterfaceUsage) Marshal() (dAtA []byte, err error) {
  13082. size := m.Size()
  13083. dAtA = make([]byte, size)
  13084. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13085. if err != nil {
  13086. return nil, err
  13087. }
  13088. return dAtA[:n], nil
  13089. }
  13090. func (m *NetworkInterfaceUsage) MarshalTo(dAtA []byte) (int, error) {
  13091. size := m.Size()
  13092. return m.MarshalToSizedBuffer(dAtA[:size])
  13093. }
  13094. func (m *NetworkInterfaceUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13095. i := len(dAtA)
  13096. _ = i
  13097. var l int
  13098. _ = l
  13099. if m.TxErrors != nil {
  13100. {
  13101. size, err := m.TxErrors.MarshalToSizedBuffer(dAtA[:i])
  13102. if err != nil {
  13103. return 0, err
  13104. }
  13105. i -= size
  13106. i = encodeVarintApi(dAtA, i, uint64(size))
  13107. }
  13108. i--
  13109. dAtA[i] = 0x2a
  13110. }
  13111. if m.TxBytes != nil {
  13112. {
  13113. size, err := m.TxBytes.MarshalToSizedBuffer(dAtA[:i])
  13114. if err != nil {
  13115. return 0, err
  13116. }
  13117. i -= size
  13118. i = encodeVarintApi(dAtA, i, uint64(size))
  13119. }
  13120. i--
  13121. dAtA[i] = 0x22
  13122. }
  13123. if m.RxErrors != nil {
  13124. {
  13125. size, err := m.RxErrors.MarshalToSizedBuffer(dAtA[:i])
  13126. if err != nil {
  13127. return 0, err
  13128. }
  13129. i -= size
  13130. i = encodeVarintApi(dAtA, i, uint64(size))
  13131. }
  13132. i--
  13133. dAtA[i] = 0x1a
  13134. }
  13135. if m.RxBytes != nil {
  13136. {
  13137. size, err := m.RxBytes.MarshalToSizedBuffer(dAtA[:i])
  13138. if err != nil {
  13139. return 0, err
  13140. }
  13141. i -= size
  13142. i = encodeVarintApi(dAtA, i, uint64(size))
  13143. }
  13144. i--
  13145. dAtA[i] = 0x12
  13146. }
  13147. if len(m.Name) > 0 {
  13148. i -= len(m.Name)
  13149. copy(dAtA[i:], m.Name)
  13150. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  13151. i--
  13152. dAtA[i] = 0xa
  13153. }
  13154. return len(dAtA) - i, nil
  13155. }
  13156. func (m *WindowsNetworkInterfaceUsage) Marshal() (dAtA []byte, err error) {
  13157. size := m.Size()
  13158. dAtA = make([]byte, size)
  13159. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13160. if err != nil {
  13161. return nil, err
  13162. }
  13163. return dAtA[:n], nil
  13164. }
  13165. func (m *WindowsNetworkInterfaceUsage) MarshalTo(dAtA []byte) (int, error) {
  13166. size := m.Size()
  13167. return m.MarshalToSizedBuffer(dAtA[:size])
  13168. }
  13169. func (m *WindowsNetworkInterfaceUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13170. i := len(dAtA)
  13171. _ = i
  13172. var l int
  13173. _ = l
  13174. if m.TxPacketsDropped != nil {
  13175. {
  13176. size, err := m.TxPacketsDropped.MarshalToSizedBuffer(dAtA[:i])
  13177. if err != nil {
  13178. return 0, err
  13179. }
  13180. i -= size
  13181. i = encodeVarintApi(dAtA, i, uint64(size))
  13182. }
  13183. i--
  13184. dAtA[i] = 0x2a
  13185. }
  13186. if m.TxBytes != nil {
  13187. {
  13188. size, err := m.TxBytes.MarshalToSizedBuffer(dAtA[:i])
  13189. if err != nil {
  13190. return 0, err
  13191. }
  13192. i -= size
  13193. i = encodeVarintApi(dAtA, i, uint64(size))
  13194. }
  13195. i--
  13196. dAtA[i] = 0x22
  13197. }
  13198. if m.RxPacketsDropped != nil {
  13199. {
  13200. size, err := m.RxPacketsDropped.MarshalToSizedBuffer(dAtA[:i])
  13201. if err != nil {
  13202. return 0, err
  13203. }
  13204. i -= size
  13205. i = encodeVarintApi(dAtA, i, uint64(size))
  13206. }
  13207. i--
  13208. dAtA[i] = 0x1a
  13209. }
  13210. if m.RxBytes != nil {
  13211. {
  13212. size, err := m.RxBytes.MarshalToSizedBuffer(dAtA[:i])
  13213. if err != nil {
  13214. return 0, err
  13215. }
  13216. i -= size
  13217. i = encodeVarintApi(dAtA, i, uint64(size))
  13218. }
  13219. i--
  13220. dAtA[i] = 0x12
  13221. }
  13222. if len(m.Name) > 0 {
  13223. i -= len(m.Name)
  13224. copy(dAtA[i:], m.Name)
  13225. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  13226. i--
  13227. dAtA[i] = 0xa
  13228. }
  13229. return len(dAtA) - i, nil
  13230. }
  13231. func (m *ProcessUsage) Marshal() (dAtA []byte, err error) {
  13232. size := m.Size()
  13233. dAtA = make([]byte, size)
  13234. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13235. if err != nil {
  13236. return nil, err
  13237. }
  13238. return dAtA[:n], nil
  13239. }
  13240. func (m *ProcessUsage) MarshalTo(dAtA []byte) (int, error) {
  13241. size := m.Size()
  13242. return m.MarshalToSizedBuffer(dAtA[:size])
  13243. }
  13244. func (m *ProcessUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13245. i := len(dAtA)
  13246. _ = i
  13247. var l int
  13248. _ = l
  13249. if m.ProcessCount != nil {
  13250. {
  13251. size, err := m.ProcessCount.MarshalToSizedBuffer(dAtA[:i])
  13252. if err != nil {
  13253. return 0, err
  13254. }
  13255. i -= size
  13256. i = encodeVarintApi(dAtA, i, uint64(size))
  13257. }
  13258. i--
  13259. dAtA[i] = 0x12
  13260. }
  13261. if m.Timestamp != 0 {
  13262. i = encodeVarintApi(dAtA, i, uint64(m.Timestamp))
  13263. i--
  13264. dAtA[i] = 0x8
  13265. }
  13266. return len(dAtA) - i, nil
  13267. }
  13268. func (m *WindowsProcessUsage) Marshal() (dAtA []byte, err error) {
  13269. size := m.Size()
  13270. dAtA = make([]byte, size)
  13271. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13272. if err != nil {
  13273. return nil, err
  13274. }
  13275. return dAtA[:n], nil
  13276. }
  13277. func (m *WindowsProcessUsage) MarshalTo(dAtA []byte) (int, error) {
  13278. size := m.Size()
  13279. return m.MarshalToSizedBuffer(dAtA[:size])
  13280. }
  13281. func (m *WindowsProcessUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13282. i := len(dAtA)
  13283. _ = i
  13284. var l int
  13285. _ = l
  13286. if m.ProcessCount != nil {
  13287. {
  13288. size, err := m.ProcessCount.MarshalToSizedBuffer(dAtA[:i])
  13289. if err != nil {
  13290. return 0, err
  13291. }
  13292. i -= size
  13293. i = encodeVarintApi(dAtA, i, uint64(size))
  13294. }
  13295. i--
  13296. dAtA[i] = 0x12
  13297. }
  13298. if m.Timestamp != 0 {
  13299. i = encodeVarintApi(dAtA, i, uint64(m.Timestamp))
  13300. i--
  13301. dAtA[i] = 0x8
  13302. }
  13303. return len(dAtA) - i, nil
  13304. }
  13305. func (m *ImageSpec) Marshal() (dAtA []byte, err error) {
  13306. size := m.Size()
  13307. dAtA = make([]byte, size)
  13308. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13309. if err != nil {
  13310. return nil, err
  13311. }
  13312. return dAtA[:n], nil
  13313. }
  13314. func (m *ImageSpec) MarshalTo(dAtA []byte) (int, error) {
  13315. size := m.Size()
  13316. return m.MarshalToSizedBuffer(dAtA[:size])
  13317. }
  13318. func (m *ImageSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13319. i := len(dAtA)
  13320. _ = i
  13321. var l int
  13322. _ = l
  13323. if len(m.UserSpecifiedImage) > 0 {
  13324. i -= len(m.UserSpecifiedImage)
  13325. copy(dAtA[i:], m.UserSpecifiedImage)
  13326. i = encodeVarintApi(dAtA, i, uint64(len(m.UserSpecifiedImage)))
  13327. i--
  13328. dAtA[i] = 0x1
  13329. i--
  13330. dAtA[i] = 0x92
  13331. }
  13332. if len(m.Annotations) > 0 {
  13333. for k := range m.Annotations {
  13334. v := m.Annotations[k]
  13335. baseI := i
  13336. i -= len(v)
  13337. copy(dAtA[i:], v)
  13338. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  13339. i--
  13340. dAtA[i] = 0x12
  13341. i -= len(k)
  13342. copy(dAtA[i:], k)
  13343. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  13344. i--
  13345. dAtA[i] = 0xa
  13346. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  13347. i--
  13348. dAtA[i] = 0x12
  13349. }
  13350. }
  13351. if len(m.Image) > 0 {
  13352. i -= len(m.Image)
  13353. copy(dAtA[i:], m.Image)
  13354. i = encodeVarintApi(dAtA, i, uint64(len(m.Image)))
  13355. i--
  13356. dAtA[i] = 0xa
  13357. }
  13358. return len(dAtA) - i, nil
  13359. }
  13360. func (m *KeyValue) Marshal() (dAtA []byte, err error) {
  13361. size := m.Size()
  13362. dAtA = make([]byte, size)
  13363. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13364. if err != nil {
  13365. return nil, err
  13366. }
  13367. return dAtA[:n], nil
  13368. }
  13369. func (m *KeyValue) MarshalTo(dAtA []byte) (int, error) {
  13370. size := m.Size()
  13371. return m.MarshalToSizedBuffer(dAtA[:size])
  13372. }
  13373. func (m *KeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13374. i := len(dAtA)
  13375. _ = i
  13376. var l int
  13377. _ = l
  13378. if len(m.Value) > 0 {
  13379. i -= len(m.Value)
  13380. copy(dAtA[i:], m.Value)
  13381. i = encodeVarintApi(dAtA, i, uint64(len(m.Value)))
  13382. i--
  13383. dAtA[i] = 0x12
  13384. }
  13385. if len(m.Key) > 0 {
  13386. i -= len(m.Key)
  13387. copy(dAtA[i:], m.Key)
  13388. i = encodeVarintApi(dAtA, i, uint64(len(m.Key)))
  13389. i--
  13390. dAtA[i] = 0xa
  13391. }
  13392. return len(dAtA) - i, nil
  13393. }
  13394. func (m *LinuxContainerResources) Marshal() (dAtA []byte, err error) {
  13395. size := m.Size()
  13396. dAtA = make([]byte, size)
  13397. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13398. if err != nil {
  13399. return nil, err
  13400. }
  13401. return dAtA[:n], nil
  13402. }
  13403. func (m *LinuxContainerResources) MarshalTo(dAtA []byte) (int, error) {
  13404. size := m.Size()
  13405. return m.MarshalToSizedBuffer(dAtA[:size])
  13406. }
  13407. func (m *LinuxContainerResources) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13408. i := len(dAtA)
  13409. _ = i
  13410. var l int
  13411. _ = l
  13412. if m.MemorySwapLimitInBytes != 0 {
  13413. i = encodeVarintApi(dAtA, i, uint64(m.MemorySwapLimitInBytes))
  13414. i--
  13415. dAtA[i] = 0x50
  13416. }
  13417. if len(m.Unified) > 0 {
  13418. for k := range m.Unified {
  13419. v := m.Unified[k]
  13420. baseI := i
  13421. i -= len(v)
  13422. copy(dAtA[i:], v)
  13423. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  13424. i--
  13425. dAtA[i] = 0x12
  13426. i -= len(k)
  13427. copy(dAtA[i:], k)
  13428. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  13429. i--
  13430. dAtA[i] = 0xa
  13431. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  13432. i--
  13433. dAtA[i] = 0x4a
  13434. }
  13435. }
  13436. if len(m.HugepageLimits) > 0 {
  13437. for iNdEx := len(m.HugepageLimits) - 1; iNdEx >= 0; iNdEx-- {
  13438. {
  13439. size, err := m.HugepageLimits[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  13440. if err != nil {
  13441. return 0, err
  13442. }
  13443. i -= size
  13444. i = encodeVarintApi(dAtA, i, uint64(size))
  13445. }
  13446. i--
  13447. dAtA[i] = 0x42
  13448. }
  13449. }
  13450. if len(m.CpusetMems) > 0 {
  13451. i -= len(m.CpusetMems)
  13452. copy(dAtA[i:], m.CpusetMems)
  13453. i = encodeVarintApi(dAtA, i, uint64(len(m.CpusetMems)))
  13454. i--
  13455. dAtA[i] = 0x3a
  13456. }
  13457. if len(m.CpusetCpus) > 0 {
  13458. i -= len(m.CpusetCpus)
  13459. copy(dAtA[i:], m.CpusetCpus)
  13460. i = encodeVarintApi(dAtA, i, uint64(len(m.CpusetCpus)))
  13461. i--
  13462. dAtA[i] = 0x32
  13463. }
  13464. if m.OomScoreAdj != 0 {
  13465. i = encodeVarintApi(dAtA, i, uint64(m.OomScoreAdj))
  13466. i--
  13467. dAtA[i] = 0x28
  13468. }
  13469. if m.MemoryLimitInBytes != 0 {
  13470. i = encodeVarintApi(dAtA, i, uint64(m.MemoryLimitInBytes))
  13471. i--
  13472. dAtA[i] = 0x20
  13473. }
  13474. if m.CpuShares != 0 {
  13475. i = encodeVarintApi(dAtA, i, uint64(m.CpuShares))
  13476. i--
  13477. dAtA[i] = 0x18
  13478. }
  13479. if m.CpuQuota != 0 {
  13480. i = encodeVarintApi(dAtA, i, uint64(m.CpuQuota))
  13481. i--
  13482. dAtA[i] = 0x10
  13483. }
  13484. if m.CpuPeriod != 0 {
  13485. i = encodeVarintApi(dAtA, i, uint64(m.CpuPeriod))
  13486. i--
  13487. dAtA[i] = 0x8
  13488. }
  13489. return len(dAtA) - i, nil
  13490. }
  13491. func (m *HugepageLimit) Marshal() (dAtA []byte, err error) {
  13492. size := m.Size()
  13493. dAtA = make([]byte, size)
  13494. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13495. if err != nil {
  13496. return nil, err
  13497. }
  13498. return dAtA[:n], nil
  13499. }
  13500. func (m *HugepageLimit) MarshalTo(dAtA []byte) (int, error) {
  13501. size := m.Size()
  13502. return m.MarshalToSizedBuffer(dAtA[:size])
  13503. }
  13504. func (m *HugepageLimit) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13505. i := len(dAtA)
  13506. _ = i
  13507. var l int
  13508. _ = l
  13509. if m.Limit != 0 {
  13510. i = encodeVarintApi(dAtA, i, uint64(m.Limit))
  13511. i--
  13512. dAtA[i] = 0x10
  13513. }
  13514. if len(m.PageSize) > 0 {
  13515. i -= len(m.PageSize)
  13516. copy(dAtA[i:], m.PageSize)
  13517. i = encodeVarintApi(dAtA, i, uint64(len(m.PageSize)))
  13518. i--
  13519. dAtA[i] = 0xa
  13520. }
  13521. return len(dAtA) - i, nil
  13522. }
  13523. func (m *SELinuxOption) Marshal() (dAtA []byte, err error) {
  13524. size := m.Size()
  13525. dAtA = make([]byte, size)
  13526. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13527. if err != nil {
  13528. return nil, err
  13529. }
  13530. return dAtA[:n], nil
  13531. }
  13532. func (m *SELinuxOption) MarshalTo(dAtA []byte) (int, error) {
  13533. size := m.Size()
  13534. return m.MarshalToSizedBuffer(dAtA[:size])
  13535. }
  13536. func (m *SELinuxOption) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13537. i := len(dAtA)
  13538. _ = i
  13539. var l int
  13540. _ = l
  13541. if len(m.Level) > 0 {
  13542. i -= len(m.Level)
  13543. copy(dAtA[i:], m.Level)
  13544. i = encodeVarintApi(dAtA, i, uint64(len(m.Level)))
  13545. i--
  13546. dAtA[i] = 0x22
  13547. }
  13548. if len(m.Type) > 0 {
  13549. i -= len(m.Type)
  13550. copy(dAtA[i:], m.Type)
  13551. i = encodeVarintApi(dAtA, i, uint64(len(m.Type)))
  13552. i--
  13553. dAtA[i] = 0x1a
  13554. }
  13555. if len(m.Role) > 0 {
  13556. i -= len(m.Role)
  13557. copy(dAtA[i:], m.Role)
  13558. i = encodeVarintApi(dAtA, i, uint64(len(m.Role)))
  13559. i--
  13560. dAtA[i] = 0x12
  13561. }
  13562. if len(m.User) > 0 {
  13563. i -= len(m.User)
  13564. copy(dAtA[i:], m.User)
  13565. i = encodeVarintApi(dAtA, i, uint64(len(m.User)))
  13566. i--
  13567. dAtA[i] = 0xa
  13568. }
  13569. return len(dAtA) - i, nil
  13570. }
  13571. func (m *Capability) Marshal() (dAtA []byte, err error) {
  13572. size := m.Size()
  13573. dAtA = make([]byte, size)
  13574. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13575. if err != nil {
  13576. return nil, err
  13577. }
  13578. return dAtA[:n], nil
  13579. }
  13580. func (m *Capability) MarshalTo(dAtA []byte) (int, error) {
  13581. size := m.Size()
  13582. return m.MarshalToSizedBuffer(dAtA[:size])
  13583. }
  13584. func (m *Capability) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13585. i := len(dAtA)
  13586. _ = i
  13587. var l int
  13588. _ = l
  13589. if len(m.AddAmbientCapabilities) > 0 {
  13590. for iNdEx := len(m.AddAmbientCapabilities) - 1; iNdEx >= 0; iNdEx-- {
  13591. i -= len(m.AddAmbientCapabilities[iNdEx])
  13592. copy(dAtA[i:], m.AddAmbientCapabilities[iNdEx])
  13593. i = encodeVarintApi(dAtA, i, uint64(len(m.AddAmbientCapabilities[iNdEx])))
  13594. i--
  13595. dAtA[i] = 0x1a
  13596. }
  13597. }
  13598. if len(m.DropCapabilities) > 0 {
  13599. for iNdEx := len(m.DropCapabilities) - 1; iNdEx >= 0; iNdEx-- {
  13600. i -= len(m.DropCapabilities[iNdEx])
  13601. copy(dAtA[i:], m.DropCapabilities[iNdEx])
  13602. i = encodeVarintApi(dAtA, i, uint64(len(m.DropCapabilities[iNdEx])))
  13603. i--
  13604. dAtA[i] = 0x12
  13605. }
  13606. }
  13607. if len(m.AddCapabilities) > 0 {
  13608. for iNdEx := len(m.AddCapabilities) - 1; iNdEx >= 0; iNdEx-- {
  13609. i -= len(m.AddCapabilities[iNdEx])
  13610. copy(dAtA[i:], m.AddCapabilities[iNdEx])
  13611. i = encodeVarintApi(dAtA, i, uint64(len(m.AddCapabilities[iNdEx])))
  13612. i--
  13613. dAtA[i] = 0xa
  13614. }
  13615. }
  13616. return len(dAtA) - i, nil
  13617. }
  13618. func (m *LinuxContainerSecurityContext) Marshal() (dAtA []byte, err error) {
  13619. size := m.Size()
  13620. dAtA = make([]byte, size)
  13621. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13622. if err != nil {
  13623. return nil, err
  13624. }
  13625. return dAtA[:n], nil
  13626. }
  13627. func (m *LinuxContainerSecurityContext) MarshalTo(dAtA []byte) (int, error) {
  13628. size := m.Size()
  13629. return m.MarshalToSizedBuffer(dAtA[:size])
  13630. }
  13631. func (m *LinuxContainerSecurityContext) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13632. i := len(dAtA)
  13633. _ = i
  13634. var l int
  13635. _ = l
  13636. if m.Apparmor != nil {
  13637. {
  13638. size, err := m.Apparmor.MarshalToSizedBuffer(dAtA[:i])
  13639. if err != nil {
  13640. return 0, err
  13641. }
  13642. i -= size
  13643. i = encodeVarintApi(dAtA, i, uint64(size))
  13644. }
  13645. i--
  13646. dAtA[i] = 0x1
  13647. i--
  13648. dAtA[i] = 0x82
  13649. }
  13650. if m.Seccomp != nil {
  13651. {
  13652. size, err := m.Seccomp.MarshalToSizedBuffer(dAtA[:i])
  13653. if err != nil {
  13654. return 0, err
  13655. }
  13656. i -= size
  13657. i = encodeVarintApi(dAtA, i, uint64(size))
  13658. }
  13659. i--
  13660. dAtA[i] = 0x7a
  13661. }
  13662. if len(m.ReadonlyPaths) > 0 {
  13663. for iNdEx := len(m.ReadonlyPaths) - 1; iNdEx >= 0; iNdEx-- {
  13664. i -= len(m.ReadonlyPaths[iNdEx])
  13665. copy(dAtA[i:], m.ReadonlyPaths[iNdEx])
  13666. i = encodeVarintApi(dAtA, i, uint64(len(m.ReadonlyPaths[iNdEx])))
  13667. i--
  13668. dAtA[i] = 0x72
  13669. }
  13670. }
  13671. if len(m.MaskedPaths) > 0 {
  13672. for iNdEx := len(m.MaskedPaths) - 1; iNdEx >= 0; iNdEx-- {
  13673. i -= len(m.MaskedPaths[iNdEx])
  13674. copy(dAtA[i:], m.MaskedPaths[iNdEx])
  13675. i = encodeVarintApi(dAtA, i, uint64(len(m.MaskedPaths[iNdEx])))
  13676. i--
  13677. dAtA[i] = 0x6a
  13678. }
  13679. }
  13680. if m.RunAsGroup != nil {
  13681. {
  13682. size, err := m.RunAsGroup.MarshalToSizedBuffer(dAtA[:i])
  13683. if err != nil {
  13684. return 0, err
  13685. }
  13686. i -= size
  13687. i = encodeVarintApi(dAtA, i, uint64(size))
  13688. }
  13689. i--
  13690. dAtA[i] = 0x62
  13691. }
  13692. if m.NoNewPrivs {
  13693. i--
  13694. if m.NoNewPrivs {
  13695. dAtA[i] = 1
  13696. } else {
  13697. dAtA[i] = 0
  13698. }
  13699. i--
  13700. dAtA[i] = 0x58
  13701. }
  13702. if len(m.SeccompProfilePath) > 0 {
  13703. i -= len(m.SeccompProfilePath)
  13704. copy(dAtA[i:], m.SeccompProfilePath)
  13705. i = encodeVarintApi(dAtA, i, uint64(len(m.SeccompProfilePath)))
  13706. i--
  13707. dAtA[i] = 0x52
  13708. }
  13709. if len(m.ApparmorProfile) > 0 {
  13710. i -= len(m.ApparmorProfile)
  13711. copy(dAtA[i:], m.ApparmorProfile)
  13712. i = encodeVarintApi(dAtA, i, uint64(len(m.ApparmorProfile)))
  13713. i--
  13714. dAtA[i] = 0x4a
  13715. }
  13716. if len(m.SupplementalGroups) > 0 {
  13717. dAtA57 := make([]byte, len(m.SupplementalGroups)*10)
  13718. var j56 int
  13719. for _, num1 := range m.SupplementalGroups {
  13720. num := uint64(num1)
  13721. for num >= 1<<7 {
  13722. dAtA57[j56] = uint8(uint64(num)&0x7f | 0x80)
  13723. num >>= 7
  13724. j56++
  13725. }
  13726. dAtA57[j56] = uint8(num)
  13727. j56++
  13728. }
  13729. i -= j56
  13730. copy(dAtA[i:], dAtA57[:j56])
  13731. i = encodeVarintApi(dAtA, i, uint64(j56))
  13732. i--
  13733. dAtA[i] = 0x42
  13734. }
  13735. if m.ReadonlyRootfs {
  13736. i--
  13737. if m.ReadonlyRootfs {
  13738. dAtA[i] = 1
  13739. } else {
  13740. dAtA[i] = 0
  13741. }
  13742. i--
  13743. dAtA[i] = 0x38
  13744. }
  13745. if len(m.RunAsUsername) > 0 {
  13746. i -= len(m.RunAsUsername)
  13747. copy(dAtA[i:], m.RunAsUsername)
  13748. i = encodeVarintApi(dAtA, i, uint64(len(m.RunAsUsername)))
  13749. i--
  13750. dAtA[i] = 0x32
  13751. }
  13752. if m.RunAsUser != nil {
  13753. {
  13754. size, err := m.RunAsUser.MarshalToSizedBuffer(dAtA[:i])
  13755. if err != nil {
  13756. return 0, err
  13757. }
  13758. i -= size
  13759. i = encodeVarintApi(dAtA, i, uint64(size))
  13760. }
  13761. i--
  13762. dAtA[i] = 0x2a
  13763. }
  13764. if m.SelinuxOptions != nil {
  13765. {
  13766. size, err := m.SelinuxOptions.MarshalToSizedBuffer(dAtA[:i])
  13767. if err != nil {
  13768. return 0, err
  13769. }
  13770. i -= size
  13771. i = encodeVarintApi(dAtA, i, uint64(size))
  13772. }
  13773. i--
  13774. dAtA[i] = 0x22
  13775. }
  13776. if m.NamespaceOptions != nil {
  13777. {
  13778. size, err := m.NamespaceOptions.MarshalToSizedBuffer(dAtA[:i])
  13779. if err != nil {
  13780. return 0, err
  13781. }
  13782. i -= size
  13783. i = encodeVarintApi(dAtA, i, uint64(size))
  13784. }
  13785. i--
  13786. dAtA[i] = 0x1a
  13787. }
  13788. if m.Privileged {
  13789. i--
  13790. if m.Privileged {
  13791. dAtA[i] = 1
  13792. } else {
  13793. dAtA[i] = 0
  13794. }
  13795. i--
  13796. dAtA[i] = 0x10
  13797. }
  13798. if m.Capabilities != nil {
  13799. {
  13800. size, err := m.Capabilities.MarshalToSizedBuffer(dAtA[:i])
  13801. if err != nil {
  13802. return 0, err
  13803. }
  13804. i -= size
  13805. i = encodeVarintApi(dAtA, i, uint64(size))
  13806. }
  13807. i--
  13808. dAtA[i] = 0xa
  13809. }
  13810. return len(dAtA) - i, nil
  13811. }
  13812. func (m *LinuxContainerConfig) Marshal() (dAtA []byte, err error) {
  13813. size := m.Size()
  13814. dAtA = make([]byte, size)
  13815. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13816. if err != nil {
  13817. return nil, err
  13818. }
  13819. return dAtA[:n], nil
  13820. }
  13821. func (m *LinuxContainerConfig) MarshalTo(dAtA []byte) (int, error) {
  13822. size := m.Size()
  13823. return m.MarshalToSizedBuffer(dAtA[:size])
  13824. }
  13825. func (m *LinuxContainerConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13826. i := len(dAtA)
  13827. _ = i
  13828. var l int
  13829. _ = l
  13830. if m.SecurityContext != nil {
  13831. {
  13832. size, err := m.SecurityContext.MarshalToSizedBuffer(dAtA[:i])
  13833. if err != nil {
  13834. return 0, err
  13835. }
  13836. i -= size
  13837. i = encodeVarintApi(dAtA, i, uint64(size))
  13838. }
  13839. i--
  13840. dAtA[i] = 0x12
  13841. }
  13842. if m.Resources != nil {
  13843. {
  13844. size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i])
  13845. if err != nil {
  13846. return 0, err
  13847. }
  13848. i -= size
  13849. i = encodeVarintApi(dAtA, i, uint64(size))
  13850. }
  13851. i--
  13852. dAtA[i] = 0xa
  13853. }
  13854. return len(dAtA) - i, nil
  13855. }
  13856. func (m *WindowsNamespaceOption) Marshal() (dAtA []byte, err error) {
  13857. size := m.Size()
  13858. dAtA = make([]byte, size)
  13859. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13860. if err != nil {
  13861. return nil, err
  13862. }
  13863. return dAtA[:n], nil
  13864. }
  13865. func (m *WindowsNamespaceOption) MarshalTo(dAtA []byte) (int, error) {
  13866. size := m.Size()
  13867. return m.MarshalToSizedBuffer(dAtA[:size])
  13868. }
  13869. func (m *WindowsNamespaceOption) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13870. i := len(dAtA)
  13871. _ = i
  13872. var l int
  13873. _ = l
  13874. if m.Network != 0 {
  13875. i = encodeVarintApi(dAtA, i, uint64(m.Network))
  13876. i--
  13877. dAtA[i] = 0x8
  13878. }
  13879. return len(dAtA) - i, nil
  13880. }
  13881. func (m *WindowsSandboxSecurityContext) Marshal() (dAtA []byte, err error) {
  13882. size := m.Size()
  13883. dAtA = make([]byte, size)
  13884. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13885. if err != nil {
  13886. return nil, err
  13887. }
  13888. return dAtA[:n], nil
  13889. }
  13890. func (m *WindowsSandboxSecurityContext) MarshalTo(dAtA []byte) (int, error) {
  13891. size := m.Size()
  13892. return m.MarshalToSizedBuffer(dAtA[:size])
  13893. }
  13894. func (m *WindowsSandboxSecurityContext) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13895. i := len(dAtA)
  13896. _ = i
  13897. var l int
  13898. _ = l
  13899. if m.NamespaceOptions != nil {
  13900. {
  13901. size, err := m.NamespaceOptions.MarshalToSizedBuffer(dAtA[:i])
  13902. if err != nil {
  13903. return 0, err
  13904. }
  13905. i -= size
  13906. i = encodeVarintApi(dAtA, i, uint64(size))
  13907. }
  13908. i--
  13909. dAtA[i] = 0x22
  13910. }
  13911. if m.HostProcess {
  13912. i--
  13913. if m.HostProcess {
  13914. dAtA[i] = 1
  13915. } else {
  13916. dAtA[i] = 0
  13917. }
  13918. i--
  13919. dAtA[i] = 0x18
  13920. }
  13921. if len(m.CredentialSpec) > 0 {
  13922. i -= len(m.CredentialSpec)
  13923. copy(dAtA[i:], m.CredentialSpec)
  13924. i = encodeVarintApi(dAtA, i, uint64(len(m.CredentialSpec)))
  13925. i--
  13926. dAtA[i] = 0x12
  13927. }
  13928. if len(m.RunAsUsername) > 0 {
  13929. i -= len(m.RunAsUsername)
  13930. copy(dAtA[i:], m.RunAsUsername)
  13931. i = encodeVarintApi(dAtA, i, uint64(len(m.RunAsUsername)))
  13932. i--
  13933. dAtA[i] = 0xa
  13934. }
  13935. return len(dAtA) - i, nil
  13936. }
  13937. func (m *WindowsPodSandboxConfig) Marshal() (dAtA []byte, err error) {
  13938. size := m.Size()
  13939. dAtA = make([]byte, size)
  13940. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13941. if err != nil {
  13942. return nil, err
  13943. }
  13944. return dAtA[:n], nil
  13945. }
  13946. func (m *WindowsPodSandboxConfig) MarshalTo(dAtA []byte) (int, error) {
  13947. size := m.Size()
  13948. return m.MarshalToSizedBuffer(dAtA[:size])
  13949. }
  13950. func (m *WindowsPodSandboxConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13951. i := len(dAtA)
  13952. _ = i
  13953. var l int
  13954. _ = l
  13955. if m.SecurityContext != nil {
  13956. {
  13957. size, err := m.SecurityContext.MarshalToSizedBuffer(dAtA[:i])
  13958. if err != nil {
  13959. return 0, err
  13960. }
  13961. i -= size
  13962. i = encodeVarintApi(dAtA, i, uint64(size))
  13963. }
  13964. i--
  13965. dAtA[i] = 0xa
  13966. }
  13967. return len(dAtA) - i, nil
  13968. }
  13969. func (m *WindowsContainerSecurityContext) Marshal() (dAtA []byte, err error) {
  13970. size := m.Size()
  13971. dAtA = make([]byte, size)
  13972. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  13973. if err != nil {
  13974. return nil, err
  13975. }
  13976. return dAtA[:n], nil
  13977. }
  13978. func (m *WindowsContainerSecurityContext) MarshalTo(dAtA []byte) (int, error) {
  13979. size := m.Size()
  13980. return m.MarshalToSizedBuffer(dAtA[:size])
  13981. }
  13982. func (m *WindowsContainerSecurityContext) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  13983. i := len(dAtA)
  13984. _ = i
  13985. var l int
  13986. _ = l
  13987. if m.HostProcess {
  13988. i--
  13989. if m.HostProcess {
  13990. dAtA[i] = 1
  13991. } else {
  13992. dAtA[i] = 0
  13993. }
  13994. i--
  13995. dAtA[i] = 0x18
  13996. }
  13997. if len(m.CredentialSpec) > 0 {
  13998. i -= len(m.CredentialSpec)
  13999. copy(dAtA[i:], m.CredentialSpec)
  14000. i = encodeVarintApi(dAtA, i, uint64(len(m.CredentialSpec)))
  14001. i--
  14002. dAtA[i] = 0x12
  14003. }
  14004. if len(m.RunAsUsername) > 0 {
  14005. i -= len(m.RunAsUsername)
  14006. copy(dAtA[i:], m.RunAsUsername)
  14007. i = encodeVarintApi(dAtA, i, uint64(len(m.RunAsUsername)))
  14008. i--
  14009. dAtA[i] = 0xa
  14010. }
  14011. return len(dAtA) - i, nil
  14012. }
  14013. func (m *WindowsContainerConfig) Marshal() (dAtA []byte, err error) {
  14014. size := m.Size()
  14015. dAtA = make([]byte, size)
  14016. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14017. if err != nil {
  14018. return nil, err
  14019. }
  14020. return dAtA[:n], nil
  14021. }
  14022. func (m *WindowsContainerConfig) MarshalTo(dAtA []byte) (int, error) {
  14023. size := m.Size()
  14024. return m.MarshalToSizedBuffer(dAtA[:size])
  14025. }
  14026. func (m *WindowsContainerConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14027. i := len(dAtA)
  14028. _ = i
  14029. var l int
  14030. _ = l
  14031. if m.SecurityContext != nil {
  14032. {
  14033. size, err := m.SecurityContext.MarshalToSizedBuffer(dAtA[:i])
  14034. if err != nil {
  14035. return 0, err
  14036. }
  14037. i -= size
  14038. i = encodeVarintApi(dAtA, i, uint64(size))
  14039. }
  14040. i--
  14041. dAtA[i] = 0x12
  14042. }
  14043. if m.Resources != nil {
  14044. {
  14045. size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i])
  14046. if err != nil {
  14047. return 0, err
  14048. }
  14049. i -= size
  14050. i = encodeVarintApi(dAtA, i, uint64(size))
  14051. }
  14052. i--
  14053. dAtA[i] = 0xa
  14054. }
  14055. return len(dAtA) - i, nil
  14056. }
  14057. func (m *WindowsContainerResources) Marshal() (dAtA []byte, err error) {
  14058. size := m.Size()
  14059. dAtA = make([]byte, size)
  14060. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14061. if err != nil {
  14062. return nil, err
  14063. }
  14064. return dAtA[:n], nil
  14065. }
  14066. func (m *WindowsContainerResources) MarshalTo(dAtA []byte) (int, error) {
  14067. size := m.Size()
  14068. return m.MarshalToSizedBuffer(dAtA[:size])
  14069. }
  14070. func (m *WindowsContainerResources) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14071. i := len(dAtA)
  14072. _ = i
  14073. var l int
  14074. _ = l
  14075. if m.RootfsSizeInBytes != 0 {
  14076. i = encodeVarintApi(dAtA, i, uint64(m.RootfsSizeInBytes))
  14077. i--
  14078. dAtA[i] = 0x28
  14079. }
  14080. if m.MemoryLimitInBytes != 0 {
  14081. i = encodeVarintApi(dAtA, i, uint64(m.MemoryLimitInBytes))
  14082. i--
  14083. dAtA[i] = 0x20
  14084. }
  14085. if m.CpuMaximum != 0 {
  14086. i = encodeVarintApi(dAtA, i, uint64(m.CpuMaximum))
  14087. i--
  14088. dAtA[i] = 0x18
  14089. }
  14090. if m.CpuCount != 0 {
  14091. i = encodeVarintApi(dAtA, i, uint64(m.CpuCount))
  14092. i--
  14093. dAtA[i] = 0x10
  14094. }
  14095. if m.CpuShares != 0 {
  14096. i = encodeVarintApi(dAtA, i, uint64(m.CpuShares))
  14097. i--
  14098. dAtA[i] = 0x8
  14099. }
  14100. return len(dAtA) - i, nil
  14101. }
  14102. func (m *ContainerMetadata) Marshal() (dAtA []byte, err error) {
  14103. size := m.Size()
  14104. dAtA = make([]byte, size)
  14105. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14106. if err != nil {
  14107. return nil, err
  14108. }
  14109. return dAtA[:n], nil
  14110. }
  14111. func (m *ContainerMetadata) MarshalTo(dAtA []byte) (int, error) {
  14112. size := m.Size()
  14113. return m.MarshalToSizedBuffer(dAtA[:size])
  14114. }
  14115. func (m *ContainerMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14116. i := len(dAtA)
  14117. _ = i
  14118. var l int
  14119. _ = l
  14120. if m.Attempt != 0 {
  14121. i = encodeVarintApi(dAtA, i, uint64(m.Attempt))
  14122. i--
  14123. dAtA[i] = 0x10
  14124. }
  14125. if len(m.Name) > 0 {
  14126. i -= len(m.Name)
  14127. copy(dAtA[i:], m.Name)
  14128. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  14129. i--
  14130. dAtA[i] = 0xa
  14131. }
  14132. return len(dAtA) - i, nil
  14133. }
  14134. func (m *Device) Marshal() (dAtA []byte, err error) {
  14135. size := m.Size()
  14136. dAtA = make([]byte, size)
  14137. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14138. if err != nil {
  14139. return nil, err
  14140. }
  14141. return dAtA[:n], nil
  14142. }
  14143. func (m *Device) MarshalTo(dAtA []byte) (int, error) {
  14144. size := m.Size()
  14145. return m.MarshalToSizedBuffer(dAtA[:size])
  14146. }
  14147. func (m *Device) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14148. i := len(dAtA)
  14149. _ = i
  14150. var l int
  14151. _ = l
  14152. if len(m.Permissions) > 0 {
  14153. i -= len(m.Permissions)
  14154. copy(dAtA[i:], m.Permissions)
  14155. i = encodeVarintApi(dAtA, i, uint64(len(m.Permissions)))
  14156. i--
  14157. dAtA[i] = 0x1a
  14158. }
  14159. if len(m.HostPath) > 0 {
  14160. i -= len(m.HostPath)
  14161. copy(dAtA[i:], m.HostPath)
  14162. i = encodeVarintApi(dAtA, i, uint64(len(m.HostPath)))
  14163. i--
  14164. dAtA[i] = 0x12
  14165. }
  14166. if len(m.ContainerPath) > 0 {
  14167. i -= len(m.ContainerPath)
  14168. copy(dAtA[i:], m.ContainerPath)
  14169. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerPath)))
  14170. i--
  14171. dAtA[i] = 0xa
  14172. }
  14173. return len(dAtA) - i, nil
  14174. }
  14175. func (m *CDIDevice) Marshal() (dAtA []byte, err error) {
  14176. size := m.Size()
  14177. dAtA = make([]byte, size)
  14178. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14179. if err != nil {
  14180. return nil, err
  14181. }
  14182. return dAtA[:n], nil
  14183. }
  14184. func (m *CDIDevice) MarshalTo(dAtA []byte) (int, error) {
  14185. size := m.Size()
  14186. return m.MarshalToSizedBuffer(dAtA[:size])
  14187. }
  14188. func (m *CDIDevice) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14189. i := len(dAtA)
  14190. _ = i
  14191. var l int
  14192. _ = l
  14193. if len(m.Name) > 0 {
  14194. i -= len(m.Name)
  14195. copy(dAtA[i:], m.Name)
  14196. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  14197. i--
  14198. dAtA[i] = 0xa
  14199. }
  14200. return len(dAtA) - i, nil
  14201. }
  14202. func (m *ContainerConfig) Marshal() (dAtA []byte, err error) {
  14203. size := m.Size()
  14204. dAtA = make([]byte, size)
  14205. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14206. if err != nil {
  14207. return nil, err
  14208. }
  14209. return dAtA[:n], nil
  14210. }
  14211. func (m *ContainerConfig) MarshalTo(dAtA []byte) (int, error) {
  14212. size := m.Size()
  14213. return m.MarshalToSizedBuffer(dAtA[:size])
  14214. }
  14215. func (m *ContainerConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14216. i := len(dAtA)
  14217. _ = i
  14218. var l int
  14219. _ = l
  14220. if len(m.CDIDevices) > 0 {
  14221. for iNdEx := len(m.CDIDevices) - 1; iNdEx >= 0; iNdEx-- {
  14222. {
  14223. size, err := m.CDIDevices[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  14224. if err != nil {
  14225. return 0, err
  14226. }
  14227. i -= size
  14228. i = encodeVarintApi(dAtA, i, uint64(size))
  14229. }
  14230. i--
  14231. dAtA[i] = 0x1
  14232. i--
  14233. dAtA[i] = 0x8a
  14234. }
  14235. }
  14236. if m.Windows != nil {
  14237. {
  14238. size, err := m.Windows.MarshalToSizedBuffer(dAtA[:i])
  14239. if err != nil {
  14240. return 0, err
  14241. }
  14242. i -= size
  14243. i = encodeVarintApi(dAtA, i, uint64(size))
  14244. }
  14245. i--
  14246. dAtA[i] = 0x1
  14247. i--
  14248. dAtA[i] = 0x82
  14249. }
  14250. if m.Linux != nil {
  14251. {
  14252. size, err := m.Linux.MarshalToSizedBuffer(dAtA[:i])
  14253. if err != nil {
  14254. return 0, err
  14255. }
  14256. i -= size
  14257. i = encodeVarintApi(dAtA, i, uint64(size))
  14258. }
  14259. i--
  14260. dAtA[i] = 0x7a
  14261. }
  14262. if m.Tty {
  14263. i--
  14264. if m.Tty {
  14265. dAtA[i] = 1
  14266. } else {
  14267. dAtA[i] = 0
  14268. }
  14269. i--
  14270. dAtA[i] = 0x70
  14271. }
  14272. if m.StdinOnce {
  14273. i--
  14274. if m.StdinOnce {
  14275. dAtA[i] = 1
  14276. } else {
  14277. dAtA[i] = 0
  14278. }
  14279. i--
  14280. dAtA[i] = 0x68
  14281. }
  14282. if m.Stdin {
  14283. i--
  14284. if m.Stdin {
  14285. dAtA[i] = 1
  14286. } else {
  14287. dAtA[i] = 0
  14288. }
  14289. i--
  14290. dAtA[i] = 0x60
  14291. }
  14292. if len(m.LogPath) > 0 {
  14293. i -= len(m.LogPath)
  14294. copy(dAtA[i:], m.LogPath)
  14295. i = encodeVarintApi(dAtA, i, uint64(len(m.LogPath)))
  14296. i--
  14297. dAtA[i] = 0x5a
  14298. }
  14299. if len(m.Annotations) > 0 {
  14300. for k := range m.Annotations {
  14301. v := m.Annotations[k]
  14302. baseI := i
  14303. i -= len(v)
  14304. copy(dAtA[i:], v)
  14305. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  14306. i--
  14307. dAtA[i] = 0x12
  14308. i -= len(k)
  14309. copy(dAtA[i:], k)
  14310. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  14311. i--
  14312. dAtA[i] = 0xa
  14313. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  14314. i--
  14315. dAtA[i] = 0x52
  14316. }
  14317. }
  14318. if len(m.Labels) > 0 {
  14319. for k := range m.Labels {
  14320. v := m.Labels[k]
  14321. baseI := i
  14322. i -= len(v)
  14323. copy(dAtA[i:], v)
  14324. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  14325. i--
  14326. dAtA[i] = 0x12
  14327. i -= len(k)
  14328. copy(dAtA[i:], k)
  14329. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  14330. i--
  14331. dAtA[i] = 0xa
  14332. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  14333. i--
  14334. dAtA[i] = 0x4a
  14335. }
  14336. }
  14337. if len(m.Devices) > 0 {
  14338. for iNdEx := len(m.Devices) - 1; iNdEx >= 0; iNdEx-- {
  14339. {
  14340. size, err := m.Devices[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  14341. if err != nil {
  14342. return 0, err
  14343. }
  14344. i -= size
  14345. i = encodeVarintApi(dAtA, i, uint64(size))
  14346. }
  14347. i--
  14348. dAtA[i] = 0x42
  14349. }
  14350. }
  14351. if len(m.Mounts) > 0 {
  14352. for iNdEx := len(m.Mounts) - 1; iNdEx >= 0; iNdEx-- {
  14353. {
  14354. size, err := m.Mounts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  14355. if err != nil {
  14356. return 0, err
  14357. }
  14358. i -= size
  14359. i = encodeVarintApi(dAtA, i, uint64(size))
  14360. }
  14361. i--
  14362. dAtA[i] = 0x3a
  14363. }
  14364. }
  14365. if len(m.Envs) > 0 {
  14366. for iNdEx := len(m.Envs) - 1; iNdEx >= 0; iNdEx-- {
  14367. {
  14368. size, err := m.Envs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  14369. if err != nil {
  14370. return 0, err
  14371. }
  14372. i -= size
  14373. i = encodeVarintApi(dAtA, i, uint64(size))
  14374. }
  14375. i--
  14376. dAtA[i] = 0x32
  14377. }
  14378. }
  14379. if len(m.WorkingDir) > 0 {
  14380. i -= len(m.WorkingDir)
  14381. copy(dAtA[i:], m.WorkingDir)
  14382. i = encodeVarintApi(dAtA, i, uint64(len(m.WorkingDir)))
  14383. i--
  14384. dAtA[i] = 0x2a
  14385. }
  14386. if len(m.Args) > 0 {
  14387. for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- {
  14388. i -= len(m.Args[iNdEx])
  14389. copy(dAtA[i:], m.Args[iNdEx])
  14390. i = encodeVarintApi(dAtA, i, uint64(len(m.Args[iNdEx])))
  14391. i--
  14392. dAtA[i] = 0x22
  14393. }
  14394. }
  14395. if len(m.Command) > 0 {
  14396. for iNdEx := len(m.Command) - 1; iNdEx >= 0; iNdEx-- {
  14397. i -= len(m.Command[iNdEx])
  14398. copy(dAtA[i:], m.Command[iNdEx])
  14399. i = encodeVarintApi(dAtA, i, uint64(len(m.Command[iNdEx])))
  14400. i--
  14401. dAtA[i] = 0x1a
  14402. }
  14403. }
  14404. if m.Image != nil {
  14405. {
  14406. size, err := m.Image.MarshalToSizedBuffer(dAtA[:i])
  14407. if err != nil {
  14408. return 0, err
  14409. }
  14410. i -= size
  14411. i = encodeVarintApi(dAtA, i, uint64(size))
  14412. }
  14413. i--
  14414. dAtA[i] = 0x12
  14415. }
  14416. if m.Metadata != nil {
  14417. {
  14418. size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i])
  14419. if err != nil {
  14420. return 0, err
  14421. }
  14422. i -= size
  14423. i = encodeVarintApi(dAtA, i, uint64(size))
  14424. }
  14425. i--
  14426. dAtA[i] = 0xa
  14427. }
  14428. return len(dAtA) - i, nil
  14429. }
  14430. func (m *CreateContainerRequest) Marshal() (dAtA []byte, err error) {
  14431. size := m.Size()
  14432. dAtA = make([]byte, size)
  14433. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14434. if err != nil {
  14435. return nil, err
  14436. }
  14437. return dAtA[:n], nil
  14438. }
  14439. func (m *CreateContainerRequest) MarshalTo(dAtA []byte) (int, error) {
  14440. size := m.Size()
  14441. return m.MarshalToSizedBuffer(dAtA[:size])
  14442. }
  14443. func (m *CreateContainerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14444. i := len(dAtA)
  14445. _ = i
  14446. var l int
  14447. _ = l
  14448. if m.SandboxConfig != nil {
  14449. {
  14450. size, err := m.SandboxConfig.MarshalToSizedBuffer(dAtA[:i])
  14451. if err != nil {
  14452. return 0, err
  14453. }
  14454. i -= size
  14455. i = encodeVarintApi(dAtA, i, uint64(size))
  14456. }
  14457. i--
  14458. dAtA[i] = 0x1a
  14459. }
  14460. if m.Config != nil {
  14461. {
  14462. size, err := m.Config.MarshalToSizedBuffer(dAtA[:i])
  14463. if err != nil {
  14464. return 0, err
  14465. }
  14466. i -= size
  14467. i = encodeVarintApi(dAtA, i, uint64(size))
  14468. }
  14469. i--
  14470. dAtA[i] = 0x12
  14471. }
  14472. if len(m.PodSandboxId) > 0 {
  14473. i -= len(m.PodSandboxId)
  14474. copy(dAtA[i:], m.PodSandboxId)
  14475. i = encodeVarintApi(dAtA, i, uint64(len(m.PodSandboxId)))
  14476. i--
  14477. dAtA[i] = 0xa
  14478. }
  14479. return len(dAtA) - i, nil
  14480. }
  14481. func (m *CreateContainerResponse) Marshal() (dAtA []byte, err error) {
  14482. size := m.Size()
  14483. dAtA = make([]byte, size)
  14484. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14485. if err != nil {
  14486. return nil, err
  14487. }
  14488. return dAtA[:n], nil
  14489. }
  14490. func (m *CreateContainerResponse) MarshalTo(dAtA []byte) (int, error) {
  14491. size := m.Size()
  14492. return m.MarshalToSizedBuffer(dAtA[:size])
  14493. }
  14494. func (m *CreateContainerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14495. i := len(dAtA)
  14496. _ = i
  14497. var l int
  14498. _ = l
  14499. if len(m.ContainerId) > 0 {
  14500. i -= len(m.ContainerId)
  14501. copy(dAtA[i:], m.ContainerId)
  14502. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerId)))
  14503. i--
  14504. dAtA[i] = 0xa
  14505. }
  14506. return len(dAtA) - i, nil
  14507. }
  14508. func (m *StartContainerRequest) Marshal() (dAtA []byte, err error) {
  14509. size := m.Size()
  14510. dAtA = make([]byte, size)
  14511. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14512. if err != nil {
  14513. return nil, err
  14514. }
  14515. return dAtA[:n], nil
  14516. }
  14517. func (m *StartContainerRequest) MarshalTo(dAtA []byte) (int, error) {
  14518. size := m.Size()
  14519. return m.MarshalToSizedBuffer(dAtA[:size])
  14520. }
  14521. func (m *StartContainerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14522. i := len(dAtA)
  14523. _ = i
  14524. var l int
  14525. _ = l
  14526. if len(m.ContainerId) > 0 {
  14527. i -= len(m.ContainerId)
  14528. copy(dAtA[i:], m.ContainerId)
  14529. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerId)))
  14530. i--
  14531. dAtA[i] = 0xa
  14532. }
  14533. return len(dAtA) - i, nil
  14534. }
  14535. func (m *StartContainerResponse) Marshal() (dAtA []byte, err error) {
  14536. size := m.Size()
  14537. dAtA = make([]byte, size)
  14538. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14539. if err != nil {
  14540. return nil, err
  14541. }
  14542. return dAtA[:n], nil
  14543. }
  14544. func (m *StartContainerResponse) MarshalTo(dAtA []byte) (int, error) {
  14545. size := m.Size()
  14546. return m.MarshalToSizedBuffer(dAtA[:size])
  14547. }
  14548. func (m *StartContainerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14549. i := len(dAtA)
  14550. _ = i
  14551. var l int
  14552. _ = l
  14553. return len(dAtA) - i, nil
  14554. }
  14555. func (m *StopContainerRequest) Marshal() (dAtA []byte, err error) {
  14556. size := m.Size()
  14557. dAtA = make([]byte, size)
  14558. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14559. if err != nil {
  14560. return nil, err
  14561. }
  14562. return dAtA[:n], nil
  14563. }
  14564. func (m *StopContainerRequest) MarshalTo(dAtA []byte) (int, error) {
  14565. size := m.Size()
  14566. return m.MarshalToSizedBuffer(dAtA[:size])
  14567. }
  14568. func (m *StopContainerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14569. i := len(dAtA)
  14570. _ = i
  14571. var l int
  14572. _ = l
  14573. if m.Timeout != 0 {
  14574. i = encodeVarintApi(dAtA, i, uint64(m.Timeout))
  14575. i--
  14576. dAtA[i] = 0x10
  14577. }
  14578. if len(m.ContainerId) > 0 {
  14579. i -= len(m.ContainerId)
  14580. copy(dAtA[i:], m.ContainerId)
  14581. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerId)))
  14582. i--
  14583. dAtA[i] = 0xa
  14584. }
  14585. return len(dAtA) - i, nil
  14586. }
  14587. func (m *StopContainerResponse) Marshal() (dAtA []byte, err error) {
  14588. size := m.Size()
  14589. dAtA = make([]byte, size)
  14590. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14591. if err != nil {
  14592. return nil, err
  14593. }
  14594. return dAtA[:n], nil
  14595. }
  14596. func (m *StopContainerResponse) MarshalTo(dAtA []byte) (int, error) {
  14597. size := m.Size()
  14598. return m.MarshalToSizedBuffer(dAtA[:size])
  14599. }
  14600. func (m *StopContainerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14601. i := len(dAtA)
  14602. _ = i
  14603. var l int
  14604. _ = l
  14605. return len(dAtA) - i, nil
  14606. }
  14607. func (m *RemoveContainerRequest) Marshal() (dAtA []byte, err error) {
  14608. size := m.Size()
  14609. dAtA = make([]byte, size)
  14610. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14611. if err != nil {
  14612. return nil, err
  14613. }
  14614. return dAtA[:n], nil
  14615. }
  14616. func (m *RemoveContainerRequest) MarshalTo(dAtA []byte) (int, error) {
  14617. size := m.Size()
  14618. return m.MarshalToSizedBuffer(dAtA[:size])
  14619. }
  14620. func (m *RemoveContainerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14621. i := len(dAtA)
  14622. _ = i
  14623. var l int
  14624. _ = l
  14625. if len(m.ContainerId) > 0 {
  14626. i -= len(m.ContainerId)
  14627. copy(dAtA[i:], m.ContainerId)
  14628. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerId)))
  14629. i--
  14630. dAtA[i] = 0xa
  14631. }
  14632. return len(dAtA) - i, nil
  14633. }
  14634. func (m *RemoveContainerResponse) Marshal() (dAtA []byte, err error) {
  14635. size := m.Size()
  14636. dAtA = make([]byte, size)
  14637. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14638. if err != nil {
  14639. return nil, err
  14640. }
  14641. return dAtA[:n], nil
  14642. }
  14643. func (m *RemoveContainerResponse) MarshalTo(dAtA []byte) (int, error) {
  14644. size := m.Size()
  14645. return m.MarshalToSizedBuffer(dAtA[:size])
  14646. }
  14647. func (m *RemoveContainerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14648. i := len(dAtA)
  14649. _ = i
  14650. var l int
  14651. _ = l
  14652. return len(dAtA) - i, nil
  14653. }
  14654. func (m *ContainerStateValue) Marshal() (dAtA []byte, err error) {
  14655. size := m.Size()
  14656. dAtA = make([]byte, size)
  14657. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14658. if err != nil {
  14659. return nil, err
  14660. }
  14661. return dAtA[:n], nil
  14662. }
  14663. func (m *ContainerStateValue) MarshalTo(dAtA []byte) (int, error) {
  14664. size := m.Size()
  14665. return m.MarshalToSizedBuffer(dAtA[:size])
  14666. }
  14667. func (m *ContainerStateValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14668. i := len(dAtA)
  14669. _ = i
  14670. var l int
  14671. _ = l
  14672. if m.State != 0 {
  14673. i = encodeVarintApi(dAtA, i, uint64(m.State))
  14674. i--
  14675. dAtA[i] = 0x8
  14676. }
  14677. return len(dAtA) - i, nil
  14678. }
  14679. func (m *ContainerFilter) Marshal() (dAtA []byte, err error) {
  14680. size := m.Size()
  14681. dAtA = make([]byte, size)
  14682. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14683. if err != nil {
  14684. return nil, err
  14685. }
  14686. return dAtA[:n], nil
  14687. }
  14688. func (m *ContainerFilter) MarshalTo(dAtA []byte) (int, error) {
  14689. size := m.Size()
  14690. return m.MarshalToSizedBuffer(dAtA[:size])
  14691. }
  14692. func (m *ContainerFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14693. i := len(dAtA)
  14694. _ = i
  14695. var l int
  14696. _ = l
  14697. if len(m.LabelSelector) > 0 {
  14698. for k := range m.LabelSelector {
  14699. v := m.LabelSelector[k]
  14700. baseI := i
  14701. i -= len(v)
  14702. copy(dAtA[i:], v)
  14703. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  14704. i--
  14705. dAtA[i] = 0x12
  14706. i -= len(k)
  14707. copy(dAtA[i:], k)
  14708. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  14709. i--
  14710. dAtA[i] = 0xa
  14711. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  14712. i--
  14713. dAtA[i] = 0x22
  14714. }
  14715. }
  14716. if len(m.PodSandboxId) > 0 {
  14717. i -= len(m.PodSandboxId)
  14718. copy(dAtA[i:], m.PodSandboxId)
  14719. i = encodeVarintApi(dAtA, i, uint64(len(m.PodSandboxId)))
  14720. i--
  14721. dAtA[i] = 0x1a
  14722. }
  14723. if m.State != nil {
  14724. {
  14725. size, err := m.State.MarshalToSizedBuffer(dAtA[:i])
  14726. if err != nil {
  14727. return 0, err
  14728. }
  14729. i -= size
  14730. i = encodeVarintApi(dAtA, i, uint64(size))
  14731. }
  14732. i--
  14733. dAtA[i] = 0x12
  14734. }
  14735. if len(m.Id) > 0 {
  14736. i -= len(m.Id)
  14737. copy(dAtA[i:], m.Id)
  14738. i = encodeVarintApi(dAtA, i, uint64(len(m.Id)))
  14739. i--
  14740. dAtA[i] = 0xa
  14741. }
  14742. return len(dAtA) - i, nil
  14743. }
  14744. func (m *ListContainersRequest) Marshal() (dAtA []byte, err error) {
  14745. size := m.Size()
  14746. dAtA = make([]byte, size)
  14747. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14748. if err != nil {
  14749. return nil, err
  14750. }
  14751. return dAtA[:n], nil
  14752. }
  14753. func (m *ListContainersRequest) MarshalTo(dAtA []byte) (int, error) {
  14754. size := m.Size()
  14755. return m.MarshalToSizedBuffer(dAtA[:size])
  14756. }
  14757. func (m *ListContainersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14758. i := len(dAtA)
  14759. _ = i
  14760. var l int
  14761. _ = l
  14762. if m.Filter != nil {
  14763. {
  14764. size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i])
  14765. if err != nil {
  14766. return 0, err
  14767. }
  14768. i -= size
  14769. i = encodeVarintApi(dAtA, i, uint64(size))
  14770. }
  14771. i--
  14772. dAtA[i] = 0xa
  14773. }
  14774. return len(dAtA) - i, nil
  14775. }
  14776. func (m *Container) Marshal() (dAtA []byte, err error) {
  14777. size := m.Size()
  14778. dAtA = make([]byte, size)
  14779. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14780. if err != nil {
  14781. return nil, err
  14782. }
  14783. return dAtA[:n], nil
  14784. }
  14785. func (m *Container) MarshalTo(dAtA []byte) (int, error) {
  14786. size := m.Size()
  14787. return m.MarshalToSizedBuffer(dAtA[:size])
  14788. }
  14789. func (m *Container) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14790. i := len(dAtA)
  14791. _ = i
  14792. var l int
  14793. _ = l
  14794. if len(m.Annotations) > 0 {
  14795. for k := range m.Annotations {
  14796. v := m.Annotations[k]
  14797. baseI := i
  14798. i -= len(v)
  14799. copy(dAtA[i:], v)
  14800. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  14801. i--
  14802. dAtA[i] = 0x12
  14803. i -= len(k)
  14804. copy(dAtA[i:], k)
  14805. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  14806. i--
  14807. dAtA[i] = 0xa
  14808. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  14809. i--
  14810. dAtA[i] = 0x4a
  14811. }
  14812. }
  14813. if len(m.Labels) > 0 {
  14814. for k := range m.Labels {
  14815. v := m.Labels[k]
  14816. baseI := i
  14817. i -= len(v)
  14818. copy(dAtA[i:], v)
  14819. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  14820. i--
  14821. dAtA[i] = 0x12
  14822. i -= len(k)
  14823. copy(dAtA[i:], k)
  14824. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  14825. i--
  14826. dAtA[i] = 0xa
  14827. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  14828. i--
  14829. dAtA[i] = 0x42
  14830. }
  14831. }
  14832. if m.CreatedAt != 0 {
  14833. i = encodeVarintApi(dAtA, i, uint64(m.CreatedAt))
  14834. i--
  14835. dAtA[i] = 0x38
  14836. }
  14837. if m.State != 0 {
  14838. i = encodeVarintApi(dAtA, i, uint64(m.State))
  14839. i--
  14840. dAtA[i] = 0x30
  14841. }
  14842. if len(m.ImageRef) > 0 {
  14843. i -= len(m.ImageRef)
  14844. copy(dAtA[i:], m.ImageRef)
  14845. i = encodeVarintApi(dAtA, i, uint64(len(m.ImageRef)))
  14846. i--
  14847. dAtA[i] = 0x2a
  14848. }
  14849. if m.Image != nil {
  14850. {
  14851. size, err := m.Image.MarshalToSizedBuffer(dAtA[:i])
  14852. if err != nil {
  14853. return 0, err
  14854. }
  14855. i -= size
  14856. i = encodeVarintApi(dAtA, i, uint64(size))
  14857. }
  14858. i--
  14859. dAtA[i] = 0x22
  14860. }
  14861. if m.Metadata != nil {
  14862. {
  14863. size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i])
  14864. if err != nil {
  14865. return 0, err
  14866. }
  14867. i -= size
  14868. i = encodeVarintApi(dAtA, i, uint64(size))
  14869. }
  14870. i--
  14871. dAtA[i] = 0x1a
  14872. }
  14873. if len(m.PodSandboxId) > 0 {
  14874. i -= len(m.PodSandboxId)
  14875. copy(dAtA[i:], m.PodSandboxId)
  14876. i = encodeVarintApi(dAtA, i, uint64(len(m.PodSandboxId)))
  14877. i--
  14878. dAtA[i] = 0x12
  14879. }
  14880. if len(m.Id) > 0 {
  14881. i -= len(m.Id)
  14882. copy(dAtA[i:], m.Id)
  14883. i = encodeVarintApi(dAtA, i, uint64(len(m.Id)))
  14884. i--
  14885. dAtA[i] = 0xa
  14886. }
  14887. return len(dAtA) - i, nil
  14888. }
  14889. func (m *ListContainersResponse) Marshal() (dAtA []byte, err error) {
  14890. size := m.Size()
  14891. dAtA = make([]byte, size)
  14892. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14893. if err != nil {
  14894. return nil, err
  14895. }
  14896. return dAtA[:n], nil
  14897. }
  14898. func (m *ListContainersResponse) MarshalTo(dAtA []byte) (int, error) {
  14899. size := m.Size()
  14900. return m.MarshalToSizedBuffer(dAtA[:size])
  14901. }
  14902. func (m *ListContainersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14903. i := len(dAtA)
  14904. _ = i
  14905. var l int
  14906. _ = l
  14907. if len(m.Containers) > 0 {
  14908. for iNdEx := len(m.Containers) - 1; iNdEx >= 0; iNdEx-- {
  14909. {
  14910. size, err := m.Containers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  14911. if err != nil {
  14912. return 0, err
  14913. }
  14914. i -= size
  14915. i = encodeVarintApi(dAtA, i, uint64(size))
  14916. }
  14917. i--
  14918. dAtA[i] = 0xa
  14919. }
  14920. }
  14921. return len(dAtA) - i, nil
  14922. }
  14923. func (m *ContainerStatusRequest) Marshal() (dAtA []byte, err error) {
  14924. size := m.Size()
  14925. dAtA = make([]byte, size)
  14926. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14927. if err != nil {
  14928. return nil, err
  14929. }
  14930. return dAtA[:n], nil
  14931. }
  14932. func (m *ContainerStatusRequest) MarshalTo(dAtA []byte) (int, error) {
  14933. size := m.Size()
  14934. return m.MarshalToSizedBuffer(dAtA[:size])
  14935. }
  14936. func (m *ContainerStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14937. i := len(dAtA)
  14938. _ = i
  14939. var l int
  14940. _ = l
  14941. if m.Verbose {
  14942. i--
  14943. if m.Verbose {
  14944. dAtA[i] = 1
  14945. } else {
  14946. dAtA[i] = 0
  14947. }
  14948. i--
  14949. dAtA[i] = 0x10
  14950. }
  14951. if len(m.ContainerId) > 0 {
  14952. i -= len(m.ContainerId)
  14953. copy(dAtA[i:], m.ContainerId)
  14954. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerId)))
  14955. i--
  14956. dAtA[i] = 0xa
  14957. }
  14958. return len(dAtA) - i, nil
  14959. }
  14960. func (m *ContainerStatus) Marshal() (dAtA []byte, err error) {
  14961. size := m.Size()
  14962. dAtA = make([]byte, size)
  14963. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  14964. if err != nil {
  14965. return nil, err
  14966. }
  14967. return dAtA[:n], nil
  14968. }
  14969. func (m *ContainerStatus) MarshalTo(dAtA []byte) (int, error) {
  14970. size := m.Size()
  14971. return m.MarshalToSizedBuffer(dAtA[:size])
  14972. }
  14973. func (m *ContainerStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  14974. i := len(dAtA)
  14975. _ = i
  14976. var l int
  14977. _ = l
  14978. if m.Resources != nil {
  14979. {
  14980. size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i])
  14981. if err != nil {
  14982. return 0, err
  14983. }
  14984. i -= size
  14985. i = encodeVarintApi(dAtA, i, uint64(size))
  14986. }
  14987. i--
  14988. dAtA[i] = 0x1
  14989. i--
  14990. dAtA[i] = 0x82
  14991. }
  14992. if len(m.LogPath) > 0 {
  14993. i -= len(m.LogPath)
  14994. copy(dAtA[i:], m.LogPath)
  14995. i = encodeVarintApi(dAtA, i, uint64(len(m.LogPath)))
  14996. i--
  14997. dAtA[i] = 0x7a
  14998. }
  14999. if len(m.Mounts) > 0 {
  15000. for iNdEx := len(m.Mounts) - 1; iNdEx >= 0; iNdEx-- {
  15001. {
  15002. size, err := m.Mounts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  15003. if err != nil {
  15004. return 0, err
  15005. }
  15006. i -= size
  15007. i = encodeVarintApi(dAtA, i, uint64(size))
  15008. }
  15009. i--
  15010. dAtA[i] = 0x72
  15011. }
  15012. }
  15013. if len(m.Annotations) > 0 {
  15014. for k := range m.Annotations {
  15015. v := m.Annotations[k]
  15016. baseI := i
  15017. i -= len(v)
  15018. copy(dAtA[i:], v)
  15019. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  15020. i--
  15021. dAtA[i] = 0x12
  15022. i -= len(k)
  15023. copy(dAtA[i:], k)
  15024. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  15025. i--
  15026. dAtA[i] = 0xa
  15027. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  15028. i--
  15029. dAtA[i] = 0x6a
  15030. }
  15031. }
  15032. if len(m.Labels) > 0 {
  15033. for k := range m.Labels {
  15034. v := m.Labels[k]
  15035. baseI := i
  15036. i -= len(v)
  15037. copy(dAtA[i:], v)
  15038. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  15039. i--
  15040. dAtA[i] = 0x12
  15041. i -= len(k)
  15042. copy(dAtA[i:], k)
  15043. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  15044. i--
  15045. dAtA[i] = 0xa
  15046. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  15047. i--
  15048. dAtA[i] = 0x62
  15049. }
  15050. }
  15051. if len(m.Message) > 0 {
  15052. i -= len(m.Message)
  15053. copy(dAtA[i:], m.Message)
  15054. i = encodeVarintApi(dAtA, i, uint64(len(m.Message)))
  15055. i--
  15056. dAtA[i] = 0x5a
  15057. }
  15058. if len(m.Reason) > 0 {
  15059. i -= len(m.Reason)
  15060. copy(dAtA[i:], m.Reason)
  15061. i = encodeVarintApi(dAtA, i, uint64(len(m.Reason)))
  15062. i--
  15063. dAtA[i] = 0x52
  15064. }
  15065. if len(m.ImageRef) > 0 {
  15066. i -= len(m.ImageRef)
  15067. copy(dAtA[i:], m.ImageRef)
  15068. i = encodeVarintApi(dAtA, i, uint64(len(m.ImageRef)))
  15069. i--
  15070. dAtA[i] = 0x4a
  15071. }
  15072. if m.Image != nil {
  15073. {
  15074. size, err := m.Image.MarshalToSizedBuffer(dAtA[:i])
  15075. if err != nil {
  15076. return 0, err
  15077. }
  15078. i -= size
  15079. i = encodeVarintApi(dAtA, i, uint64(size))
  15080. }
  15081. i--
  15082. dAtA[i] = 0x42
  15083. }
  15084. if m.ExitCode != 0 {
  15085. i = encodeVarintApi(dAtA, i, uint64(m.ExitCode))
  15086. i--
  15087. dAtA[i] = 0x38
  15088. }
  15089. if m.FinishedAt != 0 {
  15090. i = encodeVarintApi(dAtA, i, uint64(m.FinishedAt))
  15091. i--
  15092. dAtA[i] = 0x30
  15093. }
  15094. if m.StartedAt != 0 {
  15095. i = encodeVarintApi(dAtA, i, uint64(m.StartedAt))
  15096. i--
  15097. dAtA[i] = 0x28
  15098. }
  15099. if m.CreatedAt != 0 {
  15100. i = encodeVarintApi(dAtA, i, uint64(m.CreatedAt))
  15101. i--
  15102. dAtA[i] = 0x20
  15103. }
  15104. if m.State != 0 {
  15105. i = encodeVarintApi(dAtA, i, uint64(m.State))
  15106. i--
  15107. dAtA[i] = 0x18
  15108. }
  15109. if m.Metadata != nil {
  15110. {
  15111. size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i])
  15112. if err != nil {
  15113. return 0, err
  15114. }
  15115. i -= size
  15116. i = encodeVarintApi(dAtA, i, uint64(size))
  15117. }
  15118. i--
  15119. dAtA[i] = 0x12
  15120. }
  15121. if len(m.Id) > 0 {
  15122. i -= len(m.Id)
  15123. copy(dAtA[i:], m.Id)
  15124. i = encodeVarintApi(dAtA, i, uint64(len(m.Id)))
  15125. i--
  15126. dAtA[i] = 0xa
  15127. }
  15128. return len(dAtA) - i, nil
  15129. }
  15130. func (m *ContainerStatusResponse) Marshal() (dAtA []byte, err error) {
  15131. size := m.Size()
  15132. dAtA = make([]byte, size)
  15133. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15134. if err != nil {
  15135. return nil, err
  15136. }
  15137. return dAtA[:n], nil
  15138. }
  15139. func (m *ContainerStatusResponse) MarshalTo(dAtA []byte) (int, error) {
  15140. size := m.Size()
  15141. return m.MarshalToSizedBuffer(dAtA[:size])
  15142. }
  15143. func (m *ContainerStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15144. i := len(dAtA)
  15145. _ = i
  15146. var l int
  15147. _ = l
  15148. if len(m.Info) > 0 {
  15149. for k := range m.Info {
  15150. v := m.Info[k]
  15151. baseI := i
  15152. i -= len(v)
  15153. copy(dAtA[i:], v)
  15154. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  15155. i--
  15156. dAtA[i] = 0x12
  15157. i -= len(k)
  15158. copy(dAtA[i:], k)
  15159. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  15160. i--
  15161. dAtA[i] = 0xa
  15162. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  15163. i--
  15164. dAtA[i] = 0x12
  15165. }
  15166. }
  15167. if m.Status != nil {
  15168. {
  15169. size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  15170. if err != nil {
  15171. return 0, err
  15172. }
  15173. i -= size
  15174. i = encodeVarintApi(dAtA, i, uint64(size))
  15175. }
  15176. i--
  15177. dAtA[i] = 0xa
  15178. }
  15179. return len(dAtA) - i, nil
  15180. }
  15181. func (m *ContainerResources) Marshal() (dAtA []byte, err error) {
  15182. size := m.Size()
  15183. dAtA = make([]byte, size)
  15184. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15185. if err != nil {
  15186. return nil, err
  15187. }
  15188. return dAtA[:n], nil
  15189. }
  15190. func (m *ContainerResources) MarshalTo(dAtA []byte) (int, error) {
  15191. size := m.Size()
  15192. return m.MarshalToSizedBuffer(dAtA[:size])
  15193. }
  15194. func (m *ContainerResources) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15195. i := len(dAtA)
  15196. _ = i
  15197. var l int
  15198. _ = l
  15199. if m.Windows != nil {
  15200. {
  15201. size, err := m.Windows.MarshalToSizedBuffer(dAtA[:i])
  15202. if err != nil {
  15203. return 0, err
  15204. }
  15205. i -= size
  15206. i = encodeVarintApi(dAtA, i, uint64(size))
  15207. }
  15208. i--
  15209. dAtA[i] = 0x12
  15210. }
  15211. if m.Linux != nil {
  15212. {
  15213. size, err := m.Linux.MarshalToSizedBuffer(dAtA[:i])
  15214. if err != nil {
  15215. return 0, err
  15216. }
  15217. i -= size
  15218. i = encodeVarintApi(dAtA, i, uint64(size))
  15219. }
  15220. i--
  15221. dAtA[i] = 0xa
  15222. }
  15223. return len(dAtA) - i, nil
  15224. }
  15225. func (m *UpdateContainerResourcesRequest) Marshal() (dAtA []byte, err error) {
  15226. size := m.Size()
  15227. dAtA = make([]byte, size)
  15228. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15229. if err != nil {
  15230. return nil, err
  15231. }
  15232. return dAtA[:n], nil
  15233. }
  15234. func (m *UpdateContainerResourcesRequest) MarshalTo(dAtA []byte) (int, error) {
  15235. size := m.Size()
  15236. return m.MarshalToSizedBuffer(dAtA[:size])
  15237. }
  15238. func (m *UpdateContainerResourcesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15239. i := len(dAtA)
  15240. _ = i
  15241. var l int
  15242. _ = l
  15243. if len(m.Annotations) > 0 {
  15244. for k := range m.Annotations {
  15245. v := m.Annotations[k]
  15246. baseI := i
  15247. i -= len(v)
  15248. copy(dAtA[i:], v)
  15249. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  15250. i--
  15251. dAtA[i] = 0x12
  15252. i -= len(k)
  15253. copy(dAtA[i:], k)
  15254. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  15255. i--
  15256. dAtA[i] = 0xa
  15257. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  15258. i--
  15259. dAtA[i] = 0x22
  15260. }
  15261. }
  15262. if m.Windows != nil {
  15263. {
  15264. size, err := m.Windows.MarshalToSizedBuffer(dAtA[:i])
  15265. if err != nil {
  15266. return 0, err
  15267. }
  15268. i -= size
  15269. i = encodeVarintApi(dAtA, i, uint64(size))
  15270. }
  15271. i--
  15272. dAtA[i] = 0x1a
  15273. }
  15274. if m.Linux != nil {
  15275. {
  15276. size, err := m.Linux.MarshalToSizedBuffer(dAtA[:i])
  15277. if err != nil {
  15278. return 0, err
  15279. }
  15280. i -= size
  15281. i = encodeVarintApi(dAtA, i, uint64(size))
  15282. }
  15283. i--
  15284. dAtA[i] = 0x12
  15285. }
  15286. if len(m.ContainerId) > 0 {
  15287. i -= len(m.ContainerId)
  15288. copy(dAtA[i:], m.ContainerId)
  15289. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerId)))
  15290. i--
  15291. dAtA[i] = 0xa
  15292. }
  15293. return len(dAtA) - i, nil
  15294. }
  15295. func (m *UpdateContainerResourcesResponse) Marshal() (dAtA []byte, err error) {
  15296. size := m.Size()
  15297. dAtA = make([]byte, size)
  15298. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15299. if err != nil {
  15300. return nil, err
  15301. }
  15302. return dAtA[:n], nil
  15303. }
  15304. func (m *UpdateContainerResourcesResponse) MarshalTo(dAtA []byte) (int, error) {
  15305. size := m.Size()
  15306. return m.MarshalToSizedBuffer(dAtA[:size])
  15307. }
  15308. func (m *UpdateContainerResourcesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15309. i := len(dAtA)
  15310. _ = i
  15311. var l int
  15312. _ = l
  15313. return len(dAtA) - i, nil
  15314. }
  15315. func (m *ExecSyncRequest) Marshal() (dAtA []byte, err error) {
  15316. size := m.Size()
  15317. dAtA = make([]byte, size)
  15318. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15319. if err != nil {
  15320. return nil, err
  15321. }
  15322. return dAtA[:n], nil
  15323. }
  15324. func (m *ExecSyncRequest) MarshalTo(dAtA []byte) (int, error) {
  15325. size := m.Size()
  15326. return m.MarshalToSizedBuffer(dAtA[:size])
  15327. }
  15328. func (m *ExecSyncRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15329. i := len(dAtA)
  15330. _ = i
  15331. var l int
  15332. _ = l
  15333. if m.Timeout != 0 {
  15334. i = encodeVarintApi(dAtA, i, uint64(m.Timeout))
  15335. i--
  15336. dAtA[i] = 0x18
  15337. }
  15338. if len(m.Cmd) > 0 {
  15339. for iNdEx := len(m.Cmd) - 1; iNdEx >= 0; iNdEx-- {
  15340. i -= len(m.Cmd[iNdEx])
  15341. copy(dAtA[i:], m.Cmd[iNdEx])
  15342. i = encodeVarintApi(dAtA, i, uint64(len(m.Cmd[iNdEx])))
  15343. i--
  15344. dAtA[i] = 0x12
  15345. }
  15346. }
  15347. if len(m.ContainerId) > 0 {
  15348. i -= len(m.ContainerId)
  15349. copy(dAtA[i:], m.ContainerId)
  15350. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerId)))
  15351. i--
  15352. dAtA[i] = 0xa
  15353. }
  15354. return len(dAtA) - i, nil
  15355. }
  15356. func (m *ExecSyncResponse) Marshal() (dAtA []byte, err error) {
  15357. size := m.Size()
  15358. dAtA = make([]byte, size)
  15359. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15360. if err != nil {
  15361. return nil, err
  15362. }
  15363. return dAtA[:n], nil
  15364. }
  15365. func (m *ExecSyncResponse) MarshalTo(dAtA []byte) (int, error) {
  15366. size := m.Size()
  15367. return m.MarshalToSizedBuffer(dAtA[:size])
  15368. }
  15369. func (m *ExecSyncResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15370. i := len(dAtA)
  15371. _ = i
  15372. var l int
  15373. _ = l
  15374. if m.ExitCode != 0 {
  15375. i = encodeVarintApi(dAtA, i, uint64(m.ExitCode))
  15376. i--
  15377. dAtA[i] = 0x18
  15378. }
  15379. if len(m.Stderr) > 0 {
  15380. i -= len(m.Stderr)
  15381. copy(dAtA[i:], m.Stderr)
  15382. i = encodeVarintApi(dAtA, i, uint64(len(m.Stderr)))
  15383. i--
  15384. dAtA[i] = 0x12
  15385. }
  15386. if len(m.Stdout) > 0 {
  15387. i -= len(m.Stdout)
  15388. copy(dAtA[i:], m.Stdout)
  15389. i = encodeVarintApi(dAtA, i, uint64(len(m.Stdout)))
  15390. i--
  15391. dAtA[i] = 0xa
  15392. }
  15393. return len(dAtA) - i, nil
  15394. }
  15395. func (m *ExecRequest) Marshal() (dAtA []byte, err error) {
  15396. size := m.Size()
  15397. dAtA = make([]byte, size)
  15398. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15399. if err != nil {
  15400. return nil, err
  15401. }
  15402. return dAtA[:n], nil
  15403. }
  15404. func (m *ExecRequest) MarshalTo(dAtA []byte) (int, error) {
  15405. size := m.Size()
  15406. return m.MarshalToSizedBuffer(dAtA[:size])
  15407. }
  15408. func (m *ExecRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15409. i := len(dAtA)
  15410. _ = i
  15411. var l int
  15412. _ = l
  15413. if m.Stderr {
  15414. i--
  15415. if m.Stderr {
  15416. dAtA[i] = 1
  15417. } else {
  15418. dAtA[i] = 0
  15419. }
  15420. i--
  15421. dAtA[i] = 0x30
  15422. }
  15423. if m.Stdout {
  15424. i--
  15425. if m.Stdout {
  15426. dAtA[i] = 1
  15427. } else {
  15428. dAtA[i] = 0
  15429. }
  15430. i--
  15431. dAtA[i] = 0x28
  15432. }
  15433. if m.Stdin {
  15434. i--
  15435. if m.Stdin {
  15436. dAtA[i] = 1
  15437. } else {
  15438. dAtA[i] = 0
  15439. }
  15440. i--
  15441. dAtA[i] = 0x20
  15442. }
  15443. if m.Tty {
  15444. i--
  15445. if m.Tty {
  15446. dAtA[i] = 1
  15447. } else {
  15448. dAtA[i] = 0
  15449. }
  15450. i--
  15451. dAtA[i] = 0x18
  15452. }
  15453. if len(m.Cmd) > 0 {
  15454. for iNdEx := len(m.Cmd) - 1; iNdEx >= 0; iNdEx-- {
  15455. i -= len(m.Cmd[iNdEx])
  15456. copy(dAtA[i:], m.Cmd[iNdEx])
  15457. i = encodeVarintApi(dAtA, i, uint64(len(m.Cmd[iNdEx])))
  15458. i--
  15459. dAtA[i] = 0x12
  15460. }
  15461. }
  15462. if len(m.ContainerId) > 0 {
  15463. i -= len(m.ContainerId)
  15464. copy(dAtA[i:], m.ContainerId)
  15465. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerId)))
  15466. i--
  15467. dAtA[i] = 0xa
  15468. }
  15469. return len(dAtA) - i, nil
  15470. }
  15471. func (m *ExecResponse) Marshal() (dAtA []byte, err error) {
  15472. size := m.Size()
  15473. dAtA = make([]byte, size)
  15474. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15475. if err != nil {
  15476. return nil, err
  15477. }
  15478. return dAtA[:n], nil
  15479. }
  15480. func (m *ExecResponse) MarshalTo(dAtA []byte) (int, error) {
  15481. size := m.Size()
  15482. return m.MarshalToSizedBuffer(dAtA[:size])
  15483. }
  15484. func (m *ExecResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15485. i := len(dAtA)
  15486. _ = i
  15487. var l int
  15488. _ = l
  15489. if len(m.Url) > 0 {
  15490. i -= len(m.Url)
  15491. copy(dAtA[i:], m.Url)
  15492. i = encodeVarintApi(dAtA, i, uint64(len(m.Url)))
  15493. i--
  15494. dAtA[i] = 0xa
  15495. }
  15496. return len(dAtA) - i, nil
  15497. }
  15498. func (m *AttachRequest) Marshal() (dAtA []byte, err error) {
  15499. size := m.Size()
  15500. dAtA = make([]byte, size)
  15501. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15502. if err != nil {
  15503. return nil, err
  15504. }
  15505. return dAtA[:n], nil
  15506. }
  15507. func (m *AttachRequest) MarshalTo(dAtA []byte) (int, error) {
  15508. size := m.Size()
  15509. return m.MarshalToSizedBuffer(dAtA[:size])
  15510. }
  15511. func (m *AttachRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15512. i := len(dAtA)
  15513. _ = i
  15514. var l int
  15515. _ = l
  15516. if m.Stderr {
  15517. i--
  15518. if m.Stderr {
  15519. dAtA[i] = 1
  15520. } else {
  15521. dAtA[i] = 0
  15522. }
  15523. i--
  15524. dAtA[i] = 0x28
  15525. }
  15526. if m.Stdout {
  15527. i--
  15528. if m.Stdout {
  15529. dAtA[i] = 1
  15530. } else {
  15531. dAtA[i] = 0
  15532. }
  15533. i--
  15534. dAtA[i] = 0x20
  15535. }
  15536. if m.Tty {
  15537. i--
  15538. if m.Tty {
  15539. dAtA[i] = 1
  15540. } else {
  15541. dAtA[i] = 0
  15542. }
  15543. i--
  15544. dAtA[i] = 0x18
  15545. }
  15546. if m.Stdin {
  15547. i--
  15548. if m.Stdin {
  15549. dAtA[i] = 1
  15550. } else {
  15551. dAtA[i] = 0
  15552. }
  15553. i--
  15554. dAtA[i] = 0x10
  15555. }
  15556. if len(m.ContainerId) > 0 {
  15557. i -= len(m.ContainerId)
  15558. copy(dAtA[i:], m.ContainerId)
  15559. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerId)))
  15560. i--
  15561. dAtA[i] = 0xa
  15562. }
  15563. return len(dAtA) - i, nil
  15564. }
  15565. func (m *AttachResponse) Marshal() (dAtA []byte, err error) {
  15566. size := m.Size()
  15567. dAtA = make([]byte, size)
  15568. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15569. if err != nil {
  15570. return nil, err
  15571. }
  15572. return dAtA[:n], nil
  15573. }
  15574. func (m *AttachResponse) MarshalTo(dAtA []byte) (int, error) {
  15575. size := m.Size()
  15576. return m.MarshalToSizedBuffer(dAtA[:size])
  15577. }
  15578. func (m *AttachResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15579. i := len(dAtA)
  15580. _ = i
  15581. var l int
  15582. _ = l
  15583. if len(m.Url) > 0 {
  15584. i -= len(m.Url)
  15585. copy(dAtA[i:], m.Url)
  15586. i = encodeVarintApi(dAtA, i, uint64(len(m.Url)))
  15587. i--
  15588. dAtA[i] = 0xa
  15589. }
  15590. return len(dAtA) - i, nil
  15591. }
  15592. func (m *PortForwardRequest) Marshal() (dAtA []byte, err error) {
  15593. size := m.Size()
  15594. dAtA = make([]byte, size)
  15595. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15596. if err != nil {
  15597. return nil, err
  15598. }
  15599. return dAtA[:n], nil
  15600. }
  15601. func (m *PortForwardRequest) MarshalTo(dAtA []byte) (int, error) {
  15602. size := m.Size()
  15603. return m.MarshalToSizedBuffer(dAtA[:size])
  15604. }
  15605. func (m *PortForwardRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15606. i := len(dAtA)
  15607. _ = i
  15608. var l int
  15609. _ = l
  15610. if len(m.Port) > 0 {
  15611. dAtA87 := make([]byte, len(m.Port)*10)
  15612. var j86 int
  15613. for _, num1 := range m.Port {
  15614. num := uint64(num1)
  15615. for num >= 1<<7 {
  15616. dAtA87[j86] = uint8(uint64(num)&0x7f | 0x80)
  15617. num >>= 7
  15618. j86++
  15619. }
  15620. dAtA87[j86] = uint8(num)
  15621. j86++
  15622. }
  15623. i -= j86
  15624. copy(dAtA[i:], dAtA87[:j86])
  15625. i = encodeVarintApi(dAtA, i, uint64(j86))
  15626. i--
  15627. dAtA[i] = 0x12
  15628. }
  15629. if len(m.PodSandboxId) > 0 {
  15630. i -= len(m.PodSandboxId)
  15631. copy(dAtA[i:], m.PodSandboxId)
  15632. i = encodeVarintApi(dAtA, i, uint64(len(m.PodSandboxId)))
  15633. i--
  15634. dAtA[i] = 0xa
  15635. }
  15636. return len(dAtA) - i, nil
  15637. }
  15638. func (m *PortForwardResponse) Marshal() (dAtA []byte, err error) {
  15639. size := m.Size()
  15640. dAtA = make([]byte, size)
  15641. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15642. if err != nil {
  15643. return nil, err
  15644. }
  15645. return dAtA[:n], nil
  15646. }
  15647. func (m *PortForwardResponse) MarshalTo(dAtA []byte) (int, error) {
  15648. size := m.Size()
  15649. return m.MarshalToSizedBuffer(dAtA[:size])
  15650. }
  15651. func (m *PortForwardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15652. i := len(dAtA)
  15653. _ = i
  15654. var l int
  15655. _ = l
  15656. if len(m.Url) > 0 {
  15657. i -= len(m.Url)
  15658. copy(dAtA[i:], m.Url)
  15659. i = encodeVarintApi(dAtA, i, uint64(len(m.Url)))
  15660. i--
  15661. dAtA[i] = 0xa
  15662. }
  15663. return len(dAtA) - i, nil
  15664. }
  15665. func (m *ImageFilter) Marshal() (dAtA []byte, err error) {
  15666. size := m.Size()
  15667. dAtA = make([]byte, size)
  15668. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15669. if err != nil {
  15670. return nil, err
  15671. }
  15672. return dAtA[:n], nil
  15673. }
  15674. func (m *ImageFilter) MarshalTo(dAtA []byte) (int, error) {
  15675. size := m.Size()
  15676. return m.MarshalToSizedBuffer(dAtA[:size])
  15677. }
  15678. func (m *ImageFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15679. i := len(dAtA)
  15680. _ = i
  15681. var l int
  15682. _ = l
  15683. if m.Image != nil {
  15684. {
  15685. size, err := m.Image.MarshalToSizedBuffer(dAtA[:i])
  15686. if err != nil {
  15687. return 0, err
  15688. }
  15689. i -= size
  15690. i = encodeVarintApi(dAtA, i, uint64(size))
  15691. }
  15692. i--
  15693. dAtA[i] = 0xa
  15694. }
  15695. return len(dAtA) - i, nil
  15696. }
  15697. func (m *ListImagesRequest) Marshal() (dAtA []byte, err error) {
  15698. size := m.Size()
  15699. dAtA = make([]byte, size)
  15700. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15701. if err != nil {
  15702. return nil, err
  15703. }
  15704. return dAtA[:n], nil
  15705. }
  15706. func (m *ListImagesRequest) MarshalTo(dAtA []byte) (int, error) {
  15707. size := m.Size()
  15708. return m.MarshalToSizedBuffer(dAtA[:size])
  15709. }
  15710. func (m *ListImagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15711. i := len(dAtA)
  15712. _ = i
  15713. var l int
  15714. _ = l
  15715. if m.Filter != nil {
  15716. {
  15717. size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i])
  15718. if err != nil {
  15719. return 0, err
  15720. }
  15721. i -= size
  15722. i = encodeVarintApi(dAtA, i, uint64(size))
  15723. }
  15724. i--
  15725. dAtA[i] = 0xa
  15726. }
  15727. return len(dAtA) - i, nil
  15728. }
  15729. func (m *Image) Marshal() (dAtA []byte, err error) {
  15730. size := m.Size()
  15731. dAtA = make([]byte, size)
  15732. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15733. if err != nil {
  15734. return nil, err
  15735. }
  15736. return dAtA[:n], nil
  15737. }
  15738. func (m *Image) MarshalTo(dAtA []byte) (int, error) {
  15739. size := m.Size()
  15740. return m.MarshalToSizedBuffer(dAtA[:size])
  15741. }
  15742. func (m *Image) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15743. i := len(dAtA)
  15744. _ = i
  15745. var l int
  15746. _ = l
  15747. if m.Pinned {
  15748. i--
  15749. if m.Pinned {
  15750. dAtA[i] = 1
  15751. } else {
  15752. dAtA[i] = 0
  15753. }
  15754. i--
  15755. dAtA[i] = 0x40
  15756. }
  15757. if m.Spec != nil {
  15758. {
  15759. size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  15760. if err != nil {
  15761. return 0, err
  15762. }
  15763. i -= size
  15764. i = encodeVarintApi(dAtA, i, uint64(size))
  15765. }
  15766. i--
  15767. dAtA[i] = 0x3a
  15768. }
  15769. if len(m.Username) > 0 {
  15770. i -= len(m.Username)
  15771. copy(dAtA[i:], m.Username)
  15772. i = encodeVarintApi(dAtA, i, uint64(len(m.Username)))
  15773. i--
  15774. dAtA[i] = 0x32
  15775. }
  15776. if m.Uid != nil {
  15777. {
  15778. size, err := m.Uid.MarshalToSizedBuffer(dAtA[:i])
  15779. if err != nil {
  15780. return 0, err
  15781. }
  15782. i -= size
  15783. i = encodeVarintApi(dAtA, i, uint64(size))
  15784. }
  15785. i--
  15786. dAtA[i] = 0x2a
  15787. }
  15788. if m.Size_ != 0 {
  15789. i = encodeVarintApi(dAtA, i, uint64(m.Size_))
  15790. i--
  15791. dAtA[i] = 0x20
  15792. }
  15793. if len(m.RepoDigests) > 0 {
  15794. for iNdEx := len(m.RepoDigests) - 1; iNdEx >= 0; iNdEx-- {
  15795. i -= len(m.RepoDigests[iNdEx])
  15796. copy(dAtA[i:], m.RepoDigests[iNdEx])
  15797. i = encodeVarintApi(dAtA, i, uint64(len(m.RepoDigests[iNdEx])))
  15798. i--
  15799. dAtA[i] = 0x1a
  15800. }
  15801. }
  15802. if len(m.RepoTags) > 0 {
  15803. for iNdEx := len(m.RepoTags) - 1; iNdEx >= 0; iNdEx-- {
  15804. i -= len(m.RepoTags[iNdEx])
  15805. copy(dAtA[i:], m.RepoTags[iNdEx])
  15806. i = encodeVarintApi(dAtA, i, uint64(len(m.RepoTags[iNdEx])))
  15807. i--
  15808. dAtA[i] = 0x12
  15809. }
  15810. }
  15811. if len(m.Id) > 0 {
  15812. i -= len(m.Id)
  15813. copy(dAtA[i:], m.Id)
  15814. i = encodeVarintApi(dAtA, i, uint64(len(m.Id)))
  15815. i--
  15816. dAtA[i] = 0xa
  15817. }
  15818. return len(dAtA) - i, nil
  15819. }
  15820. func (m *ListImagesResponse) Marshal() (dAtA []byte, err error) {
  15821. size := m.Size()
  15822. dAtA = make([]byte, size)
  15823. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15824. if err != nil {
  15825. return nil, err
  15826. }
  15827. return dAtA[:n], nil
  15828. }
  15829. func (m *ListImagesResponse) MarshalTo(dAtA []byte) (int, error) {
  15830. size := m.Size()
  15831. return m.MarshalToSizedBuffer(dAtA[:size])
  15832. }
  15833. func (m *ListImagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15834. i := len(dAtA)
  15835. _ = i
  15836. var l int
  15837. _ = l
  15838. if len(m.Images) > 0 {
  15839. for iNdEx := len(m.Images) - 1; iNdEx >= 0; iNdEx-- {
  15840. {
  15841. size, err := m.Images[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  15842. if err != nil {
  15843. return 0, err
  15844. }
  15845. i -= size
  15846. i = encodeVarintApi(dAtA, i, uint64(size))
  15847. }
  15848. i--
  15849. dAtA[i] = 0xa
  15850. }
  15851. }
  15852. return len(dAtA) - i, nil
  15853. }
  15854. func (m *ImageStatusRequest) Marshal() (dAtA []byte, err error) {
  15855. size := m.Size()
  15856. dAtA = make([]byte, size)
  15857. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15858. if err != nil {
  15859. return nil, err
  15860. }
  15861. return dAtA[:n], nil
  15862. }
  15863. func (m *ImageStatusRequest) MarshalTo(dAtA []byte) (int, error) {
  15864. size := m.Size()
  15865. return m.MarshalToSizedBuffer(dAtA[:size])
  15866. }
  15867. func (m *ImageStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15868. i := len(dAtA)
  15869. _ = i
  15870. var l int
  15871. _ = l
  15872. if m.Verbose {
  15873. i--
  15874. if m.Verbose {
  15875. dAtA[i] = 1
  15876. } else {
  15877. dAtA[i] = 0
  15878. }
  15879. i--
  15880. dAtA[i] = 0x10
  15881. }
  15882. if m.Image != nil {
  15883. {
  15884. size, err := m.Image.MarshalToSizedBuffer(dAtA[:i])
  15885. if err != nil {
  15886. return 0, err
  15887. }
  15888. i -= size
  15889. i = encodeVarintApi(dAtA, i, uint64(size))
  15890. }
  15891. i--
  15892. dAtA[i] = 0xa
  15893. }
  15894. return len(dAtA) - i, nil
  15895. }
  15896. func (m *ImageStatusResponse) Marshal() (dAtA []byte, err error) {
  15897. size := m.Size()
  15898. dAtA = make([]byte, size)
  15899. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15900. if err != nil {
  15901. return nil, err
  15902. }
  15903. return dAtA[:n], nil
  15904. }
  15905. func (m *ImageStatusResponse) MarshalTo(dAtA []byte) (int, error) {
  15906. size := m.Size()
  15907. return m.MarshalToSizedBuffer(dAtA[:size])
  15908. }
  15909. func (m *ImageStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15910. i := len(dAtA)
  15911. _ = i
  15912. var l int
  15913. _ = l
  15914. if len(m.Info) > 0 {
  15915. for k := range m.Info {
  15916. v := m.Info[k]
  15917. baseI := i
  15918. i -= len(v)
  15919. copy(dAtA[i:], v)
  15920. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  15921. i--
  15922. dAtA[i] = 0x12
  15923. i -= len(k)
  15924. copy(dAtA[i:], k)
  15925. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  15926. i--
  15927. dAtA[i] = 0xa
  15928. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  15929. i--
  15930. dAtA[i] = 0x12
  15931. }
  15932. }
  15933. if m.Image != nil {
  15934. {
  15935. size, err := m.Image.MarshalToSizedBuffer(dAtA[:i])
  15936. if err != nil {
  15937. return 0, err
  15938. }
  15939. i -= size
  15940. i = encodeVarintApi(dAtA, i, uint64(size))
  15941. }
  15942. i--
  15943. dAtA[i] = 0xa
  15944. }
  15945. return len(dAtA) - i, nil
  15946. }
  15947. func (m *AuthConfig) Marshal() (dAtA []byte, err error) {
  15948. size := m.Size()
  15949. dAtA = make([]byte, size)
  15950. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  15951. if err != nil {
  15952. return nil, err
  15953. }
  15954. return dAtA[:n], nil
  15955. }
  15956. func (m *AuthConfig) MarshalTo(dAtA []byte) (int, error) {
  15957. size := m.Size()
  15958. return m.MarshalToSizedBuffer(dAtA[:size])
  15959. }
  15960. func (m *AuthConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  15961. i := len(dAtA)
  15962. _ = i
  15963. var l int
  15964. _ = l
  15965. if len(m.RegistryToken) > 0 {
  15966. i -= len(m.RegistryToken)
  15967. copy(dAtA[i:], m.RegistryToken)
  15968. i = encodeVarintApi(dAtA, i, uint64(len(m.RegistryToken)))
  15969. i--
  15970. dAtA[i] = 0x32
  15971. }
  15972. if len(m.IdentityToken) > 0 {
  15973. i -= len(m.IdentityToken)
  15974. copy(dAtA[i:], m.IdentityToken)
  15975. i = encodeVarintApi(dAtA, i, uint64(len(m.IdentityToken)))
  15976. i--
  15977. dAtA[i] = 0x2a
  15978. }
  15979. if len(m.ServerAddress) > 0 {
  15980. i -= len(m.ServerAddress)
  15981. copy(dAtA[i:], m.ServerAddress)
  15982. i = encodeVarintApi(dAtA, i, uint64(len(m.ServerAddress)))
  15983. i--
  15984. dAtA[i] = 0x22
  15985. }
  15986. if len(m.Auth) > 0 {
  15987. i -= len(m.Auth)
  15988. copy(dAtA[i:], m.Auth)
  15989. i = encodeVarintApi(dAtA, i, uint64(len(m.Auth)))
  15990. i--
  15991. dAtA[i] = 0x1a
  15992. }
  15993. if len(m.Password) > 0 {
  15994. i -= len(m.Password)
  15995. copy(dAtA[i:], m.Password)
  15996. i = encodeVarintApi(dAtA, i, uint64(len(m.Password)))
  15997. i--
  15998. dAtA[i] = 0x12
  15999. }
  16000. if len(m.Username) > 0 {
  16001. i -= len(m.Username)
  16002. copy(dAtA[i:], m.Username)
  16003. i = encodeVarintApi(dAtA, i, uint64(len(m.Username)))
  16004. i--
  16005. dAtA[i] = 0xa
  16006. }
  16007. return len(dAtA) - i, nil
  16008. }
  16009. func (m *PullImageRequest) Marshal() (dAtA []byte, err error) {
  16010. size := m.Size()
  16011. dAtA = make([]byte, size)
  16012. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16013. if err != nil {
  16014. return nil, err
  16015. }
  16016. return dAtA[:n], nil
  16017. }
  16018. func (m *PullImageRequest) MarshalTo(dAtA []byte) (int, error) {
  16019. size := m.Size()
  16020. return m.MarshalToSizedBuffer(dAtA[:size])
  16021. }
  16022. func (m *PullImageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16023. i := len(dAtA)
  16024. _ = i
  16025. var l int
  16026. _ = l
  16027. if m.SandboxConfig != nil {
  16028. {
  16029. size, err := m.SandboxConfig.MarshalToSizedBuffer(dAtA[:i])
  16030. if err != nil {
  16031. return 0, err
  16032. }
  16033. i -= size
  16034. i = encodeVarintApi(dAtA, i, uint64(size))
  16035. }
  16036. i--
  16037. dAtA[i] = 0x1a
  16038. }
  16039. if m.Auth != nil {
  16040. {
  16041. size, err := m.Auth.MarshalToSizedBuffer(dAtA[:i])
  16042. if err != nil {
  16043. return 0, err
  16044. }
  16045. i -= size
  16046. i = encodeVarintApi(dAtA, i, uint64(size))
  16047. }
  16048. i--
  16049. dAtA[i] = 0x12
  16050. }
  16051. if m.Image != nil {
  16052. {
  16053. size, err := m.Image.MarshalToSizedBuffer(dAtA[:i])
  16054. if err != nil {
  16055. return 0, err
  16056. }
  16057. i -= size
  16058. i = encodeVarintApi(dAtA, i, uint64(size))
  16059. }
  16060. i--
  16061. dAtA[i] = 0xa
  16062. }
  16063. return len(dAtA) - i, nil
  16064. }
  16065. func (m *PullImageResponse) Marshal() (dAtA []byte, err error) {
  16066. size := m.Size()
  16067. dAtA = make([]byte, size)
  16068. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16069. if err != nil {
  16070. return nil, err
  16071. }
  16072. return dAtA[:n], nil
  16073. }
  16074. func (m *PullImageResponse) MarshalTo(dAtA []byte) (int, error) {
  16075. size := m.Size()
  16076. return m.MarshalToSizedBuffer(dAtA[:size])
  16077. }
  16078. func (m *PullImageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16079. i := len(dAtA)
  16080. _ = i
  16081. var l int
  16082. _ = l
  16083. if len(m.ImageRef) > 0 {
  16084. i -= len(m.ImageRef)
  16085. copy(dAtA[i:], m.ImageRef)
  16086. i = encodeVarintApi(dAtA, i, uint64(len(m.ImageRef)))
  16087. i--
  16088. dAtA[i] = 0xa
  16089. }
  16090. return len(dAtA) - i, nil
  16091. }
  16092. func (m *RemoveImageRequest) Marshal() (dAtA []byte, err error) {
  16093. size := m.Size()
  16094. dAtA = make([]byte, size)
  16095. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16096. if err != nil {
  16097. return nil, err
  16098. }
  16099. return dAtA[:n], nil
  16100. }
  16101. func (m *RemoveImageRequest) MarshalTo(dAtA []byte) (int, error) {
  16102. size := m.Size()
  16103. return m.MarshalToSizedBuffer(dAtA[:size])
  16104. }
  16105. func (m *RemoveImageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16106. i := len(dAtA)
  16107. _ = i
  16108. var l int
  16109. _ = l
  16110. if m.Image != nil {
  16111. {
  16112. size, err := m.Image.MarshalToSizedBuffer(dAtA[:i])
  16113. if err != nil {
  16114. return 0, err
  16115. }
  16116. i -= size
  16117. i = encodeVarintApi(dAtA, i, uint64(size))
  16118. }
  16119. i--
  16120. dAtA[i] = 0xa
  16121. }
  16122. return len(dAtA) - i, nil
  16123. }
  16124. func (m *RemoveImageResponse) Marshal() (dAtA []byte, err error) {
  16125. size := m.Size()
  16126. dAtA = make([]byte, size)
  16127. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16128. if err != nil {
  16129. return nil, err
  16130. }
  16131. return dAtA[:n], nil
  16132. }
  16133. func (m *RemoveImageResponse) MarshalTo(dAtA []byte) (int, error) {
  16134. size := m.Size()
  16135. return m.MarshalToSizedBuffer(dAtA[:size])
  16136. }
  16137. func (m *RemoveImageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16138. i := len(dAtA)
  16139. _ = i
  16140. var l int
  16141. _ = l
  16142. return len(dAtA) - i, nil
  16143. }
  16144. func (m *NetworkConfig) Marshal() (dAtA []byte, err error) {
  16145. size := m.Size()
  16146. dAtA = make([]byte, size)
  16147. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16148. if err != nil {
  16149. return nil, err
  16150. }
  16151. return dAtA[:n], nil
  16152. }
  16153. func (m *NetworkConfig) MarshalTo(dAtA []byte) (int, error) {
  16154. size := m.Size()
  16155. return m.MarshalToSizedBuffer(dAtA[:size])
  16156. }
  16157. func (m *NetworkConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16158. i := len(dAtA)
  16159. _ = i
  16160. var l int
  16161. _ = l
  16162. if len(m.PodCidr) > 0 {
  16163. i -= len(m.PodCidr)
  16164. copy(dAtA[i:], m.PodCidr)
  16165. i = encodeVarintApi(dAtA, i, uint64(len(m.PodCidr)))
  16166. i--
  16167. dAtA[i] = 0xa
  16168. }
  16169. return len(dAtA) - i, nil
  16170. }
  16171. func (m *RuntimeConfig) Marshal() (dAtA []byte, err error) {
  16172. size := m.Size()
  16173. dAtA = make([]byte, size)
  16174. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16175. if err != nil {
  16176. return nil, err
  16177. }
  16178. return dAtA[:n], nil
  16179. }
  16180. func (m *RuntimeConfig) MarshalTo(dAtA []byte) (int, error) {
  16181. size := m.Size()
  16182. return m.MarshalToSizedBuffer(dAtA[:size])
  16183. }
  16184. func (m *RuntimeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16185. i := len(dAtA)
  16186. _ = i
  16187. var l int
  16188. _ = l
  16189. if m.NetworkConfig != nil {
  16190. {
  16191. size, err := m.NetworkConfig.MarshalToSizedBuffer(dAtA[:i])
  16192. if err != nil {
  16193. return 0, err
  16194. }
  16195. i -= size
  16196. i = encodeVarintApi(dAtA, i, uint64(size))
  16197. }
  16198. i--
  16199. dAtA[i] = 0xa
  16200. }
  16201. return len(dAtA) - i, nil
  16202. }
  16203. func (m *UpdateRuntimeConfigRequest) Marshal() (dAtA []byte, err error) {
  16204. size := m.Size()
  16205. dAtA = make([]byte, size)
  16206. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16207. if err != nil {
  16208. return nil, err
  16209. }
  16210. return dAtA[:n], nil
  16211. }
  16212. func (m *UpdateRuntimeConfigRequest) MarshalTo(dAtA []byte) (int, error) {
  16213. size := m.Size()
  16214. return m.MarshalToSizedBuffer(dAtA[:size])
  16215. }
  16216. func (m *UpdateRuntimeConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16217. i := len(dAtA)
  16218. _ = i
  16219. var l int
  16220. _ = l
  16221. if m.RuntimeConfig != nil {
  16222. {
  16223. size, err := m.RuntimeConfig.MarshalToSizedBuffer(dAtA[:i])
  16224. if err != nil {
  16225. return 0, err
  16226. }
  16227. i -= size
  16228. i = encodeVarintApi(dAtA, i, uint64(size))
  16229. }
  16230. i--
  16231. dAtA[i] = 0xa
  16232. }
  16233. return len(dAtA) - i, nil
  16234. }
  16235. func (m *UpdateRuntimeConfigResponse) Marshal() (dAtA []byte, err error) {
  16236. size := m.Size()
  16237. dAtA = make([]byte, size)
  16238. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16239. if err != nil {
  16240. return nil, err
  16241. }
  16242. return dAtA[:n], nil
  16243. }
  16244. func (m *UpdateRuntimeConfigResponse) MarshalTo(dAtA []byte) (int, error) {
  16245. size := m.Size()
  16246. return m.MarshalToSizedBuffer(dAtA[:size])
  16247. }
  16248. func (m *UpdateRuntimeConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16249. i := len(dAtA)
  16250. _ = i
  16251. var l int
  16252. _ = l
  16253. return len(dAtA) - i, nil
  16254. }
  16255. func (m *RuntimeCondition) Marshal() (dAtA []byte, err error) {
  16256. size := m.Size()
  16257. dAtA = make([]byte, size)
  16258. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16259. if err != nil {
  16260. return nil, err
  16261. }
  16262. return dAtA[:n], nil
  16263. }
  16264. func (m *RuntimeCondition) MarshalTo(dAtA []byte) (int, error) {
  16265. size := m.Size()
  16266. return m.MarshalToSizedBuffer(dAtA[:size])
  16267. }
  16268. func (m *RuntimeCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16269. i := len(dAtA)
  16270. _ = i
  16271. var l int
  16272. _ = l
  16273. if len(m.Message) > 0 {
  16274. i -= len(m.Message)
  16275. copy(dAtA[i:], m.Message)
  16276. i = encodeVarintApi(dAtA, i, uint64(len(m.Message)))
  16277. i--
  16278. dAtA[i] = 0x22
  16279. }
  16280. if len(m.Reason) > 0 {
  16281. i -= len(m.Reason)
  16282. copy(dAtA[i:], m.Reason)
  16283. i = encodeVarintApi(dAtA, i, uint64(len(m.Reason)))
  16284. i--
  16285. dAtA[i] = 0x1a
  16286. }
  16287. if m.Status {
  16288. i--
  16289. if m.Status {
  16290. dAtA[i] = 1
  16291. } else {
  16292. dAtA[i] = 0
  16293. }
  16294. i--
  16295. dAtA[i] = 0x10
  16296. }
  16297. if len(m.Type) > 0 {
  16298. i -= len(m.Type)
  16299. copy(dAtA[i:], m.Type)
  16300. i = encodeVarintApi(dAtA, i, uint64(len(m.Type)))
  16301. i--
  16302. dAtA[i] = 0xa
  16303. }
  16304. return len(dAtA) - i, nil
  16305. }
  16306. func (m *RuntimeStatus) Marshal() (dAtA []byte, err error) {
  16307. size := m.Size()
  16308. dAtA = make([]byte, size)
  16309. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16310. if err != nil {
  16311. return nil, err
  16312. }
  16313. return dAtA[:n], nil
  16314. }
  16315. func (m *RuntimeStatus) MarshalTo(dAtA []byte) (int, error) {
  16316. size := m.Size()
  16317. return m.MarshalToSizedBuffer(dAtA[:size])
  16318. }
  16319. func (m *RuntimeStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16320. i := len(dAtA)
  16321. _ = i
  16322. var l int
  16323. _ = l
  16324. if len(m.Conditions) > 0 {
  16325. for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- {
  16326. {
  16327. size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  16328. if err != nil {
  16329. return 0, err
  16330. }
  16331. i -= size
  16332. i = encodeVarintApi(dAtA, i, uint64(size))
  16333. }
  16334. i--
  16335. dAtA[i] = 0xa
  16336. }
  16337. }
  16338. return len(dAtA) - i, nil
  16339. }
  16340. func (m *StatusRequest) Marshal() (dAtA []byte, err error) {
  16341. size := m.Size()
  16342. dAtA = make([]byte, size)
  16343. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16344. if err != nil {
  16345. return nil, err
  16346. }
  16347. return dAtA[:n], nil
  16348. }
  16349. func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error) {
  16350. size := m.Size()
  16351. return m.MarshalToSizedBuffer(dAtA[:size])
  16352. }
  16353. func (m *StatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16354. i := len(dAtA)
  16355. _ = i
  16356. var l int
  16357. _ = l
  16358. if m.Verbose {
  16359. i--
  16360. if m.Verbose {
  16361. dAtA[i] = 1
  16362. } else {
  16363. dAtA[i] = 0
  16364. }
  16365. i--
  16366. dAtA[i] = 0x8
  16367. }
  16368. return len(dAtA) - i, nil
  16369. }
  16370. func (m *StatusResponse) Marshal() (dAtA []byte, err error) {
  16371. size := m.Size()
  16372. dAtA = make([]byte, size)
  16373. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16374. if err != nil {
  16375. return nil, err
  16376. }
  16377. return dAtA[:n], nil
  16378. }
  16379. func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error) {
  16380. size := m.Size()
  16381. return m.MarshalToSizedBuffer(dAtA[:size])
  16382. }
  16383. func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16384. i := len(dAtA)
  16385. _ = i
  16386. var l int
  16387. _ = l
  16388. if len(m.Info) > 0 {
  16389. for k := range m.Info {
  16390. v := m.Info[k]
  16391. baseI := i
  16392. i -= len(v)
  16393. copy(dAtA[i:], v)
  16394. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  16395. i--
  16396. dAtA[i] = 0x12
  16397. i -= len(k)
  16398. copy(dAtA[i:], k)
  16399. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  16400. i--
  16401. dAtA[i] = 0xa
  16402. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  16403. i--
  16404. dAtA[i] = 0x12
  16405. }
  16406. }
  16407. if m.Status != nil {
  16408. {
  16409. size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  16410. if err != nil {
  16411. return 0, err
  16412. }
  16413. i -= size
  16414. i = encodeVarintApi(dAtA, i, uint64(size))
  16415. }
  16416. i--
  16417. dAtA[i] = 0xa
  16418. }
  16419. return len(dAtA) - i, nil
  16420. }
  16421. func (m *ImageFsInfoRequest) Marshal() (dAtA []byte, err error) {
  16422. size := m.Size()
  16423. dAtA = make([]byte, size)
  16424. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16425. if err != nil {
  16426. return nil, err
  16427. }
  16428. return dAtA[:n], nil
  16429. }
  16430. func (m *ImageFsInfoRequest) MarshalTo(dAtA []byte) (int, error) {
  16431. size := m.Size()
  16432. return m.MarshalToSizedBuffer(dAtA[:size])
  16433. }
  16434. func (m *ImageFsInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16435. i := len(dAtA)
  16436. _ = i
  16437. var l int
  16438. _ = l
  16439. return len(dAtA) - i, nil
  16440. }
  16441. func (m *UInt64Value) Marshal() (dAtA []byte, err error) {
  16442. size := m.Size()
  16443. dAtA = make([]byte, size)
  16444. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16445. if err != nil {
  16446. return nil, err
  16447. }
  16448. return dAtA[:n], nil
  16449. }
  16450. func (m *UInt64Value) MarshalTo(dAtA []byte) (int, error) {
  16451. size := m.Size()
  16452. return m.MarshalToSizedBuffer(dAtA[:size])
  16453. }
  16454. func (m *UInt64Value) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16455. i := len(dAtA)
  16456. _ = i
  16457. var l int
  16458. _ = l
  16459. if m.Value != 0 {
  16460. i = encodeVarintApi(dAtA, i, uint64(m.Value))
  16461. i--
  16462. dAtA[i] = 0x8
  16463. }
  16464. return len(dAtA) - i, nil
  16465. }
  16466. func (m *FilesystemIdentifier) Marshal() (dAtA []byte, err error) {
  16467. size := m.Size()
  16468. dAtA = make([]byte, size)
  16469. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16470. if err != nil {
  16471. return nil, err
  16472. }
  16473. return dAtA[:n], nil
  16474. }
  16475. func (m *FilesystemIdentifier) MarshalTo(dAtA []byte) (int, error) {
  16476. size := m.Size()
  16477. return m.MarshalToSizedBuffer(dAtA[:size])
  16478. }
  16479. func (m *FilesystemIdentifier) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16480. i := len(dAtA)
  16481. _ = i
  16482. var l int
  16483. _ = l
  16484. if len(m.Mountpoint) > 0 {
  16485. i -= len(m.Mountpoint)
  16486. copy(dAtA[i:], m.Mountpoint)
  16487. i = encodeVarintApi(dAtA, i, uint64(len(m.Mountpoint)))
  16488. i--
  16489. dAtA[i] = 0xa
  16490. }
  16491. return len(dAtA) - i, nil
  16492. }
  16493. func (m *FilesystemUsage) Marshal() (dAtA []byte, err error) {
  16494. size := m.Size()
  16495. dAtA = make([]byte, size)
  16496. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16497. if err != nil {
  16498. return nil, err
  16499. }
  16500. return dAtA[:n], nil
  16501. }
  16502. func (m *FilesystemUsage) MarshalTo(dAtA []byte) (int, error) {
  16503. size := m.Size()
  16504. return m.MarshalToSizedBuffer(dAtA[:size])
  16505. }
  16506. func (m *FilesystemUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16507. i := len(dAtA)
  16508. _ = i
  16509. var l int
  16510. _ = l
  16511. if m.InodesUsed != nil {
  16512. {
  16513. size, err := m.InodesUsed.MarshalToSizedBuffer(dAtA[:i])
  16514. if err != nil {
  16515. return 0, err
  16516. }
  16517. i -= size
  16518. i = encodeVarintApi(dAtA, i, uint64(size))
  16519. }
  16520. i--
  16521. dAtA[i] = 0x22
  16522. }
  16523. if m.UsedBytes != nil {
  16524. {
  16525. size, err := m.UsedBytes.MarshalToSizedBuffer(dAtA[:i])
  16526. if err != nil {
  16527. return 0, err
  16528. }
  16529. i -= size
  16530. i = encodeVarintApi(dAtA, i, uint64(size))
  16531. }
  16532. i--
  16533. dAtA[i] = 0x1a
  16534. }
  16535. if m.FsId != nil {
  16536. {
  16537. size, err := m.FsId.MarshalToSizedBuffer(dAtA[:i])
  16538. if err != nil {
  16539. return 0, err
  16540. }
  16541. i -= size
  16542. i = encodeVarintApi(dAtA, i, uint64(size))
  16543. }
  16544. i--
  16545. dAtA[i] = 0x12
  16546. }
  16547. if m.Timestamp != 0 {
  16548. i = encodeVarintApi(dAtA, i, uint64(m.Timestamp))
  16549. i--
  16550. dAtA[i] = 0x8
  16551. }
  16552. return len(dAtA) - i, nil
  16553. }
  16554. func (m *WindowsFilesystemUsage) Marshal() (dAtA []byte, err error) {
  16555. size := m.Size()
  16556. dAtA = make([]byte, size)
  16557. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16558. if err != nil {
  16559. return nil, err
  16560. }
  16561. return dAtA[:n], nil
  16562. }
  16563. func (m *WindowsFilesystemUsage) MarshalTo(dAtA []byte) (int, error) {
  16564. size := m.Size()
  16565. return m.MarshalToSizedBuffer(dAtA[:size])
  16566. }
  16567. func (m *WindowsFilesystemUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16568. i := len(dAtA)
  16569. _ = i
  16570. var l int
  16571. _ = l
  16572. if m.UsedBytes != nil {
  16573. {
  16574. size, err := m.UsedBytes.MarshalToSizedBuffer(dAtA[:i])
  16575. if err != nil {
  16576. return 0, err
  16577. }
  16578. i -= size
  16579. i = encodeVarintApi(dAtA, i, uint64(size))
  16580. }
  16581. i--
  16582. dAtA[i] = 0x1a
  16583. }
  16584. if m.FsId != nil {
  16585. {
  16586. size, err := m.FsId.MarshalToSizedBuffer(dAtA[:i])
  16587. if err != nil {
  16588. return 0, err
  16589. }
  16590. i -= size
  16591. i = encodeVarintApi(dAtA, i, uint64(size))
  16592. }
  16593. i--
  16594. dAtA[i] = 0x12
  16595. }
  16596. if m.Timestamp != 0 {
  16597. i = encodeVarintApi(dAtA, i, uint64(m.Timestamp))
  16598. i--
  16599. dAtA[i] = 0x8
  16600. }
  16601. return len(dAtA) - i, nil
  16602. }
  16603. func (m *ImageFsInfoResponse) Marshal() (dAtA []byte, err error) {
  16604. size := m.Size()
  16605. dAtA = make([]byte, size)
  16606. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16607. if err != nil {
  16608. return nil, err
  16609. }
  16610. return dAtA[:n], nil
  16611. }
  16612. func (m *ImageFsInfoResponse) MarshalTo(dAtA []byte) (int, error) {
  16613. size := m.Size()
  16614. return m.MarshalToSizedBuffer(dAtA[:size])
  16615. }
  16616. func (m *ImageFsInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16617. i := len(dAtA)
  16618. _ = i
  16619. var l int
  16620. _ = l
  16621. if len(m.ImageFilesystems) > 0 {
  16622. for iNdEx := len(m.ImageFilesystems) - 1; iNdEx >= 0; iNdEx-- {
  16623. {
  16624. size, err := m.ImageFilesystems[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  16625. if err != nil {
  16626. return 0, err
  16627. }
  16628. i -= size
  16629. i = encodeVarintApi(dAtA, i, uint64(size))
  16630. }
  16631. i--
  16632. dAtA[i] = 0xa
  16633. }
  16634. }
  16635. return len(dAtA) - i, nil
  16636. }
  16637. func (m *ContainerStatsRequest) Marshal() (dAtA []byte, err error) {
  16638. size := m.Size()
  16639. dAtA = make([]byte, size)
  16640. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16641. if err != nil {
  16642. return nil, err
  16643. }
  16644. return dAtA[:n], nil
  16645. }
  16646. func (m *ContainerStatsRequest) MarshalTo(dAtA []byte) (int, error) {
  16647. size := m.Size()
  16648. return m.MarshalToSizedBuffer(dAtA[:size])
  16649. }
  16650. func (m *ContainerStatsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16651. i := len(dAtA)
  16652. _ = i
  16653. var l int
  16654. _ = l
  16655. if len(m.ContainerId) > 0 {
  16656. i -= len(m.ContainerId)
  16657. copy(dAtA[i:], m.ContainerId)
  16658. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerId)))
  16659. i--
  16660. dAtA[i] = 0xa
  16661. }
  16662. return len(dAtA) - i, nil
  16663. }
  16664. func (m *ContainerStatsResponse) Marshal() (dAtA []byte, err error) {
  16665. size := m.Size()
  16666. dAtA = make([]byte, size)
  16667. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16668. if err != nil {
  16669. return nil, err
  16670. }
  16671. return dAtA[:n], nil
  16672. }
  16673. func (m *ContainerStatsResponse) MarshalTo(dAtA []byte) (int, error) {
  16674. size := m.Size()
  16675. return m.MarshalToSizedBuffer(dAtA[:size])
  16676. }
  16677. func (m *ContainerStatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16678. i := len(dAtA)
  16679. _ = i
  16680. var l int
  16681. _ = l
  16682. if m.Stats != nil {
  16683. {
  16684. size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i])
  16685. if err != nil {
  16686. return 0, err
  16687. }
  16688. i -= size
  16689. i = encodeVarintApi(dAtA, i, uint64(size))
  16690. }
  16691. i--
  16692. dAtA[i] = 0xa
  16693. }
  16694. return len(dAtA) - i, nil
  16695. }
  16696. func (m *ListContainerStatsRequest) Marshal() (dAtA []byte, err error) {
  16697. size := m.Size()
  16698. dAtA = make([]byte, size)
  16699. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16700. if err != nil {
  16701. return nil, err
  16702. }
  16703. return dAtA[:n], nil
  16704. }
  16705. func (m *ListContainerStatsRequest) MarshalTo(dAtA []byte) (int, error) {
  16706. size := m.Size()
  16707. return m.MarshalToSizedBuffer(dAtA[:size])
  16708. }
  16709. func (m *ListContainerStatsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16710. i := len(dAtA)
  16711. _ = i
  16712. var l int
  16713. _ = l
  16714. if m.Filter != nil {
  16715. {
  16716. size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i])
  16717. if err != nil {
  16718. return 0, err
  16719. }
  16720. i -= size
  16721. i = encodeVarintApi(dAtA, i, uint64(size))
  16722. }
  16723. i--
  16724. dAtA[i] = 0xa
  16725. }
  16726. return len(dAtA) - i, nil
  16727. }
  16728. func (m *ContainerStatsFilter) Marshal() (dAtA []byte, err error) {
  16729. size := m.Size()
  16730. dAtA = make([]byte, size)
  16731. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16732. if err != nil {
  16733. return nil, err
  16734. }
  16735. return dAtA[:n], nil
  16736. }
  16737. func (m *ContainerStatsFilter) MarshalTo(dAtA []byte) (int, error) {
  16738. size := m.Size()
  16739. return m.MarshalToSizedBuffer(dAtA[:size])
  16740. }
  16741. func (m *ContainerStatsFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16742. i := len(dAtA)
  16743. _ = i
  16744. var l int
  16745. _ = l
  16746. if len(m.LabelSelector) > 0 {
  16747. for k := range m.LabelSelector {
  16748. v := m.LabelSelector[k]
  16749. baseI := i
  16750. i -= len(v)
  16751. copy(dAtA[i:], v)
  16752. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  16753. i--
  16754. dAtA[i] = 0x12
  16755. i -= len(k)
  16756. copy(dAtA[i:], k)
  16757. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  16758. i--
  16759. dAtA[i] = 0xa
  16760. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  16761. i--
  16762. dAtA[i] = 0x1a
  16763. }
  16764. }
  16765. if len(m.PodSandboxId) > 0 {
  16766. i -= len(m.PodSandboxId)
  16767. copy(dAtA[i:], m.PodSandboxId)
  16768. i = encodeVarintApi(dAtA, i, uint64(len(m.PodSandboxId)))
  16769. i--
  16770. dAtA[i] = 0x12
  16771. }
  16772. if len(m.Id) > 0 {
  16773. i -= len(m.Id)
  16774. copy(dAtA[i:], m.Id)
  16775. i = encodeVarintApi(dAtA, i, uint64(len(m.Id)))
  16776. i--
  16777. dAtA[i] = 0xa
  16778. }
  16779. return len(dAtA) - i, nil
  16780. }
  16781. func (m *ListContainerStatsResponse) Marshal() (dAtA []byte, err error) {
  16782. size := m.Size()
  16783. dAtA = make([]byte, size)
  16784. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16785. if err != nil {
  16786. return nil, err
  16787. }
  16788. return dAtA[:n], nil
  16789. }
  16790. func (m *ListContainerStatsResponse) MarshalTo(dAtA []byte) (int, error) {
  16791. size := m.Size()
  16792. return m.MarshalToSizedBuffer(dAtA[:size])
  16793. }
  16794. func (m *ListContainerStatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16795. i := len(dAtA)
  16796. _ = i
  16797. var l int
  16798. _ = l
  16799. if len(m.Stats) > 0 {
  16800. for iNdEx := len(m.Stats) - 1; iNdEx >= 0; iNdEx-- {
  16801. {
  16802. size, err := m.Stats[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  16803. if err != nil {
  16804. return 0, err
  16805. }
  16806. i -= size
  16807. i = encodeVarintApi(dAtA, i, uint64(size))
  16808. }
  16809. i--
  16810. dAtA[i] = 0xa
  16811. }
  16812. }
  16813. return len(dAtA) - i, nil
  16814. }
  16815. func (m *ContainerAttributes) Marshal() (dAtA []byte, err error) {
  16816. size := m.Size()
  16817. dAtA = make([]byte, size)
  16818. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16819. if err != nil {
  16820. return nil, err
  16821. }
  16822. return dAtA[:n], nil
  16823. }
  16824. func (m *ContainerAttributes) MarshalTo(dAtA []byte) (int, error) {
  16825. size := m.Size()
  16826. return m.MarshalToSizedBuffer(dAtA[:size])
  16827. }
  16828. func (m *ContainerAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16829. i := len(dAtA)
  16830. _ = i
  16831. var l int
  16832. _ = l
  16833. if len(m.Annotations) > 0 {
  16834. for k := range m.Annotations {
  16835. v := m.Annotations[k]
  16836. baseI := i
  16837. i -= len(v)
  16838. copy(dAtA[i:], v)
  16839. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  16840. i--
  16841. dAtA[i] = 0x12
  16842. i -= len(k)
  16843. copy(dAtA[i:], k)
  16844. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  16845. i--
  16846. dAtA[i] = 0xa
  16847. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  16848. i--
  16849. dAtA[i] = 0x22
  16850. }
  16851. }
  16852. if len(m.Labels) > 0 {
  16853. for k := range m.Labels {
  16854. v := m.Labels[k]
  16855. baseI := i
  16856. i -= len(v)
  16857. copy(dAtA[i:], v)
  16858. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  16859. i--
  16860. dAtA[i] = 0x12
  16861. i -= len(k)
  16862. copy(dAtA[i:], k)
  16863. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  16864. i--
  16865. dAtA[i] = 0xa
  16866. i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  16867. i--
  16868. dAtA[i] = 0x1a
  16869. }
  16870. }
  16871. if m.Metadata != nil {
  16872. {
  16873. size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i])
  16874. if err != nil {
  16875. return 0, err
  16876. }
  16877. i -= size
  16878. i = encodeVarintApi(dAtA, i, uint64(size))
  16879. }
  16880. i--
  16881. dAtA[i] = 0x12
  16882. }
  16883. if len(m.Id) > 0 {
  16884. i -= len(m.Id)
  16885. copy(dAtA[i:], m.Id)
  16886. i = encodeVarintApi(dAtA, i, uint64(len(m.Id)))
  16887. i--
  16888. dAtA[i] = 0xa
  16889. }
  16890. return len(dAtA) - i, nil
  16891. }
  16892. func (m *ContainerStats) Marshal() (dAtA []byte, err error) {
  16893. size := m.Size()
  16894. dAtA = make([]byte, size)
  16895. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16896. if err != nil {
  16897. return nil, err
  16898. }
  16899. return dAtA[:n], nil
  16900. }
  16901. func (m *ContainerStats) MarshalTo(dAtA []byte) (int, error) {
  16902. size := m.Size()
  16903. return m.MarshalToSizedBuffer(dAtA[:size])
  16904. }
  16905. func (m *ContainerStats) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16906. i := len(dAtA)
  16907. _ = i
  16908. var l int
  16909. _ = l
  16910. if m.Swap != nil {
  16911. {
  16912. size, err := m.Swap.MarshalToSizedBuffer(dAtA[:i])
  16913. if err != nil {
  16914. return 0, err
  16915. }
  16916. i -= size
  16917. i = encodeVarintApi(dAtA, i, uint64(size))
  16918. }
  16919. i--
  16920. dAtA[i] = 0x2a
  16921. }
  16922. if m.WritableLayer != nil {
  16923. {
  16924. size, err := m.WritableLayer.MarshalToSizedBuffer(dAtA[:i])
  16925. if err != nil {
  16926. return 0, err
  16927. }
  16928. i -= size
  16929. i = encodeVarintApi(dAtA, i, uint64(size))
  16930. }
  16931. i--
  16932. dAtA[i] = 0x22
  16933. }
  16934. if m.Memory != nil {
  16935. {
  16936. size, err := m.Memory.MarshalToSizedBuffer(dAtA[:i])
  16937. if err != nil {
  16938. return 0, err
  16939. }
  16940. i -= size
  16941. i = encodeVarintApi(dAtA, i, uint64(size))
  16942. }
  16943. i--
  16944. dAtA[i] = 0x1a
  16945. }
  16946. if m.Cpu != nil {
  16947. {
  16948. size, err := m.Cpu.MarshalToSizedBuffer(dAtA[:i])
  16949. if err != nil {
  16950. return 0, err
  16951. }
  16952. i -= size
  16953. i = encodeVarintApi(dAtA, i, uint64(size))
  16954. }
  16955. i--
  16956. dAtA[i] = 0x12
  16957. }
  16958. if m.Attributes != nil {
  16959. {
  16960. size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i])
  16961. if err != nil {
  16962. return 0, err
  16963. }
  16964. i -= size
  16965. i = encodeVarintApi(dAtA, i, uint64(size))
  16966. }
  16967. i--
  16968. dAtA[i] = 0xa
  16969. }
  16970. return len(dAtA) - i, nil
  16971. }
  16972. func (m *WindowsContainerStats) Marshal() (dAtA []byte, err error) {
  16973. size := m.Size()
  16974. dAtA = make([]byte, size)
  16975. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  16976. if err != nil {
  16977. return nil, err
  16978. }
  16979. return dAtA[:n], nil
  16980. }
  16981. func (m *WindowsContainerStats) MarshalTo(dAtA []byte) (int, error) {
  16982. size := m.Size()
  16983. return m.MarshalToSizedBuffer(dAtA[:size])
  16984. }
  16985. func (m *WindowsContainerStats) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  16986. i := len(dAtA)
  16987. _ = i
  16988. var l int
  16989. _ = l
  16990. if m.WritableLayer != nil {
  16991. {
  16992. size, err := m.WritableLayer.MarshalToSizedBuffer(dAtA[:i])
  16993. if err != nil {
  16994. return 0, err
  16995. }
  16996. i -= size
  16997. i = encodeVarintApi(dAtA, i, uint64(size))
  16998. }
  16999. i--
  17000. dAtA[i] = 0x22
  17001. }
  17002. if m.Memory != nil {
  17003. {
  17004. size, err := m.Memory.MarshalToSizedBuffer(dAtA[:i])
  17005. if err != nil {
  17006. return 0, err
  17007. }
  17008. i -= size
  17009. i = encodeVarintApi(dAtA, i, uint64(size))
  17010. }
  17011. i--
  17012. dAtA[i] = 0x1a
  17013. }
  17014. if m.Cpu != nil {
  17015. {
  17016. size, err := m.Cpu.MarshalToSizedBuffer(dAtA[:i])
  17017. if err != nil {
  17018. return 0, err
  17019. }
  17020. i -= size
  17021. i = encodeVarintApi(dAtA, i, uint64(size))
  17022. }
  17023. i--
  17024. dAtA[i] = 0x12
  17025. }
  17026. if m.Attributes != nil {
  17027. {
  17028. size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i])
  17029. if err != nil {
  17030. return 0, err
  17031. }
  17032. i -= size
  17033. i = encodeVarintApi(dAtA, i, uint64(size))
  17034. }
  17035. i--
  17036. dAtA[i] = 0xa
  17037. }
  17038. return len(dAtA) - i, nil
  17039. }
  17040. func (m *CpuUsage) Marshal() (dAtA []byte, err error) {
  17041. size := m.Size()
  17042. dAtA = make([]byte, size)
  17043. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17044. if err != nil {
  17045. return nil, err
  17046. }
  17047. return dAtA[:n], nil
  17048. }
  17049. func (m *CpuUsage) MarshalTo(dAtA []byte) (int, error) {
  17050. size := m.Size()
  17051. return m.MarshalToSizedBuffer(dAtA[:size])
  17052. }
  17053. func (m *CpuUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17054. i := len(dAtA)
  17055. _ = i
  17056. var l int
  17057. _ = l
  17058. if m.UsageNanoCores != nil {
  17059. {
  17060. size, err := m.UsageNanoCores.MarshalToSizedBuffer(dAtA[:i])
  17061. if err != nil {
  17062. return 0, err
  17063. }
  17064. i -= size
  17065. i = encodeVarintApi(dAtA, i, uint64(size))
  17066. }
  17067. i--
  17068. dAtA[i] = 0x1a
  17069. }
  17070. if m.UsageCoreNanoSeconds != nil {
  17071. {
  17072. size, err := m.UsageCoreNanoSeconds.MarshalToSizedBuffer(dAtA[:i])
  17073. if err != nil {
  17074. return 0, err
  17075. }
  17076. i -= size
  17077. i = encodeVarintApi(dAtA, i, uint64(size))
  17078. }
  17079. i--
  17080. dAtA[i] = 0x12
  17081. }
  17082. if m.Timestamp != 0 {
  17083. i = encodeVarintApi(dAtA, i, uint64(m.Timestamp))
  17084. i--
  17085. dAtA[i] = 0x8
  17086. }
  17087. return len(dAtA) - i, nil
  17088. }
  17089. func (m *WindowsCpuUsage) Marshal() (dAtA []byte, err error) {
  17090. size := m.Size()
  17091. dAtA = make([]byte, size)
  17092. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17093. if err != nil {
  17094. return nil, err
  17095. }
  17096. return dAtA[:n], nil
  17097. }
  17098. func (m *WindowsCpuUsage) MarshalTo(dAtA []byte) (int, error) {
  17099. size := m.Size()
  17100. return m.MarshalToSizedBuffer(dAtA[:size])
  17101. }
  17102. func (m *WindowsCpuUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17103. i := len(dAtA)
  17104. _ = i
  17105. var l int
  17106. _ = l
  17107. if m.UsageNanoCores != nil {
  17108. {
  17109. size, err := m.UsageNanoCores.MarshalToSizedBuffer(dAtA[:i])
  17110. if err != nil {
  17111. return 0, err
  17112. }
  17113. i -= size
  17114. i = encodeVarintApi(dAtA, i, uint64(size))
  17115. }
  17116. i--
  17117. dAtA[i] = 0x1a
  17118. }
  17119. if m.UsageCoreNanoSeconds != nil {
  17120. {
  17121. size, err := m.UsageCoreNanoSeconds.MarshalToSizedBuffer(dAtA[:i])
  17122. if err != nil {
  17123. return 0, err
  17124. }
  17125. i -= size
  17126. i = encodeVarintApi(dAtA, i, uint64(size))
  17127. }
  17128. i--
  17129. dAtA[i] = 0x12
  17130. }
  17131. if m.Timestamp != 0 {
  17132. i = encodeVarintApi(dAtA, i, uint64(m.Timestamp))
  17133. i--
  17134. dAtA[i] = 0x8
  17135. }
  17136. return len(dAtA) - i, nil
  17137. }
  17138. func (m *MemoryUsage) Marshal() (dAtA []byte, err error) {
  17139. size := m.Size()
  17140. dAtA = make([]byte, size)
  17141. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17142. if err != nil {
  17143. return nil, err
  17144. }
  17145. return dAtA[:n], nil
  17146. }
  17147. func (m *MemoryUsage) MarshalTo(dAtA []byte) (int, error) {
  17148. size := m.Size()
  17149. return m.MarshalToSizedBuffer(dAtA[:size])
  17150. }
  17151. func (m *MemoryUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17152. i := len(dAtA)
  17153. _ = i
  17154. var l int
  17155. _ = l
  17156. if m.MajorPageFaults != nil {
  17157. {
  17158. size, err := m.MajorPageFaults.MarshalToSizedBuffer(dAtA[:i])
  17159. if err != nil {
  17160. return 0, err
  17161. }
  17162. i -= size
  17163. i = encodeVarintApi(dAtA, i, uint64(size))
  17164. }
  17165. i--
  17166. dAtA[i] = 0x3a
  17167. }
  17168. if m.PageFaults != nil {
  17169. {
  17170. size, err := m.PageFaults.MarshalToSizedBuffer(dAtA[:i])
  17171. if err != nil {
  17172. return 0, err
  17173. }
  17174. i -= size
  17175. i = encodeVarintApi(dAtA, i, uint64(size))
  17176. }
  17177. i--
  17178. dAtA[i] = 0x32
  17179. }
  17180. if m.RssBytes != nil {
  17181. {
  17182. size, err := m.RssBytes.MarshalToSizedBuffer(dAtA[:i])
  17183. if err != nil {
  17184. return 0, err
  17185. }
  17186. i -= size
  17187. i = encodeVarintApi(dAtA, i, uint64(size))
  17188. }
  17189. i--
  17190. dAtA[i] = 0x2a
  17191. }
  17192. if m.UsageBytes != nil {
  17193. {
  17194. size, err := m.UsageBytes.MarshalToSizedBuffer(dAtA[:i])
  17195. if err != nil {
  17196. return 0, err
  17197. }
  17198. i -= size
  17199. i = encodeVarintApi(dAtA, i, uint64(size))
  17200. }
  17201. i--
  17202. dAtA[i] = 0x22
  17203. }
  17204. if m.AvailableBytes != nil {
  17205. {
  17206. size, err := m.AvailableBytes.MarshalToSizedBuffer(dAtA[:i])
  17207. if err != nil {
  17208. return 0, err
  17209. }
  17210. i -= size
  17211. i = encodeVarintApi(dAtA, i, uint64(size))
  17212. }
  17213. i--
  17214. dAtA[i] = 0x1a
  17215. }
  17216. if m.WorkingSetBytes != nil {
  17217. {
  17218. size, err := m.WorkingSetBytes.MarshalToSizedBuffer(dAtA[:i])
  17219. if err != nil {
  17220. return 0, err
  17221. }
  17222. i -= size
  17223. i = encodeVarintApi(dAtA, i, uint64(size))
  17224. }
  17225. i--
  17226. dAtA[i] = 0x12
  17227. }
  17228. if m.Timestamp != 0 {
  17229. i = encodeVarintApi(dAtA, i, uint64(m.Timestamp))
  17230. i--
  17231. dAtA[i] = 0x8
  17232. }
  17233. return len(dAtA) - i, nil
  17234. }
  17235. func (m *SwapUsage) Marshal() (dAtA []byte, err error) {
  17236. size := m.Size()
  17237. dAtA = make([]byte, size)
  17238. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17239. if err != nil {
  17240. return nil, err
  17241. }
  17242. return dAtA[:n], nil
  17243. }
  17244. func (m *SwapUsage) MarshalTo(dAtA []byte) (int, error) {
  17245. size := m.Size()
  17246. return m.MarshalToSizedBuffer(dAtA[:size])
  17247. }
  17248. func (m *SwapUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17249. i := len(dAtA)
  17250. _ = i
  17251. var l int
  17252. _ = l
  17253. if m.SwapUsageBytes != nil {
  17254. {
  17255. size, err := m.SwapUsageBytes.MarshalToSizedBuffer(dAtA[:i])
  17256. if err != nil {
  17257. return 0, err
  17258. }
  17259. i -= size
  17260. i = encodeVarintApi(dAtA, i, uint64(size))
  17261. }
  17262. i--
  17263. dAtA[i] = 0x1a
  17264. }
  17265. if m.SwapAvailableBytes != nil {
  17266. {
  17267. size, err := m.SwapAvailableBytes.MarshalToSizedBuffer(dAtA[:i])
  17268. if err != nil {
  17269. return 0, err
  17270. }
  17271. i -= size
  17272. i = encodeVarintApi(dAtA, i, uint64(size))
  17273. }
  17274. i--
  17275. dAtA[i] = 0x12
  17276. }
  17277. if m.Timestamp != 0 {
  17278. i = encodeVarintApi(dAtA, i, uint64(m.Timestamp))
  17279. i--
  17280. dAtA[i] = 0x8
  17281. }
  17282. return len(dAtA) - i, nil
  17283. }
  17284. func (m *WindowsMemoryUsage) Marshal() (dAtA []byte, err error) {
  17285. size := m.Size()
  17286. dAtA = make([]byte, size)
  17287. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17288. if err != nil {
  17289. return nil, err
  17290. }
  17291. return dAtA[:n], nil
  17292. }
  17293. func (m *WindowsMemoryUsage) MarshalTo(dAtA []byte) (int, error) {
  17294. size := m.Size()
  17295. return m.MarshalToSizedBuffer(dAtA[:size])
  17296. }
  17297. func (m *WindowsMemoryUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17298. i := len(dAtA)
  17299. _ = i
  17300. var l int
  17301. _ = l
  17302. if m.CommitMemoryBytes != nil {
  17303. {
  17304. size, err := m.CommitMemoryBytes.MarshalToSizedBuffer(dAtA[:i])
  17305. if err != nil {
  17306. return 0, err
  17307. }
  17308. i -= size
  17309. i = encodeVarintApi(dAtA, i, uint64(size))
  17310. }
  17311. i--
  17312. dAtA[i] = 0x2a
  17313. }
  17314. if m.PageFaults != nil {
  17315. {
  17316. size, err := m.PageFaults.MarshalToSizedBuffer(dAtA[:i])
  17317. if err != nil {
  17318. return 0, err
  17319. }
  17320. i -= size
  17321. i = encodeVarintApi(dAtA, i, uint64(size))
  17322. }
  17323. i--
  17324. dAtA[i] = 0x22
  17325. }
  17326. if m.AvailableBytes != nil {
  17327. {
  17328. size, err := m.AvailableBytes.MarshalToSizedBuffer(dAtA[:i])
  17329. if err != nil {
  17330. return 0, err
  17331. }
  17332. i -= size
  17333. i = encodeVarintApi(dAtA, i, uint64(size))
  17334. }
  17335. i--
  17336. dAtA[i] = 0x1a
  17337. }
  17338. if m.WorkingSetBytes != nil {
  17339. {
  17340. size, err := m.WorkingSetBytes.MarshalToSizedBuffer(dAtA[:i])
  17341. if err != nil {
  17342. return 0, err
  17343. }
  17344. i -= size
  17345. i = encodeVarintApi(dAtA, i, uint64(size))
  17346. }
  17347. i--
  17348. dAtA[i] = 0x12
  17349. }
  17350. if m.Timestamp != 0 {
  17351. i = encodeVarintApi(dAtA, i, uint64(m.Timestamp))
  17352. i--
  17353. dAtA[i] = 0x8
  17354. }
  17355. return len(dAtA) - i, nil
  17356. }
  17357. func (m *ReopenContainerLogRequest) Marshal() (dAtA []byte, err error) {
  17358. size := m.Size()
  17359. dAtA = make([]byte, size)
  17360. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17361. if err != nil {
  17362. return nil, err
  17363. }
  17364. return dAtA[:n], nil
  17365. }
  17366. func (m *ReopenContainerLogRequest) MarshalTo(dAtA []byte) (int, error) {
  17367. size := m.Size()
  17368. return m.MarshalToSizedBuffer(dAtA[:size])
  17369. }
  17370. func (m *ReopenContainerLogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17371. i := len(dAtA)
  17372. _ = i
  17373. var l int
  17374. _ = l
  17375. if len(m.ContainerId) > 0 {
  17376. i -= len(m.ContainerId)
  17377. copy(dAtA[i:], m.ContainerId)
  17378. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerId)))
  17379. i--
  17380. dAtA[i] = 0xa
  17381. }
  17382. return len(dAtA) - i, nil
  17383. }
  17384. func (m *ReopenContainerLogResponse) Marshal() (dAtA []byte, err error) {
  17385. size := m.Size()
  17386. dAtA = make([]byte, size)
  17387. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17388. if err != nil {
  17389. return nil, err
  17390. }
  17391. return dAtA[:n], nil
  17392. }
  17393. func (m *ReopenContainerLogResponse) MarshalTo(dAtA []byte) (int, error) {
  17394. size := m.Size()
  17395. return m.MarshalToSizedBuffer(dAtA[:size])
  17396. }
  17397. func (m *ReopenContainerLogResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17398. i := len(dAtA)
  17399. _ = i
  17400. var l int
  17401. _ = l
  17402. return len(dAtA) - i, nil
  17403. }
  17404. func (m *CheckpointContainerRequest) Marshal() (dAtA []byte, err error) {
  17405. size := m.Size()
  17406. dAtA = make([]byte, size)
  17407. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17408. if err != nil {
  17409. return nil, err
  17410. }
  17411. return dAtA[:n], nil
  17412. }
  17413. func (m *CheckpointContainerRequest) MarshalTo(dAtA []byte) (int, error) {
  17414. size := m.Size()
  17415. return m.MarshalToSizedBuffer(dAtA[:size])
  17416. }
  17417. func (m *CheckpointContainerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17418. i := len(dAtA)
  17419. _ = i
  17420. var l int
  17421. _ = l
  17422. if m.Timeout != 0 {
  17423. i = encodeVarintApi(dAtA, i, uint64(m.Timeout))
  17424. i--
  17425. dAtA[i] = 0x18
  17426. }
  17427. if len(m.Location) > 0 {
  17428. i -= len(m.Location)
  17429. copy(dAtA[i:], m.Location)
  17430. i = encodeVarintApi(dAtA, i, uint64(len(m.Location)))
  17431. i--
  17432. dAtA[i] = 0x12
  17433. }
  17434. if len(m.ContainerId) > 0 {
  17435. i -= len(m.ContainerId)
  17436. copy(dAtA[i:], m.ContainerId)
  17437. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerId)))
  17438. i--
  17439. dAtA[i] = 0xa
  17440. }
  17441. return len(dAtA) - i, nil
  17442. }
  17443. func (m *CheckpointContainerResponse) Marshal() (dAtA []byte, err error) {
  17444. size := m.Size()
  17445. dAtA = make([]byte, size)
  17446. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17447. if err != nil {
  17448. return nil, err
  17449. }
  17450. return dAtA[:n], nil
  17451. }
  17452. func (m *CheckpointContainerResponse) MarshalTo(dAtA []byte) (int, error) {
  17453. size := m.Size()
  17454. return m.MarshalToSizedBuffer(dAtA[:size])
  17455. }
  17456. func (m *CheckpointContainerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17457. i := len(dAtA)
  17458. _ = i
  17459. var l int
  17460. _ = l
  17461. return len(dAtA) - i, nil
  17462. }
  17463. func (m *GetEventsRequest) Marshal() (dAtA []byte, err error) {
  17464. size := m.Size()
  17465. dAtA = make([]byte, size)
  17466. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17467. if err != nil {
  17468. return nil, err
  17469. }
  17470. return dAtA[:n], nil
  17471. }
  17472. func (m *GetEventsRequest) MarshalTo(dAtA []byte) (int, error) {
  17473. size := m.Size()
  17474. return m.MarshalToSizedBuffer(dAtA[:size])
  17475. }
  17476. func (m *GetEventsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17477. i := len(dAtA)
  17478. _ = i
  17479. var l int
  17480. _ = l
  17481. return len(dAtA) - i, nil
  17482. }
  17483. func (m *ContainerEventResponse) Marshal() (dAtA []byte, err error) {
  17484. size := m.Size()
  17485. dAtA = make([]byte, size)
  17486. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17487. if err != nil {
  17488. return nil, err
  17489. }
  17490. return dAtA[:n], nil
  17491. }
  17492. func (m *ContainerEventResponse) MarshalTo(dAtA []byte) (int, error) {
  17493. size := m.Size()
  17494. return m.MarshalToSizedBuffer(dAtA[:size])
  17495. }
  17496. func (m *ContainerEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17497. i := len(dAtA)
  17498. _ = i
  17499. var l int
  17500. _ = l
  17501. if len(m.ContainersStatuses) > 0 {
  17502. for iNdEx := len(m.ContainersStatuses) - 1; iNdEx >= 0; iNdEx-- {
  17503. {
  17504. size, err := m.ContainersStatuses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  17505. if err != nil {
  17506. return 0, err
  17507. }
  17508. i -= size
  17509. i = encodeVarintApi(dAtA, i, uint64(size))
  17510. }
  17511. i--
  17512. dAtA[i] = 0x2a
  17513. }
  17514. }
  17515. if m.PodSandboxStatus != nil {
  17516. {
  17517. size, err := m.PodSandboxStatus.MarshalToSizedBuffer(dAtA[:i])
  17518. if err != nil {
  17519. return 0, err
  17520. }
  17521. i -= size
  17522. i = encodeVarintApi(dAtA, i, uint64(size))
  17523. }
  17524. i--
  17525. dAtA[i] = 0x22
  17526. }
  17527. if m.CreatedAt != 0 {
  17528. i = encodeVarintApi(dAtA, i, uint64(m.CreatedAt))
  17529. i--
  17530. dAtA[i] = 0x18
  17531. }
  17532. if m.ContainerEventType != 0 {
  17533. i = encodeVarintApi(dAtA, i, uint64(m.ContainerEventType))
  17534. i--
  17535. dAtA[i] = 0x10
  17536. }
  17537. if len(m.ContainerId) > 0 {
  17538. i -= len(m.ContainerId)
  17539. copy(dAtA[i:], m.ContainerId)
  17540. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerId)))
  17541. i--
  17542. dAtA[i] = 0xa
  17543. }
  17544. return len(dAtA) - i, nil
  17545. }
  17546. func (m *ListMetricDescriptorsRequest) Marshal() (dAtA []byte, err error) {
  17547. size := m.Size()
  17548. dAtA = make([]byte, size)
  17549. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17550. if err != nil {
  17551. return nil, err
  17552. }
  17553. return dAtA[:n], nil
  17554. }
  17555. func (m *ListMetricDescriptorsRequest) MarshalTo(dAtA []byte) (int, error) {
  17556. size := m.Size()
  17557. return m.MarshalToSizedBuffer(dAtA[:size])
  17558. }
  17559. func (m *ListMetricDescriptorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17560. i := len(dAtA)
  17561. _ = i
  17562. var l int
  17563. _ = l
  17564. return len(dAtA) - i, nil
  17565. }
  17566. func (m *ListMetricDescriptorsResponse) Marshal() (dAtA []byte, err error) {
  17567. size := m.Size()
  17568. dAtA = make([]byte, size)
  17569. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17570. if err != nil {
  17571. return nil, err
  17572. }
  17573. return dAtA[:n], nil
  17574. }
  17575. func (m *ListMetricDescriptorsResponse) MarshalTo(dAtA []byte) (int, error) {
  17576. size := m.Size()
  17577. return m.MarshalToSizedBuffer(dAtA[:size])
  17578. }
  17579. func (m *ListMetricDescriptorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17580. i := len(dAtA)
  17581. _ = i
  17582. var l int
  17583. _ = l
  17584. if len(m.Descriptors) > 0 {
  17585. for iNdEx := len(m.Descriptors) - 1; iNdEx >= 0; iNdEx-- {
  17586. {
  17587. size, err := m.Descriptors[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  17588. if err != nil {
  17589. return 0, err
  17590. }
  17591. i -= size
  17592. i = encodeVarintApi(dAtA, i, uint64(size))
  17593. }
  17594. i--
  17595. dAtA[i] = 0xa
  17596. }
  17597. }
  17598. return len(dAtA) - i, nil
  17599. }
  17600. func (m *MetricDescriptor) Marshal() (dAtA []byte, err error) {
  17601. size := m.Size()
  17602. dAtA = make([]byte, size)
  17603. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17604. if err != nil {
  17605. return nil, err
  17606. }
  17607. return dAtA[:n], nil
  17608. }
  17609. func (m *MetricDescriptor) MarshalTo(dAtA []byte) (int, error) {
  17610. size := m.Size()
  17611. return m.MarshalToSizedBuffer(dAtA[:size])
  17612. }
  17613. func (m *MetricDescriptor) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17614. i := len(dAtA)
  17615. _ = i
  17616. var l int
  17617. _ = l
  17618. if len(m.LabelKeys) > 0 {
  17619. for iNdEx := len(m.LabelKeys) - 1; iNdEx >= 0; iNdEx-- {
  17620. i -= len(m.LabelKeys[iNdEx])
  17621. copy(dAtA[i:], m.LabelKeys[iNdEx])
  17622. i = encodeVarintApi(dAtA, i, uint64(len(m.LabelKeys[iNdEx])))
  17623. i--
  17624. dAtA[i] = 0x1a
  17625. }
  17626. }
  17627. if len(m.Help) > 0 {
  17628. i -= len(m.Help)
  17629. copy(dAtA[i:], m.Help)
  17630. i = encodeVarintApi(dAtA, i, uint64(len(m.Help)))
  17631. i--
  17632. dAtA[i] = 0x12
  17633. }
  17634. if len(m.Name) > 0 {
  17635. i -= len(m.Name)
  17636. copy(dAtA[i:], m.Name)
  17637. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  17638. i--
  17639. dAtA[i] = 0xa
  17640. }
  17641. return len(dAtA) - i, nil
  17642. }
  17643. func (m *ListPodSandboxMetricsRequest) Marshal() (dAtA []byte, err error) {
  17644. size := m.Size()
  17645. dAtA = make([]byte, size)
  17646. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17647. if err != nil {
  17648. return nil, err
  17649. }
  17650. return dAtA[:n], nil
  17651. }
  17652. func (m *ListPodSandboxMetricsRequest) MarshalTo(dAtA []byte) (int, error) {
  17653. size := m.Size()
  17654. return m.MarshalToSizedBuffer(dAtA[:size])
  17655. }
  17656. func (m *ListPodSandboxMetricsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17657. i := len(dAtA)
  17658. _ = i
  17659. var l int
  17660. _ = l
  17661. return len(dAtA) - i, nil
  17662. }
  17663. func (m *ListPodSandboxMetricsResponse) Marshal() (dAtA []byte, err error) {
  17664. size := m.Size()
  17665. dAtA = make([]byte, size)
  17666. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17667. if err != nil {
  17668. return nil, err
  17669. }
  17670. return dAtA[:n], nil
  17671. }
  17672. func (m *ListPodSandboxMetricsResponse) MarshalTo(dAtA []byte) (int, error) {
  17673. size := m.Size()
  17674. return m.MarshalToSizedBuffer(dAtA[:size])
  17675. }
  17676. func (m *ListPodSandboxMetricsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17677. i := len(dAtA)
  17678. _ = i
  17679. var l int
  17680. _ = l
  17681. if len(m.PodMetrics) > 0 {
  17682. for iNdEx := len(m.PodMetrics) - 1; iNdEx >= 0; iNdEx-- {
  17683. {
  17684. size, err := m.PodMetrics[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  17685. if err != nil {
  17686. return 0, err
  17687. }
  17688. i -= size
  17689. i = encodeVarintApi(dAtA, i, uint64(size))
  17690. }
  17691. i--
  17692. dAtA[i] = 0xa
  17693. }
  17694. }
  17695. return len(dAtA) - i, nil
  17696. }
  17697. func (m *PodSandboxMetrics) Marshal() (dAtA []byte, err error) {
  17698. size := m.Size()
  17699. dAtA = make([]byte, size)
  17700. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17701. if err != nil {
  17702. return nil, err
  17703. }
  17704. return dAtA[:n], nil
  17705. }
  17706. func (m *PodSandboxMetrics) MarshalTo(dAtA []byte) (int, error) {
  17707. size := m.Size()
  17708. return m.MarshalToSizedBuffer(dAtA[:size])
  17709. }
  17710. func (m *PodSandboxMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17711. i := len(dAtA)
  17712. _ = i
  17713. var l int
  17714. _ = l
  17715. if len(m.ContainerMetrics) > 0 {
  17716. for iNdEx := len(m.ContainerMetrics) - 1; iNdEx >= 0; iNdEx-- {
  17717. {
  17718. size, err := m.ContainerMetrics[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  17719. if err != nil {
  17720. return 0, err
  17721. }
  17722. i -= size
  17723. i = encodeVarintApi(dAtA, i, uint64(size))
  17724. }
  17725. i--
  17726. dAtA[i] = 0x1a
  17727. }
  17728. }
  17729. if len(m.Metrics) > 0 {
  17730. for iNdEx := len(m.Metrics) - 1; iNdEx >= 0; iNdEx-- {
  17731. {
  17732. size, err := m.Metrics[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  17733. if err != nil {
  17734. return 0, err
  17735. }
  17736. i -= size
  17737. i = encodeVarintApi(dAtA, i, uint64(size))
  17738. }
  17739. i--
  17740. dAtA[i] = 0x12
  17741. }
  17742. }
  17743. if len(m.PodSandboxId) > 0 {
  17744. i -= len(m.PodSandboxId)
  17745. copy(dAtA[i:], m.PodSandboxId)
  17746. i = encodeVarintApi(dAtA, i, uint64(len(m.PodSandboxId)))
  17747. i--
  17748. dAtA[i] = 0xa
  17749. }
  17750. return len(dAtA) - i, nil
  17751. }
  17752. func (m *ContainerMetrics) Marshal() (dAtA []byte, err error) {
  17753. size := m.Size()
  17754. dAtA = make([]byte, size)
  17755. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17756. if err != nil {
  17757. return nil, err
  17758. }
  17759. return dAtA[:n], nil
  17760. }
  17761. func (m *ContainerMetrics) MarshalTo(dAtA []byte) (int, error) {
  17762. size := m.Size()
  17763. return m.MarshalToSizedBuffer(dAtA[:size])
  17764. }
  17765. func (m *ContainerMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17766. i := len(dAtA)
  17767. _ = i
  17768. var l int
  17769. _ = l
  17770. if len(m.Metrics) > 0 {
  17771. for iNdEx := len(m.Metrics) - 1; iNdEx >= 0; iNdEx-- {
  17772. {
  17773. size, err := m.Metrics[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  17774. if err != nil {
  17775. return 0, err
  17776. }
  17777. i -= size
  17778. i = encodeVarintApi(dAtA, i, uint64(size))
  17779. }
  17780. i--
  17781. dAtA[i] = 0x12
  17782. }
  17783. }
  17784. if len(m.ContainerId) > 0 {
  17785. i -= len(m.ContainerId)
  17786. copy(dAtA[i:], m.ContainerId)
  17787. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerId)))
  17788. i--
  17789. dAtA[i] = 0xa
  17790. }
  17791. return len(dAtA) - i, nil
  17792. }
  17793. func (m *Metric) Marshal() (dAtA []byte, err error) {
  17794. size := m.Size()
  17795. dAtA = make([]byte, size)
  17796. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17797. if err != nil {
  17798. return nil, err
  17799. }
  17800. return dAtA[:n], nil
  17801. }
  17802. func (m *Metric) MarshalTo(dAtA []byte) (int, error) {
  17803. size := m.Size()
  17804. return m.MarshalToSizedBuffer(dAtA[:size])
  17805. }
  17806. func (m *Metric) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17807. i := len(dAtA)
  17808. _ = i
  17809. var l int
  17810. _ = l
  17811. if m.Value != nil {
  17812. {
  17813. size, err := m.Value.MarshalToSizedBuffer(dAtA[:i])
  17814. if err != nil {
  17815. return 0, err
  17816. }
  17817. i -= size
  17818. i = encodeVarintApi(dAtA, i, uint64(size))
  17819. }
  17820. i--
  17821. dAtA[i] = 0x2a
  17822. }
  17823. if len(m.LabelValues) > 0 {
  17824. for iNdEx := len(m.LabelValues) - 1; iNdEx >= 0; iNdEx-- {
  17825. i -= len(m.LabelValues[iNdEx])
  17826. copy(dAtA[i:], m.LabelValues[iNdEx])
  17827. i = encodeVarintApi(dAtA, i, uint64(len(m.LabelValues[iNdEx])))
  17828. i--
  17829. dAtA[i] = 0x22
  17830. }
  17831. }
  17832. if m.MetricType != 0 {
  17833. i = encodeVarintApi(dAtA, i, uint64(m.MetricType))
  17834. i--
  17835. dAtA[i] = 0x18
  17836. }
  17837. if m.Timestamp != 0 {
  17838. i = encodeVarintApi(dAtA, i, uint64(m.Timestamp))
  17839. i--
  17840. dAtA[i] = 0x10
  17841. }
  17842. if len(m.Name) > 0 {
  17843. i -= len(m.Name)
  17844. copy(dAtA[i:], m.Name)
  17845. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  17846. i--
  17847. dAtA[i] = 0xa
  17848. }
  17849. return len(dAtA) - i, nil
  17850. }
  17851. func (m *RuntimeConfigRequest) Marshal() (dAtA []byte, err error) {
  17852. size := m.Size()
  17853. dAtA = make([]byte, size)
  17854. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17855. if err != nil {
  17856. return nil, err
  17857. }
  17858. return dAtA[:n], nil
  17859. }
  17860. func (m *RuntimeConfigRequest) MarshalTo(dAtA []byte) (int, error) {
  17861. size := m.Size()
  17862. return m.MarshalToSizedBuffer(dAtA[:size])
  17863. }
  17864. func (m *RuntimeConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17865. i := len(dAtA)
  17866. _ = i
  17867. var l int
  17868. _ = l
  17869. return len(dAtA) - i, nil
  17870. }
  17871. func (m *RuntimeConfigResponse) Marshal() (dAtA []byte, err error) {
  17872. size := m.Size()
  17873. dAtA = make([]byte, size)
  17874. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17875. if err != nil {
  17876. return nil, err
  17877. }
  17878. return dAtA[:n], nil
  17879. }
  17880. func (m *RuntimeConfigResponse) MarshalTo(dAtA []byte) (int, error) {
  17881. size := m.Size()
  17882. return m.MarshalToSizedBuffer(dAtA[:size])
  17883. }
  17884. func (m *RuntimeConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17885. i := len(dAtA)
  17886. _ = i
  17887. var l int
  17888. _ = l
  17889. if m.Linux != nil {
  17890. {
  17891. size, err := m.Linux.MarshalToSizedBuffer(dAtA[:i])
  17892. if err != nil {
  17893. return 0, err
  17894. }
  17895. i -= size
  17896. i = encodeVarintApi(dAtA, i, uint64(size))
  17897. }
  17898. i--
  17899. dAtA[i] = 0xa
  17900. }
  17901. return len(dAtA) - i, nil
  17902. }
  17903. func (m *LinuxRuntimeConfiguration) Marshal() (dAtA []byte, err error) {
  17904. size := m.Size()
  17905. dAtA = make([]byte, size)
  17906. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  17907. if err != nil {
  17908. return nil, err
  17909. }
  17910. return dAtA[:n], nil
  17911. }
  17912. func (m *LinuxRuntimeConfiguration) MarshalTo(dAtA []byte) (int, error) {
  17913. size := m.Size()
  17914. return m.MarshalToSizedBuffer(dAtA[:size])
  17915. }
  17916. func (m *LinuxRuntimeConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  17917. i := len(dAtA)
  17918. _ = i
  17919. var l int
  17920. _ = l
  17921. if m.CgroupDriver != 0 {
  17922. i = encodeVarintApi(dAtA, i, uint64(m.CgroupDriver))
  17923. i--
  17924. dAtA[i] = 0x8
  17925. }
  17926. return len(dAtA) - i, nil
  17927. }
  17928. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  17929. offset -= sovApi(v)
  17930. base := offset
  17931. for v >= 1<<7 {
  17932. dAtA[offset] = uint8(v&0x7f | 0x80)
  17933. v >>= 7
  17934. offset++
  17935. }
  17936. dAtA[offset] = uint8(v)
  17937. return base
  17938. }
  17939. func (m *VersionRequest) Size() (n int) {
  17940. if m == nil {
  17941. return 0
  17942. }
  17943. var l int
  17944. _ = l
  17945. l = len(m.Version)
  17946. if l > 0 {
  17947. n += 1 + l + sovApi(uint64(l))
  17948. }
  17949. return n
  17950. }
  17951. func (m *VersionResponse) Size() (n int) {
  17952. if m == nil {
  17953. return 0
  17954. }
  17955. var l int
  17956. _ = l
  17957. l = len(m.Version)
  17958. if l > 0 {
  17959. n += 1 + l + sovApi(uint64(l))
  17960. }
  17961. l = len(m.RuntimeName)
  17962. if l > 0 {
  17963. n += 1 + l + sovApi(uint64(l))
  17964. }
  17965. l = len(m.RuntimeVersion)
  17966. if l > 0 {
  17967. n += 1 + l + sovApi(uint64(l))
  17968. }
  17969. l = len(m.RuntimeApiVersion)
  17970. if l > 0 {
  17971. n += 1 + l + sovApi(uint64(l))
  17972. }
  17973. return n
  17974. }
  17975. func (m *DNSConfig) Size() (n int) {
  17976. if m == nil {
  17977. return 0
  17978. }
  17979. var l int
  17980. _ = l
  17981. if len(m.Servers) > 0 {
  17982. for _, s := range m.Servers {
  17983. l = len(s)
  17984. n += 1 + l + sovApi(uint64(l))
  17985. }
  17986. }
  17987. if len(m.Searches) > 0 {
  17988. for _, s := range m.Searches {
  17989. l = len(s)
  17990. n += 1 + l + sovApi(uint64(l))
  17991. }
  17992. }
  17993. if len(m.Options) > 0 {
  17994. for _, s := range m.Options {
  17995. l = len(s)
  17996. n += 1 + l + sovApi(uint64(l))
  17997. }
  17998. }
  17999. return n
  18000. }
  18001. func (m *PortMapping) Size() (n int) {
  18002. if m == nil {
  18003. return 0
  18004. }
  18005. var l int
  18006. _ = l
  18007. if m.Protocol != 0 {
  18008. n += 1 + sovApi(uint64(m.Protocol))
  18009. }
  18010. if m.ContainerPort != 0 {
  18011. n += 1 + sovApi(uint64(m.ContainerPort))
  18012. }
  18013. if m.HostPort != 0 {
  18014. n += 1 + sovApi(uint64(m.HostPort))
  18015. }
  18016. l = len(m.HostIp)
  18017. if l > 0 {
  18018. n += 1 + l + sovApi(uint64(l))
  18019. }
  18020. return n
  18021. }
  18022. func (m *Mount) Size() (n int) {
  18023. if m == nil {
  18024. return 0
  18025. }
  18026. var l int
  18027. _ = l
  18028. l = len(m.ContainerPath)
  18029. if l > 0 {
  18030. n += 1 + l + sovApi(uint64(l))
  18031. }
  18032. l = len(m.HostPath)
  18033. if l > 0 {
  18034. n += 1 + l + sovApi(uint64(l))
  18035. }
  18036. if m.Readonly {
  18037. n += 2
  18038. }
  18039. if m.SelinuxRelabel {
  18040. n += 2
  18041. }
  18042. if m.Propagation != 0 {
  18043. n += 1 + sovApi(uint64(m.Propagation))
  18044. }
  18045. if len(m.UidMappings) > 0 {
  18046. for _, e := range m.UidMappings {
  18047. l = e.Size()
  18048. n += 1 + l + sovApi(uint64(l))
  18049. }
  18050. }
  18051. if len(m.GidMappings) > 0 {
  18052. for _, e := range m.GidMappings {
  18053. l = e.Size()
  18054. n += 1 + l + sovApi(uint64(l))
  18055. }
  18056. }
  18057. return n
  18058. }
  18059. func (m *IDMapping) Size() (n int) {
  18060. if m == nil {
  18061. return 0
  18062. }
  18063. var l int
  18064. _ = l
  18065. if m.HostId != 0 {
  18066. n += 1 + sovApi(uint64(m.HostId))
  18067. }
  18068. if m.ContainerId != 0 {
  18069. n += 1 + sovApi(uint64(m.ContainerId))
  18070. }
  18071. if m.Length != 0 {
  18072. n += 1 + sovApi(uint64(m.Length))
  18073. }
  18074. return n
  18075. }
  18076. func (m *UserNamespace) Size() (n int) {
  18077. if m == nil {
  18078. return 0
  18079. }
  18080. var l int
  18081. _ = l
  18082. if m.Mode != 0 {
  18083. n += 1 + sovApi(uint64(m.Mode))
  18084. }
  18085. if len(m.Uids) > 0 {
  18086. for _, e := range m.Uids {
  18087. l = e.Size()
  18088. n += 1 + l + sovApi(uint64(l))
  18089. }
  18090. }
  18091. if len(m.Gids) > 0 {
  18092. for _, e := range m.Gids {
  18093. l = e.Size()
  18094. n += 1 + l + sovApi(uint64(l))
  18095. }
  18096. }
  18097. return n
  18098. }
  18099. func (m *NamespaceOption) Size() (n int) {
  18100. if m == nil {
  18101. return 0
  18102. }
  18103. var l int
  18104. _ = l
  18105. if m.Network != 0 {
  18106. n += 1 + sovApi(uint64(m.Network))
  18107. }
  18108. if m.Pid != 0 {
  18109. n += 1 + sovApi(uint64(m.Pid))
  18110. }
  18111. if m.Ipc != 0 {
  18112. n += 1 + sovApi(uint64(m.Ipc))
  18113. }
  18114. l = len(m.TargetId)
  18115. if l > 0 {
  18116. n += 1 + l + sovApi(uint64(l))
  18117. }
  18118. if m.UsernsOptions != nil {
  18119. l = m.UsernsOptions.Size()
  18120. n += 1 + l + sovApi(uint64(l))
  18121. }
  18122. return n
  18123. }
  18124. func (m *Int64Value) Size() (n int) {
  18125. if m == nil {
  18126. return 0
  18127. }
  18128. var l int
  18129. _ = l
  18130. if m.Value != 0 {
  18131. n += 1 + sovApi(uint64(m.Value))
  18132. }
  18133. return n
  18134. }
  18135. func (m *LinuxSandboxSecurityContext) Size() (n int) {
  18136. if m == nil {
  18137. return 0
  18138. }
  18139. var l int
  18140. _ = l
  18141. if m.NamespaceOptions != nil {
  18142. l = m.NamespaceOptions.Size()
  18143. n += 1 + l + sovApi(uint64(l))
  18144. }
  18145. if m.SelinuxOptions != nil {
  18146. l = m.SelinuxOptions.Size()
  18147. n += 1 + l + sovApi(uint64(l))
  18148. }
  18149. if m.RunAsUser != nil {
  18150. l = m.RunAsUser.Size()
  18151. n += 1 + l + sovApi(uint64(l))
  18152. }
  18153. if m.ReadonlyRootfs {
  18154. n += 2
  18155. }
  18156. if len(m.SupplementalGroups) > 0 {
  18157. l = 0
  18158. for _, e := range m.SupplementalGroups {
  18159. l += sovApi(uint64(e))
  18160. }
  18161. n += 1 + sovApi(uint64(l)) + l
  18162. }
  18163. if m.Privileged {
  18164. n += 2
  18165. }
  18166. l = len(m.SeccompProfilePath)
  18167. if l > 0 {
  18168. n += 1 + l + sovApi(uint64(l))
  18169. }
  18170. if m.RunAsGroup != nil {
  18171. l = m.RunAsGroup.Size()
  18172. n += 1 + l + sovApi(uint64(l))
  18173. }
  18174. if m.Seccomp != nil {
  18175. l = m.Seccomp.Size()
  18176. n += 1 + l + sovApi(uint64(l))
  18177. }
  18178. if m.Apparmor != nil {
  18179. l = m.Apparmor.Size()
  18180. n += 1 + l + sovApi(uint64(l))
  18181. }
  18182. return n
  18183. }
  18184. func (m *SecurityProfile) Size() (n int) {
  18185. if m == nil {
  18186. return 0
  18187. }
  18188. var l int
  18189. _ = l
  18190. if m.ProfileType != 0 {
  18191. n += 1 + sovApi(uint64(m.ProfileType))
  18192. }
  18193. l = len(m.LocalhostRef)
  18194. if l > 0 {
  18195. n += 1 + l + sovApi(uint64(l))
  18196. }
  18197. return n
  18198. }
  18199. func (m *LinuxPodSandboxConfig) Size() (n int) {
  18200. if m == nil {
  18201. return 0
  18202. }
  18203. var l int
  18204. _ = l
  18205. l = len(m.CgroupParent)
  18206. if l > 0 {
  18207. n += 1 + l + sovApi(uint64(l))
  18208. }
  18209. if m.SecurityContext != nil {
  18210. l = m.SecurityContext.Size()
  18211. n += 1 + l + sovApi(uint64(l))
  18212. }
  18213. if len(m.Sysctls) > 0 {
  18214. for k, v := range m.Sysctls {
  18215. _ = k
  18216. _ = v
  18217. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  18218. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  18219. }
  18220. }
  18221. if m.Overhead != nil {
  18222. l = m.Overhead.Size()
  18223. n += 1 + l + sovApi(uint64(l))
  18224. }
  18225. if m.Resources != nil {
  18226. l = m.Resources.Size()
  18227. n += 1 + l + sovApi(uint64(l))
  18228. }
  18229. return n
  18230. }
  18231. func (m *PodSandboxMetadata) Size() (n int) {
  18232. if m == nil {
  18233. return 0
  18234. }
  18235. var l int
  18236. _ = l
  18237. l = len(m.Name)
  18238. if l > 0 {
  18239. n += 1 + l + sovApi(uint64(l))
  18240. }
  18241. l = len(m.Uid)
  18242. if l > 0 {
  18243. n += 1 + l + sovApi(uint64(l))
  18244. }
  18245. l = len(m.Namespace)
  18246. if l > 0 {
  18247. n += 1 + l + sovApi(uint64(l))
  18248. }
  18249. if m.Attempt != 0 {
  18250. n += 1 + sovApi(uint64(m.Attempt))
  18251. }
  18252. return n
  18253. }
  18254. func (m *PodSandboxConfig) Size() (n int) {
  18255. if m == nil {
  18256. return 0
  18257. }
  18258. var l int
  18259. _ = l
  18260. if m.Metadata != nil {
  18261. l = m.Metadata.Size()
  18262. n += 1 + l + sovApi(uint64(l))
  18263. }
  18264. l = len(m.Hostname)
  18265. if l > 0 {
  18266. n += 1 + l + sovApi(uint64(l))
  18267. }
  18268. l = len(m.LogDirectory)
  18269. if l > 0 {
  18270. n += 1 + l + sovApi(uint64(l))
  18271. }
  18272. if m.DnsConfig != nil {
  18273. l = m.DnsConfig.Size()
  18274. n += 1 + l + sovApi(uint64(l))
  18275. }
  18276. if len(m.PortMappings) > 0 {
  18277. for _, e := range m.PortMappings {
  18278. l = e.Size()
  18279. n += 1 + l + sovApi(uint64(l))
  18280. }
  18281. }
  18282. if len(m.Labels) > 0 {
  18283. for k, v := range m.Labels {
  18284. _ = k
  18285. _ = v
  18286. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  18287. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  18288. }
  18289. }
  18290. if len(m.Annotations) > 0 {
  18291. for k, v := range m.Annotations {
  18292. _ = k
  18293. _ = v
  18294. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  18295. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  18296. }
  18297. }
  18298. if m.Linux != nil {
  18299. l = m.Linux.Size()
  18300. n += 1 + l + sovApi(uint64(l))
  18301. }
  18302. if m.Windows != nil {
  18303. l = m.Windows.Size()
  18304. n += 1 + l + sovApi(uint64(l))
  18305. }
  18306. return n
  18307. }
  18308. func (m *RunPodSandboxRequest) Size() (n int) {
  18309. if m == nil {
  18310. return 0
  18311. }
  18312. var l int
  18313. _ = l
  18314. if m.Config != nil {
  18315. l = m.Config.Size()
  18316. n += 1 + l + sovApi(uint64(l))
  18317. }
  18318. l = len(m.RuntimeHandler)
  18319. if l > 0 {
  18320. n += 1 + l + sovApi(uint64(l))
  18321. }
  18322. return n
  18323. }
  18324. func (m *RunPodSandboxResponse) Size() (n int) {
  18325. if m == nil {
  18326. return 0
  18327. }
  18328. var l int
  18329. _ = l
  18330. l = len(m.PodSandboxId)
  18331. if l > 0 {
  18332. n += 1 + l + sovApi(uint64(l))
  18333. }
  18334. return n
  18335. }
  18336. func (m *StopPodSandboxRequest) Size() (n int) {
  18337. if m == nil {
  18338. return 0
  18339. }
  18340. var l int
  18341. _ = l
  18342. l = len(m.PodSandboxId)
  18343. if l > 0 {
  18344. n += 1 + l + sovApi(uint64(l))
  18345. }
  18346. return n
  18347. }
  18348. func (m *StopPodSandboxResponse) Size() (n int) {
  18349. if m == nil {
  18350. return 0
  18351. }
  18352. var l int
  18353. _ = l
  18354. return n
  18355. }
  18356. func (m *RemovePodSandboxRequest) Size() (n int) {
  18357. if m == nil {
  18358. return 0
  18359. }
  18360. var l int
  18361. _ = l
  18362. l = len(m.PodSandboxId)
  18363. if l > 0 {
  18364. n += 1 + l + sovApi(uint64(l))
  18365. }
  18366. return n
  18367. }
  18368. func (m *RemovePodSandboxResponse) Size() (n int) {
  18369. if m == nil {
  18370. return 0
  18371. }
  18372. var l int
  18373. _ = l
  18374. return n
  18375. }
  18376. func (m *PodSandboxStatusRequest) Size() (n int) {
  18377. if m == nil {
  18378. return 0
  18379. }
  18380. var l int
  18381. _ = l
  18382. l = len(m.PodSandboxId)
  18383. if l > 0 {
  18384. n += 1 + l + sovApi(uint64(l))
  18385. }
  18386. if m.Verbose {
  18387. n += 2
  18388. }
  18389. return n
  18390. }
  18391. func (m *PodIP) Size() (n int) {
  18392. if m == nil {
  18393. return 0
  18394. }
  18395. var l int
  18396. _ = l
  18397. l = len(m.Ip)
  18398. if l > 0 {
  18399. n += 1 + l + sovApi(uint64(l))
  18400. }
  18401. return n
  18402. }
  18403. func (m *PodSandboxNetworkStatus) Size() (n int) {
  18404. if m == nil {
  18405. return 0
  18406. }
  18407. var l int
  18408. _ = l
  18409. l = len(m.Ip)
  18410. if l > 0 {
  18411. n += 1 + l + sovApi(uint64(l))
  18412. }
  18413. if len(m.AdditionalIps) > 0 {
  18414. for _, e := range m.AdditionalIps {
  18415. l = e.Size()
  18416. n += 1 + l + sovApi(uint64(l))
  18417. }
  18418. }
  18419. return n
  18420. }
  18421. func (m *Namespace) Size() (n int) {
  18422. if m == nil {
  18423. return 0
  18424. }
  18425. var l int
  18426. _ = l
  18427. if m.Options != nil {
  18428. l = m.Options.Size()
  18429. n += 1 + l + sovApi(uint64(l))
  18430. }
  18431. return n
  18432. }
  18433. func (m *LinuxPodSandboxStatus) Size() (n int) {
  18434. if m == nil {
  18435. return 0
  18436. }
  18437. var l int
  18438. _ = l
  18439. if m.Namespaces != nil {
  18440. l = m.Namespaces.Size()
  18441. n += 1 + l + sovApi(uint64(l))
  18442. }
  18443. return n
  18444. }
  18445. func (m *PodSandboxStatus) Size() (n int) {
  18446. if m == nil {
  18447. return 0
  18448. }
  18449. var l int
  18450. _ = l
  18451. l = len(m.Id)
  18452. if l > 0 {
  18453. n += 1 + l + sovApi(uint64(l))
  18454. }
  18455. if m.Metadata != nil {
  18456. l = m.Metadata.Size()
  18457. n += 1 + l + sovApi(uint64(l))
  18458. }
  18459. if m.State != 0 {
  18460. n += 1 + sovApi(uint64(m.State))
  18461. }
  18462. if m.CreatedAt != 0 {
  18463. n += 1 + sovApi(uint64(m.CreatedAt))
  18464. }
  18465. if m.Network != nil {
  18466. l = m.Network.Size()
  18467. n += 1 + l + sovApi(uint64(l))
  18468. }
  18469. if m.Linux != nil {
  18470. l = m.Linux.Size()
  18471. n += 1 + l + sovApi(uint64(l))
  18472. }
  18473. if len(m.Labels) > 0 {
  18474. for k, v := range m.Labels {
  18475. _ = k
  18476. _ = v
  18477. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  18478. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  18479. }
  18480. }
  18481. if len(m.Annotations) > 0 {
  18482. for k, v := range m.Annotations {
  18483. _ = k
  18484. _ = v
  18485. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  18486. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  18487. }
  18488. }
  18489. l = len(m.RuntimeHandler)
  18490. if l > 0 {
  18491. n += 1 + l + sovApi(uint64(l))
  18492. }
  18493. return n
  18494. }
  18495. func (m *PodSandboxStatusResponse) Size() (n int) {
  18496. if m == nil {
  18497. return 0
  18498. }
  18499. var l int
  18500. _ = l
  18501. if m.Status != nil {
  18502. l = m.Status.Size()
  18503. n += 1 + l + sovApi(uint64(l))
  18504. }
  18505. if len(m.Info) > 0 {
  18506. for k, v := range m.Info {
  18507. _ = k
  18508. _ = v
  18509. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  18510. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  18511. }
  18512. }
  18513. if len(m.ContainersStatuses) > 0 {
  18514. for _, e := range m.ContainersStatuses {
  18515. l = e.Size()
  18516. n += 1 + l + sovApi(uint64(l))
  18517. }
  18518. }
  18519. if m.Timestamp != 0 {
  18520. n += 1 + sovApi(uint64(m.Timestamp))
  18521. }
  18522. return n
  18523. }
  18524. func (m *PodSandboxStateValue) Size() (n int) {
  18525. if m == nil {
  18526. return 0
  18527. }
  18528. var l int
  18529. _ = l
  18530. if m.State != 0 {
  18531. n += 1 + sovApi(uint64(m.State))
  18532. }
  18533. return n
  18534. }
  18535. func (m *PodSandboxFilter) Size() (n int) {
  18536. if m == nil {
  18537. return 0
  18538. }
  18539. var l int
  18540. _ = l
  18541. l = len(m.Id)
  18542. if l > 0 {
  18543. n += 1 + l + sovApi(uint64(l))
  18544. }
  18545. if m.State != nil {
  18546. l = m.State.Size()
  18547. n += 1 + l + sovApi(uint64(l))
  18548. }
  18549. if len(m.LabelSelector) > 0 {
  18550. for k, v := range m.LabelSelector {
  18551. _ = k
  18552. _ = v
  18553. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  18554. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  18555. }
  18556. }
  18557. return n
  18558. }
  18559. func (m *ListPodSandboxRequest) Size() (n int) {
  18560. if m == nil {
  18561. return 0
  18562. }
  18563. var l int
  18564. _ = l
  18565. if m.Filter != nil {
  18566. l = m.Filter.Size()
  18567. n += 1 + l + sovApi(uint64(l))
  18568. }
  18569. return n
  18570. }
  18571. func (m *PodSandbox) Size() (n int) {
  18572. if m == nil {
  18573. return 0
  18574. }
  18575. var l int
  18576. _ = l
  18577. l = len(m.Id)
  18578. if l > 0 {
  18579. n += 1 + l + sovApi(uint64(l))
  18580. }
  18581. if m.Metadata != nil {
  18582. l = m.Metadata.Size()
  18583. n += 1 + l + sovApi(uint64(l))
  18584. }
  18585. if m.State != 0 {
  18586. n += 1 + sovApi(uint64(m.State))
  18587. }
  18588. if m.CreatedAt != 0 {
  18589. n += 1 + sovApi(uint64(m.CreatedAt))
  18590. }
  18591. if len(m.Labels) > 0 {
  18592. for k, v := range m.Labels {
  18593. _ = k
  18594. _ = v
  18595. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  18596. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  18597. }
  18598. }
  18599. if len(m.Annotations) > 0 {
  18600. for k, v := range m.Annotations {
  18601. _ = k
  18602. _ = v
  18603. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  18604. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  18605. }
  18606. }
  18607. l = len(m.RuntimeHandler)
  18608. if l > 0 {
  18609. n += 1 + l + sovApi(uint64(l))
  18610. }
  18611. return n
  18612. }
  18613. func (m *ListPodSandboxResponse) Size() (n int) {
  18614. if m == nil {
  18615. return 0
  18616. }
  18617. var l int
  18618. _ = l
  18619. if len(m.Items) > 0 {
  18620. for _, e := range m.Items {
  18621. l = e.Size()
  18622. n += 1 + l + sovApi(uint64(l))
  18623. }
  18624. }
  18625. return n
  18626. }
  18627. func (m *PodSandboxStatsRequest) Size() (n int) {
  18628. if m == nil {
  18629. return 0
  18630. }
  18631. var l int
  18632. _ = l
  18633. l = len(m.PodSandboxId)
  18634. if l > 0 {
  18635. n += 1 + l + sovApi(uint64(l))
  18636. }
  18637. return n
  18638. }
  18639. func (m *PodSandboxStatsResponse) Size() (n int) {
  18640. if m == nil {
  18641. return 0
  18642. }
  18643. var l int
  18644. _ = l
  18645. if m.Stats != nil {
  18646. l = m.Stats.Size()
  18647. n += 1 + l + sovApi(uint64(l))
  18648. }
  18649. return n
  18650. }
  18651. func (m *PodSandboxStatsFilter) Size() (n int) {
  18652. if m == nil {
  18653. return 0
  18654. }
  18655. var l int
  18656. _ = l
  18657. l = len(m.Id)
  18658. if l > 0 {
  18659. n += 1 + l + sovApi(uint64(l))
  18660. }
  18661. if len(m.LabelSelector) > 0 {
  18662. for k, v := range m.LabelSelector {
  18663. _ = k
  18664. _ = v
  18665. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  18666. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  18667. }
  18668. }
  18669. return n
  18670. }
  18671. func (m *ListPodSandboxStatsRequest) Size() (n int) {
  18672. if m == nil {
  18673. return 0
  18674. }
  18675. var l int
  18676. _ = l
  18677. if m.Filter != nil {
  18678. l = m.Filter.Size()
  18679. n += 1 + l + sovApi(uint64(l))
  18680. }
  18681. return n
  18682. }
  18683. func (m *ListPodSandboxStatsResponse) Size() (n int) {
  18684. if m == nil {
  18685. return 0
  18686. }
  18687. var l int
  18688. _ = l
  18689. if len(m.Stats) > 0 {
  18690. for _, e := range m.Stats {
  18691. l = e.Size()
  18692. n += 1 + l + sovApi(uint64(l))
  18693. }
  18694. }
  18695. return n
  18696. }
  18697. func (m *PodSandboxAttributes) Size() (n int) {
  18698. if m == nil {
  18699. return 0
  18700. }
  18701. var l int
  18702. _ = l
  18703. l = len(m.Id)
  18704. if l > 0 {
  18705. n += 1 + l + sovApi(uint64(l))
  18706. }
  18707. if m.Metadata != nil {
  18708. l = m.Metadata.Size()
  18709. n += 1 + l + sovApi(uint64(l))
  18710. }
  18711. if len(m.Labels) > 0 {
  18712. for k, v := range m.Labels {
  18713. _ = k
  18714. _ = v
  18715. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  18716. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  18717. }
  18718. }
  18719. if len(m.Annotations) > 0 {
  18720. for k, v := range m.Annotations {
  18721. _ = k
  18722. _ = v
  18723. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  18724. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  18725. }
  18726. }
  18727. return n
  18728. }
  18729. func (m *PodSandboxStats) Size() (n int) {
  18730. if m == nil {
  18731. return 0
  18732. }
  18733. var l int
  18734. _ = l
  18735. if m.Attributes != nil {
  18736. l = m.Attributes.Size()
  18737. n += 1 + l + sovApi(uint64(l))
  18738. }
  18739. if m.Linux != nil {
  18740. l = m.Linux.Size()
  18741. n += 1 + l + sovApi(uint64(l))
  18742. }
  18743. if m.Windows != nil {
  18744. l = m.Windows.Size()
  18745. n += 1 + l + sovApi(uint64(l))
  18746. }
  18747. return n
  18748. }
  18749. func (m *LinuxPodSandboxStats) Size() (n int) {
  18750. if m == nil {
  18751. return 0
  18752. }
  18753. var l int
  18754. _ = l
  18755. if m.Cpu != nil {
  18756. l = m.Cpu.Size()
  18757. n += 1 + l + sovApi(uint64(l))
  18758. }
  18759. if m.Memory != nil {
  18760. l = m.Memory.Size()
  18761. n += 1 + l + sovApi(uint64(l))
  18762. }
  18763. if m.Network != nil {
  18764. l = m.Network.Size()
  18765. n += 1 + l + sovApi(uint64(l))
  18766. }
  18767. if m.Process != nil {
  18768. l = m.Process.Size()
  18769. n += 1 + l + sovApi(uint64(l))
  18770. }
  18771. if len(m.Containers) > 0 {
  18772. for _, e := range m.Containers {
  18773. l = e.Size()
  18774. n += 1 + l + sovApi(uint64(l))
  18775. }
  18776. }
  18777. return n
  18778. }
  18779. func (m *WindowsPodSandboxStats) Size() (n int) {
  18780. if m == nil {
  18781. return 0
  18782. }
  18783. var l int
  18784. _ = l
  18785. if m.Cpu != nil {
  18786. l = m.Cpu.Size()
  18787. n += 1 + l + sovApi(uint64(l))
  18788. }
  18789. if m.Memory != nil {
  18790. l = m.Memory.Size()
  18791. n += 1 + l + sovApi(uint64(l))
  18792. }
  18793. if m.Network != nil {
  18794. l = m.Network.Size()
  18795. n += 1 + l + sovApi(uint64(l))
  18796. }
  18797. if m.Process != nil {
  18798. l = m.Process.Size()
  18799. n += 1 + l + sovApi(uint64(l))
  18800. }
  18801. if len(m.Containers) > 0 {
  18802. for _, e := range m.Containers {
  18803. l = e.Size()
  18804. n += 1 + l + sovApi(uint64(l))
  18805. }
  18806. }
  18807. return n
  18808. }
  18809. func (m *NetworkUsage) Size() (n int) {
  18810. if m == nil {
  18811. return 0
  18812. }
  18813. var l int
  18814. _ = l
  18815. if m.Timestamp != 0 {
  18816. n += 1 + sovApi(uint64(m.Timestamp))
  18817. }
  18818. if m.DefaultInterface != nil {
  18819. l = m.DefaultInterface.Size()
  18820. n += 1 + l + sovApi(uint64(l))
  18821. }
  18822. if len(m.Interfaces) > 0 {
  18823. for _, e := range m.Interfaces {
  18824. l = e.Size()
  18825. n += 1 + l + sovApi(uint64(l))
  18826. }
  18827. }
  18828. return n
  18829. }
  18830. func (m *WindowsNetworkUsage) Size() (n int) {
  18831. if m == nil {
  18832. return 0
  18833. }
  18834. var l int
  18835. _ = l
  18836. if m.Timestamp != 0 {
  18837. n += 1 + sovApi(uint64(m.Timestamp))
  18838. }
  18839. if m.DefaultInterface != nil {
  18840. l = m.DefaultInterface.Size()
  18841. n += 1 + l + sovApi(uint64(l))
  18842. }
  18843. if len(m.Interfaces) > 0 {
  18844. for _, e := range m.Interfaces {
  18845. l = e.Size()
  18846. n += 1 + l + sovApi(uint64(l))
  18847. }
  18848. }
  18849. return n
  18850. }
  18851. func (m *NetworkInterfaceUsage) Size() (n int) {
  18852. if m == nil {
  18853. return 0
  18854. }
  18855. var l int
  18856. _ = l
  18857. l = len(m.Name)
  18858. if l > 0 {
  18859. n += 1 + l + sovApi(uint64(l))
  18860. }
  18861. if m.RxBytes != nil {
  18862. l = m.RxBytes.Size()
  18863. n += 1 + l + sovApi(uint64(l))
  18864. }
  18865. if m.RxErrors != nil {
  18866. l = m.RxErrors.Size()
  18867. n += 1 + l + sovApi(uint64(l))
  18868. }
  18869. if m.TxBytes != nil {
  18870. l = m.TxBytes.Size()
  18871. n += 1 + l + sovApi(uint64(l))
  18872. }
  18873. if m.TxErrors != nil {
  18874. l = m.TxErrors.Size()
  18875. n += 1 + l + sovApi(uint64(l))
  18876. }
  18877. return n
  18878. }
  18879. func (m *WindowsNetworkInterfaceUsage) Size() (n int) {
  18880. if m == nil {
  18881. return 0
  18882. }
  18883. var l int
  18884. _ = l
  18885. l = len(m.Name)
  18886. if l > 0 {
  18887. n += 1 + l + sovApi(uint64(l))
  18888. }
  18889. if m.RxBytes != nil {
  18890. l = m.RxBytes.Size()
  18891. n += 1 + l + sovApi(uint64(l))
  18892. }
  18893. if m.RxPacketsDropped != nil {
  18894. l = m.RxPacketsDropped.Size()
  18895. n += 1 + l + sovApi(uint64(l))
  18896. }
  18897. if m.TxBytes != nil {
  18898. l = m.TxBytes.Size()
  18899. n += 1 + l + sovApi(uint64(l))
  18900. }
  18901. if m.TxPacketsDropped != nil {
  18902. l = m.TxPacketsDropped.Size()
  18903. n += 1 + l + sovApi(uint64(l))
  18904. }
  18905. return n
  18906. }
  18907. func (m *ProcessUsage) Size() (n int) {
  18908. if m == nil {
  18909. return 0
  18910. }
  18911. var l int
  18912. _ = l
  18913. if m.Timestamp != 0 {
  18914. n += 1 + sovApi(uint64(m.Timestamp))
  18915. }
  18916. if m.ProcessCount != nil {
  18917. l = m.ProcessCount.Size()
  18918. n += 1 + l + sovApi(uint64(l))
  18919. }
  18920. return n
  18921. }
  18922. func (m *WindowsProcessUsage) Size() (n int) {
  18923. if m == nil {
  18924. return 0
  18925. }
  18926. var l int
  18927. _ = l
  18928. if m.Timestamp != 0 {
  18929. n += 1 + sovApi(uint64(m.Timestamp))
  18930. }
  18931. if m.ProcessCount != nil {
  18932. l = m.ProcessCount.Size()
  18933. n += 1 + l + sovApi(uint64(l))
  18934. }
  18935. return n
  18936. }
  18937. func (m *ImageSpec) Size() (n int) {
  18938. if m == nil {
  18939. return 0
  18940. }
  18941. var l int
  18942. _ = l
  18943. l = len(m.Image)
  18944. if l > 0 {
  18945. n += 1 + l + sovApi(uint64(l))
  18946. }
  18947. if len(m.Annotations) > 0 {
  18948. for k, v := range m.Annotations {
  18949. _ = k
  18950. _ = v
  18951. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  18952. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  18953. }
  18954. }
  18955. l = len(m.UserSpecifiedImage)
  18956. if l > 0 {
  18957. n += 2 + l + sovApi(uint64(l))
  18958. }
  18959. return n
  18960. }
  18961. func (m *KeyValue) Size() (n int) {
  18962. if m == nil {
  18963. return 0
  18964. }
  18965. var l int
  18966. _ = l
  18967. l = len(m.Key)
  18968. if l > 0 {
  18969. n += 1 + l + sovApi(uint64(l))
  18970. }
  18971. l = len(m.Value)
  18972. if l > 0 {
  18973. n += 1 + l + sovApi(uint64(l))
  18974. }
  18975. return n
  18976. }
  18977. func (m *LinuxContainerResources) Size() (n int) {
  18978. if m == nil {
  18979. return 0
  18980. }
  18981. var l int
  18982. _ = l
  18983. if m.CpuPeriod != 0 {
  18984. n += 1 + sovApi(uint64(m.CpuPeriod))
  18985. }
  18986. if m.CpuQuota != 0 {
  18987. n += 1 + sovApi(uint64(m.CpuQuota))
  18988. }
  18989. if m.CpuShares != 0 {
  18990. n += 1 + sovApi(uint64(m.CpuShares))
  18991. }
  18992. if m.MemoryLimitInBytes != 0 {
  18993. n += 1 + sovApi(uint64(m.MemoryLimitInBytes))
  18994. }
  18995. if m.OomScoreAdj != 0 {
  18996. n += 1 + sovApi(uint64(m.OomScoreAdj))
  18997. }
  18998. l = len(m.CpusetCpus)
  18999. if l > 0 {
  19000. n += 1 + l + sovApi(uint64(l))
  19001. }
  19002. l = len(m.CpusetMems)
  19003. if l > 0 {
  19004. n += 1 + l + sovApi(uint64(l))
  19005. }
  19006. if len(m.HugepageLimits) > 0 {
  19007. for _, e := range m.HugepageLimits {
  19008. l = e.Size()
  19009. n += 1 + l + sovApi(uint64(l))
  19010. }
  19011. }
  19012. if len(m.Unified) > 0 {
  19013. for k, v := range m.Unified {
  19014. _ = k
  19015. _ = v
  19016. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  19017. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  19018. }
  19019. }
  19020. if m.MemorySwapLimitInBytes != 0 {
  19021. n += 1 + sovApi(uint64(m.MemorySwapLimitInBytes))
  19022. }
  19023. return n
  19024. }
  19025. func (m *HugepageLimit) Size() (n int) {
  19026. if m == nil {
  19027. return 0
  19028. }
  19029. var l int
  19030. _ = l
  19031. l = len(m.PageSize)
  19032. if l > 0 {
  19033. n += 1 + l + sovApi(uint64(l))
  19034. }
  19035. if m.Limit != 0 {
  19036. n += 1 + sovApi(uint64(m.Limit))
  19037. }
  19038. return n
  19039. }
  19040. func (m *SELinuxOption) Size() (n int) {
  19041. if m == nil {
  19042. return 0
  19043. }
  19044. var l int
  19045. _ = l
  19046. l = len(m.User)
  19047. if l > 0 {
  19048. n += 1 + l + sovApi(uint64(l))
  19049. }
  19050. l = len(m.Role)
  19051. if l > 0 {
  19052. n += 1 + l + sovApi(uint64(l))
  19053. }
  19054. l = len(m.Type)
  19055. if l > 0 {
  19056. n += 1 + l + sovApi(uint64(l))
  19057. }
  19058. l = len(m.Level)
  19059. if l > 0 {
  19060. n += 1 + l + sovApi(uint64(l))
  19061. }
  19062. return n
  19063. }
  19064. func (m *Capability) Size() (n int) {
  19065. if m == nil {
  19066. return 0
  19067. }
  19068. var l int
  19069. _ = l
  19070. if len(m.AddCapabilities) > 0 {
  19071. for _, s := range m.AddCapabilities {
  19072. l = len(s)
  19073. n += 1 + l + sovApi(uint64(l))
  19074. }
  19075. }
  19076. if len(m.DropCapabilities) > 0 {
  19077. for _, s := range m.DropCapabilities {
  19078. l = len(s)
  19079. n += 1 + l + sovApi(uint64(l))
  19080. }
  19081. }
  19082. if len(m.AddAmbientCapabilities) > 0 {
  19083. for _, s := range m.AddAmbientCapabilities {
  19084. l = len(s)
  19085. n += 1 + l + sovApi(uint64(l))
  19086. }
  19087. }
  19088. return n
  19089. }
  19090. func (m *LinuxContainerSecurityContext) Size() (n int) {
  19091. if m == nil {
  19092. return 0
  19093. }
  19094. var l int
  19095. _ = l
  19096. if m.Capabilities != nil {
  19097. l = m.Capabilities.Size()
  19098. n += 1 + l + sovApi(uint64(l))
  19099. }
  19100. if m.Privileged {
  19101. n += 2
  19102. }
  19103. if m.NamespaceOptions != nil {
  19104. l = m.NamespaceOptions.Size()
  19105. n += 1 + l + sovApi(uint64(l))
  19106. }
  19107. if m.SelinuxOptions != nil {
  19108. l = m.SelinuxOptions.Size()
  19109. n += 1 + l + sovApi(uint64(l))
  19110. }
  19111. if m.RunAsUser != nil {
  19112. l = m.RunAsUser.Size()
  19113. n += 1 + l + sovApi(uint64(l))
  19114. }
  19115. l = len(m.RunAsUsername)
  19116. if l > 0 {
  19117. n += 1 + l + sovApi(uint64(l))
  19118. }
  19119. if m.ReadonlyRootfs {
  19120. n += 2
  19121. }
  19122. if len(m.SupplementalGroups) > 0 {
  19123. l = 0
  19124. for _, e := range m.SupplementalGroups {
  19125. l += sovApi(uint64(e))
  19126. }
  19127. n += 1 + sovApi(uint64(l)) + l
  19128. }
  19129. l = len(m.ApparmorProfile)
  19130. if l > 0 {
  19131. n += 1 + l + sovApi(uint64(l))
  19132. }
  19133. l = len(m.SeccompProfilePath)
  19134. if l > 0 {
  19135. n += 1 + l + sovApi(uint64(l))
  19136. }
  19137. if m.NoNewPrivs {
  19138. n += 2
  19139. }
  19140. if m.RunAsGroup != nil {
  19141. l = m.RunAsGroup.Size()
  19142. n += 1 + l + sovApi(uint64(l))
  19143. }
  19144. if len(m.MaskedPaths) > 0 {
  19145. for _, s := range m.MaskedPaths {
  19146. l = len(s)
  19147. n += 1 + l + sovApi(uint64(l))
  19148. }
  19149. }
  19150. if len(m.ReadonlyPaths) > 0 {
  19151. for _, s := range m.ReadonlyPaths {
  19152. l = len(s)
  19153. n += 1 + l + sovApi(uint64(l))
  19154. }
  19155. }
  19156. if m.Seccomp != nil {
  19157. l = m.Seccomp.Size()
  19158. n += 1 + l + sovApi(uint64(l))
  19159. }
  19160. if m.Apparmor != nil {
  19161. l = m.Apparmor.Size()
  19162. n += 2 + l + sovApi(uint64(l))
  19163. }
  19164. return n
  19165. }
  19166. func (m *LinuxContainerConfig) Size() (n int) {
  19167. if m == nil {
  19168. return 0
  19169. }
  19170. var l int
  19171. _ = l
  19172. if m.Resources != nil {
  19173. l = m.Resources.Size()
  19174. n += 1 + l + sovApi(uint64(l))
  19175. }
  19176. if m.SecurityContext != nil {
  19177. l = m.SecurityContext.Size()
  19178. n += 1 + l + sovApi(uint64(l))
  19179. }
  19180. return n
  19181. }
  19182. func (m *WindowsNamespaceOption) Size() (n int) {
  19183. if m == nil {
  19184. return 0
  19185. }
  19186. var l int
  19187. _ = l
  19188. if m.Network != 0 {
  19189. n += 1 + sovApi(uint64(m.Network))
  19190. }
  19191. return n
  19192. }
  19193. func (m *WindowsSandboxSecurityContext) Size() (n int) {
  19194. if m == nil {
  19195. return 0
  19196. }
  19197. var l int
  19198. _ = l
  19199. l = len(m.RunAsUsername)
  19200. if l > 0 {
  19201. n += 1 + l + sovApi(uint64(l))
  19202. }
  19203. l = len(m.CredentialSpec)
  19204. if l > 0 {
  19205. n += 1 + l + sovApi(uint64(l))
  19206. }
  19207. if m.HostProcess {
  19208. n += 2
  19209. }
  19210. if m.NamespaceOptions != nil {
  19211. l = m.NamespaceOptions.Size()
  19212. n += 1 + l + sovApi(uint64(l))
  19213. }
  19214. return n
  19215. }
  19216. func (m *WindowsPodSandboxConfig) Size() (n int) {
  19217. if m == nil {
  19218. return 0
  19219. }
  19220. var l int
  19221. _ = l
  19222. if m.SecurityContext != nil {
  19223. l = m.SecurityContext.Size()
  19224. n += 1 + l + sovApi(uint64(l))
  19225. }
  19226. return n
  19227. }
  19228. func (m *WindowsContainerSecurityContext) Size() (n int) {
  19229. if m == nil {
  19230. return 0
  19231. }
  19232. var l int
  19233. _ = l
  19234. l = len(m.RunAsUsername)
  19235. if l > 0 {
  19236. n += 1 + l + sovApi(uint64(l))
  19237. }
  19238. l = len(m.CredentialSpec)
  19239. if l > 0 {
  19240. n += 1 + l + sovApi(uint64(l))
  19241. }
  19242. if m.HostProcess {
  19243. n += 2
  19244. }
  19245. return n
  19246. }
  19247. func (m *WindowsContainerConfig) Size() (n int) {
  19248. if m == nil {
  19249. return 0
  19250. }
  19251. var l int
  19252. _ = l
  19253. if m.Resources != nil {
  19254. l = m.Resources.Size()
  19255. n += 1 + l + sovApi(uint64(l))
  19256. }
  19257. if m.SecurityContext != nil {
  19258. l = m.SecurityContext.Size()
  19259. n += 1 + l + sovApi(uint64(l))
  19260. }
  19261. return n
  19262. }
  19263. func (m *WindowsContainerResources) Size() (n int) {
  19264. if m == nil {
  19265. return 0
  19266. }
  19267. var l int
  19268. _ = l
  19269. if m.CpuShares != 0 {
  19270. n += 1 + sovApi(uint64(m.CpuShares))
  19271. }
  19272. if m.CpuCount != 0 {
  19273. n += 1 + sovApi(uint64(m.CpuCount))
  19274. }
  19275. if m.CpuMaximum != 0 {
  19276. n += 1 + sovApi(uint64(m.CpuMaximum))
  19277. }
  19278. if m.MemoryLimitInBytes != 0 {
  19279. n += 1 + sovApi(uint64(m.MemoryLimitInBytes))
  19280. }
  19281. if m.RootfsSizeInBytes != 0 {
  19282. n += 1 + sovApi(uint64(m.RootfsSizeInBytes))
  19283. }
  19284. return n
  19285. }
  19286. func (m *ContainerMetadata) Size() (n int) {
  19287. if m == nil {
  19288. return 0
  19289. }
  19290. var l int
  19291. _ = l
  19292. l = len(m.Name)
  19293. if l > 0 {
  19294. n += 1 + l + sovApi(uint64(l))
  19295. }
  19296. if m.Attempt != 0 {
  19297. n += 1 + sovApi(uint64(m.Attempt))
  19298. }
  19299. return n
  19300. }
  19301. func (m *Device) Size() (n int) {
  19302. if m == nil {
  19303. return 0
  19304. }
  19305. var l int
  19306. _ = l
  19307. l = len(m.ContainerPath)
  19308. if l > 0 {
  19309. n += 1 + l + sovApi(uint64(l))
  19310. }
  19311. l = len(m.HostPath)
  19312. if l > 0 {
  19313. n += 1 + l + sovApi(uint64(l))
  19314. }
  19315. l = len(m.Permissions)
  19316. if l > 0 {
  19317. n += 1 + l + sovApi(uint64(l))
  19318. }
  19319. return n
  19320. }
  19321. func (m *CDIDevice) Size() (n int) {
  19322. if m == nil {
  19323. return 0
  19324. }
  19325. var l int
  19326. _ = l
  19327. l = len(m.Name)
  19328. if l > 0 {
  19329. n += 1 + l + sovApi(uint64(l))
  19330. }
  19331. return n
  19332. }
  19333. func (m *ContainerConfig) Size() (n int) {
  19334. if m == nil {
  19335. return 0
  19336. }
  19337. var l int
  19338. _ = l
  19339. if m.Metadata != nil {
  19340. l = m.Metadata.Size()
  19341. n += 1 + l + sovApi(uint64(l))
  19342. }
  19343. if m.Image != nil {
  19344. l = m.Image.Size()
  19345. n += 1 + l + sovApi(uint64(l))
  19346. }
  19347. if len(m.Command) > 0 {
  19348. for _, s := range m.Command {
  19349. l = len(s)
  19350. n += 1 + l + sovApi(uint64(l))
  19351. }
  19352. }
  19353. if len(m.Args) > 0 {
  19354. for _, s := range m.Args {
  19355. l = len(s)
  19356. n += 1 + l + sovApi(uint64(l))
  19357. }
  19358. }
  19359. l = len(m.WorkingDir)
  19360. if l > 0 {
  19361. n += 1 + l + sovApi(uint64(l))
  19362. }
  19363. if len(m.Envs) > 0 {
  19364. for _, e := range m.Envs {
  19365. l = e.Size()
  19366. n += 1 + l + sovApi(uint64(l))
  19367. }
  19368. }
  19369. if len(m.Mounts) > 0 {
  19370. for _, e := range m.Mounts {
  19371. l = e.Size()
  19372. n += 1 + l + sovApi(uint64(l))
  19373. }
  19374. }
  19375. if len(m.Devices) > 0 {
  19376. for _, e := range m.Devices {
  19377. l = e.Size()
  19378. n += 1 + l + sovApi(uint64(l))
  19379. }
  19380. }
  19381. if len(m.Labels) > 0 {
  19382. for k, v := range m.Labels {
  19383. _ = k
  19384. _ = v
  19385. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  19386. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  19387. }
  19388. }
  19389. if len(m.Annotations) > 0 {
  19390. for k, v := range m.Annotations {
  19391. _ = k
  19392. _ = v
  19393. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  19394. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  19395. }
  19396. }
  19397. l = len(m.LogPath)
  19398. if l > 0 {
  19399. n += 1 + l + sovApi(uint64(l))
  19400. }
  19401. if m.Stdin {
  19402. n += 2
  19403. }
  19404. if m.StdinOnce {
  19405. n += 2
  19406. }
  19407. if m.Tty {
  19408. n += 2
  19409. }
  19410. if m.Linux != nil {
  19411. l = m.Linux.Size()
  19412. n += 1 + l + sovApi(uint64(l))
  19413. }
  19414. if m.Windows != nil {
  19415. l = m.Windows.Size()
  19416. n += 2 + l + sovApi(uint64(l))
  19417. }
  19418. if len(m.CDIDevices) > 0 {
  19419. for _, e := range m.CDIDevices {
  19420. l = e.Size()
  19421. n += 2 + l + sovApi(uint64(l))
  19422. }
  19423. }
  19424. return n
  19425. }
  19426. func (m *CreateContainerRequest) Size() (n int) {
  19427. if m == nil {
  19428. return 0
  19429. }
  19430. var l int
  19431. _ = l
  19432. l = len(m.PodSandboxId)
  19433. if l > 0 {
  19434. n += 1 + l + sovApi(uint64(l))
  19435. }
  19436. if m.Config != nil {
  19437. l = m.Config.Size()
  19438. n += 1 + l + sovApi(uint64(l))
  19439. }
  19440. if m.SandboxConfig != nil {
  19441. l = m.SandboxConfig.Size()
  19442. n += 1 + l + sovApi(uint64(l))
  19443. }
  19444. return n
  19445. }
  19446. func (m *CreateContainerResponse) Size() (n int) {
  19447. if m == nil {
  19448. return 0
  19449. }
  19450. var l int
  19451. _ = l
  19452. l = len(m.ContainerId)
  19453. if l > 0 {
  19454. n += 1 + l + sovApi(uint64(l))
  19455. }
  19456. return n
  19457. }
  19458. func (m *StartContainerRequest) Size() (n int) {
  19459. if m == nil {
  19460. return 0
  19461. }
  19462. var l int
  19463. _ = l
  19464. l = len(m.ContainerId)
  19465. if l > 0 {
  19466. n += 1 + l + sovApi(uint64(l))
  19467. }
  19468. return n
  19469. }
  19470. func (m *StartContainerResponse) Size() (n int) {
  19471. if m == nil {
  19472. return 0
  19473. }
  19474. var l int
  19475. _ = l
  19476. return n
  19477. }
  19478. func (m *StopContainerRequest) Size() (n int) {
  19479. if m == nil {
  19480. return 0
  19481. }
  19482. var l int
  19483. _ = l
  19484. l = len(m.ContainerId)
  19485. if l > 0 {
  19486. n += 1 + l + sovApi(uint64(l))
  19487. }
  19488. if m.Timeout != 0 {
  19489. n += 1 + sovApi(uint64(m.Timeout))
  19490. }
  19491. return n
  19492. }
  19493. func (m *StopContainerResponse) Size() (n int) {
  19494. if m == nil {
  19495. return 0
  19496. }
  19497. var l int
  19498. _ = l
  19499. return n
  19500. }
  19501. func (m *RemoveContainerRequest) Size() (n int) {
  19502. if m == nil {
  19503. return 0
  19504. }
  19505. var l int
  19506. _ = l
  19507. l = len(m.ContainerId)
  19508. if l > 0 {
  19509. n += 1 + l + sovApi(uint64(l))
  19510. }
  19511. return n
  19512. }
  19513. func (m *RemoveContainerResponse) Size() (n int) {
  19514. if m == nil {
  19515. return 0
  19516. }
  19517. var l int
  19518. _ = l
  19519. return n
  19520. }
  19521. func (m *ContainerStateValue) Size() (n int) {
  19522. if m == nil {
  19523. return 0
  19524. }
  19525. var l int
  19526. _ = l
  19527. if m.State != 0 {
  19528. n += 1 + sovApi(uint64(m.State))
  19529. }
  19530. return n
  19531. }
  19532. func (m *ContainerFilter) Size() (n int) {
  19533. if m == nil {
  19534. return 0
  19535. }
  19536. var l int
  19537. _ = l
  19538. l = len(m.Id)
  19539. if l > 0 {
  19540. n += 1 + l + sovApi(uint64(l))
  19541. }
  19542. if m.State != nil {
  19543. l = m.State.Size()
  19544. n += 1 + l + sovApi(uint64(l))
  19545. }
  19546. l = len(m.PodSandboxId)
  19547. if l > 0 {
  19548. n += 1 + l + sovApi(uint64(l))
  19549. }
  19550. if len(m.LabelSelector) > 0 {
  19551. for k, v := range m.LabelSelector {
  19552. _ = k
  19553. _ = v
  19554. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  19555. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  19556. }
  19557. }
  19558. return n
  19559. }
  19560. func (m *ListContainersRequest) Size() (n int) {
  19561. if m == nil {
  19562. return 0
  19563. }
  19564. var l int
  19565. _ = l
  19566. if m.Filter != nil {
  19567. l = m.Filter.Size()
  19568. n += 1 + l + sovApi(uint64(l))
  19569. }
  19570. return n
  19571. }
  19572. func (m *Container) Size() (n int) {
  19573. if m == nil {
  19574. return 0
  19575. }
  19576. var l int
  19577. _ = l
  19578. l = len(m.Id)
  19579. if l > 0 {
  19580. n += 1 + l + sovApi(uint64(l))
  19581. }
  19582. l = len(m.PodSandboxId)
  19583. if l > 0 {
  19584. n += 1 + l + sovApi(uint64(l))
  19585. }
  19586. if m.Metadata != nil {
  19587. l = m.Metadata.Size()
  19588. n += 1 + l + sovApi(uint64(l))
  19589. }
  19590. if m.Image != nil {
  19591. l = m.Image.Size()
  19592. n += 1 + l + sovApi(uint64(l))
  19593. }
  19594. l = len(m.ImageRef)
  19595. if l > 0 {
  19596. n += 1 + l + sovApi(uint64(l))
  19597. }
  19598. if m.State != 0 {
  19599. n += 1 + sovApi(uint64(m.State))
  19600. }
  19601. if m.CreatedAt != 0 {
  19602. n += 1 + sovApi(uint64(m.CreatedAt))
  19603. }
  19604. if len(m.Labels) > 0 {
  19605. for k, v := range m.Labels {
  19606. _ = k
  19607. _ = v
  19608. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  19609. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  19610. }
  19611. }
  19612. if len(m.Annotations) > 0 {
  19613. for k, v := range m.Annotations {
  19614. _ = k
  19615. _ = v
  19616. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  19617. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  19618. }
  19619. }
  19620. return n
  19621. }
  19622. func (m *ListContainersResponse) Size() (n int) {
  19623. if m == nil {
  19624. return 0
  19625. }
  19626. var l int
  19627. _ = l
  19628. if len(m.Containers) > 0 {
  19629. for _, e := range m.Containers {
  19630. l = e.Size()
  19631. n += 1 + l + sovApi(uint64(l))
  19632. }
  19633. }
  19634. return n
  19635. }
  19636. func (m *ContainerStatusRequest) Size() (n int) {
  19637. if m == nil {
  19638. return 0
  19639. }
  19640. var l int
  19641. _ = l
  19642. l = len(m.ContainerId)
  19643. if l > 0 {
  19644. n += 1 + l + sovApi(uint64(l))
  19645. }
  19646. if m.Verbose {
  19647. n += 2
  19648. }
  19649. return n
  19650. }
  19651. func (m *ContainerStatus) Size() (n int) {
  19652. if m == nil {
  19653. return 0
  19654. }
  19655. var l int
  19656. _ = l
  19657. l = len(m.Id)
  19658. if l > 0 {
  19659. n += 1 + l + sovApi(uint64(l))
  19660. }
  19661. if m.Metadata != nil {
  19662. l = m.Metadata.Size()
  19663. n += 1 + l + sovApi(uint64(l))
  19664. }
  19665. if m.State != 0 {
  19666. n += 1 + sovApi(uint64(m.State))
  19667. }
  19668. if m.CreatedAt != 0 {
  19669. n += 1 + sovApi(uint64(m.CreatedAt))
  19670. }
  19671. if m.StartedAt != 0 {
  19672. n += 1 + sovApi(uint64(m.StartedAt))
  19673. }
  19674. if m.FinishedAt != 0 {
  19675. n += 1 + sovApi(uint64(m.FinishedAt))
  19676. }
  19677. if m.ExitCode != 0 {
  19678. n += 1 + sovApi(uint64(m.ExitCode))
  19679. }
  19680. if m.Image != nil {
  19681. l = m.Image.Size()
  19682. n += 1 + l + sovApi(uint64(l))
  19683. }
  19684. l = len(m.ImageRef)
  19685. if l > 0 {
  19686. n += 1 + l + sovApi(uint64(l))
  19687. }
  19688. l = len(m.Reason)
  19689. if l > 0 {
  19690. n += 1 + l + sovApi(uint64(l))
  19691. }
  19692. l = len(m.Message)
  19693. if l > 0 {
  19694. n += 1 + l + sovApi(uint64(l))
  19695. }
  19696. if len(m.Labels) > 0 {
  19697. for k, v := range m.Labels {
  19698. _ = k
  19699. _ = v
  19700. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  19701. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  19702. }
  19703. }
  19704. if len(m.Annotations) > 0 {
  19705. for k, v := range m.Annotations {
  19706. _ = k
  19707. _ = v
  19708. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  19709. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  19710. }
  19711. }
  19712. if len(m.Mounts) > 0 {
  19713. for _, e := range m.Mounts {
  19714. l = e.Size()
  19715. n += 1 + l + sovApi(uint64(l))
  19716. }
  19717. }
  19718. l = len(m.LogPath)
  19719. if l > 0 {
  19720. n += 1 + l + sovApi(uint64(l))
  19721. }
  19722. if m.Resources != nil {
  19723. l = m.Resources.Size()
  19724. n += 2 + l + sovApi(uint64(l))
  19725. }
  19726. return n
  19727. }
  19728. func (m *ContainerStatusResponse) Size() (n int) {
  19729. if m == nil {
  19730. return 0
  19731. }
  19732. var l int
  19733. _ = l
  19734. if m.Status != nil {
  19735. l = m.Status.Size()
  19736. n += 1 + l + sovApi(uint64(l))
  19737. }
  19738. if len(m.Info) > 0 {
  19739. for k, v := range m.Info {
  19740. _ = k
  19741. _ = v
  19742. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  19743. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  19744. }
  19745. }
  19746. return n
  19747. }
  19748. func (m *ContainerResources) Size() (n int) {
  19749. if m == nil {
  19750. return 0
  19751. }
  19752. var l int
  19753. _ = l
  19754. if m.Linux != nil {
  19755. l = m.Linux.Size()
  19756. n += 1 + l + sovApi(uint64(l))
  19757. }
  19758. if m.Windows != nil {
  19759. l = m.Windows.Size()
  19760. n += 1 + l + sovApi(uint64(l))
  19761. }
  19762. return n
  19763. }
  19764. func (m *UpdateContainerResourcesRequest) Size() (n int) {
  19765. if m == nil {
  19766. return 0
  19767. }
  19768. var l int
  19769. _ = l
  19770. l = len(m.ContainerId)
  19771. if l > 0 {
  19772. n += 1 + l + sovApi(uint64(l))
  19773. }
  19774. if m.Linux != nil {
  19775. l = m.Linux.Size()
  19776. n += 1 + l + sovApi(uint64(l))
  19777. }
  19778. if m.Windows != nil {
  19779. l = m.Windows.Size()
  19780. n += 1 + l + sovApi(uint64(l))
  19781. }
  19782. if len(m.Annotations) > 0 {
  19783. for k, v := range m.Annotations {
  19784. _ = k
  19785. _ = v
  19786. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  19787. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  19788. }
  19789. }
  19790. return n
  19791. }
  19792. func (m *UpdateContainerResourcesResponse) Size() (n int) {
  19793. if m == nil {
  19794. return 0
  19795. }
  19796. var l int
  19797. _ = l
  19798. return n
  19799. }
  19800. func (m *ExecSyncRequest) Size() (n int) {
  19801. if m == nil {
  19802. return 0
  19803. }
  19804. var l int
  19805. _ = l
  19806. l = len(m.ContainerId)
  19807. if l > 0 {
  19808. n += 1 + l + sovApi(uint64(l))
  19809. }
  19810. if len(m.Cmd) > 0 {
  19811. for _, s := range m.Cmd {
  19812. l = len(s)
  19813. n += 1 + l + sovApi(uint64(l))
  19814. }
  19815. }
  19816. if m.Timeout != 0 {
  19817. n += 1 + sovApi(uint64(m.Timeout))
  19818. }
  19819. return n
  19820. }
  19821. func (m *ExecSyncResponse) Size() (n int) {
  19822. if m == nil {
  19823. return 0
  19824. }
  19825. var l int
  19826. _ = l
  19827. l = len(m.Stdout)
  19828. if l > 0 {
  19829. n += 1 + l + sovApi(uint64(l))
  19830. }
  19831. l = len(m.Stderr)
  19832. if l > 0 {
  19833. n += 1 + l + sovApi(uint64(l))
  19834. }
  19835. if m.ExitCode != 0 {
  19836. n += 1 + sovApi(uint64(m.ExitCode))
  19837. }
  19838. return n
  19839. }
  19840. func (m *ExecRequest) Size() (n int) {
  19841. if m == nil {
  19842. return 0
  19843. }
  19844. var l int
  19845. _ = l
  19846. l = len(m.ContainerId)
  19847. if l > 0 {
  19848. n += 1 + l + sovApi(uint64(l))
  19849. }
  19850. if len(m.Cmd) > 0 {
  19851. for _, s := range m.Cmd {
  19852. l = len(s)
  19853. n += 1 + l + sovApi(uint64(l))
  19854. }
  19855. }
  19856. if m.Tty {
  19857. n += 2
  19858. }
  19859. if m.Stdin {
  19860. n += 2
  19861. }
  19862. if m.Stdout {
  19863. n += 2
  19864. }
  19865. if m.Stderr {
  19866. n += 2
  19867. }
  19868. return n
  19869. }
  19870. func (m *ExecResponse) Size() (n int) {
  19871. if m == nil {
  19872. return 0
  19873. }
  19874. var l int
  19875. _ = l
  19876. l = len(m.Url)
  19877. if l > 0 {
  19878. n += 1 + l + sovApi(uint64(l))
  19879. }
  19880. return n
  19881. }
  19882. func (m *AttachRequest) Size() (n int) {
  19883. if m == nil {
  19884. return 0
  19885. }
  19886. var l int
  19887. _ = l
  19888. l = len(m.ContainerId)
  19889. if l > 0 {
  19890. n += 1 + l + sovApi(uint64(l))
  19891. }
  19892. if m.Stdin {
  19893. n += 2
  19894. }
  19895. if m.Tty {
  19896. n += 2
  19897. }
  19898. if m.Stdout {
  19899. n += 2
  19900. }
  19901. if m.Stderr {
  19902. n += 2
  19903. }
  19904. return n
  19905. }
  19906. func (m *AttachResponse) Size() (n int) {
  19907. if m == nil {
  19908. return 0
  19909. }
  19910. var l int
  19911. _ = l
  19912. l = len(m.Url)
  19913. if l > 0 {
  19914. n += 1 + l + sovApi(uint64(l))
  19915. }
  19916. return n
  19917. }
  19918. func (m *PortForwardRequest) Size() (n int) {
  19919. if m == nil {
  19920. return 0
  19921. }
  19922. var l int
  19923. _ = l
  19924. l = len(m.PodSandboxId)
  19925. if l > 0 {
  19926. n += 1 + l + sovApi(uint64(l))
  19927. }
  19928. if len(m.Port) > 0 {
  19929. l = 0
  19930. for _, e := range m.Port {
  19931. l += sovApi(uint64(e))
  19932. }
  19933. n += 1 + sovApi(uint64(l)) + l
  19934. }
  19935. return n
  19936. }
  19937. func (m *PortForwardResponse) Size() (n int) {
  19938. if m == nil {
  19939. return 0
  19940. }
  19941. var l int
  19942. _ = l
  19943. l = len(m.Url)
  19944. if l > 0 {
  19945. n += 1 + l + sovApi(uint64(l))
  19946. }
  19947. return n
  19948. }
  19949. func (m *ImageFilter) Size() (n int) {
  19950. if m == nil {
  19951. return 0
  19952. }
  19953. var l int
  19954. _ = l
  19955. if m.Image != nil {
  19956. l = m.Image.Size()
  19957. n += 1 + l + sovApi(uint64(l))
  19958. }
  19959. return n
  19960. }
  19961. func (m *ListImagesRequest) Size() (n int) {
  19962. if m == nil {
  19963. return 0
  19964. }
  19965. var l int
  19966. _ = l
  19967. if m.Filter != nil {
  19968. l = m.Filter.Size()
  19969. n += 1 + l + sovApi(uint64(l))
  19970. }
  19971. return n
  19972. }
  19973. func (m *Image) Size() (n int) {
  19974. if m == nil {
  19975. return 0
  19976. }
  19977. var l int
  19978. _ = l
  19979. l = len(m.Id)
  19980. if l > 0 {
  19981. n += 1 + l + sovApi(uint64(l))
  19982. }
  19983. if len(m.RepoTags) > 0 {
  19984. for _, s := range m.RepoTags {
  19985. l = len(s)
  19986. n += 1 + l + sovApi(uint64(l))
  19987. }
  19988. }
  19989. if len(m.RepoDigests) > 0 {
  19990. for _, s := range m.RepoDigests {
  19991. l = len(s)
  19992. n += 1 + l + sovApi(uint64(l))
  19993. }
  19994. }
  19995. if m.Size_ != 0 {
  19996. n += 1 + sovApi(uint64(m.Size_))
  19997. }
  19998. if m.Uid != nil {
  19999. l = m.Uid.Size()
  20000. n += 1 + l + sovApi(uint64(l))
  20001. }
  20002. l = len(m.Username)
  20003. if l > 0 {
  20004. n += 1 + l + sovApi(uint64(l))
  20005. }
  20006. if m.Spec != nil {
  20007. l = m.Spec.Size()
  20008. n += 1 + l + sovApi(uint64(l))
  20009. }
  20010. if m.Pinned {
  20011. n += 2
  20012. }
  20013. return n
  20014. }
  20015. func (m *ListImagesResponse) Size() (n int) {
  20016. if m == nil {
  20017. return 0
  20018. }
  20019. var l int
  20020. _ = l
  20021. if len(m.Images) > 0 {
  20022. for _, e := range m.Images {
  20023. l = e.Size()
  20024. n += 1 + l + sovApi(uint64(l))
  20025. }
  20026. }
  20027. return n
  20028. }
  20029. func (m *ImageStatusRequest) Size() (n int) {
  20030. if m == nil {
  20031. return 0
  20032. }
  20033. var l int
  20034. _ = l
  20035. if m.Image != nil {
  20036. l = m.Image.Size()
  20037. n += 1 + l + sovApi(uint64(l))
  20038. }
  20039. if m.Verbose {
  20040. n += 2
  20041. }
  20042. return n
  20043. }
  20044. func (m *ImageStatusResponse) Size() (n int) {
  20045. if m == nil {
  20046. return 0
  20047. }
  20048. var l int
  20049. _ = l
  20050. if m.Image != nil {
  20051. l = m.Image.Size()
  20052. n += 1 + l + sovApi(uint64(l))
  20053. }
  20054. if len(m.Info) > 0 {
  20055. for k, v := range m.Info {
  20056. _ = k
  20057. _ = v
  20058. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  20059. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  20060. }
  20061. }
  20062. return n
  20063. }
  20064. func (m *AuthConfig) Size() (n int) {
  20065. if m == nil {
  20066. return 0
  20067. }
  20068. var l int
  20069. _ = l
  20070. l = len(m.Username)
  20071. if l > 0 {
  20072. n += 1 + l + sovApi(uint64(l))
  20073. }
  20074. l = len(m.Password)
  20075. if l > 0 {
  20076. n += 1 + l + sovApi(uint64(l))
  20077. }
  20078. l = len(m.Auth)
  20079. if l > 0 {
  20080. n += 1 + l + sovApi(uint64(l))
  20081. }
  20082. l = len(m.ServerAddress)
  20083. if l > 0 {
  20084. n += 1 + l + sovApi(uint64(l))
  20085. }
  20086. l = len(m.IdentityToken)
  20087. if l > 0 {
  20088. n += 1 + l + sovApi(uint64(l))
  20089. }
  20090. l = len(m.RegistryToken)
  20091. if l > 0 {
  20092. n += 1 + l + sovApi(uint64(l))
  20093. }
  20094. return n
  20095. }
  20096. func (m *PullImageRequest) Size() (n int) {
  20097. if m == nil {
  20098. return 0
  20099. }
  20100. var l int
  20101. _ = l
  20102. if m.Image != nil {
  20103. l = m.Image.Size()
  20104. n += 1 + l + sovApi(uint64(l))
  20105. }
  20106. if m.Auth != nil {
  20107. l = m.Auth.Size()
  20108. n += 1 + l + sovApi(uint64(l))
  20109. }
  20110. if m.SandboxConfig != nil {
  20111. l = m.SandboxConfig.Size()
  20112. n += 1 + l + sovApi(uint64(l))
  20113. }
  20114. return n
  20115. }
  20116. func (m *PullImageResponse) Size() (n int) {
  20117. if m == nil {
  20118. return 0
  20119. }
  20120. var l int
  20121. _ = l
  20122. l = len(m.ImageRef)
  20123. if l > 0 {
  20124. n += 1 + l + sovApi(uint64(l))
  20125. }
  20126. return n
  20127. }
  20128. func (m *RemoveImageRequest) Size() (n int) {
  20129. if m == nil {
  20130. return 0
  20131. }
  20132. var l int
  20133. _ = l
  20134. if m.Image != nil {
  20135. l = m.Image.Size()
  20136. n += 1 + l + sovApi(uint64(l))
  20137. }
  20138. return n
  20139. }
  20140. func (m *RemoveImageResponse) Size() (n int) {
  20141. if m == nil {
  20142. return 0
  20143. }
  20144. var l int
  20145. _ = l
  20146. return n
  20147. }
  20148. func (m *NetworkConfig) Size() (n int) {
  20149. if m == nil {
  20150. return 0
  20151. }
  20152. var l int
  20153. _ = l
  20154. l = len(m.PodCidr)
  20155. if l > 0 {
  20156. n += 1 + l + sovApi(uint64(l))
  20157. }
  20158. return n
  20159. }
  20160. func (m *RuntimeConfig) Size() (n int) {
  20161. if m == nil {
  20162. return 0
  20163. }
  20164. var l int
  20165. _ = l
  20166. if m.NetworkConfig != nil {
  20167. l = m.NetworkConfig.Size()
  20168. n += 1 + l + sovApi(uint64(l))
  20169. }
  20170. return n
  20171. }
  20172. func (m *UpdateRuntimeConfigRequest) Size() (n int) {
  20173. if m == nil {
  20174. return 0
  20175. }
  20176. var l int
  20177. _ = l
  20178. if m.RuntimeConfig != nil {
  20179. l = m.RuntimeConfig.Size()
  20180. n += 1 + l + sovApi(uint64(l))
  20181. }
  20182. return n
  20183. }
  20184. func (m *UpdateRuntimeConfigResponse) Size() (n int) {
  20185. if m == nil {
  20186. return 0
  20187. }
  20188. var l int
  20189. _ = l
  20190. return n
  20191. }
  20192. func (m *RuntimeCondition) Size() (n int) {
  20193. if m == nil {
  20194. return 0
  20195. }
  20196. var l int
  20197. _ = l
  20198. l = len(m.Type)
  20199. if l > 0 {
  20200. n += 1 + l + sovApi(uint64(l))
  20201. }
  20202. if m.Status {
  20203. n += 2
  20204. }
  20205. l = len(m.Reason)
  20206. if l > 0 {
  20207. n += 1 + l + sovApi(uint64(l))
  20208. }
  20209. l = len(m.Message)
  20210. if l > 0 {
  20211. n += 1 + l + sovApi(uint64(l))
  20212. }
  20213. return n
  20214. }
  20215. func (m *RuntimeStatus) Size() (n int) {
  20216. if m == nil {
  20217. return 0
  20218. }
  20219. var l int
  20220. _ = l
  20221. if len(m.Conditions) > 0 {
  20222. for _, e := range m.Conditions {
  20223. l = e.Size()
  20224. n += 1 + l + sovApi(uint64(l))
  20225. }
  20226. }
  20227. return n
  20228. }
  20229. func (m *StatusRequest) Size() (n int) {
  20230. if m == nil {
  20231. return 0
  20232. }
  20233. var l int
  20234. _ = l
  20235. if m.Verbose {
  20236. n += 2
  20237. }
  20238. return n
  20239. }
  20240. func (m *StatusResponse) Size() (n int) {
  20241. if m == nil {
  20242. return 0
  20243. }
  20244. var l int
  20245. _ = l
  20246. if m.Status != nil {
  20247. l = m.Status.Size()
  20248. n += 1 + l + sovApi(uint64(l))
  20249. }
  20250. if len(m.Info) > 0 {
  20251. for k, v := range m.Info {
  20252. _ = k
  20253. _ = v
  20254. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  20255. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  20256. }
  20257. }
  20258. return n
  20259. }
  20260. func (m *ImageFsInfoRequest) Size() (n int) {
  20261. if m == nil {
  20262. return 0
  20263. }
  20264. var l int
  20265. _ = l
  20266. return n
  20267. }
  20268. func (m *UInt64Value) Size() (n int) {
  20269. if m == nil {
  20270. return 0
  20271. }
  20272. var l int
  20273. _ = l
  20274. if m.Value != 0 {
  20275. n += 1 + sovApi(uint64(m.Value))
  20276. }
  20277. return n
  20278. }
  20279. func (m *FilesystemIdentifier) Size() (n int) {
  20280. if m == nil {
  20281. return 0
  20282. }
  20283. var l int
  20284. _ = l
  20285. l = len(m.Mountpoint)
  20286. if l > 0 {
  20287. n += 1 + l + sovApi(uint64(l))
  20288. }
  20289. return n
  20290. }
  20291. func (m *FilesystemUsage) Size() (n int) {
  20292. if m == nil {
  20293. return 0
  20294. }
  20295. var l int
  20296. _ = l
  20297. if m.Timestamp != 0 {
  20298. n += 1 + sovApi(uint64(m.Timestamp))
  20299. }
  20300. if m.FsId != nil {
  20301. l = m.FsId.Size()
  20302. n += 1 + l + sovApi(uint64(l))
  20303. }
  20304. if m.UsedBytes != nil {
  20305. l = m.UsedBytes.Size()
  20306. n += 1 + l + sovApi(uint64(l))
  20307. }
  20308. if m.InodesUsed != nil {
  20309. l = m.InodesUsed.Size()
  20310. n += 1 + l + sovApi(uint64(l))
  20311. }
  20312. return n
  20313. }
  20314. func (m *WindowsFilesystemUsage) Size() (n int) {
  20315. if m == nil {
  20316. return 0
  20317. }
  20318. var l int
  20319. _ = l
  20320. if m.Timestamp != 0 {
  20321. n += 1 + sovApi(uint64(m.Timestamp))
  20322. }
  20323. if m.FsId != nil {
  20324. l = m.FsId.Size()
  20325. n += 1 + l + sovApi(uint64(l))
  20326. }
  20327. if m.UsedBytes != nil {
  20328. l = m.UsedBytes.Size()
  20329. n += 1 + l + sovApi(uint64(l))
  20330. }
  20331. return n
  20332. }
  20333. func (m *ImageFsInfoResponse) Size() (n int) {
  20334. if m == nil {
  20335. return 0
  20336. }
  20337. var l int
  20338. _ = l
  20339. if len(m.ImageFilesystems) > 0 {
  20340. for _, e := range m.ImageFilesystems {
  20341. l = e.Size()
  20342. n += 1 + l + sovApi(uint64(l))
  20343. }
  20344. }
  20345. return n
  20346. }
  20347. func (m *ContainerStatsRequest) Size() (n int) {
  20348. if m == nil {
  20349. return 0
  20350. }
  20351. var l int
  20352. _ = l
  20353. l = len(m.ContainerId)
  20354. if l > 0 {
  20355. n += 1 + l + sovApi(uint64(l))
  20356. }
  20357. return n
  20358. }
  20359. func (m *ContainerStatsResponse) Size() (n int) {
  20360. if m == nil {
  20361. return 0
  20362. }
  20363. var l int
  20364. _ = l
  20365. if m.Stats != nil {
  20366. l = m.Stats.Size()
  20367. n += 1 + l + sovApi(uint64(l))
  20368. }
  20369. return n
  20370. }
  20371. func (m *ListContainerStatsRequest) Size() (n int) {
  20372. if m == nil {
  20373. return 0
  20374. }
  20375. var l int
  20376. _ = l
  20377. if m.Filter != nil {
  20378. l = m.Filter.Size()
  20379. n += 1 + l + sovApi(uint64(l))
  20380. }
  20381. return n
  20382. }
  20383. func (m *ContainerStatsFilter) Size() (n int) {
  20384. if m == nil {
  20385. return 0
  20386. }
  20387. var l int
  20388. _ = l
  20389. l = len(m.Id)
  20390. if l > 0 {
  20391. n += 1 + l + sovApi(uint64(l))
  20392. }
  20393. l = len(m.PodSandboxId)
  20394. if l > 0 {
  20395. n += 1 + l + sovApi(uint64(l))
  20396. }
  20397. if len(m.LabelSelector) > 0 {
  20398. for k, v := range m.LabelSelector {
  20399. _ = k
  20400. _ = v
  20401. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  20402. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  20403. }
  20404. }
  20405. return n
  20406. }
  20407. func (m *ListContainerStatsResponse) Size() (n int) {
  20408. if m == nil {
  20409. return 0
  20410. }
  20411. var l int
  20412. _ = l
  20413. if len(m.Stats) > 0 {
  20414. for _, e := range m.Stats {
  20415. l = e.Size()
  20416. n += 1 + l + sovApi(uint64(l))
  20417. }
  20418. }
  20419. return n
  20420. }
  20421. func (m *ContainerAttributes) Size() (n int) {
  20422. if m == nil {
  20423. return 0
  20424. }
  20425. var l int
  20426. _ = l
  20427. l = len(m.Id)
  20428. if l > 0 {
  20429. n += 1 + l + sovApi(uint64(l))
  20430. }
  20431. if m.Metadata != nil {
  20432. l = m.Metadata.Size()
  20433. n += 1 + l + sovApi(uint64(l))
  20434. }
  20435. if len(m.Labels) > 0 {
  20436. for k, v := range m.Labels {
  20437. _ = k
  20438. _ = v
  20439. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  20440. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  20441. }
  20442. }
  20443. if len(m.Annotations) > 0 {
  20444. for k, v := range m.Annotations {
  20445. _ = k
  20446. _ = v
  20447. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  20448. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  20449. }
  20450. }
  20451. return n
  20452. }
  20453. func (m *ContainerStats) Size() (n int) {
  20454. if m == nil {
  20455. return 0
  20456. }
  20457. var l int
  20458. _ = l
  20459. if m.Attributes != nil {
  20460. l = m.Attributes.Size()
  20461. n += 1 + l + sovApi(uint64(l))
  20462. }
  20463. if m.Cpu != nil {
  20464. l = m.Cpu.Size()
  20465. n += 1 + l + sovApi(uint64(l))
  20466. }
  20467. if m.Memory != nil {
  20468. l = m.Memory.Size()
  20469. n += 1 + l + sovApi(uint64(l))
  20470. }
  20471. if m.WritableLayer != nil {
  20472. l = m.WritableLayer.Size()
  20473. n += 1 + l + sovApi(uint64(l))
  20474. }
  20475. if m.Swap != nil {
  20476. l = m.Swap.Size()
  20477. n += 1 + l + sovApi(uint64(l))
  20478. }
  20479. return n
  20480. }
  20481. func (m *WindowsContainerStats) Size() (n int) {
  20482. if m == nil {
  20483. return 0
  20484. }
  20485. var l int
  20486. _ = l
  20487. if m.Attributes != nil {
  20488. l = m.Attributes.Size()
  20489. n += 1 + l + sovApi(uint64(l))
  20490. }
  20491. if m.Cpu != nil {
  20492. l = m.Cpu.Size()
  20493. n += 1 + l + sovApi(uint64(l))
  20494. }
  20495. if m.Memory != nil {
  20496. l = m.Memory.Size()
  20497. n += 1 + l + sovApi(uint64(l))
  20498. }
  20499. if m.WritableLayer != nil {
  20500. l = m.WritableLayer.Size()
  20501. n += 1 + l + sovApi(uint64(l))
  20502. }
  20503. return n
  20504. }
  20505. func (m *CpuUsage) Size() (n int) {
  20506. if m == nil {
  20507. return 0
  20508. }
  20509. var l int
  20510. _ = l
  20511. if m.Timestamp != 0 {
  20512. n += 1 + sovApi(uint64(m.Timestamp))
  20513. }
  20514. if m.UsageCoreNanoSeconds != nil {
  20515. l = m.UsageCoreNanoSeconds.Size()
  20516. n += 1 + l + sovApi(uint64(l))
  20517. }
  20518. if m.UsageNanoCores != nil {
  20519. l = m.UsageNanoCores.Size()
  20520. n += 1 + l + sovApi(uint64(l))
  20521. }
  20522. return n
  20523. }
  20524. func (m *WindowsCpuUsage) Size() (n int) {
  20525. if m == nil {
  20526. return 0
  20527. }
  20528. var l int
  20529. _ = l
  20530. if m.Timestamp != 0 {
  20531. n += 1 + sovApi(uint64(m.Timestamp))
  20532. }
  20533. if m.UsageCoreNanoSeconds != nil {
  20534. l = m.UsageCoreNanoSeconds.Size()
  20535. n += 1 + l + sovApi(uint64(l))
  20536. }
  20537. if m.UsageNanoCores != nil {
  20538. l = m.UsageNanoCores.Size()
  20539. n += 1 + l + sovApi(uint64(l))
  20540. }
  20541. return n
  20542. }
  20543. func (m *MemoryUsage) Size() (n int) {
  20544. if m == nil {
  20545. return 0
  20546. }
  20547. var l int
  20548. _ = l
  20549. if m.Timestamp != 0 {
  20550. n += 1 + sovApi(uint64(m.Timestamp))
  20551. }
  20552. if m.WorkingSetBytes != nil {
  20553. l = m.WorkingSetBytes.Size()
  20554. n += 1 + l + sovApi(uint64(l))
  20555. }
  20556. if m.AvailableBytes != nil {
  20557. l = m.AvailableBytes.Size()
  20558. n += 1 + l + sovApi(uint64(l))
  20559. }
  20560. if m.UsageBytes != nil {
  20561. l = m.UsageBytes.Size()
  20562. n += 1 + l + sovApi(uint64(l))
  20563. }
  20564. if m.RssBytes != nil {
  20565. l = m.RssBytes.Size()
  20566. n += 1 + l + sovApi(uint64(l))
  20567. }
  20568. if m.PageFaults != nil {
  20569. l = m.PageFaults.Size()
  20570. n += 1 + l + sovApi(uint64(l))
  20571. }
  20572. if m.MajorPageFaults != nil {
  20573. l = m.MajorPageFaults.Size()
  20574. n += 1 + l + sovApi(uint64(l))
  20575. }
  20576. return n
  20577. }
  20578. func (m *SwapUsage) Size() (n int) {
  20579. if m == nil {
  20580. return 0
  20581. }
  20582. var l int
  20583. _ = l
  20584. if m.Timestamp != 0 {
  20585. n += 1 + sovApi(uint64(m.Timestamp))
  20586. }
  20587. if m.SwapAvailableBytes != nil {
  20588. l = m.SwapAvailableBytes.Size()
  20589. n += 1 + l + sovApi(uint64(l))
  20590. }
  20591. if m.SwapUsageBytes != nil {
  20592. l = m.SwapUsageBytes.Size()
  20593. n += 1 + l + sovApi(uint64(l))
  20594. }
  20595. return n
  20596. }
  20597. func (m *WindowsMemoryUsage) Size() (n int) {
  20598. if m == nil {
  20599. return 0
  20600. }
  20601. var l int
  20602. _ = l
  20603. if m.Timestamp != 0 {
  20604. n += 1 + sovApi(uint64(m.Timestamp))
  20605. }
  20606. if m.WorkingSetBytes != nil {
  20607. l = m.WorkingSetBytes.Size()
  20608. n += 1 + l + sovApi(uint64(l))
  20609. }
  20610. if m.AvailableBytes != nil {
  20611. l = m.AvailableBytes.Size()
  20612. n += 1 + l + sovApi(uint64(l))
  20613. }
  20614. if m.PageFaults != nil {
  20615. l = m.PageFaults.Size()
  20616. n += 1 + l + sovApi(uint64(l))
  20617. }
  20618. if m.CommitMemoryBytes != nil {
  20619. l = m.CommitMemoryBytes.Size()
  20620. n += 1 + l + sovApi(uint64(l))
  20621. }
  20622. return n
  20623. }
  20624. func (m *ReopenContainerLogRequest) Size() (n int) {
  20625. if m == nil {
  20626. return 0
  20627. }
  20628. var l int
  20629. _ = l
  20630. l = len(m.ContainerId)
  20631. if l > 0 {
  20632. n += 1 + l + sovApi(uint64(l))
  20633. }
  20634. return n
  20635. }
  20636. func (m *ReopenContainerLogResponse) Size() (n int) {
  20637. if m == nil {
  20638. return 0
  20639. }
  20640. var l int
  20641. _ = l
  20642. return n
  20643. }
  20644. func (m *CheckpointContainerRequest) Size() (n int) {
  20645. if m == nil {
  20646. return 0
  20647. }
  20648. var l int
  20649. _ = l
  20650. l = len(m.ContainerId)
  20651. if l > 0 {
  20652. n += 1 + l + sovApi(uint64(l))
  20653. }
  20654. l = len(m.Location)
  20655. if l > 0 {
  20656. n += 1 + l + sovApi(uint64(l))
  20657. }
  20658. if m.Timeout != 0 {
  20659. n += 1 + sovApi(uint64(m.Timeout))
  20660. }
  20661. return n
  20662. }
  20663. func (m *CheckpointContainerResponse) Size() (n int) {
  20664. if m == nil {
  20665. return 0
  20666. }
  20667. var l int
  20668. _ = l
  20669. return n
  20670. }
  20671. func (m *GetEventsRequest) Size() (n int) {
  20672. if m == nil {
  20673. return 0
  20674. }
  20675. var l int
  20676. _ = l
  20677. return n
  20678. }
  20679. func (m *ContainerEventResponse) Size() (n int) {
  20680. if m == nil {
  20681. return 0
  20682. }
  20683. var l int
  20684. _ = l
  20685. l = len(m.ContainerId)
  20686. if l > 0 {
  20687. n += 1 + l + sovApi(uint64(l))
  20688. }
  20689. if m.ContainerEventType != 0 {
  20690. n += 1 + sovApi(uint64(m.ContainerEventType))
  20691. }
  20692. if m.CreatedAt != 0 {
  20693. n += 1 + sovApi(uint64(m.CreatedAt))
  20694. }
  20695. if m.PodSandboxStatus != nil {
  20696. l = m.PodSandboxStatus.Size()
  20697. n += 1 + l + sovApi(uint64(l))
  20698. }
  20699. if len(m.ContainersStatuses) > 0 {
  20700. for _, e := range m.ContainersStatuses {
  20701. l = e.Size()
  20702. n += 1 + l + sovApi(uint64(l))
  20703. }
  20704. }
  20705. return n
  20706. }
  20707. func (m *ListMetricDescriptorsRequest) Size() (n int) {
  20708. if m == nil {
  20709. return 0
  20710. }
  20711. var l int
  20712. _ = l
  20713. return n
  20714. }
  20715. func (m *ListMetricDescriptorsResponse) Size() (n int) {
  20716. if m == nil {
  20717. return 0
  20718. }
  20719. var l int
  20720. _ = l
  20721. if len(m.Descriptors) > 0 {
  20722. for _, e := range m.Descriptors {
  20723. l = e.Size()
  20724. n += 1 + l + sovApi(uint64(l))
  20725. }
  20726. }
  20727. return n
  20728. }
  20729. func (m *MetricDescriptor) Size() (n int) {
  20730. if m == nil {
  20731. return 0
  20732. }
  20733. var l int
  20734. _ = l
  20735. l = len(m.Name)
  20736. if l > 0 {
  20737. n += 1 + l + sovApi(uint64(l))
  20738. }
  20739. l = len(m.Help)
  20740. if l > 0 {
  20741. n += 1 + l + sovApi(uint64(l))
  20742. }
  20743. if len(m.LabelKeys) > 0 {
  20744. for _, s := range m.LabelKeys {
  20745. l = len(s)
  20746. n += 1 + l + sovApi(uint64(l))
  20747. }
  20748. }
  20749. return n
  20750. }
  20751. func (m *ListPodSandboxMetricsRequest) Size() (n int) {
  20752. if m == nil {
  20753. return 0
  20754. }
  20755. var l int
  20756. _ = l
  20757. return n
  20758. }
  20759. func (m *ListPodSandboxMetricsResponse) Size() (n int) {
  20760. if m == nil {
  20761. return 0
  20762. }
  20763. var l int
  20764. _ = l
  20765. if len(m.PodMetrics) > 0 {
  20766. for _, e := range m.PodMetrics {
  20767. l = e.Size()
  20768. n += 1 + l + sovApi(uint64(l))
  20769. }
  20770. }
  20771. return n
  20772. }
  20773. func (m *PodSandboxMetrics) Size() (n int) {
  20774. if m == nil {
  20775. return 0
  20776. }
  20777. var l int
  20778. _ = l
  20779. l = len(m.PodSandboxId)
  20780. if l > 0 {
  20781. n += 1 + l + sovApi(uint64(l))
  20782. }
  20783. if len(m.Metrics) > 0 {
  20784. for _, e := range m.Metrics {
  20785. l = e.Size()
  20786. n += 1 + l + sovApi(uint64(l))
  20787. }
  20788. }
  20789. if len(m.ContainerMetrics) > 0 {
  20790. for _, e := range m.ContainerMetrics {
  20791. l = e.Size()
  20792. n += 1 + l + sovApi(uint64(l))
  20793. }
  20794. }
  20795. return n
  20796. }
  20797. func (m *ContainerMetrics) Size() (n int) {
  20798. if m == nil {
  20799. return 0
  20800. }
  20801. var l int
  20802. _ = l
  20803. l = len(m.ContainerId)
  20804. if l > 0 {
  20805. n += 1 + l + sovApi(uint64(l))
  20806. }
  20807. if len(m.Metrics) > 0 {
  20808. for _, e := range m.Metrics {
  20809. l = e.Size()
  20810. n += 1 + l + sovApi(uint64(l))
  20811. }
  20812. }
  20813. return n
  20814. }
  20815. func (m *Metric) Size() (n int) {
  20816. if m == nil {
  20817. return 0
  20818. }
  20819. var l int
  20820. _ = l
  20821. l = len(m.Name)
  20822. if l > 0 {
  20823. n += 1 + l + sovApi(uint64(l))
  20824. }
  20825. if m.Timestamp != 0 {
  20826. n += 1 + sovApi(uint64(m.Timestamp))
  20827. }
  20828. if m.MetricType != 0 {
  20829. n += 1 + sovApi(uint64(m.MetricType))
  20830. }
  20831. if len(m.LabelValues) > 0 {
  20832. for _, s := range m.LabelValues {
  20833. l = len(s)
  20834. n += 1 + l + sovApi(uint64(l))
  20835. }
  20836. }
  20837. if m.Value != nil {
  20838. l = m.Value.Size()
  20839. n += 1 + l + sovApi(uint64(l))
  20840. }
  20841. return n
  20842. }
  20843. func (m *RuntimeConfigRequest) Size() (n int) {
  20844. if m == nil {
  20845. return 0
  20846. }
  20847. var l int
  20848. _ = l
  20849. return n
  20850. }
  20851. func (m *RuntimeConfigResponse) Size() (n int) {
  20852. if m == nil {
  20853. return 0
  20854. }
  20855. var l int
  20856. _ = l
  20857. if m.Linux != nil {
  20858. l = m.Linux.Size()
  20859. n += 1 + l + sovApi(uint64(l))
  20860. }
  20861. return n
  20862. }
  20863. func (m *LinuxRuntimeConfiguration) Size() (n int) {
  20864. if m == nil {
  20865. return 0
  20866. }
  20867. var l int
  20868. _ = l
  20869. if m.CgroupDriver != 0 {
  20870. n += 1 + sovApi(uint64(m.CgroupDriver))
  20871. }
  20872. return n
  20873. }
  20874. func sovApi(x uint64) (n int) {
  20875. return (math_bits.Len64(x|1) + 6) / 7
  20876. }
  20877. func sozApi(x uint64) (n int) {
  20878. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  20879. }
  20880. func (this *VersionRequest) String() string {
  20881. if this == nil {
  20882. return "nil"
  20883. }
  20884. s := strings.Join([]string{`&VersionRequest{`,
  20885. `Version:` + fmt.Sprintf("%v", this.Version) + `,`,
  20886. `}`,
  20887. }, "")
  20888. return s
  20889. }
  20890. func (this *VersionResponse) String() string {
  20891. if this == nil {
  20892. return "nil"
  20893. }
  20894. s := strings.Join([]string{`&VersionResponse{`,
  20895. `Version:` + fmt.Sprintf("%v", this.Version) + `,`,
  20896. `RuntimeName:` + fmt.Sprintf("%v", this.RuntimeName) + `,`,
  20897. `RuntimeVersion:` + fmt.Sprintf("%v", this.RuntimeVersion) + `,`,
  20898. `RuntimeApiVersion:` + fmt.Sprintf("%v", this.RuntimeApiVersion) + `,`,
  20899. `}`,
  20900. }, "")
  20901. return s
  20902. }
  20903. func (this *DNSConfig) String() string {
  20904. if this == nil {
  20905. return "nil"
  20906. }
  20907. s := strings.Join([]string{`&DNSConfig{`,
  20908. `Servers:` + fmt.Sprintf("%v", this.Servers) + `,`,
  20909. `Searches:` + fmt.Sprintf("%v", this.Searches) + `,`,
  20910. `Options:` + fmt.Sprintf("%v", this.Options) + `,`,
  20911. `}`,
  20912. }, "")
  20913. return s
  20914. }
  20915. func (this *PortMapping) String() string {
  20916. if this == nil {
  20917. return "nil"
  20918. }
  20919. s := strings.Join([]string{`&PortMapping{`,
  20920. `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`,
  20921. `ContainerPort:` + fmt.Sprintf("%v", this.ContainerPort) + `,`,
  20922. `HostPort:` + fmt.Sprintf("%v", this.HostPort) + `,`,
  20923. `HostIp:` + fmt.Sprintf("%v", this.HostIp) + `,`,
  20924. `}`,
  20925. }, "")
  20926. return s
  20927. }
  20928. func (this *Mount) String() string {
  20929. if this == nil {
  20930. return "nil"
  20931. }
  20932. repeatedStringForUidMappings := "[]*IDMapping{"
  20933. for _, f := range this.UidMappings {
  20934. repeatedStringForUidMappings += strings.Replace(f.String(), "IDMapping", "IDMapping", 1) + ","
  20935. }
  20936. repeatedStringForUidMappings += "}"
  20937. repeatedStringForGidMappings := "[]*IDMapping{"
  20938. for _, f := range this.GidMappings {
  20939. repeatedStringForGidMappings += strings.Replace(f.String(), "IDMapping", "IDMapping", 1) + ","
  20940. }
  20941. repeatedStringForGidMappings += "}"
  20942. s := strings.Join([]string{`&Mount{`,
  20943. `ContainerPath:` + fmt.Sprintf("%v", this.ContainerPath) + `,`,
  20944. `HostPath:` + fmt.Sprintf("%v", this.HostPath) + `,`,
  20945. `Readonly:` + fmt.Sprintf("%v", this.Readonly) + `,`,
  20946. `SelinuxRelabel:` + fmt.Sprintf("%v", this.SelinuxRelabel) + `,`,
  20947. `Propagation:` + fmt.Sprintf("%v", this.Propagation) + `,`,
  20948. `UidMappings:` + repeatedStringForUidMappings + `,`,
  20949. `GidMappings:` + repeatedStringForGidMappings + `,`,
  20950. `}`,
  20951. }, "")
  20952. return s
  20953. }
  20954. func (this *IDMapping) String() string {
  20955. if this == nil {
  20956. return "nil"
  20957. }
  20958. s := strings.Join([]string{`&IDMapping{`,
  20959. `HostId:` + fmt.Sprintf("%v", this.HostId) + `,`,
  20960. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  20961. `Length:` + fmt.Sprintf("%v", this.Length) + `,`,
  20962. `}`,
  20963. }, "")
  20964. return s
  20965. }
  20966. func (this *UserNamespace) String() string {
  20967. if this == nil {
  20968. return "nil"
  20969. }
  20970. repeatedStringForUids := "[]*IDMapping{"
  20971. for _, f := range this.Uids {
  20972. repeatedStringForUids += strings.Replace(f.String(), "IDMapping", "IDMapping", 1) + ","
  20973. }
  20974. repeatedStringForUids += "}"
  20975. repeatedStringForGids := "[]*IDMapping{"
  20976. for _, f := range this.Gids {
  20977. repeatedStringForGids += strings.Replace(f.String(), "IDMapping", "IDMapping", 1) + ","
  20978. }
  20979. repeatedStringForGids += "}"
  20980. s := strings.Join([]string{`&UserNamespace{`,
  20981. `Mode:` + fmt.Sprintf("%v", this.Mode) + `,`,
  20982. `Uids:` + repeatedStringForUids + `,`,
  20983. `Gids:` + repeatedStringForGids + `,`,
  20984. `}`,
  20985. }, "")
  20986. return s
  20987. }
  20988. func (this *NamespaceOption) String() string {
  20989. if this == nil {
  20990. return "nil"
  20991. }
  20992. s := strings.Join([]string{`&NamespaceOption{`,
  20993. `Network:` + fmt.Sprintf("%v", this.Network) + `,`,
  20994. `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
  20995. `Ipc:` + fmt.Sprintf("%v", this.Ipc) + `,`,
  20996. `TargetId:` + fmt.Sprintf("%v", this.TargetId) + `,`,
  20997. `UsernsOptions:` + strings.Replace(this.UsernsOptions.String(), "UserNamespace", "UserNamespace", 1) + `,`,
  20998. `}`,
  20999. }, "")
  21000. return s
  21001. }
  21002. func (this *Int64Value) String() string {
  21003. if this == nil {
  21004. return "nil"
  21005. }
  21006. s := strings.Join([]string{`&Int64Value{`,
  21007. `Value:` + fmt.Sprintf("%v", this.Value) + `,`,
  21008. `}`,
  21009. }, "")
  21010. return s
  21011. }
  21012. func (this *LinuxSandboxSecurityContext) String() string {
  21013. if this == nil {
  21014. return "nil"
  21015. }
  21016. s := strings.Join([]string{`&LinuxSandboxSecurityContext{`,
  21017. `NamespaceOptions:` + strings.Replace(this.NamespaceOptions.String(), "NamespaceOption", "NamespaceOption", 1) + `,`,
  21018. `SelinuxOptions:` + strings.Replace(this.SelinuxOptions.String(), "SELinuxOption", "SELinuxOption", 1) + `,`,
  21019. `RunAsUser:` + strings.Replace(this.RunAsUser.String(), "Int64Value", "Int64Value", 1) + `,`,
  21020. `ReadonlyRootfs:` + fmt.Sprintf("%v", this.ReadonlyRootfs) + `,`,
  21021. `SupplementalGroups:` + fmt.Sprintf("%v", this.SupplementalGroups) + `,`,
  21022. `Privileged:` + fmt.Sprintf("%v", this.Privileged) + `,`,
  21023. `SeccompProfilePath:` + fmt.Sprintf("%v", this.SeccompProfilePath) + `,`,
  21024. `RunAsGroup:` + strings.Replace(this.RunAsGroup.String(), "Int64Value", "Int64Value", 1) + `,`,
  21025. `Seccomp:` + strings.Replace(this.Seccomp.String(), "SecurityProfile", "SecurityProfile", 1) + `,`,
  21026. `Apparmor:` + strings.Replace(this.Apparmor.String(), "SecurityProfile", "SecurityProfile", 1) + `,`,
  21027. `}`,
  21028. }, "")
  21029. return s
  21030. }
  21031. func (this *SecurityProfile) String() string {
  21032. if this == nil {
  21033. return "nil"
  21034. }
  21035. s := strings.Join([]string{`&SecurityProfile{`,
  21036. `ProfileType:` + fmt.Sprintf("%v", this.ProfileType) + `,`,
  21037. `LocalhostRef:` + fmt.Sprintf("%v", this.LocalhostRef) + `,`,
  21038. `}`,
  21039. }, "")
  21040. return s
  21041. }
  21042. func (this *LinuxPodSandboxConfig) String() string {
  21043. if this == nil {
  21044. return "nil"
  21045. }
  21046. keysForSysctls := make([]string, 0, len(this.Sysctls))
  21047. for k := range this.Sysctls {
  21048. keysForSysctls = append(keysForSysctls, k)
  21049. }
  21050. github_com_gogo_protobuf_sortkeys.Strings(keysForSysctls)
  21051. mapStringForSysctls := "map[string]string{"
  21052. for _, k := range keysForSysctls {
  21053. mapStringForSysctls += fmt.Sprintf("%v: %v,", k, this.Sysctls[k])
  21054. }
  21055. mapStringForSysctls += "}"
  21056. s := strings.Join([]string{`&LinuxPodSandboxConfig{`,
  21057. `CgroupParent:` + fmt.Sprintf("%v", this.CgroupParent) + `,`,
  21058. `SecurityContext:` + strings.Replace(this.SecurityContext.String(), "LinuxSandboxSecurityContext", "LinuxSandboxSecurityContext", 1) + `,`,
  21059. `Sysctls:` + mapStringForSysctls + `,`,
  21060. `Overhead:` + strings.Replace(this.Overhead.String(), "LinuxContainerResources", "LinuxContainerResources", 1) + `,`,
  21061. `Resources:` + strings.Replace(this.Resources.String(), "LinuxContainerResources", "LinuxContainerResources", 1) + `,`,
  21062. `}`,
  21063. }, "")
  21064. return s
  21065. }
  21066. func (this *PodSandboxMetadata) String() string {
  21067. if this == nil {
  21068. return "nil"
  21069. }
  21070. s := strings.Join([]string{`&PodSandboxMetadata{`,
  21071. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  21072. `Uid:` + fmt.Sprintf("%v", this.Uid) + `,`,
  21073. `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
  21074. `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`,
  21075. `}`,
  21076. }, "")
  21077. return s
  21078. }
  21079. func (this *PodSandboxConfig) String() string {
  21080. if this == nil {
  21081. return "nil"
  21082. }
  21083. repeatedStringForPortMappings := "[]*PortMapping{"
  21084. for _, f := range this.PortMappings {
  21085. repeatedStringForPortMappings += strings.Replace(f.String(), "PortMapping", "PortMapping", 1) + ","
  21086. }
  21087. repeatedStringForPortMappings += "}"
  21088. keysForLabels := make([]string, 0, len(this.Labels))
  21089. for k := range this.Labels {
  21090. keysForLabels = append(keysForLabels, k)
  21091. }
  21092. github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  21093. mapStringForLabels := "map[string]string{"
  21094. for _, k := range keysForLabels {
  21095. mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  21096. }
  21097. mapStringForLabels += "}"
  21098. keysForAnnotations := make([]string, 0, len(this.Annotations))
  21099. for k := range this.Annotations {
  21100. keysForAnnotations = append(keysForAnnotations, k)
  21101. }
  21102. github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
  21103. mapStringForAnnotations := "map[string]string{"
  21104. for _, k := range keysForAnnotations {
  21105. mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
  21106. }
  21107. mapStringForAnnotations += "}"
  21108. s := strings.Join([]string{`&PodSandboxConfig{`,
  21109. `Metadata:` + strings.Replace(this.Metadata.String(), "PodSandboxMetadata", "PodSandboxMetadata", 1) + `,`,
  21110. `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`,
  21111. `LogDirectory:` + fmt.Sprintf("%v", this.LogDirectory) + `,`,
  21112. `DnsConfig:` + strings.Replace(this.DnsConfig.String(), "DNSConfig", "DNSConfig", 1) + `,`,
  21113. `PortMappings:` + repeatedStringForPortMappings + `,`,
  21114. `Labels:` + mapStringForLabels + `,`,
  21115. `Annotations:` + mapStringForAnnotations + `,`,
  21116. `Linux:` + strings.Replace(this.Linux.String(), "LinuxPodSandboxConfig", "LinuxPodSandboxConfig", 1) + `,`,
  21117. `Windows:` + strings.Replace(this.Windows.String(), "WindowsPodSandboxConfig", "WindowsPodSandboxConfig", 1) + `,`,
  21118. `}`,
  21119. }, "")
  21120. return s
  21121. }
  21122. func (this *RunPodSandboxRequest) String() string {
  21123. if this == nil {
  21124. return "nil"
  21125. }
  21126. s := strings.Join([]string{`&RunPodSandboxRequest{`,
  21127. `Config:` + strings.Replace(this.Config.String(), "PodSandboxConfig", "PodSandboxConfig", 1) + `,`,
  21128. `RuntimeHandler:` + fmt.Sprintf("%v", this.RuntimeHandler) + `,`,
  21129. `}`,
  21130. }, "")
  21131. return s
  21132. }
  21133. func (this *RunPodSandboxResponse) String() string {
  21134. if this == nil {
  21135. return "nil"
  21136. }
  21137. s := strings.Join([]string{`&RunPodSandboxResponse{`,
  21138. `PodSandboxId:` + fmt.Sprintf("%v", this.PodSandboxId) + `,`,
  21139. `}`,
  21140. }, "")
  21141. return s
  21142. }
  21143. func (this *StopPodSandboxRequest) String() string {
  21144. if this == nil {
  21145. return "nil"
  21146. }
  21147. s := strings.Join([]string{`&StopPodSandboxRequest{`,
  21148. `PodSandboxId:` + fmt.Sprintf("%v", this.PodSandboxId) + `,`,
  21149. `}`,
  21150. }, "")
  21151. return s
  21152. }
  21153. func (this *StopPodSandboxResponse) String() string {
  21154. if this == nil {
  21155. return "nil"
  21156. }
  21157. s := strings.Join([]string{`&StopPodSandboxResponse{`,
  21158. `}`,
  21159. }, "")
  21160. return s
  21161. }
  21162. func (this *RemovePodSandboxRequest) String() string {
  21163. if this == nil {
  21164. return "nil"
  21165. }
  21166. s := strings.Join([]string{`&RemovePodSandboxRequest{`,
  21167. `PodSandboxId:` + fmt.Sprintf("%v", this.PodSandboxId) + `,`,
  21168. `}`,
  21169. }, "")
  21170. return s
  21171. }
  21172. func (this *RemovePodSandboxResponse) String() string {
  21173. if this == nil {
  21174. return "nil"
  21175. }
  21176. s := strings.Join([]string{`&RemovePodSandboxResponse{`,
  21177. `}`,
  21178. }, "")
  21179. return s
  21180. }
  21181. func (this *PodSandboxStatusRequest) String() string {
  21182. if this == nil {
  21183. return "nil"
  21184. }
  21185. s := strings.Join([]string{`&PodSandboxStatusRequest{`,
  21186. `PodSandboxId:` + fmt.Sprintf("%v", this.PodSandboxId) + `,`,
  21187. `Verbose:` + fmt.Sprintf("%v", this.Verbose) + `,`,
  21188. `}`,
  21189. }, "")
  21190. return s
  21191. }
  21192. func (this *PodIP) String() string {
  21193. if this == nil {
  21194. return "nil"
  21195. }
  21196. s := strings.Join([]string{`&PodIP{`,
  21197. `Ip:` + fmt.Sprintf("%v", this.Ip) + `,`,
  21198. `}`,
  21199. }, "")
  21200. return s
  21201. }
  21202. func (this *PodSandboxNetworkStatus) String() string {
  21203. if this == nil {
  21204. return "nil"
  21205. }
  21206. repeatedStringForAdditionalIps := "[]*PodIP{"
  21207. for _, f := range this.AdditionalIps {
  21208. repeatedStringForAdditionalIps += strings.Replace(f.String(), "PodIP", "PodIP", 1) + ","
  21209. }
  21210. repeatedStringForAdditionalIps += "}"
  21211. s := strings.Join([]string{`&PodSandboxNetworkStatus{`,
  21212. `Ip:` + fmt.Sprintf("%v", this.Ip) + `,`,
  21213. `AdditionalIps:` + repeatedStringForAdditionalIps + `,`,
  21214. `}`,
  21215. }, "")
  21216. return s
  21217. }
  21218. func (this *Namespace) String() string {
  21219. if this == nil {
  21220. return "nil"
  21221. }
  21222. s := strings.Join([]string{`&Namespace{`,
  21223. `Options:` + strings.Replace(this.Options.String(), "NamespaceOption", "NamespaceOption", 1) + `,`,
  21224. `}`,
  21225. }, "")
  21226. return s
  21227. }
  21228. func (this *LinuxPodSandboxStatus) String() string {
  21229. if this == nil {
  21230. return "nil"
  21231. }
  21232. s := strings.Join([]string{`&LinuxPodSandboxStatus{`,
  21233. `Namespaces:` + strings.Replace(this.Namespaces.String(), "Namespace", "Namespace", 1) + `,`,
  21234. `}`,
  21235. }, "")
  21236. return s
  21237. }
  21238. func (this *PodSandboxStatus) String() string {
  21239. if this == nil {
  21240. return "nil"
  21241. }
  21242. keysForLabels := make([]string, 0, len(this.Labels))
  21243. for k := range this.Labels {
  21244. keysForLabels = append(keysForLabels, k)
  21245. }
  21246. github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  21247. mapStringForLabels := "map[string]string{"
  21248. for _, k := range keysForLabels {
  21249. mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  21250. }
  21251. mapStringForLabels += "}"
  21252. keysForAnnotations := make([]string, 0, len(this.Annotations))
  21253. for k := range this.Annotations {
  21254. keysForAnnotations = append(keysForAnnotations, k)
  21255. }
  21256. github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
  21257. mapStringForAnnotations := "map[string]string{"
  21258. for _, k := range keysForAnnotations {
  21259. mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
  21260. }
  21261. mapStringForAnnotations += "}"
  21262. s := strings.Join([]string{`&PodSandboxStatus{`,
  21263. `Id:` + fmt.Sprintf("%v", this.Id) + `,`,
  21264. `Metadata:` + strings.Replace(this.Metadata.String(), "PodSandboxMetadata", "PodSandboxMetadata", 1) + `,`,
  21265. `State:` + fmt.Sprintf("%v", this.State) + `,`,
  21266. `CreatedAt:` + fmt.Sprintf("%v", this.CreatedAt) + `,`,
  21267. `Network:` + strings.Replace(this.Network.String(), "PodSandboxNetworkStatus", "PodSandboxNetworkStatus", 1) + `,`,
  21268. `Linux:` + strings.Replace(this.Linux.String(), "LinuxPodSandboxStatus", "LinuxPodSandboxStatus", 1) + `,`,
  21269. `Labels:` + mapStringForLabels + `,`,
  21270. `Annotations:` + mapStringForAnnotations + `,`,
  21271. `RuntimeHandler:` + fmt.Sprintf("%v", this.RuntimeHandler) + `,`,
  21272. `}`,
  21273. }, "")
  21274. return s
  21275. }
  21276. func (this *PodSandboxStatusResponse) String() string {
  21277. if this == nil {
  21278. return "nil"
  21279. }
  21280. repeatedStringForContainersStatuses := "[]*ContainerStatus{"
  21281. for _, f := range this.ContainersStatuses {
  21282. repeatedStringForContainersStatuses += strings.Replace(f.String(), "ContainerStatus", "ContainerStatus", 1) + ","
  21283. }
  21284. repeatedStringForContainersStatuses += "}"
  21285. keysForInfo := make([]string, 0, len(this.Info))
  21286. for k := range this.Info {
  21287. keysForInfo = append(keysForInfo, k)
  21288. }
  21289. github_com_gogo_protobuf_sortkeys.Strings(keysForInfo)
  21290. mapStringForInfo := "map[string]string{"
  21291. for _, k := range keysForInfo {
  21292. mapStringForInfo += fmt.Sprintf("%v: %v,", k, this.Info[k])
  21293. }
  21294. mapStringForInfo += "}"
  21295. s := strings.Join([]string{`&PodSandboxStatusResponse{`,
  21296. `Status:` + strings.Replace(this.Status.String(), "PodSandboxStatus", "PodSandboxStatus", 1) + `,`,
  21297. `Info:` + mapStringForInfo + `,`,
  21298. `ContainersStatuses:` + repeatedStringForContainersStatuses + `,`,
  21299. `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
  21300. `}`,
  21301. }, "")
  21302. return s
  21303. }
  21304. func (this *PodSandboxStateValue) String() string {
  21305. if this == nil {
  21306. return "nil"
  21307. }
  21308. s := strings.Join([]string{`&PodSandboxStateValue{`,
  21309. `State:` + fmt.Sprintf("%v", this.State) + `,`,
  21310. `}`,
  21311. }, "")
  21312. return s
  21313. }
  21314. func (this *PodSandboxFilter) String() string {
  21315. if this == nil {
  21316. return "nil"
  21317. }
  21318. keysForLabelSelector := make([]string, 0, len(this.LabelSelector))
  21319. for k := range this.LabelSelector {
  21320. keysForLabelSelector = append(keysForLabelSelector, k)
  21321. }
  21322. github_com_gogo_protobuf_sortkeys.Strings(keysForLabelSelector)
  21323. mapStringForLabelSelector := "map[string]string{"
  21324. for _, k := range keysForLabelSelector {
  21325. mapStringForLabelSelector += fmt.Sprintf("%v: %v,", k, this.LabelSelector[k])
  21326. }
  21327. mapStringForLabelSelector += "}"
  21328. s := strings.Join([]string{`&PodSandboxFilter{`,
  21329. `Id:` + fmt.Sprintf("%v", this.Id) + `,`,
  21330. `State:` + strings.Replace(this.State.String(), "PodSandboxStateValue", "PodSandboxStateValue", 1) + `,`,
  21331. `LabelSelector:` + mapStringForLabelSelector + `,`,
  21332. `}`,
  21333. }, "")
  21334. return s
  21335. }
  21336. func (this *ListPodSandboxRequest) String() string {
  21337. if this == nil {
  21338. return "nil"
  21339. }
  21340. s := strings.Join([]string{`&ListPodSandboxRequest{`,
  21341. `Filter:` + strings.Replace(this.Filter.String(), "PodSandboxFilter", "PodSandboxFilter", 1) + `,`,
  21342. `}`,
  21343. }, "")
  21344. return s
  21345. }
  21346. func (this *PodSandbox) String() string {
  21347. if this == nil {
  21348. return "nil"
  21349. }
  21350. keysForLabels := make([]string, 0, len(this.Labels))
  21351. for k := range this.Labels {
  21352. keysForLabels = append(keysForLabels, k)
  21353. }
  21354. github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  21355. mapStringForLabels := "map[string]string{"
  21356. for _, k := range keysForLabels {
  21357. mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  21358. }
  21359. mapStringForLabels += "}"
  21360. keysForAnnotations := make([]string, 0, len(this.Annotations))
  21361. for k := range this.Annotations {
  21362. keysForAnnotations = append(keysForAnnotations, k)
  21363. }
  21364. github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
  21365. mapStringForAnnotations := "map[string]string{"
  21366. for _, k := range keysForAnnotations {
  21367. mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
  21368. }
  21369. mapStringForAnnotations += "}"
  21370. s := strings.Join([]string{`&PodSandbox{`,
  21371. `Id:` + fmt.Sprintf("%v", this.Id) + `,`,
  21372. `Metadata:` + strings.Replace(this.Metadata.String(), "PodSandboxMetadata", "PodSandboxMetadata", 1) + `,`,
  21373. `State:` + fmt.Sprintf("%v", this.State) + `,`,
  21374. `CreatedAt:` + fmt.Sprintf("%v", this.CreatedAt) + `,`,
  21375. `Labels:` + mapStringForLabels + `,`,
  21376. `Annotations:` + mapStringForAnnotations + `,`,
  21377. `RuntimeHandler:` + fmt.Sprintf("%v", this.RuntimeHandler) + `,`,
  21378. `}`,
  21379. }, "")
  21380. return s
  21381. }
  21382. func (this *ListPodSandboxResponse) String() string {
  21383. if this == nil {
  21384. return "nil"
  21385. }
  21386. repeatedStringForItems := "[]*PodSandbox{"
  21387. for _, f := range this.Items {
  21388. repeatedStringForItems += strings.Replace(f.String(), "PodSandbox", "PodSandbox", 1) + ","
  21389. }
  21390. repeatedStringForItems += "}"
  21391. s := strings.Join([]string{`&ListPodSandboxResponse{`,
  21392. `Items:` + repeatedStringForItems + `,`,
  21393. `}`,
  21394. }, "")
  21395. return s
  21396. }
  21397. func (this *PodSandboxStatsRequest) String() string {
  21398. if this == nil {
  21399. return "nil"
  21400. }
  21401. s := strings.Join([]string{`&PodSandboxStatsRequest{`,
  21402. `PodSandboxId:` + fmt.Sprintf("%v", this.PodSandboxId) + `,`,
  21403. `}`,
  21404. }, "")
  21405. return s
  21406. }
  21407. func (this *PodSandboxStatsResponse) String() string {
  21408. if this == nil {
  21409. return "nil"
  21410. }
  21411. s := strings.Join([]string{`&PodSandboxStatsResponse{`,
  21412. `Stats:` + strings.Replace(this.Stats.String(), "PodSandboxStats", "PodSandboxStats", 1) + `,`,
  21413. `}`,
  21414. }, "")
  21415. return s
  21416. }
  21417. func (this *PodSandboxStatsFilter) String() string {
  21418. if this == nil {
  21419. return "nil"
  21420. }
  21421. keysForLabelSelector := make([]string, 0, len(this.LabelSelector))
  21422. for k := range this.LabelSelector {
  21423. keysForLabelSelector = append(keysForLabelSelector, k)
  21424. }
  21425. github_com_gogo_protobuf_sortkeys.Strings(keysForLabelSelector)
  21426. mapStringForLabelSelector := "map[string]string{"
  21427. for _, k := range keysForLabelSelector {
  21428. mapStringForLabelSelector += fmt.Sprintf("%v: %v,", k, this.LabelSelector[k])
  21429. }
  21430. mapStringForLabelSelector += "}"
  21431. s := strings.Join([]string{`&PodSandboxStatsFilter{`,
  21432. `Id:` + fmt.Sprintf("%v", this.Id) + `,`,
  21433. `LabelSelector:` + mapStringForLabelSelector + `,`,
  21434. `}`,
  21435. }, "")
  21436. return s
  21437. }
  21438. func (this *ListPodSandboxStatsRequest) String() string {
  21439. if this == nil {
  21440. return "nil"
  21441. }
  21442. s := strings.Join([]string{`&ListPodSandboxStatsRequest{`,
  21443. `Filter:` + strings.Replace(this.Filter.String(), "PodSandboxStatsFilter", "PodSandboxStatsFilter", 1) + `,`,
  21444. `}`,
  21445. }, "")
  21446. return s
  21447. }
  21448. func (this *ListPodSandboxStatsResponse) String() string {
  21449. if this == nil {
  21450. return "nil"
  21451. }
  21452. repeatedStringForStats := "[]*PodSandboxStats{"
  21453. for _, f := range this.Stats {
  21454. repeatedStringForStats += strings.Replace(f.String(), "PodSandboxStats", "PodSandboxStats", 1) + ","
  21455. }
  21456. repeatedStringForStats += "}"
  21457. s := strings.Join([]string{`&ListPodSandboxStatsResponse{`,
  21458. `Stats:` + repeatedStringForStats + `,`,
  21459. `}`,
  21460. }, "")
  21461. return s
  21462. }
  21463. func (this *PodSandboxAttributes) String() string {
  21464. if this == nil {
  21465. return "nil"
  21466. }
  21467. keysForLabels := make([]string, 0, len(this.Labels))
  21468. for k := range this.Labels {
  21469. keysForLabels = append(keysForLabels, k)
  21470. }
  21471. github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  21472. mapStringForLabels := "map[string]string{"
  21473. for _, k := range keysForLabels {
  21474. mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  21475. }
  21476. mapStringForLabels += "}"
  21477. keysForAnnotations := make([]string, 0, len(this.Annotations))
  21478. for k := range this.Annotations {
  21479. keysForAnnotations = append(keysForAnnotations, k)
  21480. }
  21481. github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
  21482. mapStringForAnnotations := "map[string]string{"
  21483. for _, k := range keysForAnnotations {
  21484. mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
  21485. }
  21486. mapStringForAnnotations += "}"
  21487. s := strings.Join([]string{`&PodSandboxAttributes{`,
  21488. `Id:` + fmt.Sprintf("%v", this.Id) + `,`,
  21489. `Metadata:` + strings.Replace(this.Metadata.String(), "PodSandboxMetadata", "PodSandboxMetadata", 1) + `,`,
  21490. `Labels:` + mapStringForLabels + `,`,
  21491. `Annotations:` + mapStringForAnnotations + `,`,
  21492. `}`,
  21493. }, "")
  21494. return s
  21495. }
  21496. func (this *PodSandboxStats) String() string {
  21497. if this == nil {
  21498. return "nil"
  21499. }
  21500. s := strings.Join([]string{`&PodSandboxStats{`,
  21501. `Attributes:` + strings.Replace(this.Attributes.String(), "PodSandboxAttributes", "PodSandboxAttributes", 1) + `,`,
  21502. `Linux:` + strings.Replace(this.Linux.String(), "LinuxPodSandboxStats", "LinuxPodSandboxStats", 1) + `,`,
  21503. `Windows:` + strings.Replace(this.Windows.String(), "WindowsPodSandboxStats", "WindowsPodSandboxStats", 1) + `,`,
  21504. `}`,
  21505. }, "")
  21506. return s
  21507. }
  21508. func (this *LinuxPodSandboxStats) String() string {
  21509. if this == nil {
  21510. return "nil"
  21511. }
  21512. repeatedStringForContainers := "[]*ContainerStats{"
  21513. for _, f := range this.Containers {
  21514. repeatedStringForContainers += strings.Replace(f.String(), "ContainerStats", "ContainerStats", 1) + ","
  21515. }
  21516. repeatedStringForContainers += "}"
  21517. s := strings.Join([]string{`&LinuxPodSandboxStats{`,
  21518. `Cpu:` + strings.Replace(this.Cpu.String(), "CpuUsage", "CpuUsage", 1) + `,`,
  21519. `Memory:` + strings.Replace(this.Memory.String(), "MemoryUsage", "MemoryUsage", 1) + `,`,
  21520. `Network:` + strings.Replace(this.Network.String(), "NetworkUsage", "NetworkUsage", 1) + `,`,
  21521. `Process:` + strings.Replace(this.Process.String(), "ProcessUsage", "ProcessUsage", 1) + `,`,
  21522. `Containers:` + repeatedStringForContainers + `,`,
  21523. `}`,
  21524. }, "")
  21525. return s
  21526. }
  21527. func (this *WindowsPodSandboxStats) String() string {
  21528. if this == nil {
  21529. return "nil"
  21530. }
  21531. repeatedStringForContainers := "[]*WindowsContainerStats{"
  21532. for _, f := range this.Containers {
  21533. repeatedStringForContainers += strings.Replace(f.String(), "WindowsContainerStats", "WindowsContainerStats", 1) + ","
  21534. }
  21535. repeatedStringForContainers += "}"
  21536. s := strings.Join([]string{`&WindowsPodSandboxStats{`,
  21537. `Cpu:` + strings.Replace(this.Cpu.String(), "WindowsCpuUsage", "WindowsCpuUsage", 1) + `,`,
  21538. `Memory:` + strings.Replace(this.Memory.String(), "WindowsMemoryUsage", "WindowsMemoryUsage", 1) + `,`,
  21539. `Network:` + strings.Replace(this.Network.String(), "WindowsNetworkUsage", "WindowsNetworkUsage", 1) + `,`,
  21540. `Process:` + strings.Replace(this.Process.String(), "WindowsProcessUsage", "WindowsProcessUsage", 1) + `,`,
  21541. `Containers:` + repeatedStringForContainers + `,`,
  21542. `}`,
  21543. }, "")
  21544. return s
  21545. }
  21546. func (this *NetworkUsage) String() string {
  21547. if this == nil {
  21548. return "nil"
  21549. }
  21550. repeatedStringForInterfaces := "[]*NetworkInterfaceUsage{"
  21551. for _, f := range this.Interfaces {
  21552. repeatedStringForInterfaces += strings.Replace(f.String(), "NetworkInterfaceUsage", "NetworkInterfaceUsage", 1) + ","
  21553. }
  21554. repeatedStringForInterfaces += "}"
  21555. s := strings.Join([]string{`&NetworkUsage{`,
  21556. `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
  21557. `DefaultInterface:` + strings.Replace(this.DefaultInterface.String(), "NetworkInterfaceUsage", "NetworkInterfaceUsage", 1) + `,`,
  21558. `Interfaces:` + repeatedStringForInterfaces + `,`,
  21559. `}`,
  21560. }, "")
  21561. return s
  21562. }
  21563. func (this *WindowsNetworkUsage) String() string {
  21564. if this == nil {
  21565. return "nil"
  21566. }
  21567. repeatedStringForInterfaces := "[]*WindowsNetworkInterfaceUsage{"
  21568. for _, f := range this.Interfaces {
  21569. repeatedStringForInterfaces += strings.Replace(f.String(), "WindowsNetworkInterfaceUsage", "WindowsNetworkInterfaceUsage", 1) + ","
  21570. }
  21571. repeatedStringForInterfaces += "}"
  21572. s := strings.Join([]string{`&WindowsNetworkUsage{`,
  21573. `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
  21574. `DefaultInterface:` + strings.Replace(this.DefaultInterface.String(), "WindowsNetworkInterfaceUsage", "WindowsNetworkInterfaceUsage", 1) + `,`,
  21575. `Interfaces:` + repeatedStringForInterfaces + `,`,
  21576. `}`,
  21577. }, "")
  21578. return s
  21579. }
  21580. func (this *NetworkInterfaceUsage) String() string {
  21581. if this == nil {
  21582. return "nil"
  21583. }
  21584. s := strings.Join([]string{`&NetworkInterfaceUsage{`,
  21585. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  21586. `RxBytes:` + strings.Replace(this.RxBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  21587. `RxErrors:` + strings.Replace(this.RxErrors.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  21588. `TxBytes:` + strings.Replace(this.TxBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  21589. `TxErrors:` + strings.Replace(this.TxErrors.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  21590. `}`,
  21591. }, "")
  21592. return s
  21593. }
  21594. func (this *WindowsNetworkInterfaceUsage) String() string {
  21595. if this == nil {
  21596. return "nil"
  21597. }
  21598. s := strings.Join([]string{`&WindowsNetworkInterfaceUsage{`,
  21599. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  21600. `RxBytes:` + strings.Replace(this.RxBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  21601. `RxPacketsDropped:` + strings.Replace(this.RxPacketsDropped.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  21602. `TxBytes:` + strings.Replace(this.TxBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  21603. `TxPacketsDropped:` + strings.Replace(this.TxPacketsDropped.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  21604. `}`,
  21605. }, "")
  21606. return s
  21607. }
  21608. func (this *ProcessUsage) String() string {
  21609. if this == nil {
  21610. return "nil"
  21611. }
  21612. s := strings.Join([]string{`&ProcessUsage{`,
  21613. `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
  21614. `ProcessCount:` + strings.Replace(this.ProcessCount.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  21615. `}`,
  21616. }, "")
  21617. return s
  21618. }
  21619. func (this *WindowsProcessUsage) String() string {
  21620. if this == nil {
  21621. return "nil"
  21622. }
  21623. s := strings.Join([]string{`&WindowsProcessUsage{`,
  21624. `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
  21625. `ProcessCount:` + strings.Replace(this.ProcessCount.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  21626. `}`,
  21627. }, "")
  21628. return s
  21629. }
  21630. func (this *ImageSpec) String() string {
  21631. if this == nil {
  21632. return "nil"
  21633. }
  21634. keysForAnnotations := make([]string, 0, len(this.Annotations))
  21635. for k := range this.Annotations {
  21636. keysForAnnotations = append(keysForAnnotations, k)
  21637. }
  21638. github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
  21639. mapStringForAnnotations := "map[string]string{"
  21640. for _, k := range keysForAnnotations {
  21641. mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
  21642. }
  21643. mapStringForAnnotations += "}"
  21644. s := strings.Join([]string{`&ImageSpec{`,
  21645. `Image:` + fmt.Sprintf("%v", this.Image) + `,`,
  21646. `Annotations:` + mapStringForAnnotations + `,`,
  21647. `UserSpecifiedImage:` + fmt.Sprintf("%v", this.UserSpecifiedImage) + `,`,
  21648. `}`,
  21649. }, "")
  21650. return s
  21651. }
  21652. func (this *KeyValue) String() string {
  21653. if this == nil {
  21654. return "nil"
  21655. }
  21656. s := strings.Join([]string{`&KeyValue{`,
  21657. `Key:` + fmt.Sprintf("%v", this.Key) + `,`,
  21658. `Value:` + fmt.Sprintf("%v", this.Value) + `,`,
  21659. `}`,
  21660. }, "")
  21661. return s
  21662. }
  21663. func (this *LinuxContainerResources) String() string {
  21664. if this == nil {
  21665. return "nil"
  21666. }
  21667. repeatedStringForHugepageLimits := "[]*HugepageLimit{"
  21668. for _, f := range this.HugepageLimits {
  21669. repeatedStringForHugepageLimits += strings.Replace(f.String(), "HugepageLimit", "HugepageLimit", 1) + ","
  21670. }
  21671. repeatedStringForHugepageLimits += "}"
  21672. keysForUnified := make([]string, 0, len(this.Unified))
  21673. for k := range this.Unified {
  21674. keysForUnified = append(keysForUnified, k)
  21675. }
  21676. github_com_gogo_protobuf_sortkeys.Strings(keysForUnified)
  21677. mapStringForUnified := "map[string]string{"
  21678. for _, k := range keysForUnified {
  21679. mapStringForUnified += fmt.Sprintf("%v: %v,", k, this.Unified[k])
  21680. }
  21681. mapStringForUnified += "}"
  21682. s := strings.Join([]string{`&LinuxContainerResources{`,
  21683. `CpuPeriod:` + fmt.Sprintf("%v", this.CpuPeriod) + `,`,
  21684. `CpuQuota:` + fmt.Sprintf("%v", this.CpuQuota) + `,`,
  21685. `CpuShares:` + fmt.Sprintf("%v", this.CpuShares) + `,`,
  21686. `MemoryLimitInBytes:` + fmt.Sprintf("%v", this.MemoryLimitInBytes) + `,`,
  21687. `OomScoreAdj:` + fmt.Sprintf("%v", this.OomScoreAdj) + `,`,
  21688. `CpusetCpus:` + fmt.Sprintf("%v", this.CpusetCpus) + `,`,
  21689. `CpusetMems:` + fmt.Sprintf("%v", this.CpusetMems) + `,`,
  21690. `HugepageLimits:` + repeatedStringForHugepageLimits + `,`,
  21691. `Unified:` + mapStringForUnified + `,`,
  21692. `MemorySwapLimitInBytes:` + fmt.Sprintf("%v", this.MemorySwapLimitInBytes) + `,`,
  21693. `}`,
  21694. }, "")
  21695. return s
  21696. }
  21697. func (this *HugepageLimit) String() string {
  21698. if this == nil {
  21699. return "nil"
  21700. }
  21701. s := strings.Join([]string{`&HugepageLimit{`,
  21702. `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`,
  21703. `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`,
  21704. `}`,
  21705. }, "")
  21706. return s
  21707. }
  21708. func (this *SELinuxOption) String() string {
  21709. if this == nil {
  21710. return "nil"
  21711. }
  21712. s := strings.Join([]string{`&SELinuxOption{`,
  21713. `User:` + fmt.Sprintf("%v", this.User) + `,`,
  21714. `Role:` + fmt.Sprintf("%v", this.Role) + `,`,
  21715. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  21716. `Level:` + fmt.Sprintf("%v", this.Level) + `,`,
  21717. `}`,
  21718. }, "")
  21719. return s
  21720. }
  21721. func (this *Capability) String() string {
  21722. if this == nil {
  21723. return "nil"
  21724. }
  21725. s := strings.Join([]string{`&Capability{`,
  21726. `AddCapabilities:` + fmt.Sprintf("%v", this.AddCapabilities) + `,`,
  21727. `DropCapabilities:` + fmt.Sprintf("%v", this.DropCapabilities) + `,`,
  21728. `AddAmbientCapabilities:` + fmt.Sprintf("%v", this.AddAmbientCapabilities) + `,`,
  21729. `}`,
  21730. }, "")
  21731. return s
  21732. }
  21733. func (this *LinuxContainerSecurityContext) String() string {
  21734. if this == nil {
  21735. return "nil"
  21736. }
  21737. s := strings.Join([]string{`&LinuxContainerSecurityContext{`,
  21738. `Capabilities:` + strings.Replace(this.Capabilities.String(), "Capability", "Capability", 1) + `,`,
  21739. `Privileged:` + fmt.Sprintf("%v", this.Privileged) + `,`,
  21740. `NamespaceOptions:` + strings.Replace(this.NamespaceOptions.String(), "NamespaceOption", "NamespaceOption", 1) + `,`,
  21741. `SelinuxOptions:` + strings.Replace(this.SelinuxOptions.String(), "SELinuxOption", "SELinuxOption", 1) + `,`,
  21742. `RunAsUser:` + strings.Replace(this.RunAsUser.String(), "Int64Value", "Int64Value", 1) + `,`,
  21743. `RunAsUsername:` + fmt.Sprintf("%v", this.RunAsUsername) + `,`,
  21744. `ReadonlyRootfs:` + fmt.Sprintf("%v", this.ReadonlyRootfs) + `,`,
  21745. `SupplementalGroups:` + fmt.Sprintf("%v", this.SupplementalGroups) + `,`,
  21746. `ApparmorProfile:` + fmt.Sprintf("%v", this.ApparmorProfile) + `,`,
  21747. `SeccompProfilePath:` + fmt.Sprintf("%v", this.SeccompProfilePath) + `,`,
  21748. `NoNewPrivs:` + fmt.Sprintf("%v", this.NoNewPrivs) + `,`,
  21749. `RunAsGroup:` + strings.Replace(this.RunAsGroup.String(), "Int64Value", "Int64Value", 1) + `,`,
  21750. `MaskedPaths:` + fmt.Sprintf("%v", this.MaskedPaths) + `,`,
  21751. `ReadonlyPaths:` + fmt.Sprintf("%v", this.ReadonlyPaths) + `,`,
  21752. `Seccomp:` + strings.Replace(this.Seccomp.String(), "SecurityProfile", "SecurityProfile", 1) + `,`,
  21753. `Apparmor:` + strings.Replace(this.Apparmor.String(), "SecurityProfile", "SecurityProfile", 1) + `,`,
  21754. `}`,
  21755. }, "")
  21756. return s
  21757. }
  21758. func (this *LinuxContainerConfig) String() string {
  21759. if this == nil {
  21760. return "nil"
  21761. }
  21762. s := strings.Join([]string{`&LinuxContainerConfig{`,
  21763. `Resources:` + strings.Replace(this.Resources.String(), "LinuxContainerResources", "LinuxContainerResources", 1) + `,`,
  21764. `SecurityContext:` + strings.Replace(this.SecurityContext.String(), "LinuxContainerSecurityContext", "LinuxContainerSecurityContext", 1) + `,`,
  21765. `}`,
  21766. }, "")
  21767. return s
  21768. }
  21769. func (this *WindowsNamespaceOption) String() string {
  21770. if this == nil {
  21771. return "nil"
  21772. }
  21773. s := strings.Join([]string{`&WindowsNamespaceOption{`,
  21774. `Network:` + fmt.Sprintf("%v", this.Network) + `,`,
  21775. `}`,
  21776. }, "")
  21777. return s
  21778. }
  21779. func (this *WindowsSandboxSecurityContext) String() string {
  21780. if this == nil {
  21781. return "nil"
  21782. }
  21783. s := strings.Join([]string{`&WindowsSandboxSecurityContext{`,
  21784. `RunAsUsername:` + fmt.Sprintf("%v", this.RunAsUsername) + `,`,
  21785. `CredentialSpec:` + fmt.Sprintf("%v", this.CredentialSpec) + `,`,
  21786. `HostProcess:` + fmt.Sprintf("%v", this.HostProcess) + `,`,
  21787. `NamespaceOptions:` + strings.Replace(this.NamespaceOptions.String(), "WindowsNamespaceOption", "WindowsNamespaceOption", 1) + `,`,
  21788. `}`,
  21789. }, "")
  21790. return s
  21791. }
  21792. func (this *WindowsPodSandboxConfig) String() string {
  21793. if this == nil {
  21794. return "nil"
  21795. }
  21796. s := strings.Join([]string{`&WindowsPodSandboxConfig{`,
  21797. `SecurityContext:` + strings.Replace(this.SecurityContext.String(), "WindowsSandboxSecurityContext", "WindowsSandboxSecurityContext", 1) + `,`,
  21798. `}`,
  21799. }, "")
  21800. return s
  21801. }
  21802. func (this *WindowsContainerSecurityContext) String() string {
  21803. if this == nil {
  21804. return "nil"
  21805. }
  21806. s := strings.Join([]string{`&WindowsContainerSecurityContext{`,
  21807. `RunAsUsername:` + fmt.Sprintf("%v", this.RunAsUsername) + `,`,
  21808. `CredentialSpec:` + fmt.Sprintf("%v", this.CredentialSpec) + `,`,
  21809. `HostProcess:` + fmt.Sprintf("%v", this.HostProcess) + `,`,
  21810. `}`,
  21811. }, "")
  21812. return s
  21813. }
  21814. func (this *WindowsContainerConfig) String() string {
  21815. if this == nil {
  21816. return "nil"
  21817. }
  21818. s := strings.Join([]string{`&WindowsContainerConfig{`,
  21819. `Resources:` + strings.Replace(this.Resources.String(), "WindowsContainerResources", "WindowsContainerResources", 1) + `,`,
  21820. `SecurityContext:` + strings.Replace(this.SecurityContext.String(), "WindowsContainerSecurityContext", "WindowsContainerSecurityContext", 1) + `,`,
  21821. `}`,
  21822. }, "")
  21823. return s
  21824. }
  21825. func (this *WindowsContainerResources) String() string {
  21826. if this == nil {
  21827. return "nil"
  21828. }
  21829. s := strings.Join([]string{`&WindowsContainerResources{`,
  21830. `CpuShares:` + fmt.Sprintf("%v", this.CpuShares) + `,`,
  21831. `CpuCount:` + fmt.Sprintf("%v", this.CpuCount) + `,`,
  21832. `CpuMaximum:` + fmt.Sprintf("%v", this.CpuMaximum) + `,`,
  21833. `MemoryLimitInBytes:` + fmt.Sprintf("%v", this.MemoryLimitInBytes) + `,`,
  21834. `RootfsSizeInBytes:` + fmt.Sprintf("%v", this.RootfsSizeInBytes) + `,`,
  21835. `}`,
  21836. }, "")
  21837. return s
  21838. }
  21839. func (this *ContainerMetadata) String() string {
  21840. if this == nil {
  21841. return "nil"
  21842. }
  21843. s := strings.Join([]string{`&ContainerMetadata{`,
  21844. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  21845. `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`,
  21846. `}`,
  21847. }, "")
  21848. return s
  21849. }
  21850. func (this *Device) String() string {
  21851. if this == nil {
  21852. return "nil"
  21853. }
  21854. s := strings.Join([]string{`&Device{`,
  21855. `ContainerPath:` + fmt.Sprintf("%v", this.ContainerPath) + `,`,
  21856. `HostPath:` + fmt.Sprintf("%v", this.HostPath) + `,`,
  21857. `Permissions:` + fmt.Sprintf("%v", this.Permissions) + `,`,
  21858. `}`,
  21859. }, "")
  21860. return s
  21861. }
  21862. func (this *CDIDevice) String() string {
  21863. if this == nil {
  21864. return "nil"
  21865. }
  21866. s := strings.Join([]string{`&CDIDevice{`,
  21867. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  21868. `}`,
  21869. }, "")
  21870. return s
  21871. }
  21872. func (this *ContainerConfig) String() string {
  21873. if this == nil {
  21874. return "nil"
  21875. }
  21876. repeatedStringForEnvs := "[]*KeyValue{"
  21877. for _, f := range this.Envs {
  21878. repeatedStringForEnvs += strings.Replace(f.String(), "KeyValue", "KeyValue", 1) + ","
  21879. }
  21880. repeatedStringForEnvs += "}"
  21881. repeatedStringForMounts := "[]*Mount{"
  21882. for _, f := range this.Mounts {
  21883. repeatedStringForMounts += strings.Replace(f.String(), "Mount", "Mount", 1) + ","
  21884. }
  21885. repeatedStringForMounts += "}"
  21886. repeatedStringForDevices := "[]*Device{"
  21887. for _, f := range this.Devices {
  21888. repeatedStringForDevices += strings.Replace(f.String(), "Device", "Device", 1) + ","
  21889. }
  21890. repeatedStringForDevices += "}"
  21891. repeatedStringForCDIDevices := "[]*CDIDevice{"
  21892. for _, f := range this.CDIDevices {
  21893. repeatedStringForCDIDevices += strings.Replace(f.String(), "CDIDevice", "CDIDevice", 1) + ","
  21894. }
  21895. repeatedStringForCDIDevices += "}"
  21896. keysForLabels := make([]string, 0, len(this.Labels))
  21897. for k := range this.Labels {
  21898. keysForLabels = append(keysForLabels, k)
  21899. }
  21900. github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  21901. mapStringForLabels := "map[string]string{"
  21902. for _, k := range keysForLabels {
  21903. mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  21904. }
  21905. mapStringForLabels += "}"
  21906. keysForAnnotations := make([]string, 0, len(this.Annotations))
  21907. for k := range this.Annotations {
  21908. keysForAnnotations = append(keysForAnnotations, k)
  21909. }
  21910. github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
  21911. mapStringForAnnotations := "map[string]string{"
  21912. for _, k := range keysForAnnotations {
  21913. mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
  21914. }
  21915. mapStringForAnnotations += "}"
  21916. s := strings.Join([]string{`&ContainerConfig{`,
  21917. `Metadata:` + strings.Replace(this.Metadata.String(), "ContainerMetadata", "ContainerMetadata", 1) + `,`,
  21918. `Image:` + strings.Replace(this.Image.String(), "ImageSpec", "ImageSpec", 1) + `,`,
  21919. `Command:` + fmt.Sprintf("%v", this.Command) + `,`,
  21920. `Args:` + fmt.Sprintf("%v", this.Args) + `,`,
  21921. `WorkingDir:` + fmt.Sprintf("%v", this.WorkingDir) + `,`,
  21922. `Envs:` + repeatedStringForEnvs + `,`,
  21923. `Mounts:` + repeatedStringForMounts + `,`,
  21924. `Devices:` + repeatedStringForDevices + `,`,
  21925. `Labels:` + mapStringForLabels + `,`,
  21926. `Annotations:` + mapStringForAnnotations + `,`,
  21927. `LogPath:` + fmt.Sprintf("%v", this.LogPath) + `,`,
  21928. `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`,
  21929. `StdinOnce:` + fmt.Sprintf("%v", this.StdinOnce) + `,`,
  21930. `Tty:` + fmt.Sprintf("%v", this.Tty) + `,`,
  21931. `Linux:` + strings.Replace(this.Linux.String(), "LinuxContainerConfig", "LinuxContainerConfig", 1) + `,`,
  21932. `Windows:` + strings.Replace(this.Windows.String(), "WindowsContainerConfig", "WindowsContainerConfig", 1) + `,`,
  21933. `CDIDevices:` + repeatedStringForCDIDevices + `,`,
  21934. `}`,
  21935. }, "")
  21936. return s
  21937. }
  21938. func (this *CreateContainerRequest) String() string {
  21939. if this == nil {
  21940. return "nil"
  21941. }
  21942. s := strings.Join([]string{`&CreateContainerRequest{`,
  21943. `PodSandboxId:` + fmt.Sprintf("%v", this.PodSandboxId) + `,`,
  21944. `Config:` + strings.Replace(this.Config.String(), "ContainerConfig", "ContainerConfig", 1) + `,`,
  21945. `SandboxConfig:` + strings.Replace(this.SandboxConfig.String(), "PodSandboxConfig", "PodSandboxConfig", 1) + `,`,
  21946. `}`,
  21947. }, "")
  21948. return s
  21949. }
  21950. func (this *CreateContainerResponse) String() string {
  21951. if this == nil {
  21952. return "nil"
  21953. }
  21954. s := strings.Join([]string{`&CreateContainerResponse{`,
  21955. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  21956. `}`,
  21957. }, "")
  21958. return s
  21959. }
  21960. func (this *StartContainerRequest) String() string {
  21961. if this == nil {
  21962. return "nil"
  21963. }
  21964. s := strings.Join([]string{`&StartContainerRequest{`,
  21965. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  21966. `}`,
  21967. }, "")
  21968. return s
  21969. }
  21970. func (this *StartContainerResponse) String() string {
  21971. if this == nil {
  21972. return "nil"
  21973. }
  21974. s := strings.Join([]string{`&StartContainerResponse{`,
  21975. `}`,
  21976. }, "")
  21977. return s
  21978. }
  21979. func (this *StopContainerRequest) String() string {
  21980. if this == nil {
  21981. return "nil"
  21982. }
  21983. s := strings.Join([]string{`&StopContainerRequest{`,
  21984. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  21985. `Timeout:` + fmt.Sprintf("%v", this.Timeout) + `,`,
  21986. `}`,
  21987. }, "")
  21988. return s
  21989. }
  21990. func (this *StopContainerResponse) String() string {
  21991. if this == nil {
  21992. return "nil"
  21993. }
  21994. s := strings.Join([]string{`&StopContainerResponse{`,
  21995. `}`,
  21996. }, "")
  21997. return s
  21998. }
  21999. func (this *RemoveContainerRequest) String() string {
  22000. if this == nil {
  22001. return "nil"
  22002. }
  22003. s := strings.Join([]string{`&RemoveContainerRequest{`,
  22004. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  22005. `}`,
  22006. }, "")
  22007. return s
  22008. }
  22009. func (this *RemoveContainerResponse) String() string {
  22010. if this == nil {
  22011. return "nil"
  22012. }
  22013. s := strings.Join([]string{`&RemoveContainerResponse{`,
  22014. `}`,
  22015. }, "")
  22016. return s
  22017. }
  22018. func (this *ContainerStateValue) String() string {
  22019. if this == nil {
  22020. return "nil"
  22021. }
  22022. s := strings.Join([]string{`&ContainerStateValue{`,
  22023. `State:` + fmt.Sprintf("%v", this.State) + `,`,
  22024. `}`,
  22025. }, "")
  22026. return s
  22027. }
  22028. func (this *ContainerFilter) String() string {
  22029. if this == nil {
  22030. return "nil"
  22031. }
  22032. keysForLabelSelector := make([]string, 0, len(this.LabelSelector))
  22033. for k := range this.LabelSelector {
  22034. keysForLabelSelector = append(keysForLabelSelector, k)
  22035. }
  22036. github_com_gogo_protobuf_sortkeys.Strings(keysForLabelSelector)
  22037. mapStringForLabelSelector := "map[string]string{"
  22038. for _, k := range keysForLabelSelector {
  22039. mapStringForLabelSelector += fmt.Sprintf("%v: %v,", k, this.LabelSelector[k])
  22040. }
  22041. mapStringForLabelSelector += "}"
  22042. s := strings.Join([]string{`&ContainerFilter{`,
  22043. `Id:` + fmt.Sprintf("%v", this.Id) + `,`,
  22044. `State:` + strings.Replace(this.State.String(), "ContainerStateValue", "ContainerStateValue", 1) + `,`,
  22045. `PodSandboxId:` + fmt.Sprintf("%v", this.PodSandboxId) + `,`,
  22046. `LabelSelector:` + mapStringForLabelSelector + `,`,
  22047. `}`,
  22048. }, "")
  22049. return s
  22050. }
  22051. func (this *ListContainersRequest) String() string {
  22052. if this == nil {
  22053. return "nil"
  22054. }
  22055. s := strings.Join([]string{`&ListContainersRequest{`,
  22056. `Filter:` + strings.Replace(this.Filter.String(), "ContainerFilter", "ContainerFilter", 1) + `,`,
  22057. `}`,
  22058. }, "")
  22059. return s
  22060. }
  22061. func (this *Container) String() string {
  22062. if this == nil {
  22063. return "nil"
  22064. }
  22065. keysForLabels := make([]string, 0, len(this.Labels))
  22066. for k := range this.Labels {
  22067. keysForLabels = append(keysForLabels, k)
  22068. }
  22069. github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  22070. mapStringForLabels := "map[string]string{"
  22071. for _, k := range keysForLabels {
  22072. mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  22073. }
  22074. mapStringForLabels += "}"
  22075. keysForAnnotations := make([]string, 0, len(this.Annotations))
  22076. for k := range this.Annotations {
  22077. keysForAnnotations = append(keysForAnnotations, k)
  22078. }
  22079. github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
  22080. mapStringForAnnotations := "map[string]string{"
  22081. for _, k := range keysForAnnotations {
  22082. mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
  22083. }
  22084. mapStringForAnnotations += "}"
  22085. s := strings.Join([]string{`&Container{`,
  22086. `Id:` + fmt.Sprintf("%v", this.Id) + `,`,
  22087. `PodSandboxId:` + fmt.Sprintf("%v", this.PodSandboxId) + `,`,
  22088. `Metadata:` + strings.Replace(this.Metadata.String(), "ContainerMetadata", "ContainerMetadata", 1) + `,`,
  22089. `Image:` + strings.Replace(this.Image.String(), "ImageSpec", "ImageSpec", 1) + `,`,
  22090. `ImageRef:` + fmt.Sprintf("%v", this.ImageRef) + `,`,
  22091. `State:` + fmt.Sprintf("%v", this.State) + `,`,
  22092. `CreatedAt:` + fmt.Sprintf("%v", this.CreatedAt) + `,`,
  22093. `Labels:` + mapStringForLabels + `,`,
  22094. `Annotations:` + mapStringForAnnotations + `,`,
  22095. `}`,
  22096. }, "")
  22097. return s
  22098. }
  22099. func (this *ListContainersResponse) String() string {
  22100. if this == nil {
  22101. return "nil"
  22102. }
  22103. repeatedStringForContainers := "[]*Container{"
  22104. for _, f := range this.Containers {
  22105. repeatedStringForContainers += strings.Replace(f.String(), "Container", "Container", 1) + ","
  22106. }
  22107. repeatedStringForContainers += "}"
  22108. s := strings.Join([]string{`&ListContainersResponse{`,
  22109. `Containers:` + repeatedStringForContainers + `,`,
  22110. `}`,
  22111. }, "")
  22112. return s
  22113. }
  22114. func (this *ContainerStatusRequest) String() string {
  22115. if this == nil {
  22116. return "nil"
  22117. }
  22118. s := strings.Join([]string{`&ContainerStatusRequest{`,
  22119. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  22120. `Verbose:` + fmt.Sprintf("%v", this.Verbose) + `,`,
  22121. `}`,
  22122. }, "")
  22123. return s
  22124. }
  22125. func (this *ContainerStatus) String() string {
  22126. if this == nil {
  22127. return "nil"
  22128. }
  22129. repeatedStringForMounts := "[]*Mount{"
  22130. for _, f := range this.Mounts {
  22131. repeatedStringForMounts += strings.Replace(f.String(), "Mount", "Mount", 1) + ","
  22132. }
  22133. repeatedStringForMounts += "}"
  22134. keysForLabels := make([]string, 0, len(this.Labels))
  22135. for k := range this.Labels {
  22136. keysForLabels = append(keysForLabels, k)
  22137. }
  22138. github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  22139. mapStringForLabels := "map[string]string{"
  22140. for _, k := range keysForLabels {
  22141. mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  22142. }
  22143. mapStringForLabels += "}"
  22144. keysForAnnotations := make([]string, 0, len(this.Annotations))
  22145. for k := range this.Annotations {
  22146. keysForAnnotations = append(keysForAnnotations, k)
  22147. }
  22148. github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
  22149. mapStringForAnnotations := "map[string]string{"
  22150. for _, k := range keysForAnnotations {
  22151. mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
  22152. }
  22153. mapStringForAnnotations += "}"
  22154. s := strings.Join([]string{`&ContainerStatus{`,
  22155. `Id:` + fmt.Sprintf("%v", this.Id) + `,`,
  22156. `Metadata:` + strings.Replace(this.Metadata.String(), "ContainerMetadata", "ContainerMetadata", 1) + `,`,
  22157. `State:` + fmt.Sprintf("%v", this.State) + `,`,
  22158. `CreatedAt:` + fmt.Sprintf("%v", this.CreatedAt) + `,`,
  22159. `StartedAt:` + fmt.Sprintf("%v", this.StartedAt) + `,`,
  22160. `FinishedAt:` + fmt.Sprintf("%v", this.FinishedAt) + `,`,
  22161. `ExitCode:` + fmt.Sprintf("%v", this.ExitCode) + `,`,
  22162. `Image:` + strings.Replace(this.Image.String(), "ImageSpec", "ImageSpec", 1) + `,`,
  22163. `ImageRef:` + fmt.Sprintf("%v", this.ImageRef) + `,`,
  22164. `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
  22165. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  22166. `Labels:` + mapStringForLabels + `,`,
  22167. `Annotations:` + mapStringForAnnotations + `,`,
  22168. `Mounts:` + repeatedStringForMounts + `,`,
  22169. `LogPath:` + fmt.Sprintf("%v", this.LogPath) + `,`,
  22170. `Resources:` + strings.Replace(this.Resources.String(), "ContainerResources", "ContainerResources", 1) + `,`,
  22171. `}`,
  22172. }, "")
  22173. return s
  22174. }
  22175. func (this *ContainerStatusResponse) String() string {
  22176. if this == nil {
  22177. return "nil"
  22178. }
  22179. keysForInfo := make([]string, 0, len(this.Info))
  22180. for k := range this.Info {
  22181. keysForInfo = append(keysForInfo, k)
  22182. }
  22183. github_com_gogo_protobuf_sortkeys.Strings(keysForInfo)
  22184. mapStringForInfo := "map[string]string{"
  22185. for _, k := range keysForInfo {
  22186. mapStringForInfo += fmt.Sprintf("%v: %v,", k, this.Info[k])
  22187. }
  22188. mapStringForInfo += "}"
  22189. s := strings.Join([]string{`&ContainerStatusResponse{`,
  22190. `Status:` + strings.Replace(this.Status.String(), "ContainerStatus", "ContainerStatus", 1) + `,`,
  22191. `Info:` + mapStringForInfo + `,`,
  22192. `}`,
  22193. }, "")
  22194. return s
  22195. }
  22196. func (this *ContainerResources) String() string {
  22197. if this == nil {
  22198. return "nil"
  22199. }
  22200. s := strings.Join([]string{`&ContainerResources{`,
  22201. `Linux:` + strings.Replace(this.Linux.String(), "LinuxContainerResources", "LinuxContainerResources", 1) + `,`,
  22202. `Windows:` + strings.Replace(this.Windows.String(), "WindowsContainerResources", "WindowsContainerResources", 1) + `,`,
  22203. `}`,
  22204. }, "")
  22205. return s
  22206. }
  22207. func (this *UpdateContainerResourcesRequest) String() string {
  22208. if this == nil {
  22209. return "nil"
  22210. }
  22211. keysForAnnotations := make([]string, 0, len(this.Annotations))
  22212. for k := range this.Annotations {
  22213. keysForAnnotations = append(keysForAnnotations, k)
  22214. }
  22215. github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
  22216. mapStringForAnnotations := "map[string]string{"
  22217. for _, k := range keysForAnnotations {
  22218. mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
  22219. }
  22220. mapStringForAnnotations += "}"
  22221. s := strings.Join([]string{`&UpdateContainerResourcesRequest{`,
  22222. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  22223. `Linux:` + strings.Replace(this.Linux.String(), "LinuxContainerResources", "LinuxContainerResources", 1) + `,`,
  22224. `Windows:` + strings.Replace(this.Windows.String(), "WindowsContainerResources", "WindowsContainerResources", 1) + `,`,
  22225. `Annotations:` + mapStringForAnnotations + `,`,
  22226. `}`,
  22227. }, "")
  22228. return s
  22229. }
  22230. func (this *UpdateContainerResourcesResponse) String() string {
  22231. if this == nil {
  22232. return "nil"
  22233. }
  22234. s := strings.Join([]string{`&UpdateContainerResourcesResponse{`,
  22235. `}`,
  22236. }, "")
  22237. return s
  22238. }
  22239. func (this *ExecSyncRequest) String() string {
  22240. if this == nil {
  22241. return "nil"
  22242. }
  22243. s := strings.Join([]string{`&ExecSyncRequest{`,
  22244. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  22245. `Cmd:` + fmt.Sprintf("%v", this.Cmd) + `,`,
  22246. `Timeout:` + fmt.Sprintf("%v", this.Timeout) + `,`,
  22247. `}`,
  22248. }, "")
  22249. return s
  22250. }
  22251. func (this *ExecSyncResponse) String() string {
  22252. if this == nil {
  22253. return "nil"
  22254. }
  22255. s := strings.Join([]string{`&ExecSyncResponse{`,
  22256. `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`,
  22257. `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`,
  22258. `ExitCode:` + fmt.Sprintf("%v", this.ExitCode) + `,`,
  22259. `}`,
  22260. }, "")
  22261. return s
  22262. }
  22263. func (this *ExecRequest) String() string {
  22264. if this == nil {
  22265. return "nil"
  22266. }
  22267. s := strings.Join([]string{`&ExecRequest{`,
  22268. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  22269. `Cmd:` + fmt.Sprintf("%v", this.Cmd) + `,`,
  22270. `Tty:` + fmt.Sprintf("%v", this.Tty) + `,`,
  22271. `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`,
  22272. `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`,
  22273. `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`,
  22274. `}`,
  22275. }, "")
  22276. return s
  22277. }
  22278. func (this *ExecResponse) String() string {
  22279. if this == nil {
  22280. return "nil"
  22281. }
  22282. s := strings.Join([]string{`&ExecResponse{`,
  22283. `Url:` + fmt.Sprintf("%v", this.Url) + `,`,
  22284. `}`,
  22285. }, "")
  22286. return s
  22287. }
  22288. func (this *AttachRequest) String() string {
  22289. if this == nil {
  22290. return "nil"
  22291. }
  22292. s := strings.Join([]string{`&AttachRequest{`,
  22293. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  22294. `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`,
  22295. `Tty:` + fmt.Sprintf("%v", this.Tty) + `,`,
  22296. `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`,
  22297. `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`,
  22298. `}`,
  22299. }, "")
  22300. return s
  22301. }
  22302. func (this *AttachResponse) String() string {
  22303. if this == nil {
  22304. return "nil"
  22305. }
  22306. s := strings.Join([]string{`&AttachResponse{`,
  22307. `Url:` + fmt.Sprintf("%v", this.Url) + `,`,
  22308. `}`,
  22309. }, "")
  22310. return s
  22311. }
  22312. func (this *PortForwardRequest) String() string {
  22313. if this == nil {
  22314. return "nil"
  22315. }
  22316. s := strings.Join([]string{`&PortForwardRequest{`,
  22317. `PodSandboxId:` + fmt.Sprintf("%v", this.PodSandboxId) + `,`,
  22318. `Port:` + fmt.Sprintf("%v", this.Port) + `,`,
  22319. `}`,
  22320. }, "")
  22321. return s
  22322. }
  22323. func (this *PortForwardResponse) String() string {
  22324. if this == nil {
  22325. return "nil"
  22326. }
  22327. s := strings.Join([]string{`&PortForwardResponse{`,
  22328. `Url:` + fmt.Sprintf("%v", this.Url) + `,`,
  22329. `}`,
  22330. }, "")
  22331. return s
  22332. }
  22333. func (this *ImageFilter) String() string {
  22334. if this == nil {
  22335. return "nil"
  22336. }
  22337. s := strings.Join([]string{`&ImageFilter{`,
  22338. `Image:` + strings.Replace(this.Image.String(), "ImageSpec", "ImageSpec", 1) + `,`,
  22339. `}`,
  22340. }, "")
  22341. return s
  22342. }
  22343. func (this *ListImagesRequest) String() string {
  22344. if this == nil {
  22345. return "nil"
  22346. }
  22347. s := strings.Join([]string{`&ListImagesRequest{`,
  22348. `Filter:` + strings.Replace(this.Filter.String(), "ImageFilter", "ImageFilter", 1) + `,`,
  22349. `}`,
  22350. }, "")
  22351. return s
  22352. }
  22353. func (this *Image) String() string {
  22354. if this == nil {
  22355. return "nil"
  22356. }
  22357. s := strings.Join([]string{`&Image{`,
  22358. `Id:` + fmt.Sprintf("%v", this.Id) + `,`,
  22359. `RepoTags:` + fmt.Sprintf("%v", this.RepoTags) + `,`,
  22360. `RepoDigests:` + fmt.Sprintf("%v", this.RepoDigests) + `,`,
  22361. `Size_:` + fmt.Sprintf("%v", this.Size_) + `,`,
  22362. `Uid:` + strings.Replace(this.Uid.String(), "Int64Value", "Int64Value", 1) + `,`,
  22363. `Username:` + fmt.Sprintf("%v", this.Username) + `,`,
  22364. `Spec:` + strings.Replace(this.Spec.String(), "ImageSpec", "ImageSpec", 1) + `,`,
  22365. `Pinned:` + fmt.Sprintf("%v", this.Pinned) + `,`,
  22366. `}`,
  22367. }, "")
  22368. return s
  22369. }
  22370. func (this *ListImagesResponse) String() string {
  22371. if this == nil {
  22372. return "nil"
  22373. }
  22374. repeatedStringForImages := "[]*Image{"
  22375. for _, f := range this.Images {
  22376. repeatedStringForImages += strings.Replace(f.String(), "Image", "Image", 1) + ","
  22377. }
  22378. repeatedStringForImages += "}"
  22379. s := strings.Join([]string{`&ListImagesResponse{`,
  22380. `Images:` + repeatedStringForImages + `,`,
  22381. `}`,
  22382. }, "")
  22383. return s
  22384. }
  22385. func (this *ImageStatusRequest) String() string {
  22386. if this == nil {
  22387. return "nil"
  22388. }
  22389. s := strings.Join([]string{`&ImageStatusRequest{`,
  22390. `Image:` + strings.Replace(this.Image.String(), "ImageSpec", "ImageSpec", 1) + `,`,
  22391. `Verbose:` + fmt.Sprintf("%v", this.Verbose) + `,`,
  22392. `}`,
  22393. }, "")
  22394. return s
  22395. }
  22396. func (this *ImageStatusResponse) String() string {
  22397. if this == nil {
  22398. return "nil"
  22399. }
  22400. keysForInfo := make([]string, 0, len(this.Info))
  22401. for k := range this.Info {
  22402. keysForInfo = append(keysForInfo, k)
  22403. }
  22404. github_com_gogo_protobuf_sortkeys.Strings(keysForInfo)
  22405. mapStringForInfo := "map[string]string{"
  22406. for _, k := range keysForInfo {
  22407. mapStringForInfo += fmt.Sprintf("%v: %v,", k, this.Info[k])
  22408. }
  22409. mapStringForInfo += "}"
  22410. s := strings.Join([]string{`&ImageStatusResponse{`,
  22411. `Image:` + strings.Replace(this.Image.String(), "Image", "Image", 1) + `,`,
  22412. `Info:` + mapStringForInfo + `,`,
  22413. `}`,
  22414. }, "")
  22415. return s
  22416. }
  22417. func (this *AuthConfig) String() string {
  22418. if this == nil {
  22419. return "nil"
  22420. }
  22421. s := strings.Join([]string{`&AuthConfig{`,
  22422. `Username:` + fmt.Sprintf("%v", this.Username) + `,`,
  22423. `Password:` + fmt.Sprintf("%v", this.Password) + `,`,
  22424. `Auth:` + fmt.Sprintf("%v", this.Auth) + `,`,
  22425. `ServerAddress:` + fmt.Sprintf("%v", this.ServerAddress) + `,`,
  22426. `IdentityToken:` + fmt.Sprintf("%v", this.IdentityToken) + `,`,
  22427. `RegistryToken:` + fmt.Sprintf("%v", this.RegistryToken) + `,`,
  22428. `}`,
  22429. }, "")
  22430. return s
  22431. }
  22432. func (this *PullImageRequest) String() string {
  22433. if this == nil {
  22434. return "nil"
  22435. }
  22436. s := strings.Join([]string{`&PullImageRequest{`,
  22437. `Image:` + strings.Replace(this.Image.String(), "ImageSpec", "ImageSpec", 1) + `,`,
  22438. `Auth:` + strings.Replace(this.Auth.String(), "AuthConfig", "AuthConfig", 1) + `,`,
  22439. `SandboxConfig:` + strings.Replace(this.SandboxConfig.String(), "PodSandboxConfig", "PodSandboxConfig", 1) + `,`,
  22440. `}`,
  22441. }, "")
  22442. return s
  22443. }
  22444. func (this *PullImageResponse) String() string {
  22445. if this == nil {
  22446. return "nil"
  22447. }
  22448. s := strings.Join([]string{`&PullImageResponse{`,
  22449. `ImageRef:` + fmt.Sprintf("%v", this.ImageRef) + `,`,
  22450. `}`,
  22451. }, "")
  22452. return s
  22453. }
  22454. func (this *RemoveImageRequest) String() string {
  22455. if this == nil {
  22456. return "nil"
  22457. }
  22458. s := strings.Join([]string{`&RemoveImageRequest{`,
  22459. `Image:` + strings.Replace(this.Image.String(), "ImageSpec", "ImageSpec", 1) + `,`,
  22460. `}`,
  22461. }, "")
  22462. return s
  22463. }
  22464. func (this *RemoveImageResponse) String() string {
  22465. if this == nil {
  22466. return "nil"
  22467. }
  22468. s := strings.Join([]string{`&RemoveImageResponse{`,
  22469. `}`,
  22470. }, "")
  22471. return s
  22472. }
  22473. func (this *NetworkConfig) String() string {
  22474. if this == nil {
  22475. return "nil"
  22476. }
  22477. s := strings.Join([]string{`&NetworkConfig{`,
  22478. `PodCidr:` + fmt.Sprintf("%v", this.PodCidr) + `,`,
  22479. `}`,
  22480. }, "")
  22481. return s
  22482. }
  22483. func (this *RuntimeConfig) String() string {
  22484. if this == nil {
  22485. return "nil"
  22486. }
  22487. s := strings.Join([]string{`&RuntimeConfig{`,
  22488. `NetworkConfig:` + strings.Replace(this.NetworkConfig.String(), "NetworkConfig", "NetworkConfig", 1) + `,`,
  22489. `}`,
  22490. }, "")
  22491. return s
  22492. }
  22493. func (this *UpdateRuntimeConfigRequest) String() string {
  22494. if this == nil {
  22495. return "nil"
  22496. }
  22497. s := strings.Join([]string{`&UpdateRuntimeConfigRequest{`,
  22498. `RuntimeConfig:` + strings.Replace(this.RuntimeConfig.String(), "RuntimeConfig", "RuntimeConfig", 1) + `,`,
  22499. `}`,
  22500. }, "")
  22501. return s
  22502. }
  22503. func (this *UpdateRuntimeConfigResponse) String() string {
  22504. if this == nil {
  22505. return "nil"
  22506. }
  22507. s := strings.Join([]string{`&UpdateRuntimeConfigResponse{`,
  22508. `}`,
  22509. }, "")
  22510. return s
  22511. }
  22512. func (this *RuntimeCondition) String() string {
  22513. if this == nil {
  22514. return "nil"
  22515. }
  22516. s := strings.Join([]string{`&RuntimeCondition{`,
  22517. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  22518. `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
  22519. `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
  22520. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  22521. `}`,
  22522. }, "")
  22523. return s
  22524. }
  22525. func (this *RuntimeStatus) String() string {
  22526. if this == nil {
  22527. return "nil"
  22528. }
  22529. repeatedStringForConditions := "[]*RuntimeCondition{"
  22530. for _, f := range this.Conditions {
  22531. repeatedStringForConditions += strings.Replace(f.String(), "RuntimeCondition", "RuntimeCondition", 1) + ","
  22532. }
  22533. repeatedStringForConditions += "}"
  22534. s := strings.Join([]string{`&RuntimeStatus{`,
  22535. `Conditions:` + repeatedStringForConditions + `,`,
  22536. `}`,
  22537. }, "")
  22538. return s
  22539. }
  22540. func (this *StatusRequest) String() string {
  22541. if this == nil {
  22542. return "nil"
  22543. }
  22544. s := strings.Join([]string{`&StatusRequest{`,
  22545. `Verbose:` + fmt.Sprintf("%v", this.Verbose) + `,`,
  22546. `}`,
  22547. }, "")
  22548. return s
  22549. }
  22550. func (this *StatusResponse) String() string {
  22551. if this == nil {
  22552. return "nil"
  22553. }
  22554. keysForInfo := make([]string, 0, len(this.Info))
  22555. for k := range this.Info {
  22556. keysForInfo = append(keysForInfo, k)
  22557. }
  22558. github_com_gogo_protobuf_sortkeys.Strings(keysForInfo)
  22559. mapStringForInfo := "map[string]string{"
  22560. for _, k := range keysForInfo {
  22561. mapStringForInfo += fmt.Sprintf("%v: %v,", k, this.Info[k])
  22562. }
  22563. mapStringForInfo += "}"
  22564. s := strings.Join([]string{`&StatusResponse{`,
  22565. `Status:` + strings.Replace(this.Status.String(), "RuntimeStatus", "RuntimeStatus", 1) + `,`,
  22566. `Info:` + mapStringForInfo + `,`,
  22567. `}`,
  22568. }, "")
  22569. return s
  22570. }
  22571. func (this *ImageFsInfoRequest) String() string {
  22572. if this == nil {
  22573. return "nil"
  22574. }
  22575. s := strings.Join([]string{`&ImageFsInfoRequest{`,
  22576. `}`,
  22577. }, "")
  22578. return s
  22579. }
  22580. func (this *UInt64Value) String() string {
  22581. if this == nil {
  22582. return "nil"
  22583. }
  22584. s := strings.Join([]string{`&UInt64Value{`,
  22585. `Value:` + fmt.Sprintf("%v", this.Value) + `,`,
  22586. `}`,
  22587. }, "")
  22588. return s
  22589. }
  22590. func (this *FilesystemIdentifier) String() string {
  22591. if this == nil {
  22592. return "nil"
  22593. }
  22594. s := strings.Join([]string{`&FilesystemIdentifier{`,
  22595. `Mountpoint:` + fmt.Sprintf("%v", this.Mountpoint) + `,`,
  22596. `}`,
  22597. }, "")
  22598. return s
  22599. }
  22600. func (this *FilesystemUsage) String() string {
  22601. if this == nil {
  22602. return "nil"
  22603. }
  22604. s := strings.Join([]string{`&FilesystemUsage{`,
  22605. `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
  22606. `FsId:` + strings.Replace(this.FsId.String(), "FilesystemIdentifier", "FilesystemIdentifier", 1) + `,`,
  22607. `UsedBytes:` + strings.Replace(this.UsedBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22608. `InodesUsed:` + strings.Replace(this.InodesUsed.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22609. `}`,
  22610. }, "")
  22611. return s
  22612. }
  22613. func (this *WindowsFilesystemUsage) String() string {
  22614. if this == nil {
  22615. return "nil"
  22616. }
  22617. s := strings.Join([]string{`&WindowsFilesystemUsage{`,
  22618. `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
  22619. `FsId:` + strings.Replace(this.FsId.String(), "FilesystemIdentifier", "FilesystemIdentifier", 1) + `,`,
  22620. `UsedBytes:` + strings.Replace(this.UsedBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22621. `}`,
  22622. }, "")
  22623. return s
  22624. }
  22625. func (this *ImageFsInfoResponse) String() string {
  22626. if this == nil {
  22627. return "nil"
  22628. }
  22629. repeatedStringForImageFilesystems := "[]*FilesystemUsage{"
  22630. for _, f := range this.ImageFilesystems {
  22631. repeatedStringForImageFilesystems += strings.Replace(f.String(), "FilesystemUsage", "FilesystemUsage", 1) + ","
  22632. }
  22633. repeatedStringForImageFilesystems += "}"
  22634. s := strings.Join([]string{`&ImageFsInfoResponse{`,
  22635. `ImageFilesystems:` + repeatedStringForImageFilesystems + `,`,
  22636. `}`,
  22637. }, "")
  22638. return s
  22639. }
  22640. func (this *ContainerStatsRequest) String() string {
  22641. if this == nil {
  22642. return "nil"
  22643. }
  22644. s := strings.Join([]string{`&ContainerStatsRequest{`,
  22645. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  22646. `}`,
  22647. }, "")
  22648. return s
  22649. }
  22650. func (this *ContainerStatsResponse) String() string {
  22651. if this == nil {
  22652. return "nil"
  22653. }
  22654. s := strings.Join([]string{`&ContainerStatsResponse{`,
  22655. `Stats:` + strings.Replace(this.Stats.String(), "ContainerStats", "ContainerStats", 1) + `,`,
  22656. `}`,
  22657. }, "")
  22658. return s
  22659. }
  22660. func (this *ListContainerStatsRequest) String() string {
  22661. if this == nil {
  22662. return "nil"
  22663. }
  22664. s := strings.Join([]string{`&ListContainerStatsRequest{`,
  22665. `Filter:` + strings.Replace(this.Filter.String(), "ContainerStatsFilter", "ContainerStatsFilter", 1) + `,`,
  22666. `}`,
  22667. }, "")
  22668. return s
  22669. }
  22670. func (this *ContainerStatsFilter) String() string {
  22671. if this == nil {
  22672. return "nil"
  22673. }
  22674. keysForLabelSelector := make([]string, 0, len(this.LabelSelector))
  22675. for k := range this.LabelSelector {
  22676. keysForLabelSelector = append(keysForLabelSelector, k)
  22677. }
  22678. github_com_gogo_protobuf_sortkeys.Strings(keysForLabelSelector)
  22679. mapStringForLabelSelector := "map[string]string{"
  22680. for _, k := range keysForLabelSelector {
  22681. mapStringForLabelSelector += fmt.Sprintf("%v: %v,", k, this.LabelSelector[k])
  22682. }
  22683. mapStringForLabelSelector += "}"
  22684. s := strings.Join([]string{`&ContainerStatsFilter{`,
  22685. `Id:` + fmt.Sprintf("%v", this.Id) + `,`,
  22686. `PodSandboxId:` + fmt.Sprintf("%v", this.PodSandboxId) + `,`,
  22687. `LabelSelector:` + mapStringForLabelSelector + `,`,
  22688. `}`,
  22689. }, "")
  22690. return s
  22691. }
  22692. func (this *ListContainerStatsResponse) String() string {
  22693. if this == nil {
  22694. return "nil"
  22695. }
  22696. repeatedStringForStats := "[]*ContainerStats{"
  22697. for _, f := range this.Stats {
  22698. repeatedStringForStats += strings.Replace(f.String(), "ContainerStats", "ContainerStats", 1) + ","
  22699. }
  22700. repeatedStringForStats += "}"
  22701. s := strings.Join([]string{`&ListContainerStatsResponse{`,
  22702. `Stats:` + repeatedStringForStats + `,`,
  22703. `}`,
  22704. }, "")
  22705. return s
  22706. }
  22707. func (this *ContainerAttributes) String() string {
  22708. if this == nil {
  22709. return "nil"
  22710. }
  22711. keysForLabels := make([]string, 0, len(this.Labels))
  22712. for k := range this.Labels {
  22713. keysForLabels = append(keysForLabels, k)
  22714. }
  22715. github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  22716. mapStringForLabels := "map[string]string{"
  22717. for _, k := range keysForLabels {
  22718. mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  22719. }
  22720. mapStringForLabels += "}"
  22721. keysForAnnotations := make([]string, 0, len(this.Annotations))
  22722. for k := range this.Annotations {
  22723. keysForAnnotations = append(keysForAnnotations, k)
  22724. }
  22725. github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
  22726. mapStringForAnnotations := "map[string]string{"
  22727. for _, k := range keysForAnnotations {
  22728. mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
  22729. }
  22730. mapStringForAnnotations += "}"
  22731. s := strings.Join([]string{`&ContainerAttributes{`,
  22732. `Id:` + fmt.Sprintf("%v", this.Id) + `,`,
  22733. `Metadata:` + strings.Replace(this.Metadata.String(), "ContainerMetadata", "ContainerMetadata", 1) + `,`,
  22734. `Labels:` + mapStringForLabels + `,`,
  22735. `Annotations:` + mapStringForAnnotations + `,`,
  22736. `}`,
  22737. }, "")
  22738. return s
  22739. }
  22740. func (this *ContainerStats) String() string {
  22741. if this == nil {
  22742. return "nil"
  22743. }
  22744. s := strings.Join([]string{`&ContainerStats{`,
  22745. `Attributes:` + strings.Replace(this.Attributes.String(), "ContainerAttributes", "ContainerAttributes", 1) + `,`,
  22746. `Cpu:` + strings.Replace(this.Cpu.String(), "CpuUsage", "CpuUsage", 1) + `,`,
  22747. `Memory:` + strings.Replace(this.Memory.String(), "MemoryUsage", "MemoryUsage", 1) + `,`,
  22748. `WritableLayer:` + strings.Replace(this.WritableLayer.String(), "FilesystemUsage", "FilesystemUsage", 1) + `,`,
  22749. `Swap:` + strings.Replace(this.Swap.String(), "SwapUsage", "SwapUsage", 1) + `,`,
  22750. `}`,
  22751. }, "")
  22752. return s
  22753. }
  22754. func (this *WindowsContainerStats) String() string {
  22755. if this == nil {
  22756. return "nil"
  22757. }
  22758. s := strings.Join([]string{`&WindowsContainerStats{`,
  22759. `Attributes:` + strings.Replace(this.Attributes.String(), "ContainerAttributes", "ContainerAttributes", 1) + `,`,
  22760. `Cpu:` + strings.Replace(this.Cpu.String(), "WindowsCpuUsage", "WindowsCpuUsage", 1) + `,`,
  22761. `Memory:` + strings.Replace(this.Memory.String(), "WindowsMemoryUsage", "WindowsMemoryUsage", 1) + `,`,
  22762. `WritableLayer:` + strings.Replace(this.WritableLayer.String(), "WindowsFilesystemUsage", "WindowsFilesystemUsage", 1) + `,`,
  22763. `}`,
  22764. }, "")
  22765. return s
  22766. }
  22767. func (this *CpuUsage) String() string {
  22768. if this == nil {
  22769. return "nil"
  22770. }
  22771. s := strings.Join([]string{`&CpuUsage{`,
  22772. `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
  22773. `UsageCoreNanoSeconds:` + strings.Replace(this.UsageCoreNanoSeconds.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22774. `UsageNanoCores:` + strings.Replace(this.UsageNanoCores.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22775. `}`,
  22776. }, "")
  22777. return s
  22778. }
  22779. func (this *WindowsCpuUsage) String() string {
  22780. if this == nil {
  22781. return "nil"
  22782. }
  22783. s := strings.Join([]string{`&WindowsCpuUsage{`,
  22784. `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
  22785. `UsageCoreNanoSeconds:` + strings.Replace(this.UsageCoreNanoSeconds.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22786. `UsageNanoCores:` + strings.Replace(this.UsageNanoCores.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22787. `}`,
  22788. }, "")
  22789. return s
  22790. }
  22791. func (this *MemoryUsage) String() string {
  22792. if this == nil {
  22793. return "nil"
  22794. }
  22795. s := strings.Join([]string{`&MemoryUsage{`,
  22796. `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
  22797. `WorkingSetBytes:` + strings.Replace(this.WorkingSetBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22798. `AvailableBytes:` + strings.Replace(this.AvailableBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22799. `UsageBytes:` + strings.Replace(this.UsageBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22800. `RssBytes:` + strings.Replace(this.RssBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22801. `PageFaults:` + strings.Replace(this.PageFaults.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22802. `MajorPageFaults:` + strings.Replace(this.MajorPageFaults.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22803. `}`,
  22804. }, "")
  22805. return s
  22806. }
  22807. func (this *SwapUsage) String() string {
  22808. if this == nil {
  22809. return "nil"
  22810. }
  22811. s := strings.Join([]string{`&SwapUsage{`,
  22812. `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
  22813. `SwapAvailableBytes:` + strings.Replace(this.SwapAvailableBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22814. `SwapUsageBytes:` + strings.Replace(this.SwapUsageBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22815. `}`,
  22816. }, "")
  22817. return s
  22818. }
  22819. func (this *WindowsMemoryUsage) String() string {
  22820. if this == nil {
  22821. return "nil"
  22822. }
  22823. s := strings.Join([]string{`&WindowsMemoryUsage{`,
  22824. `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
  22825. `WorkingSetBytes:` + strings.Replace(this.WorkingSetBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22826. `AvailableBytes:` + strings.Replace(this.AvailableBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22827. `PageFaults:` + strings.Replace(this.PageFaults.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22828. `CommitMemoryBytes:` + strings.Replace(this.CommitMemoryBytes.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  22829. `}`,
  22830. }, "")
  22831. return s
  22832. }
  22833. func (this *ReopenContainerLogRequest) String() string {
  22834. if this == nil {
  22835. return "nil"
  22836. }
  22837. s := strings.Join([]string{`&ReopenContainerLogRequest{`,
  22838. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  22839. `}`,
  22840. }, "")
  22841. return s
  22842. }
  22843. func (this *ReopenContainerLogResponse) String() string {
  22844. if this == nil {
  22845. return "nil"
  22846. }
  22847. s := strings.Join([]string{`&ReopenContainerLogResponse{`,
  22848. `}`,
  22849. }, "")
  22850. return s
  22851. }
  22852. func (this *CheckpointContainerRequest) String() string {
  22853. if this == nil {
  22854. return "nil"
  22855. }
  22856. s := strings.Join([]string{`&CheckpointContainerRequest{`,
  22857. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  22858. `Location:` + fmt.Sprintf("%v", this.Location) + `,`,
  22859. `Timeout:` + fmt.Sprintf("%v", this.Timeout) + `,`,
  22860. `}`,
  22861. }, "")
  22862. return s
  22863. }
  22864. func (this *CheckpointContainerResponse) String() string {
  22865. if this == nil {
  22866. return "nil"
  22867. }
  22868. s := strings.Join([]string{`&CheckpointContainerResponse{`,
  22869. `}`,
  22870. }, "")
  22871. return s
  22872. }
  22873. func (this *GetEventsRequest) String() string {
  22874. if this == nil {
  22875. return "nil"
  22876. }
  22877. s := strings.Join([]string{`&GetEventsRequest{`,
  22878. `}`,
  22879. }, "")
  22880. return s
  22881. }
  22882. func (this *ContainerEventResponse) String() string {
  22883. if this == nil {
  22884. return "nil"
  22885. }
  22886. repeatedStringForContainersStatuses := "[]*ContainerStatus{"
  22887. for _, f := range this.ContainersStatuses {
  22888. repeatedStringForContainersStatuses += strings.Replace(f.String(), "ContainerStatus", "ContainerStatus", 1) + ","
  22889. }
  22890. repeatedStringForContainersStatuses += "}"
  22891. s := strings.Join([]string{`&ContainerEventResponse{`,
  22892. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  22893. `ContainerEventType:` + fmt.Sprintf("%v", this.ContainerEventType) + `,`,
  22894. `CreatedAt:` + fmt.Sprintf("%v", this.CreatedAt) + `,`,
  22895. `PodSandboxStatus:` + strings.Replace(this.PodSandboxStatus.String(), "PodSandboxStatus", "PodSandboxStatus", 1) + `,`,
  22896. `ContainersStatuses:` + repeatedStringForContainersStatuses + `,`,
  22897. `}`,
  22898. }, "")
  22899. return s
  22900. }
  22901. func (this *ListMetricDescriptorsRequest) String() string {
  22902. if this == nil {
  22903. return "nil"
  22904. }
  22905. s := strings.Join([]string{`&ListMetricDescriptorsRequest{`,
  22906. `}`,
  22907. }, "")
  22908. return s
  22909. }
  22910. func (this *ListMetricDescriptorsResponse) String() string {
  22911. if this == nil {
  22912. return "nil"
  22913. }
  22914. repeatedStringForDescriptors := "[]*MetricDescriptor{"
  22915. for _, f := range this.Descriptors {
  22916. repeatedStringForDescriptors += strings.Replace(f.String(), "MetricDescriptor", "MetricDescriptor", 1) + ","
  22917. }
  22918. repeatedStringForDescriptors += "}"
  22919. s := strings.Join([]string{`&ListMetricDescriptorsResponse{`,
  22920. `Descriptors:` + repeatedStringForDescriptors + `,`,
  22921. `}`,
  22922. }, "")
  22923. return s
  22924. }
  22925. func (this *MetricDescriptor) String() string {
  22926. if this == nil {
  22927. return "nil"
  22928. }
  22929. s := strings.Join([]string{`&MetricDescriptor{`,
  22930. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  22931. `Help:` + fmt.Sprintf("%v", this.Help) + `,`,
  22932. `LabelKeys:` + fmt.Sprintf("%v", this.LabelKeys) + `,`,
  22933. `}`,
  22934. }, "")
  22935. return s
  22936. }
  22937. func (this *ListPodSandboxMetricsRequest) String() string {
  22938. if this == nil {
  22939. return "nil"
  22940. }
  22941. s := strings.Join([]string{`&ListPodSandboxMetricsRequest{`,
  22942. `}`,
  22943. }, "")
  22944. return s
  22945. }
  22946. func (this *ListPodSandboxMetricsResponse) String() string {
  22947. if this == nil {
  22948. return "nil"
  22949. }
  22950. repeatedStringForPodMetrics := "[]*PodSandboxMetrics{"
  22951. for _, f := range this.PodMetrics {
  22952. repeatedStringForPodMetrics += strings.Replace(f.String(), "PodSandboxMetrics", "PodSandboxMetrics", 1) + ","
  22953. }
  22954. repeatedStringForPodMetrics += "}"
  22955. s := strings.Join([]string{`&ListPodSandboxMetricsResponse{`,
  22956. `PodMetrics:` + repeatedStringForPodMetrics + `,`,
  22957. `}`,
  22958. }, "")
  22959. return s
  22960. }
  22961. func (this *PodSandboxMetrics) String() string {
  22962. if this == nil {
  22963. return "nil"
  22964. }
  22965. repeatedStringForMetrics := "[]*Metric{"
  22966. for _, f := range this.Metrics {
  22967. repeatedStringForMetrics += strings.Replace(f.String(), "Metric", "Metric", 1) + ","
  22968. }
  22969. repeatedStringForMetrics += "}"
  22970. repeatedStringForContainerMetrics := "[]*ContainerMetrics{"
  22971. for _, f := range this.ContainerMetrics {
  22972. repeatedStringForContainerMetrics += strings.Replace(f.String(), "ContainerMetrics", "ContainerMetrics", 1) + ","
  22973. }
  22974. repeatedStringForContainerMetrics += "}"
  22975. s := strings.Join([]string{`&PodSandboxMetrics{`,
  22976. `PodSandboxId:` + fmt.Sprintf("%v", this.PodSandboxId) + `,`,
  22977. `Metrics:` + repeatedStringForMetrics + `,`,
  22978. `ContainerMetrics:` + repeatedStringForContainerMetrics + `,`,
  22979. `}`,
  22980. }, "")
  22981. return s
  22982. }
  22983. func (this *ContainerMetrics) String() string {
  22984. if this == nil {
  22985. return "nil"
  22986. }
  22987. repeatedStringForMetrics := "[]*Metric{"
  22988. for _, f := range this.Metrics {
  22989. repeatedStringForMetrics += strings.Replace(f.String(), "Metric", "Metric", 1) + ","
  22990. }
  22991. repeatedStringForMetrics += "}"
  22992. s := strings.Join([]string{`&ContainerMetrics{`,
  22993. `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`,
  22994. `Metrics:` + repeatedStringForMetrics + `,`,
  22995. `}`,
  22996. }, "")
  22997. return s
  22998. }
  22999. func (this *Metric) String() string {
  23000. if this == nil {
  23001. return "nil"
  23002. }
  23003. s := strings.Join([]string{`&Metric{`,
  23004. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  23005. `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
  23006. `MetricType:` + fmt.Sprintf("%v", this.MetricType) + `,`,
  23007. `LabelValues:` + fmt.Sprintf("%v", this.LabelValues) + `,`,
  23008. `Value:` + strings.Replace(this.Value.String(), "UInt64Value", "UInt64Value", 1) + `,`,
  23009. `}`,
  23010. }, "")
  23011. return s
  23012. }
  23013. func (this *RuntimeConfigRequest) String() string {
  23014. if this == nil {
  23015. return "nil"
  23016. }
  23017. s := strings.Join([]string{`&RuntimeConfigRequest{`,
  23018. `}`,
  23019. }, "")
  23020. return s
  23021. }
  23022. func (this *RuntimeConfigResponse) String() string {
  23023. if this == nil {
  23024. return "nil"
  23025. }
  23026. s := strings.Join([]string{`&RuntimeConfigResponse{`,
  23027. `Linux:` + strings.Replace(this.Linux.String(), "LinuxRuntimeConfiguration", "LinuxRuntimeConfiguration", 1) + `,`,
  23028. `}`,
  23029. }, "")
  23030. return s
  23031. }
  23032. func (this *LinuxRuntimeConfiguration) String() string {
  23033. if this == nil {
  23034. return "nil"
  23035. }
  23036. s := strings.Join([]string{`&LinuxRuntimeConfiguration{`,
  23037. `CgroupDriver:` + fmt.Sprintf("%v", this.CgroupDriver) + `,`,
  23038. `}`,
  23039. }, "")
  23040. return s
  23041. }
  23042. func valueToStringApi(v interface{}) string {
  23043. rv := reflect.ValueOf(v)
  23044. if rv.IsNil() {
  23045. return "nil"
  23046. }
  23047. pv := reflect.Indirect(rv).Interface()
  23048. return fmt.Sprintf("*%v", pv)
  23049. }
  23050. func (m *VersionRequest) Unmarshal(dAtA []byte) error {
  23051. l := len(dAtA)
  23052. iNdEx := 0
  23053. for iNdEx < l {
  23054. preIndex := iNdEx
  23055. var wire uint64
  23056. for shift := uint(0); ; shift += 7 {
  23057. if shift >= 64 {
  23058. return ErrIntOverflowApi
  23059. }
  23060. if iNdEx >= l {
  23061. return io.ErrUnexpectedEOF
  23062. }
  23063. b := dAtA[iNdEx]
  23064. iNdEx++
  23065. wire |= uint64(b&0x7F) << shift
  23066. if b < 0x80 {
  23067. break
  23068. }
  23069. }
  23070. fieldNum := int32(wire >> 3)
  23071. wireType := int(wire & 0x7)
  23072. if wireType == 4 {
  23073. return fmt.Errorf("proto: VersionRequest: wiretype end group for non-group")
  23074. }
  23075. if fieldNum <= 0 {
  23076. return fmt.Errorf("proto: VersionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  23077. }
  23078. switch fieldNum {
  23079. case 1:
  23080. if wireType != 2 {
  23081. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  23082. }
  23083. var stringLen uint64
  23084. for shift := uint(0); ; shift += 7 {
  23085. if shift >= 64 {
  23086. return ErrIntOverflowApi
  23087. }
  23088. if iNdEx >= l {
  23089. return io.ErrUnexpectedEOF
  23090. }
  23091. b := dAtA[iNdEx]
  23092. iNdEx++
  23093. stringLen |= uint64(b&0x7F) << shift
  23094. if b < 0x80 {
  23095. break
  23096. }
  23097. }
  23098. intStringLen := int(stringLen)
  23099. if intStringLen < 0 {
  23100. return ErrInvalidLengthApi
  23101. }
  23102. postIndex := iNdEx + intStringLen
  23103. if postIndex < 0 {
  23104. return ErrInvalidLengthApi
  23105. }
  23106. if postIndex > l {
  23107. return io.ErrUnexpectedEOF
  23108. }
  23109. m.Version = string(dAtA[iNdEx:postIndex])
  23110. iNdEx = postIndex
  23111. default:
  23112. iNdEx = preIndex
  23113. skippy, err := skipApi(dAtA[iNdEx:])
  23114. if err != nil {
  23115. return err
  23116. }
  23117. if (skippy < 0) || (iNdEx+skippy) < 0 {
  23118. return ErrInvalidLengthApi
  23119. }
  23120. if (iNdEx + skippy) > l {
  23121. return io.ErrUnexpectedEOF
  23122. }
  23123. iNdEx += skippy
  23124. }
  23125. }
  23126. if iNdEx > l {
  23127. return io.ErrUnexpectedEOF
  23128. }
  23129. return nil
  23130. }
  23131. func (m *VersionResponse) Unmarshal(dAtA []byte) error {
  23132. l := len(dAtA)
  23133. iNdEx := 0
  23134. for iNdEx < l {
  23135. preIndex := iNdEx
  23136. var wire uint64
  23137. for shift := uint(0); ; shift += 7 {
  23138. if shift >= 64 {
  23139. return ErrIntOverflowApi
  23140. }
  23141. if iNdEx >= l {
  23142. return io.ErrUnexpectedEOF
  23143. }
  23144. b := dAtA[iNdEx]
  23145. iNdEx++
  23146. wire |= uint64(b&0x7F) << shift
  23147. if b < 0x80 {
  23148. break
  23149. }
  23150. }
  23151. fieldNum := int32(wire >> 3)
  23152. wireType := int(wire & 0x7)
  23153. if wireType == 4 {
  23154. return fmt.Errorf("proto: VersionResponse: wiretype end group for non-group")
  23155. }
  23156. if fieldNum <= 0 {
  23157. return fmt.Errorf("proto: VersionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  23158. }
  23159. switch fieldNum {
  23160. case 1:
  23161. if wireType != 2 {
  23162. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  23163. }
  23164. var stringLen uint64
  23165. for shift := uint(0); ; shift += 7 {
  23166. if shift >= 64 {
  23167. return ErrIntOverflowApi
  23168. }
  23169. if iNdEx >= l {
  23170. return io.ErrUnexpectedEOF
  23171. }
  23172. b := dAtA[iNdEx]
  23173. iNdEx++
  23174. stringLen |= uint64(b&0x7F) << shift
  23175. if b < 0x80 {
  23176. break
  23177. }
  23178. }
  23179. intStringLen := int(stringLen)
  23180. if intStringLen < 0 {
  23181. return ErrInvalidLengthApi
  23182. }
  23183. postIndex := iNdEx + intStringLen
  23184. if postIndex < 0 {
  23185. return ErrInvalidLengthApi
  23186. }
  23187. if postIndex > l {
  23188. return io.ErrUnexpectedEOF
  23189. }
  23190. m.Version = string(dAtA[iNdEx:postIndex])
  23191. iNdEx = postIndex
  23192. case 2:
  23193. if wireType != 2 {
  23194. return fmt.Errorf("proto: wrong wireType = %d for field RuntimeName", wireType)
  23195. }
  23196. var stringLen uint64
  23197. for shift := uint(0); ; shift += 7 {
  23198. if shift >= 64 {
  23199. return ErrIntOverflowApi
  23200. }
  23201. if iNdEx >= l {
  23202. return io.ErrUnexpectedEOF
  23203. }
  23204. b := dAtA[iNdEx]
  23205. iNdEx++
  23206. stringLen |= uint64(b&0x7F) << shift
  23207. if b < 0x80 {
  23208. break
  23209. }
  23210. }
  23211. intStringLen := int(stringLen)
  23212. if intStringLen < 0 {
  23213. return ErrInvalidLengthApi
  23214. }
  23215. postIndex := iNdEx + intStringLen
  23216. if postIndex < 0 {
  23217. return ErrInvalidLengthApi
  23218. }
  23219. if postIndex > l {
  23220. return io.ErrUnexpectedEOF
  23221. }
  23222. m.RuntimeName = string(dAtA[iNdEx:postIndex])
  23223. iNdEx = postIndex
  23224. case 3:
  23225. if wireType != 2 {
  23226. return fmt.Errorf("proto: wrong wireType = %d for field RuntimeVersion", wireType)
  23227. }
  23228. var stringLen uint64
  23229. for shift := uint(0); ; shift += 7 {
  23230. if shift >= 64 {
  23231. return ErrIntOverflowApi
  23232. }
  23233. if iNdEx >= l {
  23234. return io.ErrUnexpectedEOF
  23235. }
  23236. b := dAtA[iNdEx]
  23237. iNdEx++
  23238. stringLen |= uint64(b&0x7F) << shift
  23239. if b < 0x80 {
  23240. break
  23241. }
  23242. }
  23243. intStringLen := int(stringLen)
  23244. if intStringLen < 0 {
  23245. return ErrInvalidLengthApi
  23246. }
  23247. postIndex := iNdEx + intStringLen
  23248. if postIndex < 0 {
  23249. return ErrInvalidLengthApi
  23250. }
  23251. if postIndex > l {
  23252. return io.ErrUnexpectedEOF
  23253. }
  23254. m.RuntimeVersion = string(dAtA[iNdEx:postIndex])
  23255. iNdEx = postIndex
  23256. case 4:
  23257. if wireType != 2 {
  23258. return fmt.Errorf("proto: wrong wireType = %d for field RuntimeApiVersion", wireType)
  23259. }
  23260. var stringLen uint64
  23261. for shift := uint(0); ; shift += 7 {
  23262. if shift >= 64 {
  23263. return ErrIntOverflowApi
  23264. }
  23265. if iNdEx >= l {
  23266. return io.ErrUnexpectedEOF
  23267. }
  23268. b := dAtA[iNdEx]
  23269. iNdEx++
  23270. stringLen |= uint64(b&0x7F) << shift
  23271. if b < 0x80 {
  23272. break
  23273. }
  23274. }
  23275. intStringLen := int(stringLen)
  23276. if intStringLen < 0 {
  23277. return ErrInvalidLengthApi
  23278. }
  23279. postIndex := iNdEx + intStringLen
  23280. if postIndex < 0 {
  23281. return ErrInvalidLengthApi
  23282. }
  23283. if postIndex > l {
  23284. return io.ErrUnexpectedEOF
  23285. }
  23286. m.RuntimeApiVersion = string(dAtA[iNdEx:postIndex])
  23287. iNdEx = postIndex
  23288. default:
  23289. iNdEx = preIndex
  23290. skippy, err := skipApi(dAtA[iNdEx:])
  23291. if err != nil {
  23292. return err
  23293. }
  23294. if (skippy < 0) || (iNdEx+skippy) < 0 {
  23295. return ErrInvalidLengthApi
  23296. }
  23297. if (iNdEx + skippy) > l {
  23298. return io.ErrUnexpectedEOF
  23299. }
  23300. iNdEx += skippy
  23301. }
  23302. }
  23303. if iNdEx > l {
  23304. return io.ErrUnexpectedEOF
  23305. }
  23306. return nil
  23307. }
  23308. func (m *DNSConfig) Unmarshal(dAtA []byte) error {
  23309. l := len(dAtA)
  23310. iNdEx := 0
  23311. for iNdEx < l {
  23312. preIndex := iNdEx
  23313. var wire uint64
  23314. for shift := uint(0); ; shift += 7 {
  23315. if shift >= 64 {
  23316. return ErrIntOverflowApi
  23317. }
  23318. if iNdEx >= l {
  23319. return io.ErrUnexpectedEOF
  23320. }
  23321. b := dAtA[iNdEx]
  23322. iNdEx++
  23323. wire |= uint64(b&0x7F) << shift
  23324. if b < 0x80 {
  23325. break
  23326. }
  23327. }
  23328. fieldNum := int32(wire >> 3)
  23329. wireType := int(wire & 0x7)
  23330. if wireType == 4 {
  23331. return fmt.Errorf("proto: DNSConfig: wiretype end group for non-group")
  23332. }
  23333. if fieldNum <= 0 {
  23334. return fmt.Errorf("proto: DNSConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  23335. }
  23336. switch fieldNum {
  23337. case 1:
  23338. if wireType != 2 {
  23339. return fmt.Errorf("proto: wrong wireType = %d for field Servers", wireType)
  23340. }
  23341. var stringLen uint64
  23342. for shift := uint(0); ; shift += 7 {
  23343. if shift >= 64 {
  23344. return ErrIntOverflowApi
  23345. }
  23346. if iNdEx >= l {
  23347. return io.ErrUnexpectedEOF
  23348. }
  23349. b := dAtA[iNdEx]
  23350. iNdEx++
  23351. stringLen |= uint64(b&0x7F) << shift
  23352. if b < 0x80 {
  23353. break
  23354. }
  23355. }
  23356. intStringLen := int(stringLen)
  23357. if intStringLen < 0 {
  23358. return ErrInvalidLengthApi
  23359. }
  23360. postIndex := iNdEx + intStringLen
  23361. if postIndex < 0 {
  23362. return ErrInvalidLengthApi
  23363. }
  23364. if postIndex > l {
  23365. return io.ErrUnexpectedEOF
  23366. }
  23367. m.Servers = append(m.Servers, string(dAtA[iNdEx:postIndex]))
  23368. iNdEx = postIndex
  23369. case 2:
  23370. if wireType != 2 {
  23371. return fmt.Errorf("proto: wrong wireType = %d for field Searches", wireType)
  23372. }
  23373. var stringLen uint64
  23374. for shift := uint(0); ; shift += 7 {
  23375. if shift >= 64 {
  23376. return ErrIntOverflowApi
  23377. }
  23378. if iNdEx >= l {
  23379. return io.ErrUnexpectedEOF
  23380. }
  23381. b := dAtA[iNdEx]
  23382. iNdEx++
  23383. stringLen |= uint64(b&0x7F) << shift
  23384. if b < 0x80 {
  23385. break
  23386. }
  23387. }
  23388. intStringLen := int(stringLen)
  23389. if intStringLen < 0 {
  23390. return ErrInvalidLengthApi
  23391. }
  23392. postIndex := iNdEx + intStringLen
  23393. if postIndex < 0 {
  23394. return ErrInvalidLengthApi
  23395. }
  23396. if postIndex > l {
  23397. return io.ErrUnexpectedEOF
  23398. }
  23399. m.Searches = append(m.Searches, string(dAtA[iNdEx:postIndex]))
  23400. iNdEx = postIndex
  23401. case 3:
  23402. if wireType != 2 {
  23403. return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
  23404. }
  23405. var stringLen uint64
  23406. for shift := uint(0); ; shift += 7 {
  23407. if shift >= 64 {
  23408. return ErrIntOverflowApi
  23409. }
  23410. if iNdEx >= l {
  23411. return io.ErrUnexpectedEOF
  23412. }
  23413. b := dAtA[iNdEx]
  23414. iNdEx++
  23415. stringLen |= uint64(b&0x7F) << shift
  23416. if b < 0x80 {
  23417. break
  23418. }
  23419. }
  23420. intStringLen := int(stringLen)
  23421. if intStringLen < 0 {
  23422. return ErrInvalidLengthApi
  23423. }
  23424. postIndex := iNdEx + intStringLen
  23425. if postIndex < 0 {
  23426. return ErrInvalidLengthApi
  23427. }
  23428. if postIndex > l {
  23429. return io.ErrUnexpectedEOF
  23430. }
  23431. m.Options = append(m.Options, string(dAtA[iNdEx:postIndex]))
  23432. iNdEx = postIndex
  23433. default:
  23434. iNdEx = preIndex
  23435. skippy, err := skipApi(dAtA[iNdEx:])
  23436. if err != nil {
  23437. return err
  23438. }
  23439. if (skippy < 0) || (iNdEx+skippy) < 0 {
  23440. return ErrInvalidLengthApi
  23441. }
  23442. if (iNdEx + skippy) > l {
  23443. return io.ErrUnexpectedEOF
  23444. }
  23445. iNdEx += skippy
  23446. }
  23447. }
  23448. if iNdEx > l {
  23449. return io.ErrUnexpectedEOF
  23450. }
  23451. return nil
  23452. }
  23453. func (m *PortMapping) Unmarshal(dAtA []byte) error {
  23454. l := len(dAtA)
  23455. iNdEx := 0
  23456. for iNdEx < l {
  23457. preIndex := iNdEx
  23458. var wire uint64
  23459. for shift := uint(0); ; shift += 7 {
  23460. if shift >= 64 {
  23461. return ErrIntOverflowApi
  23462. }
  23463. if iNdEx >= l {
  23464. return io.ErrUnexpectedEOF
  23465. }
  23466. b := dAtA[iNdEx]
  23467. iNdEx++
  23468. wire |= uint64(b&0x7F) << shift
  23469. if b < 0x80 {
  23470. break
  23471. }
  23472. }
  23473. fieldNum := int32(wire >> 3)
  23474. wireType := int(wire & 0x7)
  23475. if wireType == 4 {
  23476. return fmt.Errorf("proto: PortMapping: wiretype end group for non-group")
  23477. }
  23478. if fieldNum <= 0 {
  23479. return fmt.Errorf("proto: PortMapping: illegal tag %d (wire type %d)", fieldNum, wire)
  23480. }
  23481. switch fieldNum {
  23482. case 1:
  23483. if wireType != 0 {
  23484. return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType)
  23485. }
  23486. m.Protocol = 0
  23487. for shift := uint(0); ; shift += 7 {
  23488. if shift >= 64 {
  23489. return ErrIntOverflowApi
  23490. }
  23491. if iNdEx >= l {
  23492. return io.ErrUnexpectedEOF
  23493. }
  23494. b := dAtA[iNdEx]
  23495. iNdEx++
  23496. m.Protocol |= Protocol(b&0x7F) << shift
  23497. if b < 0x80 {
  23498. break
  23499. }
  23500. }
  23501. case 2:
  23502. if wireType != 0 {
  23503. return fmt.Errorf("proto: wrong wireType = %d for field ContainerPort", wireType)
  23504. }
  23505. m.ContainerPort = 0
  23506. for shift := uint(0); ; shift += 7 {
  23507. if shift >= 64 {
  23508. return ErrIntOverflowApi
  23509. }
  23510. if iNdEx >= l {
  23511. return io.ErrUnexpectedEOF
  23512. }
  23513. b := dAtA[iNdEx]
  23514. iNdEx++
  23515. m.ContainerPort |= int32(b&0x7F) << shift
  23516. if b < 0x80 {
  23517. break
  23518. }
  23519. }
  23520. case 3:
  23521. if wireType != 0 {
  23522. return fmt.Errorf("proto: wrong wireType = %d for field HostPort", wireType)
  23523. }
  23524. m.HostPort = 0
  23525. for shift := uint(0); ; shift += 7 {
  23526. if shift >= 64 {
  23527. return ErrIntOverflowApi
  23528. }
  23529. if iNdEx >= l {
  23530. return io.ErrUnexpectedEOF
  23531. }
  23532. b := dAtA[iNdEx]
  23533. iNdEx++
  23534. m.HostPort |= int32(b&0x7F) << shift
  23535. if b < 0x80 {
  23536. break
  23537. }
  23538. }
  23539. case 4:
  23540. if wireType != 2 {
  23541. return fmt.Errorf("proto: wrong wireType = %d for field HostIp", wireType)
  23542. }
  23543. var stringLen uint64
  23544. for shift := uint(0); ; shift += 7 {
  23545. if shift >= 64 {
  23546. return ErrIntOverflowApi
  23547. }
  23548. if iNdEx >= l {
  23549. return io.ErrUnexpectedEOF
  23550. }
  23551. b := dAtA[iNdEx]
  23552. iNdEx++
  23553. stringLen |= uint64(b&0x7F) << shift
  23554. if b < 0x80 {
  23555. break
  23556. }
  23557. }
  23558. intStringLen := int(stringLen)
  23559. if intStringLen < 0 {
  23560. return ErrInvalidLengthApi
  23561. }
  23562. postIndex := iNdEx + intStringLen
  23563. if postIndex < 0 {
  23564. return ErrInvalidLengthApi
  23565. }
  23566. if postIndex > l {
  23567. return io.ErrUnexpectedEOF
  23568. }
  23569. m.HostIp = string(dAtA[iNdEx:postIndex])
  23570. iNdEx = postIndex
  23571. default:
  23572. iNdEx = preIndex
  23573. skippy, err := skipApi(dAtA[iNdEx:])
  23574. if err != nil {
  23575. return err
  23576. }
  23577. if (skippy < 0) || (iNdEx+skippy) < 0 {
  23578. return ErrInvalidLengthApi
  23579. }
  23580. if (iNdEx + skippy) > l {
  23581. return io.ErrUnexpectedEOF
  23582. }
  23583. iNdEx += skippy
  23584. }
  23585. }
  23586. if iNdEx > l {
  23587. return io.ErrUnexpectedEOF
  23588. }
  23589. return nil
  23590. }
  23591. func (m *Mount) Unmarshal(dAtA []byte) error {
  23592. l := len(dAtA)
  23593. iNdEx := 0
  23594. for iNdEx < l {
  23595. preIndex := iNdEx
  23596. var wire uint64
  23597. for shift := uint(0); ; shift += 7 {
  23598. if shift >= 64 {
  23599. return ErrIntOverflowApi
  23600. }
  23601. if iNdEx >= l {
  23602. return io.ErrUnexpectedEOF
  23603. }
  23604. b := dAtA[iNdEx]
  23605. iNdEx++
  23606. wire |= uint64(b&0x7F) << shift
  23607. if b < 0x80 {
  23608. break
  23609. }
  23610. }
  23611. fieldNum := int32(wire >> 3)
  23612. wireType := int(wire & 0x7)
  23613. if wireType == 4 {
  23614. return fmt.Errorf("proto: Mount: wiretype end group for non-group")
  23615. }
  23616. if fieldNum <= 0 {
  23617. return fmt.Errorf("proto: Mount: illegal tag %d (wire type %d)", fieldNum, wire)
  23618. }
  23619. switch fieldNum {
  23620. case 1:
  23621. if wireType != 2 {
  23622. return fmt.Errorf("proto: wrong wireType = %d for field ContainerPath", wireType)
  23623. }
  23624. var stringLen uint64
  23625. for shift := uint(0); ; shift += 7 {
  23626. if shift >= 64 {
  23627. return ErrIntOverflowApi
  23628. }
  23629. if iNdEx >= l {
  23630. return io.ErrUnexpectedEOF
  23631. }
  23632. b := dAtA[iNdEx]
  23633. iNdEx++
  23634. stringLen |= uint64(b&0x7F) << shift
  23635. if b < 0x80 {
  23636. break
  23637. }
  23638. }
  23639. intStringLen := int(stringLen)
  23640. if intStringLen < 0 {
  23641. return ErrInvalidLengthApi
  23642. }
  23643. postIndex := iNdEx + intStringLen
  23644. if postIndex < 0 {
  23645. return ErrInvalidLengthApi
  23646. }
  23647. if postIndex > l {
  23648. return io.ErrUnexpectedEOF
  23649. }
  23650. m.ContainerPath = string(dAtA[iNdEx:postIndex])
  23651. iNdEx = postIndex
  23652. case 2:
  23653. if wireType != 2 {
  23654. return fmt.Errorf("proto: wrong wireType = %d for field HostPath", wireType)
  23655. }
  23656. var stringLen uint64
  23657. for shift := uint(0); ; shift += 7 {
  23658. if shift >= 64 {
  23659. return ErrIntOverflowApi
  23660. }
  23661. if iNdEx >= l {
  23662. return io.ErrUnexpectedEOF
  23663. }
  23664. b := dAtA[iNdEx]
  23665. iNdEx++
  23666. stringLen |= uint64(b&0x7F) << shift
  23667. if b < 0x80 {
  23668. break
  23669. }
  23670. }
  23671. intStringLen := int(stringLen)
  23672. if intStringLen < 0 {
  23673. return ErrInvalidLengthApi
  23674. }
  23675. postIndex := iNdEx + intStringLen
  23676. if postIndex < 0 {
  23677. return ErrInvalidLengthApi
  23678. }
  23679. if postIndex > l {
  23680. return io.ErrUnexpectedEOF
  23681. }
  23682. m.HostPath = string(dAtA[iNdEx:postIndex])
  23683. iNdEx = postIndex
  23684. case 3:
  23685. if wireType != 0 {
  23686. return fmt.Errorf("proto: wrong wireType = %d for field Readonly", wireType)
  23687. }
  23688. var v int
  23689. for shift := uint(0); ; shift += 7 {
  23690. if shift >= 64 {
  23691. return ErrIntOverflowApi
  23692. }
  23693. if iNdEx >= l {
  23694. return io.ErrUnexpectedEOF
  23695. }
  23696. b := dAtA[iNdEx]
  23697. iNdEx++
  23698. v |= int(b&0x7F) << shift
  23699. if b < 0x80 {
  23700. break
  23701. }
  23702. }
  23703. m.Readonly = bool(v != 0)
  23704. case 4:
  23705. if wireType != 0 {
  23706. return fmt.Errorf("proto: wrong wireType = %d for field SelinuxRelabel", wireType)
  23707. }
  23708. var v int
  23709. for shift := uint(0); ; shift += 7 {
  23710. if shift >= 64 {
  23711. return ErrIntOverflowApi
  23712. }
  23713. if iNdEx >= l {
  23714. return io.ErrUnexpectedEOF
  23715. }
  23716. b := dAtA[iNdEx]
  23717. iNdEx++
  23718. v |= int(b&0x7F) << shift
  23719. if b < 0x80 {
  23720. break
  23721. }
  23722. }
  23723. m.SelinuxRelabel = bool(v != 0)
  23724. case 5:
  23725. if wireType != 0 {
  23726. return fmt.Errorf("proto: wrong wireType = %d for field Propagation", wireType)
  23727. }
  23728. m.Propagation = 0
  23729. for shift := uint(0); ; shift += 7 {
  23730. if shift >= 64 {
  23731. return ErrIntOverflowApi
  23732. }
  23733. if iNdEx >= l {
  23734. return io.ErrUnexpectedEOF
  23735. }
  23736. b := dAtA[iNdEx]
  23737. iNdEx++
  23738. m.Propagation |= MountPropagation(b&0x7F) << shift
  23739. if b < 0x80 {
  23740. break
  23741. }
  23742. }
  23743. case 6:
  23744. if wireType != 2 {
  23745. return fmt.Errorf("proto: wrong wireType = %d for field UidMappings", wireType)
  23746. }
  23747. var msglen int
  23748. for shift := uint(0); ; shift += 7 {
  23749. if shift >= 64 {
  23750. return ErrIntOverflowApi
  23751. }
  23752. if iNdEx >= l {
  23753. return io.ErrUnexpectedEOF
  23754. }
  23755. b := dAtA[iNdEx]
  23756. iNdEx++
  23757. msglen |= int(b&0x7F) << shift
  23758. if b < 0x80 {
  23759. break
  23760. }
  23761. }
  23762. if msglen < 0 {
  23763. return ErrInvalidLengthApi
  23764. }
  23765. postIndex := iNdEx + msglen
  23766. if postIndex < 0 {
  23767. return ErrInvalidLengthApi
  23768. }
  23769. if postIndex > l {
  23770. return io.ErrUnexpectedEOF
  23771. }
  23772. m.UidMappings = append(m.UidMappings, &IDMapping{})
  23773. if err := m.UidMappings[len(m.UidMappings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  23774. return err
  23775. }
  23776. iNdEx = postIndex
  23777. case 7:
  23778. if wireType != 2 {
  23779. return fmt.Errorf("proto: wrong wireType = %d for field GidMappings", wireType)
  23780. }
  23781. var msglen int
  23782. for shift := uint(0); ; shift += 7 {
  23783. if shift >= 64 {
  23784. return ErrIntOverflowApi
  23785. }
  23786. if iNdEx >= l {
  23787. return io.ErrUnexpectedEOF
  23788. }
  23789. b := dAtA[iNdEx]
  23790. iNdEx++
  23791. msglen |= int(b&0x7F) << shift
  23792. if b < 0x80 {
  23793. break
  23794. }
  23795. }
  23796. if msglen < 0 {
  23797. return ErrInvalidLengthApi
  23798. }
  23799. postIndex := iNdEx + msglen
  23800. if postIndex < 0 {
  23801. return ErrInvalidLengthApi
  23802. }
  23803. if postIndex > l {
  23804. return io.ErrUnexpectedEOF
  23805. }
  23806. m.GidMappings = append(m.GidMappings, &IDMapping{})
  23807. if err := m.GidMappings[len(m.GidMappings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  23808. return err
  23809. }
  23810. iNdEx = postIndex
  23811. default:
  23812. iNdEx = preIndex
  23813. skippy, err := skipApi(dAtA[iNdEx:])
  23814. if err != nil {
  23815. return err
  23816. }
  23817. if (skippy < 0) || (iNdEx+skippy) < 0 {
  23818. return ErrInvalidLengthApi
  23819. }
  23820. if (iNdEx + skippy) > l {
  23821. return io.ErrUnexpectedEOF
  23822. }
  23823. iNdEx += skippy
  23824. }
  23825. }
  23826. if iNdEx > l {
  23827. return io.ErrUnexpectedEOF
  23828. }
  23829. return nil
  23830. }
  23831. func (m *IDMapping) Unmarshal(dAtA []byte) error {
  23832. l := len(dAtA)
  23833. iNdEx := 0
  23834. for iNdEx < l {
  23835. preIndex := iNdEx
  23836. var wire uint64
  23837. for shift := uint(0); ; shift += 7 {
  23838. if shift >= 64 {
  23839. return ErrIntOverflowApi
  23840. }
  23841. if iNdEx >= l {
  23842. return io.ErrUnexpectedEOF
  23843. }
  23844. b := dAtA[iNdEx]
  23845. iNdEx++
  23846. wire |= uint64(b&0x7F) << shift
  23847. if b < 0x80 {
  23848. break
  23849. }
  23850. }
  23851. fieldNum := int32(wire >> 3)
  23852. wireType := int(wire & 0x7)
  23853. if wireType == 4 {
  23854. return fmt.Errorf("proto: IDMapping: wiretype end group for non-group")
  23855. }
  23856. if fieldNum <= 0 {
  23857. return fmt.Errorf("proto: IDMapping: illegal tag %d (wire type %d)", fieldNum, wire)
  23858. }
  23859. switch fieldNum {
  23860. case 1:
  23861. if wireType != 0 {
  23862. return fmt.Errorf("proto: wrong wireType = %d for field HostId", wireType)
  23863. }
  23864. m.HostId = 0
  23865. for shift := uint(0); ; shift += 7 {
  23866. if shift >= 64 {
  23867. return ErrIntOverflowApi
  23868. }
  23869. if iNdEx >= l {
  23870. return io.ErrUnexpectedEOF
  23871. }
  23872. b := dAtA[iNdEx]
  23873. iNdEx++
  23874. m.HostId |= uint32(b&0x7F) << shift
  23875. if b < 0x80 {
  23876. break
  23877. }
  23878. }
  23879. case 2:
  23880. if wireType != 0 {
  23881. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  23882. }
  23883. m.ContainerId = 0
  23884. for shift := uint(0); ; shift += 7 {
  23885. if shift >= 64 {
  23886. return ErrIntOverflowApi
  23887. }
  23888. if iNdEx >= l {
  23889. return io.ErrUnexpectedEOF
  23890. }
  23891. b := dAtA[iNdEx]
  23892. iNdEx++
  23893. m.ContainerId |= uint32(b&0x7F) << shift
  23894. if b < 0x80 {
  23895. break
  23896. }
  23897. }
  23898. case 3:
  23899. if wireType != 0 {
  23900. return fmt.Errorf("proto: wrong wireType = %d for field Length", wireType)
  23901. }
  23902. m.Length = 0
  23903. for shift := uint(0); ; shift += 7 {
  23904. if shift >= 64 {
  23905. return ErrIntOverflowApi
  23906. }
  23907. if iNdEx >= l {
  23908. return io.ErrUnexpectedEOF
  23909. }
  23910. b := dAtA[iNdEx]
  23911. iNdEx++
  23912. m.Length |= uint32(b&0x7F) << shift
  23913. if b < 0x80 {
  23914. break
  23915. }
  23916. }
  23917. default:
  23918. iNdEx = preIndex
  23919. skippy, err := skipApi(dAtA[iNdEx:])
  23920. if err != nil {
  23921. return err
  23922. }
  23923. if (skippy < 0) || (iNdEx+skippy) < 0 {
  23924. return ErrInvalidLengthApi
  23925. }
  23926. if (iNdEx + skippy) > l {
  23927. return io.ErrUnexpectedEOF
  23928. }
  23929. iNdEx += skippy
  23930. }
  23931. }
  23932. if iNdEx > l {
  23933. return io.ErrUnexpectedEOF
  23934. }
  23935. return nil
  23936. }
  23937. func (m *UserNamespace) Unmarshal(dAtA []byte) error {
  23938. l := len(dAtA)
  23939. iNdEx := 0
  23940. for iNdEx < l {
  23941. preIndex := iNdEx
  23942. var wire uint64
  23943. for shift := uint(0); ; shift += 7 {
  23944. if shift >= 64 {
  23945. return ErrIntOverflowApi
  23946. }
  23947. if iNdEx >= l {
  23948. return io.ErrUnexpectedEOF
  23949. }
  23950. b := dAtA[iNdEx]
  23951. iNdEx++
  23952. wire |= uint64(b&0x7F) << shift
  23953. if b < 0x80 {
  23954. break
  23955. }
  23956. }
  23957. fieldNum := int32(wire >> 3)
  23958. wireType := int(wire & 0x7)
  23959. if wireType == 4 {
  23960. return fmt.Errorf("proto: UserNamespace: wiretype end group for non-group")
  23961. }
  23962. if fieldNum <= 0 {
  23963. return fmt.Errorf("proto: UserNamespace: illegal tag %d (wire type %d)", fieldNum, wire)
  23964. }
  23965. switch fieldNum {
  23966. case 1:
  23967. if wireType != 0 {
  23968. return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
  23969. }
  23970. m.Mode = 0
  23971. for shift := uint(0); ; shift += 7 {
  23972. if shift >= 64 {
  23973. return ErrIntOverflowApi
  23974. }
  23975. if iNdEx >= l {
  23976. return io.ErrUnexpectedEOF
  23977. }
  23978. b := dAtA[iNdEx]
  23979. iNdEx++
  23980. m.Mode |= NamespaceMode(b&0x7F) << shift
  23981. if b < 0x80 {
  23982. break
  23983. }
  23984. }
  23985. case 2:
  23986. if wireType != 2 {
  23987. return fmt.Errorf("proto: wrong wireType = %d for field Uids", wireType)
  23988. }
  23989. var msglen int
  23990. for shift := uint(0); ; shift += 7 {
  23991. if shift >= 64 {
  23992. return ErrIntOverflowApi
  23993. }
  23994. if iNdEx >= l {
  23995. return io.ErrUnexpectedEOF
  23996. }
  23997. b := dAtA[iNdEx]
  23998. iNdEx++
  23999. msglen |= int(b&0x7F) << shift
  24000. if b < 0x80 {
  24001. break
  24002. }
  24003. }
  24004. if msglen < 0 {
  24005. return ErrInvalidLengthApi
  24006. }
  24007. postIndex := iNdEx + msglen
  24008. if postIndex < 0 {
  24009. return ErrInvalidLengthApi
  24010. }
  24011. if postIndex > l {
  24012. return io.ErrUnexpectedEOF
  24013. }
  24014. m.Uids = append(m.Uids, &IDMapping{})
  24015. if err := m.Uids[len(m.Uids)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  24016. return err
  24017. }
  24018. iNdEx = postIndex
  24019. case 3:
  24020. if wireType != 2 {
  24021. return fmt.Errorf("proto: wrong wireType = %d for field Gids", wireType)
  24022. }
  24023. var msglen int
  24024. for shift := uint(0); ; shift += 7 {
  24025. if shift >= 64 {
  24026. return ErrIntOverflowApi
  24027. }
  24028. if iNdEx >= l {
  24029. return io.ErrUnexpectedEOF
  24030. }
  24031. b := dAtA[iNdEx]
  24032. iNdEx++
  24033. msglen |= int(b&0x7F) << shift
  24034. if b < 0x80 {
  24035. break
  24036. }
  24037. }
  24038. if msglen < 0 {
  24039. return ErrInvalidLengthApi
  24040. }
  24041. postIndex := iNdEx + msglen
  24042. if postIndex < 0 {
  24043. return ErrInvalidLengthApi
  24044. }
  24045. if postIndex > l {
  24046. return io.ErrUnexpectedEOF
  24047. }
  24048. m.Gids = append(m.Gids, &IDMapping{})
  24049. if err := m.Gids[len(m.Gids)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  24050. return err
  24051. }
  24052. iNdEx = postIndex
  24053. default:
  24054. iNdEx = preIndex
  24055. skippy, err := skipApi(dAtA[iNdEx:])
  24056. if err != nil {
  24057. return err
  24058. }
  24059. if (skippy < 0) || (iNdEx+skippy) < 0 {
  24060. return ErrInvalidLengthApi
  24061. }
  24062. if (iNdEx + skippy) > l {
  24063. return io.ErrUnexpectedEOF
  24064. }
  24065. iNdEx += skippy
  24066. }
  24067. }
  24068. if iNdEx > l {
  24069. return io.ErrUnexpectedEOF
  24070. }
  24071. return nil
  24072. }
  24073. func (m *NamespaceOption) Unmarshal(dAtA []byte) error {
  24074. l := len(dAtA)
  24075. iNdEx := 0
  24076. for iNdEx < l {
  24077. preIndex := iNdEx
  24078. var wire uint64
  24079. for shift := uint(0); ; shift += 7 {
  24080. if shift >= 64 {
  24081. return ErrIntOverflowApi
  24082. }
  24083. if iNdEx >= l {
  24084. return io.ErrUnexpectedEOF
  24085. }
  24086. b := dAtA[iNdEx]
  24087. iNdEx++
  24088. wire |= uint64(b&0x7F) << shift
  24089. if b < 0x80 {
  24090. break
  24091. }
  24092. }
  24093. fieldNum := int32(wire >> 3)
  24094. wireType := int(wire & 0x7)
  24095. if wireType == 4 {
  24096. return fmt.Errorf("proto: NamespaceOption: wiretype end group for non-group")
  24097. }
  24098. if fieldNum <= 0 {
  24099. return fmt.Errorf("proto: NamespaceOption: illegal tag %d (wire type %d)", fieldNum, wire)
  24100. }
  24101. switch fieldNum {
  24102. case 1:
  24103. if wireType != 0 {
  24104. return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType)
  24105. }
  24106. m.Network = 0
  24107. for shift := uint(0); ; shift += 7 {
  24108. if shift >= 64 {
  24109. return ErrIntOverflowApi
  24110. }
  24111. if iNdEx >= l {
  24112. return io.ErrUnexpectedEOF
  24113. }
  24114. b := dAtA[iNdEx]
  24115. iNdEx++
  24116. m.Network |= NamespaceMode(b&0x7F) << shift
  24117. if b < 0x80 {
  24118. break
  24119. }
  24120. }
  24121. case 2:
  24122. if wireType != 0 {
  24123. return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
  24124. }
  24125. m.Pid = 0
  24126. for shift := uint(0); ; shift += 7 {
  24127. if shift >= 64 {
  24128. return ErrIntOverflowApi
  24129. }
  24130. if iNdEx >= l {
  24131. return io.ErrUnexpectedEOF
  24132. }
  24133. b := dAtA[iNdEx]
  24134. iNdEx++
  24135. m.Pid |= NamespaceMode(b&0x7F) << shift
  24136. if b < 0x80 {
  24137. break
  24138. }
  24139. }
  24140. case 3:
  24141. if wireType != 0 {
  24142. return fmt.Errorf("proto: wrong wireType = %d for field Ipc", wireType)
  24143. }
  24144. m.Ipc = 0
  24145. for shift := uint(0); ; shift += 7 {
  24146. if shift >= 64 {
  24147. return ErrIntOverflowApi
  24148. }
  24149. if iNdEx >= l {
  24150. return io.ErrUnexpectedEOF
  24151. }
  24152. b := dAtA[iNdEx]
  24153. iNdEx++
  24154. m.Ipc |= NamespaceMode(b&0x7F) << shift
  24155. if b < 0x80 {
  24156. break
  24157. }
  24158. }
  24159. case 4:
  24160. if wireType != 2 {
  24161. return fmt.Errorf("proto: wrong wireType = %d for field TargetId", wireType)
  24162. }
  24163. var stringLen uint64
  24164. for shift := uint(0); ; shift += 7 {
  24165. if shift >= 64 {
  24166. return ErrIntOverflowApi
  24167. }
  24168. if iNdEx >= l {
  24169. return io.ErrUnexpectedEOF
  24170. }
  24171. b := dAtA[iNdEx]
  24172. iNdEx++
  24173. stringLen |= uint64(b&0x7F) << shift
  24174. if b < 0x80 {
  24175. break
  24176. }
  24177. }
  24178. intStringLen := int(stringLen)
  24179. if intStringLen < 0 {
  24180. return ErrInvalidLengthApi
  24181. }
  24182. postIndex := iNdEx + intStringLen
  24183. if postIndex < 0 {
  24184. return ErrInvalidLengthApi
  24185. }
  24186. if postIndex > l {
  24187. return io.ErrUnexpectedEOF
  24188. }
  24189. m.TargetId = string(dAtA[iNdEx:postIndex])
  24190. iNdEx = postIndex
  24191. case 5:
  24192. if wireType != 2 {
  24193. return fmt.Errorf("proto: wrong wireType = %d for field UsernsOptions", wireType)
  24194. }
  24195. var msglen int
  24196. for shift := uint(0); ; shift += 7 {
  24197. if shift >= 64 {
  24198. return ErrIntOverflowApi
  24199. }
  24200. if iNdEx >= l {
  24201. return io.ErrUnexpectedEOF
  24202. }
  24203. b := dAtA[iNdEx]
  24204. iNdEx++
  24205. msglen |= int(b&0x7F) << shift
  24206. if b < 0x80 {
  24207. break
  24208. }
  24209. }
  24210. if msglen < 0 {
  24211. return ErrInvalidLengthApi
  24212. }
  24213. postIndex := iNdEx + msglen
  24214. if postIndex < 0 {
  24215. return ErrInvalidLengthApi
  24216. }
  24217. if postIndex > l {
  24218. return io.ErrUnexpectedEOF
  24219. }
  24220. if m.UsernsOptions == nil {
  24221. m.UsernsOptions = &UserNamespace{}
  24222. }
  24223. if err := m.UsernsOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  24224. return err
  24225. }
  24226. iNdEx = postIndex
  24227. default:
  24228. iNdEx = preIndex
  24229. skippy, err := skipApi(dAtA[iNdEx:])
  24230. if err != nil {
  24231. return err
  24232. }
  24233. if (skippy < 0) || (iNdEx+skippy) < 0 {
  24234. return ErrInvalidLengthApi
  24235. }
  24236. if (iNdEx + skippy) > l {
  24237. return io.ErrUnexpectedEOF
  24238. }
  24239. iNdEx += skippy
  24240. }
  24241. }
  24242. if iNdEx > l {
  24243. return io.ErrUnexpectedEOF
  24244. }
  24245. return nil
  24246. }
  24247. func (m *Int64Value) Unmarshal(dAtA []byte) error {
  24248. l := len(dAtA)
  24249. iNdEx := 0
  24250. for iNdEx < l {
  24251. preIndex := iNdEx
  24252. var wire uint64
  24253. for shift := uint(0); ; shift += 7 {
  24254. if shift >= 64 {
  24255. return ErrIntOverflowApi
  24256. }
  24257. if iNdEx >= l {
  24258. return io.ErrUnexpectedEOF
  24259. }
  24260. b := dAtA[iNdEx]
  24261. iNdEx++
  24262. wire |= uint64(b&0x7F) << shift
  24263. if b < 0x80 {
  24264. break
  24265. }
  24266. }
  24267. fieldNum := int32(wire >> 3)
  24268. wireType := int(wire & 0x7)
  24269. if wireType == 4 {
  24270. return fmt.Errorf("proto: Int64Value: wiretype end group for non-group")
  24271. }
  24272. if fieldNum <= 0 {
  24273. return fmt.Errorf("proto: Int64Value: illegal tag %d (wire type %d)", fieldNum, wire)
  24274. }
  24275. switch fieldNum {
  24276. case 1:
  24277. if wireType != 0 {
  24278. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  24279. }
  24280. m.Value = 0
  24281. for shift := uint(0); ; shift += 7 {
  24282. if shift >= 64 {
  24283. return ErrIntOverflowApi
  24284. }
  24285. if iNdEx >= l {
  24286. return io.ErrUnexpectedEOF
  24287. }
  24288. b := dAtA[iNdEx]
  24289. iNdEx++
  24290. m.Value |= int64(b&0x7F) << shift
  24291. if b < 0x80 {
  24292. break
  24293. }
  24294. }
  24295. default:
  24296. iNdEx = preIndex
  24297. skippy, err := skipApi(dAtA[iNdEx:])
  24298. if err != nil {
  24299. return err
  24300. }
  24301. if (skippy < 0) || (iNdEx+skippy) < 0 {
  24302. return ErrInvalidLengthApi
  24303. }
  24304. if (iNdEx + skippy) > l {
  24305. return io.ErrUnexpectedEOF
  24306. }
  24307. iNdEx += skippy
  24308. }
  24309. }
  24310. if iNdEx > l {
  24311. return io.ErrUnexpectedEOF
  24312. }
  24313. return nil
  24314. }
  24315. func (m *LinuxSandboxSecurityContext) Unmarshal(dAtA []byte) error {
  24316. l := len(dAtA)
  24317. iNdEx := 0
  24318. for iNdEx < l {
  24319. preIndex := iNdEx
  24320. var wire uint64
  24321. for shift := uint(0); ; shift += 7 {
  24322. if shift >= 64 {
  24323. return ErrIntOverflowApi
  24324. }
  24325. if iNdEx >= l {
  24326. return io.ErrUnexpectedEOF
  24327. }
  24328. b := dAtA[iNdEx]
  24329. iNdEx++
  24330. wire |= uint64(b&0x7F) << shift
  24331. if b < 0x80 {
  24332. break
  24333. }
  24334. }
  24335. fieldNum := int32(wire >> 3)
  24336. wireType := int(wire & 0x7)
  24337. if wireType == 4 {
  24338. return fmt.Errorf("proto: LinuxSandboxSecurityContext: wiretype end group for non-group")
  24339. }
  24340. if fieldNum <= 0 {
  24341. return fmt.Errorf("proto: LinuxSandboxSecurityContext: illegal tag %d (wire type %d)", fieldNum, wire)
  24342. }
  24343. switch fieldNum {
  24344. case 1:
  24345. if wireType != 2 {
  24346. return fmt.Errorf("proto: wrong wireType = %d for field NamespaceOptions", wireType)
  24347. }
  24348. var msglen int
  24349. for shift := uint(0); ; shift += 7 {
  24350. if shift >= 64 {
  24351. return ErrIntOverflowApi
  24352. }
  24353. if iNdEx >= l {
  24354. return io.ErrUnexpectedEOF
  24355. }
  24356. b := dAtA[iNdEx]
  24357. iNdEx++
  24358. msglen |= int(b&0x7F) << shift
  24359. if b < 0x80 {
  24360. break
  24361. }
  24362. }
  24363. if msglen < 0 {
  24364. return ErrInvalidLengthApi
  24365. }
  24366. postIndex := iNdEx + msglen
  24367. if postIndex < 0 {
  24368. return ErrInvalidLengthApi
  24369. }
  24370. if postIndex > l {
  24371. return io.ErrUnexpectedEOF
  24372. }
  24373. if m.NamespaceOptions == nil {
  24374. m.NamespaceOptions = &NamespaceOption{}
  24375. }
  24376. if err := m.NamespaceOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  24377. return err
  24378. }
  24379. iNdEx = postIndex
  24380. case 2:
  24381. if wireType != 2 {
  24382. return fmt.Errorf("proto: wrong wireType = %d for field SelinuxOptions", wireType)
  24383. }
  24384. var msglen int
  24385. for shift := uint(0); ; shift += 7 {
  24386. if shift >= 64 {
  24387. return ErrIntOverflowApi
  24388. }
  24389. if iNdEx >= l {
  24390. return io.ErrUnexpectedEOF
  24391. }
  24392. b := dAtA[iNdEx]
  24393. iNdEx++
  24394. msglen |= int(b&0x7F) << shift
  24395. if b < 0x80 {
  24396. break
  24397. }
  24398. }
  24399. if msglen < 0 {
  24400. return ErrInvalidLengthApi
  24401. }
  24402. postIndex := iNdEx + msglen
  24403. if postIndex < 0 {
  24404. return ErrInvalidLengthApi
  24405. }
  24406. if postIndex > l {
  24407. return io.ErrUnexpectedEOF
  24408. }
  24409. if m.SelinuxOptions == nil {
  24410. m.SelinuxOptions = &SELinuxOption{}
  24411. }
  24412. if err := m.SelinuxOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  24413. return err
  24414. }
  24415. iNdEx = postIndex
  24416. case 3:
  24417. if wireType != 2 {
  24418. return fmt.Errorf("proto: wrong wireType = %d for field RunAsUser", wireType)
  24419. }
  24420. var msglen int
  24421. for shift := uint(0); ; shift += 7 {
  24422. if shift >= 64 {
  24423. return ErrIntOverflowApi
  24424. }
  24425. if iNdEx >= l {
  24426. return io.ErrUnexpectedEOF
  24427. }
  24428. b := dAtA[iNdEx]
  24429. iNdEx++
  24430. msglen |= int(b&0x7F) << shift
  24431. if b < 0x80 {
  24432. break
  24433. }
  24434. }
  24435. if msglen < 0 {
  24436. return ErrInvalidLengthApi
  24437. }
  24438. postIndex := iNdEx + msglen
  24439. if postIndex < 0 {
  24440. return ErrInvalidLengthApi
  24441. }
  24442. if postIndex > l {
  24443. return io.ErrUnexpectedEOF
  24444. }
  24445. if m.RunAsUser == nil {
  24446. m.RunAsUser = &Int64Value{}
  24447. }
  24448. if err := m.RunAsUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  24449. return err
  24450. }
  24451. iNdEx = postIndex
  24452. case 4:
  24453. if wireType != 0 {
  24454. return fmt.Errorf("proto: wrong wireType = %d for field ReadonlyRootfs", wireType)
  24455. }
  24456. var v int
  24457. for shift := uint(0); ; shift += 7 {
  24458. if shift >= 64 {
  24459. return ErrIntOverflowApi
  24460. }
  24461. if iNdEx >= l {
  24462. return io.ErrUnexpectedEOF
  24463. }
  24464. b := dAtA[iNdEx]
  24465. iNdEx++
  24466. v |= int(b&0x7F) << shift
  24467. if b < 0x80 {
  24468. break
  24469. }
  24470. }
  24471. m.ReadonlyRootfs = bool(v != 0)
  24472. case 5:
  24473. if wireType == 0 {
  24474. var v int64
  24475. for shift := uint(0); ; shift += 7 {
  24476. if shift >= 64 {
  24477. return ErrIntOverflowApi
  24478. }
  24479. if iNdEx >= l {
  24480. return io.ErrUnexpectedEOF
  24481. }
  24482. b := dAtA[iNdEx]
  24483. iNdEx++
  24484. v |= int64(b&0x7F) << shift
  24485. if b < 0x80 {
  24486. break
  24487. }
  24488. }
  24489. m.SupplementalGroups = append(m.SupplementalGroups, v)
  24490. } else if wireType == 2 {
  24491. var packedLen int
  24492. for shift := uint(0); ; shift += 7 {
  24493. if shift >= 64 {
  24494. return ErrIntOverflowApi
  24495. }
  24496. if iNdEx >= l {
  24497. return io.ErrUnexpectedEOF
  24498. }
  24499. b := dAtA[iNdEx]
  24500. iNdEx++
  24501. packedLen |= int(b&0x7F) << shift
  24502. if b < 0x80 {
  24503. break
  24504. }
  24505. }
  24506. if packedLen < 0 {
  24507. return ErrInvalidLengthApi
  24508. }
  24509. postIndex := iNdEx + packedLen
  24510. if postIndex < 0 {
  24511. return ErrInvalidLengthApi
  24512. }
  24513. if postIndex > l {
  24514. return io.ErrUnexpectedEOF
  24515. }
  24516. var elementCount int
  24517. var count int
  24518. for _, integer := range dAtA[iNdEx:postIndex] {
  24519. if integer < 128 {
  24520. count++
  24521. }
  24522. }
  24523. elementCount = count
  24524. if elementCount != 0 && len(m.SupplementalGroups) == 0 {
  24525. m.SupplementalGroups = make([]int64, 0, elementCount)
  24526. }
  24527. for iNdEx < postIndex {
  24528. var v int64
  24529. for shift := uint(0); ; shift += 7 {
  24530. if shift >= 64 {
  24531. return ErrIntOverflowApi
  24532. }
  24533. if iNdEx >= l {
  24534. return io.ErrUnexpectedEOF
  24535. }
  24536. b := dAtA[iNdEx]
  24537. iNdEx++
  24538. v |= int64(b&0x7F) << shift
  24539. if b < 0x80 {
  24540. break
  24541. }
  24542. }
  24543. m.SupplementalGroups = append(m.SupplementalGroups, v)
  24544. }
  24545. } else {
  24546. return fmt.Errorf("proto: wrong wireType = %d for field SupplementalGroups", wireType)
  24547. }
  24548. case 6:
  24549. if wireType != 0 {
  24550. return fmt.Errorf("proto: wrong wireType = %d for field Privileged", wireType)
  24551. }
  24552. var v int
  24553. for shift := uint(0); ; shift += 7 {
  24554. if shift >= 64 {
  24555. return ErrIntOverflowApi
  24556. }
  24557. if iNdEx >= l {
  24558. return io.ErrUnexpectedEOF
  24559. }
  24560. b := dAtA[iNdEx]
  24561. iNdEx++
  24562. v |= int(b&0x7F) << shift
  24563. if b < 0x80 {
  24564. break
  24565. }
  24566. }
  24567. m.Privileged = bool(v != 0)
  24568. case 7:
  24569. if wireType != 2 {
  24570. return fmt.Errorf("proto: wrong wireType = %d for field SeccompProfilePath", wireType)
  24571. }
  24572. var stringLen uint64
  24573. for shift := uint(0); ; shift += 7 {
  24574. if shift >= 64 {
  24575. return ErrIntOverflowApi
  24576. }
  24577. if iNdEx >= l {
  24578. return io.ErrUnexpectedEOF
  24579. }
  24580. b := dAtA[iNdEx]
  24581. iNdEx++
  24582. stringLen |= uint64(b&0x7F) << shift
  24583. if b < 0x80 {
  24584. break
  24585. }
  24586. }
  24587. intStringLen := int(stringLen)
  24588. if intStringLen < 0 {
  24589. return ErrInvalidLengthApi
  24590. }
  24591. postIndex := iNdEx + intStringLen
  24592. if postIndex < 0 {
  24593. return ErrInvalidLengthApi
  24594. }
  24595. if postIndex > l {
  24596. return io.ErrUnexpectedEOF
  24597. }
  24598. m.SeccompProfilePath = string(dAtA[iNdEx:postIndex])
  24599. iNdEx = postIndex
  24600. case 8:
  24601. if wireType != 2 {
  24602. return fmt.Errorf("proto: wrong wireType = %d for field RunAsGroup", wireType)
  24603. }
  24604. var msglen int
  24605. for shift := uint(0); ; shift += 7 {
  24606. if shift >= 64 {
  24607. return ErrIntOverflowApi
  24608. }
  24609. if iNdEx >= l {
  24610. return io.ErrUnexpectedEOF
  24611. }
  24612. b := dAtA[iNdEx]
  24613. iNdEx++
  24614. msglen |= int(b&0x7F) << shift
  24615. if b < 0x80 {
  24616. break
  24617. }
  24618. }
  24619. if msglen < 0 {
  24620. return ErrInvalidLengthApi
  24621. }
  24622. postIndex := iNdEx + msglen
  24623. if postIndex < 0 {
  24624. return ErrInvalidLengthApi
  24625. }
  24626. if postIndex > l {
  24627. return io.ErrUnexpectedEOF
  24628. }
  24629. if m.RunAsGroup == nil {
  24630. m.RunAsGroup = &Int64Value{}
  24631. }
  24632. if err := m.RunAsGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  24633. return err
  24634. }
  24635. iNdEx = postIndex
  24636. case 9:
  24637. if wireType != 2 {
  24638. return fmt.Errorf("proto: wrong wireType = %d for field Seccomp", wireType)
  24639. }
  24640. var msglen int
  24641. for shift := uint(0); ; shift += 7 {
  24642. if shift >= 64 {
  24643. return ErrIntOverflowApi
  24644. }
  24645. if iNdEx >= l {
  24646. return io.ErrUnexpectedEOF
  24647. }
  24648. b := dAtA[iNdEx]
  24649. iNdEx++
  24650. msglen |= int(b&0x7F) << shift
  24651. if b < 0x80 {
  24652. break
  24653. }
  24654. }
  24655. if msglen < 0 {
  24656. return ErrInvalidLengthApi
  24657. }
  24658. postIndex := iNdEx + msglen
  24659. if postIndex < 0 {
  24660. return ErrInvalidLengthApi
  24661. }
  24662. if postIndex > l {
  24663. return io.ErrUnexpectedEOF
  24664. }
  24665. if m.Seccomp == nil {
  24666. m.Seccomp = &SecurityProfile{}
  24667. }
  24668. if err := m.Seccomp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  24669. return err
  24670. }
  24671. iNdEx = postIndex
  24672. case 10:
  24673. if wireType != 2 {
  24674. return fmt.Errorf("proto: wrong wireType = %d for field Apparmor", wireType)
  24675. }
  24676. var msglen int
  24677. for shift := uint(0); ; shift += 7 {
  24678. if shift >= 64 {
  24679. return ErrIntOverflowApi
  24680. }
  24681. if iNdEx >= l {
  24682. return io.ErrUnexpectedEOF
  24683. }
  24684. b := dAtA[iNdEx]
  24685. iNdEx++
  24686. msglen |= int(b&0x7F) << shift
  24687. if b < 0x80 {
  24688. break
  24689. }
  24690. }
  24691. if msglen < 0 {
  24692. return ErrInvalidLengthApi
  24693. }
  24694. postIndex := iNdEx + msglen
  24695. if postIndex < 0 {
  24696. return ErrInvalidLengthApi
  24697. }
  24698. if postIndex > l {
  24699. return io.ErrUnexpectedEOF
  24700. }
  24701. if m.Apparmor == nil {
  24702. m.Apparmor = &SecurityProfile{}
  24703. }
  24704. if err := m.Apparmor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  24705. return err
  24706. }
  24707. iNdEx = postIndex
  24708. default:
  24709. iNdEx = preIndex
  24710. skippy, err := skipApi(dAtA[iNdEx:])
  24711. if err != nil {
  24712. return err
  24713. }
  24714. if (skippy < 0) || (iNdEx+skippy) < 0 {
  24715. return ErrInvalidLengthApi
  24716. }
  24717. if (iNdEx + skippy) > l {
  24718. return io.ErrUnexpectedEOF
  24719. }
  24720. iNdEx += skippy
  24721. }
  24722. }
  24723. if iNdEx > l {
  24724. return io.ErrUnexpectedEOF
  24725. }
  24726. return nil
  24727. }
  24728. func (m *SecurityProfile) Unmarshal(dAtA []byte) error {
  24729. l := len(dAtA)
  24730. iNdEx := 0
  24731. for iNdEx < l {
  24732. preIndex := iNdEx
  24733. var wire uint64
  24734. for shift := uint(0); ; shift += 7 {
  24735. if shift >= 64 {
  24736. return ErrIntOverflowApi
  24737. }
  24738. if iNdEx >= l {
  24739. return io.ErrUnexpectedEOF
  24740. }
  24741. b := dAtA[iNdEx]
  24742. iNdEx++
  24743. wire |= uint64(b&0x7F) << shift
  24744. if b < 0x80 {
  24745. break
  24746. }
  24747. }
  24748. fieldNum := int32(wire >> 3)
  24749. wireType := int(wire & 0x7)
  24750. if wireType == 4 {
  24751. return fmt.Errorf("proto: SecurityProfile: wiretype end group for non-group")
  24752. }
  24753. if fieldNum <= 0 {
  24754. return fmt.Errorf("proto: SecurityProfile: illegal tag %d (wire type %d)", fieldNum, wire)
  24755. }
  24756. switch fieldNum {
  24757. case 1:
  24758. if wireType != 0 {
  24759. return fmt.Errorf("proto: wrong wireType = %d for field ProfileType", wireType)
  24760. }
  24761. m.ProfileType = 0
  24762. for shift := uint(0); ; shift += 7 {
  24763. if shift >= 64 {
  24764. return ErrIntOverflowApi
  24765. }
  24766. if iNdEx >= l {
  24767. return io.ErrUnexpectedEOF
  24768. }
  24769. b := dAtA[iNdEx]
  24770. iNdEx++
  24771. m.ProfileType |= SecurityProfile_ProfileType(b&0x7F) << shift
  24772. if b < 0x80 {
  24773. break
  24774. }
  24775. }
  24776. case 2:
  24777. if wireType != 2 {
  24778. return fmt.Errorf("proto: wrong wireType = %d for field LocalhostRef", wireType)
  24779. }
  24780. var stringLen uint64
  24781. for shift := uint(0); ; shift += 7 {
  24782. if shift >= 64 {
  24783. return ErrIntOverflowApi
  24784. }
  24785. if iNdEx >= l {
  24786. return io.ErrUnexpectedEOF
  24787. }
  24788. b := dAtA[iNdEx]
  24789. iNdEx++
  24790. stringLen |= uint64(b&0x7F) << shift
  24791. if b < 0x80 {
  24792. break
  24793. }
  24794. }
  24795. intStringLen := int(stringLen)
  24796. if intStringLen < 0 {
  24797. return ErrInvalidLengthApi
  24798. }
  24799. postIndex := iNdEx + intStringLen
  24800. if postIndex < 0 {
  24801. return ErrInvalidLengthApi
  24802. }
  24803. if postIndex > l {
  24804. return io.ErrUnexpectedEOF
  24805. }
  24806. m.LocalhostRef = string(dAtA[iNdEx:postIndex])
  24807. iNdEx = postIndex
  24808. default:
  24809. iNdEx = preIndex
  24810. skippy, err := skipApi(dAtA[iNdEx:])
  24811. if err != nil {
  24812. return err
  24813. }
  24814. if (skippy < 0) || (iNdEx+skippy) < 0 {
  24815. return ErrInvalidLengthApi
  24816. }
  24817. if (iNdEx + skippy) > l {
  24818. return io.ErrUnexpectedEOF
  24819. }
  24820. iNdEx += skippy
  24821. }
  24822. }
  24823. if iNdEx > l {
  24824. return io.ErrUnexpectedEOF
  24825. }
  24826. return nil
  24827. }
  24828. func (m *LinuxPodSandboxConfig) Unmarshal(dAtA []byte) error {
  24829. l := len(dAtA)
  24830. iNdEx := 0
  24831. for iNdEx < l {
  24832. preIndex := iNdEx
  24833. var wire uint64
  24834. for shift := uint(0); ; shift += 7 {
  24835. if shift >= 64 {
  24836. return ErrIntOverflowApi
  24837. }
  24838. if iNdEx >= l {
  24839. return io.ErrUnexpectedEOF
  24840. }
  24841. b := dAtA[iNdEx]
  24842. iNdEx++
  24843. wire |= uint64(b&0x7F) << shift
  24844. if b < 0x80 {
  24845. break
  24846. }
  24847. }
  24848. fieldNum := int32(wire >> 3)
  24849. wireType := int(wire & 0x7)
  24850. if wireType == 4 {
  24851. return fmt.Errorf("proto: LinuxPodSandboxConfig: wiretype end group for non-group")
  24852. }
  24853. if fieldNum <= 0 {
  24854. return fmt.Errorf("proto: LinuxPodSandboxConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  24855. }
  24856. switch fieldNum {
  24857. case 1:
  24858. if wireType != 2 {
  24859. return fmt.Errorf("proto: wrong wireType = %d for field CgroupParent", wireType)
  24860. }
  24861. var stringLen uint64
  24862. for shift := uint(0); ; shift += 7 {
  24863. if shift >= 64 {
  24864. return ErrIntOverflowApi
  24865. }
  24866. if iNdEx >= l {
  24867. return io.ErrUnexpectedEOF
  24868. }
  24869. b := dAtA[iNdEx]
  24870. iNdEx++
  24871. stringLen |= uint64(b&0x7F) << shift
  24872. if b < 0x80 {
  24873. break
  24874. }
  24875. }
  24876. intStringLen := int(stringLen)
  24877. if intStringLen < 0 {
  24878. return ErrInvalidLengthApi
  24879. }
  24880. postIndex := iNdEx + intStringLen
  24881. if postIndex < 0 {
  24882. return ErrInvalidLengthApi
  24883. }
  24884. if postIndex > l {
  24885. return io.ErrUnexpectedEOF
  24886. }
  24887. m.CgroupParent = string(dAtA[iNdEx:postIndex])
  24888. iNdEx = postIndex
  24889. case 2:
  24890. if wireType != 2 {
  24891. return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", wireType)
  24892. }
  24893. var msglen int
  24894. for shift := uint(0); ; shift += 7 {
  24895. if shift >= 64 {
  24896. return ErrIntOverflowApi
  24897. }
  24898. if iNdEx >= l {
  24899. return io.ErrUnexpectedEOF
  24900. }
  24901. b := dAtA[iNdEx]
  24902. iNdEx++
  24903. msglen |= int(b&0x7F) << shift
  24904. if b < 0x80 {
  24905. break
  24906. }
  24907. }
  24908. if msglen < 0 {
  24909. return ErrInvalidLengthApi
  24910. }
  24911. postIndex := iNdEx + msglen
  24912. if postIndex < 0 {
  24913. return ErrInvalidLengthApi
  24914. }
  24915. if postIndex > l {
  24916. return io.ErrUnexpectedEOF
  24917. }
  24918. if m.SecurityContext == nil {
  24919. m.SecurityContext = &LinuxSandboxSecurityContext{}
  24920. }
  24921. if err := m.SecurityContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  24922. return err
  24923. }
  24924. iNdEx = postIndex
  24925. case 3:
  24926. if wireType != 2 {
  24927. return fmt.Errorf("proto: wrong wireType = %d for field Sysctls", wireType)
  24928. }
  24929. var msglen int
  24930. for shift := uint(0); ; shift += 7 {
  24931. if shift >= 64 {
  24932. return ErrIntOverflowApi
  24933. }
  24934. if iNdEx >= l {
  24935. return io.ErrUnexpectedEOF
  24936. }
  24937. b := dAtA[iNdEx]
  24938. iNdEx++
  24939. msglen |= int(b&0x7F) << shift
  24940. if b < 0x80 {
  24941. break
  24942. }
  24943. }
  24944. if msglen < 0 {
  24945. return ErrInvalidLengthApi
  24946. }
  24947. postIndex := iNdEx + msglen
  24948. if postIndex < 0 {
  24949. return ErrInvalidLengthApi
  24950. }
  24951. if postIndex > l {
  24952. return io.ErrUnexpectedEOF
  24953. }
  24954. if m.Sysctls == nil {
  24955. m.Sysctls = make(map[string]string)
  24956. }
  24957. var mapkey string
  24958. var mapvalue string
  24959. for iNdEx < postIndex {
  24960. entryPreIndex := iNdEx
  24961. var wire uint64
  24962. for shift := uint(0); ; shift += 7 {
  24963. if shift >= 64 {
  24964. return ErrIntOverflowApi
  24965. }
  24966. if iNdEx >= l {
  24967. return io.ErrUnexpectedEOF
  24968. }
  24969. b := dAtA[iNdEx]
  24970. iNdEx++
  24971. wire |= uint64(b&0x7F) << shift
  24972. if b < 0x80 {
  24973. break
  24974. }
  24975. }
  24976. fieldNum := int32(wire >> 3)
  24977. if fieldNum == 1 {
  24978. var stringLenmapkey uint64
  24979. for shift := uint(0); ; shift += 7 {
  24980. if shift >= 64 {
  24981. return ErrIntOverflowApi
  24982. }
  24983. if iNdEx >= l {
  24984. return io.ErrUnexpectedEOF
  24985. }
  24986. b := dAtA[iNdEx]
  24987. iNdEx++
  24988. stringLenmapkey |= uint64(b&0x7F) << shift
  24989. if b < 0x80 {
  24990. break
  24991. }
  24992. }
  24993. intStringLenmapkey := int(stringLenmapkey)
  24994. if intStringLenmapkey < 0 {
  24995. return ErrInvalidLengthApi
  24996. }
  24997. postStringIndexmapkey := iNdEx + intStringLenmapkey
  24998. if postStringIndexmapkey < 0 {
  24999. return ErrInvalidLengthApi
  25000. }
  25001. if postStringIndexmapkey > l {
  25002. return io.ErrUnexpectedEOF
  25003. }
  25004. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  25005. iNdEx = postStringIndexmapkey
  25006. } else if fieldNum == 2 {
  25007. var stringLenmapvalue uint64
  25008. for shift := uint(0); ; shift += 7 {
  25009. if shift >= 64 {
  25010. return ErrIntOverflowApi
  25011. }
  25012. if iNdEx >= l {
  25013. return io.ErrUnexpectedEOF
  25014. }
  25015. b := dAtA[iNdEx]
  25016. iNdEx++
  25017. stringLenmapvalue |= uint64(b&0x7F) << shift
  25018. if b < 0x80 {
  25019. break
  25020. }
  25021. }
  25022. intStringLenmapvalue := int(stringLenmapvalue)
  25023. if intStringLenmapvalue < 0 {
  25024. return ErrInvalidLengthApi
  25025. }
  25026. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  25027. if postStringIndexmapvalue < 0 {
  25028. return ErrInvalidLengthApi
  25029. }
  25030. if postStringIndexmapvalue > l {
  25031. return io.ErrUnexpectedEOF
  25032. }
  25033. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  25034. iNdEx = postStringIndexmapvalue
  25035. } else {
  25036. iNdEx = entryPreIndex
  25037. skippy, err := skipApi(dAtA[iNdEx:])
  25038. if err != nil {
  25039. return err
  25040. }
  25041. if (skippy < 0) || (iNdEx+skippy) < 0 {
  25042. return ErrInvalidLengthApi
  25043. }
  25044. if (iNdEx + skippy) > postIndex {
  25045. return io.ErrUnexpectedEOF
  25046. }
  25047. iNdEx += skippy
  25048. }
  25049. }
  25050. m.Sysctls[mapkey] = mapvalue
  25051. iNdEx = postIndex
  25052. case 4:
  25053. if wireType != 2 {
  25054. return fmt.Errorf("proto: wrong wireType = %d for field Overhead", wireType)
  25055. }
  25056. var msglen int
  25057. for shift := uint(0); ; shift += 7 {
  25058. if shift >= 64 {
  25059. return ErrIntOverflowApi
  25060. }
  25061. if iNdEx >= l {
  25062. return io.ErrUnexpectedEOF
  25063. }
  25064. b := dAtA[iNdEx]
  25065. iNdEx++
  25066. msglen |= int(b&0x7F) << shift
  25067. if b < 0x80 {
  25068. break
  25069. }
  25070. }
  25071. if msglen < 0 {
  25072. return ErrInvalidLengthApi
  25073. }
  25074. postIndex := iNdEx + msglen
  25075. if postIndex < 0 {
  25076. return ErrInvalidLengthApi
  25077. }
  25078. if postIndex > l {
  25079. return io.ErrUnexpectedEOF
  25080. }
  25081. if m.Overhead == nil {
  25082. m.Overhead = &LinuxContainerResources{}
  25083. }
  25084. if err := m.Overhead.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  25085. return err
  25086. }
  25087. iNdEx = postIndex
  25088. case 5:
  25089. if wireType != 2 {
  25090. return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
  25091. }
  25092. var msglen int
  25093. for shift := uint(0); ; shift += 7 {
  25094. if shift >= 64 {
  25095. return ErrIntOverflowApi
  25096. }
  25097. if iNdEx >= l {
  25098. return io.ErrUnexpectedEOF
  25099. }
  25100. b := dAtA[iNdEx]
  25101. iNdEx++
  25102. msglen |= int(b&0x7F) << shift
  25103. if b < 0x80 {
  25104. break
  25105. }
  25106. }
  25107. if msglen < 0 {
  25108. return ErrInvalidLengthApi
  25109. }
  25110. postIndex := iNdEx + msglen
  25111. if postIndex < 0 {
  25112. return ErrInvalidLengthApi
  25113. }
  25114. if postIndex > l {
  25115. return io.ErrUnexpectedEOF
  25116. }
  25117. if m.Resources == nil {
  25118. m.Resources = &LinuxContainerResources{}
  25119. }
  25120. if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  25121. return err
  25122. }
  25123. iNdEx = postIndex
  25124. default:
  25125. iNdEx = preIndex
  25126. skippy, err := skipApi(dAtA[iNdEx:])
  25127. if err != nil {
  25128. return err
  25129. }
  25130. if (skippy < 0) || (iNdEx+skippy) < 0 {
  25131. return ErrInvalidLengthApi
  25132. }
  25133. if (iNdEx + skippy) > l {
  25134. return io.ErrUnexpectedEOF
  25135. }
  25136. iNdEx += skippy
  25137. }
  25138. }
  25139. if iNdEx > l {
  25140. return io.ErrUnexpectedEOF
  25141. }
  25142. return nil
  25143. }
  25144. func (m *PodSandboxMetadata) Unmarshal(dAtA []byte) error {
  25145. l := len(dAtA)
  25146. iNdEx := 0
  25147. for iNdEx < l {
  25148. preIndex := iNdEx
  25149. var wire uint64
  25150. for shift := uint(0); ; shift += 7 {
  25151. if shift >= 64 {
  25152. return ErrIntOverflowApi
  25153. }
  25154. if iNdEx >= l {
  25155. return io.ErrUnexpectedEOF
  25156. }
  25157. b := dAtA[iNdEx]
  25158. iNdEx++
  25159. wire |= uint64(b&0x7F) << shift
  25160. if b < 0x80 {
  25161. break
  25162. }
  25163. }
  25164. fieldNum := int32(wire >> 3)
  25165. wireType := int(wire & 0x7)
  25166. if wireType == 4 {
  25167. return fmt.Errorf("proto: PodSandboxMetadata: wiretype end group for non-group")
  25168. }
  25169. if fieldNum <= 0 {
  25170. return fmt.Errorf("proto: PodSandboxMetadata: illegal tag %d (wire type %d)", fieldNum, wire)
  25171. }
  25172. switch fieldNum {
  25173. case 1:
  25174. if wireType != 2 {
  25175. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  25176. }
  25177. var stringLen uint64
  25178. for shift := uint(0); ; shift += 7 {
  25179. if shift >= 64 {
  25180. return ErrIntOverflowApi
  25181. }
  25182. if iNdEx >= l {
  25183. return io.ErrUnexpectedEOF
  25184. }
  25185. b := dAtA[iNdEx]
  25186. iNdEx++
  25187. stringLen |= uint64(b&0x7F) << shift
  25188. if b < 0x80 {
  25189. break
  25190. }
  25191. }
  25192. intStringLen := int(stringLen)
  25193. if intStringLen < 0 {
  25194. return ErrInvalidLengthApi
  25195. }
  25196. postIndex := iNdEx + intStringLen
  25197. if postIndex < 0 {
  25198. return ErrInvalidLengthApi
  25199. }
  25200. if postIndex > l {
  25201. return io.ErrUnexpectedEOF
  25202. }
  25203. m.Name = string(dAtA[iNdEx:postIndex])
  25204. iNdEx = postIndex
  25205. case 2:
  25206. if wireType != 2 {
  25207. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  25208. }
  25209. var stringLen uint64
  25210. for shift := uint(0); ; shift += 7 {
  25211. if shift >= 64 {
  25212. return ErrIntOverflowApi
  25213. }
  25214. if iNdEx >= l {
  25215. return io.ErrUnexpectedEOF
  25216. }
  25217. b := dAtA[iNdEx]
  25218. iNdEx++
  25219. stringLen |= uint64(b&0x7F) << shift
  25220. if b < 0x80 {
  25221. break
  25222. }
  25223. }
  25224. intStringLen := int(stringLen)
  25225. if intStringLen < 0 {
  25226. return ErrInvalidLengthApi
  25227. }
  25228. postIndex := iNdEx + intStringLen
  25229. if postIndex < 0 {
  25230. return ErrInvalidLengthApi
  25231. }
  25232. if postIndex > l {
  25233. return io.ErrUnexpectedEOF
  25234. }
  25235. m.Uid = string(dAtA[iNdEx:postIndex])
  25236. iNdEx = postIndex
  25237. case 3:
  25238. if wireType != 2 {
  25239. return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
  25240. }
  25241. var stringLen uint64
  25242. for shift := uint(0); ; shift += 7 {
  25243. if shift >= 64 {
  25244. return ErrIntOverflowApi
  25245. }
  25246. if iNdEx >= l {
  25247. return io.ErrUnexpectedEOF
  25248. }
  25249. b := dAtA[iNdEx]
  25250. iNdEx++
  25251. stringLen |= uint64(b&0x7F) << shift
  25252. if b < 0x80 {
  25253. break
  25254. }
  25255. }
  25256. intStringLen := int(stringLen)
  25257. if intStringLen < 0 {
  25258. return ErrInvalidLengthApi
  25259. }
  25260. postIndex := iNdEx + intStringLen
  25261. if postIndex < 0 {
  25262. return ErrInvalidLengthApi
  25263. }
  25264. if postIndex > l {
  25265. return io.ErrUnexpectedEOF
  25266. }
  25267. m.Namespace = string(dAtA[iNdEx:postIndex])
  25268. iNdEx = postIndex
  25269. case 4:
  25270. if wireType != 0 {
  25271. return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType)
  25272. }
  25273. m.Attempt = 0
  25274. for shift := uint(0); ; shift += 7 {
  25275. if shift >= 64 {
  25276. return ErrIntOverflowApi
  25277. }
  25278. if iNdEx >= l {
  25279. return io.ErrUnexpectedEOF
  25280. }
  25281. b := dAtA[iNdEx]
  25282. iNdEx++
  25283. m.Attempt |= uint32(b&0x7F) << shift
  25284. if b < 0x80 {
  25285. break
  25286. }
  25287. }
  25288. default:
  25289. iNdEx = preIndex
  25290. skippy, err := skipApi(dAtA[iNdEx:])
  25291. if err != nil {
  25292. return err
  25293. }
  25294. if (skippy < 0) || (iNdEx+skippy) < 0 {
  25295. return ErrInvalidLengthApi
  25296. }
  25297. if (iNdEx + skippy) > l {
  25298. return io.ErrUnexpectedEOF
  25299. }
  25300. iNdEx += skippy
  25301. }
  25302. }
  25303. if iNdEx > l {
  25304. return io.ErrUnexpectedEOF
  25305. }
  25306. return nil
  25307. }
  25308. func (m *PodSandboxConfig) Unmarshal(dAtA []byte) error {
  25309. l := len(dAtA)
  25310. iNdEx := 0
  25311. for iNdEx < l {
  25312. preIndex := iNdEx
  25313. var wire uint64
  25314. for shift := uint(0); ; shift += 7 {
  25315. if shift >= 64 {
  25316. return ErrIntOverflowApi
  25317. }
  25318. if iNdEx >= l {
  25319. return io.ErrUnexpectedEOF
  25320. }
  25321. b := dAtA[iNdEx]
  25322. iNdEx++
  25323. wire |= uint64(b&0x7F) << shift
  25324. if b < 0x80 {
  25325. break
  25326. }
  25327. }
  25328. fieldNum := int32(wire >> 3)
  25329. wireType := int(wire & 0x7)
  25330. if wireType == 4 {
  25331. return fmt.Errorf("proto: PodSandboxConfig: wiretype end group for non-group")
  25332. }
  25333. if fieldNum <= 0 {
  25334. return fmt.Errorf("proto: PodSandboxConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  25335. }
  25336. switch fieldNum {
  25337. case 1:
  25338. if wireType != 2 {
  25339. return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
  25340. }
  25341. var msglen int
  25342. for shift := uint(0); ; shift += 7 {
  25343. if shift >= 64 {
  25344. return ErrIntOverflowApi
  25345. }
  25346. if iNdEx >= l {
  25347. return io.ErrUnexpectedEOF
  25348. }
  25349. b := dAtA[iNdEx]
  25350. iNdEx++
  25351. msglen |= int(b&0x7F) << shift
  25352. if b < 0x80 {
  25353. break
  25354. }
  25355. }
  25356. if msglen < 0 {
  25357. return ErrInvalidLengthApi
  25358. }
  25359. postIndex := iNdEx + msglen
  25360. if postIndex < 0 {
  25361. return ErrInvalidLengthApi
  25362. }
  25363. if postIndex > l {
  25364. return io.ErrUnexpectedEOF
  25365. }
  25366. if m.Metadata == nil {
  25367. m.Metadata = &PodSandboxMetadata{}
  25368. }
  25369. if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  25370. return err
  25371. }
  25372. iNdEx = postIndex
  25373. case 2:
  25374. if wireType != 2 {
  25375. return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType)
  25376. }
  25377. var stringLen uint64
  25378. for shift := uint(0); ; shift += 7 {
  25379. if shift >= 64 {
  25380. return ErrIntOverflowApi
  25381. }
  25382. if iNdEx >= l {
  25383. return io.ErrUnexpectedEOF
  25384. }
  25385. b := dAtA[iNdEx]
  25386. iNdEx++
  25387. stringLen |= uint64(b&0x7F) << shift
  25388. if b < 0x80 {
  25389. break
  25390. }
  25391. }
  25392. intStringLen := int(stringLen)
  25393. if intStringLen < 0 {
  25394. return ErrInvalidLengthApi
  25395. }
  25396. postIndex := iNdEx + intStringLen
  25397. if postIndex < 0 {
  25398. return ErrInvalidLengthApi
  25399. }
  25400. if postIndex > l {
  25401. return io.ErrUnexpectedEOF
  25402. }
  25403. m.Hostname = string(dAtA[iNdEx:postIndex])
  25404. iNdEx = postIndex
  25405. case 3:
  25406. if wireType != 2 {
  25407. return fmt.Errorf("proto: wrong wireType = %d for field LogDirectory", wireType)
  25408. }
  25409. var stringLen uint64
  25410. for shift := uint(0); ; shift += 7 {
  25411. if shift >= 64 {
  25412. return ErrIntOverflowApi
  25413. }
  25414. if iNdEx >= l {
  25415. return io.ErrUnexpectedEOF
  25416. }
  25417. b := dAtA[iNdEx]
  25418. iNdEx++
  25419. stringLen |= uint64(b&0x7F) << shift
  25420. if b < 0x80 {
  25421. break
  25422. }
  25423. }
  25424. intStringLen := int(stringLen)
  25425. if intStringLen < 0 {
  25426. return ErrInvalidLengthApi
  25427. }
  25428. postIndex := iNdEx + intStringLen
  25429. if postIndex < 0 {
  25430. return ErrInvalidLengthApi
  25431. }
  25432. if postIndex > l {
  25433. return io.ErrUnexpectedEOF
  25434. }
  25435. m.LogDirectory = string(dAtA[iNdEx:postIndex])
  25436. iNdEx = postIndex
  25437. case 4:
  25438. if wireType != 2 {
  25439. return fmt.Errorf("proto: wrong wireType = %d for field DnsConfig", wireType)
  25440. }
  25441. var msglen int
  25442. for shift := uint(0); ; shift += 7 {
  25443. if shift >= 64 {
  25444. return ErrIntOverflowApi
  25445. }
  25446. if iNdEx >= l {
  25447. return io.ErrUnexpectedEOF
  25448. }
  25449. b := dAtA[iNdEx]
  25450. iNdEx++
  25451. msglen |= int(b&0x7F) << shift
  25452. if b < 0x80 {
  25453. break
  25454. }
  25455. }
  25456. if msglen < 0 {
  25457. return ErrInvalidLengthApi
  25458. }
  25459. postIndex := iNdEx + msglen
  25460. if postIndex < 0 {
  25461. return ErrInvalidLengthApi
  25462. }
  25463. if postIndex > l {
  25464. return io.ErrUnexpectedEOF
  25465. }
  25466. if m.DnsConfig == nil {
  25467. m.DnsConfig = &DNSConfig{}
  25468. }
  25469. if err := m.DnsConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  25470. return err
  25471. }
  25472. iNdEx = postIndex
  25473. case 5:
  25474. if wireType != 2 {
  25475. return fmt.Errorf("proto: wrong wireType = %d for field PortMappings", wireType)
  25476. }
  25477. var msglen int
  25478. for shift := uint(0); ; shift += 7 {
  25479. if shift >= 64 {
  25480. return ErrIntOverflowApi
  25481. }
  25482. if iNdEx >= l {
  25483. return io.ErrUnexpectedEOF
  25484. }
  25485. b := dAtA[iNdEx]
  25486. iNdEx++
  25487. msglen |= int(b&0x7F) << shift
  25488. if b < 0x80 {
  25489. break
  25490. }
  25491. }
  25492. if msglen < 0 {
  25493. return ErrInvalidLengthApi
  25494. }
  25495. postIndex := iNdEx + msglen
  25496. if postIndex < 0 {
  25497. return ErrInvalidLengthApi
  25498. }
  25499. if postIndex > l {
  25500. return io.ErrUnexpectedEOF
  25501. }
  25502. m.PortMappings = append(m.PortMappings, &PortMapping{})
  25503. if err := m.PortMappings[len(m.PortMappings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  25504. return err
  25505. }
  25506. iNdEx = postIndex
  25507. case 6:
  25508. if wireType != 2 {
  25509. return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  25510. }
  25511. var msglen int
  25512. for shift := uint(0); ; shift += 7 {
  25513. if shift >= 64 {
  25514. return ErrIntOverflowApi
  25515. }
  25516. if iNdEx >= l {
  25517. return io.ErrUnexpectedEOF
  25518. }
  25519. b := dAtA[iNdEx]
  25520. iNdEx++
  25521. msglen |= int(b&0x7F) << shift
  25522. if b < 0x80 {
  25523. break
  25524. }
  25525. }
  25526. if msglen < 0 {
  25527. return ErrInvalidLengthApi
  25528. }
  25529. postIndex := iNdEx + msglen
  25530. if postIndex < 0 {
  25531. return ErrInvalidLengthApi
  25532. }
  25533. if postIndex > l {
  25534. return io.ErrUnexpectedEOF
  25535. }
  25536. if m.Labels == nil {
  25537. m.Labels = make(map[string]string)
  25538. }
  25539. var mapkey string
  25540. var mapvalue string
  25541. for iNdEx < postIndex {
  25542. entryPreIndex := iNdEx
  25543. var wire uint64
  25544. for shift := uint(0); ; shift += 7 {
  25545. if shift >= 64 {
  25546. return ErrIntOverflowApi
  25547. }
  25548. if iNdEx >= l {
  25549. return io.ErrUnexpectedEOF
  25550. }
  25551. b := dAtA[iNdEx]
  25552. iNdEx++
  25553. wire |= uint64(b&0x7F) << shift
  25554. if b < 0x80 {
  25555. break
  25556. }
  25557. }
  25558. fieldNum := int32(wire >> 3)
  25559. if fieldNum == 1 {
  25560. var stringLenmapkey uint64
  25561. for shift := uint(0); ; shift += 7 {
  25562. if shift >= 64 {
  25563. return ErrIntOverflowApi
  25564. }
  25565. if iNdEx >= l {
  25566. return io.ErrUnexpectedEOF
  25567. }
  25568. b := dAtA[iNdEx]
  25569. iNdEx++
  25570. stringLenmapkey |= uint64(b&0x7F) << shift
  25571. if b < 0x80 {
  25572. break
  25573. }
  25574. }
  25575. intStringLenmapkey := int(stringLenmapkey)
  25576. if intStringLenmapkey < 0 {
  25577. return ErrInvalidLengthApi
  25578. }
  25579. postStringIndexmapkey := iNdEx + intStringLenmapkey
  25580. if postStringIndexmapkey < 0 {
  25581. return ErrInvalidLengthApi
  25582. }
  25583. if postStringIndexmapkey > l {
  25584. return io.ErrUnexpectedEOF
  25585. }
  25586. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  25587. iNdEx = postStringIndexmapkey
  25588. } else if fieldNum == 2 {
  25589. var stringLenmapvalue uint64
  25590. for shift := uint(0); ; shift += 7 {
  25591. if shift >= 64 {
  25592. return ErrIntOverflowApi
  25593. }
  25594. if iNdEx >= l {
  25595. return io.ErrUnexpectedEOF
  25596. }
  25597. b := dAtA[iNdEx]
  25598. iNdEx++
  25599. stringLenmapvalue |= uint64(b&0x7F) << shift
  25600. if b < 0x80 {
  25601. break
  25602. }
  25603. }
  25604. intStringLenmapvalue := int(stringLenmapvalue)
  25605. if intStringLenmapvalue < 0 {
  25606. return ErrInvalidLengthApi
  25607. }
  25608. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  25609. if postStringIndexmapvalue < 0 {
  25610. return ErrInvalidLengthApi
  25611. }
  25612. if postStringIndexmapvalue > l {
  25613. return io.ErrUnexpectedEOF
  25614. }
  25615. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  25616. iNdEx = postStringIndexmapvalue
  25617. } else {
  25618. iNdEx = entryPreIndex
  25619. skippy, err := skipApi(dAtA[iNdEx:])
  25620. if err != nil {
  25621. return err
  25622. }
  25623. if (skippy < 0) || (iNdEx+skippy) < 0 {
  25624. return ErrInvalidLengthApi
  25625. }
  25626. if (iNdEx + skippy) > postIndex {
  25627. return io.ErrUnexpectedEOF
  25628. }
  25629. iNdEx += skippy
  25630. }
  25631. }
  25632. m.Labels[mapkey] = mapvalue
  25633. iNdEx = postIndex
  25634. case 7:
  25635. if wireType != 2 {
  25636. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  25637. }
  25638. var msglen int
  25639. for shift := uint(0); ; shift += 7 {
  25640. if shift >= 64 {
  25641. return ErrIntOverflowApi
  25642. }
  25643. if iNdEx >= l {
  25644. return io.ErrUnexpectedEOF
  25645. }
  25646. b := dAtA[iNdEx]
  25647. iNdEx++
  25648. msglen |= int(b&0x7F) << shift
  25649. if b < 0x80 {
  25650. break
  25651. }
  25652. }
  25653. if msglen < 0 {
  25654. return ErrInvalidLengthApi
  25655. }
  25656. postIndex := iNdEx + msglen
  25657. if postIndex < 0 {
  25658. return ErrInvalidLengthApi
  25659. }
  25660. if postIndex > l {
  25661. return io.ErrUnexpectedEOF
  25662. }
  25663. if m.Annotations == nil {
  25664. m.Annotations = make(map[string]string)
  25665. }
  25666. var mapkey string
  25667. var mapvalue string
  25668. for iNdEx < postIndex {
  25669. entryPreIndex := iNdEx
  25670. var wire uint64
  25671. for shift := uint(0); ; shift += 7 {
  25672. if shift >= 64 {
  25673. return ErrIntOverflowApi
  25674. }
  25675. if iNdEx >= l {
  25676. return io.ErrUnexpectedEOF
  25677. }
  25678. b := dAtA[iNdEx]
  25679. iNdEx++
  25680. wire |= uint64(b&0x7F) << shift
  25681. if b < 0x80 {
  25682. break
  25683. }
  25684. }
  25685. fieldNum := int32(wire >> 3)
  25686. if fieldNum == 1 {
  25687. var stringLenmapkey uint64
  25688. for shift := uint(0); ; shift += 7 {
  25689. if shift >= 64 {
  25690. return ErrIntOverflowApi
  25691. }
  25692. if iNdEx >= l {
  25693. return io.ErrUnexpectedEOF
  25694. }
  25695. b := dAtA[iNdEx]
  25696. iNdEx++
  25697. stringLenmapkey |= uint64(b&0x7F) << shift
  25698. if b < 0x80 {
  25699. break
  25700. }
  25701. }
  25702. intStringLenmapkey := int(stringLenmapkey)
  25703. if intStringLenmapkey < 0 {
  25704. return ErrInvalidLengthApi
  25705. }
  25706. postStringIndexmapkey := iNdEx + intStringLenmapkey
  25707. if postStringIndexmapkey < 0 {
  25708. return ErrInvalidLengthApi
  25709. }
  25710. if postStringIndexmapkey > l {
  25711. return io.ErrUnexpectedEOF
  25712. }
  25713. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  25714. iNdEx = postStringIndexmapkey
  25715. } else if fieldNum == 2 {
  25716. var stringLenmapvalue uint64
  25717. for shift := uint(0); ; shift += 7 {
  25718. if shift >= 64 {
  25719. return ErrIntOverflowApi
  25720. }
  25721. if iNdEx >= l {
  25722. return io.ErrUnexpectedEOF
  25723. }
  25724. b := dAtA[iNdEx]
  25725. iNdEx++
  25726. stringLenmapvalue |= uint64(b&0x7F) << shift
  25727. if b < 0x80 {
  25728. break
  25729. }
  25730. }
  25731. intStringLenmapvalue := int(stringLenmapvalue)
  25732. if intStringLenmapvalue < 0 {
  25733. return ErrInvalidLengthApi
  25734. }
  25735. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  25736. if postStringIndexmapvalue < 0 {
  25737. return ErrInvalidLengthApi
  25738. }
  25739. if postStringIndexmapvalue > l {
  25740. return io.ErrUnexpectedEOF
  25741. }
  25742. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  25743. iNdEx = postStringIndexmapvalue
  25744. } else {
  25745. iNdEx = entryPreIndex
  25746. skippy, err := skipApi(dAtA[iNdEx:])
  25747. if err != nil {
  25748. return err
  25749. }
  25750. if (skippy < 0) || (iNdEx+skippy) < 0 {
  25751. return ErrInvalidLengthApi
  25752. }
  25753. if (iNdEx + skippy) > postIndex {
  25754. return io.ErrUnexpectedEOF
  25755. }
  25756. iNdEx += skippy
  25757. }
  25758. }
  25759. m.Annotations[mapkey] = mapvalue
  25760. iNdEx = postIndex
  25761. case 8:
  25762. if wireType != 2 {
  25763. return fmt.Errorf("proto: wrong wireType = %d for field Linux", wireType)
  25764. }
  25765. var msglen int
  25766. for shift := uint(0); ; shift += 7 {
  25767. if shift >= 64 {
  25768. return ErrIntOverflowApi
  25769. }
  25770. if iNdEx >= l {
  25771. return io.ErrUnexpectedEOF
  25772. }
  25773. b := dAtA[iNdEx]
  25774. iNdEx++
  25775. msglen |= int(b&0x7F) << shift
  25776. if b < 0x80 {
  25777. break
  25778. }
  25779. }
  25780. if msglen < 0 {
  25781. return ErrInvalidLengthApi
  25782. }
  25783. postIndex := iNdEx + msglen
  25784. if postIndex < 0 {
  25785. return ErrInvalidLengthApi
  25786. }
  25787. if postIndex > l {
  25788. return io.ErrUnexpectedEOF
  25789. }
  25790. if m.Linux == nil {
  25791. m.Linux = &LinuxPodSandboxConfig{}
  25792. }
  25793. if err := m.Linux.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  25794. return err
  25795. }
  25796. iNdEx = postIndex
  25797. case 9:
  25798. if wireType != 2 {
  25799. return fmt.Errorf("proto: wrong wireType = %d for field Windows", wireType)
  25800. }
  25801. var msglen int
  25802. for shift := uint(0); ; shift += 7 {
  25803. if shift >= 64 {
  25804. return ErrIntOverflowApi
  25805. }
  25806. if iNdEx >= l {
  25807. return io.ErrUnexpectedEOF
  25808. }
  25809. b := dAtA[iNdEx]
  25810. iNdEx++
  25811. msglen |= int(b&0x7F) << shift
  25812. if b < 0x80 {
  25813. break
  25814. }
  25815. }
  25816. if msglen < 0 {
  25817. return ErrInvalidLengthApi
  25818. }
  25819. postIndex := iNdEx + msglen
  25820. if postIndex < 0 {
  25821. return ErrInvalidLengthApi
  25822. }
  25823. if postIndex > l {
  25824. return io.ErrUnexpectedEOF
  25825. }
  25826. if m.Windows == nil {
  25827. m.Windows = &WindowsPodSandboxConfig{}
  25828. }
  25829. if err := m.Windows.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  25830. return err
  25831. }
  25832. iNdEx = postIndex
  25833. default:
  25834. iNdEx = preIndex
  25835. skippy, err := skipApi(dAtA[iNdEx:])
  25836. if err != nil {
  25837. return err
  25838. }
  25839. if (skippy < 0) || (iNdEx+skippy) < 0 {
  25840. return ErrInvalidLengthApi
  25841. }
  25842. if (iNdEx + skippy) > l {
  25843. return io.ErrUnexpectedEOF
  25844. }
  25845. iNdEx += skippy
  25846. }
  25847. }
  25848. if iNdEx > l {
  25849. return io.ErrUnexpectedEOF
  25850. }
  25851. return nil
  25852. }
  25853. func (m *RunPodSandboxRequest) Unmarshal(dAtA []byte) error {
  25854. l := len(dAtA)
  25855. iNdEx := 0
  25856. for iNdEx < l {
  25857. preIndex := iNdEx
  25858. var wire uint64
  25859. for shift := uint(0); ; shift += 7 {
  25860. if shift >= 64 {
  25861. return ErrIntOverflowApi
  25862. }
  25863. if iNdEx >= l {
  25864. return io.ErrUnexpectedEOF
  25865. }
  25866. b := dAtA[iNdEx]
  25867. iNdEx++
  25868. wire |= uint64(b&0x7F) << shift
  25869. if b < 0x80 {
  25870. break
  25871. }
  25872. }
  25873. fieldNum := int32(wire >> 3)
  25874. wireType := int(wire & 0x7)
  25875. if wireType == 4 {
  25876. return fmt.Errorf("proto: RunPodSandboxRequest: wiretype end group for non-group")
  25877. }
  25878. if fieldNum <= 0 {
  25879. return fmt.Errorf("proto: RunPodSandboxRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  25880. }
  25881. switch fieldNum {
  25882. case 1:
  25883. if wireType != 2 {
  25884. return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType)
  25885. }
  25886. var msglen int
  25887. for shift := uint(0); ; shift += 7 {
  25888. if shift >= 64 {
  25889. return ErrIntOverflowApi
  25890. }
  25891. if iNdEx >= l {
  25892. return io.ErrUnexpectedEOF
  25893. }
  25894. b := dAtA[iNdEx]
  25895. iNdEx++
  25896. msglen |= int(b&0x7F) << shift
  25897. if b < 0x80 {
  25898. break
  25899. }
  25900. }
  25901. if msglen < 0 {
  25902. return ErrInvalidLengthApi
  25903. }
  25904. postIndex := iNdEx + msglen
  25905. if postIndex < 0 {
  25906. return ErrInvalidLengthApi
  25907. }
  25908. if postIndex > l {
  25909. return io.ErrUnexpectedEOF
  25910. }
  25911. if m.Config == nil {
  25912. m.Config = &PodSandboxConfig{}
  25913. }
  25914. if err := m.Config.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  25915. return err
  25916. }
  25917. iNdEx = postIndex
  25918. case 2:
  25919. if wireType != 2 {
  25920. return fmt.Errorf("proto: wrong wireType = %d for field RuntimeHandler", wireType)
  25921. }
  25922. var stringLen uint64
  25923. for shift := uint(0); ; shift += 7 {
  25924. if shift >= 64 {
  25925. return ErrIntOverflowApi
  25926. }
  25927. if iNdEx >= l {
  25928. return io.ErrUnexpectedEOF
  25929. }
  25930. b := dAtA[iNdEx]
  25931. iNdEx++
  25932. stringLen |= uint64(b&0x7F) << shift
  25933. if b < 0x80 {
  25934. break
  25935. }
  25936. }
  25937. intStringLen := int(stringLen)
  25938. if intStringLen < 0 {
  25939. return ErrInvalidLengthApi
  25940. }
  25941. postIndex := iNdEx + intStringLen
  25942. if postIndex < 0 {
  25943. return ErrInvalidLengthApi
  25944. }
  25945. if postIndex > l {
  25946. return io.ErrUnexpectedEOF
  25947. }
  25948. m.RuntimeHandler = string(dAtA[iNdEx:postIndex])
  25949. iNdEx = postIndex
  25950. default:
  25951. iNdEx = preIndex
  25952. skippy, err := skipApi(dAtA[iNdEx:])
  25953. if err != nil {
  25954. return err
  25955. }
  25956. if (skippy < 0) || (iNdEx+skippy) < 0 {
  25957. return ErrInvalidLengthApi
  25958. }
  25959. if (iNdEx + skippy) > l {
  25960. return io.ErrUnexpectedEOF
  25961. }
  25962. iNdEx += skippy
  25963. }
  25964. }
  25965. if iNdEx > l {
  25966. return io.ErrUnexpectedEOF
  25967. }
  25968. return nil
  25969. }
  25970. func (m *RunPodSandboxResponse) Unmarshal(dAtA []byte) error {
  25971. l := len(dAtA)
  25972. iNdEx := 0
  25973. for iNdEx < l {
  25974. preIndex := iNdEx
  25975. var wire uint64
  25976. for shift := uint(0); ; shift += 7 {
  25977. if shift >= 64 {
  25978. return ErrIntOverflowApi
  25979. }
  25980. if iNdEx >= l {
  25981. return io.ErrUnexpectedEOF
  25982. }
  25983. b := dAtA[iNdEx]
  25984. iNdEx++
  25985. wire |= uint64(b&0x7F) << shift
  25986. if b < 0x80 {
  25987. break
  25988. }
  25989. }
  25990. fieldNum := int32(wire >> 3)
  25991. wireType := int(wire & 0x7)
  25992. if wireType == 4 {
  25993. return fmt.Errorf("proto: RunPodSandboxResponse: wiretype end group for non-group")
  25994. }
  25995. if fieldNum <= 0 {
  25996. return fmt.Errorf("proto: RunPodSandboxResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  25997. }
  25998. switch fieldNum {
  25999. case 1:
  26000. if wireType != 2 {
  26001. return fmt.Errorf("proto: wrong wireType = %d for field PodSandboxId", wireType)
  26002. }
  26003. var stringLen uint64
  26004. for shift := uint(0); ; shift += 7 {
  26005. if shift >= 64 {
  26006. return ErrIntOverflowApi
  26007. }
  26008. if iNdEx >= l {
  26009. return io.ErrUnexpectedEOF
  26010. }
  26011. b := dAtA[iNdEx]
  26012. iNdEx++
  26013. stringLen |= uint64(b&0x7F) << shift
  26014. if b < 0x80 {
  26015. break
  26016. }
  26017. }
  26018. intStringLen := int(stringLen)
  26019. if intStringLen < 0 {
  26020. return ErrInvalidLengthApi
  26021. }
  26022. postIndex := iNdEx + intStringLen
  26023. if postIndex < 0 {
  26024. return ErrInvalidLengthApi
  26025. }
  26026. if postIndex > l {
  26027. return io.ErrUnexpectedEOF
  26028. }
  26029. m.PodSandboxId = string(dAtA[iNdEx:postIndex])
  26030. iNdEx = postIndex
  26031. default:
  26032. iNdEx = preIndex
  26033. skippy, err := skipApi(dAtA[iNdEx:])
  26034. if err != nil {
  26035. return err
  26036. }
  26037. if (skippy < 0) || (iNdEx+skippy) < 0 {
  26038. return ErrInvalidLengthApi
  26039. }
  26040. if (iNdEx + skippy) > l {
  26041. return io.ErrUnexpectedEOF
  26042. }
  26043. iNdEx += skippy
  26044. }
  26045. }
  26046. if iNdEx > l {
  26047. return io.ErrUnexpectedEOF
  26048. }
  26049. return nil
  26050. }
  26051. func (m *StopPodSandboxRequest) Unmarshal(dAtA []byte) error {
  26052. l := len(dAtA)
  26053. iNdEx := 0
  26054. for iNdEx < l {
  26055. preIndex := iNdEx
  26056. var wire uint64
  26057. for shift := uint(0); ; shift += 7 {
  26058. if shift >= 64 {
  26059. return ErrIntOverflowApi
  26060. }
  26061. if iNdEx >= l {
  26062. return io.ErrUnexpectedEOF
  26063. }
  26064. b := dAtA[iNdEx]
  26065. iNdEx++
  26066. wire |= uint64(b&0x7F) << shift
  26067. if b < 0x80 {
  26068. break
  26069. }
  26070. }
  26071. fieldNum := int32(wire >> 3)
  26072. wireType := int(wire & 0x7)
  26073. if wireType == 4 {
  26074. return fmt.Errorf("proto: StopPodSandboxRequest: wiretype end group for non-group")
  26075. }
  26076. if fieldNum <= 0 {
  26077. return fmt.Errorf("proto: StopPodSandboxRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  26078. }
  26079. switch fieldNum {
  26080. case 1:
  26081. if wireType != 2 {
  26082. return fmt.Errorf("proto: wrong wireType = %d for field PodSandboxId", wireType)
  26083. }
  26084. var stringLen uint64
  26085. for shift := uint(0); ; shift += 7 {
  26086. if shift >= 64 {
  26087. return ErrIntOverflowApi
  26088. }
  26089. if iNdEx >= l {
  26090. return io.ErrUnexpectedEOF
  26091. }
  26092. b := dAtA[iNdEx]
  26093. iNdEx++
  26094. stringLen |= uint64(b&0x7F) << shift
  26095. if b < 0x80 {
  26096. break
  26097. }
  26098. }
  26099. intStringLen := int(stringLen)
  26100. if intStringLen < 0 {
  26101. return ErrInvalidLengthApi
  26102. }
  26103. postIndex := iNdEx + intStringLen
  26104. if postIndex < 0 {
  26105. return ErrInvalidLengthApi
  26106. }
  26107. if postIndex > l {
  26108. return io.ErrUnexpectedEOF
  26109. }
  26110. m.PodSandboxId = string(dAtA[iNdEx:postIndex])
  26111. iNdEx = postIndex
  26112. default:
  26113. iNdEx = preIndex
  26114. skippy, err := skipApi(dAtA[iNdEx:])
  26115. if err != nil {
  26116. return err
  26117. }
  26118. if (skippy < 0) || (iNdEx+skippy) < 0 {
  26119. return ErrInvalidLengthApi
  26120. }
  26121. if (iNdEx + skippy) > l {
  26122. return io.ErrUnexpectedEOF
  26123. }
  26124. iNdEx += skippy
  26125. }
  26126. }
  26127. if iNdEx > l {
  26128. return io.ErrUnexpectedEOF
  26129. }
  26130. return nil
  26131. }
  26132. func (m *StopPodSandboxResponse) Unmarshal(dAtA []byte) error {
  26133. l := len(dAtA)
  26134. iNdEx := 0
  26135. for iNdEx < l {
  26136. preIndex := iNdEx
  26137. var wire uint64
  26138. for shift := uint(0); ; shift += 7 {
  26139. if shift >= 64 {
  26140. return ErrIntOverflowApi
  26141. }
  26142. if iNdEx >= l {
  26143. return io.ErrUnexpectedEOF
  26144. }
  26145. b := dAtA[iNdEx]
  26146. iNdEx++
  26147. wire |= uint64(b&0x7F) << shift
  26148. if b < 0x80 {
  26149. break
  26150. }
  26151. }
  26152. fieldNum := int32(wire >> 3)
  26153. wireType := int(wire & 0x7)
  26154. if wireType == 4 {
  26155. return fmt.Errorf("proto: StopPodSandboxResponse: wiretype end group for non-group")
  26156. }
  26157. if fieldNum <= 0 {
  26158. return fmt.Errorf("proto: StopPodSandboxResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  26159. }
  26160. switch fieldNum {
  26161. default:
  26162. iNdEx = preIndex
  26163. skippy, err := skipApi(dAtA[iNdEx:])
  26164. if err != nil {
  26165. return err
  26166. }
  26167. if (skippy < 0) || (iNdEx+skippy) < 0 {
  26168. return ErrInvalidLengthApi
  26169. }
  26170. if (iNdEx + skippy) > l {
  26171. return io.ErrUnexpectedEOF
  26172. }
  26173. iNdEx += skippy
  26174. }
  26175. }
  26176. if iNdEx > l {
  26177. return io.ErrUnexpectedEOF
  26178. }
  26179. return nil
  26180. }
  26181. func (m *RemovePodSandboxRequest) Unmarshal(dAtA []byte) error {
  26182. l := len(dAtA)
  26183. iNdEx := 0
  26184. for iNdEx < l {
  26185. preIndex := iNdEx
  26186. var wire uint64
  26187. for shift := uint(0); ; shift += 7 {
  26188. if shift >= 64 {
  26189. return ErrIntOverflowApi
  26190. }
  26191. if iNdEx >= l {
  26192. return io.ErrUnexpectedEOF
  26193. }
  26194. b := dAtA[iNdEx]
  26195. iNdEx++
  26196. wire |= uint64(b&0x7F) << shift
  26197. if b < 0x80 {
  26198. break
  26199. }
  26200. }
  26201. fieldNum := int32(wire >> 3)
  26202. wireType := int(wire & 0x7)
  26203. if wireType == 4 {
  26204. return fmt.Errorf("proto: RemovePodSandboxRequest: wiretype end group for non-group")
  26205. }
  26206. if fieldNum <= 0 {
  26207. return fmt.Errorf("proto: RemovePodSandboxRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  26208. }
  26209. switch fieldNum {
  26210. case 1:
  26211. if wireType != 2 {
  26212. return fmt.Errorf("proto: wrong wireType = %d for field PodSandboxId", wireType)
  26213. }
  26214. var stringLen uint64
  26215. for shift := uint(0); ; shift += 7 {
  26216. if shift >= 64 {
  26217. return ErrIntOverflowApi
  26218. }
  26219. if iNdEx >= l {
  26220. return io.ErrUnexpectedEOF
  26221. }
  26222. b := dAtA[iNdEx]
  26223. iNdEx++
  26224. stringLen |= uint64(b&0x7F) << shift
  26225. if b < 0x80 {
  26226. break
  26227. }
  26228. }
  26229. intStringLen := int(stringLen)
  26230. if intStringLen < 0 {
  26231. return ErrInvalidLengthApi
  26232. }
  26233. postIndex := iNdEx + intStringLen
  26234. if postIndex < 0 {
  26235. return ErrInvalidLengthApi
  26236. }
  26237. if postIndex > l {
  26238. return io.ErrUnexpectedEOF
  26239. }
  26240. m.PodSandboxId = string(dAtA[iNdEx:postIndex])
  26241. iNdEx = postIndex
  26242. default:
  26243. iNdEx = preIndex
  26244. skippy, err := skipApi(dAtA[iNdEx:])
  26245. if err != nil {
  26246. return err
  26247. }
  26248. if (skippy < 0) || (iNdEx+skippy) < 0 {
  26249. return ErrInvalidLengthApi
  26250. }
  26251. if (iNdEx + skippy) > l {
  26252. return io.ErrUnexpectedEOF
  26253. }
  26254. iNdEx += skippy
  26255. }
  26256. }
  26257. if iNdEx > l {
  26258. return io.ErrUnexpectedEOF
  26259. }
  26260. return nil
  26261. }
  26262. func (m *RemovePodSandboxResponse) Unmarshal(dAtA []byte) error {
  26263. l := len(dAtA)
  26264. iNdEx := 0
  26265. for iNdEx < l {
  26266. preIndex := iNdEx
  26267. var wire uint64
  26268. for shift := uint(0); ; shift += 7 {
  26269. if shift >= 64 {
  26270. return ErrIntOverflowApi
  26271. }
  26272. if iNdEx >= l {
  26273. return io.ErrUnexpectedEOF
  26274. }
  26275. b := dAtA[iNdEx]
  26276. iNdEx++
  26277. wire |= uint64(b&0x7F) << shift
  26278. if b < 0x80 {
  26279. break
  26280. }
  26281. }
  26282. fieldNum := int32(wire >> 3)
  26283. wireType := int(wire & 0x7)
  26284. if wireType == 4 {
  26285. return fmt.Errorf("proto: RemovePodSandboxResponse: wiretype end group for non-group")
  26286. }
  26287. if fieldNum <= 0 {
  26288. return fmt.Errorf("proto: RemovePodSandboxResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  26289. }
  26290. switch fieldNum {
  26291. default:
  26292. iNdEx = preIndex
  26293. skippy, err := skipApi(dAtA[iNdEx:])
  26294. if err != nil {
  26295. return err
  26296. }
  26297. if (skippy < 0) || (iNdEx+skippy) < 0 {
  26298. return ErrInvalidLengthApi
  26299. }
  26300. if (iNdEx + skippy) > l {
  26301. return io.ErrUnexpectedEOF
  26302. }
  26303. iNdEx += skippy
  26304. }
  26305. }
  26306. if iNdEx > l {
  26307. return io.ErrUnexpectedEOF
  26308. }
  26309. return nil
  26310. }
  26311. func (m *PodSandboxStatusRequest) Unmarshal(dAtA []byte) error {
  26312. l := len(dAtA)
  26313. iNdEx := 0
  26314. for iNdEx < l {
  26315. preIndex := iNdEx
  26316. var wire uint64
  26317. for shift := uint(0); ; shift += 7 {
  26318. if shift >= 64 {
  26319. return ErrIntOverflowApi
  26320. }
  26321. if iNdEx >= l {
  26322. return io.ErrUnexpectedEOF
  26323. }
  26324. b := dAtA[iNdEx]
  26325. iNdEx++
  26326. wire |= uint64(b&0x7F) << shift
  26327. if b < 0x80 {
  26328. break
  26329. }
  26330. }
  26331. fieldNum := int32(wire >> 3)
  26332. wireType := int(wire & 0x7)
  26333. if wireType == 4 {
  26334. return fmt.Errorf("proto: PodSandboxStatusRequest: wiretype end group for non-group")
  26335. }
  26336. if fieldNum <= 0 {
  26337. return fmt.Errorf("proto: PodSandboxStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  26338. }
  26339. switch fieldNum {
  26340. case 1:
  26341. if wireType != 2 {
  26342. return fmt.Errorf("proto: wrong wireType = %d for field PodSandboxId", wireType)
  26343. }
  26344. var stringLen uint64
  26345. for shift := uint(0); ; shift += 7 {
  26346. if shift >= 64 {
  26347. return ErrIntOverflowApi
  26348. }
  26349. if iNdEx >= l {
  26350. return io.ErrUnexpectedEOF
  26351. }
  26352. b := dAtA[iNdEx]
  26353. iNdEx++
  26354. stringLen |= uint64(b&0x7F) << shift
  26355. if b < 0x80 {
  26356. break
  26357. }
  26358. }
  26359. intStringLen := int(stringLen)
  26360. if intStringLen < 0 {
  26361. return ErrInvalidLengthApi
  26362. }
  26363. postIndex := iNdEx + intStringLen
  26364. if postIndex < 0 {
  26365. return ErrInvalidLengthApi
  26366. }
  26367. if postIndex > l {
  26368. return io.ErrUnexpectedEOF
  26369. }
  26370. m.PodSandboxId = string(dAtA[iNdEx:postIndex])
  26371. iNdEx = postIndex
  26372. case 2:
  26373. if wireType != 0 {
  26374. return fmt.Errorf("proto: wrong wireType = %d for field Verbose", wireType)
  26375. }
  26376. var v int
  26377. for shift := uint(0); ; shift += 7 {
  26378. if shift >= 64 {
  26379. return ErrIntOverflowApi
  26380. }
  26381. if iNdEx >= l {
  26382. return io.ErrUnexpectedEOF
  26383. }
  26384. b := dAtA[iNdEx]
  26385. iNdEx++
  26386. v |= int(b&0x7F) << shift
  26387. if b < 0x80 {
  26388. break
  26389. }
  26390. }
  26391. m.Verbose = bool(v != 0)
  26392. default:
  26393. iNdEx = preIndex
  26394. skippy, err := skipApi(dAtA[iNdEx:])
  26395. if err != nil {
  26396. return err
  26397. }
  26398. if (skippy < 0) || (iNdEx+skippy) < 0 {
  26399. return ErrInvalidLengthApi
  26400. }
  26401. if (iNdEx + skippy) > l {
  26402. return io.ErrUnexpectedEOF
  26403. }
  26404. iNdEx += skippy
  26405. }
  26406. }
  26407. if iNdEx > l {
  26408. return io.ErrUnexpectedEOF
  26409. }
  26410. return nil
  26411. }
  26412. func (m *PodIP) Unmarshal(dAtA []byte) error {
  26413. l := len(dAtA)
  26414. iNdEx := 0
  26415. for iNdEx < l {
  26416. preIndex := iNdEx
  26417. var wire uint64
  26418. for shift := uint(0); ; shift += 7 {
  26419. if shift >= 64 {
  26420. return ErrIntOverflowApi
  26421. }
  26422. if iNdEx >= l {
  26423. return io.ErrUnexpectedEOF
  26424. }
  26425. b := dAtA[iNdEx]
  26426. iNdEx++
  26427. wire |= uint64(b&0x7F) << shift
  26428. if b < 0x80 {
  26429. break
  26430. }
  26431. }
  26432. fieldNum := int32(wire >> 3)
  26433. wireType := int(wire & 0x7)
  26434. if wireType == 4 {
  26435. return fmt.Errorf("proto: PodIP: wiretype end group for non-group")
  26436. }
  26437. if fieldNum <= 0 {
  26438. return fmt.Errorf("proto: PodIP: illegal tag %d (wire type %d)", fieldNum, wire)
  26439. }
  26440. switch fieldNum {
  26441. case 1:
  26442. if wireType != 2 {
  26443. return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType)
  26444. }
  26445. var stringLen uint64
  26446. for shift := uint(0); ; shift += 7 {
  26447. if shift >= 64 {
  26448. return ErrIntOverflowApi
  26449. }
  26450. if iNdEx >= l {
  26451. return io.ErrUnexpectedEOF
  26452. }
  26453. b := dAtA[iNdEx]
  26454. iNdEx++
  26455. stringLen |= uint64(b&0x7F) << shift
  26456. if b < 0x80 {
  26457. break
  26458. }
  26459. }
  26460. intStringLen := int(stringLen)
  26461. if intStringLen < 0 {
  26462. return ErrInvalidLengthApi
  26463. }
  26464. postIndex := iNdEx + intStringLen
  26465. if postIndex < 0 {
  26466. return ErrInvalidLengthApi
  26467. }
  26468. if postIndex > l {
  26469. return io.ErrUnexpectedEOF
  26470. }
  26471. m.Ip = string(dAtA[iNdEx:postIndex])
  26472. iNdEx = postIndex
  26473. default:
  26474. iNdEx = preIndex
  26475. skippy, err := skipApi(dAtA[iNdEx:])
  26476. if err != nil {
  26477. return err
  26478. }
  26479. if (skippy < 0) || (iNdEx+skippy) < 0 {
  26480. return ErrInvalidLengthApi
  26481. }
  26482. if (iNdEx + skippy) > l {
  26483. return io.ErrUnexpectedEOF
  26484. }
  26485. iNdEx += skippy
  26486. }
  26487. }
  26488. if iNdEx > l {
  26489. return io.ErrUnexpectedEOF
  26490. }
  26491. return nil
  26492. }
  26493. func (m *PodSandboxNetworkStatus) Unmarshal(dAtA []byte) error {
  26494. l := len(dAtA)
  26495. iNdEx := 0
  26496. for iNdEx < l {
  26497. preIndex := iNdEx
  26498. var wire uint64
  26499. for shift := uint(0); ; shift += 7 {
  26500. if shift >= 64 {
  26501. return ErrIntOverflowApi
  26502. }
  26503. if iNdEx >= l {
  26504. return io.ErrUnexpectedEOF
  26505. }
  26506. b := dAtA[iNdEx]
  26507. iNdEx++
  26508. wire |= uint64(b&0x7F) << shift
  26509. if b < 0x80 {
  26510. break
  26511. }
  26512. }
  26513. fieldNum := int32(wire >> 3)
  26514. wireType := int(wire & 0x7)
  26515. if wireType == 4 {
  26516. return fmt.Errorf("proto: PodSandboxNetworkStatus: wiretype end group for non-group")
  26517. }
  26518. if fieldNum <= 0 {
  26519. return fmt.Errorf("proto: PodSandboxNetworkStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  26520. }
  26521. switch fieldNum {
  26522. case 1:
  26523. if wireType != 2 {
  26524. return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType)
  26525. }
  26526. var stringLen uint64
  26527. for shift := uint(0); ; shift += 7 {
  26528. if shift >= 64 {
  26529. return ErrIntOverflowApi
  26530. }
  26531. if iNdEx >= l {
  26532. return io.ErrUnexpectedEOF
  26533. }
  26534. b := dAtA[iNdEx]
  26535. iNdEx++
  26536. stringLen |= uint64(b&0x7F) << shift
  26537. if b < 0x80 {
  26538. break
  26539. }
  26540. }
  26541. intStringLen := int(stringLen)
  26542. if intStringLen < 0 {
  26543. return ErrInvalidLengthApi
  26544. }
  26545. postIndex := iNdEx + intStringLen
  26546. if postIndex < 0 {
  26547. return ErrInvalidLengthApi
  26548. }
  26549. if postIndex > l {
  26550. return io.ErrUnexpectedEOF
  26551. }
  26552. m.Ip = string(dAtA[iNdEx:postIndex])
  26553. iNdEx = postIndex
  26554. case 2:
  26555. if wireType != 2 {
  26556. return fmt.Errorf("proto: wrong wireType = %d for field AdditionalIps", wireType)
  26557. }
  26558. var msglen int
  26559. for shift := uint(0); ; shift += 7 {
  26560. if shift >= 64 {
  26561. return ErrIntOverflowApi
  26562. }
  26563. if iNdEx >= l {
  26564. return io.ErrUnexpectedEOF
  26565. }
  26566. b := dAtA[iNdEx]
  26567. iNdEx++
  26568. msglen |= int(b&0x7F) << shift
  26569. if b < 0x80 {
  26570. break
  26571. }
  26572. }
  26573. if msglen < 0 {
  26574. return ErrInvalidLengthApi
  26575. }
  26576. postIndex := iNdEx + msglen
  26577. if postIndex < 0 {
  26578. return ErrInvalidLengthApi
  26579. }
  26580. if postIndex > l {
  26581. return io.ErrUnexpectedEOF
  26582. }
  26583. m.AdditionalIps = append(m.AdditionalIps, &PodIP{})
  26584. if err := m.AdditionalIps[len(m.AdditionalIps)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  26585. return err
  26586. }
  26587. iNdEx = postIndex
  26588. default:
  26589. iNdEx = preIndex
  26590. skippy, err := skipApi(dAtA[iNdEx:])
  26591. if err != nil {
  26592. return err
  26593. }
  26594. if (skippy < 0) || (iNdEx+skippy) < 0 {
  26595. return ErrInvalidLengthApi
  26596. }
  26597. if (iNdEx + skippy) > l {
  26598. return io.ErrUnexpectedEOF
  26599. }
  26600. iNdEx += skippy
  26601. }
  26602. }
  26603. if iNdEx > l {
  26604. return io.ErrUnexpectedEOF
  26605. }
  26606. return nil
  26607. }
  26608. func (m *Namespace) Unmarshal(dAtA []byte) error {
  26609. l := len(dAtA)
  26610. iNdEx := 0
  26611. for iNdEx < l {
  26612. preIndex := iNdEx
  26613. var wire uint64
  26614. for shift := uint(0); ; shift += 7 {
  26615. if shift >= 64 {
  26616. return ErrIntOverflowApi
  26617. }
  26618. if iNdEx >= l {
  26619. return io.ErrUnexpectedEOF
  26620. }
  26621. b := dAtA[iNdEx]
  26622. iNdEx++
  26623. wire |= uint64(b&0x7F) << shift
  26624. if b < 0x80 {
  26625. break
  26626. }
  26627. }
  26628. fieldNum := int32(wire >> 3)
  26629. wireType := int(wire & 0x7)
  26630. if wireType == 4 {
  26631. return fmt.Errorf("proto: Namespace: wiretype end group for non-group")
  26632. }
  26633. if fieldNum <= 0 {
  26634. return fmt.Errorf("proto: Namespace: illegal tag %d (wire type %d)", fieldNum, wire)
  26635. }
  26636. switch fieldNum {
  26637. case 2:
  26638. if wireType != 2 {
  26639. return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
  26640. }
  26641. var msglen int
  26642. for shift := uint(0); ; shift += 7 {
  26643. if shift >= 64 {
  26644. return ErrIntOverflowApi
  26645. }
  26646. if iNdEx >= l {
  26647. return io.ErrUnexpectedEOF
  26648. }
  26649. b := dAtA[iNdEx]
  26650. iNdEx++
  26651. msglen |= int(b&0x7F) << shift
  26652. if b < 0x80 {
  26653. break
  26654. }
  26655. }
  26656. if msglen < 0 {
  26657. return ErrInvalidLengthApi
  26658. }
  26659. postIndex := iNdEx + msglen
  26660. if postIndex < 0 {
  26661. return ErrInvalidLengthApi
  26662. }
  26663. if postIndex > l {
  26664. return io.ErrUnexpectedEOF
  26665. }
  26666. if m.Options == nil {
  26667. m.Options = &NamespaceOption{}
  26668. }
  26669. if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  26670. return err
  26671. }
  26672. iNdEx = postIndex
  26673. default:
  26674. iNdEx = preIndex
  26675. skippy, err := skipApi(dAtA[iNdEx:])
  26676. if err != nil {
  26677. return err
  26678. }
  26679. if (skippy < 0) || (iNdEx+skippy) < 0 {
  26680. return ErrInvalidLengthApi
  26681. }
  26682. if (iNdEx + skippy) > l {
  26683. return io.ErrUnexpectedEOF
  26684. }
  26685. iNdEx += skippy
  26686. }
  26687. }
  26688. if iNdEx > l {
  26689. return io.ErrUnexpectedEOF
  26690. }
  26691. return nil
  26692. }
  26693. func (m *LinuxPodSandboxStatus) Unmarshal(dAtA []byte) error {
  26694. l := len(dAtA)
  26695. iNdEx := 0
  26696. for iNdEx < l {
  26697. preIndex := iNdEx
  26698. var wire uint64
  26699. for shift := uint(0); ; shift += 7 {
  26700. if shift >= 64 {
  26701. return ErrIntOverflowApi
  26702. }
  26703. if iNdEx >= l {
  26704. return io.ErrUnexpectedEOF
  26705. }
  26706. b := dAtA[iNdEx]
  26707. iNdEx++
  26708. wire |= uint64(b&0x7F) << shift
  26709. if b < 0x80 {
  26710. break
  26711. }
  26712. }
  26713. fieldNum := int32(wire >> 3)
  26714. wireType := int(wire & 0x7)
  26715. if wireType == 4 {
  26716. return fmt.Errorf("proto: LinuxPodSandboxStatus: wiretype end group for non-group")
  26717. }
  26718. if fieldNum <= 0 {
  26719. return fmt.Errorf("proto: LinuxPodSandboxStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  26720. }
  26721. switch fieldNum {
  26722. case 1:
  26723. if wireType != 2 {
  26724. return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType)
  26725. }
  26726. var msglen int
  26727. for shift := uint(0); ; shift += 7 {
  26728. if shift >= 64 {
  26729. return ErrIntOverflowApi
  26730. }
  26731. if iNdEx >= l {
  26732. return io.ErrUnexpectedEOF
  26733. }
  26734. b := dAtA[iNdEx]
  26735. iNdEx++
  26736. msglen |= int(b&0x7F) << shift
  26737. if b < 0x80 {
  26738. break
  26739. }
  26740. }
  26741. if msglen < 0 {
  26742. return ErrInvalidLengthApi
  26743. }
  26744. postIndex := iNdEx + msglen
  26745. if postIndex < 0 {
  26746. return ErrInvalidLengthApi
  26747. }
  26748. if postIndex > l {
  26749. return io.ErrUnexpectedEOF
  26750. }
  26751. if m.Namespaces == nil {
  26752. m.Namespaces = &Namespace{}
  26753. }
  26754. if err := m.Namespaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  26755. return err
  26756. }
  26757. iNdEx = postIndex
  26758. default:
  26759. iNdEx = preIndex
  26760. skippy, err := skipApi(dAtA[iNdEx:])
  26761. if err != nil {
  26762. return err
  26763. }
  26764. if (skippy < 0) || (iNdEx+skippy) < 0 {
  26765. return ErrInvalidLengthApi
  26766. }
  26767. if (iNdEx + skippy) > l {
  26768. return io.ErrUnexpectedEOF
  26769. }
  26770. iNdEx += skippy
  26771. }
  26772. }
  26773. if iNdEx > l {
  26774. return io.ErrUnexpectedEOF
  26775. }
  26776. return nil
  26777. }
  26778. func (m *PodSandboxStatus) Unmarshal(dAtA []byte) error {
  26779. l := len(dAtA)
  26780. iNdEx := 0
  26781. for iNdEx < l {
  26782. preIndex := iNdEx
  26783. var wire uint64
  26784. for shift := uint(0); ; shift += 7 {
  26785. if shift >= 64 {
  26786. return ErrIntOverflowApi
  26787. }
  26788. if iNdEx >= l {
  26789. return io.ErrUnexpectedEOF
  26790. }
  26791. b := dAtA[iNdEx]
  26792. iNdEx++
  26793. wire |= uint64(b&0x7F) << shift
  26794. if b < 0x80 {
  26795. break
  26796. }
  26797. }
  26798. fieldNum := int32(wire >> 3)
  26799. wireType := int(wire & 0x7)
  26800. if wireType == 4 {
  26801. return fmt.Errorf("proto: PodSandboxStatus: wiretype end group for non-group")
  26802. }
  26803. if fieldNum <= 0 {
  26804. return fmt.Errorf("proto: PodSandboxStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  26805. }
  26806. switch fieldNum {
  26807. case 1:
  26808. if wireType != 2 {
  26809. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  26810. }
  26811. var stringLen uint64
  26812. for shift := uint(0); ; shift += 7 {
  26813. if shift >= 64 {
  26814. return ErrIntOverflowApi
  26815. }
  26816. if iNdEx >= l {
  26817. return io.ErrUnexpectedEOF
  26818. }
  26819. b := dAtA[iNdEx]
  26820. iNdEx++
  26821. stringLen |= uint64(b&0x7F) << shift
  26822. if b < 0x80 {
  26823. break
  26824. }
  26825. }
  26826. intStringLen := int(stringLen)
  26827. if intStringLen < 0 {
  26828. return ErrInvalidLengthApi
  26829. }
  26830. postIndex := iNdEx + intStringLen
  26831. if postIndex < 0 {
  26832. return ErrInvalidLengthApi
  26833. }
  26834. if postIndex > l {
  26835. return io.ErrUnexpectedEOF
  26836. }
  26837. m.Id = string(dAtA[iNdEx:postIndex])
  26838. iNdEx = postIndex
  26839. case 2:
  26840. if wireType != 2 {
  26841. return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
  26842. }
  26843. var msglen int
  26844. for shift := uint(0); ; shift += 7 {
  26845. if shift >= 64 {
  26846. return ErrIntOverflowApi
  26847. }
  26848. if iNdEx >= l {
  26849. return io.ErrUnexpectedEOF
  26850. }
  26851. b := dAtA[iNdEx]
  26852. iNdEx++
  26853. msglen |= int(b&0x7F) << shift
  26854. if b < 0x80 {
  26855. break
  26856. }
  26857. }
  26858. if msglen < 0 {
  26859. return ErrInvalidLengthApi
  26860. }
  26861. postIndex := iNdEx + msglen
  26862. if postIndex < 0 {
  26863. return ErrInvalidLengthApi
  26864. }
  26865. if postIndex > l {
  26866. return io.ErrUnexpectedEOF
  26867. }
  26868. if m.Metadata == nil {
  26869. m.Metadata = &PodSandboxMetadata{}
  26870. }
  26871. if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  26872. return err
  26873. }
  26874. iNdEx = postIndex
  26875. case 3:
  26876. if wireType != 0 {
  26877. return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  26878. }
  26879. m.State = 0
  26880. for shift := uint(0); ; shift += 7 {
  26881. if shift >= 64 {
  26882. return ErrIntOverflowApi
  26883. }
  26884. if iNdEx >= l {
  26885. return io.ErrUnexpectedEOF
  26886. }
  26887. b := dAtA[iNdEx]
  26888. iNdEx++
  26889. m.State |= PodSandboxState(b&0x7F) << shift
  26890. if b < 0x80 {
  26891. break
  26892. }
  26893. }
  26894. case 4:
  26895. if wireType != 0 {
  26896. return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
  26897. }
  26898. m.CreatedAt = 0
  26899. for shift := uint(0); ; shift += 7 {
  26900. if shift >= 64 {
  26901. return ErrIntOverflowApi
  26902. }
  26903. if iNdEx >= l {
  26904. return io.ErrUnexpectedEOF
  26905. }
  26906. b := dAtA[iNdEx]
  26907. iNdEx++
  26908. m.CreatedAt |= int64(b&0x7F) << shift
  26909. if b < 0x80 {
  26910. break
  26911. }
  26912. }
  26913. case 5:
  26914. if wireType != 2 {
  26915. return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType)
  26916. }
  26917. var msglen int
  26918. for shift := uint(0); ; shift += 7 {
  26919. if shift >= 64 {
  26920. return ErrIntOverflowApi
  26921. }
  26922. if iNdEx >= l {
  26923. return io.ErrUnexpectedEOF
  26924. }
  26925. b := dAtA[iNdEx]
  26926. iNdEx++
  26927. msglen |= int(b&0x7F) << shift
  26928. if b < 0x80 {
  26929. break
  26930. }
  26931. }
  26932. if msglen < 0 {
  26933. return ErrInvalidLengthApi
  26934. }
  26935. postIndex := iNdEx + msglen
  26936. if postIndex < 0 {
  26937. return ErrInvalidLengthApi
  26938. }
  26939. if postIndex > l {
  26940. return io.ErrUnexpectedEOF
  26941. }
  26942. if m.Network == nil {
  26943. m.Network = &PodSandboxNetworkStatus{}
  26944. }
  26945. if err := m.Network.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  26946. return err
  26947. }
  26948. iNdEx = postIndex
  26949. case 6:
  26950. if wireType != 2 {
  26951. return fmt.Errorf("proto: wrong wireType = %d for field Linux", wireType)
  26952. }
  26953. var msglen int
  26954. for shift := uint(0); ; shift += 7 {
  26955. if shift >= 64 {
  26956. return ErrIntOverflowApi
  26957. }
  26958. if iNdEx >= l {
  26959. return io.ErrUnexpectedEOF
  26960. }
  26961. b := dAtA[iNdEx]
  26962. iNdEx++
  26963. msglen |= int(b&0x7F) << shift
  26964. if b < 0x80 {
  26965. break
  26966. }
  26967. }
  26968. if msglen < 0 {
  26969. return ErrInvalidLengthApi
  26970. }
  26971. postIndex := iNdEx + msglen
  26972. if postIndex < 0 {
  26973. return ErrInvalidLengthApi
  26974. }
  26975. if postIndex > l {
  26976. return io.ErrUnexpectedEOF
  26977. }
  26978. if m.Linux == nil {
  26979. m.Linux = &LinuxPodSandboxStatus{}
  26980. }
  26981. if err := m.Linux.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  26982. return err
  26983. }
  26984. iNdEx = postIndex
  26985. case 7:
  26986. if wireType != 2 {
  26987. return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  26988. }
  26989. var msglen int
  26990. for shift := uint(0); ; shift += 7 {
  26991. if shift >= 64 {
  26992. return ErrIntOverflowApi
  26993. }
  26994. if iNdEx >= l {
  26995. return io.ErrUnexpectedEOF
  26996. }
  26997. b := dAtA[iNdEx]
  26998. iNdEx++
  26999. msglen |= int(b&0x7F) << shift
  27000. if b < 0x80 {
  27001. break
  27002. }
  27003. }
  27004. if msglen < 0 {
  27005. return ErrInvalidLengthApi
  27006. }
  27007. postIndex := iNdEx + msglen
  27008. if postIndex < 0 {
  27009. return ErrInvalidLengthApi
  27010. }
  27011. if postIndex > l {
  27012. return io.ErrUnexpectedEOF
  27013. }
  27014. if m.Labels == nil {
  27015. m.Labels = make(map[string]string)
  27016. }
  27017. var mapkey string
  27018. var mapvalue string
  27019. for iNdEx < postIndex {
  27020. entryPreIndex := iNdEx
  27021. var wire uint64
  27022. for shift := uint(0); ; shift += 7 {
  27023. if shift >= 64 {
  27024. return ErrIntOverflowApi
  27025. }
  27026. if iNdEx >= l {
  27027. return io.ErrUnexpectedEOF
  27028. }
  27029. b := dAtA[iNdEx]
  27030. iNdEx++
  27031. wire |= uint64(b&0x7F) << shift
  27032. if b < 0x80 {
  27033. break
  27034. }
  27035. }
  27036. fieldNum := int32(wire >> 3)
  27037. if fieldNum == 1 {
  27038. var stringLenmapkey uint64
  27039. for shift := uint(0); ; shift += 7 {
  27040. if shift >= 64 {
  27041. return ErrIntOverflowApi
  27042. }
  27043. if iNdEx >= l {
  27044. return io.ErrUnexpectedEOF
  27045. }
  27046. b := dAtA[iNdEx]
  27047. iNdEx++
  27048. stringLenmapkey |= uint64(b&0x7F) << shift
  27049. if b < 0x80 {
  27050. break
  27051. }
  27052. }
  27053. intStringLenmapkey := int(stringLenmapkey)
  27054. if intStringLenmapkey < 0 {
  27055. return ErrInvalidLengthApi
  27056. }
  27057. postStringIndexmapkey := iNdEx + intStringLenmapkey
  27058. if postStringIndexmapkey < 0 {
  27059. return ErrInvalidLengthApi
  27060. }
  27061. if postStringIndexmapkey > l {
  27062. return io.ErrUnexpectedEOF
  27063. }
  27064. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  27065. iNdEx = postStringIndexmapkey
  27066. } else if fieldNum == 2 {
  27067. var stringLenmapvalue uint64
  27068. for shift := uint(0); ; shift += 7 {
  27069. if shift >= 64 {
  27070. return ErrIntOverflowApi
  27071. }
  27072. if iNdEx >= l {
  27073. return io.ErrUnexpectedEOF
  27074. }
  27075. b := dAtA[iNdEx]
  27076. iNdEx++
  27077. stringLenmapvalue |= uint64(b&0x7F) << shift
  27078. if b < 0x80 {
  27079. break
  27080. }
  27081. }
  27082. intStringLenmapvalue := int(stringLenmapvalue)
  27083. if intStringLenmapvalue < 0 {
  27084. return ErrInvalidLengthApi
  27085. }
  27086. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  27087. if postStringIndexmapvalue < 0 {
  27088. return ErrInvalidLengthApi
  27089. }
  27090. if postStringIndexmapvalue > l {
  27091. return io.ErrUnexpectedEOF
  27092. }
  27093. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  27094. iNdEx = postStringIndexmapvalue
  27095. } else {
  27096. iNdEx = entryPreIndex
  27097. skippy, err := skipApi(dAtA[iNdEx:])
  27098. if err != nil {
  27099. return err
  27100. }
  27101. if (skippy < 0) || (iNdEx+skippy) < 0 {
  27102. return ErrInvalidLengthApi
  27103. }
  27104. if (iNdEx + skippy) > postIndex {
  27105. return io.ErrUnexpectedEOF
  27106. }
  27107. iNdEx += skippy
  27108. }
  27109. }
  27110. m.Labels[mapkey] = mapvalue
  27111. iNdEx = postIndex
  27112. case 8:
  27113. if wireType != 2 {
  27114. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  27115. }
  27116. var msglen int
  27117. for shift := uint(0); ; shift += 7 {
  27118. if shift >= 64 {
  27119. return ErrIntOverflowApi
  27120. }
  27121. if iNdEx >= l {
  27122. return io.ErrUnexpectedEOF
  27123. }
  27124. b := dAtA[iNdEx]
  27125. iNdEx++
  27126. msglen |= int(b&0x7F) << shift
  27127. if b < 0x80 {
  27128. break
  27129. }
  27130. }
  27131. if msglen < 0 {
  27132. return ErrInvalidLengthApi
  27133. }
  27134. postIndex := iNdEx + msglen
  27135. if postIndex < 0 {
  27136. return ErrInvalidLengthApi
  27137. }
  27138. if postIndex > l {
  27139. return io.ErrUnexpectedEOF
  27140. }
  27141. if m.Annotations == nil {
  27142. m.Annotations = make(map[string]string)
  27143. }
  27144. var mapkey string
  27145. var mapvalue string
  27146. for iNdEx < postIndex {
  27147. entryPreIndex := iNdEx
  27148. var wire uint64
  27149. for shift := uint(0); ; shift += 7 {
  27150. if shift >= 64 {
  27151. return ErrIntOverflowApi
  27152. }
  27153. if iNdEx >= l {
  27154. return io.ErrUnexpectedEOF
  27155. }
  27156. b := dAtA[iNdEx]
  27157. iNdEx++
  27158. wire |= uint64(b&0x7F) << shift
  27159. if b < 0x80 {
  27160. break
  27161. }
  27162. }
  27163. fieldNum := int32(wire >> 3)
  27164. if fieldNum == 1 {
  27165. var stringLenmapkey uint64
  27166. for shift := uint(0); ; shift += 7 {
  27167. if shift >= 64 {
  27168. return ErrIntOverflowApi
  27169. }
  27170. if iNdEx >= l {
  27171. return io.ErrUnexpectedEOF
  27172. }
  27173. b := dAtA[iNdEx]
  27174. iNdEx++
  27175. stringLenmapkey |= uint64(b&0x7F) << shift
  27176. if b < 0x80 {
  27177. break
  27178. }
  27179. }
  27180. intStringLenmapkey := int(stringLenmapkey)
  27181. if intStringLenmapkey < 0 {
  27182. return ErrInvalidLengthApi
  27183. }
  27184. postStringIndexmapkey := iNdEx + intStringLenmapkey
  27185. if postStringIndexmapkey < 0 {
  27186. return ErrInvalidLengthApi
  27187. }
  27188. if postStringIndexmapkey > l {
  27189. return io.ErrUnexpectedEOF
  27190. }
  27191. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  27192. iNdEx = postStringIndexmapkey
  27193. } else if fieldNum == 2 {
  27194. var stringLenmapvalue uint64
  27195. for shift := uint(0); ; shift += 7 {
  27196. if shift >= 64 {
  27197. return ErrIntOverflowApi
  27198. }
  27199. if iNdEx >= l {
  27200. return io.ErrUnexpectedEOF
  27201. }
  27202. b := dAtA[iNdEx]
  27203. iNdEx++
  27204. stringLenmapvalue |= uint64(b&0x7F) << shift
  27205. if b < 0x80 {
  27206. break
  27207. }
  27208. }
  27209. intStringLenmapvalue := int(stringLenmapvalue)
  27210. if intStringLenmapvalue < 0 {
  27211. return ErrInvalidLengthApi
  27212. }
  27213. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  27214. if postStringIndexmapvalue < 0 {
  27215. return ErrInvalidLengthApi
  27216. }
  27217. if postStringIndexmapvalue > l {
  27218. return io.ErrUnexpectedEOF
  27219. }
  27220. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  27221. iNdEx = postStringIndexmapvalue
  27222. } else {
  27223. iNdEx = entryPreIndex
  27224. skippy, err := skipApi(dAtA[iNdEx:])
  27225. if err != nil {
  27226. return err
  27227. }
  27228. if (skippy < 0) || (iNdEx+skippy) < 0 {
  27229. return ErrInvalidLengthApi
  27230. }
  27231. if (iNdEx + skippy) > postIndex {
  27232. return io.ErrUnexpectedEOF
  27233. }
  27234. iNdEx += skippy
  27235. }
  27236. }
  27237. m.Annotations[mapkey] = mapvalue
  27238. iNdEx = postIndex
  27239. case 9:
  27240. if wireType != 2 {
  27241. return fmt.Errorf("proto: wrong wireType = %d for field RuntimeHandler", wireType)
  27242. }
  27243. var stringLen uint64
  27244. for shift := uint(0); ; shift += 7 {
  27245. if shift >= 64 {
  27246. return ErrIntOverflowApi
  27247. }
  27248. if iNdEx >= l {
  27249. return io.ErrUnexpectedEOF
  27250. }
  27251. b := dAtA[iNdEx]
  27252. iNdEx++
  27253. stringLen |= uint64(b&0x7F) << shift
  27254. if b < 0x80 {
  27255. break
  27256. }
  27257. }
  27258. intStringLen := int(stringLen)
  27259. if intStringLen < 0 {
  27260. return ErrInvalidLengthApi
  27261. }
  27262. postIndex := iNdEx + intStringLen
  27263. if postIndex < 0 {
  27264. return ErrInvalidLengthApi
  27265. }
  27266. if postIndex > l {
  27267. return io.ErrUnexpectedEOF
  27268. }
  27269. m.RuntimeHandler = string(dAtA[iNdEx:postIndex])
  27270. iNdEx = postIndex
  27271. default:
  27272. iNdEx = preIndex
  27273. skippy, err := skipApi(dAtA[iNdEx:])
  27274. if err != nil {
  27275. return err
  27276. }
  27277. if (skippy < 0) || (iNdEx+skippy) < 0 {
  27278. return ErrInvalidLengthApi
  27279. }
  27280. if (iNdEx + skippy) > l {
  27281. return io.ErrUnexpectedEOF
  27282. }
  27283. iNdEx += skippy
  27284. }
  27285. }
  27286. if iNdEx > l {
  27287. return io.ErrUnexpectedEOF
  27288. }
  27289. return nil
  27290. }
  27291. func (m *PodSandboxStatusResponse) Unmarshal(dAtA []byte) error {
  27292. l := len(dAtA)
  27293. iNdEx := 0
  27294. for iNdEx < l {
  27295. preIndex := iNdEx
  27296. var wire uint64
  27297. for shift := uint(0); ; shift += 7 {
  27298. if shift >= 64 {
  27299. return ErrIntOverflowApi
  27300. }
  27301. if iNdEx >= l {
  27302. return io.ErrUnexpectedEOF
  27303. }
  27304. b := dAtA[iNdEx]
  27305. iNdEx++
  27306. wire |= uint64(b&0x7F) << shift
  27307. if b < 0x80 {
  27308. break
  27309. }
  27310. }
  27311. fieldNum := int32(wire >> 3)
  27312. wireType := int(wire & 0x7)
  27313. if wireType == 4 {
  27314. return fmt.Errorf("proto: PodSandboxStatusResponse: wiretype end group for non-group")
  27315. }
  27316. if fieldNum <= 0 {
  27317. return fmt.Errorf("proto: PodSandboxStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  27318. }
  27319. switch fieldNum {
  27320. case 1:
  27321. if wireType != 2 {
  27322. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  27323. }
  27324. var msglen int
  27325. for shift := uint(0); ; shift += 7 {
  27326. if shift >= 64 {
  27327. return ErrIntOverflowApi
  27328. }
  27329. if iNdEx >= l {
  27330. return io.ErrUnexpectedEOF
  27331. }
  27332. b := dAtA[iNdEx]
  27333. iNdEx++
  27334. msglen |= int(b&0x7F) << shift
  27335. if b < 0x80 {
  27336. break
  27337. }
  27338. }
  27339. if msglen < 0 {
  27340. return ErrInvalidLengthApi
  27341. }
  27342. postIndex := iNdEx + msglen
  27343. if postIndex < 0 {
  27344. return ErrInvalidLengthApi
  27345. }
  27346. if postIndex > l {
  27347. return io.ErrUnexpectedEOF
  27348. }
  27349. if m.Status == nil {
  27350. m.Status = &PodSandboxStatus{}
  27351. }
  27352. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  27353. return err
  27354. }
  27355. iNdEx = postIndex
  27356. case 2:
  27357. if wireType != 2 {
  27358. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  27359. }
  27360. var msglen int
  27361. for shift := uint(0); ; shift += 7 {
  27362. if shift >= 64 {
  27363. return ErrIntOverflowApi
  27364. }
  27365. if iNdEx >= l {
  27366. return io.ErrUnexpectedEOF
  27367. }
  27368. b := dAtA[iNdEx]
  27369. iNdEx++
  27370. msglen |= int(b&0x7F) << shift
  27371. if b < 0x80 {
  27372. break
  27373. }
  27374. }
  27375. if msglen < 0 {
  27376. return ErrInvalidLengthApi
  27377. }
  27378. postIndex := iNdEx + msglen
  27379. if postIndex < 0 {
  27380. return ErrInvalidLengthApi
  27381. }
  27382. if postIndex > l {
  27383. return io.ErrUnexpectedEOF
  27384. }
  27385. if m.Info == nil {
  27386. m.Info = make(map[string]string)
  27387. }
  27388. var mapkey string
  27389. var mapvalue string
  27390. for iNdEx < postIndex {
  27391. entryPreIndex := iNdEx
  27392. var wire uint64
  27393. for shift := uint(0); ; shift += 7 {
  27394. if shift >= 64 {
  27395. return ErrIntOverflowApi
  27396. }
  27397. if iNdEx >= l {
  27398. return io.ErrUnexpectedEOF
  27399. }
  27400. b := dAtA[iNdEx]
  27401. iNdEx++
  27402. wire |= uint64(b&0x7F) << shift
  27403. if b < 0x80 {
  27404. break
  27405. }
  27406. }
  27407. fieldNum := int32(wire >> 3)
  27408. if fieldNum == 1 {
  27409. var stringLenmapkey uint64
  27410. for shift := uint(0); ; shift += 7 {
  27411. if shift >= 64 {
  27412. return ErrIntOverflowApi
  27413. }
  27414. if iNdEx >= l {
  27415. return io.ErrUnexpectedEOF
  27416. }
  27417. b := dAtA[iNdEx]
  27418. iNdEx++
  27419. stringLenmapkey |= uint64(b&0x7F) << shift
  27420. if b < 0x80 {
  27421. break
  27422. }
  27423. }
  27424. intStringLenmapkey := int(stringLenmapkey)
  27425. if intStringLenmapkey < 0 {
  27426. return ErrInvalidLengthApi
  27427. }
  27428. postStringIndexmapkey := iNdEx + intStringLenmapkey
  27429. if postStringIndexmapkey < 0 {
  27430. return ErrInvalidLengthApi
  27431. }
  27432. if postStringIndexmapkey > l {
  27433. return io.ErrUnexpectedEOF
  27434. }
  27435. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  27436. iNdEx = postStringIndexmapkey
  27437. } else if fieldNum == 2 {
  27438. var stringLenmapvalue uint64
  27439. for shift := uint(0); ; shift += 7 {
  27440. if shift >= 64 {
  27441. return ErrIntOverflowApi
  27442. }
  27443. if iNdEx >= l {
  27444. return io.ErrUnexpectedEOF
  27445. }
  27446. b := dAtA[iNdEx]
  27447. iNdEx++
  27448. stringLenmapvalue |= uint64(b&0x7F) << shift
  27449. if b < 0x80 {
  27450. break
  27451. }
  27452. }
  27453. intStringLenmapvalue := int(stringLenmapvalue)
  27454. if intStringLenmapvalue < 0 {
  27455. return ErrInvalidLengthApi
  27456. }
  27457. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  27458. if postStringIndexmapvalue < 0 {
  27459. return ErrInvalidLengthApi
  27460. }
  27461. if postStringIndexmapvalue > l {
  27462. return io.ErrUnexpectedEOF
  27463. }
  27464. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  27465. iNdEx = postStringIndexmapvalue
  27466. } else {
  27467. iNdEx = entryPreIndex
  27468. skippy, err := skipApi(dAtA[iNdEx:])
  27469. if err != nil {
  27470. return err
  27471. }
  27472. if (skippy < 0) || (iNdEx+skippy) < 0 {
  27473. return ErrInvalidLengthApi
  27474. }
  27475. if (iNdEx + skippy) > postIndex {
  27476. return io.ErrUnexpectedEOF
  27477. }
  27478. iNdEx += skippy
  27479. }
  27480. }
  27481. m.Info[mapkey] = mapvalue
  27482. iNdEx = postIndex
  27483. case 3:
  27484. if wireType != 2 {
  27485. return fmt.Errorf("proto: wrong wireType = %d for field ContainersStatuses", wireType)
  27486. }
  27487. var msglen int
  27488. for shift := uint(0); ; shift += 7 {
  27489. if shift >= 64 {
  27490. return ErrIntOverflowApi
  27491. }
  27492. if iNdEx >= l {
  27493. return io.ErrUnexpectedEOF
  27494. }
  27495. b := dAtA[iNdEx]
  27496. iNdEx++
  27497. msglen |= int(b&0x7F) << shift
  27498. if b < 0x80 {
  27499. break
  27500. }
  27501. }
  27502. if msglen < 0 {
  27503. return ErrInvalidLengthApi
  27504. }
  27505. postIndex := iNdEx + msglen
  27506. if postIndex < 0 {
  27507. return ErrInvalidLengthApi
  27508. }
  27509. if postIndex > l {
  27510. return io.ErrUnexpectedEOF
  27511. }
  27512. m.ContainersStatuses = append(m.ContainersStatuses, &ContainerStatus{})
  27513. if err := m.ContainersStatuses[len(m.ContainersStatuses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  27514. return err
  27515. }
  27516. iNdEx = postIndex
  27517. case 4:
  27518. if wireType != 0 {
  27519. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  27520. }
  27521. m.Timestamp = 0
  27522. for shift := uint(0); ; shift += 7 {
  27523. if shift >= 64 {
  27524. return ErrIntOverflowApi
  27525. }
  27526. if iNdEx >= l {
  27527. return io.ErrUnexpectedEOF
  27528. }
  27529. b := dAtA[iNdEx]
  27530. iNdEx++
  27531. m.Timestamp |= int64(b&0x7F) << shift
  27532. if b < 0x80 {
  27533. break
  27534. }
  27535. }
  27536. default:
  27537. iNdEx = preIndex
  27538. skippy, err := skipApi(dAtA[iNdEx:])
  27539. if err != nil {
  27540. return err
  27541. }
  27542. if (skippy < 0) || (iNdEx+skippy) < 0 {
  27543. return ErrInvalidLengthApi
  27544. }
  27545. if (iNdEx + skippy) > l {
  27546. return io.ErrUnexpectedEOF
  27547. }
  27548. iNdEx += skippy
  27549. }
  27550. }
  27551. if iNdEx > l {
  27552. return io.ErrUnexpectedEOF
  27553. }
  27554. return nil
  27555. }
  27556. func (m *PodSandboxStateValue) Unmarshal(dAtA []byte) error {
  27557. l := len(dAtA)
  27558. iNdEx := 0
  27559. for iNdEx < l {
  27560. preIndex := iNdEx
  27561. var wire uint64
  27562. for shift := uint(0); ; shift += 7 {
  27563. if shift >= 64 {
  27564. return ErrIntOverflowApi
  27565. }
  27566. if iNdEx >= l {
  27567. return io.ErrUnexpectedEOF
  27568. }
  27569. b := dAtA[iNdEx]
  27570. iNdEx++
  27571. wire |= uint64(b&0x7F) << shift
  27572. if b < 0x80 {
  27573. break
  27574. }
  27575. }
  27576. fieldNum := int32(wire >> 3)
  27577. wireType := int(wire & 0x7)
  27578. if wireType == 4 {
  27579. return fmt.Errorf("proto: PodSandboxStateValue: wiretype end group for non-group")
  27580. }
  27581. if fieldNum <= 0 {
  27582. return fmt.Errorf("proto: PodSandboxStateValue: illegal tag %d (wire type %d)", fieldNum, wire)
  27583. }
  27584. switch fieldNum {
  27585. case 1:
  27586. if wireType != 0 {
  27587. return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  27588. }
  27589. m.State = 0
  27590. for shift := uint(0); ; shift += 7 {
  27591. if shift >= 64 {
  27592. return ErrIntOverflowApi
  27593. }
  27594. if iNdEx >= l {
  27595. return io.ErrUnexpectedEOF
  27596. }
  27597. b := dAtA[iNdEx]
  27598. iNdEx++
  27599. m.State |= PodSandboxState(b&0x7F) << shift
  27600. if b < 0x80 {
  27601. break
  27602. }
  27603. }
  27604. default:
  27605. iNdEx = preIndex
  27606. skippy, err := skipApi(dAtA[iNdEx:])
  27607. if err != nil {
  27608. return err
  27609. }
  27610. if (skippy < 0) || (iNdEx+skippy) < 0 {
  27611. return ErrInvalidLengthApi
  27612. }
  27613. if (iNdEx + skippy) > l {
  27614. return io.ErrUnexpectedEOF
  27615. }
  27616. iNdEx += skippy
  27617. }
  27618. }
  27619. if iNdEx > l {
  27620. return io.ErrUnexpectedEOF
  27621. }
  27622. return nil
  27623. }
  27624. func (m *PodSandboxFilter) Unmarshal(dAtA []byte) error {
  27625. l := len(dAtA)
  27626. iNdEx := 0
  27627. for iNdEx < l {
  27628. preIndex := iNdEx
  27629. var wire uint64
  27630. for shift := uint(0); ; shift += 7 {
  27631. if shift >= 64 {
  27632. return ErrIntOverflowApi
  27633. }
  27634. if iNdEx >= l {
  27635. return io.ErrUnexpectedEOF
  27636. }
  27637. b := dAtA[iNdEx]
  27638. iNdEx++
  27639. wire |= uint64(b&0x7F) << shift
  27640. if b < 0x80 {
  27641. break
  27642. }
  27643. }
  27644. fieldNum := int32(wire >> 3)
  27645. wireType := int(wire & 0x7)
  27646. if wireType == 4 {
  27647. return fmt.Errorf("proto: PodSandboxFilter: wiretype end group for non-group")
  27648. }
  27649. if fieldNum <= 0 {
  27650. return fmt.Errorf("proto: PodSandboxFilter: illegal tag %d (wire type %d)", fieldNum, wire)
  27651. }
  27652. switch fieldNum {
  27653. case 1:
  27654. if wireType != 2 {
  27655. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  27656. }
  27657. var stringLen uint64
  27658. for shift := uint(0); ; shift += 7 {
  27659. if shift >= 64 {
  27660. return ErrIntOverflowApi
  27661. }
  27662. if iNdEx >= l {
  27663. return io.ErrUnexpectedEOF
  27664. }
  27665. b := dAtA[iNdEx]
  27666. iNdEx++
  27667. stringLen |= uint64(b&0x7F) << shift
  27668. if b < 0x80 {
  27669. break
  27670. }
  27671. }
  27672. intStringLen := int(stringLen)
  27673. if intStringLen < 0 {
  27674. return ErrInvalidLengthApi
  27675. }
  27676. postIndex := iNdEx + intStringLen
  27677. if postIndex < 0 {
  27678. return ErrInvalidLengthApi
  27679. }
  27680. if postIndex > l {
  27681. return io.ErrUnexpectedEOF
  27682. }
  27683. m.Id = string(dAtA[iNdEx:postIndex])
  27684. iNdEx = postIndex
  27685. case 2:
  27686. if wireType != 2 {
  27687. return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  27688. }
  27689. var msglen int
  27690. for shift := uint(0); ; shift += 7 {
  27691. if shift >= 64 {
  27692. return ErrIntOverflowApi
  27693. }
  27694. if iNdEx >= l {
  27695. return io.ErrUnexpectedEOF
  27696. }
  27697. b := dAtA[iNdEx]
  27698. iNdEx++
  27699. msglen |= int(b&0x7F) << shift
  27700. if b < 0x80 {
  27701. break
  27702. }
  27703. }
  27704. if msglen < 0 {
  27705. return ErrInvalidLengthApi
  27706. }
  27707. postIndex := iNdEx + msglen
  27708. if postIndex < 0 {
  27709. return ErrInvalidLengthApi
  27710. }
  27711. if postIndex > l {
  27712. return io.ErrUnexpectedEOF
  27713. }
  27714. if m.State == nil {
  27715. m.State = &PodSandboxStateValue{}
  27716. }
  27717. if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  27718. return err
  27719. }
  27720. iNdEx = postIndex
  27721. case 3:
  27722. if wireType != 2 {
  27723. return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType)
  27724. }
  27725. var msglen int
  27726. for shift := uint(0); ; shift += 7 {
  27727. if shift >= 64 {
  27728. return ErrIntOverflowApi
  27729. }
  27730. if iNdEx >= l {
  27731. return io.ErrUnexpectedEOF
  27732. }
  27733. b := dAtA[iNdEx]
  27734. iNdEx++
  27735. msglen |= int(b&0x7F) << shift
  27736. if b < 0x80 {
  27737. break
  27738. }
  27739. }
  27740. if msglen < 0 {
  27741. return ErrInvalidLengthApi
  27742. }
  27743. postIndex := iNdEx + msglen
  27744. if postIndex < 0 {
  27745. return ErrInvalidLengthApi
  27746. }
  27747. if postIndex > l {
  27748. return io.ErrUnexpectedEOF
  27749. }
  27750. if m.LabelSelector == nil {
  27751. m.LabelSelector = make(map[string]string)
  27752. }
  27753. var mapkey string
  27754. var mapvalue string
  27755. for iNdEx < postIndex {
  27756. entryPreIndex := iNdEx
  27757. var wire uint64
  27758. for shift := uint(0); ; shift += 7 {
  27759. if shift >= 64 {
  27760. return ErrIntOverflowApi
  27761. }
  27762. if iNdEx >= l {
  27763. return io.ErrUnexpectedEOF
  27764. }
  27765. b := dAtA[iNdEx]
  27766. iNdEx++
  27767. wire |= uint64(b&0x7F) << shift
  27768. if b < 0x80 {
  27769. break
  27770. }
  27771. }
  27772. fieldNum := int32(wire >> 3)
  27773. if fieldNum == 1 {
  27774. var stringLenmapkey uint64
  27775. for shift := uint(0); ; shift += 7 {
  27776. if shift >= 64 {
  27777. return ErrIntOverflowApi
  27778. }
  27779. if iNdEx >= l {
  27780. return io.ErrUnexpectedEOF
  27781. }
  27782. b := dAtA[iNdEx]
  27783. iNdEx++
  27784. stringLenmapkey |= uint64(b&0x7F) << shift
  27785. if b < 0x80 {
  27786. break
  27787. }
  27788. }
  27789. intStringLenmapkey := int(stringLenmapkey)
  27790. if intStringLenmapkey < 0 {
  27791. return ErrInvalidLengthApi
  27792. }
  27793. postStringIndexmapkey := iNdEx + intStringLenmapkey
  27794. if postStringIndexmapkey < 0 {
  27795. return ErrInvalidLengthApi
  27796. }
  27797. if postStringIndexmapkey > l {
  27798. return io.ErrUnexpectedEOF
  27799. }
  27800. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  27801. iNdEx = postStringIndexmapkey
  27802. } else if fieldNum == 2 {
  27803. var stringLenmapvalue uint64
  27804. for shift := uint(0); ; shift += 7 {
  27805. if shift >= 64 {
  27806. return ErrIntOverflowApi
  27807. }
  27808. if iNdEx >= l {
  27809. return io.ErrUnexpectedEOF
  27810. }
  27811. b := dAtA[iNdEx]
  27812. iNdEx++
  27813. stringLenmapvalue |= uint64(b&0x7F) << shift
  27814. if b < 0x80 {
  27815. break
  27816. }
  27817. }
  27818. intStringLenmapvalue := int(stringLenmapvalue)
  27819. if intStringLenmapvalue < 0 {
  27820. return ErrInvalidLengthApi
  27821. }
  27822. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  27823. if postStringIndexmapvalue < 0 {
  27824. return ErrInvalidLengthApi
  27825. }
  27826. if postStringIndexmapvalue > l {
  27827. return io.ErrUnexpectedEOF
  27828. }
  27829. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  27830. iNdEx = postStringIndexmapvalue
  27831. } else {
  27832. iNdEx = entryPreIndex
  27833. skippy, err := skipApi(dAtA[iNdEx:])
  27834. if err != nil {
  27835. return err
  27836. }
  27837. if (skippy < 0) || (iNdEx+skippy) < 0 {
  27838. return ErrInvalidLengthApi
  27839. }
  27840. if (iNdEx + skippy) > postIndex {
  27841. return io.ErrUnexpectedEOF
  27842. }
  27843. iNdEx += skippy
  27844. }
  27845. }
  27846. m.LabelSelector[mapkey] = mapvalue
  27847. iNdEx = postIndex
  27848. default:
  27849. iNdEx = preIndex
  27850. skippy, err := skipApi(dAtA[iNdEx:])
  27851. if err != nil {
  27852. return err
  27853. }
  27854. if (skippy < 0) || (iNdEx+skippy) < 0 {
  27855. return ErrInvalidLengthApi
  27856. }
  27857. if (iNdEx + skippy) > l {
  27858. return io.ErrUnexpectedEOF
  27859. }
  27860. iNdEx += skippy
  27861. }
  27862. }
  27863. if iNdEx > l {
  27864. return io.ErrUnexpectedEOF
  27865. }
  27866. return nil
  27867. }
  27868. func (m *ListPodSandboxRequest) Unmarshal(dAtA []byte) error {
  27869. l := len(dAtA)
  27870. iNdEx := 0
  27871. for iNdEx < l {
  27872. preIndex := iNdEx
  27873. var wire uint64
  27874. for shift := uint(0); ; shift += 7 {
  27875. if shift >= 64 {
  27876. return ErrIntOverflowApi
  27877. }
  27878. if iNdEx >= l {
  27879. return io.ErrUnexpectedEOF
  27880. }
  27881. b := dAtA[iNdEx]
  27882. iNdEx++
  27883. wire |= uint64(b&0x7F) << shift
  27884. if b < 0x80 {
  27885. break
  27886. }
  27887. }
  27888. fieldNum := int32(wire >> 3)
  27889. wireType := int(wire & 0x7)
  27890. if wireType == 4 {
  27891. return fmt.Errorf("proto: ListPodSandboxRequest: wiretype end group for non-group")
  27892. }
  27893. if fieldNum <= 0 {
  27894. return fmt.Errorf("proto: ListPodSandboxRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  27895. }
  27896. switch fieldNum {
  27897. case 1:
  27898. if wireType != 2 {
  27899. return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType)
  27900. }
  27901. var msglen int
  27902. for shift := uint(0); ; shift += 7 {
  27903. if shift >= 64 {
  27904. return ErrIntOverflowApi
  27905. }
  27906. if iNdEx >= l {
  27907. return io.ErrUnexpectedEOF
  27908. }
  27909. b := dAtA[iNdEx]
  27910. iNdEx++
  27911. msglen |= int(b&0x7F) << shift
  27912. if b < 0x80 {
  27913. break
  27914. }
  27915. }
  27916. if msglen < 0 {
  27917. return ErrInvalidLengthApi
  27918. }
  27919. postIndex := iNdEx + msglen
  27920. if postIndex < 0 {
  27921. return ErrInvalidLengthApi
  27922. }
  27923. if postIndex > l {
  27924. return io.ErrUnexpectedEOF
  27925. }
  27926. if m.Filter == nil {
  27927. m.Filter = &PodSandboxFilter{}
  27928. }
  27929. if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  27930. return err
  27931. }
  27932. iNdEx = postIndex
  27933. default:
  27934. iNdEx = preIndex
  27935. skippy, err := skipApi(dAtA[iNdEx:])
  27936. if err != nil {
  27937. return err
  27938. }
  27939. if (skippy < 0) || (iNdEx+skippy) < 0 {
  27940. return ErrInvalidLengthApi
  27941. }
  27942. if (iNdEx + skippy) > l {
  27943. return io.ErrUnexpectedEOF
  27944. }
  27945. iNdEx += skippy
  27946. }
  27947. }
  27948. if iNdEx > l {
  27949. return io.ErrUnexpectedEOF
  27950. }
  27951. return nil
  27952. }
  27953. func (m *PodSandbox) Unmarshal(dAtA []byte) error {
  27954. l := len(dAtA)
  27955. iNdEx := 0
  27956. for iNdEx < l {
  27957. preIndex := iNdEx
  27958. var wire uint64
  27959. for shift := uint(0); ; shift += 7 {
  27960. if shift >= 64 {
  27961. return ErrIntOverflowApi
  27962. }
  27963. if iNdEx >= l {
  27964. return io.ErrUnexpectedEOF
  27965. }
  27966. b := dAtA[iNdEx]
  27967. iNdEx++
  27968. wire |= uint64(b&0x7F) << shift
  27969. if b < 0x80 {
  27970. break
  27971. }
  27972. }
  27973. fieldNum := int32(wire >> 3)
  27974. wireType := int(wire & 0x7)
  27975. if wireType == 4 {
  27976. return fmt.Errorf("proto: PodSandbox: wiretype end group for non-group")
  27977. }
  27978. if fieldNum <= 0 {
  27979. return fmt.Errorf("proto: PodSandbox: illegal tag %d (wire type %d)", fieldNum, wire)
  27980. }
  27981. switch fieldNum {
  27982. case 1:
  27983. if wireType != 2 {
  27984. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  27985. }
  27986. var stringLen uint64
  27987. for shift := uint(0); ; shift += 7 {
  27988. if shift >= 64 {
  27989. return ErrIntOverflowApi
  27990. }
  27991. if iNdEx >= l {
  27992. return io.ErrUnexpectedEOF
  27993. }
  27994. b := dAtA[iNdEx]
  27995. iNdEx++
  27996. stringLen |= uint64(b&0x7F) << shift
  27997. if b < 0x80 {
  27998. break
  27999. }
  28000. }
  28001. intStringLen := int(stringLen)
  28002. if intStringLen < 0 {
  28003. return ErrInvalidLengthApi
  28004. }
  28005. postIndex := iNdEx + intStringLen
  28006. if postIndex < 0 {
  28007. return ErrInvalidLengthApi
  28008. }
  28009. if postIndex > l {
  28010. return io.ErrUnexpectedEOF
  28011. }
  28012. m.Id = string(dAtA[iNdEx:postIndex])
  28013. iNdEx = postIndex
  28014. case 2:
  28015. if wireType != 2 {
  28016. return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
  28017. }
  28018. var msglen int
  28019. for shift := uint(0); ; shift += 7 {
  28020. if shift >= 64 {
  28021. return ErrIntOverflowApi
  28022. }
  28023. if iNdEx >= l {
  28024. return io.ErrUnexpectedEOF
  28025. }
  28026. b := dAtA[iNdEx]
  28027. iNdEx++
  28028. msglen |= int(b&0x7F) << shift
  28029. if b < 0x80 {
  28030. break
  28031. }
  28032. }
  28033. if msglen < 0 {
  28034. return ErrInvalidLengthApi
  28035. }
  28036. postIndex := iNdEx + msglen
  28037. if postIndex < 0 {
  28038. return ErrInvalidLengthApi
  28039. }
  28040. if postIndex > l {
  28041. return io.ErrUnexpectedEOF
  28042. }
  28043. if m.Metadata == nil {
  28044. m.Metadata = &PodSandboxMetadata{}
  28045. }
  28046. if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  28047. return err
  28048. }
  28049. iNdEx = postIndex
  28050. case 3:
  28051. if wireType != 0 {
  28052. return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  28053. }
  28054. m.State = 0
  28055. for shift := uint(0); ; shift += 7 {
  28056. if shift >= 64 {
  28057. return ErrIntOverflowApi
  28058. }
  28059. if iNdEx >= l {
  28060. return io.ErrUnexpectedEOF
  28061. }
  28062. b := dAtA[iNdEx]
  28063. iNdEx++
  28064. m.State |= PodSandboxState(b&0x7F) << shift
  28065. if b < 0x80 {
  28066. break
  28067. }
  28068. }
  28069. case 4:
  28070. if wireType != 0 {
  28071. return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
  28072. }
  28073. m.CreatedAt = 0
  28074. for shift := uint(0); ; shift += 7 {
  28075. if shift >= 64 {
  28076. return ErrIntOverflowApi
  28077. }
  28078. if iNdEx >= l {
  28079. return io.ErrUnexpectedEOF
  28080. }
  28081. b := dAtA[iNdEx]
  28082. iNdEx++
  28083. m.CreatedAt |= int64(b&0x7F) << shift
  28084. if b < 0x80 {
  28085. break
  28086. }
  28087. }
  28088. case 5:
  28089. if wireType != 2 {
  28090. return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  28091. }
  28092. var msglen int
  28093. for shift := uint(0); ; shift += 7 {
  28094. if shift >= 64 {
  28095. return ErrIntOverflowApi
  28096. }
  28097. if iNdEx >= l {
  28098. return io.ErrUnexpectedEOF
  28099. }
  28100. b := dAtA[iNdEx]
  28101. iNdEx++
  28102. msglen |= int(b&0x7F) << shift
  28103. if b < 0x80 {
  28104. break
  28105. }
  28106. }
  28107. if msglen < 0 {
  28108. return ErrInvalidLengthApi
  28109. }
  28110. postIndex := iNdEx + msglen
  28111. if postIndex < 0 {
  28112. return ErrInvalidLengthApi
  28113. }
  28114. if postIndex > l {
  28115. return io.ErrUnexpectedEOF
  28116. }
  28117. if m.Labels == nil {
  28118. m.Labels = make(map[string]string)
  28119. }
  28120. var mapkey string
  28121. var mapvalue string
  28122. for iNdEx < postIndex {
  28123. entryPreIndex := iNdEx
  28124. var wire uint64
  28125. for shift := uint(0); ; shift += 7 {
  28126. if shift >= 64 {
  28127. return ErrIntOverflowApi
  28128. }
  28129. if iNdEx >= l {
  28130. return io.ErrUnexpectedEOF
  28131. }
  28132. b := dAtA[iNdEx]
  28133. iNdEx++
  28134. wire |= uint64(b&0x7F) << shift
  28135. if b < 0x80 {
  28136. break
  28137. }
  28138. }
  28139. fieldNum := int32(wire >> 3)
  28140. if fieldNum == 1 {
  28141. var stringLenmapkey uint64
  28142. for shift := uint(0); ; shift += 7 {
  28143. if shift >= 64 {
  28144. return ErrIntOverflowApi
  28145. }
  28146. if iNdEx >= l {
  28147. return io.ErrUnexpectedEOF
  28148. }
  28149. b := dAtA[iNdEx]
  28150. iNdEx++
  28151. stringLenmapkey |= uint64(b&0x7F) << shift
  28152. if b < 0x80 {
  28153. break
  28154. }
  28155. }
  28156. intStringLenmapkey := int(stringLenmapkey)
  28157. if intStringLenmapkey < 0 {
  28158. return ErrInvalidLengthApi
  28159. }
  28160. postStringIndexmapkey := iNdEx + intStringLenmapkey
  28161. if postStringIndexmapkey < 0 {
  28162. return ErrInvalidLengthApi
  28163. }
  28164. if postStringIndexmapkey > l {
  28165. return io.ErrUnexpectedEOF
  28166. }
  28167. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  28168. iNdEx = postStringIndexmapkey
  28169. } else if fieldNum == 2 {
  28170. var stringLenmapvalue uint64
  28171. for shift := uint(0); ; shift += 7 {
  28172. if shift >= 64 {
  28173. return ErrIntOverflowApi
  28174. }
  28175. if iNdEx >= l {
  28176. return io.ErrUnexpectedEOF
  28177. }
  28178. b := dAtA[iNdEx]
  28179. iNdEx++
  28180. stringLenmapvalue |= uint64(b&0x7F) << shift
  28181. if b < 0x80 {
  28182. break
  28183. }
  28184. }
  28185. intStringLenmapvalue := int(stringLenmapvalue)
  28186. if intStringLenmapvalue < 0 {
  28187. return ErrInvalidLengthApi
  28188. }
  28189. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  28190. if postStringIndexmapvalue < 0 {
  28191. return ErrInvalidLengthApi
  28192. }
  28193. if postStringIndexmapvalue > l {
  28194. return io.ErrUnexpectedEOF
  28195. }
  28196. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  28197. iNdEx = postStringIndexmapvalue
  28198. } else {
  28199. iNdEx = entryPreIndex
  28200. skippy, err := skipApi(dAtA[iNdEx:])
  28201. if err != nil {
  28202. return err
  28203. }
  28204. if (skippy < 0) || (iNdEx+skippy) < 0 {
  28205. return ErrInvalidLengthApi
  28206. }
  28207. if (iNdEx + skippy) > postIndex {
  28208. return io.ErrUnexpectedEOF
  28209. }
  28210. iNdEx += skippy
  28211. }
  28212. }
  28213. m.Labels[mapkey] = mapvalue
  28214. iNdEx = postIndex
  28215. case 6:
  28216. if wireType != 2 {
  28217. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  28218. }
  28219. var msglen int
  28220. for shift := uint(0); ; shift += 7 {
  28221. if shift >= 64 {
  28222. return ErrIntOverflowApi
  28223. }
  28224. if iNdEx >= l {
  28225. return io.ErrUnexpectedEOF
  28226. }
  28227. b := dAtA[iNdEx]
  28228. iNdEx++
  28229. msglen |= int(b&0x7F) << shift
  28230. if b < 0x80 {
  28231. break
  28232. }
  28233. }
  28234. if msglen < 0 {
  28235. return ErrInvalidLengthApi
  28236. }
  28237. postIndex := iNdEx + msglen
  28238. if postIndex < 0 {
  28239. return ErrInvalidLengthApi
  28240. }
  28241. if postIndex > l {
  28242. return io.ErrUnexpectedEOF
  28243. }
  28244. if m.Annotations == nil {
  28245. m.Annotations = make(map[string]string)
  28246. }
  28247. var mapkey string
  28248. var mapvalue string
  28249. for iNdEx < postIndex {
  28250. entryPreIndex := iNdEx
  28251. var wire uint64
  28252. for shift := uint(0); ; shift += 7 {
  28253. if shift >= 64 {
  28254. return ErrIntOverflowApi
  28255. }
  28256. if iNdEx >= l {
  28257. return io.ErrUnexpectedEOF
  28258. }
  28259. b := dAtA[iNdEx]
  28260. iNdEx++
  28261. wire |= uint64(b&0x7F) << shift
  28262. if b < 0x80 {
  28263. break
  28264. }
  28265. }
  28266. fieldNum := int32(wire >> 3)
  28267. if fieldNum == 1 {
  28268. var stringLenmapkey uint64
  28269. for shift := uint(0); ; shift += 7 {
  28270. if shift >= 64 {
  28271. return ErrIntOverflowApi
  28272. }
  28273. if iNdEx >= l {
  28274. return io.ErrUnexpectedEOF
  28275. }
  28276. b := dAtA[iNdEx]
  28277. iNdEx++
  28278. stringLenmapkey |= uint64(b&0x7F) << shift
  28279. if b < 0x80 {
  28280. break
  28281. }
  28282. }
  28283. intStringLenmapkey := int(stringLenmapkey)
  28284. if intStringLenmapkey < 0 {
  28285. return ErrInvalidLengthApi
  28286. }
  28287. postStringIndexmapkey := iNdEx + intStringLenmapkey
  28288. if postStringIndexmapkey < 0 {
  28289. return ErrInvalidLengthApi
  28290. }
  28291. if postStringIndexmapkey > l {
  28292. return io.ErrUnexpectedEOF
  28293. }
  28294. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  28295. iNdEx = postStringIndexmapkey
  28296. } else if fieldNum == 2 {
  28297. var stringLenmapvalue uint64
  28298. for shift := uint(0); ; shift += 7 {
  28299. if shift >= 64 {
  28300. return ErrIntOverflowApi
  28301. }
  28302. if iNdEx >= l {
  28303. return io.ErrUnexpectedEOF
  28304. }
  28305. b := dAtA[iNdEx]
  28306. iNdEx++
  28307. stringLenmapvalue |= uint64(b&0x7F) << shift
  28308. if b < 0x80 {
  28309. break
  28310. }
  28311. }
  28312. intStringLenmapvalue := int(stringLenmapvalue)
  28313. if intStringLenmapvalue < 0 {
  28314. return ErrInvalidLengthApi
  28315. }
  28316. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  28317. if postStringIndexmapvalue < 0 {
  28318. return ErrInvalidLengthApi
  28319. }
  28320. if postStringIndexmapvalue > l {
  28321. return io.ErrUnexpectedEOF
  28322. }
  28323. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  28324. iNdEx = postStringIndexmapvalue
  28325. } else {
  28326. iNdEx = entryPreIndex
  28327. skippy, err := skipApi(dAtA[iNdEx:])
  28328. if err != nil {
  28329. return err
  28330. }
  28331. if (skippy < 0) || (iNdEx+skippy) < 0 {
  28332. return ErrInvalidLengthApi
  28333. }
  28334. if (iNdEx + skippy) > postIndex {
  28335. return io.ErrUnexpectedEOF
  28336. }
  28337. iNdEx += skippy
  28338. }
  28339. }
  28340. m.Annotations[mapkey] = mapvalue
  28341. iNdEx = postIndex
  28342. case 7:
  28343. if wireType != 2 {
  28344. return fmt.Errorf("proto: wrong wireType = %d for field RuntimeHandler", wireType)
  28345. }
  28346. var stringLen uint64
  28347. for shift := uint(0); ; shift += 7 {
  28348. if shift >= 64 {
  28349. return ErrIntOverflowApi
  28350. }
  28351. if iNdEx >= l {
  28352. return io.ErrUnexpectedEOF
  28353. }
  28354. b := dAtA[iNdEx]
  28355. iNdEx++
  28356. stringLen |= uint64(b&0x7F) << shift
  28357. if b < 0x80 {
  28358. break
  28359. }
  28360. }
  28361. intStringLen := int(stringLen)
  28362. if intStringLen < 0 {
  28363. return ErrInvalidLengthApi
  28364. }
  28365. postIndex := iNdEx + intStringLen
  28366. if postIndex < 0 {
  28367. return ErrInvalidLengthApi
  28368. }
  28369. if postIndex > l {
  28370. return io.ErrUnexpectedEOF
  28371. }
  28372. m.RuntimeHandler = string(dAtA[iNdEx:postIndex])
  28373. iNdEx = postIndex
  28374. default:
  28375. iNdEx = preIndex
  28376. skippy, err := skipApi(dAtA[iNdEx:])
  28377. if err != nil {
  28378. return err
  28379. }
  28380. if (skippy < 0) || (iNdEx+skippy) < 0 {
  28381. return ErrInvalidLengthApi
  28382. }
  28383. if (iNdEx + skippy) > l {
  28384. return io.ErrUnexpectedEOF
  28385. }
  28386. iNdEx += skippy
  28387. }
  28388. }
  28389. if iNdEx > l {
  28390. return io.ErrUnexpectedEOF
  28391. }
  28392. return nil
  28393. }
  28394. func (m *ListPodSandboxResponse) Unmarshal(dAtA []byte) error {
  28395. l := len(dAtA)
  28396. iNdEx := 0
  28397. for iNdEx < l {
  28398. preIndex := iNdEx
  28399. var wire uint64
  28400. for shift := uint(0); ; shift += 7 {
  28401. if shift >= 64 {
  28402. return ErrIntOverflowApi
  28403. }
  28404. if iNdEx >= l {
  28405. return io.ErrUnexpectedEOF
  28406. }
  28407. b := dAtA[iNdEx]
  28408. iNdEx++
  28409. wire |= uint64(b&0x7F) << shift
  28410. if b < 0x80 {
  28411. break
  28412. }
  28413. }
  28414. fieldNum := int32(wire >> 3)
  28415. wireType := int(wire & 0x7)
  28416. if wireType == 4 {
  28417. return fmt.Errorf("proto: ListPodSandboxResponse: wiretype end group for non-group")
  28418. }
  28419. if fieldNum <= 0 {
  28420. return fmt.Errorf("proto: ListPodSandboxResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  28421. }
  28422. switch fieldNum {
  28423. case 1:
  28424. if wireType != 2 {
  28425. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  28426. }
  28427. var msglen int
  28428. for shift := uint(0); ; shift += 7 {
  28429. if shift >= 64 {
  28430. return ErrIntOverflowApi
  28431. }
  28432. if iNdEx >= l {
  28433. return io.ErrUnexpectedEOF
  28434. }
  28435. b := dAtA[iNdEx]
  28436. iNdEx++
  28437. msglen |= int(b&0x7F) << shift
  28438. if b < 0x80 {
  28439. break
  28440. }
  28441. }
  28442. if msglen < 0 {
  28443. return ErrInvalidLengthApi
  28444. }
  28445. postIndex := iNdEx + msglen
  28446. if postIndex < 0 {
  28447. return ErrInvalidLengthApi
  28448. }
  28449. if postIndex > l {
  28450. return io.ErrUnexpectedEOF
  28451. }
  28452. m.Items = append(m.Items, &PodSandbox{})
  28453. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  28454. return err
  28455. }
  28456. iNdEx = postIndex
  28457. default:
  28458. iNdEx = preIndex
  28459. skippy, err := skipApi(dAtA[iNdEx:])
  28460. if err != nil {
  28461. return err
  28462. }
  28463. if (skippy < 0) || (iNdEx+skippy) < 0 {
  28464. return ErrInvalidLengthApi
  28465. }
  28466. if (iNdEx + skippy) > l {
  28467. return io.ErrUnexpectedEOF
  28468. }
  28469. iNdEx += skippy
  28470. }
  28471. }
  28472. if iNdEx > l {
  28473. return io.ErrUnexpectedEOF
  28474. }
  28475. return nil
  28476. }
  28477. func (m *PodSandboxStatsRequest) Unmarshal(dAtA []byte) error {
  28478. l := len(dAtA)
  28479. iNdEx := 0
  28480. for iNdEx < l {
  28481. preIndex := iNdEx
  28482. var wire uint64
  28483. for shift := uint(0); ; shift += 7 {
  28484. if shift >= 64 {
  28485. return ErrIntOverflowApi
  28486. }
  28487. if iNdEx >= l {
  28488. return io.ErrUnexpectedEOF
  28489. }
  28490. b := dAtA[iNdEx]
  28491. iNdEx++
  28492. wire |= uint64(b&0x7F) << shift
  28493. if b < 0x80 {
  28494. break
  28495. }
  28496. }
  28497. fieldNum := int32(wire >> 3)
  28498. wireType := int(wire & 0x7)
  28499. if wireType == 4 {
  28500. return fmt.Errorf("proto: PodSandboxStatsRequest: wiretype end group for non-group")
  28501. }
  28502. if fieldNum <= 0 {
  28503. return fmt.Errorf("proto: PodSandboxStatsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  28504. }
  28505. switch fieldNum {
  28506. case 1:
  28507. if wireType != 2 {
  28508. return fmt.Errorf("proto: wrong wireType = %d for field PodSandboxId", wireType)
  28509. }
  28510. var stringLen uint64
  28511. for shift := uint(0); ; shift += 7 {
  28512. if shift >= 64 {
  28513. return ErrIntOverflowApi
  28514. }
  28515. if iNdEx >= l {
  28516. return io.ErrUnexpectedEOF
  28517. }
  28518. b := dAtA[iNdEx]
  28519. iNdEx++
  28520. stringLen |= uint64(b&0x7F) << shift
  28521. if b < 0x80 {
  28522. break
  28523. }
  28524. }
  28525. intStringLen := int(stringLen)
  28526. if intStringLen < 0 {
  28527. return ErrInvalidLengthApi
  28528. }
  28529. postIndex := iNdEx + intStringLen
  28530. if postIndex < 0 {
  28531. return ErrInvalidLengthApi
  28532. }
  28533. if postIndex > l {
  28534. return io.ErrUnexpectedEOF
  28535. }
  28536. m.PodSandboxId = string(dAtA[iNdEx:postIndex])
  28537. iNdEx = postIndex
  28538. default:
  28539. iNdEx = preIndex
  28540. skippy, err := skipApi(dAtA[iNdEx:])
  28541. if err != nil {
  28542. return err
  28543. }
  28544. if (skippy < 0) || (iNdEx+skippy) < 0 {
  28545. return ErrInvalidLengthApi
  28546. }
  28547. if (iNdEx + skippy) > l {
  28548. return io.ErrUnexpectedEOF
  28549. }
  28550. iNdEx += skippy
  28551. }
  28552. }
  28553. if iNdEx > l {
  28554. return io.ErrUnexpectedEOF
  28555. }
  28556. return nil
  28557. }
  28558. func (m *PodSandboxStatsResponse) Unmarshal(dAtA []byte) error {
  28559. l := len(dAtA)
  28560. iNdEx := 0
  28561. for iNdEx < l {
  28562. preIndex := iNdEx
  28563. var wire uint64
  28564. for shift := uint(0); ; shift += 7 {
  28565. if shift >= 64 {
  28566. return ErrIntOverflowApi
  28567. }
  28568. if iNdEx >= l {
  28569. return io.ErrUnexpectedEOF
  28570. }
  28571. b := dAtA[iNdEx]
  28572. iNdEx++
  28573. wire |= uint64(b&0x7F) << shift
  28574. if b < 0x80 {
  28575. break
  28576. }
  28577. }
  28578. fieldNum := int32(wire >> 3)
  28579. wireType := int(wire & 0x7)
  28580. if wireType == 4 {
  28581. return fmt.Errorf("proto: PodSandboxStatsResponse: wiretype end group for non-group")
  28582. }
  28583. if fieldNum <= 0 {
  28584. return fmt.Errorf("proto: PodSandboxStatsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  28585. }
  28586. switch fieldNum {
  28587. case 1:
  28588. if wireType != 2 {
  28589. return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType)
  28590. }
  28591. var msglen int
  28592. for shift := uint(0); ; shift += 7 {
  28593. if shift >= 64 {
  28594. return ErrIntOverflowApi
  28595. }
  28596. if iNdEx >= l {
  28597. return io.ErrUnexpectedEOF
  28598. }
  28599. b := dAtA[iNdEx]
  28600. iNdEx++
  28601. msglen |= int(b&0x7F) << shift
  28602. if b < 0x80 {
  28603. break
  28604. }
  28605. }
  28606. if msglen < 0 {
  28607. return ErrInvalidLengthApi
  28608. }
  28609. postIndex := iNdEx + msglen
  28610. if postIndex < 0 {
  28611. return ErrInvalidLengthApi
  28612. }
  28613. if postIndex > l {
  28614. return io.ErrUnexpectedEOF
  28615. }
  28616. if m.Stats == nil {
  28617. m.Stats = &PodSandboxStats{}
  28618. }
  28619. if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  28620. return err
  28621. }
  28622. iNdEx = postIndex
  28623. default:
  28624. iNdEx = preIndex
  28625. skippy, err := skipApi(dAtA[iNdEx:])
  28626. if err != nil {
  28627. return err
  28628. }
  28629. if (skippy < 0) || (iNdEx+skippy) < 0 {
  28630. return ErrInvalidLengthApi
  28631. }
  28632. if (iNdEx + skippy) > l {
  28633. return io.ErrUnexpectedEOF
  28634. }
  28635. iNdEx += skippy
  28636. }
  28637. }
  28638. if iNdEx > l {
  28639. return io.ErrUnexpectedEOF
  28640. }
  28641. return nil
  28642. }
  28643. func (m *PodSandboxStatsFilter) Unmarshal(dAtA []byte) error {
  28644. l := len(dAtA)
  28645. iNdEx := 0
  28646. for iNdEx < l {
  28647. preIndex := iNdEx
  28648. var wire uint64
  28649. for shift := uint(0); ; shift += 7 {
  28650. if shift >= 64 {
  28651. return ErrIntOverflowApi
  28652. }
  28653. if iNdEx >= l {
  28654. return io.ErrUnexpectedEOF
  28655. }
  28656. b := dAtA[iNdEx]
  28657. iNdEx++
  28658. wire |= uint64(b&0x7F) << shift
  28659. if b < 0x80 {
  28660. break
  28661. }
  28662. }
  28663. fieldNum := int32(wire >> 3)
  28664. wireType := int(wire & 0x7)
  28665. if wireType == 4 {
  28666. return fmt.Errorf("proto: PodSandboxStatsFilter: wiretype end group for non-group")
  28667. }
  28668. if fieldNum <= 0 {
  28669. return fmt.Errorf("proto: PodSandboxStatsFilter: illegal tag %d (wire type %d)", fieldNum, wire)
  28670. }
  28671. switch fieldNum {
  28672. case 1:
  28673. if wireType != 2 {
  28674. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  28675. }
  28676. var stringLen uint64
  28677. for shift := uint(0); ; shift += 7 {
  28678. if shift >= 64 {
  28679. return ErrIntOverflowApi
  28680. }
  28681. if iNdEx >= l {
  28682. return io.ErrUnexpectedEOF
  28683. }
  28684. b := dAtA[iNdEx]
  28685. iNdEx++
  28686. stringLen |= uint64(b&0x7F) << shift
  28687. if b < 0x80 {
  28688. break
  28689. }
  28690. }
  28691. intStringLen := int(stringLen)
  28692. if intStringLen < 0 {
  28693. return ErrInvalidLengthApi
  28694. }
  28695. postIndex := iNdEx + intStringLen
  28696. if postIndex < 0 {
  28697. return ErrInvalidLengthApi
  28698. }
  28699. if postIndex > l {
  28700. return io.ErrUnexpectedEOF
  28701. }
  28702. m.Id = string(dAtA[iNdEx:postIndex])
  28703. iNdEx = postIndex
  28704. case 2:
  28705. if wireType != 2 {
  28706. return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType)
  28707. }
  28708. var msglen int
  28709. for shift := uint(0); ; shift += 7 {
  28710. if shift >= 64 {
  28711. return ErrIntOverflowApi
  28712. }
  28713. if iNdEx >= l {
  28714. return io.ErrUnexpectedEOF
  28715. }
  28716. b := dAtA[iNdEx]
  28717. iNdEx++
  28718. msglen |= int(b&0x7F) << shift
  28719. if b < 0x80 {
  28720. break
  28721. }
  28722. }
  28723. if msglen < 0 {
  28724. return ErrInvalidLengthApi
  28725. }
  28726. postIndex := iNdEx + msglen
  28727. if postIndex < 0 {
  28728. return ErrInvalidLengthApi
  28729. }
  28730. if postIndex > l {
  28731. return io.ErrUnexpectedEOF
  28732. }
  28733. if m.LabelSelector == nil {
  28734. m.LabelSelector = make(map[string]string)
  28735. }
  28736. var mapkey string
  28737. var mapvalue string
  28738. for iNdEx < postIndex {
  28739. entryPreIndex := iNdEx
  28740. var wire uint64
  28741. for shift := uint(0); ; shift += 7 {
  28742. if shift >= 64 {
  28743. return ErrIntOverflowApi
  28744. }
  28745. if iNdEx >= l {
  28746. return io.ErrUnexpectedEOF
  28747. }
  28748. b := dAtA[iNdEx]
  28749. iNdEx++
  28750. wire |= uint64(b&0x7F) << shift
  28751. if b < 0x80 {
  28752. break
  28753. }
  28754. }
  28755. fieldNum := int32(wire >> 3)
  28756. if fieldNum == 1 {
  28757. var stringLenmapkey uint64
  28758. for shift := uint(0); ; shift += 7 {
  28759. if shift >= 64 {
  28760. return ErrIntOverflowApi
  28761. }
  28762. if iNdEx >= l {
  28763. return io.ErrUnexpectedEOF
  28764. }
  28765. b := dAtA[iNdEx]
  28766. iNdEx++
  28767. stringLenmapkey |= uint64(b&0x7F) << shift
  28768. if b < 0x80 {
  28769. break
  28770. }
  28771. }
  28772. intStringLenmapkey := int(stringLenmapkey)
  28773. if intStringLenmapkey < 0 {
  28774. return ErrInvalidLengthApi
  28775. }
  28776. postStringIndexmapkey := iNdEx + intStringLenmapkey
  28777. if postStringIndexmapkey < 0 {
  28778. return ErrInvalidLengthApi
  28779. }
  28780. if postStringIndexmapkey > l {
  28781. return io.ErrUnexpectedEOF
  28782. }
  28783. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  28784. iNdEx = postStringIndexmapkey
  28785. } else if fieldNum == 2 {
  28786. var stringLenmapvalue uint64
  28787. for shift := uint(0); ; shift += 7 {
  28788. if shift >= 64 {
  28789. return ErrIntOverflowApi
  28790. }
  28791. if iNdEx >= l {
  28792. return io.ErrUnexpectedEOF
  28793. }
  28794. b := dAtA[iNdEx]
  28795. iNdEx++
  28796. stringLenmapvalue |= uint64(b&0x7F) << shift
  28797. if b < 0x80 {
  28798. break
  28799. }
  28800. }
  28801. intStringLenmapvalue := int(stringLenmapvalue)
  28802. if intStringLenmapvalue < 0 {
  28803. return ErrInvalidLengthApi
  28804. }
  28805. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  28806. if postStringIndexmapvalue < 0 {
  28807. return ErrInvalidLengthApi
  28808. }
  28809. if postStringIndexmapvalue > l {
  28810. return io.ErrUnexpectedEOF
  28811. }
  28812. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  28813. iNdEx = postStringIndexmapvalue
  28814. } else {
  28815. iNdEx = entryPreIndex
  28816. skippy, err := skipApi(dAtA[iNdEx:])
  28817. if err != nil {
  28818. return err
  28819. }
  28820. if (skippy < 0) || (iNdEx+skippy) < 0 {
  28821. return ErrInvalidLengthApi
  28822. }
  28823. if (iNdEx + skippy) > postIndex {
  28824. return io.ErrUnexpectedEOF
  28825. }
  28826. iNdEx += skippy
  28827. }
  28828. }
  28829. m.LabelSelector[mapkey] = mapvalue
  28830. iNdEx = postIndex
  28831. default:
  28832. iNdEx = preIndex
  28833. skippy, err := skipApi(dAtA[iNdEx:])
  28834. if err != nil {
  28835. return err
  28836. }
  28837. if (skippy < 0) || (iNdEx+skippy) < 0 {
  28838. return ErrInvalidLengthApi
  28839. }
  28840. if (iNdEx + skippy) > l {
  28841. return io.ErrUnexpectedEOF
  28842. }
  28843. iNdEx += skippy
  28844. }
  28845. }
  28846. if iNdEx > l {
  28847. return io.ErrUnexpectedEOF
  28848. }
  28849. return nil
  28850. }
  28851. func (m *ListPodSandboxStatsRequest) Unmarshal(dAtA []byte) error {
  28852. l := len(dAtA)
  28853. iNdEx := 0
  28854. for iNdEx < l {
  28855. preIndex := iNdEx
  28856. var wire uint64
  28857. for shift := uint(0); ; shift += 7 {
  28858. if shift >= 64 {
  28859. return ErrIntOverflowApi
  28860. }
  28861. if iNdEx >= l {
  28862. return io.ErrUnexpectedEOF
  28863. }
  28864. b := dAtA[iNdEx]
  28865. iNdEx++
  28866. wire |= uint64(b&0x7F) << shift
  28867. if b < 0x80 {
  28868. break
  28869. }
  28870. }
  28871. fieldNum := int32(wire >> 3)
  28872. wireType := int(wire & 0x7)
  28873. if wireType == 4 {
  28874. return fmt.Errorf("proto: ListPodSandboxStatsRequest: wiretype end group for non-group")
  28875. }
  28876. if fieldNum <= 0 {
  28877. return fmt.Errorf("proto: ListPodSandboxStatsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  28878. }
  28879. switch fieldNum {
  28880. case 1:
  28881. if wireType != 2 {
  28882. return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType)
  28883. }
  28884. var msglen int
  28885. for shift := uint(0); ; shift += 7 {
  28886. if shift >= 64 {
  28887. return ErrIntOverflowApi
  28888. }
  28889. if iNdEx >= l {
  28890. return io.ErrUnexpectedEOF
  28891. }
  28892. b := dAtA[iNdEx]
  28893. iNdEx++
  28894. msglen |= int(b&0x7F) << shift
  28895. if b < 0x80 {
  28896. break
  28897. }
  28898. }
  28899. if msglen < 0 {
  28900. return ErrInvalidLengthApi
  28901. }
  28902. postIndex := iNdEx + msglen
  28903. if postIndex < 0 {
  28904. return ErrInvalidLengthApi
  28905. }
  28906. if postIndex > l {
  28907. return io.ErrUnexpectedEOF
  28908. }
  28909. if m.Filter == nil {
  28910. m.Filter = &PodSandboxStatsFilter{}
  28911. }
  28912. if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  28913. return err
  28914. }
  28915. iNdEx = postIndex
  28916. default:
  28917. iNdEx = preIndex
  28918. skippy, err := skipApi(dAtA[iNdEx:])
  28919. if err != nil {
  28920. return err
  28921. }
  28922. if (skippy < 0) || (iNdEx+skippy) < 0 {
  28923. return ErrInvalidLengthApi
  28924. }
  28925. if (iNdEx + skippy) > l {
  28926. return io.ErrUnexpectedEOF
  28927. }
  28928. iNdEx += skippy
  28929. }
  28930. }
  28931. if iNdEx > l {
  28932. return io.ErrUnexpectedEOF
  28933. }
  28934. return nil
  28935. }
  28936. func (m *ListPodSandboxStatsResponse) Unmarshal(dAtA []byte) error {
  28937. l := len(dAtA)
  28938. iNdEx := 0
  28939. for iNdEx < l {
  28940. preIndex := iNdEx
  28941. var wire uint64
  28942. for shift := uint(0); ; shift += 7 {
  28943. if shift >= 64 {
  28944. return ErrIntOverflowApi
  28945. }
  28946. if iNdEx >= l {
  28947. return io.ErrUnexpectedEOF
  28948. }
  28949. b := dAtA[iNdEx]
  28950. iNdEx++
  28951. wire |= uint64(b&0x7F) << shift
  28952. if b < 0x80 {
  28953. break
  28954. }
  28955. }
  28956. fieldNum := int32(wire >> 3)
  28957. wireType := int(wire & 0x7)
  28958. if wireType == 4 {
  28959. return fmt.Errorf("proto: ListPodSandboxStatsResponse: wiretype end group for non-group")
  28960. }
  28961. if fieldNum <= 0 {
  28962. return fmt.Errorf("proto: ListPodSandboxStatsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  28963. }
  28964. switch fieldNum {
  28965. case 1:
  28966. if wireType != 2 {
  28967. return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType)
  28968. }
  28969. var msglen int
  28970. for shift := uint(0); ; shift += 7 {
  28971. if shift >= 64 {
  28972. return ErrIntOverflowApi
  28973. }
  28974. if iNdEx >= l {
  28975. return io.ErrUnexpectedEOF
  28976. }
  28977. b := dAtA[iNdEx]
  28978. iNdEx++
  28979. msglen |= int(b&0x7F) << shift
  28980. if b < 0x80 {
  28981. break
  28982. }
  28983. }
  28984. if msglen < 0 {
  28985. return ErrInvalidLengthApi
  28986. }
  28987. postIndex := iNdEx + msglen
  28988. if postIndex < 0 {
  28989. return ErrInvalidLengthApi
  28990. }
  28991. if postIndex > l {
  28992. return io.ErrUnexpectedEOF
  28993. }
  28994. m.Stats = append(m.Stats, &PodSandboxStats{})
  28995. if err := m.Stats[len(m.Stats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  28996. return err
  28997. }
  28998. iNdEx = postIndex
  28999. default:
  29000. iNdEx = preIndex
  29001. skippy, err := skipApi(dAtA[iNdEx:])
  29002. if err != nil {
  29003. return err
  29004. }
  29005. if (skippy < 0) || (iNdEx+skippy) < 0 {
  29006. return ErrInvalidLengthApi
  29007. }
  29008. if (iNdEx + skippy) > l {
  29009. return io.ErrUnexpectedEOF
  29010. }
  29011. iNdEx += skippy
  29012. }
  29013. }
  29014. if iNdEx > l {
  29015. return io.ErrUnexpectedEOF
  29016. }
  29017. return nil
  29018. }
  29019. func (m *PodSandboxAttributes) Unmarshal(dAtA []byte) error {
  29020. l := len(dAtA)
  29021. iNdEx := 0
  29022. for iNdEx < l {
  29023. preIndex := iNdEx
  29024. var wire uint64
  29025. for shift := uint(0); ; shift += 7 {
  29026. if shift >= 64 {
  29027. return ErrIntOverflowApi
  29028. }
  29029. if iNdEx >= l {
  29030. return io.ErrUnexpectedEOF
  29031. }
  29032. b := dAtA[iNdEx]
  29033. iNdEx++
  29034. wire |= uint64(b&0x7F) << shift
  29035. if b < 0x80 {
  29036. break
  29037. }
  29038. }
  29039. fieldNum := int32(wire >> 3)
  29040. wireType := int(wire & 0x7)
  29041. if wireType == 4 {
  29042. return fmt.Errorf("proto: PodSandboxAttributes: wiretype end group for non-group")
  29043. }
  29044. if fieldNum <= 0 {
  29045. return fmt.Errorf("proto: PodSandboxAttributes: illegal tag %d (wire type %d)", fieldNum, wire)
  29046. }
  29047. switch fieldNum {
  29048. case 1:
  29049. if wireType != 2 {
  29050. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  29051. }
  29052. var stringLen uint64
  29053. for shift := uint(0); ; shift += 7 {
  29054. if shift >= 64 {
  29055. return ErrIntOverflowApi
  29056. }
  29057. if iNdEx >= l {
  29058. return io.ErrUnexpectedEOF
  29059. }
  29060. b := dAtA[iNdEx]
  29061. iNdEx++
  29062. stringLen |= uint64(b&0x7F) << shift
  29063. if b < 0x80 {
  29064. break
  29065. }
  29066. }
  29067. intStringLen := int(stringLen)
  29068. if intStringLen < 0 {
  29069. return ErrInvalidLengthApi
  29070. }
  29071. postIndex := iNdEx + intStringLen
  29072. if postIndex < 0 {
  29073. return ErrInvalidLengthApi
  29074. }
  29075. if postIndex > l {
  29076. return io.ErrUnexpectedEOF
  29077. }
  29078. m.Id = string(dAtA[iNdEx:postIndex])
  29079. iNdEx = postIndex
  29080. case 2:
  29081. if wireType != 2 {
  29082. return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
  29083. }
  29084. var msglen int
  29085. for shift := uint(0); ; shift += 7 {
  29086. if shift >= 64 {
  29087. return ErrIntOverflowApi
  29088. }
  29089. if iNdEx >= l {
  29090. return io.ErrUnexpectedEOF
  29091. }
  29092. b := dAtA[iNdEx]
  29093. iNdEx++
  29094. msglen |= int(b&0x7F) << shift
  29095. if b < 0x80 {
  29096. break
  29097. }
  29098. }
  29099. if msglen < 0 {
  29100. return ErrInvalidLengthApi
  29101. }
  29102. postIndex := iNdEx + msglen
  29103. if postIndex < 0 {
  29104. return ErrInvalidLengthApi
  29105. }
  29106. if postIndex > l {
  29107. return io.ErrUnexpectedEOF
  29108. }
  29109. if m.Metadata == nil {
  29110. m.Metadata = &PodSandboxMetadata{}
  29111. }
  29112. if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  29113. return err
  29114. }
  29115. iNdEx = postIndex
  29116. case 3:
  29117. if wireType != 2 {
  29118. return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  29119. }
  29120. var msglen int
  29121. for shift := uint(0); ; shift += 7 {
  29122. if shift >= 64 {
  29123. return ErrIntOverflowApi
  29124. }
  29125. if iNdEx >= l {
  29126. return io.ErrUnexpectedEOF
  29127. }
  29128. b := dAtA[iNdEx]
  29129. iNdEx++
  29130. msglen |= int(b&0x7F) << shift
  29131. if b < 0x80 {
  29132. break
  29133. }
  29134. }
  29135. if msglen < 0 {
  29136. return ErrInvalidLengthApi
  29137. }
  29138. postIndex := iNdEx + msglen
  29139. if postIndex < 0 {
  29140. return ErrInvalidLengthApi
  29141. }
  29142. if postIndex > l {
  29143. return io.ErrUnexpectedEOF
  29144. }
  29145. if m.Labels == nil {
  29146. m.Labels = make(map[string]string)
  29147. }
  29148. var mapkey string
  29149. var mapvalue string
  29150. for iNdEx < postIndex {
  29151. entryPreIndex := iNdEx
  29152. var wire uint64
  29153. for shift := uint(0); ; shift += 7 {
  29154. if shift >= 64 {
  29155. return ErrIntOverflowApi
  29156. }
  29157. if iNdEx >= l {
  29158. return io.ErrUnexpectedEOF
  29159. }
  29160. b := dAtA[iNdEx]
  29161. iNdEx++
  29162. wire |= uint64(b&0x7F) << shift
  29163. if b < 0x80 {
  29164. break
  29165. }
  29166. }
  29167. fieldNum := int32(wire >> 3)
  29168. if fieldNum == 1 {
  29169. var stringLenmapkey uint64
  29170. for shift := uint(0); ; shift += 7 {
  29171. if shift >= 64 {
  29172. return ErrIntOverflowApi
  29173. }
  29174. if iNdEx >= l {
  29175. return io.ErrUnexpectedEOF
  29176. }
  29177. b := dAtA[iNdEx]
  29178. iNdEx++
  29179. stringLenmapkey |= uint64(b&0x7F) << shift
  29180. if b < 0x80 {
  29181. break
  29182. }
  29183. }
  29184. intStringLenmapkey := int(stringLenmapkey)
  29185. if intStringLenmapkey < 0 {
  29186. return ErrInvalidLengthApi
  29187. }
  29188. postStringIndexmapkey := iNdEx + intStringLenmapkey
  29189. if postStringIndexmapkey < 0 {
  29190. return ErrInvalidLengthApi
  29191. }
  29192. if postStringIndexmapkey > l {
  29193. return io.ErrUnexpectedEOF
  29194. }
  29195. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  29196. iNdEx = postStringIndexmapkey
  29197. } else if fieldNum == 2 {
  29198. var stringLenmapvalue uint64
  29199. for shift := uint(0); ; shift += 7 {
  29200. if shift >= 64 {
  29201. return ErrIntOverflowApi
  29202. }
  29203. if iNdEx >= l {
  29204. return io.ErrUnexpectedEOF
  29205. }
  29206. b := dAtA[iNdEx]
  29207. iNdEx++
  29208. stringLenmapvalue |= uint64(b&0x7F) << shift
  29209. if b < 0x80 {
  29210. break
  29211. }
  29212. }
  29213. intStringLenmapvalue := int(stringLenmapvalue)
  29214. if intStringLenmapvalue < 0 {
  29215. return ErrInvalidLengthApi
  29216. }
  29217. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  29218. if postStringIndexmapvalue < 0 {
  29219. return ErrInvalidLengthApi
  29220. }
  29221. if postStringIndexmapvalue > l {
  29222. return io.ErrUnexpectedEOF
  29223. }
  29224. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  29225. iNdEx = postStringIndexmapvalue
  29226. } else {
  29227. iNdEx = entryPreIndex
  29228. skippy, err := skipApi(dAtA[iNdEx:])
  29229. if err != nil {
  29230. return err
  29231. }
  29232. if (skippy < 0) || (iNdEx+skippy) < 0 {
  29233. return ErrInvalidLengthApi
  29234. }
  29235. if (iNdEx + skippy) > postIndex {
  29236. return io.ErrUnexpectedEOF
  29237. }
  29238. iNdEx += skippy
  29239. }
  29240. }
  29241. m.Labels[mapkey] = mapvalue
  29242. iNdEx = postIndex
  29243. case 4:
  29244. if wireType != 2 {
  29245. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  29246. }
  29247. var msglen int
  29248. for shift := uint(0); ; shift += 7 {
  29249. if shift >= 64 {
  29250. return ErrIntOverflowApi
  29251. }
  29252. if iNdEx >= l {
  29253. return io.ErrUnexpectedEOF
  29254. }
  29255. b := dAtA[iNdEx]
  29256. iNdEx++
  29257. msglen |= int(b&0x7F) << shift
  29258. if b < 0x80 {
  29259. break
  29260. }
  29261. }
  29262. if msglen < 0 {
  29263. return ErrInvalidLengthApi
  29264. }
  29265. postIndex := iNdEx + msglen
  29266. if postIndex < 0 {
  29267. return ErrInvalidLengthApi
  29268. }
  29269. if postIndex > l {
  29270. return io.ErrUnexpectedEOF
  29271. }
  29272. if m.Annotations == nil {
  29273. m.Annotations = make(map[string]string)
  29274. }
  29275. var mapkey string
  29276. var mapvalue string
  29277. for iNdEx < postIndex {
  29278. entryPreIndex := iNdEx
  29279. var wire uint64
  29280. for shift := uint(0); ; shift += 7 {
  29281. if shift >= 64 {
  29282. return ErrIntOverflowApi
  29283. }
  29284. if iNdEx >= l {
  29285. return io.ErrUnexpectedEOF
  29286. }
  29287. b := dAtA[iNdEx]
  29288. iNdEx++
  29289. wire |= uint64(b&0x7F) << shift
  29290. if b < 0x80 {
  29291. break
  29292. }
  29293. }
  29294. fieldNum := int32(wire >> 3)
  29295. if fieldNum == 1 {
  29296. var stringLenmapkey uint64
  29297. for shift := uint(0); ; shift += 7 {
  29298. if shift >= 64 {
  29299. return ErrIntOverflowApi
  29300. }
  29301. if iNdEx >= l {
  29302. return io.ErrUnexpectedEOF
  29303. }
  29304. b := dAtA[iNdEx]
  29305. iNdEx++
  29306. stringLenmapkey |= uint64(b&0x7F) << shift
  29307. if b < 0x80 {
  29308. break
  29309. }
  29310. }
  29311. intStringLenmapkey := int(stringLenmapkey)
  29312. if intStringLenmapkey < 0 {
  29313. return ErrInvalidLengthApi
  29314. }
  29315. postStringIndexmapkey := iNdEx + intStringLenmapkey
  29316. if postStringIndexmapkey < 0 {
  29317. return ErrInvalidLengthApi
  29318. }
  29319. if postStringIndexmapkey > l {
  29320. return io.ErrUnexpectedEOF
  29321. }
  29322. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  29323. iNdEx = postStringIndexmapkey
  29324. } else if fieldNum == 2 {
  29325. var stringLenmapvalue uint64
  29326. for shift := uint(0); ; shift += 7 {
  29327. if shift >= 64 {
  29328. return ErrIntOverflowApi
  29329. }
  29330. if iNdEx >= l {
  29331. return io.ErrUnexpectedEOF
  29332. }
  29333. b := dAtA[iNdEx]
  29334. iNdEx++
  29335. stringLenmapvalue |= uint64(b&0x7F) << shift
  29336. if b < 0x80 {
  29337. break
  29338. }
  29339. }
  29340. intStringLenmapvalue := int(stringLenmapvalue)
  29341. if intStringLenmapvalue < 0 {
  29342. return ErrInvalidLengthApi
  29343. }
  29344. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  29345. if postStringIndexmapvalue < 0 {
  29346. return ErrInvalidLengthApi
  29347. }
  29348. if postStringIndexmapvalue > l {
  29349. return io.ErrUnexpectedEOF
  29350. }
  29351. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  29352. iNdEx = postStringIndexmapvalue
  29353. } else {
  29354. iNdEx = entryPreIndex
  29355. skippy, err := skipApi(dAtA[iNdEx:])
  29356. if err != nil {
  29357. return err
  29358. }
  29359. if (skippy < 0) || (iNdEx+skippy) < 0 {
  29360. return ErrInvalidLengthApi
  29361. }
  29362. if (iNdEx + skippy) > postIndex {
  29363. return io.ErrUnexpectedEOF
  29364. }
  29365. iNdEx += skippy
  29366. }
  29367. }
  29368. m.Annotations[mapkey] = mapvalue
  29369. iNdEx = postIndex
  29370. default:
  29371. iNdEx = preIndex
  29372. skippy, err := skipApi(dAtA[iNdEx:])
  29373. if err != nil {
  29374. return err
  29375. }
  29376. if (skippy < 0) || (iNdEx+skippy) < 0 {
  29377. return ErrInvalidLengthApi
  29378. }
  29379. if (iNdEx + skippy) > l {
  29380. return io.ErrUnexpectedEOF
  29381. }
  29382. iNdEx += skippy
  29383. }
  29384. }
  29385. if iNdEx > l {
  29386. return io.ErrUnexpectedEOF
  29387. }
  29388. return nil
  29389. }
  29390. func (m *PodSandboxStats) Unmarshal(dAtA []byte) error {
  29391. l := len(dAtA)
  29392. iNdEx := 0
  29393. for iNdEx < l {
  29394. preIndex := iNdEx
  29395. var wire uint64
  29396. for shift := uint(0); ; shift += 7 {
  29397. if shift >= 64 {
  29398. return ErrIntOverflowApi
  29399. }
  29400. if iNdEx >= l {
  29401. return io.ErrUnexpectedEOF
  29402. }
  29403. b := dAtA[iNdEx]
  29404. iNdEx++
  29405. wire |= uint64(b&0x7F) << shift
  29406. if b < 0x80 {
  29407. break
  29408. }
  29409. }
  29410. fieldNum := int32(wire >> 3)
  29411. wireType := int(wire & 0x7)
  29412. if wireType == 4 {
  29413. return fmt.Errorf("proto: PodSandboxStats: wiretype end group for non-group")
  29414. }
  29415. if fieldNum <= 0 {
  29416. return fmt.Errorf("proto: PodSandboxStats: illegal tag %d (wire type %d)", fieldNum, wire)
  29417. }
  29418. switch fieldNum {
  29419. case 1:
  29420. if wireType != 2 {
  29421. return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType)
  29422. }
  29423. var msglen int
  29424. for shift := uint(0); ; shift += 7 {
  29425. if shift >= 64 {
  29426. return ErrIntOverflowApi
  29427. }
  29428. if iNdEx >= l {
  29429. return io.ErrUnexpectedEOF
  29430. }
  29431. b := dAtA[iNdEx]
  29432. iNdEx++
  29433. msglen |= int(b&0x7F) << shift
  29434. if b < 0x80 {
  29435. break
  29436. }
  29437. }
  29438. if msglen < 0 {
  29439. return ErrInvalidLengthApi
  29440. }
  29441. postIndex := iNdEx + msglen
  29442. if postIndex < 0 {
  29443. return ErrInvalidLengthApi
  29444. }
  29445. if postIndex > l {
  29446. return io.ErrUnexpectedEOF
  29447. }
  29448. if m.Attributes == nil {
  29449. m.Attributes = &PodSandboxAttributes{}
  29450. }
  29451. if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  29452. return err
  29453. }
  29454. iNdEx = postIndex
  29455. case 2:
  29456. if wireType != 2 {
  29457. return fmt.Errorf("proto: wrong wireType = %d for field Linux", wireType)
  29458. }
  29459. var msglen int
  29460. for shift := uint(0); ; shift += 7 {
  29461. if shift >= 64 {
  29462. return ErrIntOverflowApi
  29463. }
  29464. if iNdEx >= l {
  29465. return io.ErrUnexpectedEOF
  29466. }
  29467. b := dAtA[iNdEx]
  29468. iNdEx++
  29469. msglen |= int(b&0x7F) << shift
  29470. if b < 0x80 {
  29471. break
  29472. }
  29473. }
  29474. if msglen < 0 {
  29475. return ErrInvalidLengthApi
  29476. }
  29477. postIndex := iNdEx + msglen
  29478. if postIndex < 0 {
  29479. return ErrInvalidLengthApi
  29480. }
  29481. if postIndex > l {
  29482. return io.ErrUnexpectedEOF
  29483. }
  29484. if m.Linux == nil {
  29485. m.Linux = &LinuxPodSandboxStats{}
  29486. }
  29487. if err := m.Linux.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  29488. return err
  29489. }
  29490. iNdEx = postIndex
  29491. case 3:
  29492. if wireType != 2 {
  29493. return fmt.Errorf("proto: wrong wireType = %d for field Windows", wireType)
  29494. }
  29495. var msglen int
  29496. for shift := uint(0); ; shift += 7 {
  29497. if shift >= 64 {
  29498. return ErrIntOverflowApi
  29499. }
  29500. if iNdEx >= l {
  29501. return io.ErrUnexpectedEOF
  29502. }
  29503. b := dAtA[iNdEx]
  29504. iNdEx++
  29505. msglen |= int(b&0x7F) << shift
  29506. if b < 0x80 {
  29507. break
  29508. }
  29509. }
  29510. if msglen < 0 {
  29511. return ErrInvalidLengthApi
  29512. }
  29513. postIndex := iNdEx + msglen
  29514. if postIndex < 0 {
  29515. return ErrInvalidLengthApi
  29516. }
  29517. if postIndex > l {
  29518. return io.ErrUnexpectedEOF
  29519. }
  29520. if m.Windows == nil {
  29521. m.Windows = &WindowsPodSandboxStats{}
  29522. }
  29523. if err := m.Windows.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  29524. return err
  29525. }
  29526. iNdEx = postIndex
  29527. default:
  29528. iNdEx = preIndex
  29529. skippy, err := skipApi(dAtA[iNdEx:])
  29530. if err != nil {
  29531. return err
  29532. }
  29533. if (skippy < 0) || (iNdEx+skippy) < 0 {
  29534. return ErrInvalidLengthApi
  29535. }
  29536. if (iNdEx + skippy) > l {
  29537. return io.ErrUnexpectedEOF
  29538. }
  29539. iNdEx += skippy
  29540. }
  29541. }
  29542. if iNdEx > l {
  29543. return io.ErrUnexpectedEOF
  29544. }
  29545. return nil
  29546. }
  29547. func (m *LinuxPodSandboxStats) Unmarshal(dAtA []byte) error {
  29548. l := len(dAtA)
  29549. iNdEx := 0
  29550. for iNdEx < l {
  29551. preIndex := iNdEx
  29552. var wire uint64
  29553. for shift := uint(0); ; shift += 7 {
  29554. if shift >= 64 {
  29555. return ErrIntOverflowApi
  29556. }
  29557. if iNdEx >= l {
  29558. return io.ErrUnexpectedEOF
  29559. }
  29560. b := dAtA[iNdEx]
  29561. iNdEx++
  29562. wire |= uint64(b&0x7F) << shift
  29563. if b < 0x80 {
  29564. break
  29565. }
  29566. }
  29567. fieldNum := int32(wire >> 3)
  29568. wireType := int(wire & 0x7)
  29569. if wireType == 4 {
  29570. return fmt.Errorf("proto: LinuxPodSandboxStats: wiretype end group for non-group")
  29571. }
  29572. if fieldNum <= 0 {
  29573. return fmt.Errorf("proto: LinuxPodSandboxStats: illegal tag %d (wire type %d)", fieldNum, wire)
  29574. }
  29575. switch fieldNum {
  29576. case 1:
  29577. if wireType != 2 {
  29578. return fmt.Errorf("proto: wrong wireType = %d for field Cpu", wireType)
  29579. }
  29580. var msglen int
  29581. for shift := uint(0); ; shift += 7 {
  29582. if shift >= 64 {
  29583. return ErrIntOverflowApi
  29584. }
  29585. if iNdEx >= l {
  29586. return io.ErrUnexpectedEOF
  29587. }
  29588. b := dAtA[iNdEx]
  29589. iNdEx++
  29590. msglen |= int(b&0x7F) << shift
  29591. if b < 0x80 {
  29592. break
  29593. }
  29594. }
  29595. if msglen < 0 {
  29596. return ErrInvalidLengthApi
  29597. }
  29598. postIndex := iNdEx + msglen
  29599. if postIndex < 0 {
  29600. return ErrInvalidLengthApi
  29601. }
  29602. if postIndex > l {
  29603. return io.ErrUnexpectedEOF
  29604. }
  29605. if m.Cpu == nil {
  29606. m.Cpu = &CpuUsage{}
  29607. }
  29608. if err := m.Cpu.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  29609. return err
  29610. }
  29611. iNdEx = postIndex
  29612. case 2:
  29613. if wireType != 2 {
  29614. return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType)
  29615. }
  29616. var msglen int
  29617. for shift := uint(0); ; shift += 7 {
  29618. if shift >= 64 {
  29619. return ErrIntOverflowApi
  29620. }
  29621. if iNdEx >= l {
  29622. return io.ErrUnexpectedEOF
  29623. }
  29624. b := dAtA[iNdEx]
  29625. iNdEx++
  29626. msglen |= int(b&0x7F) << shift
  29627. if b < 0x80 {
  29628. break
  29629. }
  29630. }
  29631. if msglen < 0 {
  29632. return ErrInvalidLengthApi
  29633. }
  29634. postIndex := iNdEx + msglen
  29635. if postIndex < 0 {
  29636. return ErrInvalidLengthApi
  29637. }
  29638. if postIndex > l {
  29639. return io.ErrUnexpectedEOF
  29640. }
  29641. if m.Memory == nil {
  29642. m.Memory = &MemoryUsage{}
  29643. }
  29644. if err := m.Memory.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  29645. return err
  29646. }
  29647. iNdEx = postIndex
  29648. case 3:
  29649. if wireType != 2 {
  29650. return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType)
  29651. }
  29652. var msglen int
  29653. for shift := uint(0); ; shift += 7 {
  29654. if shift >= 64 {
  29655. return ErrIntOverflowApi
  29656. }
  29657. if iNdEx >= l {
  29658. return io.ErrUnexpectedEOF
  29659. }
  29660. b := dAtA[iNdEx]
  29661. iNdEx++
  29662. msglen |= int(b&0x7F) << shift
  29663. if b < 0x80 {
  29664. break
  29665. }
  29666. }
  29667. if msglen < 0 {
  29668. return ErrInvalidLengthApi
  29669. }
  29670. postIndex := iNdEx + msglen
  29671. if postIndex < 0 {
  29672. return ErrInvalidLengthApi
  29673. }
  29674. if postIndex > l {
  29675. return io.ErrUnexpectedEOF
  29676. }
  29677. if m.Network == nil {
  29678. m.Network = &NetworkUsage{}
  29679. }
  29680. if err := m.Network.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  29681. return err
  29682. }
  29683. iNdEx = postIndex
  29684. case 4:
  29685. if wireType != 2 {
  29686. return fmt.Errorf("proto: wrong wireType = %d for field Process", wireType)
  29687. }
  29688. var msglen int
  29689. for shift := uint(0); ; shift += 7 {
  29690. if shift >= 64 {
  29691. return ErrIntOverflowApi
  29692. }
  29693. if iNdEx >= l {
  29694. return io.ErrUnexpectedEOF
  29695. }
  29696. b := dAtA[iNdEx]
  29697. iNdEx++
  29698. msglen |= int(b&0x7F) << shift
  29699. if b < 0x80 {
  29700. break
  29701. }
  29702. }
  29703. if msglen < 0 {
  29704. return ErrInvalidLengthApi
  29705. }
  29706. postIndex := iNdEx + msglen
  29707. if postIndex < 0 {
  29708. return ErrInvalidLengthApi
  29709. }
  29710. if postIndex > l {
  29711. return io.ErrUnexpectedEOF
  29712. }
  29713. if m.Process == nil {
  29714. m.Process = &ProcessUsage{}
  29715. }
  29716. if err := m.Process.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  29717. return err
  29718. }
  29719. iNdEx = postIndex
  29720. case 5:
  29721. if wireType != 2 {
  29722. return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType)
  29723. }
  29724. var msglen int
  29725. for shift := uint(0); ; shift += 7 {
  29726. if shift >= 64 {
  29727. return ErrIntOverflowApi
  29728. }
  29729. if iNdEx >= l {
  29730. return io.ErrUnexpectedEOF
  29731. }
  29732. b := dAtA[iNdEx]
  29733. iNdEx++
  29734. msglen |= int(b&0x7F) << shift
  29735. if b < 0x80 {
  29736. break
  29737. }
  29738. }
  29739. if msglen < 0 {
  29740. return ErrInvalidLengthApi
  29741. }
  29742. postIndex := iNdEx + msglen
  29743. if postIndex < 0 {
  29744. return ErrInvalidLengthApi
  29745. }
  29746. if postIndex > l {
  29747. return io.ErrUnexpectedEOF
  29748. }
  29749. m.Containers = append(m.Containers, &ContainerStats{})
  29750. if err := m.Containers[len(m.Containers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  29751. return err
  29752. }
  29753. iNdEx = postIndex
  29754. default:
  29755. iNdEx = preIndex
  29756. skippy, err := skipApi(dAtA[iNdEx:])
  29757. if err != nil {
  29758. return err
  29759. }
  29760. if (skippy < 0) || (iNdEx+skippy) < 0 {
  29761. return ErrInvalidLengthApi
  29762. }
  29763. if (iNdEx + skippy) > l {
  29764. return io.ErrUnexpectedEOF
  29765. }
  29766. iNdEx += skippy
  29767. }
  29768. }
  29769. if iNdEx > l {
  29770. return io.ErrUnexpectedEOF
  29771. }
  29772. return nil
  29773. }
  29774. func (m *WindowsPodSandboxStats) Unmarshal(dAtA []byte) error {
  29775. l := len(dAtA)
  29776. iNdEx := 0
  29777. for iNdEx < l {
  29778. preIndex := iNdEx
  29779. var wire uint64
  29780. for shift := uint(0); ; shift += 7 {
  29781. if shift >= 64 {
  29782. return ErrIntOverflowApi
  29783. }
  29784. if iNdEx >= l {
  29785. return io.ErrUnexpectedEOF
  29786. }
  29787. b := dAtA[iNdEx]
  29788. iNdEx++
  29789. wire |= uint64(b&0x7F) << shift
  29790. if b < 0x80 {
  29791. break
  29792. }
  29793. }
  29794. fieldNum := int32(wire >> 3)
  29795. wireType := int(wire & 0x7)
  29796. if wireType == 4 {
  29797. return fmt.Errorf("proto: WindowsPodSandboxStats: wiretype end group for non-group")
  29798. }
  29799. if fieldNum <= 0 {
  29800. return fmt.Errorf("proto: WindowsPodSandboxStats: illegal tag %d (wire type %d)", fieldNum, wire)
  29801. }
  29802. switch fieldNum {
  29803. case 1:
  29804. if wireType != 2 {
  29805. return fmt.Errorf("proto: wrong wireType = %d for field Cpu", wireType)
  29806. }
  29807. var msglen int
  29808. for shift := uint(0); ; shift += 7 {
  29809. if shift >= 64 {
  29810. return ErrIntOverflowApi
  29811. }
  29812. if iNdEx >= l {
  29813. return io.ErrUnexpectedEOF
  29814. }
  29815. b := dAtA[iNdEx]
  29816. iNdEx++
  29817. msglen |= int(b&0x7F) << shift
  29818. if b < 0x80 {
  29819. break
  29820. }
  29821. }
  29822. if msglen < 0 {
  29823. return ErrInvalidLengthApi
  29824. }
  29825. postIndex := iNdEx + msglen
  29826. if postIndex < 0 {
  29827. return ErrInvalidLengthApi
  29828. }
  29829. if postIndex > l {
  29830. return io.ErrUnexpectedEOF
  29831. }
  29832. if m.Cpu == nil {
  29833. m.Cpu = &WindowsCpuUsage{}
  29834. }
  29835. if err := m.Cpu.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  29836. return err
  29837. }
  29838. iNdEx = postIndex
  29839. case 2:
  29840. if wireType != 2 {
  29841. return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType)
  29842. }
  29843. var msglen int
  29844. for shift := uint(0); ; shift += 7 {
  29845. if shift >= 64 {
  29846. return ErrIntOverflowApi
  29847. }
  29848. if iNdEx >= l {
  29849. return io.ErrUnexpectedEOF
  29850. }
  29851. b := dAtA[iNdEx]
  29852. iNdEx++
  29853. msglen |= int(b&0x7F) << shift
  29854. if b < 0x80 {
  29855. break
  29856. }
  29857. }
  29858. if msglen < 0 {
  29859. return ErrInvalidLengthApi
  29860. }
  29861. postIndex := iNdEx + msglen
  29862. if postIndex < 0 {
  29863. return ErrInvalidLengthApi
  29864. }
  29865. if postIndex > l {
  29866. return io.ErrUnexpectedEOF
  29867. }
  29868. if m.Memory == nil {
  29869. m.Memory = &WindowsMemoryUsage{}
  29870. }
  29871. if err := m.Memory.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  29872. return err
  29873. }
  29874. iNdEx = postIndex
  29875. case 3:
  29876. if wireType != 2 {
  29877. return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType)
  29878. }
  29879. var msglen int
  29880. for shift := uint(0); ; shift += 7 {
  29881. if shift >= 64 {
  29882. return ErrIntOverflowApi
  29883. }
  29884. if iNdEx >= l {
  29885. return io.ErrUnexpectedEOF
  29886. }
  29887. b := dAtA[iNdEx]
  29888. iNdEx++
  29889. msglen |= int(b&0x7F) << shift
  29890. if b < 0x80 {
  29891. break
  29892. }
  29893. }
  29894. if msglen < 0 {
  29895. return ErrInvalidLengthApi
  29896. }
  29897. postIndex := iNdEx + msglen
  29898. if postIndex < 0 {
  29899. return ErrInvalidLengthApi
  29900. }
  29901. if postIndex > l {
  29902. return io.ErrUnexpectedEOF
  29903. }
  29904. if m.Network == nil {
  29905. m.Network = &WindowsNetworkUsage{}
  29906. }
  29907. if err := m.Network.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  29908. return err
  29909. }
  29910. iNdEx = postIndex
  29911. case 4:
  29912. if wireType != 2 {
  29913. return fmt.Errorf("proto: wrong wireType = %d for field Process", wireType)
  29914. }
  29915. var msglen int
  29916. for shift := uint(0); ; shift += 7 {
  29917. if shift >= 64 {
  29918. return ErrIntOverflowApi
  29919. }
  29920. if iNdEx >= l {
  29921. return io.ErrUnexpectedEOF
  29922. }
  29923. b := dAtA[iNdEx]
  29924. iNdEx++
  29925. msglen |= int(b&0x7F) << shift
  29926. if b < 0x80 {
  29927. break
  29928. }
  29929. }
  29930. if msglen < 0 {
  29931. return ErrInvalidLengthApi
  29932. }
  29933. postIndex := iNdEx + msglen
  29934. if postIndex < 0 {
  29935. return ErrInvalidLengthApi
  29936. }
  29937. if postIndex > l {
  29938. return io.ErrUnexpectedEOF
  29939. }
  29940. if m.Process == nil {
  29941. m.Process = &WindowsProcessUsage{}
  29942. }
  29943. if err := m.Process.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  29944. return err
  29945. }
  29946. iNdEx = postIndex
  29947. case 5:
  29948. if wireType != 2 {
  29949. return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType)
  29950. }
  29951. var msglen int
  29952. for shift := uint(0); ; shift += 7 {
  29953. if shift >= 64 {
  29954. return ErrIntOverflowApi
  29955. }
  29956. if iNdEx >= l {
  29957. return io.ErrUnexpectedEOF
  29958. }
  29959. b := dAtA[iNdEx]
  29960. iNdEx++
  29961. msglen |= int(b&0x7F) << shift
  29962. if b < 0x80 {
  29963. break
  29964. }
  29965. }
  29966. if msglen < 0 {
  29967. return ErrInvalidLengthApi
  29968. }
  29969. postIndex := iNdEx + msglen
  29970. if postIndex < 0 {
  29971. return ErrInvalidLengthApi
  29972. }
  29973. if postIndex > l {
  29974. return io.ErrUnexpectedEOF
  29975. }
  29976. m.Containers = append(m.Containers, &WindowsContainerStats{})
  29977. if err := m.Containers[len(m.Containers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  29978. return err
  29979. }
  29980. iNdEx = postIndex
  29981. default:
  29982. iNdEx = preIndex
  29983. skippy, err := skipApi(dAtA[iNdEx:])
  29984. if err != nil {
  29985. return err
  29986. }
  29987. if (skippy < 0) || (iNdEx+skippy) < 0 {
  29988. return ErrInvalidLengthApi
  29989. }
  29990. if (iNdEx + skippy) > l {
  29991. return io.ErrUnexpectedEOF
  29992. }
  29993. iNdEx += skippy
  29994. }
  29995. }
  29996. if iNdEx > l {
  29997. return io.ErrUnexpectedEOF
  29998. }
  29999. return nil
  30000. }
  30001. func (m *NetworkUsage) Unmarshal(dAtA []byte) error {
  30002. l := len(dAtA)
  30003. iNdEx := 0
  30004. for iNdEx < l {
  30005. preIndex := iNdEx
  30006. var wire uint64
  30007. for shift := uint(0); ; shift += 7 {
  30008. if shift >= 64 {
  30009. return ErrIntOverflowApi
  30010. }
  30011. if iNdEx >= l {
  30012. return io.ErrUnexpectedEOF
  30013. }
  30014. b := dAtA[iNdEx]
  30015. iNdEx++
  30016. wire |= uint64(b&0x7F) << shift
  30017. if b < 0x80 {
  30018. break
  30019. }
  30020. }
  30021. fieldNum := int32(wire >> 3)
  30022. wireType := int(wire & 0x7)
  30023. if wireType == 4 {
  30024. return fmt.Errorf("proto: NetworkUsage: wiretype end group for non-group")
  30025. }
  30026. if fieldNum <= 0 {
  30027. return fmt.Errorf("proto: NetworkUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  30028. }
  30029. switch fieldNum {
  30030. case 1:
  30031. if wireType != 0 {
  30032. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  30033. }
  30034. m.Timestamp = 0
  30035. for shift := uint(0); ; shift += 7 {
  30036. if shift >= 64 {
  30037. return ErrIntOverflowApi
  30038. }
  30039. if iNdEx >= l {
  30040. return io.ErrUnexpectedEOF
  30041. }
  30042. b := dAtA[iNdEx]
  30043. iNdEx++
  30044. m.Timestamp |= int64(b&0x7F) << shift
  30045. if b < 0x80 {
  30046. break
  30047. }
  30048. }
  30049. case 2:
  30050. if wireType != 2 {
  30051. return fmt.Errorf("proto: wrong wireType = %d for field DefaultInterface", wireType)
  30052. }
  30053. var msglen int
  30054. for shift := uint(0); ; shift += 7 {
  30055. if shift >= 64 {
  30056. return ErrIntOverflowApi
  30057. }
  30058. if iNdEx >= l {
  30059. return io.ErrUnexpectedEOF
  30060. }
  30061. b := dAtA[iNdEx]
  30062. iNdEx++
  30063. msglen |= int(b&0x7F) << shift
  30064. if b < 0x80 {
  30065. break
  30066. }
  30067. }
  30068. if msglen < 0 {
  30069. return ErrInvalidLengthApi
  30070. }
  30071. postIndex := iNdEx + msglen
  30072. if postIndex < 0 {
  30073. return ErrInvalidLengthApi
  30074. }
  30075. if postIndex > l {
  30076. return io.ErrUnexpectedEOF
  30077. }
  30078. if m.DefaultInterface == nil {
  30079. m.DefaultInterface = &NetworkInterfaceUsage{}
  30080. }
  30081. if err := m.DefaultInterface.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  30082. return err
  30083. }
  30084. iNdEx = postIndex
  30085. case 3:
  30086. if wireType != 2 {
  30087. return fmt.Errorf("proto: wrong wireType = %d for field Interfaces", wireType)
  30088. }
  30089. var msglen int
  30090. for shift := uint(0); ; shift += 7 {
  30091. if shift >= 64 {
  30092. return ErrIntOverflowApi
  30093. }
  30094. if iNdEx >= l {
  30095. return io.ErrUnexpectedEOF
  30096. }
  30097. b := dAtA[iNdEx]
  30098. iNdEx++
  30099. msglen |= int(b&0x7F) << shift
  30100. if b < 0x80 {
  30101. break
  30102. }
  30103. }
  30104. if msglen < 0 {
  30105. return ErrInvalidLengthApi
  30106. }
  30107. postIndex := iNdEx + msglen
  30108. if postIndex < 0 {
  30109. return ErrInvalidLengthApi
  30110. }
  30111. if postIndex > l {
  30112. return io.ErrUnexpectedEOF
  30113. }
  30114. m.Interfaces = append(m.Interfaces, &NetworkInterfaceUsage{})
  30115. if err := m.Interfaces[len(m.Interfaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  30116. return err
  30117. }
  30118. iNdEx = postIndex
  30119. default:
  30120. iNdEx = preIndex
  30121. skippy, err := skipApi(dAtA[iNdEx:])
  30122. if err != nil {
  30123. return err
  30124. }
  30125. if (skippy < 0) || (iNdEx+skippy) < 0 {
  30126. return ErrInvalidLengthApi
  30127. }
  30128. if (iNdEx + skippy) > l {
  30129. return io.ErrUnexpectedEOF
  30130. }
  30131. iNdEx += skippy
  30132. }
  30133. }
  30134. if iNdEx > l {
  30135. return io.ErrUnexpectedEOF
  30136. }
  30137. return nil
  30138. }
  30139. func (m *WindowsNetworkUsage) Unmarshal(dAtA []byte) error {
  30140. l := len(dAtA)
  30141. iNdEx := 0
  30142. for iNdEx < l {
  30143. preIndex := iNdEx
  30144. var wire uint64
  30145. for shift := uint(0); ; shift += 7 {
  30146. if shift >= 64 {
  30147. return ErrIntOverflowApi
  30148. }
  30149. if iNdEx >= l {
  30150. return io.ErrUnexpectedEOF
  30151. }
  30152. b := dAtA[iNdEx]
  30153. iNdEx++
  30154. wire |= uint64(b&0x7F) << shift
  30155. if b < 0x80 {
  30156. break
  30157. }
  30158. }
  30159. fieldNum := int32(wire >> 3)
  30160. wireType := int(wire & 0x7)
  30161. if wireType == 4 {
  30162. return fmt.Errorf("proto: WindowsNetworkUsage: wiretype end group for non-group")
  30163. }
  30164. if fieldNum <= 0 {
  30165. return fmt.Errorf("proto: WindowsNetworkUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  30166. }
  30167. switch fieldNum {
  30168. case 1:
  30169. if wireType != 0 {
  30170. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  30171. }
  30172. m.Timestamp = 0
  30173. for shift := uint(0); ; shift += 7 {
  30174. if shift >= 64 {
  30175. return ErrIntOverflowApi
  30176. }
  30177. if iNdEx >= l {
  30178. return io.ErrUnexpectedEOF
  30179. }
  30180. b := dAtA[iNdEx]
  30181. iNdEx++
  30182. m.Timestamp |= int64(b&0x7F) << shift
  30183. if b < 0x80 {
  30184. break
  30185. }
  30186. }
  30187. case 2:
  30188. if wireType != 2 {
  30189. return fmt.Errorf("proto: wrong wireType = %d for field DefaultInterface", wireType)
  30190. }
  30191. var msglen int
  30192. for shift := uint(0); ; shift += 7 {
  30193. if shift >= 64 {
  30194. return ErrIntOverflowApi
  30195. }
  30196. if iNdEx >= l {
  30197. return io.ErrUnexpectedEOF
  30198. }
  30199. b := dAtA[iNdEx]
  30200. iNdEx++
  30201. msglen |= int(b&0x7F) << shift
  30202. if b < 0x80 {
  30203. break
  30204. }
  30205. }
  30206. if msglen < 0 {
  30207. return ErrInvalidLengthApi
  30208. }
  30209. postIndex := iNdEx + msglen
  30210. if postIndex < 0 {
  30211. return ErrInvalidLengthApi
  30212. }
  30213. if postIndex > l {
  30214. return io.ErrUnexpectedEOF
  30215. }
  30216. if m.DefaultInterface == nil {
  30217. m.DefaultInterface = &WindowsNetworkInterfaceUsage{}
  30218. }
  30219. if err := m.DefaultInterface.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  30220. return err
  30221. }
  30222. iNdEx = postIndex
  30223. case 3:
  30224. if wireType != 2 {
  30225. return fmt.Errorf("proto: wrong wireType = %d for field Interfaces", wireType)
  30226. }
  30227. var msglen int
  30228. for shift := uint(0); ; shift += 7 {
  30229. if shift >= 64 {
  30230. return ErrIntOverflowApi
  30231. }
  30232. if iNdEx >= l {
  30233. return io.ErrUnexpectedEOF
  30234. }
  30235. b := dAtA[iNdEx]
  30236. iNdEx++
  30237. msglen |= int(b&0x7F) << shift
  30238. if b < 0x80 {
  30239. break
  30240. }
  30241. }
  30242. if msglen < 0 {
  30243. return ErrInvalidLengthApi
  30244. }
  30245. postIndex := iNdEx + msglen
  30246. if postIndex < 0 {
  30247. return ErrInvalidLengthApi
  30248. }
  30249. if postIndex > l {
  30250. return io.ErrUnexpectedEOF
  30251. }
  30252. m.Interfaces = append(m.Interfaces, &WindowsNetworkInterfaceUsage{})
  30253. if err := m.Interfaces[len(m.Interfaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  30254. return err
  30255. }
  30256. iNdEx = postIndex
  30257. default:
  30258. iNdEx = preIndex
  30259. skippy, err := skipApi(dAtA[iNdEx:])
  30260. if err != nil {
  30261. return err
  30262. }
  30263. if (skippy < 0) || (iNdEx+skippy) < 0 {
  30264. return ErrInvalidLengthApi
  30265. }
  30266. if (iNdEx + skippy) > l {
  30267. return io.ErrUnexpectedEOF
  30268. }
  30269. iNdEx += skippy
  30270. }
  30271. }
  30272. if iNdEx > l {
  30273. return io.ErrUnexpectedEOF
  30274. }
  30275. return nil
  30276. }
  30277. func (m *NetworkInterfaceUsage) Unmarshal(dAtA []byte) error {
  30278. l := len(dAtA)
  30279. iNdEx := 0
  30280. for iNdEx < l {
  30281. preIndex := iNdEx
  30282. var wire uint64
  30283. for shift := uint(0); ; shift += 7 {
  30284. if shift >= 64 {
  30285. return ErrIntOverflowApi
  30286. }
  30287. if iNdEx >= l {
  30288. return io.ErrUnexpectedEOF
  30289. }
  30290. b := dAtA[iNdEx]
  30291. iNdEx++
  30292. wire |= uint64(b&0x7F) << shift
  30293. if b < 0x80 {
  30294. break
  30295. }
  30296. }
  30297. fieldNum := int32(wire >> 3)
  30298. wireType := int(wire & 0x7)
  30299. if wireType == 4 {
  30300. return fmt.Errorf("proto: NetworkInterfaceUsage: wiretype end group for non-group")
  30301. }
  30302. if fieldNum <= 0 {
  30303. return fmt.Errorf("proto: NetworkInterfaceUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  30304. }
  30305. switch fieldNum {
  30306. case 1:
  30307. if wireType != 2 {
  30308. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  30309. }
  30310. var stringLen uint64
  30311. for shift := uint(0); ; shift += 7 {
  30312. if shift >= 64 {
  30313. return ErrIntOverflowApi
  30314. }
  30315. if iNdEx >= l {
  30316. return io.ErrUnexpectedEOF
  30317. }
  30318. b := dAtA[iNdEx]
  30319. iNdEx++
  30320. stringLen |= uint64(b&0x7F) << shift
  30321. if b < 0x80 {
  30322. break
  30323. }
  30324. }
  30325. intStringLen := int(stringLen)
  30326. if intStringLen < 0 {
  30327. return ErrInvalidLengthApi
  30328. }
  30329. postIndex := iNdEx + intStringLen
  30330. if postIndex < 0 {
  30331. return ErrInvalidLengthApi
  30332. }
  30333. if postIndex > l {
  30334. return io.ErrUnexpectedEOF
  30335. }
  30336. m.Name = string(dAtA[iNdEx:postIndex])
  30337. iNdEx = postIndex
  30338. case 2:
  30339. if wireType != 2 {
  30340. return fmt.Errorf("proto: wrong wireType = %d for field RxBytes", wireType)
  30341. }
  30342. var msglen int
  30343. for shift := uint(0); ; shift += 7 {
  30344. if shift >= 64 {
  30345. return ErrIntOverflowApi
  30346. }
  30347. if iNdEx >= l {
  30348. return io.ErrUnexpectedEOF
  30349. }
  30350. b := dAtA[iNdEx]
  30351. iNdEx++
  30352. msglen |= int(b&0x7F) << shift
  30353. if b < 0x80 {
  30354. break
  30355. }
  30356. }
  30357. if msglen < 0 {
  30358. return ErrInvalidLengthApi
  30359. }
  30360. postIndex := iNdEx + msglen
  30361. if postIndex < 0 {
  30362. return ErrInvalidLengthApi
  30363. }
  30364. if postIndex > l {
  30365. return io.ErrUnexpectedEOF
  30366. }
  30367. if m.RxBytes == nil {
  30368. m.RxBytes = &UInt64Value{}
  30369. }
  30370. if err := m.RxBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  30371. return err
  30372. }
  30373. iNdEx = postIndex
  30374. case 3:
  30375. if wireType != 2 {
  30376. return fmt.Errorf("proto: wrong wireType = %d for field RxErrors", wireType)
  30377. }
  30378. var msglen int
  30379. for shift := uint(0); ; shift += 7 {
  30380. if shift >= 64 {
  30381. return ErrIntOverflowApi
  30382. }
  30383. if iNdEx >= l {
  30384. return io.ErrUnexpectedEOF
  30385. }
  30386. b := dAtA[iNdEx]
  30387. iNdEx++
  30388. msglen |= int(b&0x7F) << shift
  30389. if b < 0x80 {
  30390. break
  30391. }
  30392. }
  30393. if msglen < 0 {
  30394. return ErrInvalidLengthApi
  30395. }
  30396. postIndex := iNdEx + msglen
  30397. if postIndex < 0 {
  30398. return ErrInvalidLengthApi
  30399. }
  30400. if postIndex > l {
  30401. return io.ErrUnexpectedEOF
  30402. }
  30403. if m.RxErrors == nil {
  30404. m.RxErrors = &UInt64Value{}
  30405. }
  30406. if err := m.RxErrors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  30407. return err
  30408. }
  30409. iNdEx = postIndex
  30410. case 4:
  30411. if wireType != 2 {
  30412. return fmt.Errorf("proto: wrong wireType = %d for field TxBytes", wireType)
  30413. }
  30414. var msglen int
  30415. for shift := uint(0); ; shift += 7 {
  30416. if shift >= 64 {
  30417. return ErrIntOverflowApi
  30418. }
  30419. if iNdEx >= l {
  30420. return io.ErrUnexpectedEOF
  30421. }
  30422. b := dAtA[iNdEx]
  30423. iNdEx++
  30424. msglen |= int(b&0x7F) << shift
  30425. if b < 0x80 {
  30426. break
  30427. }
  30428. }
  30429. if msglen < 0 {
  30430. return ErrInvalidLengthApi
  30431. }
  30432. postIndex := iNdEx + msglen
  30433. if postIndex < 0 {
  30434. return ErrInvalidLengthApi
  30435. }
  30436. if postIndex > l {
  30437. return io.ErrUnexpectedEOF
  30438. }
  30439. if m.TxBytes == nil {
  30440. m.TxBytes = &UInt64Value{}
  30441. }
  30442. if err := m.TxBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  30443. return err
  30444. }
  30445. iNdEx = postIndex
  30446. case 5:
  30447. if wireType != 2 {
  30448. return fmt.Errorf("proto: wrong wireType = %d for field TxErrors", wireType)
  30449. }
  30450. var msglen int
  30451. for shift := uint(0); ; shift += 7 {
  30452. if shift >= 64 {
  30453. return ErrIntOverflowApi
  30454. }
  30455. if iNdEx >= l {
  30456. return io.ErrUnexpectedEOF
  30457. }
  30458. b := dAtA[iNdEx]
  30459. iNdEx++
  30460. msglen |= int(b&0x7F) << shift
  30461. if b < 0x80 {
  30462. break
  30463. }
  30464. }
  30465. if msglen < 0 {
  30466. return ErrInvalidLengthApi
  30467. }
  30468. postIndex := iNdEx + msglen
  30469. if postIndex < 0 {
  30470. return ErrInvalidLengthApi
  30471. }
  30472. if postIndex > l {
  30473. return io.ErrUnexpectedEOF
  30474. }
  30475. if m.TxErrors == nil {
  30476. m.TxErrors = &UInt64Value{}
  30477. }
  30478. if err := m.TxErrors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  30479. return err
  30480. }
  30481. iNdEx = postIndex
  30482. default:
  30483. iNdEx = preIndex
  30484. skippy, err := skipApi(dAtA[iNdEx:])
  30485. if err != nil {
  30486. return err
  30487. }
  30488. if (skippy < 0) || (iNdEx+skippy) < 0 {
  30489. return ErrInvalidLengthApi
  30490. }
  30491. if (iNdEx + skippy) > l {
  30492. return io.ErrUnexpectedEOF
  30493. }
  30494. iNdEx += skippy
  30495. }
  30496. }
  30497. if iNdEx > l {
  30498. return io.ErrUnexpectedEOF
  30499. }
  30500. return nil
  30501. }
  30502. func (m *WindowsNetworkInterfaceUsage) Unmarshal(dAtA []byte) error {
  30503. l := len(dAtA)
  30504. iNdEx := 0
  30505. for iNdEx < l {
  30506. preIndex := iNdEx
  30507. var wire uint64
  30508. for shift := uint(0); ; shift += 7 {
  30509. if shift >= 64 {
  30510. return ErrIntOverflowApi
  30511. }
  30512. if iNdEx >= l {
  30513. return io.ErrUnexpectedEOF
  30514. }
  30515. b := dAtA[iNdEx]
  30516. iNdEx++
  30517. wire |= uint64(b&0x7F) << shift
  30518. if b < 0x80 {
  30519. break
  30520. }
  30521. }
  30522. fieldNum := int32(wire >> 3)
  30523. wireType := int(wire & 0x7)
  30524. if wireType == 4 {
  30525. return fmt.Errorf("proto: WindowsNetworkInterfaceUsage: wiretype end group for non-group")
  30526. }
  30527. if fieldNum <= 0 {
  30528. return fmt.Errorf("proto: WindowsNetworkInterfaceUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  30529. }
  30530. switch fieldNum {
  30531. case 1:
  30532. if wireType != 2 {
  30533. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  30534. }
  30535. var stringLen uint64
  30536. for shift := uint(0); ; shift += 7 {
  30537. if shift >= 64 {
  30538. return ErrIntOverflowApi
  30539. }
  30540. if iNdEx >= l {
  30541. return io.ErrUnexpectedEOF
  30542. }
  30543. b := dAtA[iNdEx]
  30544. iNdEx++
  30545. stringLen |= uint64(b&0x7F) << shift
  30546. if b < 0x80 {
  30547. break
  30548. }
  30549. }
  30550. intStringLen := int(stringLen)
  30551. if intStringLen < 0 {
  30552. return ErrInvalidLengthApi
  30553. }
  30554. postIndex := iNdEx + intStringLen
  30555. if postIndex < 0 {
  30556. return ErrInvalidLengthApi
  30557. }
  30558. if postIndex > l {
  30559. return io.ErrUnexpectedEOF
  30560. }
  30561. m.Name = string(dAtA[iNdEx:postIndex])
  30562. iNdEx = postIndex
  30563. case 2:
  30564. if wireType != 2 {
  30565. return fmt.Errorf("proto: wrong wireType = %d for field RxBytes", wireType)
  30566. }
  30567. var msglen int
  30568. for shift := uint(0); ; shift += 7 {
  30569. if shift >= 64 {
  30570. return ErrIntOverflowApi
  30571. }
  30572. if iNdEx >= l {
  30573. return io.ErrUnexpectedEOF
  30574. }
  30575. b := dAtA[iNdEx]
  30576. iNdEx++
  30577. msglen |= int(b&0x7F) << shift
  30578. if b < 0x80 {
  30579. break
  30580. }
  30581. }
  30582. if msglen < 0 {
  30583. return ErrInvalidLengthApi
  30584. }
  30585. postIndex := iNdEx + msglen
  30586. if postIndex < 0 {
  30587. return ErrInvalidLengthApi
  30588. }
  30589. if postIndex > l {
  30590. return io.ErrUnexpectedEOF
  30591. }
  30592. if m.RxBytes == nil {
  30593. m.RxBytes = &UInt64Value{}
  30594. }
  30595. if err := m.RxBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  30596. return err
  30597. }
  30598. iNdEx = postIndex
  30599. case 3:
  30600. if wireType != 2 {
  30601. return fmt.Errorf("proto: wrong wireType = %d for field RxPacketsDropped", wireType)
  30602. }
  30603. var msglen int
  30604. for shift := uint(0); ; shift += 7 {
  30605. if shift >= 64 {
  30606. return ErrIntOverflowApi
  30607. }
  30608. if iNdEx >= l {
  30609. return io.ErrUnexpectedEOF
  30610. }
  30611. b := dAtA[iNdEx]
  30612. iNdEx++
  30613. msglen |= int(b&0x7F) << shift
  30614. if b < 0x80 {
  30615. break
  30616. }
  30617. }
  30618. if msglen < 0 {
  30619. return ErrInvalidLengthApi
  30620. }
  30621. postIndex := iNdEx + msglen
  30622. if postIndex < 0 {
  30623. return ErrInvalidLengthApi
  30624. }
  30625. if postIndex > l {
  30626. return io.ErrUnexpectedEOF
  30627. }
  30628. if m.RxPacketsDropped == nil {
  30629. m.RxPacketsDropped = &UInt64Value{}
  30630. }
  30631. if err := m.RxPacketsDropped.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  30632. return err
  30633. }
  30634. iNdEx = postIndex
  30635. case 4:
  30636. if wireType != 2 {
  30637. return fmt.Errorf("proto: wrong wireType = %d for field TxBytes", wireType)
  30638. }
  30639. var msglen int
  30640. for shift := uint(0); ; shift += 7 {
  30641. if shift >= 64 {
  30642. return ErrIntOverflowApi
  30643. }
  30644. if iNdEx >= l {
  30645. return io.ErrUnexpectedEOF
  30646. }
  30647. b := dAtA[iNdEx]
  30648. iNdEx++
  30649. msglen |= int(b&0x7F) << shift
  30650. if b < 0x80 {
  30651. break
  30652. }
  30653. }
  30654. if msglen < 0 {
  30655. return ErrInvalidLengthApi
  30656. }
  30657. postIndex := iNdEx + msglen
  30658. if postIndex < 0 {
  30659. return ErrInvalidLengthApi
  30660. }
  30661. if postIndex > l {
  30662. return io.ErrUnexpectedEOF
  30663. }
  30664. if m.TxBytes == nil {
  30665. m.TxBytes = &UInt64Value{}
  30666. }
  30667. if err := m.TxBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  30668. return err
  30669. }
  30670. iNdEx = postIndex
  30671. case 5:
  30672. if wireType != 2 {
  30673. return fmt.Errorf("proto: wrong wireType = %d for field TxPacketsDropped", wireType)
  30674. }
  30675. var msglen int
  30676. for shift := uint(0); ; shift += 7 {
  30677. if shift >= 64 {
  30678. return ErrIntOverflowApi
  30679. }
  30680. if iNdEx >= l {
  30681. return io.ErrUnexpectedEOF
  30682. }
  30683. b := dAtA[iNdEx]
  30684. iNdEx++
  30685. msglen |= int(b&0x7F) << shift
  30686. if b < 0x80 {
  30687. break
  30688. }
  30689. }
  30690. if msglen < 0 {
  30691. return ErrInvalidLengthApi
  30692. }
  30693. postIndex := iNdEx + msglen
  30694. if postIndex < 0 {
  30695. return ErrInvalidLengthApi
  30696. }
  30697. if postIndex > l {
  30698. return io.ErrUnexpectedEOF
  30699. }
  30700. if m.TxPacketsDropped == nil {
  30701. m.TxPacketsDropped = &UInt64Value{}
  30702. }
  30703. if err := m.TxPacketsDropped.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  30704. return err
  30705. }
  30706. iNdEx = postIndex
  30707. default:
  30708. iNdEx = preIndex
  30709. skippy, err := skipApi(dAtA[iNdEx:])
  30710. if err != nil {
  30711. return err
  30712. }
  30713. if (skippy < 0) || (iNdEx+skippy) < 0 {
  30714. return ErrInvalidLengthApi
  30715. }
  30716. if (iNdEx + skippy) > l {
  30717. return io.ErrUnexpectedEOF
  30718. }
  30719. iNdEx += skippy
  30720. }
  30721. }
  30722. if iNdEx > l {
  30723. return io.ErrUnexpectedEOF
  30724. }
  30725. return nil
  30726. }
  30727. func (m *ProcessUsage) Unmarshal(dAtA []byte) error {
  30728. l := len(dAtA)
  30729. iNdEx := 0
  30730. for iNdEx < l {
  30731. preIndex := iNdEx
  30732. var wire uint64
  30733. for shift := uint(0); ; shift += 7 {
  30734. if shift >= 64 {
  30735. return ErrIntOverflowApi
  30736. }
  30737. if iNdEx >= l {
  30738. return io.ErrUnexpectedEOF
  30739. }
  30740. b := dAtA[iNdEx]
  30741. iNdEx++
  30742. wire |= uint64(b&0x7F) << shift
  30743. if b < 0x80 {
  30744. break
  30745. }
  30746. }
  30747. fieldNum := int32(wire >> 3)
  30748. wireType := int(wire & 0x7)
  30749. if wireType == 4 {
  30750. return fmt.Errorf("proto: ProcessUsage: wiretype end group for non-group")
  30751. }
  30752. if fieldNum <= 0 {
  30753. return fmt.Errorf("proto: ProcessUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  30754. }
  30755. switch fieldNum {
  30756. case 1:
  30757. if wireType != 0 {
  30758. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  30759. }
  30760. m.Timestamp = 0
  30761. for shift := uint(0); ; shift += 7 {
  30762. if shift >= 64 {
  30763. return ErrIntOverflowApi
  30764. }
  30765. if iNdEx >= l {
  30766. return io.ErrUnexpectedEOF
  30767. }
  30768. b := dAtA[iNdEx]
  30769. iNdEx++
  30770. m.Timestamp |= int64(b&0x7F) << shift
  30771. if b < 0x80 {
  30772. break
  30773. }
  30774. }
  30775. case 2:
  30776. if wireType != 2 {
  30777. return fmt.Errorf("proto: wrong wireType = %d for field ProcessCount", wireType)
  30778. }
  30779. var msglen int
  30780. for shift := uint(0); ; shift += 7 {
  30781. if shift >= 64 {
  30782. return ErrIntOverflowApi
  30783. }
  30784. if iNdEx >= l {
  30785. return io.ErrUnexpectedEOF
  30786. }
  30787. b := dAtA[iNdEx]
  30788. iNdEx++
  30789. msglen |= int(b&0x7F) << shift
  30790. if b < 0x80 {
  30791. break
  30792. }
  30793. }
  30794. if msglen < 0 {
  30795. return ErrInvalidLengthApi
  30796. }
  30797. postIndex := iNdEx + msglen
  30798. if postIndex < 0 {
  30799. return ErrInvalidLengthApi
  30800. }
  30801. if postIndex > l {
  30802. return io.ErrUnexpectedEOF
  30803. }
  30804. if m.ProcessCount == nil {
  30805. m.ProcessCount = &UInt64Value{}
  30806. }
  30807. if err := m.ProcessCount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  30808. return err
  30809. }
  30810. iNdEx = postIndex
  30811. default:
  30812. iNdEx = preIndex
  30813. skippy, err := skipApi(dAtA[iNdEx:])
  30814. if err != nil {
  30815. return err
  30816. }
  30817. if (skippy < 0) || (iNdEx+skippy) < 0 {
  30818. return ErrInvalidLengthApi
  30819. }
  30820. if (iNdEx + skippy) > l {
  30821. return io.ErrUnexpectedEOF
  30822. }
  30823. iNdEx += skippy
  30824. }
  30825. }
  30826. if iNdEx > l {
  30827. return io.ErrUnexpectedEOF
  30828. }
  30829. return nil
  30830. }
  30831. func (m *WindowsProcessUsage) Unmarshal(dAtA []byte) error {
  30832. l := len(dAtA)
  30833. iNdEx := 0
  30834. for iNdEx < l {
  30835. preIndex := iNdEx
  30836. var wire uint64
  30837. for shift := uint(0); ; shift += 7 {
  30838. if shift >= 64 {
  30839. return ErrIntOverflowApi
  30840. }
  30841. if iNdEx >= l {
  30842. return io.ErrUnexpectedEOF
  30843. }
  30844. b := dAtA[iNdEx]
  30845. iNdEx++
  30846. wire |= uint64(b&0x7F) << shift
  30847. if b < 0x80 {
  30848. break
  30849. }
  30850. }
  30851. fieldNum := int32(wire >> 3)
  30852. wireType := int(wire & 0x7)
  30853. if wireType == 4 {
  30854. return fmt.Errorf("proto: WindowsProcessUsage: wiretype end group for non-group")
  30855. }
  30856. if fieldNum <= 0 {
  30857. return fmt.Errorf("proto: WindowsProcessUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  30858. }
  30859. switch fieldNum {
  30860. case 1:
  30861. if wireType != 0 {
  30862. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  30863. }
  30864. m.Timestamp = 0
  30865. for shift := uint(0); ; shift += 7 {
  30866. if shift >= 64 {
  30867. return ErrIntOverflowApi
  30868. }
  30869. if iNdEx >= l {
  30870. return io.ErrUnexpectedEOF
  30871. }
  30872. b := dAtA[iNdEx]
  30873. iNdEx++
  30874. m.Timestamp |= int64(b&0x7F) << shift
  30875. if b < 0x80 {
  30876. break
  30877. }
  30878. }
  30879. case 2:
  30880. if wireType != 2 {
  30881. return fmt.Errorf("proto: wrong wireType = %d for field ProcessCount", wireType)
  30882. }
  30883. var msglen int
  30884. for shift := uint(0); ; shift += 7 {
  30885. if shift >= 64 {
  30886. return ErrIntOverflowApi
  30887. }
  30888. if iNdEx >= l {
  30889. return io.ErrUnexpectedEOF
  30890. }
  30891. b := dAtA[iNdEx]
  30892. iNdEx++
  30893. msglen |= int(b&0x7F) << shift
  30894. if b < 0x80 {
  30895. break
  30896. }
  30897. }
  30898. if msglen < 0 {
  30899. return ErrInvalidLengthApi
  30900. }
  30901. postIndex := iNdEx + msglen
  30902. if postIndex < 0 {
  30903. return ErrInvalidLengthApi
  30904. }
  30905. if postIndex > l {
  30906. return io.ErrUnexpectedEOF
  30907. }
  30908. if m.ProcessCount == nil {
  30909. m.ProcessCount = &UInt64Value{}
  30910. }
  30911. if err := m.ProcessCount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  30912. return err
  30913. }
  30914. iNdEx = postIndex
  30915. default:
  30916. iNdEx = preIndex
  30917. skippy, err := skipApi(dAtA[iNdEx:])
  30918. if err != nil {
  30919. return err
  30920. }
  30921. if (skippy < 0) || (iNdEx+skippy) < 0 {
  30922. return ErrInvalidLengthApi
  30923. }
  30924. if (iNdEx + skippy) > l {
  30925. return io.ErrUnexpectedEOF
  30926. }
  30927. iNdEx += skippy
  30928. }
  30929. }
  30930. if iNdEx > l {
  30931. return io.ErrUnexpectedEOF
  30932. }
  30933. return nil
  30934. }
  30935. func (m *ImageSpec) Unmarshal(dAtA []byte) error {
  30936. l := len(dAtA)
  30937. iNdEx := 0
  30938. for iNdEx < l {
  30939. preIndex := iNdEx
  30940. var wire uint64
  30941. for shift := uint(0); ; shift += 7 {
  30942. if shift >= 64 {
  30943. return ErrIntOverflowApi
  30944. }
  30945. if iNdEx >= l {
  30946. return io.ErrUnexpectedEOF
  30947. }
  30948. b := dAtA[iNdEx]
  30949. iNdEx++
  30950. wire |= uint64(b&0x7F) << shift
  30951. if b < 0x80 {
  30952. break
  30953. }
  30954. }
  30955. fieldNum := int32(wire >> 3)
  30956. wireType := int(wire & 0x7)
  30957. if wireType == 4 {
  30958. return fmt.Errorf("proto: ImageSpec: wiretype end group for non-group")
  30959. }
  30960. if fieldNum <= 0 {
  30961. return fmt.Errorf("proto: ImageSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  30962. }
  30963. switch fieldNum {
  30964. case 1:
  30965. if wireType != 2 {
  30966. return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
  30967. }
  30968. var stringLen uint64
  30969. for shift := uint(0); ; shift += 7 {
  30970. if shift >= 64 {
  30971. return ErrIntOverflowApi
  30972. }
  30973. if iNdEx >= l {
  30974. return io.ErrUnexpectedEOF
  30975. }
  30976. b := dAtA[iNdEx]
  30977. iNdEx++
  30978. stringLen |= uint64(b&0x7F) << shift
  30979. if b < 0x80 {
  30980. break
  30981. }
  30982. }
  30983. intStringLen := int(stringLen)
  30984. if intStringLen < 0 {
  30985. return ErrInvalidLengthApi
  30986. }
  30987. postIndex := iNdEx + intStringLen
  30988. if postIndex < 0 {
  30989. return ErrInvalidLengthApi
  30990. }
  30991. if postIndex > l {
  30992. return io.ErrUnexpectedEOF
  30993. }
  30994. m.Image = string(dAtA[iNdEx:postIndex])
  30995. iNdEx = postIndex
  30996. case 2:
  30997. if wireType != 2 {
  30998. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  30999. }
  31000. var msglen int
  31001. for shift := uint(0); ; shift += 7 {
  31002. if shift >= 64 {
  31003. return ErrIntOverflowApi
  31004. }
  31005. if iNdEx >= l {
  31006. return io.ErrUnexpectedEOF
  31007. }
  31008. b := dAtA[iNdEx]
  31009. iNdEx++
  31010. msglen |= int(b&0x7F) << shift
  31011. if b < 0x80 {
  31012. break
  31013. }
  31014. }
  31015. if msglen < 0 {
  31016. return ErrInvalidLengthApi
  31017. }
  31018. postIndex := iNdEx + msglen
  31019. if postIndex < 0 {
  31020. return ErrInvalidLengthApi
  31021. }
  31022. if postIndex > l {
  31023. return io.ErrUnexpectedEOF
  31024. }
  31025. if m.Annotations == nil {
  31026. m.Annotations = make(map[string]string)
  31027. }
  31028. var mapkey string
  31029. var mapvalue string
  31030. for iNdEx < postIndex {
  31031. entryPreIndex := iNdEx
  31032. var wire uint64
  31033. for shift := uint(0); ; shift += 7 {
  31034. if shift >= 64 {
  31035. return ErrIntOverflowApi
  31036. }
  31037. if iNdEx >= l {
  31038. return io.ErrUnexpectedEOF
  31039. }
  31040. b := dAtA[iNdEx]
  31041. iNdEx++
  31042. wire |= uint64(b&0x7F) << shift
  31043. if b < 0x80 {
  31044. break
  31045. }
  31046. }
  31047. fieldNum := int32(wire >> 3)
  31048. if fieldNum == 1 {
  31049. var stringLenmapkey uint64
  31050. for shift := uint(0); ; shift += 7 {
  31051. if shift >= 64 {
  31052. return ErrIntOverflowApi
  31053. }
  31054. if iNdEx >= l {
  31055. return io.ErrUnexpectedEOF
  31056. }
  31057. b := dAtA[iNdEx]
  31058. iNdEx++
  31059. stringLenmapkey |= uint64(b&0x7F) << shift
  31060. if b < 0x80 {
  31061. break
  31062. }
  31063. }
  31064. intStringLenmapkey := int(stringLenmapkey)
  31065. if intStringLenmapkey < 0 {
  31066. return ErrInvalidLengthApi
  31067. }
  31068. postStringIndexmapkey := iNdEx + intStringLenmapkey
  31069. if postStringIndexmapkey < 0 {
  31070. return ErrInvalidLengthApi
  31071. }
  31072. if postStringIndexmapkey > l {
  31073. return io.ErrUnexpectedEOF
  31074. }
  31075. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  31076. iNdEx = postStringIndexmapkey
  31077. } else if fieldNum == 2 {
  31078. var stringLenmapvalue uint64
  31079. for shift := uint(0); ; shift += 7 {
  31080. if shift >= 64 {
  31081. return ErrIntOverflowApi
  31082. }
  31083. if iNdEx >= l {
  31084. return io.ErrUnexpectedEOF
  31085. }
  31086. b := dAtA[iNdEx]
  31087. iNdEx++
  31088. stringLenmapvalue |= uint64(b&0x7F) << shift
  31089. if b < 0x80 {
  31090. break
  31091. }
  31092. }
  31093. intStringLenmapvalue := int(stringLenmapvalue)
  31094. if intStringLenmapvalue < 0 {
  31095. return ErrInvalidLengthApi
  31096. }
  31097. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  31098. if postStringIndexmapvalue < 0 {
  31099. return ErrInvalidLengthApi
  31100. }
  31101. if postStringIndexmapvalue > l {
  31102. return io.ErrUnexpectedEOF
  31103. }
  31104. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  31105. iNdEx = postStringIndexmapvalue
  31106. } else {
  31107. iNdEx = entryPreIndex
  31108. skippy, err := skipApi(dAtA[iNdEx:])
  31109. if err != nil {
  31110. return err
  31111. }
  31112. if (skippy < 0) || (iNdEx+skippy) < 0 {
  31113. return ErrInvalidLengthApi
  31114. }
  31115. if (iNdEx + skippy) > postIndex {
  31116. return io.ErrUnexpectedEOF
  31117. }
  31118. iNdEx += skippy
  31119. }
  31120. }
  31121. m.Annotations[mapkey] = mapvalue
  31122. iNdEx = postIndex
  31123. case 18:
  31124. if wireType != 2 {
  31125. return fmt.Errorf("proto: wrong wireType = %d for field UserSpecifiedImage", wireType)
  31126. }
  31127. var stringLen uint64
  31128. for shift := uint(0); ; shift += 7 {
  31129. if shift >= 64 {
  31130. return ErrIntOverflowApi
  31131. }
  31132. if iNdEx >= l {
  31133. return io.ErrUnexpectedEOF
  31134. }
  31135. b := dAtA[iNdEx]
  31136. iNdEx++
  31137. stringLen |= uint64(b&0x7F) << shift
  31138. if b < 0x80 {
  31139. break
  31140. }
  31141. }
  31142. intStringLen := int(stringLen)
  31143. if intStringLen < 0 {
  31144. return ErrInvalidLengthApi
  31145. }
  31146. postIndex := iNdEx + intStringLen
  31147. if postIndex < 0 {
  31148. return ErrInvalidLengthApi
  31149. }
  31150. if postIndex > l {
  31151. return io.ErrUnexpectedEOF
  31152. }
  31153. m.UserSpecifiedImage = string(dAtA[iNdEx:postIndex])
  31154. iNdEx = postIndex
  31155. default:
  31156. iNdEx = preIndex
  31157. skippy, err := skipApi(dAtA[iNdEx:])
  31158. if err != nil {
  31159. return err
  31160. }
  31161. if (skippy < 0) || (iNdEx+skippy) < 0 {
  31162. return ErrInvalidLengthApi
  31163. }
  31164. if (iNdEx + skippy) > l {
  31165. return io.ErrUnexpectedEOF
  31166. }
  31167. iNdEx += skippy
  31168. }
  31169. }
  31170. if iNdEx > l {
  31171. return io.ErrUnexpectedEOF
  31172. }
  31173. return nil
  31174. }
  31175. func (m *KeyValue) Unmarshal(dAtA []byte) error {
  31176. l := len(dAtA)
  31177. iNdEx := 0
  31178. for iNdEx < l {
  31179. preIndex := iNdEx
  31180. var wire uint64
  31181. for shift := uint(0); ; shift += 7 {
  31182. if shift >= 64 {
  31183. return ErrIntOverflowApi
  31184. }
  31185. if iNdEx >= l {
  31186. return io.ErrUnexpectedEOF
  31187. }
  31188. b := dAtA[iNdEx]
  31189. iNdEx++
  31190. wire |= uint64(b&0x7F) << shift
  31191. if b < 0x80 {
  31192. break
  31193. }
  31194. }
  31195. fieldNum := int32(wire >> 3)
  31196. wireType := int(wire & 0x7)
  31197. if wireType == 4 {
  31198. return fmt.Errorf("proto: KeyValue: wiretype end group for non-group")
  31199. }
  31200. if fieldNum <= 0 {
  31201. return fmt.Errorf("proto: KeyValue: illegal tag %d (wire type %d)", fieldNum, wire)
  31202. }
  31203. switch fieldNum {
  31204. case 1:
  31205. if wireType != 2 {
  31206. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  31207. }
  31208. var stringLen uint64
  31209. for shift := uint(0); ; shift += 7 {
  31210. if shift >= 64 {
  31211. return ErrIntOverflowApi
  31212. }
  31213. if iNdEx >= l {
  31214. return io.ErrUnexpectedEOF
  31215. }
  31216. b := dAtA[iNdEx]
  31217. iNdEx++
  31218. stringLen |= uint64(b&0x7F) << shift
  31219. if b < 0x80 {
  31220. break
  31221. }
  31222. }
  31223. intStringLen := int(stringLen)
  31224. if intStringLen < 0 {
  31225. return ErrInvalidLengthApi
  31226. }
  31227. postIndex := iNdEx + intStringLen
  31228. if postIndex < 0 {
  31229. return ErrInvalidLengthApi
  31230. }
  31231. if postIndex > l {
  31232. return io.ErrUnexpectedEOF
  31233. }
  31234. m.Key = string(dAtA[iNdEx:postIndex])
  31235. iNdEx = postIndex
  31236. case 2:
  31237. if wireType != 2 {
  31238. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  31239. }
  31240. var stringLen uint64
  31241. for shift := uint(0); ; shift += 7 {
  31242. if shift >= 64 {
  31243. return ErrIntOverflowApi
  31244. }
  31245. if iNdEx >= l {
  31246. return io.ErrUnexpectedEOF
  31247. }
  31248. b := dAtA[iNdEx]
  31249. iNdEx++
  31250. stringLen |= uint64(b&0x7F) << shift
  31251. if b < 0x80 {
  31252. break
  31253. }
  31254. }
  31255. intStringLen := int(stringLen)
  31256. if intStringLen < 0 {
  31257. return ErrInvalidLengthApi
  31258. }
  31259. postIndex := iNdEx + intStringLen
  31260. if postIndex < 0 {
  31261. return ErrInvalidLengthApi
  31262. }
  31263. if postIndex > l {
  31264. return io.ErrUnexpectedEOF
  31265. }
  31266. m.Value = string(dAtA[iNdEx:postIndex])
  31267. iNdEx = postIndex
  31268. default:
  31269. iNdEx = preIndex
  31270. skippy, err := skipApi(dAtA[iNdEx:])
  31271. if err != nil {
  31272. return err
  31273. }
  31274. if (skippy < 0) || (iNdEx+skippy) < 0 {
  31275. return ErrInvalidLengthApi
  31276. }
  31277. if (iNdEx + skippy) > l {
  31278. return io.ErrUnexpectedEOF
  31279. }
  31280. iNdEx += skippy
  31281. }
  31282. }
  31283. if iNdEx > l {
  31284. return io.ErrUnexpectedEOF
  31285. }
  31286. return nil
  31287. }
  31288. func (m *LinuxContainerResources) Unmarshal(dAtA []byte) error {
  31289. l := len(dAtA)
  31290. iNdEx := 0
  31291. for iNdEx < l {
  31292. preIndex := iNdEx
  31293. var wire uint64
  31294. for shift := uint(0); ; shift += 7 {
  31295. if shift >= 64 {
  31296. return ErrIntOverflowApi
  31297. }
  31298. if iNdEx >= l {
  31299. return io.ErrUnexpectedEOF
  31300. }
  31301. b := dAtA[iNdEx]
  31302. iNdEx++
  31303. wire |= uint64(b&0x7F) << shift
  31304. if b < 0x80 {
  31305. break
  31306. }
  31307. }
  31308. fieldNum := int32(wire >> 3)
  31309. wireType := int(wire & 0x7)
  31310. if wireType == 4 {
  31311. return fmt.Errorf("proto: LinuxContainerResources: wiretype end group for non-group")
  31312. }
  31313. if fieldNum <= 0 {
  31314. return fmt.Errorf("proto: LinuxContainerResources: illegal tag %d (wire type %d)", fieldNum, wire)
  31315. }
  31316. switch fieldNum {
  31317. case 1:
  31318. if wireType != 0 {
  31319. return fmt.Errorf("proto: wrong wireType = %d for field CpuPeriod", wireType)
  31320. }
  31321. m.CpuPeriod = 0
  31322. for shift := uint(0); ; shift += 7 {
  31323. if shift >= 64 {
  31324. return ErrIntOverflowApi
  31325. }
  31326. if iNdEx >= l {
  31327. return io.ErrUnexpectedEOF
  31328. }
  31329. b := dAtA[iNdEx]
  31330. iNdEx++
  31331. m.CpuPeriod |= int64(b&0x7F) << shift
  31332. if b < 0x80 {
  31333. break
  31334. }
  31335. }
  31336. case 2:
  31337. if wireType != 0 {
  31338. return fmt.Errorf("proto: wrong wireType = %d for field CpuQuota", wireType)
  31339. }
  31340. m.CpuQuota = 0
  31341. for shift := uint(0); ; shift += 7 {
  31342. if shift >= 64 {
  31343. return ErrIntOverflowApi
  31344. }
  31345. if iNdEx >= l {
  31346. return io.ErrUnexpectedEOF
  31347. }
  31348. b := dAtA[iNdEx]
  31349. iNdEx++
  31350. m.CpuQuota |= int64(b&0x7F) << shift
  31351. if b < 0x80 {
  31352. break
  31353. }
  31354. }
  31355. case 3:
  31356. if wireType != 0 {
  31357. return fmt.Errorf("proto: wrong wireType = %d for field CpuShares", wireType)
  31358. }
  31359. m.CpuShares = 0
  31360. for shift := uint(0); ; shift += 7 {
  31361. if shift >= 64 {
  31362. return ErrIntOverflowApi
  31363. }
  31364. if iNdEx >= l {
  31365. return io.ErrUnexpectedEOF
  31366. }
  31367. b := dAtA[iNdEx]
  31368. iNdEx++
  31369. m.CpuShares |= int64(b&0x7F) << shift
  31370. if b < 0x80 {
  31371. break
  31372. }
  31373. }
  31374. case 4:
  31375. if wireType != 0 {
  31376. return fmt.Errorf("proto: wrong wireType = %d for field MemoryLimitInBytes", wireType)
  31377. }
  31378. m.MemoryLimitInBytes = 0
  31379. for shift := uint(0); ; shift += 7 {
  31380. if shift >= 64 {
  31381. return ErrIntOverflowApi
  31382. }
  31383. if iNdEx >= l {
  31384. return io.ErrUnexpectedEOF
  31385. }
  31386. b := dAtA[iNdEx]
  31387. iNdEx++
  31388. m.MemoryLimitInBytes |= int64(b&0x7F) << shift
  31389. if b < 0x80 {
  31390. break
  31391. }
  31392. }
  31393. case 5:
  31394. if wireType != 0 {
  31395. return fmt.Errorf("proto: wrong wireType = %d for field OomScoreAdj", wireType)
  31396. }
  31397. m.OomScoreAdj = 0
  31398. for shift := uint(0); ; shift += 7 {
  31399. if shift >= 64 {
  31400. return ErrIntOverflowApi
  31401. }
  31402. if iNdEx >= l {
  31403. return io.ErrUnexpectedEOF
  31404. }
  31405. b := dAtA[iNdEx]
  31406. iNdEx++
  31407. m.OomScoreAdj |= int64(b&0x7F) << shift
  31408. if b < 0x80 {
  31409. break
  31410. }
  31411. }
  31412. case 6:
  31413. if wireType != 2 {
  31414. return fmt.Errorf("proto: wrong wireType = %d for field CpusetCpus", wireType)
  31415. }
  31416. var stringLen uint64
  31417. for shift := uint(0); ; shift += 7 {
  31418. if shift >= 64 {
  31419. return ErrIntOverflowApi
  31420. }
  31421. if iNdEx >= l {
  31422. return io.ErrUnexpectedEOF
  31423. }
  31424. b := dAtA[iNdEx]
  31425. iNdEx++
  31426. stringLen |= uint64(b&0x7F) << shift
  31427. if b < 0x80 {
  31428. break
  31429. }
  31430. }
  31431. intStringLen := int(stringLen)
  31432. if intStringLen < 0 {
  31433. return ErrInvalidLengthApi
  31434. }
  31435. postIndex := iNdEx + intStringLen
  31436. if postIndex < 0 {
  31437. return ErrInvalidLengthApi
  31438. }
  31439. if postIndex > l {
  31440. return io.ErrUnexpectedEOF
  31441. }
  31442. m.CpusetCpus = string(dAtA[iNdEx:postIndex])
  31443. iNdEx = postIndex
  31444. case 7:
  31445. if wireType != 2 {
  31446. return fmt.Errorf("proto: wrong wireType = %d for field CpusetMems", wireType)
  31447. }
  31448. var stringLen uint64
  31449. for shift := uint(0); ; shift += 7 {
  31450. if shift >= 64 {
  31451. return ErrIntOverflowApi
  31452. }
  31453. if iNdEx >= l {
  31454. return io.ErrUnexpectedEOF
  31455. }
  31456. b := dAtA[iNdEx]
  31457. iNdEx++
  31458. stringLen |= uint64(b&0x7F) << shift
  31459. if b < 0x80 {
  31460. break
  31461. }
  31462. }
  31463. intStringLen := int(stringLen)
  31464. if intStringLen < 0 {
  31465. return ErrInvalidLengthApi
  31466. }
  31467. postIndex := iNdEx + intStringLen
  31468. if postIndex < 0 {
  31469. return ErrInvalidLengthApi
  31470. }
  31471. if postIndex > l {
  31472. return io.ErrUnexpectedEOF
  31473. }
  31474. m.CpusetMems = string(dAtA[iNdEx:postIndex])
  31475. iNdEx = postIndex
  31476. case 8:
  31477. if wireType != 2 {
  31478. return fmt.Errorf("proto: wrong wireType = %d for field HugepageLimits", wireType)
  31479. }
  31480. var msglen int
  31481. for shift := uint(0); ; shift += 7 {
  31482. if shift >= 64 {
  31483. return ErrIntOverflowApi
  31484. }
  31485. if iNdEx >= l {
  31486. return io.ErrUnexpectedEOF
  31487. }
  31488. b := dAtA[iNdEx]
  31489. iNdEx++
  31490. msglen |= int(b&0x7F) << shift
  31491. if b < 0x80 {
  31492. break
  31493. }
  31494. }
  31495. if msglen < 0 {
  31496. return ErrInvalidLengthApi
  31497. }
  31498. postIndex := iNdEx + msglen
  31499. if postIndex < 0 {
  31500. return ErrInvalidLengthApi
  31501. }
  31502. if postIndex > l {
  31503. return io.ErrUnexpectedEOF
  31504. }
  31505. m.HugepageLimits = append(m.HugepageLimits, &HugepageLimit{})
  31506. if err := m.HugepageLimits[len(m.HugepageLimits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  31507. return err
  31508. }
  31509. iNdEx = postIndex
  31510. case 9:
  31511. if wireType != 2 {
  31512. return fmt.Errorf("proto: wrong wireType = %d for field Unified", wireType)
  31513. }
  31514. var msglen int
  31515. for shift := uint(0); ; shift += 7 {
  31516. if shift >= 64 {
  31517. return ErrIntOverflowApi
  31518. }
  31519. if iNdEx >= l {
  31520. return io.ErrUnexpectedEOF
  31521. }
  31522. b := dAtA[iNdEx]
  31523. iNdEx++
  31524. msglen |= int(b&0x7F) << shift
  31525. if b < 0x80 {
  31526. break
  31527. }
  31528. }
  31529. if msglen < 0 {
  31530. return ErrInvalidLengthApi
  31531. }
  31532. postIndex := iNdEx + msglen
  31533. if postIndex < 0 {
  31534. return ErrInvalidLengthApi
  31535. }
  31536. if postIndex > l {
  31537. return io.ErrUnexpectedEOF
  31538. }
  31539. if m.Unified == nil {
  31540. m.Unified = make(map[string]string)
  31541. }
  31542. var mapkey string
  31543. var mapvalue string
  31544. for iNdEx < postIndex {
  31545. entryPreIndex := iNdEx
  31546. var wire uint64
  31547. for shift := uint(0); ; shift += 7 {
  31548. if shift >= 64 {
  31549. return ErrIntOverflowApi
  31550. }
  31551. if iNdEx >= l {
  31552. return io.ErrUnexpectedEOF
  31553. }
  31554. b := dAtA[iNdEx]
  31555. iNdEx++
  31556. wire |= uint64(b&0x7F) << shift
  31557. if b < 0x80 {
  31558. break
  31559. }
  31560. }
  31561. fieldNum := int32(wire >> 3)
  31562. if fieldNum == 1 {
  31563. var stringLenmapkey uint64
  31564. for shift := uint(0); ; shift += 7 {
  31565. if shift >= 64 {
  31566. return ErrIntOverflowApi
  31567. }
  31568. if iNdEx >= l {
  31569. return io.ErrUnexpectedEOF
  31570. }
  31571. b := dAtA[iNdEx]
  31572. iNdEx++
  31573. stringLenmapkey |= uint64(b&0x7F) << shift
  31574. if b < 0x80 {
  31575. break
  31576. }
  31577. }
  31578. intStringLenmapkey := int(stringLenmapkey)
  31579. if intStringLenmapkey < 0 {
  31580. return ErrInvalidLengthApi
  31581. }
  31582. postStringIndexmapkey := iNdEx + intStringLenmapkey
  31583. if postStringIndexmapkey < 0 {
  31584. return ErrInvalidLengthApi
  31585. }
  31586. if postStringIndexmapkey > l {
  31587. return io.ErrUnexpectedEOF
  31588. }
  31589. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  31590. iNdEx = postStringIndexmapkey
  31591. } else if fieldNum == 2 {
  31592. var stringLenmapvalue uint64
  31593. for shift := uint(0); ; shift += 7 {
  31594. if shift >= 64 {
  31595. return ErrIntOverflowApi
  31596. }
  31597. if iNdEx >= l {
  31598. return io.ErrUnexpectedEOF
  31599. }
  31600. b := dAtA[iNdEx]
  31601. iNdEx++
  31602. stringLenmapvalue |= uint64(b&0x7F) << shift
  31603. if b < 0x80 {
  31604. break
  31605. }
  31606. }
  31607. intStringLenmapvalue := int(stringLenmapvalue)
  31608. if intStringLenmapvalue < 0 {
  31609. return ErrInvalidLengthApi
  31610. }
  31611. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  31612. if postStringIndexmapvalue < 0 {
  31613. return ErrInvalidLengthApi
  31614. }
  31615. if postStringIndexmapvalue > l {
  31616. return io.ErrUnexpectedEOF
  31617. }
  31618. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  31619. iNdEx = postStringIndexmapvalue
  31620. } else {
  31621. iNdEx = entryPreIndex
  31622. skippy, err := skipApi(dAtA[iNdEx:])
  31623. if err != nil {
  31624. return err
  31625. }
  31626. if (skippy < 0) || (iNdEx+skippy) < 0 {
  31627. return ErrInvalidLengthApi
  31628. }
  31629. if (iNdEx + skippy) > postIndex {
  31630. return io.ErrUnexpectedEOF
  31631. }
  31632. iNdEx += skippy
  31633. }
  31634. }
  31635. m.Unified[mapkey] = mapvalue
  31636. iNdEx = postIndex
  31637. case 10:
  31638. if wireType != 0 {
  31639. return fmt.Errorf("proto: wrong wireType = %d for field MemorySwapLimitInBytes", wireType)
  31640. }
  31641. m.MemorySwapLimitInBytes = 0
  31642. for shift := uint(0); ; shift += 7 {
  31643. if shift >= 64 {
  31644. return ErrIntOverflowApi
  31645. }
  31646. if iNdEx >= l {
  31647. return io.ErrUnexpectedEOF
  31648. }
  31649. b := dAtA[iNdEx]
  31650. iNdEx++
  31651. m.MemorySwapLimitInBytes |= int64(b&0x7F) << shift
  31652. if b < 0x80 {
  31653. break
  31654. }
  31655. }
  31656. default:
  31657. iNdEx = preIndex
  31658. skippy, err := skipApi(dAtA[iNdEx:])
  31659. if err != nil {
  31660. return err
  31661. }
  31662. if (skippy < 0) || (iNdEx+skippy) < 0 {
  31663. return ErrInvalidLengthApi
  31664. }
  31665. if (iNdEx + skippy) > l {
  31666. return io.ErrUnexpectedEOF
  31667. }
  31668. iNdEx += skippy
  31669. }
  31670. }
  31671. if iNdEx > l {
  31672. return io.ErrUnexpectedEOF
  31673. }
  31674. return nil
  31675. }
  31676. func (m *HugepageLimit) Unmarshal(dAtA []byte) error {
  31677. l := len(dAtA)
  31678. iNdEx := 0
  31679. for iNdEx < l {
  31680. preIndex := iNdEx
  31681. var wire uint64
  31682. for shift := uint(0); ; shift += 7 {
  31683. if shift >= 64 {
  31684. return ErrIntOverflowApi
  31685. }
  31686. if iNdEx >= l {
  31687. return io.ErrUnexpectedEOF
  31688. }
  31689. b := dAtA[iNdEx]
  31690. iNdEx++
  31691. wire |= uint64(b&0x7F) << shift
  31692. if b < 0x80 {
  31693. break
  31694. }
  31695. }
  31696. fieldNum := int32(wire >> 3)
  31697. wireType := int(wire & 0x7)
  31698. if wireType == 4 {
  31699. return fmt.Errorf("proto: HugepageLimit: wiretype end group for non-group")
  31700. }
  31701. if fieldNum <= 0 {
  31702. return fmt.Errorf("proto: HugepageLimit: illegal tag %d (wire type %d)", fieldNum, wire)
  31703. }
  31704. switch fieldNum {
  31705. case 1:
  31706. if wireType != 2 {
  31707. return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType)
  31708. }
  31709. var stringLen uint64
  31710. for shift := uint(0); ; shift += 7 {
  31711. if shift >= 64 {
  31712. return ErrIntOverflowApi
  31713. }
  31714. if iNdEx >= l {
  31715. return io.ErrUnexpectedEOF
  31716. }
  31717. b := dAtA[iNdEx]
  31718. iNdEx++
  31719. stringLen |= uint64(b&0x7F) << shift
  31720. if b < 0x80 {
  31721. break
  31722. }
  31723. }
  31724. intStringLen := int(stringLen)
  31725. if intStringLen < 0 {
  31726. return ErrInvalidLengthApi
  31727. }
  31728. postIndex := iNdEx + intStringLen
  31729. if postIndex < 0 {
  31730. return ErrInvalidLengthApi
  31731. }
  31732. if postIndex > l {
  31733. return io.ErrUnexpectedEOF
  31734. }
  31735. m.PageSize = string(dAtA[iNdEx:postIndex])
  31736. iNdEx = postIndex
  31737. case 2:
  31738. if wireType != 0 {
  31739. return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
  31740. }
  31741. m.Limit = 0
  31742. for shift := uint(0); ; shift += 7 {
  31743. if shift >= 64 {
  31744. return ErrIntOverflowApi
  31745. }
  31746. if iNdEx >= l {
  31747. return io.ErrUnexpectedEOF
  31748. }
  31749. b := dAtA[iNdEx]
  31750. iNdEx++
  31751. m.Limit |= uint64(b&0x7F) << shift
  31752. if b < 0x80 {
  31753. break
  31754. }
  31755. }
  31756. default:
  31757. iNdEx = preIndex
  31758. skippy, err := skipApi(dAtA[iNdEx:])
  31759. if err != nil {
  31760. return err
  31761. }
  31762. if (skippy < 0) || (iNdEx+skippy) < 0 {
  31763. return ErrInvalidLengthApi
  31764. }
  31765. if (iNdEx + skippy) > l {
  31766. return io.ErrUnexpectedEOF
  31767. }
  31768. iNdEx += skippy
  31769. }
  31770. }
  31771. if iNdEx > l {
  31772. return io.ErrUnexpectedEOF
  31773. }
  31774. return nil
  31775. }
  31776. func (m *SELinuxOption) Unmarshal(dAtA []byte) error {
  31777. l := len(dAtA)
  31778. iNdEx := 0
  31779. for iNdEx < l {
  31780. preIndex := iNdEx
  31781. var wire uint64
  31782. for shift := uint(0); ; shift += 7 {
  31783. if shift >= 64 {
  31784. return ErrIntOverflowApi
  31785. }
  31786. if iNdEx >= l {
  31787. return io.ErrUnexpectedEOF
  31788. }
  31789. b := dAtA[iNdEx]
  31790. iNdEx++
  31791. wire |= uint64(b&0x7F) << shift
  31792. if b < 0x80 {
  31793. break
  31794. }
  31795. }
  31796. fieldNum := int32(wire >> 3)
  31797. wireType := int(wire & 0x7)
  31798. if wireType == 4 {
  31799. return fmt.Errorf("proto: SELinuxOption: wiretype end group for non-group")
  31800. }
  31801. if fieldNum <= 0 {
  31802. return fmt.Errorf("proto: SELinuxOption: illegal tag %d (wire type %d)", fieldNum, wire)
  31803. }
  31804. switch fieldNum {
  31805. case 1:
  31806. if wireType != 2 {
  31807. return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
  31808. }
  31809. var stringLen uint64
  31810. for shift := uint(0); ; shift += 7 {
  31811. if shift >= 64 {
  31812. return ErrIntOverflowApi
  31813. }
  31814. if iNdEx >= l {
  31815. return io.ErrUnexpectedEOF
  31816. }
  31817. b := dAtA[iNdEx]
  31818. iNdEx++
  31819. stringLen |= uint64(b&0x7F) << shift
  31820. if b < 0x80 {
  31821. break
  31822. }
  31823. }
  31824. intStringLen := int(stringLen)
  31825. if intStringLen < 0 {
  31826. return ErrInvalidLengthApi
  31827. }
  31828. postIndex := iNdEx + intStringLen
  31829. if postIndex < 0 {
  31830. return ErrInvalidLengthApi
  31831. }
  31832. if postIndex > l {
  31833. return io.ErrUnexpectedEOF
  31834. }
  31835. m.User = string(dAtA[iNdEx:postIndex])
  31836. iNdEx = postIndex
  31837. case 2:
  31838. if wireType != 2 {
  31839. return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
  31840. }
  31841. var stringLen uint64
  31842. for shift := uint(0); ; shift += 7 {
  31843. if shift >= 64 {
  31844. return ErrIntOverflowApi
  31845. }
  31846. if iNdEx >= l {
  31847. return io.ErrUnexpectedEOF
  31848. }
  31849. b := dAtA[iNdEx]
  31850. iNdEx++
  31851. stringLen |= uint64(b&0x7F) << shift
  31852. if b < 0x80 {
  31853. break
  31854. }
  31855. }
  31856. intStringLen := int(stringLen)
  31857. if intStringLen < 0 {
  31858. return ErrInvalidLengthApi
  31859. }
  31860. postIndex := iNdEx + intStringLen
  31861. if postIndex < 0 {
  31862. return ErrInvalidLengthApi
  31863. }
  31864. if postIndex > l {
  31865. return io.ErrUnexpectedEOF
  31866. }
  31867. m.Role = string(dAtA[iNdEx:postIndex])
  31868. iNdEx = postIndex
  31869. case 3:
  31870. if wireType != 2 {
  31871. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  31872. }
  31873. var stringLen uint64
  31874. for shift := uint(0); ; shift += 7 {
  31875. if shift >= 64 {
  31876. return ErrIntOverflowApi
  31877. }
  31878. if iNdEx >= l {
  31879. return io.ErrUnexpectedEOF
  31880. }
  31881. b := dAtA[iNdEx]
  31882. iNdEx++
  31883. stringLen |= uint64(b&0x7F) << shift
  31884. if b < 0x80 {
  31885. break
  31886. }
  31887. }
  31888. intStringLen := int(stringLen)
  31889. if intStringLen < 0 {
  31890. return ErrInvalidLengthApi
  31891. }
  31892. postIndex := iNdEx + intStringLen
  31893. if postIndex < 0 {
  31894. return ErrInvalidLengthApi
  31895. }
  31896. if postIndex > l {
  31897. return io.ErrUnexpectedEOF
  31898. }
  31899. m.Type = string(dAtA[iNdEx:postIndex])
  31900. iNdEx = postIndex
  31901. case 4:
  31902. if wireType != 2 {
  31903. return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
  31904. }
  31905. var stringLen uint64
  31906. for shift := uint(0); ; shift += 7 {
  31907. if shift >= 64 {
  31908. return ErrIntOverflowApi
  31909. }
  31910. if iNdEx >= l {
  31911. return io.ErrUnexpectedEOF
  31912. }
  31913. b := dAtA[iNdEx]
  31914. iNdEx++
  31915. stringLen |= uint64(b&0x7F) << shift
  31916. if b < 0x80 {
  31917. break
  31918. }
  31919. }
  31920. intStringLen := int(stringLen)
  31921. if intStringLen < 0 {
  31922. return ErrInvalidLengthApi
  31923. }
  31924. postIndex := iNdEx + intStringLen
  31925. if postIndex < 0 {
  31926. return ErrInvalidLengthApi
  31927. }
  31928. if postIndex > l {
  31929. return io.ErrUnexpectedEOF
  31930. }
  31931. m.Level = string(dAtA[iNdEx:postIndex])
  31932. iNdEx = postIndex
  31933. default:
  31934. iNdEx = preIndex
  31935. skippy, err := skipApi(dAtA[iNdEx:])
  31936. if err != nil {
  31937. return err
  31938. }
  31939. if (skippy < 0) || (iNdEx+skippy) < 0 {
  31940. return ErrInvalidLengthApi
  31941. }
  31942. if (iNdEx + skippy) > l {
  31943. return io.ErrUnexpectedEOF
  31944. }
  31945. iNdEx += skippy
  31946. }
  31947. }
  31948. if iNdEx > l {
  31949. return io.ErrUnexpectedEOF
  31950. }
  31951. return nil
  31952. }
  31953. func (m *Capability) Unmarshal(dAtA []byte) error {
  31954. l := len(dAtA)
  31955. iNdEx := 0
  31956. for iNdEx < l {
  31957. preIndex := iNdEx
  31958. var wire uint64
  31959. for shift := uint(0); ; shift += 7 {
  31960. if shift >= 64 {
  31961. return ErrIntOverflowApi
  31962. }
  31963. if iNdEx >= l {
  31964. return io.ErrUnexpectedEOF
  31965. }
  31966. b := dAtA[iNdEx]
  31967. iNdEx++
  31968. wire |= uint64(b&0x7F) << shift
  31969. if b < 0x80 {
  31970. break
  31971. }
  31972. }
  31973. fieldNum := int32(wire >> 3)
  31974. wireType := int(wire & 0x7)
  31975. if wireType == 4 {
  31976. return fmt.Errorf("proto: Capability: wiretype end group for non-group")
  31977. }
  31978. if fieldNum <= 0 {
  31979. return fmt.Errorf("proto: Capability: illegal tag %d (wire type %d)", fieldNum, wire)
  31980. }
  31981. switch fieldNum {
  31982. case 1:
  31983. if wireType != 2 {
  31984. return fmt.Errorf("proto: wrong wireType = %d for field AddCapabilities", wireType)
  31985. }
  31986. var stringLen uint64
  31987. for shift := uint(0); ; shift += 7 {
  31988. if shift >= 64 {
  31989. return ErrIntOverflowApi
  31990. }
  31991. if iNdEx >= l {
  31992. return io.ErrUnexpectedEOF
  31993. }
  31994. b := dAtA[iNdEx]
  31995. iNdEx++
  31996. stringLen |= uint64(b&0x7F) << shift
  31997. if b < 0x80 {
  31998. break
  31999. }
  32000. }
  32001. intStringLen := int(stringLen)
  32002. if intStringLen < 0 {
  32003. return ErrInvalidLengthApi
  32004. }
  32005. postIndex := iNdEx + intStringLen
  32006. if postIndex < 0 {
  32007. return ErrInvalidLengthApi
  32008. }
  32009. if postIndex > l {
  32010. return io.ErrUnexpectedEOF
  32011. }
  32012. m.AddCapabilities = append(m.AddCapabilities, string(dAtA[iNdEx:postIndex]))
  32013. iNdEx = postIndex
  32014. case 2:
  32015. if wireType != 2 {
  32016. return fmt.Errorf("proto: wrong wireType = %d for field DropCapabilities", wireType)
  32017. }
  32018. var stringLen uint64
  32019. for shift := uint(0); ; shift += 7 {
  32020. if shift >= 64 {
  32021. return ErrIntOverflowApi
  32022. }
  32023. if iNdEx >= l {
  32024. return io.ErrUnexpectedEOF
  32025. }
  32026. b := dAtA[iNdEx]
  32027. iNdEx++
  32028. stringLen |= uint64(b&0x7F) << shift
  32029. if b < 0x80 {
  32030. break
  32031. }
  32032. }
  32033. intStringLen := int(stringLen)
  32034. if intStringLen < 0 {
  32035. return ErrInvalidLengthApi
  32036. }
  32037. postIndex := iNdEx + intStringLen
  32038. if postIndex < 0 {
  32039. return ErrInvalidLengthApi
  32040. }
  32041. if postIndex > l {
  32042. return io.ErrUnexpectedEOF
  32043. }
  32044. m.DropCapabilities = append(m.DropCapabilities, string(dAtA[iNdEx:postIndex]))
  32045. iNdEx = postIndex
  32046. case 3:
  32047. if wireType != 2 {
  32048. return fmt.Errorf("proto: wrong wireType = %d for field AddAmbientCapabilities", wireType)
  32049. }
  32050. var stringLen uint64
  32051. for shift := uint(0); ; shift += 7 {
  32052. if shift >= 64 {
  32053. return ErrIntOverflowApi
  32054. }
  32055. if iNdEx >= l {
  32056. return io.ErrUnexpectedEOF
  32057. }
  32058. b := dAtA[iNdEx]
  32059. iNdEx++
  32060. stringLen |= uint64(b&0x7F) << shift
  32061. if b < 0x80 {
  32062. break
  32063. }
  32064. }
  32065. intStringLen := int(stringLen)
  32066. if intStringLen < 0 {
  32067. return ErrInvalidLengthApi
  32068. }
  32069. postIndex := iNdEx + intStringLen
  32070. if postIndex < 0 {
  32071. return ErrInvalidLengthApi
  32072. }
  32073. if postIndex > l {
  32074. return io.ErrUnexpectedEOF
  32075. }
  32076. m.AddAmbientCapabilities = append(m.AddAmbientCapabilities, string(dAtA[iNdEx:postIndex]))
  32077. iNdEx = postIndex
  32078. default:
  32079. iNdEx = preIndex
  32080. skippy, err := skipApi(dAtA[iNdEx:])
  32081. if err != nil {
  32082. return err
  32083. }
  32084. if (skippy < 0) || (iNdEx+skippy) < 0 {
  32085. return ErrInvalidLengthApi
  32086. }
  32087. if (iNdEx + skippy) > l {
  32088. return io.ErrUnexpectedEOF
  32089. }
  32090. iNdEx += skippy
  32091. }
  32092. }
  32093. if iNdEx > l {
  32094. return io.ErrUnexpectedEOF
  32095. }
  32096. return nil
  32097. }
  32098. func (m *LinuxContainerSecurityContext) Unmarshal(dAtA []byte) error {
  32099. l := len(dAtA)
  32100. iNdEx := 0
  32101. for iNdEx < l {
  32102. preIndex := iNdEx
  32103. var wire uint64
  32104. for shift := uint(0); ; shift += 7 {
  32105. if shift >= 64 {
  32106. return ErrIntOverflowApi
  32107. }
  32108. if iNdEx >= l {
  32109. return io.ErrUnexpectedEOF
  32110. }
  32111. b := dAtA[iNdEx]
  32112. iNdEx++
  32113. wire |= uint64(b&0x7F) << shift
  32114. if b < 0x80 {
  32115. break
  32116. }
  32117. }
  32118. fieldNum := int32(wire >> 3)
  32119. wireType := int(wire & 0x7)
  32120. if wireType == 4 {
  32121. return fmt.Errorf("proto: LinuxContainerSecurityContext: wiretype end group for non-group")
  32122. }
  32123. if fieldNum <= 0 {
  32124. return fmt.Errorf("proto: LinuxContainerSecurityContext: illegal tag %d (wire type %d)", fieldNum, wire)
  32125. }
  32126. switch fieldNum {
  32127. case 1:
  32128. if wireType != 2 {
  32129. return fmt.Errorf("proto: wrong wireType = %d for field Capabilities", wireType)
  32130. }
  32131. var msglen int
  32132. for shift := uint(0); ; shift += 7 {
  32133. if shift >= 64 {
  32134. return ErrIntOverflowApi
  32135. }
  32136. if iNdEx >= l {
  32137. return io.ErrUnexpectedEOF
  32138. }
  32139. b := dAtA[iNdEx]
  32140. iNdEx++
  32141. msglen |= int(b&0x7F) << shift
  32142. if b < 0x80 {
  32143. break
  32144. }
  32145. }
  32146. if msglen < 0 {
  32147. return ErrInvalidLengthApi
  32148. }
  32149. postIndex := iNdEx + msglen
  32150. if postIndex < 0 {
  32151. return ErrInvalidLengthApi
  32152. }
  32153. if postIndex > l {
  32154. return io.ErrUnexpectedEOF
  32155. }
  32156. if m.Capabilities == nil {
  32157. m.Capabilities = &Capability{}
  32158. }
  32159. if err := m.Capabilities.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  32160. return err
  32161. }
  32162. iNdEx = postIndex
  32163. case 2:
  32164. if wireType != 0 {
  32165. return fmt.Errorf("proto: wrong wireType = %d for field Privileged", wireType)
  32166. }
  32167. var v int
  32168. for shift := uint(0); ; shift += 7 {
  32169. if shift >= 64 {
  32170. return ErrIntOverflowApi
  32171. }
  32172. if iNdEx >= l {
  32173. return io.ErrUnexpectedEOF
  32174. }
  32175. b := dAtA[iNdEx]
  32176. iNdEx++
  32177. v |= int(b&0x7F) << shift
  32178. if b < 0x80 {
  32179. break
  32180. }
  32181. }
  32182. m.Privileged = bool(v != 0)
  32183. case 3:
  32184. if wireType != 2 {
  32185. return fmt.Errorf("proto: wrong wireType = %d for field NamespaceOptions", wireType)
  32186. }
  32187. var msglen int
  32188. for shift := uint(0); ; shift += 7 {
  32189. if shift >= 64 {
  32190. return ErrIntOverflowApi
  32191. }
  32192. if iNdEx >= l {
  32193. return io.ErrUnexpectedEOF
  32194. }
  32195. b := dAtA[iNdEx]
  32196. iNdEx++
  32197. msglen |= int(b&0x7F) << shift
  32198. if b < 0x80 {
  32199. break
  32200. }
  32201. }
  32202. if msglen < 0 {
  32203. return ErrInvalidLengthApi
  32204. }
  32205. postIndex := iNdEx + msglen
  32206. if postIndex < 0 {
  32207. return ErrInvalidLengthApi
  32208. }
  32209. if postIndex > l {
  32210. return io.ErrUnexpectedEOF
  32211. }
  32212. if m.NamespaceOptions == nil {
  32213. m.NamespaceOptions = &NamespaceOption{}
  32214. }
  32215. if err := m.NamespaceOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  32216. return err
  32217. }
  32218. iNdEx = postIndex
  32219. case 4:
  32220. if wireType != 2 {
  32221. return fmt.Errorf("proto: wrong wireType = %d for field SelinuxOptions", wireType)
  32222. }
  32223. var msglen int
  32224. for shift := uint(0); ; shift += 7 {
  32225. if shift >= 64 {
  32226. return ErrIntOverflowApi
  32227. }
  32228. if iNdEx >= l {
  32229. return io.ErrUnexpectedEOF
  32230. }
  32231. b := dAtA[iNdEx]
  32232. iNdEx++
  32233. msglen |= int(b&0x7F) << shift
  32234. if b < 0x80 {
  32235. break
  32236. }
  32237. }
  32238. if msglen < 0 {
  32239. return ErrInvalidLengthApi
  32240. }
  32241. postIndex := iNdEx + msglen
  32242. if postIndex < 0 {
  32243. return ErrInvalidLengthApi
  32244. }
  32245. if postIndex > l {
  32246. return io.ErrUnexpectedEOF
  32247. }
  32248. if m.SelinuxOptions == nil {
  32249. m.SelinuxOptions = &SELinuxOption{}
  32250. }
  32251. if err := m.SelinuxOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  32252. return err
  32253. }
  32254. iNdEx = postIndex
  32255. case 5:
  32256. if wireType != 2 {
  32257. return fmt.Errorf("proto: wrong wireType = %d for field RunAsUser", wireType)
  32258. }
  32259. var msglen int
  32260. for shift := uint(0); ; shift += 7 {
  32261. if shift >= 64 {
  32262. return ErrIntOverflowApi
  32263. }
  32264. if iNdEx >= l {
  32265. return io.ErrUnexpectedEOF
  32266. }
  32267. b := dAtA[iNdEx]
  32268. iNdEx++
  32269. msglen |= int(b&0x7F) << shift
  32270. if b < 0x80 {
  32271. break
  32272. }
  32273. }
  32274. if msglen < 0 {
  32275. return ErrInvalidLengthApi
  32276. }
  32277. postIndex := iNdEx + msglen
  32278. if postIndex < 0 {
  32279. return ErrInvalidLengthApi
  32280. }
  32281. if postIndex > l {
  32282. return io.ErrUnexpectedEOF
  32283. }
  32284. if m.RunAsUser == nil {
  32285. m.RunAsUser = &Int64Value{}
  32286. }
  32287. if err := m.RunAsUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  32288. return err
  32289. }
  32290. iNdEx = postIndex
  32291. case 6:
  32292. if wireType != 2 {
  32293. return fmt.Errorf("proto: wrong wireType = %d for field RunAsUsername", wireType)
  32294. }
  32295. var stringLen uint64
  32296. for shift := uint(0); ; shift += 7 {
  32297. if shift >= 64 {
  32298. return ErrIntOverflowApi
  32299. }
  32300. if iNdEx >= l {
  32301. return io.ErrUnexpectedEOF
  32302. }
  32303. b := dAtA[iNdEx]
  32304. iNdEx++
  32305. stringLen |= uint64(b&0x7F) << shift
  32306. if b < 0x80 {
  32307. break
  32308. }
  32309. }
  32310. intStringLen := int(stringLen)
  32311. if intStringLen < 0 {
  32312. return ErrInvalidLengthApi
  32313. }
  32314. postIndex := iNdEx + intStringLen
  32315. if postIndex < 0 {
  32316. return ErrInvalidLengthApi
  32317. }
  32318. if postIndex > l {
  32319. return io.ErrUnexpectedEOF
  32320. }
  32321. m.RunAsUsername = string(dAtA[iNdEx:postIndex])
  32322. iNdEx = postIndex
  32323. case 7:
  32324. if wireType != 0 {
  32325. return fmt.Errorf("proto: wrong wireType = %d for field ReadonlyRootfs", wireType)
  32326. }
  32327. var v int
  32328. for shift := uint(0); ; shift += 7 {
  32329. if shift >= 64 {
  32330. return ErrIntOverflowApi
  32331. }
  32332. if iNdEx >= l {
  32333. return io.ErrUnexpectedEOF
  32334. }
  32335. b := dAtA[iNdEx]
  32336. iNdEx++
  32337. v |= int(b&0x7F) << shift
  32338. if b < 0x80 {
  32339. break
  32340. }
  32341. }
  32342. m.ReadonlyRootfs = bool(v != 0)
  32343. case 8:
  32344. if wireType == 0 {
  32345. var v int64
  32346. for shift := uint(0); ; shift += 7 {
  32347. if shift >= 64 {
  32348. return ErrIntOverflowApi
  32349. }
  32350. if iNdEx >= l {
  32351. return io.ErrUnexpectedEOF
  32352. }
  32353. b := dAtA[iNdEx]
  32354. iNdEx++
  32355. v |= int64(b&0x7F) << shift
  32356. if b < 0x80 {
  32357. break
  32358. }
  32359. }
  32360. m.SupplementalGroups = append(m.SupplementalGroups, v)
  32361. } else if wireType == 2 {
  32362. var packedLen int
  32363. for shift := uint(0); ; shift += 7 {
  32364. if shift >= 64 {
  32365. return ErrIntOverflowApi
  32366. }
  32367. if iNdEx >= l {
  32368. return io.ErrUnexpectedEOF
  32369. }
  32370. b := dAtA[iNdEx]
  32371. iNdEx++
  32372. packedLen |= int(b&0x7F) << shift
  32373. if b < 0x80 {
  32374. break
  32375. }
  32376. }
  32377. if packedLen < 0 {
  32378. return ErrInvalidLengthApi
  32379. }
  32380. postIndex := iNdEx + packedLen
  32381. if postIndex < 0 {
  32382. return ErrInvalidLengthApi
  32383. }
  32384. if postIndex > l {
  32385. return io.ErrUnexpectedEOF
  32386. }
  32387. var elementCount int
  32388. var count int
  32389. for _, integer := range dAtA[iNdEx:postIndex] {
  32390. if integer < 128 {
  32391. count++
  32392. }
  32393. }
  32394. elementCount = count
  32395. if elementCount != 0 && len(m.SupplementalGroups) == 0 {
  32396. m.SupplementalGroups = make([]int64, 0, elementCount)
  32397. }
  32398. for iNdEx < postIndex {
  32399. var v int64
  32400. for shift := uint(0); ; shift += 7 {
  32401. if shift >= 64 {
  32402. return ErrIntOverflowApi
  32403. }
  32404. if iNdEx >= l {
  32405. return io.ErrUnexpectedEOF
  32406. }
  32407. b := dAtA[iNdEx]
  32408. iNdEx++
  32409. v |= int64(b&0x7F) << shift
  32410. if b < 0x80 {
  32411. break
  32412. }
  32413. }
  32414. m.SupplementalGroups = append(m.SupplementalGroups, v)
  32415. }
  32416. } else {
  32417. return fmt.Errorf("proto: wrong wireType = %d for field SupplementalGroups", wireType)
  32418. }
  32419. case 9:
  32420. if wireType != 2 {
  32421. return fmt.Errorf("proto: wrong wireType = %d for field ApparmorProfile", wireType)
  32422. }
  32423. var stringLen uint64
  32424. for shift := uint(0); ; shift += 7 {
  32425. if shift >= 64 {
  32426. return ErrIntOverflowApi
  32427. }
  32428. if iNdEx >= l {
  32429. return io.ErrUnexpectedEOF
  32430. }
  32431. b := dAtA[iNdEx]
  32432. iNdEx++
  32433. stringLen |= uint64(b&0x7F) << shift
  32434. if b < 0x80 {
  32435. break
  32436. }
  32437. }
  32438. intStringLen := int(stringLen)
  32439. if intStringLen < 0 {
  32440. return ErrInvalidLengthApi
  32441. }
  32442. postIndex := iNdEx + intStringLen
  32443. if postIndex < 0 {
  32444. return ErrInvalidLengthApi
  32445. }
  32446. if postIndex > l {
  32447. return io.ErrUnexpectedEOF
  32448. }
  32449. m.ApparmorProfile = string(dAtA[iNdEx:postIndex])
  32450. iNdEx = postIndex
  32451. case 10:
  32452. if wireType != 2 {
  32453. return fmt.Errorf("proto: wrong wireType = %d for field SeccompProfilePath", wireType)
  32454. }
  32455. var stringLen uint64
  32456. for shift := uint(0); ; shift += 7 {
  32457. if shift >= 64 {
  32458. return ErrIntOverflowApi
  32459. }
  32460. if iNdEx >= l {
  32461. return io.ErrUnexpectedEOF
  32462. }
  32463. b := dAtA[iNdEx]
  32464. iNdEx++
  32465. stringLen |= uint64(b&0x7F) << shift
  32466. if b < 0x80 {
  32467. break
  32468. }
  32469. }
  32470. intStringLen := int(stringLen)
  32471. if intStringLen < 0 {
  32472. return ErrInvalidLengthApi
  32473. }
  32474. postIndex := iNdEx + intStringLen
  32475. if postIndex < 0 {
  32476. return ErrInvalidLengthApi
  32477. }
  32478. if postIndex > l {
  32479. return io.ErrUnexpectedEOF
  32480. }
  32481. m.SeccompProfilePath = string(dAtA[iNdEx:postIndex])
  32482. iNdEx = postIndex
  32483. case 11:
  32484. if wireType != 0 {
  32485. return fmt.Errorf("proto: wrong wireType = %d for field NoNewPrivs", wireType)
  32486. }
  32487. var v int
  32488. for shift := uint(0); ; shift += 7 {
  32489. if shift >= 64 {
  32490. return ErrIntOverflowApi
  32491. }
  32492. if iNdEx >= l {
  32493. return io.ErrUnexpectedEOF
  32494. }
  32495. b := dAtA[iNdEx]
  32496. iNdEx++
  32497. v |= int(b&0x7F) << shift
  32498. if b < 0x80 {
  32499. break
  32500. }
  32501. }
  32502. m.NoNewPrivs = bool(v != 0)
  32503. case 12:
  32504. if wireType != 2 {
  32505. return fmt.Errorf("proto: wrong wireType = %d for field RunAsGroup", wireType)
  32506. }
  32507. var msglen int
  32508. for shift := uint(0); ; shift += 7 {
  32509. if shift >= 64 {
  32510. return ErrIntOverflowApi
  32511. }
  32512. if iNdEx >= l {
  32513. return io.ErrUnexpectedEOF
  32514. }
  32515. b := dAtA[iNdEx]
  32516. iNdEx++
  32517. msglen |= int(b&0x7F) << shift
  32518. if b < 0x80 {
  32519. break
  32520. }
  32521. }
  32522. if msglen < 0 {
  32523. return ErrInvalidLengthApi
  32524. }
  32525. postIndex := iNdEx + msglen
  32526. if postIndex < 0 {
  32527. return ErrInvalidLengthApi
  32528. }
  32529. if postIndex > l {
  32530. return io.ErrUnexpectedEOF
  32531. }
  32532. if m.RunAsGroup == nil {
  32533. m.RunAsGroup = &Int64Value{}
  32534. }
  32535. if err := m.RunAsGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  32536. return err
  32537. }
  32538. iNdEx = postIndex
  32539. case 13:
  32540. if wireType != 2 {
  32541. return fmt.Errorf("proto: wrong wireType = %d for field MaskedPaths", wireType)
  32542. }
  32543. var stringLen uint64
  32544. for shift := uint(0); ; shift += 7 {
  32545. if shift >= 64 {
  32546. return ErrIntOverflowApi
  32547. }
  32548. if iNdEx >= l {
  32549. return io.ErrUnexpectedEOF
  32550. }
  32551. b := dAtA[iNdEx]
  32552. iNdEx++
  32553. stringLen |= uint64(b&0x7F) << shift
  32554. if b < 0x80 {
  32555. break
  32556. }
  32557. }
  32558. intStringLen := int(stringLen)
  32559. if intStringLen < 0 {
  32560. return ErrInvalidLengthApi
  32561. }
  32562. postIndex := iNdEx + intStringLen
  32563. if postIndex < 0 {
  32564. return ErrInvalidLengthApi
  32565. }
  32566. if postIndex > l {
  32567. return io.ErrUnexpectedEOF
  32568. }
  32569. m.MaskedPaths = append(m.MaskedPaths, string(dAtA[iNdEx:postIndex]))
  32570. iNdEx = postIndex
  32571. case 14:
  32572. if wireType != 2 {
  32573. return fmt.Errorf("proto: wrong wireType = %d for field ReadonlyPaths", wireType)
  32574. }
  32575. var stringLen uint64
  32576. for shift := uint(0); ; shift += 7 {
  32577. if shift >= 64 {
  32578. return ErrIntOverflowApi
  32579. }
  32580. if iNdEx >= l {
  32581. return io.ErrUnexpectedEOF
  32582. }
  32583. b := dAtA[iNdEx]
  32584. iNdEx++
  32585. stringLen |= uint64(b&0x7F) << shift
  32586. if b < 0x80 {
  32587. break
  32588. }
  32589. }
  32590. intStringLen := int(stringLen)
  32591. if intStringLen < 0 {
  32592. return ErrInvalidLengthApi
  32593. }
  32594. postIndex := iNdEx + intStringLen
  32595. if postIndex < 0 {
  32596. return ErrInvalidLengthApi
  32597. }
  32598. if postIndex > l {
  32599. return io.ErrUnexpectedEOF
  32600. }
  32601. m.ReadonlyPaths = append(m.ReadonlyPaths, string(dAtA[iNdEx:postIndex]))
  32602. iNdEx = postIndex
  32603. case 15:
  32604. if wireType != 2 {
  32605. return fmt.Errorf("proto: wrong wireType = %d for field Seccomp", wireType)
  32606. }
  32607. var msglen int
  32608. for shift := uint(0); ; shift += 7 {
  32609. if shift >= 64 {
  32610. return ErrIntOverflowApi
  32611. }
  32612. if iNdEx >= l {
  32613. return io.ErrUnexpectedEOF
  32614. }
  32615. b := dAtA[iNdEx]
  32616. iNdEx++
  32617. msglen |= int(b&0x7F) << shift
  32618. if b < 0x80 {
  32619. break
  32620. }
  32621. }
  32622. if msglen < 0 {
  32623. return ErrInvalidLengthApi
  32624. }
  32625. postIndex := iNdEx + msglen
  32626. if postIndex < 0 {
  32627. return ErrInvalidLengthApi
  32628. }
  32629. if postIndex > l {
  32630. return io.ErrUnexpectedEOF
  32631. }
  32632. if m.Seccomp == nil {
  32633. m.Seccomp = &SecurityProfile{}
  32634. }
  32635. if err := m.Seccomp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  32636. return err
  32637. }
  32638. iNdEx = postIndex
  32639. case 16:
  32640. if wireType != 2 {
  32641. return fmt.Errorf("proto: wrong wireType = %d for field Apparmor", wireType)
  32642. }
  32643. var msglen int
  32644. for shift := uint(0); ; shift += 7 {
  32645. if shift >= 64 {
  32646. return ErrIntOverflowApi
  32647. }
  32648. if iNdEx >= l {
  32649. return io.ErrUnexpectedEOF
  32650. }
  32651. b := dAtA[iNdEx]
  32652. iNdEx++
  32653. msglen |= int(b&0x7F) << shift
  32654. if b < 0x80 {
  32655. break
  32656. }
  32657. }
  32658. if msglen < 0 {
  32659. return ErrInvalidLengthApi
  32660. }
  32661. postIndex := iNdEx + msglen
  32662. if postIndex < 0 {
  32663. return ErrInvalidLengthApi
  32664. }
  32665. if postIndex > l {
  32666. return io.ErrUnexpectedEOF
  32667. }
  32668. if m.Apparmor == nil {
  32669. m.Apparmor = &SecurityProfile{}
  32670. }
  32671. if err := m.Apparmor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  32672. return err
  32673. }
  32674. iNdEx = postIndex
  32675. default:
  32676. iNdEx = preIndex
  32677. skippy, err := skipApi(dAtA[iNdEx:])
  32678. if err != nil {
  32679. return err
  32680. }
  32681. if (skippy < 0) || (iNdEx+skippy) < 0 {
  32682. return ErrInvalidLengthApi
  32683. }
  32684. if (iNdEx + skippy) > l {
  32685. return io.ErrUnexpectedEOF
  32686. }
  32687. iNdEx += skippy
  32688. }
  32689. }
  32690. if iNdEx > l {
  32691. return io.ErrUnexpectedEOF
  32692. }
  32693. return nil
  32694. }
  32695. func (m *LinuxContainerConfig) Unmarshal(dAtA []byte) error {
  32696. l := len(dAtA)
  32697. iNdEx := 0
  32698. for iNdEx < l {
  32699. preIndex := iNdEx
  32700. var wire uint64
  32701. for shift := uint(0); ; shift += 7 {
  32702. if shift >= 64 {
  32703. return ErrIntOverflowApi
  32704. }
  32705. if iNdEx >= l {
  32706. return io.ErrUnexpectedEOF
  32707. }
  32708. b := dAtA[iNdEx]
  32709. iNdEx++
  32710. wire |= uint64(b&0x7F) << shift
  32711. if b < 0x80 {
  32712. break
  32713. }
  32714. }
  32715. fieldNum := int32(wire >> 3)
  32716. wireType := int(wire & 0x7)
  32717. if wireType == 4 {
  32718. return fmt.Errorf("proto: LinuxContainerConfig: wiretype end group for non-group")
  32719. }
  32720. if fieldNum <= 0 {
  32721. return fmt.Errorf("proto: LinuxContainerConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  32722. }
  32723. switch fieldNum {
  32724. case 1:
  32725. if wireType != 2 {
  32726. return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
  32727. }
  32728. var msglen int
  32729. for shift := uint(0); ; shift += 7 {
  32730. if shift >= 64 {
  32731. return ErrIntOverflowApi
  32732. }
  32733. if iNdEx >= l {
  32734. return io.ErrUnexpectedEOF
  32735. }
  32736. b := dAtA[iNdEx]
  32737. iNdEx++
  32738. msglen |= int(b&0x7F) << shift
  32739. if b < 0x80 {
  32740. break
  32741. }
  32742. }
  32743. if msglen < 0 {
  32744. return ErrInvalidLengthApi
  32745. }
  32746. postIndex := iNdEx + msglen
  32747. if postIndex < 0 {
  32748. return ErrInvalidLengthApi
  32749. }
  32750. if postIndex > l {
  32751. return io.ErrUnexpectedEOF
  32752. }
  32753. if m.Resources == nil {
  32754. m.Resources = &LinuxContainerResources{}
  32755. }
  32756. if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  32757. return err
  32758. }
  32759. iNdEx = postIndex
  32760. case 2:
  32761. if wireType != 2 {
  32762. return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", wireType)
  32763. }
  32764. var msglen int
  32765. for shift := uint(0); ; shift += 7 {
  32766. if shift >= 64 {
  32767. return ErrIntOverflowApi
  32768. }
  32769. if iNdEx >= l {
  32770. return io.ErrUnexpectedEOF
  32771. }
  32772. b := dAtA[iNdEx]
  32773. iNdEx++
  32774. msglen |= int(b&0x7F) << shift
  32775. if b < 0x80 {
  32776. break
  32777. }
  32778. }
  32779. if msglen < 0 {
  32780. return ErrInvalidLengthApi
  32781. }
  32782. postIndex := iNdEx + msglen
  32783. if postIndex < 0 {
  32784. return ErrInvalidLengthApi
  32785. }
  32786. if postIndex > l {
  32787. return io.ErrUnexpectedEOF
  32788. }
  32789. if m.SecurityContext == nil {
  32790. m.SecurityContext = &LinuxContainerSecurityContext{}
  32791. }
  32792. if err := m.SecurityContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  32793. return err
  32794. }
  32795. iNdEx = postIndex
  32796. default:
  32797. iNdEx = preIndex
  32798. skippy, err := skipApi(dAtA[iNdEx:])
  32799. if err != nil {
  32800. return err
  32801. }
  32802. if (skippy < 0) || (iNdEx+skippy) < 0 {
  32803. return ErrInvalidLengthApi
  32804. }
  32805. if (iNdEx + skippy) > l {
  32806. return io.ErrUnexpectedEOF
  32807. }
  32808. iNdEx += skippy
  32809. }
  32810. }
  32811. if iNdEx > l {
  32812. return io.ErrUnexpectedEOF
  32813. }
  32814. return nil
  32815. }
  32816. func (m *WindowsNamespaceOption) Unmarshal(dAtA []byte) error {
  32817. l := len(dAtA)
  32818. iNdEx := 0
  32819. for iNdEx < l {
  32820. preIndex := iNdEx
  32821. var wire uint64
  32822. for shift := uint(0); ; shift += 7 {
  32823. if shift >= 64 {
  32824. return ErrIntOverflowApi
  32825. }
  32826. if iNdEx >= l {
  32827. return io.ErrUnexpectedEOF
  32828. }
  32829. b := dAtA[iNdEx]
  32830. iNdEx++
  32831. wire |= uint64(b&0x7F) << shift
  32832. if b < 0x80 {
  32833. break
  32834. }
  32835. }
  32836. fieldNum := int32(wire >> 3)
  32837. wireType := int(wire & 0x7)
  32838. if wireType == 4 {
  32839. return fmt.Errorf("proto: WindowsNamespaceOption: wiretype end group for non-group")
  32840. }
  32841. if fieldNum <= 0 {
  32842. return fmt.Errorf("proto: WindowsNamespaceOption: illegal tag %d (wire type %d)", fieldNum, wire)
  32843. }
  32844. switch fieldNum {
  32845. case 1:
  32846. if wireType != 0 {
  32847. return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType)
  32848. }
  32849. m.Network = 0
  32850. for shift := uint(0); ; shift += 7 {
  32851. if shift >= 64 {
  32852. return ErrIntOverflowApi
  32853. }
  32854. if iNdEx >= l {
  32855. return io.ErrUnexpectedEOF
  32856. }
  32857. b := dAtA[iNdEx]
  32858. iNdEx++
  32859. m.Network |= NamespaceMode(b&0x7F) << shift
  32860. if b < 0x80 {
  32861. break
  32862. }
  32863. }
  32864. default:
  32865. iNdEx = preIndex
  32866. skippy, err := skipApi(dAtA[iNdEx:])
  32867. if err != nil {
  32868. return err
  32869. }
  32870. if (skippy < 0) || (iNdEx+skippy) < 0 {
  32871. return ErrInvalidLengthApi
  32872. }
  32873. if (iNdEx + skippy) > l {
  32874. return io.ErrUnexpectedEOF
  32875. }
  32876. iNdEx += skippy
  32877. }
  32878. }
  32879. if iNdEx > l {
  32880. return io.ErrUnexpectedEOF
  32881. }
  32882. return nil
  32883. }
  32884. func (m *WindowsSandboxSecurityContext) Unmarshal(dAtA []byte) error {
  32885. l := len(dAtA)
  32886. iNdEx := 0
  32887. for iNdEx < l {
  32888. preIndex := iNdEx
  32889. var wire uint64
  32890. for shift := uint(0); ; shift += 7 {
  32891. if shift >= 64 {
  32892. return ErrIntOverflowApi
  32893. }
  32894. if iNdEx >= l {
  32895. return io.ErrUnexpectedEOF
  32896. }
  32897. b := dAtA[iNdEx]
  32898. iNdEx++
  32899. wire |= uint64(b&0x7F) << shift
  32900. if b < 0x80 {
  32901. break
  32902. }
  32903. }
  32904. fieldNum := int32(wire >> 3)
  32905. wireType := int(wire & 0x7)
  32906. if wireType == 4 {
  32907. return fmt.Errorf("proto: WindowsSandboxSecurityContext: wiretype end group for non-group")
  32908. }
  32909. if fieldNum <= 0 {
  32910. return fmt.Errorf("proto: WindowsSandboxSecurityContext: illegal tag %d (wire type %d)", fieldNum, wire)
  32911. }
  32912. switch fieldNum {
  32913. case 1:
  32914. if wireType != 2 {
  32915. return fmt.Errorf("proto: wrong wireType = %d for field RunAsUsername", wireType)
  32916. }
  32917. var stringLen uint64
  32918. for shift := uint(0); ; shift += 7 {
  32919. if shift >= 64 {
  32920. return ErrIntOverflowApi
  32921. }
  32922. if iNdEx >= l {
  32923. return io.ErrUnexpectedEOF
  32924. }
  32925. b := dAtA[iNdEx]
  32926. iNdEx++
  32927. stringLen |= uint64(b&0x7F) << shift
  32928. if b < 0x80 {
  32929. break
  32930. }
  32931. }
  32932. intStringLen := int(stringLen)
  32933. if intStringLen < 0 {
  32934. return ErrInvalidLengthApi
  32935. }
  32936. postIndex := iNdEx + intStringLen
  32937. if postIndex < 0 {
  32938. return ErrInvalidLengthApi
  32939. }
  32940. if postIndex > l {
  32941. return io.ErrUnexpectedEOF
  32942. }
  32943. m.RunAsUsername = string(dAtA[iNdEx:postIndex])
  32944. iNdEx = postIndex
  32945. case 2:
  32946. if wireType != 2 {
  32947. return fmt.Errorf("proto: wrong wireType = %d for field CredentialSpec", wireType)
  32948. }
  32949. var stringLen uint64
  32950. for shift := uint(0); ; shift += 7 {
  32951. if shift >= 64 {
  32952. return ErrIntOverflowApi
  32953. }
  32954. if iNdEx >= l {
  32955. return io.ErrUnexpectedEOF
  32956. }
  32957. b := dAtA[iNdEx]
  32958. iNdEx++
  32959. stringLen |= uint64(b&0x7F) << shift
  32960. if b < 0x80 {
  32961. break
  32962. }
  32963. }
  32964. intStringLen := int(stringLen)
  32965. if intStringLen < 0 {
  32966. return ErrInvalidLengthApi
  32967. }
  32968. postIndex := iNdEx + intStringLen
  32969. if postIndex < 0 {
  32970. return ErrInvalidLengthApi
  32971. }
  32972. if postIndex > l {
  32973. return io.ErrUnexpectedEOF
  32974. }
  32975. m.CredentialSpec = string(dAtA[iNdEx:postIndex])
  32976. iNdEx = postIndex
  32977. case 3:
  32978. if wireType != 0 {
  32979. return fmt.Errorf("proto: wrong wireType = %d for field HostProcess", wireType)
  32980. }
  32981. var v int
  32982. for shift := uint(0); ; shift += 7 {
  32983. if shift >= 64 {
  32984. return ErrIntOverflowApi
  32985. }
  32986. if iNdEx >= l {
  32987. return io.ErrUnexpectedEOF
  32988. }
  32989. b := dAtA[iNdEx]
  32990. iNdEx++
  32991. v |= int(b&0x7F) << shift
  32992. if b < 0x80 {
  32993. break
  32994. }
  32995. }
  32996. m.HostProcess = bool(v != 0)
  32997. case 4:
  32998. if wireType != 2 {
  32999. return fmt.Errorf("proto: wrong wireType = %d for field NamespaceOptions", wireType)
  33000. }
  33001. var msglen int
  33002. for shift := uint(0); ; shift += 7 {
  33003. if shift >= 64 {
  33004. return ErrIntOverflowApi
  33005. }
  33006. if iNdEx >= l {
  33007. return io.ErrUnexpectedEOF
  33008. }
  33009. b := dAtA[iNdEx]
  33010. iNdEx++
  33011. msglen |= int(b&0x7F) << shift
  33012. if b < 0x80 {
  33013. break
  33014. }
  33015. }
  33016. if msglen < 0 {
  33017. return ErrInvalidLengthApi
  33018. }
  33019. postIndex := iNdEx + msglen
  33020. if postIndex < 0 {
  33021. return ErrInvalidLengthApi
  33022. }
  33023. if postIndex > l {
  33024. return io.ErrUnexpectedEOF
  33025. }
  33026. if m.NamespaceOptions == nil {
  33027. m.NamespaceOptions = &WindowsNamespaceOption{}
  33028. }
  33029. if err := m.NamespaceOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  33030. return err
  33031. }
  33032. iNdEx = postIndex
  33033. default:
  33034. iNdEx = preIndex
  33035. skippy, err := skipApi(dAtA[iNdEx:])
  33036. if err != nil {
  33037. return err
  33038. }
  33039. if (skippy < 0) || (iNdEx+skippy) < 0 {
  33040. return ErrInvalidLengthApi
  33041. }
  33042. if (iNdEx + skippy) > l {
  33043. return io.ErrUnexpectedEOF
  33044. }
  33045. iNdEx += skippy
  33046. }
  33047. }
  33048. if iNdEx > l {
  33049. return io.ErrUnexpectedEOF
  33050. }
  33051. return nil
  33052. }
  33053. func (m *WindowsPodSandboxConfig) Unmarshal(dAtA []byte) error {
  33054. l := len(dAtA)
  33055. iNdEx := 0
  33056. for iNdEx < l {
  33057. preIndex := iNdEx
  33058. var wire uint64
  33059. for shift := uint(0); ; shift += 7 {
  33060. if shift >= 64 {
  33061. return ErrIntOverflowApi
  33062. }
  33063. if iNdEx >= l {
  33064. return io.ErrUnexpectedEOF
  33065. }
  33066. b := dAtA[iNdEx]
  33067. iNdEx++
  33068. wire |= uint64(b&0x7F) << shift
  33069. if b < 0x80 {
  33070. break
  33071. }
  33072. }
  33073. fieldNum := int32(wire >> 3)
  33074. wireType := int(wire & 0x7)
  33075. if wireType == 4 {
  33076. return fmt.Errorf("proto: WindowsPodSandboxConfig: wiretype end group for non-group")
  33077. }
  33078. if fieldNum <= 0 {
  33079. return fmt.Errorf("proto: WindowsPodSandboxConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  33080. }
  33081. switch fieldNum {
  33082. case 1:
  33083. if wireType != 2 {
  33084. return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", wireType)
  33085. }
  33086. var msglen int
  33087. for shift := uint(0); ; shift += 7 {
  33088. if shift >= 64 {
  33089. return ErrIntOverflowApi
  33090. }
  33091. if iNdEx >= l {
  33092. return io.ErrUnexpectedEOF
  33093. }
  33094. b := dAtA[iNdEx]
  33095. iNdEx++
  33096. msglen |= int(b&0x7F) << shift
  33097. if b < 0x80 {
  33098. break
  33099. }
  33100. }
  33101. if msglen < 0 {
  33102. return ErrInvalidLengthApi
  33103. }
  33104. postIndex := iNdEx + msglen
  33105. if postIndex < 0 {
  33106. return ErrInvalidLengthApi
  33107. }
  33108. if postIndex > l {
  33109. return io.ErrUnexpectedEOF
  33110. }
  33111. if m.SecurityContext == nil {
  33112. m.SecurityContext = &WindowsSandboxSecurityContext{}
  33113. }
  33114. if err := m.SecurityContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  33115. return err
  33116. }
  33117. iNdEx = postIndex
  33118. default:
  33119. iNdEx = preIndex
  33120. skippy, err := skipApi(dAtA[iNdEx:])
  33121. if err != nil {
  33122. return err
  33123. }
  33124. if (skippy < 0) || (iNdEx+skippy) < 0 {
  33125. return ErrInvalidLengthApi
  33126. }
  33127. if (iNdEx + skippy) > l {
  33128. return io.ErrUnexpectedEOF
  33129. }
  33130. iNdEx += skippy
  33131. }
  33132. }
  33133. if iNdEx > l {
  33134. return io.ErrUnexpectedEOF
  33135. }
  33136. return nil
  33137. }
  33138. func (m *WindowsContainerSecurityContext) Unmarshal(dAtA []byte) error {
  33139. l := len(dAtA)
  33140. iNdEx := 0
  33141. for iNdEx < l {
  33142. preIndex := iNdEx
  33143. var wire uint64
  33144. for shift := uint(0); ; shift += 7 {
  33145. if shift >= 64 {
  33146. return ErrIntOverflowApi
  33147. }
  33148. if iNdEx >= l {
  33149. return io.ErrUnexpectedEOF
  33150. }
  33151. b := dAtA[iNdEx]
  33152. iNdEx++
  33153. wire |= uint64(b&0x7F) << shift
  33154. if b < 0x80 {
  33155. break
  33156. }
  33157. }
  33158. fieldNum := int32(wire >> 3)
  33159. wireType := int(wire & 0x7)
  33160. if wireType == 4 {
  33161. return fmt.Errorf("proto: WindowsContainerSecurityContext: wiretype end group for non-group")
  33162. }
  33163. if fieldNum <= 0 {
  33164. return fmt.Errorf("proto: WindowsContainerSecurityContext: illegal tag %d (wire type %d)", fieldNum, wire)
  33165. }
  33166. switch fieldNum {
  33167. case 1:
  33168. if wireType != 2 {
  33169. return fmt.Errorf("proto: wrong wireType = %d for field RunAsUsername", wireType)
  33170. }
  33171. var stringLen uint64
  33172. for shift := uint(0); ; shift += 7 {
  33173. if shift >= 64 {
  33174. return ErrIntOverflowApi
  33175. }
  33176. if iNdEx >= l {
  33177. return io.ErrUnexpectedEOF
  33178. }
  33179. b := dAtA[iNdEx]
  33180. iNdEx++
  33181. stringLen |= uint64(b&0x7F) << shift
  33182. if b < 0x80 {
  33183. break
  33184. }
  33185. }
  33186. intStringLen := int(stringLen)
  33187. if intStringLen < 0 {
  33188. return ErrInvalidLengthApi
  33189. }
  33190. postIndex := iNdEx + intStringLen
  33191. if postIndex < 0 {
  33192. return ErrInvalidLengthApi
  33193. }
  33194. if postIndex > l {
  33195. return io.ErrUnexpectedEOF
  33196. }
  33197. m.RunAsUsername = string(dAtA[iNdEx:postIndex])
  33198. iNdEx = postIndex
  33199. case 2:
  33200. if wireType != 2 {
  33201. return fmt.Errorf("proto: wrong wireType = %d for field CredentialSpec", wireType)
  33202. }
  33203. var stringLen uint64
  33204. for shift := uint(0); ; shift += 7 {
  33205. if shift >= 64 {
  33206. return ErrIntOverflowApi
  33207. }
  33208. if iNdEx >= l {
  33209. return io.ErrUnexpectedEOF
  33210. }
  33211. b := dAtA[iNdEx]
  33212. iNdEx++
  33213. stringLen |= uint64(b&0x7F) << shift
  33214. if b < 0x80 {
  33215. break
  33216. }
  33217. }
  33218. intStringLen := int(stringLen)
  33219. if intStringLen < 0 {
  33220. return ErrInvalidLengthApi
  33221. }
  33222. postIndex := iNdEx + intStringLen
  33223. if postIndex < 0 {
  33224. return ErrInvalidLengthApi
  33225. }
  33226. if postIndex > l {
  33227. return io.ErrUnexpectedEOF
  33228. }
  33229. m.CredentialSpec = string(dAtA[iNdEx:postIndex])
  33230. iNdEx = postIndex
  33231. case 3:
  33232. if wireType != 0 {
  33233. return fmt.Errorf("proto: wrong wireType = %d for field HostProcess", wireType)
  33234. }
  33235. var v int
  33236. for shift := uint(0); ; shift += 7 {
  33237. if shift >= 64 {
  33238. return ErrIntOverflowApi
  33239. }
  33240. if iNdEx >= l {
  33241. return io.ErrUnexpectedEOF
  33242. }
  33243. b := dAtA[iNdEx]
  33244. iNdEx++
  33245. v |= int(b&0x7F) << shift
  33246. if b < 0x80 {
  33247. break
  33248. }
  33249. }
  33250. m.HostProcess = bool(v != 0)
  33251. default:
  33252. iNdEx = preIndex
  33253. skippy, err := skipApi(dAtA[iNdEx:])
  33254. if err != nil {
  33255. return err
  33256. }
  33257. if (skippy < 0) || (iNdEx+skippy) < 0 {
  33258. return ErrInvalidLengthApi
  33259. }
  33260. if (iNdEx + skippy) > l {
  33261. return io.ErrUnexpectedEOF
  33262. }
  33263. iNdEx += skippy
  33264. }
  33265. }
  33266. if iNdEx > l {
  33267. return io.ErrUnexpectedEOF
  33268. }
  33269. return nil
  33270. }
  33271. func (m *WindowsContainerConfig) Unmarshal(dAtA []byte) error {
  33272. l := len(dAtA)
  33273. iNdEx := 0
  33274. for iNdEx < l {
  33275. preIndex := iNdEx
  33276. var wire uint64
  33277. for shift := uint(0); ; shift += 7 {
  33278. if shift >= 64 {
  33279. return ErrIntOverflowApi
  33280. }
  33281. if iNdEx >= l {
  33282. return io.ErrUnexpectedEOF
  33283. }
  33284. b := dAtA[iNdEx]
  33285. iNdEx++
  33286. wire |= uint64(b&0x7F) << shift
  33287. if b < 0x80 {
  33288. break
  33289. }
  33290. }
  33291. fieldNum := int32(wire >> 3)
  33292. wireType := int(wire & 0x7)
  33293. if wireType == 4 {
  33294. return fmt.Errorf("proto: WindowsContainerConfig: wiretype end group for non-group")
  33295. }
  33296. if fieldNum <= 0 {
  33297. return fmt.Errorf("proto: WindowsContainerConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  33298. }
  33299. switch fieldNum {
  33300. case 1:
  33301. if wireType != 2 {
  33302. return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
  33303. }
  33304. var msglen int
  33305. for shift := uint(0); ; shift += 7 {
  33306. if shift >= 64 {
  33307. return ErrIntOverflowApi
  33308. }
  33309. if iNdEx >= l {
  33310. return io.ErrUnexpectedEOF
  33311. }
  33312. b := dAtA[iNdEx]
  33313. iNdEx++
  33314. msglen |= int(b&0x7F) << shift
  33315. if b < 0x80 {
  33316. break
  33317. }
  33318. }
  33319. if msglen < 0 {
  33320. return ErrInvalidLengthApi
  33321. }
  33322. postIndex := iNdEx + msglen
  33323. if postIndex < 0 {
  33324. return ErrInvalidLengthApi
  33325. }
  33326. if postIndex > l {
  33327. return io.ErrUnexpectedEOF
  33328. }
  33329. if m.Resources == nil {
  33330. m.Resources = &WindowsContainerResources{}
  33331. }
  33332. if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  33333. return err
  33334. }
  33335. iNdEx = postIndex
  33336. case 2:
  33337. if wireType != 2 {
  33338. return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", wireType)
  33339. }
  33340. var msglen int
  33341. for shift := uint(0); ; shift += 7 {
  33342. if shift >= 64 {
  33343. return ErrIntOverflowApi
  33344. }
  33345. if iNdEx >= l {
  33346. return io.ErrUnexpectedEOF
  33347. }
  33348. b := dAtA[iNdEx]
  33349. iNdEx++
  33350. msglen |= int(b&0x7F) << shift
  33351. if b < 0x80 {
  33352. break
  33353. }
  33354. }
  33355. if msglen < 0 {
  33356. return ErrInvalidLengthApi
  33357. }
  33358. postIndex := iNdEx + msglen
  33359. if postIndex < 0 {
  33360. return ErrInvalidLengthApi
  33361. }
  33362. if postIndex > l {
  33363. return io.ErrUnexpectedEOF
  33364. }
  33365. if m.SecurityContext == nil {
  33366. m.SecurityContext = &WindowsContainerSecurityContext{}
  33367. }
  33368. if err := m.SecurityContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  33369. return err
  33370. }
  33371. iNdEx = postIndex
  33372. default:
  33373. iNdEx = preIndex
  33374. skippy, err := skipApi(dAtA[iNdEx:])
  33375. if err != nil {
  33376. return err
  33377. }
  33378. if (skippy < 0) || (iNdEx+skippy) < 0 {
  33379. return ErrInvalidLengthApi
  33380. }
  33381. if (iNdEx + skippy) > l {
  33382. return io.ErrUnexpectedEOF
  33383. }
  33384. iNdEx += skippy
  33385. }
  33386. }
  33387. if iNdEx > l {
  33388. return io.ErrUnexpectedEOF
  33389. }
  33390. return nil
  33391. }
  33392. func (m *WindowsContainerResources) Unmarshal(dAtA []byte) error {
  33393. l := len(dAtA)
  33394. iNdEx := 0
  33395. for iNdEx < l {
  33396. preIndex := iNdEx
  33397. var wire uint64
  33398. for shift := uint(0); ; shift += 7 {
  33399. if shift >= 64 {
  33400. return ErrIntOverflowApi
  33401. }
  33402. if iNdEx >= l {
  33403. return io.ErrUnexpectedEOF
  33404. }
  33405. b := dAtA[iNdEx]
  33406. iNdEx++
  33407. wire |= uint64(b&0x7F) << shift
  33408. if b < 0x80 {
  33409. break
  33410. }
  33411. }
  33412. fieldNum := int32(wire >> 3)
  33413. wireType := int(wire & 0x7)
  33414. if wireType == 4 {
  33415. return fmt.Errorf("proto: WindowsContainerResources: wiretype end group for non-group")
  33416. }
  33417. if fieldNum <= 0 {
  33418. return fmt.Errorf("proto: WindowsContainerResources: illegal tag %d (wire type %d)", fieldNum, wire)
  33419. }
  33420. switch fieldNum {
  33421. case 1:
  33422. if wireType != 0 {
  33423. return fmt.Errorf("proto: wrong wireType = %d for field CpuShares", wireType)
  33424. }
  33425. m.CpuShares = 0
  33426. for shift := uint(0); ; shift += 7 {
  33427. if shift >= 64 {
  33428. return ErrIntOverflowApi
  33429. }
  33430. if iNdEx >= l {
  33431. return io.ErrUnexpectedEOF
  33432. }
  33433. b := dAtA[iNdEx]
  33434. iNdEx++
  33435. m.CpuShares |= int64(b&0x7F) << shift
  33436. if b < 0x80 {
  33437. break
  33438. }
  33439. }
  33440. case 2:
  33441. if wireType != 0 {
  33442. return fmt.Errorf("proto: wrong wireType = %d for field CpuCount", wireType)
  33443. }
  33444. m.CpuCount = 0
  33445. for shift := uint(0); ; shift += 7 {
  33446. if shift >= 64 {
  33447. return ErrIntOverflowApi
  33448. }
  33449. if iNdEx >= l {
  33450. return io.ErrUnexpectedEOF
  33451. }
  33452. b := dAtA[iNdEx]
  33453. iNdEx++
  33454. m.CpuCount |= int64(b&0x7F) << shift
  33455. if b < 0x80 {
  33456. break
  33457. }
  33458. }
  33459. case 3:
  33460. if wireType != 0 {
  33461. return fmt.Errorf("proto: wrong wireType = %d for field CpuMaximum", wireType)
  33462. }
  33463. m.CpuMaximum = 0
  33464. for shift := uint(0); ; shift += 7 {
  33465. if shift >= 64 {
  33466. return ErrIntOverflowApi
  33467. }
  33468. if iNdEx >= l {
  33469. return io.ErrUnexpectedEOF
  33470. }
  33471. b := dAtA[iNdEx]
  33472. iNdEx++
  33473. m.CpuMaximum |= int64(b&0x7F) << shift
  33474. if b < 0x80 {
  33475. break
  33476. }
  33477. }
  33478. case 4:
  33479. if wireType != 0 {
  33480. return fmt.Errorf("proto: wrong wireType = %d for field MemoryLimitInBytes", wireType)
  33481. }
  33482. m.MemoryLimitInBytes = 0
  33483. for shift := uint(0); ; shift += 7 {
  33484. if shift >= 64 {
  33485. return ErrIntOverflowApi
  33486. }
  33487. if iNdEx >= l {
  33488. return io.ErrUnexpectedEOF
  33489. }
  33490. b := dAtA[iNdEx]
  33491. iNdEx++
  33492. m.MemoryLimitInBytes |= int64(b&0x7F) << shift
  33493. if b < 0x80 {
  33494. break
  33495. }
  33496. }
  33497. case 5:
  33498. if wireType != 0 {
  33499. return fmt.Errorf("proto: wrong wireType = %d for field RootfsSizeInBytes", wireType)
  33500. }
  33501. m.RootfsSizeInBytes = 0
  33502. for shift := uint(0); ; shift += 7 {
  33503. if shift >= 64 {
  33504. return ErrIntOverflowApi
  33505. }
  33506. if iNdEx >= l {
  33507. return io.ErrUnexpectedEOF
  33508. }
  33509. b := dAtA[iNdEx]
  33510. iNdEx++
  33511. m.RootfsSizeInBytes |= int64(b&0x7F) << shift
  33512. if b < 0x80 {
  33513. break
  33514. }
  33515. }
  33516. default:
  33517. iNdEx = preIndex
  33518. skippy, err := skipApi(dAtA[iNdEx:])
  33519. if err != nil {
  33520. return err
  33521. }
  33522. if (skippy < 0) || (iNdEx+skippy) < 0 {
  33523. return ErrInvalidLengthApi
  33524. }
  33525. if (iNdEx + skippy) > l {
  33526. return io.ErrUnexpectedEOF
  33527. }
  33528. iNdEx += skippy
  33529. }
  33530. }
  33531. if iNdEx > l {
  33532. return io.ErrUnexpectedEOF
  33533. }
  33534. return nil
  33535. }
  33536. func (m *ContainerMetadata) Unmarshal(dAtA []byte) error {
  33537. l := len(dAtA)
  33538. iNdEx := 0
  33539. for iNdEx < l {
  33540. preIndex := iNdEx
  33541. var wire uint64
  33542. for shift := uint(0); ; shift += 7 {
  33543. if shift >= 64 {
  33544. return ErrIntOverflowApi
  33545. }
  33546. if iNdEx >= l {
  33547. return io.ErrUnexpectedEOF
  33548. }
  33549. b := dAtA[iNdEx]
  33550. iNdEx++
  33551. wire |= uint64(b&0x7F) << shift
  33552. if b < 0x80 {
  33553. break
  33554. }
  33555. }
  33556. fieldNum := int32(wire >> 3)
  33557. wireType := int(wire & 0x7)
  33558. if wireType == 4 {
  33559. return fmt.Errorf("proto: ContainerMetadata: wiretype end group for non-group")
  33560. }
  33561. if fieldNum <= 0 {
  33562. return fmt.Errorf("proto: ContainerMetadata: illegal tag %d (wire type %d)", fieldNum, wire)
  33563. }
  33564. switch fieldNum {
  33565. case 1:
  33566. if wireType != 2 {
  33567. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  33568. }
  33569. var stringLen uint64
  33570. for shift := uint(0); ; shift += 7 {
  33571. if shift >= 64 {
  33572. return ErrIntOverflowApi
  33573. }
  33574. if iNdEx >= l {
  33575. return io.ErrUnexpectedEOF
  33576. }
  33577. b := dAtA[iNdEx]
  33578. iNdEx++
  33579. stringLen |= uint64(b&0x7F) << shift
  33580. if b < 0x80 {
  33581. break
  33582. }
  33583. }
  33584. intStringLen := int(stringLen)
  33585. if intStringLen < 0 {
  33586. return ErrInvalidLengthApi
  33587. }
  33588. postIndex := iNdEx + intStringLen
  33589. if postIndex < 0 {
  33590. return ErrInvalidLengthApi
  33591. }
  33592. if postIndex > l {
  33593. return io.ErrUnexpectedEOF
  33594. }
  33595. m.Name = string(dAtA[iNdEx:postIndex])
  33596. iNdEx = postIndex
  33597. case 2:
  33598. if wireType != 0 {
  33599. return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType)
  33600. }
  33601. m.Attempt = 0
  33602. for shift := uint(0); ; shift += 7 {
  33603. if shift >= 64 {
  33604. return ErrIntOverflowApi
  33605. }
  33606. if iNdEx >= l {
  33607. return io.ErrUnexpectedEOF
  33608. }
  33609. b := dAtA[iNdEx]
  33610. iNdEx++
  33611. m.Attempt |= uint32(b&0x7F) << shift
  33612. if b < 0x80 {
  33613. break
  33614. }
  33615. }
  33616. default:
  33617. iNdEx = preIndex
  33618. skippy, err := skipApi(dAtA[iNdEx:])
  33619. if err != nil {
  33620. return err
  33621. }
  33622. if (skippy < 0) || (iNdEx+skippy) < 0 {
  33623. return ErrInvalidLengthApi
  33624. }
  33625. if (iNdEx + skippy) > l {
  33626. return io.ErrUnexpectedEOF
  33627. }
  33628. iNdEx += skippy
  33629. }
  33630. }
  33631. if iNdEx > l {
  33632. return io.ErrUnexpectedEOF
  33633. }
  33634. return nil
  33635. }
  33636. func (m *Device) Unmarshal(dAtA []byte) error {
  33637. l := len(dAtA)
  33638. iNdEx := 0
  33639. for iNdEx < l {
  33640. preIndex := iNdEx
  33641. var wire uint64
  33642. for shift := uint(0); ; shift += 7 {
  33643. if shift >= 64 {
  33644. return ErrIntOverflowApi
  33645. }
  33646. if iNdEx >= l {
  33647. return io.ErrUnexpectedEOF
  33648. }
  33649. b := dAtA[iNdEx]
  33650. iNdEx++
  33651. wire |= uint64(b&0x7F) << shift
  33652. if b < 0x80 {
  33653. break
  33654. }
  33655. }
  33656. fieldNum := int32(wire >> 3)
  33657. wireType := int(wire & 0x7)
  33658. if wireType == 4 {
  33659. return fmt.Errorf("proto: Device: wiretype end group for non-group")
  33660. }
  33661. if fieldNum <= 0 {
  33662. return fmt.Errorf("proto: Device: illegal tag %d (wire type %d)", fieldNum, wire)
  33663. }
  33664. switch fieldNum {
  33665. case 1:
  33666. if wireType != 2 {
  33667. return fmt.Errorf("proto: wrong wireType = %d for field ContainerPath", wireType)
  33668. }
  33669. var stringLen uint64
  33670. for shift := uint(0); ; shift += 7 {
  33671. if shift >= 64 {
  33672. return ErrIntOverflowApi
  33673. }
  33674. if iNdEx >= l {
  33675. return io.ErrUnexpectedEOF
  33676. }
  33677. b := dAtA[iNdEx]
  33678. iNdEx++
  33679. stringLen |= uint64(b&0x7F) << shift
  33680. if b < 0x80 {
  33681. break
  33682. }
  33683. }
  33684. intStringLen := int(stringLen)
  33685. if intStringLen < 0 {
  33686. return ErrInvalidLengthApi
  33687. }
  33688. postIndex := iNdEx + intStringLen
  33689. if postIndex < 0 {
  33690. return ErrInvalidLengthApi
  33691. }
  33692. if postIndex > l {
  33693. return io.ErrUnexpectedEOF
  33694. }
  33695. m.ContainerPath = string(dAtA[iNdEx:postIndex])
  33696. iNdEx = postIndex
  33697. case 2:
  33698. if wireType != 2 {
  33699. return fmt.Errorf("proto: wrong wireType = %d for field HostPath", wireType)
  33700. }
  33701. var stringLen uint64
  33702. for shift := uint(0); ; shift += 7 {
  33703. if shift >= 64 {
  33704. return ErrIntOverflowApi
  33705. }
  33706. if iNdEx >= l {
  33707. return io.ErrUnexpectedEOF
  33708. }
  33709. b := dAtA[iNdEx]
  33710. iNdEx++
  33711. stringLen |= uint64(b&0x7F) << shift
  33712. if b < 0x80 {
  33713. break
  33714. }
  33715. }
  33716. intStringLen := int(stringLen)
  33717. if intStringLen < 0 {
  33718. return ErrInvalidLengthApi
  33719. }
  33720. postIndex := iNdEx + intStringLen
  33721. if postIndex < 0 {
  33722. return ErrInvalidLengthApi
  33723. }
  33724. if postIndex > l {
  33725. return io.ErrUnexpectedEOF
  33726. }
  33727. m.HostPath = string(dAtA[iNdEx:postIndex])
  33728. iNdEx = postIndex
  33729. case 3:
  33730. if wireType != 2 {
  33731. return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
  33732. }
  33733. var stringLen uint64
  33734. for shift := uint(0); ; shift += 7 {
  33735. if shift >= 64 {
  33736. return ErrIntOverflowApi
  33737. }
  33738. if iNdEx >= l {
  33739. return io.ErrUnexpectedEOF
  33740. }
  33741. b := dAtA[iNdEx]
  33742. iNdEx++
  33743. stringLen |= uint64(b&0x7F) << shift
  33744. if b < 0x80 {
  33745. break
  33746. }
  33747. }
  33748. intStringLen := int(stringLen)
  33749. if intStringLen < 0 {
  33750. return ErrInvalidLengthApi
  33751. }
  33752. postIndex := iNdEx + intStringLen
  33753. if postIndex < 0 {
  33754. return ErrInvalidLengthApi
  33755. }
  33756. if postIndex > l {
  33757. return io.ErrUnexpectedEOF
  33758. }
  33759. m.Permissions = string(dAtA[iNdEx:postIndex])
  33760. iNdEx = postIndex
  33761. default:
  33762. iNdEx = preIndex
  33763. skippy, err := skipApi(dAtA[iNdEx:])
  33764. if err != nil {
  33765. return err
  33766. }
  33767. if (skippy < 0) || (iNdEx+skippy) < 0 {
  33768. return ErrInvalidLengthApi
  33769. }
  33770. if (iNdEx + skippy) > l {
  33771. return io.ErrUnexpectedEOF
  33772. }
  33773. iNdEx += skippy
  33774. }
  33775. }
  33776. if iNdEx > l {
  33777. return io.ErrUnexpectedEOF
  33778. }
  33779. return nil
  33780. }
  33781. func (m *CDIDevice) Unmarshal(dAtA []byte) error {
  33782. l := len(dAtA)
  33783. iNdEx := 0
  33784. for iNdEx < l {
  33785. preIndex := iNdEx
  33786. var wire uint64
  33787. for shift := uint(0); ; shift += 7 {
  33788. if shift >= 64 {
  33789. return ErrIntOverflowApi
  33790. }
  33791. if iNdEx >= l {
  33792. return io.ErrUnexpectedEOF
  33793. }
  33794. b := dAtA[iNdEx]
  33795. iNdEx++
  33796. wire |= uint64(b&0x7F) << shift
  33797. if b < 0x80 {
  33798. break
  33799. }
  33800. }
  33801. fieldNum := int32(wire >> 3)
  33802. wireType := int(wire & 0x7)
  33803. if wireType == 4 {
  33804. return fmt.Errorf("proto: CDIDevice: wiretype end group for non-group")
  33805. }
  33806. if fieldNum <= 0 {
  33807. return fmt.Errorf("proto: CDIDevice: illegal tag %d (wire type %d)", fieldNum, wire)
  33808. }
  33809. switch fieldNum {
  33810. case 1:
  33811. if wireType != 2 {
  33812. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  33813. }
  33814. var stringLen uint64
  33815. for shift := uint(0); ; shift += 7 {
  33816. if shift >= 64 {
  33817. return ErrIntOverflowApi
  33818. }
  33819. if iNdEx >= l {
  33820. return io.ErrUnexpectedEOF
  33821. }
  33822. b := dAtA[iNdEx]
  33823. iNdEx++
  33824. stringLen |= uint64(b&0x7F) << shift
  33825. if b < 0x80 {
  33826. break
  33827. }
  33828. }
  33829. intStringLen := int(stringLen)
  33830. if intStringLen < 0 {
  33831. return ErrInvalidLengthApi
  33832. }
  33833. postIndex := iNdEx + intStringLen
  33834. if postIndex < 0 {
  33835. return ErrInvalidLengthApi
  33836. }
  33837. if postIndex > l {
  33838. return io.ErrUnexpectedEOF
  33839. }
  33840. m.Name = string(dAtA[iNdEx:postIndex])
  33841. iNdEx = postIndex
  33842. default:
  33843. iNdEx = preIndex
  33844. skippy, err := skipApi(dAtA[iNdEx:])
  33845. if err != nil {
  33846. return err
  33847. }
  33848. if (skippy < 0) || (iNdEx+skippy) < 0 {
  33849. return ErrInvalidLengthApi
  33850. }
  33851. if (iNdEx + skippy) > l {
  33852. return io.ErrUnexpectedEOF
  33853. }
  33854. iNdEx += skippy
  33855. }
  33856. }
  33857. if iNdEx > l {
  33858. return io.ErrUnexpectedEOF
  33859. }
  33860. return nil
  33861. }
  33862. func (m *ContainerConfig) Unmarshal(dAtA []byte) error {
  33863. l := len(dAtA)
  33864. iNdEx := 0
  33865. for iNdEx < l {
  33866. preIndex := iNdEx
  33867. var wire uint64
  33868. for shift := uint(0); ; shift += 7 {
  33869. if shift >= 64 {
  33870. return ErrIntOverflowApi
  33871. }
  33872. if iNdEx >= l {
  33873. return io.ErrUnexpectedEOF
  33874. }
  33875. b := dAtA[iNdEx]
  33876. iNdEx++
  33877. wire |= uint64(b&0x7F) << shift
  33878. if b < 0x80 {
  33879. break
  33880. }
  33881. }
  33882. fieldNum := int32(wire >> 3)
  33883. wireType := int(wire & 0x7)
  33884. if wireType == 4 {
  33885. return fmt.Errorf("proto: ContainerConfig: wiretype end group for non-group")
  33886. }
  33887. if fieldNum <= 0 {
  33888. return fmt.Errorf("proto: ContainerConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  33889. }
  33890. switch fieldNum {
  33891. case 1:
  33892. if wireType != 2 {
  33893. return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
  33894. }
  33895. var msglen int
  33896. for shift := uint(0); ; shift += 7 {
  33897. if shift >= 64 {
  33898. return ErrIntOverflowApi
  33899. }
  33900. if iNdEx >= l {
  33901. return io.ErrUnexpectedEOF
  33902. }
  33903. b := dAtA[iNdEx]
  33904. iNdEx++
  33905. msglen |= int(b&0x7F) << shift
  33906. if b < 0x80 {
  33907. break
  33908. }
  33909. }
  33910. if msglen < 0 {
  33911. return ErrInvalidLengthApi
  33912. }
  33913. postIndex := iNdEx + msglen
  33914. if postIndex < 0 {
  33915. return ErrInvalidLengthApi
  33916. }
  33917. if postIndex > l {
  33918. return io.ErrUnexpectedEOF
  33919. }
  33920. if m.Metadata == nil {
  33921. m.Metadata = &ContainerMetadata{}
  33922. }
  33923. if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  33924. return err
  33925. }
  33926. iNdEx = postIndex
  33927. case 2:
  33928. if wireType != 2 {
  33929. return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
  33930. }
  33931. var msglen int
  33932. for shift := uint(0); ; shift += 7 {
  33933. if shift >= 64 {
  33934. return ErrIntOverflowApi
  33935. }
  33936. if iNdEx >= l {
  33937. return io.ErrUnexpectedEOF
  33938. }
  33939. b := dAtA[iNdEx]
  33940. iNdEx++
  33941. msglen |= int(b&0x7F) << shift
  33942. if b < 0x80 {
  33943. break
  33944. }
  33945. }
  33946. if msglen < 0 {
  33947. return ErrInvalidLengthApi
  33948. }
  33949. postIndex := iNdEx + msglen
  33950. if postIndex < 0 {
  33951. return ErrInvalidLengthApi
  33952. }
  33953. if postIndex > l {
  33954. return io.ErrUnexpectedEOF
  33955. }
  33956. if m.Image == nil {
  33957. m.Image = &ImageSpec{}
  33958. }
  33959. if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  33960. return err
  33961. }
  33962. iNdEx = postIndex
  33963. case 3:
  33964. if wireType != 2 {
  33965. return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType)
  33966. }
  33967. var stringLen uint64
  33968. for shift := uint(0); ; shift += 7 {
  33969. if shift >= 64 {
  33970. return ErrIntOverflowApi
  33971. }
  33972. if iNdEx >= l {
  33973. return io.ErrUnexpectedEOF
  33974. }
  33975. b := dAtA[iNdEx]
  33976. iNdEx++
  33977. stringLen |= uint64(b&0x7F) << shift
  33978. if b < 0x80 {
  33979. break
  33980. }
  33981. }
  33982. intStringLen := int(stringLen)
  33983. if intStringLen < 0 {
  33984. return ErrInvalidLengthApi
  33985. }
  33986. postIndex := iNdEx + intStringLen
  33987. if postIndex < 0 {
  33988. return ErrInvalidLengthApi
  33989. }
  33990. if postIndex > l {
  33991. return io.ErrUnexpectedEOF
  33992. }
  33993. m.Command = append(m.Command, string(dAtA[iNdEx:postIndex]))
  33994. iNdEx = postIndex
  33995. case 4:
  33996. if wireType != 2 {
  33997. return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType)
  33998. }
  33999. var stringLen uint64
  34000. for shift := uint(0); ; shift += 7 {
  34001. if shift >= 64 {
  34002. return ErrIntOverflowApi
  34003. }
  34004. if iNdEx >= l {
  34005. return io.ErrUnexpectedEOF
  34006. }
  34007. b := dAtA[iNdEx]
  34008. iNdEx++
  34009. stringLen |= uint64(b&0x7F) << shift
  34010. if b < 0x80 {
  34011. break
  34012. }
  34013. }
  34014. intStringLen := int(stringLen)
  34015. if intStringLen < 0 {
  34016. return ErrInvalidLengthApi
  34017. }
  34018. postIndex := iNdEx + intStringLen
  34019. if postIndex < 0 {
  34020. return ErrInvalidLengthApi
  34021. }
  34022. if postIndex > l {
  34023. return io.ErrUnexpectedEOF
  34024. }
  34025. m.Args = append(m.Args, string(dAtA[iNdEx:postIndex]))
  34026. iNdEx = postIndex
  34027. case 5:
  34028. if wireType != 2 {
  34029. return fmt.Errorf("proto: wrong wireType = %d for field WorkingDir", wireType)
  34030. }
  34031. var stringLen uint64
  34032. for shift := uint(0); ; shift += 7 {
  34033. if shift >= 64 {
  34034. return ErrIntOverflowApi
  34035. }
  34036. if iNdEx >= l {
  34037. return io.ErrUnexpectedEOF
  34038. }
  34039. b := dAtA[iNdEx]
  34040. iNdEx++
  34041. stringLen |= uint64(b&0x7F) << shift
  34042. if b < 0x80 {
  34043. break
  34044. }
  34045. }
  34046. intStringLen := int(stringLen)
  34047. if intStringLen < 0 {
  34048. return ErrInvalidLengthApi
  34049. }
  34050. postIndex := iNdEx + intStringLen
  34051. if postIndex < 0 {
  34052. return ErrInvalidLengthApi
  34053. }
  34054. if postIndex > l {
  34055. return io.ErrUnexpectedEOF
  34056. }
  34057. m.WorkingDir = string(dAtA[iNdEx:postIndex])
  34058. iNdEx = postIndex
  34059. case 6:
  34060. if wireType != 2 {
  34061. return fmt.Errorf("proto: wrong wireType = %d for field Envs", wireType)
  34062. }
  34063. var msglen int
  34064. for shift := uint(0); ; shift += 7 {
  34065. if shift >= 64 {
  34066. return ErrIntOverflowApi
  34067. }
  34068. if iNdEx >= l {
  34069. return io.ErrUnexpectedEOF
  34070. }
  34071. b := dAtA[iNdEx]
  34072. iNdEx++
  34073. msglen |= int(b&0x7F) << shift
  34074. if b < 0x80 {
  34075. break
  34076. }
  34077. }
  34078. if msglen < 0 {
  34079. return ErrInvalidLengthApi
  34080. }
  34081. postIndex := iNdEx + msglen
  34082. if postIndex < 0 {
  34083. return ErrInvalidLengthApi
  34084. }
  34085. if postIndex > l {
  34086. return io.ErrUnexpectedEOF
  34087. }
  34088. m.Envs = append(m.Envs, &KeyValue{})
  34089. if err := m.Envs[len(m.Envs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  34090. return err
  34091. }
  34092. iNdEx = postIndex
  34093. case 7:
  34094. if wireType != 2 {
  34095. return fmt.Errorf("proto: wrong wireType = %d for field Mounts", wireType)
  34096. }
  34097. var msglen int
  34098. for shift := uint(0); ; shift += 7 {
  34099. if shift >= 64 {
  34100. return ErrIntOverflowApi
  34101. }
  34102. if iNdEx >= l {
  34103. return io.ErrUnexpectedEOF
  34104. }
  34105. b := dAtA[iNdEx]
  34106. iNdEx++
  34107. msglen |= int(b&0x7F) << shift
  34108. if b < 0x80 {
  34109. break
  34110. }
  34111. }
  34112. if msglen < 0 {
  34113. return ErrInvalidLengthApi
  34114. }
  34115. postIndex := iNdEx + msglen
  34116. if postIndex < 0 {
  34117. return ErrInvalidLengthApi
  34118. }
  34119. if postIndex > l {
  34120. return io.ErrUnexpectedEOF
  34121. }
  34122. m.Mounts = append(m.Mounts, &Mount{})
  34123. if err := m.Mounts[len(m.Mounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  34124. return err
  34125. }
  34126. iNdEx = postIndex
  34127. case 8:
  34128. if wireType != 2 {
  34129. return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType)
  34130. }
  34131. var msglen int
  34132. for shift := uint(0); ; shift += 7 {
  34133. if shift >= 64 {
  34134. return ErrIntOverflowApi
  34135. }
  34136. if iNdEx >= l {
  34137. return io.ErrUnexpectedEOF
  34138. }
  34139. b := dAtA[iNdEx]
  34140. iNdEx++
  34141. msglen |= int(b&0x7F) << shift
  34142. if b < 0x80 {
  34143. break
  34144. }
  34145. }
  34146. if msglen < 0 {
  34147. return ErrInvalidLengthApi
  34148. }
  34149. postIndex := iNdEx + msglen
  34150. if postIndex < 0 {
  34151. return ErrInvalidLengthApi
  34152. }
  34153. if postIndex > l {
  34154. return io.ErrUnexpectedEOF
  34155. }
  34156. m.Devices = append(m.Devices, &Device{})
  34157. if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  34158. return err
  34159. }
  34160. iNdEx = postIndex
  34161. case 9:
  34162. if wireType != 2 {
  34163. return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  34164. }
  34165. var msglen int
  34166. for shift := uint(0); ; shift += 7 {
  34167. if shift >= 64 {
  34168. return ErrIntOverflowApi
  34169. }
  34170. if iNdEx >= l {
  34171. return io.ErrUnexpectedEOF
  34172. }
  34173. b := dAtA[iNdEx]
  34174. iNdEx++
  34175. msglen |= int(b&0x7F) << shift
  34176. if b < 0x80 {
  34177. break
  34178. }
  34179. }
  34180. if msglen < 0 {
  34181. return ErrInvalidLengthApi
  34182. }
  34183. postIndex := iNdEx + msglen
  34184. if postIndex < 0 {
  34185. return ErrInvalidLengthApi
  34186. }
  34187. if postIndex > l {
  34188. return io.ErrUnexpectedEOF
  34189. }
  34190. if m.Labels == nil {
  34191. m.Labels = make(map[string]string)
  34192. }
  34193. var mapkey string
  34194. var mapvalue string
  34195. for iNdEx < postIndex {
  34196. entryPreIndex := iNdEx
  34197. var wire uint64
  34198. for shift := uint(0); ; shift += 7 {
  34199. if shift >= 64 {
  34200. return ErrIntOverflowApi
  34201. }
  34202. if iNdEx >= l {
  34203. return io.ErrUnexpectedEOF
  34204. }
  34205. b := dAtA[iNdEx]
  34206. iNdEx++
  34207. wire |= uint64(b&0x7F) << shift
  34208. if b < 0x80 {
  34209. break
  34210. }
  34211. }
  34212. fieldNum := int32(wire >> 3)
  34213. if fieldNum == 1 {
  34214. var stringLenmapkey uint64
  34215. for shift := uint(0); ; shift += 7 {
  34216. if shift >= 64 {
  34217. return ErrIntOverflowApi
  34218. }
  34219. if iNdEx >= l {
  34220. return io.ErrUnexpectedEOF
  34221. }
  34222. b := dAtA[iNdEx]
  34223. iNdEx++
  34224. stringLenmapkey |= uint64(b&0x7F) << shift
  34225. if b < 0x80 {
  34226. break
  34227. }
  34228. }
  34229. intStringLenmapkey := int(stringLenmapkey)
  34230. if intStringLenmapkey < 0 {
  34231. return ErrInvalidLengthApi
  34232. }
  34233. postStringIndexmapkey := iNdEx + intStringLenmapkey
  34234. if postStringIndexmapkey < 0 {
  34235. return ErrInvalidLengthApi
  34236. }
  34237. if postStringIndexmapkey > l {
  34238. return io.ErrUnexpectedEOF
  34239. }
  34240. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  34241. iNdEx = postStringIndexmapkey
  34242. } else if fieldNum == 2 {
  34243. var stringLenmapvalue uint64
  34244. for shift := uint(0); ; shift += 7 {
  34245. if shift >= 64 {
  34246. return ErrIntOverflowApi
  34247. }
  34248. if iNdEx >= l {
  34249. return io.ErrUnexpectedEOF
  34250. }
  34251. b := dAtA[iNdEx]
  34252. iNdEx++
  34253. stringLenmapvalue |= uint64(b&0x7F) << shift
  34254. if b < 0x80 {
  34255. break
  34256. }
  34257. }
  34258. intStringLenmapvalue := int(stringLenmapvalue)
  34259. if intStringLenmapvalue < 0 {
  34260. return ErrInvalidLengthApi
  34261. }
  34262. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  34263. if postStringIndexmapvalue < 0 {
  34264. return ErrInvalidLengthApi
  34265. }
  34266. if postStringIndexmapvalue > l {
  34267. return io.ErrUnexpectedEOF
  34268. }
  34269. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  34270. iNdEx = postStringIndexmapvalue
  34271. } else {
  34272. iNdEx = entryPreIndex
  34273. skippy, err := skipApi(dAtA[iNdEx:])
  34274. if err != nil {
  34275. return err
  34276. }
  34277. if (skippy < 0) || (iNdEx+skippy) < 0 {
  34278. return ErrInvalidLengthApi
  34279. }
  34280. if (iNdEx + skippy) > postIndex {
  34281. return io.ErrUnexpectedEOF
  34282. }
  34283. iNdEx += skippy
  34284. }
  34285. }
  34286. m.Labels[mapkey] = mapvalue
  34287. iNdEx = postIndex
  34288. case 10:
  34289. if wireType != 2 {
  34290. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  34291. }
  34292. var msglen int
  34293. for shift := uint(0); ; shift += 7 {
  34294. if shift >= 64 {
  34295. return ErrIntOverflowApi
  34296. }
  34297. if iNdEx >= l {
  34298. return io.ErrUnexpectedEOF
  34299. }
  34300. b := dAtA[iNdEx]
  34301. iNdEx++
  34302. msglen |= int(b&0x7F) << shift
  34303. if b < 0x80 {
  34304. break
  34305. }
  34306. }
  34307. if msglen < 0 {
  34308. return ErrInvalidLengthApi
  34309. }
  34310. postIndex := iNdEx + msglen
  34311. if postIndex < 0 {
  34312. return ErrInvalidLengthApi
  34313. }
  34314. if postIndex > l {
  34315. return io.ErrUnexpectedEOF
  34316. }
  34317. if m.Annotations == nil {
  34318. m.Annotations = make(map[string]string)
  34319. }
  34320. var mapkey string
  34321. var mapvalue string
  34322. for iNdEx < postIndex {
  34323. entryPreIndex := iNdEx
  34324. var wire uint64
  34325. for shift := uint(0); ; shift += 7 {
  34326. if shift >= 64 {
  34327. return ErrIntOverflowApi
  34328. }
  34329. if iNdEx >= l {
  34330. return io.ErrUnexpectedEOF
  34331. }
  34332. b := dAtA[iNdEx]
  34333. iNdEx++
  34334. wire |= uint64(b&0x7F) << shift
  34335. if b < 0x80 {
  34336. break
  34337. }
  34338. }
  34339. fieldNum := int32(wire >> 3)
  34340. if fieldNum == 1 {
  34341. var stringLenmapkey uint64
  34342. for shift := uint(0); ; shift += 7 {
  34343. if shift >= 64 {
  34344. return ErrIntOverflowApi
  34345. }
  34346. if iNdEx >= l {
  34347. return io.ErrUnexpectedEOF
  34348. }
  34349. b := dAtA[iNdEx]
  34350. iNdEx++
  34351. stringLenmapkey |= uint64(b&0x7F) << shift
  34352. if b < 0x80 {
  34353. break
  34354. }
  34355. }
  34356. intStringLenmapkey := int(stringLenmapkey)
  34357. if intStringLenmapkey < 0 {
  34358. return ErrInvalidLengthApi
  34359. }
  34360. postStringIndexmapkey := iNdEx + intStringLenmapkey
  34361. if postStringIndexmapkey < 0 {
  34362. return ErrInvalidLengthApi
  34363. }
  34364. if postStringIndexmapkey > l {
  34365. return io.ErrUnexpectedEOF
  34366. }
  34367. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  34368. iNdEx = postStringIndexmapkey
  34369. } else if fieldNum == 2 {
  34370. var stringLenmapvalue uint64
  34371. for shift := uint(0); ; shift += 7 {
  34372. if shift >= 64 {
  34373. return ErrIntOverflowApi
  34374. }
  34375. if iNdEx >= l {
  34376. return io.ErrUnexpectedEOF
  34377. }
  34378. b := dAtA[iNdEx]
  34379. iNdEx++
  34380. stringLenmapvalue |= uint64(b&0x7F) << shift
  34381. if b < 0x80 {
  34382. break
  34383. }
  34384. }
  34385. intStringLenmapvalue := int(stringLenmapvalue)
  34386. if intStringLenmapvalue < 0 {
  34387. return ErrInvalidLengthApi
  34388. }
  34389. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  34390. if postStringIndexmapvalue < 0 {
  34391. return ErrInvalidLengthApi
  34392. }
  34393. if postStringIndexmapvalue > l {
  34394. return io.ErrUnexpectedEOF
  34395. }
  34396. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  34397. iNdEx = postStringIndexmapvalue
  34398. } else {
  34399. iNdEx = entryPreIndex
  34400. skippy, err := skipApi(dAtA[iNdEx:])
  34401. if err != nil {
  34402. return err
  34403. }
  34404. if (skippy < 0) || (iNdEx+skippy) < 0 {
  34405. return ErrInvalidLengthApi
  34406. }
  34407. if (iNdEx + skippy) > postIndex {
  34408. return io.ErrUnexpectedEOF
  34409. }
  34410. iNdEx += skippy
  34411. }
  34412. }
  34413. m.Annotations[mapkey] = mapvalue
  34414. iNdEx = postIndex
  34415. case 11:
  34416. if wireType != 2 {
  34417. return fmt.Errorf("proto: wrong wireType = %d for field LogPath", wireType)
  34418. }
  34419. var stringLen uint64
  34420. for shift := uint(0); ; shift += 7 {
  34421. if shift >= 64 {
  34422. return ErrIntOverflowApi
  34423. }
  34424. if iNdEx >= l {
  34425. return io.ErrUnexpectedEOF
  34426. }
  34427. b := dAtA[iNdEx]
  34428. iNdEx++
  34429. stringLen |= uint64(b&0x7F) << shift
  34430. if b < 0x80 {
  34431. break
  34432. }
  34433. }
  34434. intStringLen := int(stringLen)
  34435. if intStringLen < 0 {
  34436. return ErrInvalidLengthApi
  34437. }
  34438. postIndex := iNdEx + intStringLen
  34439. if postIndex < 0 {
  34440. return ErrInvalidLengthApi
  34441. }
  34442. if postIndex > l {
  34443. return io.ErrUnexpectedEOF
  34444. }
  34445. m.LogPath = string(dAtA[iNdEx:postIndex])
  34446. iNdEx = postIndex
  34447. case 12:
  34448. if wireType != 0 {
  34449. return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType)
  34450. }
  34451. var v int
  34452. for shift := uint(0); ; shift += 7 {
  34453. if shift >= 64 {
  34454. return ErrIntOverflowApi
  34455. }
  34456. if iNdEx >= l {
  34457. return io.ErrUnexpectedEOF
  34458. }
  34459. b := dAtA[iNdEx]
  34460. iNdEx++
  34461. v |= int(b&0x7F) << shift
  34462. if b < 0x80 {
  34463. break
  34464. }
  34465. }
  34466. m.Stdin = bool(v != 0)
  34467. case 13:
  34468. if wireType != 0 {
  34469. return fmt.Errorf("proto: wrong wireType = %d for field StdinOnce", wireType)
  34470. }
  34471. var v int
  34472. for shift := uint(0); ; shift += 7 {
  34473. if shift >= 64 {
  34474. return ErrIntOverflowApi
  34475. }
  34476. if iNdEx >= l {
  34477. return io.ErrUnexpectedEOF
  34478. }
  34479. b := dAtA[iNdEx]
  34480. iNdEx++
  34481. v |= int(b&0x7F) << shift
  34482. if b < 0x80 {
  34483. break
  34484. }
  34485. }
  34486. m.StdinOnce = bool(v != 0)
  34487. case 14:
  34488. if wireType != 0 {
  34489. return fmt.Errorf("proto: wrong wireType = %d for field Tty", wireType)
  34490. }
  34491. var v int
  34492. for shift := uint(0); ; shift += 7 {
  34493. if shift >= 64 {
  34494. return ErrIntOverflowApi
  34495. }
  34496. if iNdEx >= l {
  34497. return io.ErrUnexpectedEOF
  34498. }
  34499. b := dAtA[iNdEx]
  34500. iNdEx++
  34501. v |= int(b&0x7F) << shift
  34502. if b < 0x80 {
  34503. break
  34504. }
  34505. }
  34506. m.Tty = bool(v != 0)
  34507. case 15:
  34508. if wireType != 2 {
  34509. return fmt.Errorf("proto: wrong wireType = %d for field Linux", wireType)
  34510. }
  34511. var msglen int
  34512. for shift := uint(0); ; shift += 7 {
  34513. if shift >= 64 {
  34514. return ErrIntOverflowApi
  34515. }
  34516. if iNdEx >= l {
  34517. return io.ErrUnexpectedEOF
  34518. }
  34519. b := dAtA[iNdEx]
  34520. iNdEx++
  34521. msglen |= int(b&0x7F) << shift
  34522. if b < 0x80 {
  34523. break
  34524. }
  34525. }
  34526. if msglen < 0 {
  34527. return ErrInvalidLengthApi
  34528. }
  34529. postIndex := iNdEx + msglen
  34530. if postIndex < 0 {
  34531. return ErrInvalidLengthApi
  34532. }
  34533. if postIndex > l {
  34534. return io.ErrUnexpectedEOF
  34535. }
  34536. if m.Linux == nil {
  34537. m.Linux = &LinuxContainerConfig{}
  34538. }
  34539. if err := m.Linux.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  34540. return err
  34541. }
  34542. iNdEx = postIndex
  34543. case 16:
  34544. if wireType != 2 {
  34545. return fmt.Errorf("proto: wrong wireType = %d for field Windows", wireType)
  34546. }
  34547. var msglen int
  34548. for shift := uint(0); ; shift += 7 {
  34549. if shift >= 64 {
  34550. return ErrIntOverflowApi
  34551. }
  34552. if iNdEx >= l {
  34553. return io.ErrUnexpectedEOF
  34554. }
  34555. b := dAtA[iNdEx]
  34556. iNdEx++
  34557. msglen |= int(b&0x7F) << shift
  34558. if b < 0x80 {
  34559. break
  34560. }
  34561. }
  34562. if msglen < 0 {
  34563. return ErrInvalidLengthApi
  34564. }
  34565. postIndex := iNdEx + msglen
  34566. if postIndex < 0 {
  34567. return ErrInvalidLengthApi
  34568. }
  34569. if postIndex > l {
  34570. return io.ErrUnexpectedEOF
  34571. }
  34572. if m.Windows == nil {
  34573. m.Windows = &WindowsContainerConfig{}
  34574. }
  34575. if err := m.Windows.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  34576. return err
  34577. }
  34578. iNdEx = postIndex
  34579. case 17:
  34580. if wireType != 2 {
  34581. return fmt.Errorf("proto: wrong wireType = %d for field CDIDevices", wireType)
  34582. }
  34583. var msglen int
  34584. for shift := uint(0); ; shift += 7 {
  34585. if shift >= 64 {
  34586. return ErrIntOverflowApi
  34587. }
  34588. if iNdEx >= l {
  34589. return io.ErrUnexpectedEOF
  34590. }
  34591. b := dAtA[iNdEx]
  34592. iNdEx++
  34593. msglen |= int(b&0x7F) << shift
  34594. if b < 0x80 {
  34595. break
  34596. }
  34597. }
  34598. if msglen < 0 {
  34599. return ErrInvalidLengthApi
  34600. }
  34601. postIndex := iNdEx + msglen
  34602. if postIndex < 0 {
  34603. return ErrInvalidLengthApi
  34604. }
  34605. if postIndex > l {
  34606. return io.ErrUnexpectedEOF
  34607. }
  34608. m.CDIDevices = append(m.CDIDevices, &CDIDevice{})
  34609. if err := m.CDIDevices[len(m.CDIDevices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  34610. return err
  34611. }
  34612. iNdEx = postIndex
  34613. default:
  34614. iNdEx = preIndex
  34615. skippy, err := skipApi(dAtA[iNdEx:])
  34616. if err != nil {
  34617. return err
  34618. }
  34619. if (skippy < 0) || (iNdEx+skippy) < 0 {
  34620. return ErrInvalidLengthApi
  34621. }
  34622. if (iNdEx + skippy) > l {
  34623. return io.ErrUnexpectedEOF
  34624. }
  34625. iNdEx += skippy
  34626. }
  34627. }
  34628. if iNdEx > l {
  34629. return io.ErrUnexpectedEOF
  34630. }
  34631. return nil
  34632. }
  34633. func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error {
  34634. l := len(dAtA)
  34635. iNdEx := 0
  34636. for iNdEx < l {
  34637. preIndex := iNdEx
  34638. var wire uint64
  34639. for shift := uint(0); ; shift += 7 {
  34640. if shift >= 64 {
  34641. return ErrIntOverflowApi
  34642. }
  34643. if iNdEx >= l {
  34644. return io.ErrUnexpectedEOF
  34645. }
  34646. b := dAtA[iNdEx]
  34647. iNdEx++
  34648. wire |= uint64(b&0x7F) << shift
  34649. if b < 0x80 {
  34650. break
  34651. }
  34652. }
  34653. fieldNum := int32(wire >> 3)
  34654. wireType := int(wire & 0x7)
  34655. if wireType == 4 {
  34656. return fmt.Errorf("proto: CreateContainerRequest: wiretype end group for non-group")
  34657. }
  34658. if fieldNum <= 0 {
  34659. return fmt.Errorf("proto: CreateContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  34660. }
  34661. switch fieldNum {
  34662. case 1:
  34663. if wireType != 2 {
  34664. return fmt.Errorf("proto: wrong wireType = %d for field PodSandboxId", wireType)
  34665. }
  34666. var stringLen uint64
  34667. for shift := uint(0); ; shift += 7 {
  34668. if shift >= 64 {
  34669. return ErrIntOverflowApi
  34670. }
  34671. if iNdEx >= l {
  34672. return io.ErrUnexpectedEOF
  34673. }
  34674. b := dAtA[iNdEx]
  34675. iNdEx++
  34676. stringLen |= uint64(b&0x7F) << shift
  34677. if b < 0x80 {
  34678. break
  34679. }
  34680. }
  34681. intStringLen := int(stringLen)
  34682. if intStringLen < 0 {
  34683. return ErrInvalidLengthApi
  34684. }
  34685. postIndex := iNdEx + intStringLen
  34686. if postIndex < 0 {
  34687. return ErrInvalidLengthApi
  34688. }
  34689. if postIndex > l {
  34690. return io.ErrUnexpectedEOF
  34691. }
  34692. m.PodSandboxId = string(dAtA[iNdEx:postIndex])
  34693. iNdEx = postIndex
  34694. case 2:
  34695. if wireType != 2 {
  34696. return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType)
  34697. }
  34698. var msglen int
  34699. for shift := uint(0); ; shift += 7 {
  34700. if shift >= 64 {
  34701. return ErrIntOverflowApi
  34702. }
  34703. if iNdEx >= l {
  34704. return io.ErrUnexpectedEOF
  34705. }
  34706. b := dAtA[iNdEx]
  34707. iNdEx++
  34708. msglen |= int(b&0x7F) << shift
  34709. if b < 0x80 {
  34710. break
  34711. }
  34712. }
  34713. if msglen < 0 {
  34714. return ErrInvalidLengthApi
  34715. }
  34716. postIndex := iNdEx + msglen
  34717. if postIndex < 0 {
  34718. return ErrInvalidLengthApi
  34719. }
  34720. if postIndex > l {
  34721. return io.ErrUnexpectedEOF
  34722. }
  34723. if m.Config == nil {
  34724. m.Config = &ContainerConfig{}
  34725. }
  34726. if err := m.Config.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  34727. return err
  34728. }
  34729. iNdEx = postIndex
  34730. case 3:
  34731. if wireType != 2 {
  34732. return fmt.Errorf("proto: wrong wireType = %d for field SandboxConfig", wireType)
  34733. }
  34734. var msglen int
  34735. for shift := uint(0); ; shift += 7 {
  34736. if shift >= 64 {
  34737. return ErrIntOverflowApi
  34738. }
  34739. if iNdEx >= l {
  34740. return io.ErrUnexpectedEOF
  34741. }
  34742. b := dAtA[iNdEx]
  34743. iNdEx++
  34744. msglen |= int(b&0x7F) << shift
  34745. if b < 0x80 {
  34746. break
  34747. }
  34748. }
  34749. if msglen < 0 {
  34750. return ErrInvalidLengthApi
  34751. }
  34752. postIndex := iNdEx + msglen
  34753. if postIndex < 0 {
  34754. return ErrInvalidLengthApi
  34755. }
  34756. if postIndex > l {
  34757. return io.ErrUnexpectedEOF
  34758. }
  34759. if m.SandboxConfig == nil {
  34760. m.SandboxConfig = &PodSandboxConfig{}
  34761. }
  34762. if err := m.SandboxConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  34763. return err
  34764. }
  34765. iNdEx = postIndex
  34766. default:
  34767. iNdEx = preIndex
  34768. skippy, err := skipApi(dAtA[iNdEx:])
  34769. if err != nil {
  34770. return err
  34771. }
  34772. if (skippy < 0) || (iNdEx+skippy) < 0 {
  34773. return ErrInvalidLengthApi
  34774. }
  34775. if (iNdEx + skippy) > l {
  34776. return io.ErrUnexpectedEOF
  34777. }
  34778. iNdEx += skippy
  34779. }
  34780. }
  34781. if iNdEx > l {
  34782. return io.ErrUnexpectedEOF
  34783. }
  34784. return nil
  34785. }
  34786. func (m *CreateContainerResponse) Unmarshal(dAtA []byte) error {
  34787. l := len(dAtA)
  34788. iNdEx := 0
  34789. for iNdEx < l {
  34790. preIndex := iNdEx
  34791. var wire uint64
  34792. for shift := uint(0); ; shift += 7 {
  34793. if shift >= 64 {
  34794. return ErrIntOverflowApi
  34795. }
  34796. if iNdEx >= l {
  34797. return io.ErrUnexpectedEOF
  34798. }
  34799. b := dAtA[iNdEx]
  34800. iNdEx++
  34801. wire |= uint64(b&0x7F) << shift
  34802. if b < 0x80 {
  34803. break
  34804. }
  34805. }
  34806. fieldNum := int32(wire >> 3)
  34807. wireType := int(wire & 0x7)
  34808. if wireType == 4 {
  34809. return fmt.Errorf("proto: CreateContainerResponse: wiretype end group for non-group")
  34810. }
  34811. if fieldNum <= 0 {
  34812. return fmt.Errorf("proto: CreateContainerResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  34813. }
  34814. switch fieldNum {
  34815. case 1:
  34816. if wireType != 2 {
  34817. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  34818. }
  34819. var stringLen uint64
  34820. for shift := uint(0); ; shift += 7 {
  34821. if shift >= 64 {
  34822. return ErrIntOverflowApi
  34823. }
  34824. if iNdEx >= l {
  34825. return io.ErrUnexpectedEOF
  34826. }
  34827. b := dAtA[iNdEx]
  34828. iNdEx++
  34829. stringLen |= uint64(b&0x7F) << shift
  34830. if b < 0x80 {
  34831. break
  34832. }
  34833. }
  34834. intStringLen := int(stringLen)
  34835. if intStringLen < 0 {
  34836. return ErrInvalidLengthApi
  34837. }
  34838. postIndex := iNdEx + intStringLen
  34839. if postIndex < 0 {
  34840. return ErrInvalidLengthApi
  34841. }
  34842. if postIndex > l {
  34843. return io.ErrUnexpectedEOF
  34844. }
  34845. m.ContainerId = string(dAtA[iNdEx:postIndex])
  34846. iNdEx = postIndex
  34847. default:
  34848. iNdEx = preIndex
  34849. skippy, err := skipApi(dAtA[iNdEx:])
  34850. if err != nil {
  34851. return err
  34852. }
  34853. if (skippy < 0) || (iNdEx+skippy) < 0 {
  34854. return ErrInvalidLengthApi
  34855. }
  34856. if (iNdEx + skippy) > l {
  34857. return io.ErrUnexpectedEOF
  34858. }
  34859. iNdEx += skippy
  34860. }
  34861. }
  34862. if iNdEx > l {
  34863. return io.ErrUnexpectedEOF
  34864. }
  34865. return nil
  34866. }
  34867. func (m *StartContainerRequest) Unmarshal(dAtA []byte) error {
  34868. l := len(dAtA)
  34869. iNdEx := 0
  34870. for iNdEx < l {
  34871. preIndex := iNdEx
  34872. var wire uint64
  34873. for shift := uint(0); ; shift += 7 {
  34874. if shift >= 64 {
  34875. return ErrIntOverflowApi
  34876. }
  34877. if iNdEx >= l {
  34878. return io.ErrUnexpectedEOF
  34879. }
  34880. b := dAtA[iNdEx]
  34881. iNdEx++
  34882. wire |= uint64(b&0x7F) << shift
  34883. if b < 0x80 {
  34884. break
  34885. }
  34886. }
  34887. fieldNum := int32(wire >> 3)
  34888. wireType := int(wire & 0x7)
  34889. if wireType == 4 {
  34890. return fmt.Errorf("proto: StartContainerRequest: wiretype end group for non-group")
  34891. }
  34892. if fieldNum <= 0 {
  34893. return fmt.Errorf("proto: StartContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  34894. }
  34895. switch fieldNum {
  34896. case 1:
  34897. if wireType != 2 {
  34898. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  34899. }
  34900. var stringLen uint64
  34901. for shift := uint(0); ; shift += 7 {
  34902. if shift >= 64 {
  34903. return ErrIntOverflowApi
  34904. }
  34905. if iNdEx >= l {
  34906. return io.ErrUnexpectedEOF
  34907. }
  34908. b := dAtA[iNdEx]
  34909. iNdEx++
  34910. stringLen |= uint64(b&0x7F) << shift
  34911. if b < 0x80 {
  34912. break
  34913. }
  34914. }
  34915. intStringLen := int(stringLen)
  34916. if intStringLen < 0 {
  34917. return ErrInvalidLengthApi
  34918. }
  34919. postIndex := iNdEx + intStringLen
  34920. if postIndex < 0 {
  34921. return ErrInvalidLengthApi
  34922. }
  34923. if postIndex > l {
  34924. return io.ErrUnexpectedEOF
  34925. }
  34926. m.ContainerId = string(dAtA[iNdEx:postIndex])
  34927. iNdEx = postIndex
  34928. default:
  34929. iNdEx = preIndex
  34930. skippy, err := skipApi(dAtA[iNdEx:])
  34931. if err != nil {
  34932. return err
  34933. }
  34934. if (skippy < 0) || (iNdEx+skippy) < 0 {
  34935. return ErrInvalidLengthApi
  34936. }
  34937. if (iNdEx + skippy) > l {
  34938. return io.ErrUnexpectedEOF
  34939. }
  34940. iNdEx += skippy
  34941. }
  34942. }
  34943. if iNdEx > l {
  34944. return io.ErrUnexpectedEOF
  34945. }
  34946. return nil
  34947. }
  34948. func (m *StartContainerResponse) Unmarshal(dAtA []byte) error {
  34949. l := len(dAtA)
  34950. iNdEx := 0
  34951. for iNdEx < l {
  34952. preIndex := iNdEx
  34953. var wire uint64
  34954. for shift := uint(0); ; shift += 7 {
  34955. if shift >= 64 {
  34956. return ErrIntOverflowApi
  34957. }
  34958. if iNdEx >= l {
  34959. return io.ErrUnexpectedEOF
  34960. }
  34961. b := dAtA[iNdEx]
  34962. iNdEx++
  34963. wire |= uint64(b&0x7F) << shift
  34964. if b < 0x80 {
  34965. break
  34966. }
  34967. }
  34968. fieldNum := int32(wire >> 3)
  34969. wireType := int(wire & 0x7)
  34970. if wireType == 4 {
  34971. return fmt.Errorf("proto: StartContainerResponse: wiretype end group for non-group")
  34972. }
  34973. if fieldNum <= 0 {
  34974. return fmt.Errorf("proto: StartContainerResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  34975. }
  34976. switch fieldNum {
  34977. default:
  34978. iNdEx = preIndex
  34979. skippy, err := skipApi(dAtA[iNdEx:])
  34980. if err != nil {
  34981. return err
  34982. }
  34983. if (skippy < 0) || (iNdEx+skippy) < 0 {
  34984. return ErrInvalidLengthApi
  34985. }
  34986. if (iNdEx + skippy) > l {
  34987. return io.ErrUnexpectedEOF
  34988. }
  34989. iNdEx += skippy
  34990. }
  34991. }
  34992. if iNdEx > l {
  34993. return io.ErrUnexpectedEOF
  34994. }
  34995. return nil
  34996. }
  34997. func (m *StopContainerRequest) Unmarshal(dAtA []byte) error {
  34998. l := len(dAtA)
  34999. iNdEx := 0
  35000. for iNdEx < l {
  35001. preIndex := iNdEx
  35002. var wire uint64
  35003. for shift := uint(0); ; shift += 7 {
  35004. if shift >= 64 {
  35005. return ErrIntOverflowApi
  35006. }
  35007. if iNdEx >= l {
  35008. return io.ErrUnexpectedEOF
  35009. }
  35010. b := dAtA[iNdEx]
  35011. iNdEx++
  35012. wire |= uint64(b&0x7F) << shift
  35013. if b < 0x80 {
  35014. break
  35015. }
  35016. }
  35017. fieldNum := int32(wire >> 3)
  35018. wireType := int(wire & 0x7)
  35019. if wireType == 4 {
  35020. return fmt.Errorf("proto: StopContainerRequest: wiretype end group for non-group")
  35021. }
  35022. if fieldNum <= 0 {
  35023. return fmt.Errorf("proto: StopContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  35024. }
  35025. switch fieldNum {
  35026. case 1:
  35027. if wireType != 2 {
  35028. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  35029. }
  35030. var stringLen uint64
  35031. for shift := uint(0); ; shift += 7 {
  35032. if shift >= 64 {
  35033. return ErrIntOverflowApi
  35034. }
  35035. if iNdEx >= l {
  35036. return io.ErrUnexpectedEOF
  35037. }
  35038. b := dAtA[iNdEx]
  35039. iNdEx++
  35040. stringLen |= uint64(b&0x7F) << shift
  35041. if b < 0x80 {
  35042. break
  35043. }
  35044. }
  35045. intStringLen := int(stringLen)
  35046. if intStringLen < 0 {
  35047. return ErrInvalidLengthApi
  35048. }
  35049. postIndex := iNdEx + intStringLen
  35050. if postIndex < 0 {
  35051. return ErrInvalidLengthApi
  35052. }
  35053. if postIndex > l {
  35054. return io.ErrUnexpectedEOF
  35055. }
  35056. m.ContainerId = string(dAtA[iNdEx:postIndex])
  35057. iNdEx = postIndex
  35058. case 2:
  35059. if wireType != 0 {
  35060. return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
  35061. }
  35062. m.Timeout = 0
  35063. for shift := uint(0); ; shift += 7 {
  35064. if shift >= 64 {
  35065. return ErrIntOverflowApi
  35066. }
  35067. if iNdEx >= l {
  35068. return io.ErrUnexpectedEOF
  35069. }
  35070. b := dAtA[iNdEx]
  35071. iNdEx++
  35072. m.Timeout |= int64(b&0x7F) << shift
  35073. if b < 0x80 {
  35074. break
  35075. }
  35076. }
  35077. default:
  35078. iNdEx = preIndex
  35079. skippy, err := skipApi(dAtA[iNdEx:])
  35080. if err != nil {
  35081. return err
  35082. }
  35083. if (skippy < 0) || (iNdEx+skippy) < 0 {
  35084. return ErrInvalidLengthApi
  35085. }
  35086. if (iNdEx + skippy) > l {
  35087. return io.ErrUnexpectedEOF
  35088. }
  35089. iNdEx += skippy
  35090. }
  35091. }
  35092. if iNdEx > l {
  35093. return io.ErrUnexpectedEOF
  35094. }
  35095. return nil
  35096. }
  35097. func (m *StopContainerResponse) Unmarshal(dAtA []byte) error {
  35098. l := len(dAtA)
  35099. iNdEx := 0
  35100. for iNdEx < l {
  35101. preIndex := iNdEx
  35102. var wire uint64
  35103. for shift := uint(0); ; shift += 7 {
  35104. if shift >= 64 {
  35105. return ErrIntOverflowApi
  35106. }
  35107. if iNdEx >= l {
  35108. return io.ErrUnexpectedEOF
  35109. }
  35110. b := dAtA[iNdEx]
  35111. iNdEx++
  35112. wire |= uint64(b&0x7F) << shift
  35113. if b < 0x80 {
  35114. break
  35115. }
  35116. }
  35117. fieldNum := int32(wire >> 3)
  35118. wireType := int(wire & 0x7)
  35119. if wireType == 4 {
  35120. return fmt.Errorf("proto: StopContainerResponse: wiretype end group for non-group")
  35121. }
  35122. if fieldNum <= 0 {
  35123. return fmt.Errorf("proto: StopContainerResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  35124. }
  35125. switch fieldNum {
  35126. default:
  35127. iNdEx = preIndex
  35128. skippy, err := skipApi(dAtA[iNdEx:])
  35129. if err != nil {
  35130. return err
  35131. }
  35132. if (skippy < 0) || (iNdEx+skippy) < 0 {
  35133. return ErrInvalidLengthApi
  35134. }
  35135. if (iNdEx + skippy) > l {
  35136. return io.ErrUnexpectedEOF
  35137. }
  35138. iNdEx += skippy
  35139. }
  35140. }
  35141. if iNdEx > l {
  35142. return io.ErrUnexpectedEOF
  35143. }
  35144. return nil
  35145. }
  35146. func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error {
  35147. l := len(dAtA)
  35148. iNdEx := 0
  35149. for iNdEx < l {
  35150. preIndex := iNdEx
  35151. var wire uint64
  35152. for shift := uint(0); ; shift += 7 {
  35153. if shift >= 64 {
  35154. return ErrIntOverflowApi
  35155. }
  35156. if iNdEx >= l {
  35157. return io.ErrUnexpectedEOF
  35158. }
  35159. b := dAtA[iNdEx]
  35160. iNdEx++
  35161. wire |= uint64(b&0x7F) << shift
  35162. if b < 0x80 {
  35163. break
  35164. }
  35165. }
  35166. fieldNum := int32(wire >> 3)
  35167. wireType := int(wire & 0x7)
  35168. if wireType == 4 {
  35169. return fmt.Errorf("proto: RemoveContainerRequest: wiretype end group for non-group")
  35170. }
  35171. if fieldNum <= 0 {
  35172. return fmt.Errorf("proto: RemoveContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  35173. }
  35174. switch fieldNum {
  35175. case 1:
  35176. if wireType != 2 {
  35177. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  35178. }
  35179. var stringLen uint64
  35180. for shift := uint(0); ; shift += 7 {
  35181. if shift >= 64 {
  35182. return ErrIntOverflowApi
  35183. }
  35184. if iNdEx >= l {
  35185. return io.ErrUnexpectedEOF
  35186. }
  35187. b := dAtA[iNdEx]
  35188. iNdEx++
  35189. stringLen |= uint64(b&0x7F) << shift
  35190. if b < 0x80 {
  35191. break
  35192. }
  35193. }
  35194. intStringLen := int(stringLen)
  35195. if intStringLen < 0 {
  35196. return ErrInvalidLengthApi
  35197. }
  35198. postIndex := iNdEx + intStringLen
  35199. if postIndex < 0 {
  35200. return ErrInvalidLengthApi
  35201. }
  35202. if postIndex > l {
  35203. return io.ErrUnexpectedEOF
  35204. }
  35205. m.ContainerId = string(dAtA[iNdEx:postIndex])
  35206. iNdEx = postIndex
  35207. default:
  35208. iNdEx = preIndex
  35209. skippy, err := skipApi(dAtA[iNdEx:])
  35210. if err != nil {
  35211. return err
  35212. }
  35213. if (skippy < 0) || (iNdEx+skippy) < 0 {
  35214. return ErrInvalidLengthApi
  35215. }
  35216. if (iNdEx + skippy) > l {
  35217. return io.ErrUnexpectedEOF
  35218. }
  35219. iNdEx += skippy
  35220. }
  35221. }
  35222. if iNdEx > l {
  35223. return io.ErrUnexpectedEOF
  35224. }
  35225. return nil
  35226. }
  35227. func (m *RemoveContainerResponse) Unmarshal(dAtA []byte) error {
  35228. l := len(dAtA)
  35229. iNdEx := 0
  35230. for iNdEx < l {
  35231. preIndex := iNdEx
  35232. var wire uint64
  35233. for shift := uint(0); ; shift += 7 {
  35234. if shift >= 64 {
  35235. return ErrIntOverflowApi
  35236. }
  35237. if iNdEx >= l {
  35238. return io.ErrUnexpectedEOF
  35239. }
  35240. b := dAtA[iNdEx]
  35241. iNdEx++
  35242. wire |= uint64(b&0x7F) << shift
  35243. if b < 0x80 {
  35244. break
  35245. }
  35246. }
  35247. fieldNum := int32(wire >> 3)
  35248. wireType := int(wire & 0x7)
  35249. if wireType == 4 {
  35250. return fmt.Errorf("proto: RemoveContainerResponse: wiretype end group for non-group")
  35251. }
  35252. if fieldNum <= 0 {
  35253. return fmt.Errorf("proto: RemoveContainerResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  35254. }
  35255. switch fieldNum {
  35256. default:
  35257. iNdEx = preIndex
  35258. skippy, err := skipApi(dAtA[iNdEx:])
  35259. if err != nil {
  35260. return err
  35261. }
  35262. if (skippy < 0) || (iNdEx+skippy) < 0 {
  35263. return ErrInvalidLengthApi
  35264. }
  35265. if (iNdEx + skippy) > l {
  35266. return io.ErrUnexpectedEOF
  35267. }
  35268. iNdEx += skippy
  35269. }
  35270. }
  35271. if iNdEx > l {
  35272. return io.ErrUnexpectedEOF
  35273. }
  35274. return nil
  35275. }
  35276. func (m *ContainerStateValue) Unmarshal(dAtA []byte) error {
  35277. l := len(dAtA)
  35278. iNdEx := 0
  35279. for iNdEx < l {
  35280. preIndex := iNdEx
  35281. var wire uint64
  35282. for shift := uint(0); ; shift += 7 {
  35283. if shift >= 64 {
  35284. return ErrIntOverflowApi
  35285. }
  35286. if iNdEx >= l {
  35287. return io.ErrUnexpectedEOF
  35288. }
  35289. b := dAtA[iNdEx]
  35290. iNdEx++
  35291. wire |= uint64(b&0x7F) << shift
  35292. if b < 0x80 {
  35293. break
  35294. }
  35295. }
  35296. fieldNum := int32(wire >> 3)
  35297. wireType := int(wire & 0x7)
  35298. if wireType == 4 {
  35299. return fmt.Errorf("proto: ContainerStateValue: wiretype end group for non-group")
  35300. }
  35301. if fieldNum <= 0 {
  35302. return fmt.Errorf("proto: ContainerStateValue: illegal tag %d (wire type %d)", fieldNum, wire)
  35303. }
  35304. switch fieldNum {
  35305. case 1:
  35306. if wireType != 0 {
  35307. return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  35308. }
  35309. m.State = 0
  35310. for shift := uint(0); ; shift += 7 {
  35311. if shift >= 64 {
  35312. return ErrIntOverflowApi
  35313. }
  35314. if iNdEx >= l {
  35315. return io.ErrUnexpectedEOF
  35316. }
  35317. b := dAtA[iNdEx]
  35318. iNdEx++
  35319. m.State |= ContainerState(b&0x7F) << shift
  35320. if b < 0x80 {
  35321. break
  35322. }
  35323. }
  35324. default:
  35325. iNdEx = preIndex
  35326. skippy, err := skipApi(dAtA[iNdEx:])
  35327. if err != nil {
  35328. return err
  35329. }
  35330. if (skippy < 0) || (iNdEx+skippy) < 0 {
  35331. return ErrInvalidLengthApi
  35332. }
  35333. if (iNdEx + skippy) > l {
  35334. return io.ErrUnexpectedEOF
  35335. }
  35336. iNdEx += skippy
  35337. }
  35338. }
  35339. if iNdEx > l {
  35340. return io.ErrUnexpectedEOF
  35341. }
  35342. return nil
  35343. }
  35344. func (m *ContainerFilter) Unmarshal(dAtA []byte) error {
  35345. l := len(dAtA)
  35346. iNdEx := 0
  35347. for iNdEx < l {
  35348. preIndex := iNdEx
  35349. var wire uint64
  35350. for shift := uint(0); ; shift += 7 {
  35351. if shift >= 64 {
  35352. return ErrIntOverflowApi
  35353. }
  35354. if iNdEx >= l {
  35355. return io.ErrUnexpectedEOF
  35356. }
  35357. b := dAtA[iNdEx]
  35358. iNdEx++
  35359. wire |= uint64(b&0x7F) << shift
  35360. if b < 0x80 {
  35361. break
  35362. }
  35363. }
  35364. fieldNum := int32(wire >> 3)
  35365. wireType := int(wire & 0x7)
  35366. if wireType == 4 {
  35367. return fmt.Errorf("proto: ContainerFilter: wiretype end group for non-group")
  35368. }
  35369. if fieldNum <= 0 {
  35370. return fmt.Errorf("proto: ContainerFilter: illegal tag %d (wire type %d)", fieldNum, wire)
  35371. }
  35372. switch fieldNum {
  35373. case 1:
  35374. if wireType != 2 {
  35375. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  35376. }
  35377. var stringLen uint64
  35378. for shift := uint(0); ; shift += 7 {
  35379. if shift >= 64 {
  35380. return ErrIntOverflowApi
  35381. }
  35382. if iNdEx >= l {
  35383. return io.ErrUnexpectedEOF
  35384. }
  35385. b := dAtA[iNdEx]
  35386. iNdEx++
  35387. stringLen |= uint64(b&0x7F) << shift
  35388. if b < 0x80 {
  35389. break
  35390. }
  35391. }
  35392. intStringLen := int(stringLen)
  35393. if intStringLen < 0 {
  35394. return ErrInvalidLengthApi
  35395. }
  35396. postIndex := iNdEx + intStringLen
  35397. if postIndex < 0 {
  35398. return ErrInvalidLengthApi
  35399. }
  35400. if postIndex > l {
  35401. return io.ErrUnexpectedEOF
  35402. }
  35403. m.Id = string(dAtA[iNdEx:postIndex])
  35404. iNdEx = postIndex
  35405. case 2:
  35406. if wireType != 2 {
  35407. return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  35408. }
  35409. var msglen int
  35410. for shift := uint(0); ; shift += 7 {
  35411. if shift >= 64 {
  35412. return ErrIntOverflowApi
  35413. }
  35414. if iNdEx >= l {
  35415. return io.ErrUnexpectedEOF
  35416. }
  35417. b := dAtA[iNdEx]
  35418. iNdEx++
  35419. msglen |= int(b&0x7F) << shift
  35420. if b < 0x80 {
  35421. break
  35422. }
  35423. }
  35424. if msglen < 0 {
  35425. return ErrInvalidLengthApi
  35426. }
  35427. postIndex := iNdEx + msglen
  35428. if postIndex < 0 {
  35429. return ErrInvalidLengthApi
  35430. }
  35431. if postIndex > l {
  35432. return io.ErrUnexpectedEOF
  35433. }
  35434. if m.State == nil {
  35435. m.State = &ContainerStateValue{}
  35436. }
  35437. if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  35438. return err
  35439. }
  35440. iNdEx = postIndex
  35441. case 3:
  35442. if wireType != 2 {
  35443. return fmt.Errorf("proto: wrong wireType = %d for field PodSandboxId", wireType)
  35444. }
  35445. var stringLen uint64
  35446. for shift := uint(0); ; shift += 7 {
  35447. if shift >= 64 {
  35448. return ErrIntOverflowApi
  35449. }
  35450. if iNdEx >= l {
  35451. return io.ErrUnexpectedEOF
  35452. }
  35453. b := dAtA[iNdEx]
  35454. iNdEx++
  35455. stringLen |= uint64(b&0x7F) << shift
  35456. if b < 0x80 {
  35457. break
  35458. }
  35459. }
  35460. intStringLen := int(stringLen)
  35461. if intStringLen < 0 {
  35462. return ErrInvalidLengthApi
  35463. }
  35464. postIndex := iNdEx + intStringLen
  35465. if postIndex < 0 {
  35466. return ErrInvalidLengthApi
  35467. }
  35468. if postIndex > l {
  35469. return io.ErrUnexpectedEOF
  35470. }
  35471. m.PodSandboxId = string(dAtA[iNdEx:postIndex])
  35472. iNdEx = postIndex
  35473. case 4:
  35474. if wireType != 2 {
  35475. return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType)
  35476. }
  35477. var msglen int
  35478. for shift := uint(0); ; shift += 7 {
  35479. if shift >= 64 {
  35480. return ErrIntOverflowApi
  35481. }
  35482. if iNdEx >= l {
  35483. return io.ErrUnexpectedEOF
  35484. }
  35485. b := dAtA[iNdEx]
  35486. iNdEx++
  35487. msglen |= int(b&0x7F) << shift
  35488. if b < 0x80 {
  35489. break
  35490. }
  35491. }
  35492. if msglen < 0 {
  35493. return ErrInvalidLengthApi
  35494. }
  35495. postIndex := iNdEx + msglen
  35496. if postIndex < 0 {
  35497. return ErrInvalidLengthApi
  35498. }
  35499. if postIndex > l {
  35500. return io.ErrUnexpectedEOF
  35501. }
  35502. if m.LabelSelector == nil {
  35503. m.LabelSelector = make(map[string]string)
  35504. }
  35505. var mapkey string
  35506. var mapvalue string
  35507. for iNdEx < postIndex {
  35508. entryPreIndex := iNdEx
  35509. var wire uint64
  35510. for shift := uint(0); ; shift += 7 {
  35511. if shift >= 64 {
  35512. return ErrIntOverflowApi
  35513. }
  35514. if iNdEx >= l {
  35515. return io.ErrUnexpectedEOF
  35516. }
  35517. b := dAtA[iNdEx]
  35518. iNdEx++
  35519. wire |= uint64(b&0x7F) << shift
  35520. if b < 0x80 {
  35521. break
  35522. }
  35523. }
  35524. fieldNum := int32(wire >> 3)
  35525. if fieldNum == 1 {
  35526. var stringLenmapkey uint64
  35527. for shift := uint(0); ; shift += 7 {
  35528. if shift >= 64 {
  35529. return ErrIntOverflowApi
  35530. }
  35531. if iNdEx >= l {
  35532. return io.ErrUnexpectedEOF
  35533. }
  35534. b := dAtA[iNdEx]
  35535. iNdEx++
  35536. stringLenmapkey |= uint64(b&0x7F) << shift
  35537. if b < 0x80 {
  35538. break
  35539. }
  35540. }
  35541. intStringLenmapkey := int(stringLenmapkey)
  35542. if intStringLenmapkey < 0 {
  35543. return ErrInvalidLengthApi
  35544. }
  35545. postStringIndexmapkey := iNdEx + intStringLenmapkey
  35546. if postStringIndexmapkey < 0 {
  35547. return ErrInvalidLengthApi
  35548. }
  35549. if postStringIndexmapkey > l {
  35550. return io.ErrUnexpectedEOF
  35551. }
  35552. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  35553. iNdEx = postStringIndexmapkey
  35554. } else if fieldNum == 2 {
  35555. var stringLenmapvalue uint64
  35556. for shift := uint(0); ; shift += 7 {
  35557. if shift >= 64 {
  35558. return ErrIntOverflowApi
  35559. }
  35560. if iNdEx >= l {
  35561. return io.ErrUnexpectedEOF
  35562. }
  35563. b := dAtA[iNdEx]
  35564. iNdEx++
  35565. stringLenmapvalue |= uint64(b&0x7F) << shift
  35566. if b < 0x80 {
  35567. break
  35568. }
  35569. }
  35570. intStringLenmapvalue := int(stringLenmapvalue)
  35571. if intStringLenmapvalue < 0 {
  35572. return ErrInvalidLengthApi
  35573. }
  35574. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  35575. if postStringIndexmapvalue < 0 {
  35576. return ErrInvalidLengthApi
  35577. }
  35578. if postStringIndexmapvalue > l {
  35579. return io.ErrUnexpectedEOF
  35580. }
  35581. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  35582. iNdEx = postStringIndexmapvalue
  35583. } else {
  35584. iNdEx = entryPreIndex
  35585. skippy, err := skipApi(dAtA[iNdEx:])
  35586. if err != nil {
  35587. return err
  35588. }
  35589. if (skippy < 0) || (iNdEx+skippy) < 0 {
  35590. return ErrInvalidLengthApi
  35591. }
  35592. if (iNdEx + skippy) > postIndex {
  35593. return io.ErrUnexpectedEOF
  35594. }
  35595. iNdEx += skippy
  35596. }
  35597. }
  35598. m.LabelSelector[mapkey] = mapvalue
  35599. iNdEx = postIndex
  35600. default:
  35601. iNdEx = preIndex
  35602. skippy, err := skipApi(dAtA[iNdEx:])
  35603. if err != nil {
  35604. return err
  35605. }
  35606. if (skippy < 0) || (iNdEx+skippy) < 0 {
  35607. return ErrInvalidLengthApi
  35608. }
  35609. if (iNdEx + skippy) > l {
  35610. return io.ErrUnexpectedEOF
  35611. }
  35612. iNdEx += skippy
  35613. }
  35614. }
  35615. if iNdEx > l {
  35616. return io.ErrUnexpectedEOF
  35617. }
  35618. return nil
  35619. }
  35620. func (m *ListContainersRequest) Unmarshal(dAtA []byte) error {
  35621. l := len(dAtA)
  35622. iNdEx := 0
  35623. for iNdEx < l {
  35624. preIndex := iNdEx
  35625. var wire uint64
  35626. for shift := uint(0); ; shift += 7 {
  35627. if shift >= 64 {
  35628. return ErrIntOverflowApi
  35629. }
  35630. if iNdEx >= l {
  35631. return io.ErrUnexpectedEOF
  35632. }
  35633. b := dAtA[iNdEx]
  35634. iNdEx++
  35635. wire |= uint64(b&0x7F) << shift
  35636. if b < 0x80 {
  35637. break
  35638. }
  35639. }
  35640. fieldNum := int32(wire >> 3)
  35641. wireType := int(wire & 0x7)
  35642. if wireType == 4 {
  35643. return fmt.Errorf("proto: ListContainersRequest: wiretype end group for non-group")
  35644. }
  35645. if fieldNum <= 0 {
  35646. return fmt.Errorf("proto: ListContainersRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  35647. }
  35648. switch fieldNum {
  35649. case 1:
  35650. if wireType != 2 {
  35651. return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType)
  35652. }
  35653. var msglen int
  35654. for shift := uint(0); ; shift += 7 {
  35655. if shift >= 64 {
  35656. return ErrIntOverflowApi
  35657. }
  35658. if iNdEx >= l {
  35659. return io.ErrUnexpectedEOF
  35660. }
  35661. b := dAtA[iNdEx]
  35662. iNdEx++
  35663. msglen |= int(b&0x7F) << shift
  35664. if b < 0x80 {
  35665. break
  35666. }
  35667. }
  35668. if msglen < 0 {
  35669. return ErrInvalidLengthApi
  35670. }
  35671. postIndex := iNdEx + msglen
  35672. if postIndex < 0 {
  35673. return ErrInvalidLengthApi
  35674. }
  35675. if postIndex > l {
  35676. return io.ErrUnexpectedEOF
  35677. }
  35678. if m.Filter == nil {
  35679. m.Filter = &ContainerFilter{}
  35680. }
  35681. if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  35682. return err
  35683. }
  35684. iNdEx = postIndex
  35685. default:
  35686. iNdEx = preIndex
  35687. skippy, err := skipApi(dAtA[iNdEx:])
  35688. if err != nil {
  35689. return err
  35690. }
  35691. if (skippy < 0) || (iNdEx+skippy) < 0 {
  35692. return ErrInvalidLengthApi
  35693. }
  35694. if (iNdEx + skippy) > l {
  35695. return io.ErrUnexpectedEOF
  35696. }
  35697. iNdEx += skippy
  35698. }
  35699. }
  35700. if iNdEx > l {
  35701. return io.ErrUnexpectedEOF
  35702. }
  35703. return nil
  35704. }
  35705. func (m *Container) Unmarshal(dAtA []byte) error {
  35706. l := len(dAtA)
  35707. iNdEx := 0
  35708. for iNdEx < l {
  35709. preIndex := iNdEx
  35710. var wire uint64
  35711. for shift := uint(0); ; shift += 7 {
  35712. if shift >= 64 {
  35713. return ErrIntOverflowApi
  35714. }
  35715. if iNdEx >= l {
  35716. return io.ErrUnexpectedEOF
  35717. }
  35718. b := dAtA[iNdEx]
  35719. iNdEx++
  35720. wire |= uint64(b&0x7F) << shift
  35721. if b < 0x80 {
  35722. break
  35723. }
  35724. }
  35725. fieldNum := int32(wire >> 3)
  35726. wireType := int(wire & 0x7)
  35727. if wireType == 4 {
  35728. return fmt.Errorf("proto: Container: wiretype end group for non-group")
  35729. }
  35730. if fieldNum <= 0 {
  35731. return fmt.Errorf("proto: Container: illegal tag %d (wire type %d)", fieldNum, wire)
  35732. }
  35733. switch fieldNum {
  35734. case 1:
  35735. if wireType != 2 {
  35736. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  35737. }
  35738. var stringLen uint64
  35739. for shift := uint(0); ; shift += 7 {
  35740. if shift >= 64 {
  35741. return ErrIntOverflowApi
  35742. }
  35743. if iNdEx >= l {
  35744. return io.ErrUnexpectedEOF
  35745. }
  35746. b := dAtA[iNdEx]
  35747. iNdEx++
  35748. stringLen |= uint64(b&0x7F) << shift
  35749. if b < 0x80 {
  35750. break
  35751. }
  35752. }
  35753. intStringLen := int(stringLen)
  35754. if intStringLen < 0 {
  35755. return ErrInvalidLengthApi
  35756. }
  35757. postIndex := iNdEx + intStringLen
  35758. if postIndex < 0 {
  35759. return ErrInvalidLengthApi
  35760. }
  35761. if postIndex > l {
  35762. return io.ErrUnexpectedEOF
  35763. }
  35764. m.Id = string(dAtA[iNdEx:postIndex])
  35765. iNdEx = postIndex
  35766. case 2:
  35767. if wireType != 2 {
  35768. return fmt.Errorf("proto: wrong wireType = %d for field PodSandboxId", wireType)
  35769. }
  35770. var stringLen uint64
  35771. for shift := uint(0); ; shift += 7 {
  35772. if shift >= 64 {
  35773. return ErrIntOverflowApi
  35774. }
  35775. if iNdEx >= l {
  35776. return io.ErrUnexpectedEOF
  35777. }
  35778. b := dAtA[iNdEx]
  35779. iNdEx++
  35780. stringLen |= uint64(b&0x7F) << shift
  35781. if b < 0x80 {
  35782. break
  35783. }
  35784. }
  35785. intStringLen := int(stringLen)
  35786. if intStringLen < 0 {
  35787. return ErrInvalidLengthApi
  35788. }
  35789. postIndex := iNdEx + intStringLen
  35790. if postIndex < 0 {
  35791. return ErrInvalidLengthApi
  35792. }
  35793. if postIndex > l {
  35794. return io.ErrUnexpectedEOF
  35795. }
  35796. m.PodSandboxId = string(dAtA[iNdEx:postIndex])
  35797. iNdEx = postIndex
  35798. case 3:
  35799. if wireType != 2 {
  35800. return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
  35801. }
  35802. var msglen int
  35803. for shift := uint(0); ; shift += 7 {
  35804. if shift >= 64 {
  35805. return ErrIntOverflowApi
  35806. }
  35807. if iNdEx >= l {
  35808. return io.ErrUnexpectedEOF
  35809. }
  35810. b := dAtA[iNdEx]
  35811. iNdEx++
  35812. msglen |= int(b&0x7F) << shift
  35813. if b < 0x80 {
  35814. break
  35815. }
  35816. }
  35817. if msglen < 0 {
  35818. return ErrInvalidLengthApi
  35819. }
  35820. postIndex := iNdEx + msglen
  35821. if postIndex < 0 {
  35822. return ErrInvalidLengthApi
  35823. }
  35824. if postIndex > l {
  35825. return io.ErrUnexpectedEOF
  35826. }
  35827. if m.Metadata == nil {
  35828. m.Metadata = &ContainerMetadata{}
  35829. }
  35830. if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  35831. return err
  35832. }
  35833. iNdEx = postIndex
  35834. case 4:
  35835. if wireType != 2 {
  35836. return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
  35837. }
  35838. var msglen int
  35839. for shift := uint(0); ; shift += 7 {
  35840. if shift >= 64 {
  35841. return ErrIntOverflowApi
  35842. }
  35843. if iNdEx >= l {
  35844. return io.ErrUnexpectedEOF
  35845. }
  35846. b := dAtA[iNdEx]
  35847. iNdEx++
  35848. msglen |= int(b&0x7F) << shift
  35849. if b < 0x80 {
  35850. break
  35851. }
  35852. }
  35853. if msglen < 0 {
  35854. return ErrInvalidLengthApi
  35855. }
  35856. postIndex := iNdEx + msglen
  35857. if postIndex < 0 {
  35858. return ErrInvalidLengthApi
  35859. }
  35860. if postIndex > l {
  35861. return io.ErrUnexpectedEOF
  35862. }
  35863. if m.Image == nil {
  35864. m.Image = &ImageSpec{}
  35865. }
  35866. if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  35867. return err
  35868. }
  35869. iNdEx = postIndex
  35870. case 5:
  35871. if wireType != 2 {
  35872. return fmt.Errorf("proto: wrong wireType = %d for field ImageRef", wireType)
  35873. }
  35874. var stringLen uint64
  35875. for shift := uint(0); ; shift += 7 {
  35876. if shift >= 64 {
  35877. return ErrIntOverflowApi
  35878. }
  35879. if iNdEx >= l {
  35880. return io.ErrUnexpectedEOF
  35881. }
  35882. b := dAtA[iNdEx]
  35883. iNdEx++
  35884. stringLen |= uint64(b&0x7F) << shift
  35885. if b < 0x80 {
  35886. break
  35887. }
  35888. }
  35889. intStringLen := int(stringLen)
  35890. if intStringLen < 0 {
  35891. return ErrInvalidLengthApi
  35892. }
  35893. postIndex := iNdEx + intStringLen
  35894. if postIndex < 0 {
  35895. return ErrInvalidLengthApi
  35896. }
  35897. if postIndex > l {
  35898. return io.ErrUnexpectedEOF
  35899. }
  35900. m.ImageRef = string(dAtA[iNdEx:postIndex])
  35901. iNdEx = postIndex
  35902. case 6:
  35903. if wireType != 0 {
  35904. return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  35905. }
  35906. m.State = 0
  35907. for shift := uint(0); ; shift += 7 {
  35908. if shift >= 64 {
  35909. return ErrIntOverflowApi
  35910. }
  35911. if iNdEx >= l {
  35912. return io.ErrUnexpectedEOF
  35913. }
  35914. b := dAtA[iNdEx]
  35915. iNdEx++
  35916. m.State |= ContainerState(b&0x7F) << shift
  35917. if b < 0x80 {
  35918. break
  35919. }
  35920. }
  35921. case 7:
  35922. if wireType != 0 {
  35923. return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
  35924. }
  35925. m.CreatedAt = 0
  35926. for shift := uint(0); ; shift += 7 {
  35927. if shift >= 64 {
  35928. return ErrIntOverflowApi
  35929. }
  35930. if iNdEx >= l {
  35931. return io.ErrUnexpectedEOF
  35932. }
  35933. b := dAtA[iNdEx]
  35934. iNdEx++
  35935. m.CreatedAt |= int64(b&0x7F) << shift
  35936. if b < 0x80 {
  35937. break
  35938. }
  35939. }
  35940. case 8:
  35941. if wireType != 2 {
  35942. return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  35943. }
  35944. var msglen int
  35945. for shift := uint(0); ; shift += 7 {
  35946. if shift >= 64 {
  35947. return ErrIntOverflowApi
  35948. }
  35949. if iNdEx >= l {
  35950. return io.ErrUnexpectedEOF
  35951. }
  35952. b := dAtA[iNdEx]
  35953. iNdEx++
  35954. msglen |= int(b&0x7F) << shift
  35955. if b < 0x80 {
  35956. break
  35957. }
  35958. }
  35959. if msglen < 0 {
  35960. return ErrInvalidLengthApi
  35961. }
  35962. postIndex := iNdEx + msglen
  35963. if postIndex < 0 {
  35964. return ErrInvalidLengthApi
  35965. }
  35966. if postIndex > l {
  35967. return io.ErrUnexpectedEOF
  35968. }
  35969. if m.Labels == nil {
  35970. m.Labels = make(map[string]string)
  35971. }
  35972. var mapkey string
  35973. var mapvalue string
  35974. for iNdEx < postIndex {
  35975. entryPreIndex := iNdEx
  35976. var wire uint64
  35977. for shift := uint(0); ; shift += 7 {
  35978. if shift >= 64 {
  35979. return ErrIntOverflowApi
  35980. }
  35981. if iNdEx >= l {
  35982. return io.ErrUnexpectedEOF
  35983. }
  35984. b := dAtA[iNdEx]
  35985. iNdEx++
  35986. wire |= uint64(b&0x7F) << shift
  35987. if b < 0x80 {
  35988. break
  35989. }
  35990. }
  35991. fieldNum := int32(wire >> 3)
  35992. if fieldNum == 1 {
  35993. var stringLenmapkey uint64
  35994. for shift := uint(0); ; shift += 7 {
  35995. if shift >= 64 {
  35996. return ErrIntOverflowApi
  35997. }
  35998. if iNdEx >= l {
  35999. return io.ErrUnexpectedEOF
  36000. }
  36001. b := dAtA[iNdEx]
  36002. iNdEx++
  36003. stringLenmapkey |= uint64(b&0x7F) << shift
  36004. if b < 0x80 {
  36005. break
  36006. }
  36007. }
  36008. intStringLenmapkey := int(stringLenmapkey)
  36009. if intStringLenmapkey < 0 {
  36010. return ErrInvalidLengthApi
  36011. }
  36012. postStringIndexmapkey := iNdEx + intStringLenmapkey
  36013. if postStringIndexmapkey < 0 {
  36014. return ErrInvalidLengthApi
  36015. }
  36016. if postStringIndexmapkey > l {
  36017. return io.ErrUnexpectedEOF
  36018. }
  36019. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  36020. iNdEx = postStringIndexmapkey
  36021. } else if fieldNum == 2 {
  36022. var stringLenmapvalue uint64
  36023. for shift := uint(0); ; shift += 7 {
  36024. if shift >= 64 {
  36025. return ErrIntOverflowApi
  36026. }
  36027. if iNdEx >= l {
  36028. return io.ErrUnexpectedEOF
  36029. }
  36030. b := dAtA[iNdEx]
  36031. iNdEx++
  36032. stringLenmapvalue |= uint64(b&0x7F) << shift
  36033. if b < 0x80 {
  36034. break
  36035. }
  36036. }
  36037. intStringLenmapvalue := int(stringLenmapvalue)
  36038. if intStringLenmapvalue < 0 {
  36039. return ErrInvalidLengthApi
  36040. }
  36041. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  36042. if postStringIndexmapvalue < 0 {
  36043. return ErrInvalidLengthApi
  36044. }
  36045. if postStringIndexmapvalue > l {
  36046. return io.ErrUnexpectedEOF
  36047. }
  36048. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  36049. iNdEx = postStringIndexmapvalue
  36050. } else {
  36051. iNdEx = entryPreIndex
  36052. skippy, err := skipApi(dAtA[iNdEx:])
  36053. if err != nil {
  36054. return err
  36055. }
  36056. if (skippy < 0) || (iNdEx+skippy) < 0 {
  36057. return ErrInvalidLengthApi
  36058. }
  36059. if (iNdEx + skippy) > postIndex {
  36060. return io.ErrUnexpectedEOF
  36061. }
  36062. iNdEx += skippy
  36063. }
  36064. }
  36065. m.Labels[mapkey] = mapvalue
  36066. iNdEx = postIndex
  36067. case 9:
  36068. if wireType != 2 {
  36069. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  36070. }
  36071. var msglen int
  36072. for shift := uint(0); ; shift += 7 {
  36073. if shift >= 64 {
  36074. return ErrIntOverflowApi
  36075. }
  36076. if iNdEx >= l {
  36077. return io.ErrUnexpectedEOF
  36078. }
  36079. b := dAtA[iNdEx]
  36080. iNdEx++
  36081. msglen |= int(b&0x7F) << shift
  36082. if b < 0x80 {
  36083. break
  36084. }
  36085. }
  36086. if msglen < 0 {
  36087. return ErrInvalidLengthApi
  36088. }
  36089. postIndex := iNdEx + msglen
  36090. if postIndex < 0 {
  36091. return ErrInvalidLengthApi
  36092. }
  36093. if postIndex > l {
  36094. return io.ErrUnexpectedEOF
  36095. }
  36096. if m.Annotations == nil {
  36097. m.Annotations = make(map[string]string)
  36098. }
  36099. var mapkey string
  36100. var mapvalue string
  36101. for iNdEx < postIndex {
  36102. entryPreIndex := iNdEx
  36103. var wire uint64
  36104. for shift := uint(0); ; shift += 7 {
  36105. if shift >= 64 {
  36106. return ErrIntOverflowApi
  36107. }
  36108. if iNdEx >= l {
  36109. return io.ErrUnexpectedEOF
  36110. }
  36111. b := dAtA[iNdEx]
  36112. iNdEx++
  36113. wire |= uint64(b&0x7F) << shift
  36114. if b < 0x80 {
  36115. break
  36116. }
  36117. }
  36118. fieldNum := int32(wire >> 3)
  36119. if fieldNum == 1 {
  36120. var stringLenmapkey uint64
  36121. for shift := uint(0); ; shift += 7 {
  36122. if shift >= 64 {
  36123. return ErrIntOverflowApi
  36124. }
  36125. if iNdEx >= l {
  36126. return io.ErrUnexpectedEOF
  36127. }
  36128. b := dAtA[iNdEx]
  36129. iNdEx++
  36130. stringLenmapkey |= uint64(b&0x7F) << shift
  36131. if b < 0x80 {
  36132. break
  36133. }
  36134. }
  36135. intStringLenmapkey := int(stringLenmapkey)
  36136. if intStringLenmapkey < 0 {
  36137. return ErrInvalidLengthApi
  36138. }
  36139. postStringIndexmapkey := iNdEx + intStringLenmapkey
  36140. if postStringIndexmapkey < 0 {
  36141. return ErrInvalidLengthApi
  36142. }
  36143. if postStringIndexmapkey > l {
  36144. return io.ErrUnexpectedEOF
  36145. }
  36146. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  36147. iNdEx = postStringIndexmapkey
  36148. } else if fieldNum == 2 {
  36149. var stringLenmapvalue uint64
  36150. for shift := uint(0); ; shift += 7 {
  36151. if shift >= 64 {
  36152. return ErrIntOverflowApi
  36153. }
  36154. if iNdEx >= l {
  36155. return io.ErrUnexpectedEOF
  36156. }
  36157. b := dAtA[iNdEx]
  36158. iNdEx++
  36159. stringLenmapvalue |= uint64(b&0x7F) << shift
  36160. if b < 0x80 {
  36161. break
  36162. }
  36163. }
  36164. intStringLenmapvalue := int(stringLenmapvalue)
  36165. if intStringLenmapvalue < 0 {
  36166. return ErrInvalidLengthApi
  36167. }
  36168. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  36169. if postStringIndexmapvalue < 0 {
  36170. return ErrInvalidLengthApi
  36171. }
  36172. if postStringIndexmapvalue > l {
  36173. return io.ErrUnexpectedEOF
  36174. }
  36175. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  36176. iNdEx = postStringIndexmapvalue
  36177. } else {
  36178. iNdEx = entryPreIndex
  36179. skippy, err := skipApi(dAtA[iNdEx:])
  36180. if err != nil {
  36181. return err
  36182. }
  36183. if (skippy < 0) || (iNdEx+skippy) < 0 {
  36184. return ErrInvalidLengthApi
  36185. }
  36186. if (iNdEx + skippy) > postIndex {
  36187. return io.ErrUnexpectedEOF
  36188. }
  36189. iNdEx += skippy
  36190. }
  36191. }
  36192. m.Annotations[mapkey] = mapvalue
  36193. iNdEx = postIndex
  36194. default:
  36195. iNdEx = preIndex
  36196. skippy, err := skipApi(dAtA[iNdEx:])
  36197. if err != nil {
  36198. return err
  36199. }
  36200. if (skippy < 0) || (iNdEx+skippy) < 0 {
  36201. return ErrInvalidLengthApi
  36202. }
  36203. if (iNdEx + skippy) > l {
  36204. return io.ErrUnexpectedEOF
  36205. }
  36206. iNdEx += skippy
  36207. }
  36208. }
  36209. if iNdEx > l {
  36210. return io.ErrUnexpectedEOF
  36211. }
  36212. return nil
  36213. }
  36214. func (m *ListContainersResponse) Unmarshal(dAtA []byte) error {
  36215. l := len(dAtA)
  36216. iNdEx := 0
  36217. for iNdEx < l {
  36218. preIndex := iNdEx
  36219. var wire uint64
  36220. for shift := uint(0); ; shift += 7 {
  36221. if shift >= 64 {
  36222. return ErrIntOverflowApi
  36223. }
  36224. if iNdEx >= l {
  36225. return io.ErrUnexpectedEOF
  36226. }
  36227. b := dAtA[iNdEx]
  36228. iNdEx++
  36229. wire |= uint64(b&0x7F) << shift
  36230. if b < 0x80 {
  36231. break
  36232. }
  36233. }
  36234. fieldNum := int32(wire >> 3)
  36235. wireType := int(wire & 0x7)
  36236. if wireType == 4 {
  36237. return fmt.Errorf("proto: ListContainersResponse: wiretype end group for non-group")
  36238. }
  36239. if fieldNum <= 0 {
  36240. return fmt.Errorf("proto: ListContainersResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  36241. }
  36242. switch fieldNum {
  36243. case 1:
  36244. if wireType != 2 {
  36245. return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType)
  36246. }
  36247. var msglen int
  36248. for shift := uint(0); ; shift += 7 {
  36249. if shift >= 64 {
  36250. return ErrIntOverflowApi
  36251. }
  36252. if iNdEx >= l {
  36253. return io.ErrUnexpectedEOF
  36254. }
  36255. b := dAtA[iNdEx]
  36256. iNdEx++
  36257. msglen |= int(b&0x7F) << shift
  36258. if b < 0x80 {
  36259. break
  36260. }
  36261. }
  36262. if msglen < 0 {
  36263. return ErrInvalidLengthApi
  36264. }
  36265. postIndex := iNdEx + msglen
  36266. if postIndex < 0 {
  36267. return ErrInvalidLengthApi
  36268. }
  36269. if postIndex > l {
  36270. return io.ErrUnexpectedEOF
  36271. }
  36272. m.Containers = append(m.Containers, &Container{})
  36273. if err := m.Containers[len(m.Containers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  36274. return err
  36275. }
  36276. iNdEx = postIndex
  36277. default:
  36278. iNdEx = preIndex
  36279. skippy, err := skipApi(dAtA[iNdEx:])
  36280. if err != nil {
  36281. return err
  36282. }
  36283. if (skippy < 0) || (iNdEx+skippy) < 0 {
  36284. return ErrInvalidLengthApi
  36285. }
  36286. if (iNdEx + skippy) > l {
  36287. return io.ErrUnexpectedEOF
  36288. }
  36289. iNdEx += skippy
  36290. }
  36291. }
  36292. if iNdEx > l {
  36293. return io.ErrUnexpectedEOF
  36294. }
  36295. return nil
  36296. }
  36297. func (m *ContainerStatusRequest) Unmarshal(dAtA []byte) error {
  36298. l := len(dAtA)
  36299. iNdEx := 0
  36300. for iNdEx < l {
  36301. preIndex := iNdEx
  36302. var wire uint64
  36303. for shift := uint(0); ; shift += 7 {
  36304. if shift >= 64 {
  36305. return ErrIntOverflowApi
  36306. }
  36307. if iNdEx >= l {
  36308. return io.ErrUnexpectedEOF
  36309. }
  36310. b := dAtA[iNdEx]
  36311. iNdEx++
  36312. wire |= uint64(b&0x7F) << shift
  36313. if b < 0x80 {
  36314. break
  36315. }
  36316. }
  36317. fieldNum := int32(wire >> 3)
  36318. wireType := int(wire & 0x7)
  36319. if wireType == 4 {
  36320. return fmt.Errorf("proto: ContainerStatusRequest: wiretype end group for non-group")
  36321. }
  36322. if fieldNum <= 0 {
  36323. return fmt.Errorf("proto: ContainerStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  36324. }
  36325. switch fieldNum {
  36326. case 1:
  36327. if wireType != 2 {
  36328. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  36329. }
  36330. var stringLen uint64
  36331. for shift := uint(0); ; shift += 7 {
  36332. if shift >= 64 {
  36333. return ErrIntOverflowApi
  36334. }
  36335. if iNdEx >= l {
  36336. return io.ErrUnexpectedEOF
  36337. }
  36338. b := dAtA[iNdEx]
  36339. iNdEx++
  36340. stringLen |= uint64(b&0x7F) << shift
  36341. if b < 0x80 {
  36342. break
  36343. }
  36344. }
  36345. intStringLen := int(stringLen)
  36346. if intStringLen < 0 {
  36347. return ErrInvalidLengthApi
  36348. }
  36349. postIndex := iNdEx + intStringLen
  36350. if postIndex < 0 {
  36351. return ErrInvalidLengthApi
  36352. }
  36353. if postIndex > l {
  36354. return io.ErrUnexpectedEOF
  36355. }
  36356. m.ContainerId = string(dAtA[iNdEx:postIndex])
  36357. iNdEx = postIndex
  36358. case 2:
  36359. if wireType != 0 {
  36360. return fmt.Errorf("proto: wrong wireType = %d for field Verbose", wireType)
  36361. }
  36362. var v int
  36363. for shift := uint(0); ; shift += 7 {
  36364. if shift >= 64 {
  36365. return ErrIntOverflowApi
  36366. }
  36367. if iNdEx >= l {
  36368. return io.ErrUnexpectedEOF
  36369. }
  36370. b := dAtA[iNdEx]
  36371. iNdEx++
  36372. v |= int(b&0x7F) << shift
  36373. if b < 0x80 {
  36374. break
  36375. }
  36376. }
  36377. m.Verbose = bool(v != 0)
  36378. default:
  36379. iNdEx = preIndex
  36380. skippy, err := skipApi(dAtA[iNdEx:])
  36381. if err != nil {
  36382. return err
  36383. }
  36384. if (skippy < 0) || (iNdEx+skippy) < 0 {
  36385. return ErrInvalidLengthApi
  36386. }
  36387. if (iNdEx + skippy) > l {
  36388. return io.ErrUnexpectedEOF
  36389. }
  36390. iNdEx += skippy
  36391. }
  36392. }
  36393. if iNdEx > l {
  36394. return io.ErrUnexpectedEOF
  36395. }
  36396. return nil
  36397. }
  36398. func (m *ContainerStatus) Unmarshal(dAtA []byte) error {
  36399. l := len(dAtA)
  36400. iNdEx := 0
  36401. for iNdEx < l {
  36402. preIndex := iNdEx
  36403. var wire uint64
  36404. for shift := uint(0); ; shift += 7 {
  36405. if shift >= 64 {
  36406. return ErrIntOverflowApi
  36407. }
  36408. if iNdEx >= l {
  36409. return io.ErrUnexpectedEOF
  36410. }
  36411. b := dAtA[iNdEx]
  36412. iNdEx++
  36413. wire |= uint64(b&0x7F) << shift
  36414. if b < 0x80 {
  36415. break
  36416. }
  36417. }
  36418. fieldNum := int32(wire >> 3)
  36419. wireType := int(wire & 0x7)
  36420. if wireType == 4 {
  36421. return fmt.Errorf("proto: ContainerStatus: wiretype end group for non-group")
  36422. }
  36423. if fieldNum <= 0 {
  36424. return fmt.Errorf("proto: ContainerStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  36425. }
  36426. switch fieldNum {
  36427. case 1:
  36428. if wireType != 2 {
  36429. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  36430. }
  36431. var stringLen uint64
  36432. for shift := uint(0); ; shift += 7 {
  36433. if shift >= 64 {
  36434. return ErrIntOverflowApi
  36435. }
  36436. if iNdEx >= l {
  36437. return io.ErrUnexpectedEOF
  36438. }
  36439. b := dAtA[iNdEx]
  36440. iNdEx++
  36441. stringLen |= uint64(b&0x7F) << shift
  36442. if b < 0x80 {
  36443. break
  36444. }
  36445. }
  36446. intStringLen := int(stringLen)
  36447. if intStringLen < 0 {
  36448. return ErrInvalidLengthApi
  36449. }
  36450. postIndex := iNdEx + intStringLen
  36451. if postIndex < 0 {
  36452. return ErrInvalidLengthApi
  36453. }
  36454. if postIndex > l {
  36455. return io.ErrUnexpectedEOF
  36456. }
  36457. m.Id = string(dAtA[iNdEx:postIndex])
  36458. iNdEx = postIndex
  36459. case 2:
  36460. if wireType != 2 {
  36461. return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
  36462. }
  36463. var msglen int
  36464. for shift := uint(0); ; shift += 7 {
  36465. if shift >= 64 {
  36466. return ErrIntOverflowApi
  36467. }
  36468. if iNdEx >= l {
  36469. return io.ErrUnexpectedEOF
  36470. }
  36471. b := dAtA[iNdEx]
  36472. iNdEx++
  36473. msglen |= int(b&0x7F) << shift
  36474. if b < 0x80 {
  36475. break
  36476. }
  36477. }
  36478. if msglen < 0 {
  36479. return ErrInvalidLengthApi
  36480. }
  36481. postIndex := iNdEx + msglen
  36482. if postIndex < 0 {
  36483. return ErrInvalidLengthApi
  36484. }
  36485. if postIndex > l {
  36486. return io.ErrUnexpectedEOF
  36487. }
  36488. if m.Metadata == nil {
  36489. m.Metadata = &ContainerMetadata{}
  36490. }
  36491. if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  36492. return err
  36493. }
  36494. iNdEx = postIndex
  36495. case 3:
  36496. if wireType != 0 {
  36497. return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  36498. }
  36499. m.State = 0
  36500. for shift := uint(0); ; shift += 7 {
  36501. if shift >= 64 {
  36502. return ErrIntOverflowApi
  36503. }
  36504. if iNdEx >= l {
  36505. return io.ErrUnexpectedEOF
  36506. }
  36507. b := dAtA[iNdEx]
  36508. iNdEx++
  36509. m.State |= ContainerState(b&0x7F) << shift
  36510. if b < 0x80 {
  36511. break
  36512. }
  36513. }
  36514. case 4:
  36515. if wireType != 0 {
  36516. return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
  36517. }
  36518. m.CreatedAt = 0
  36519. for shift := uint(0); ; shift += 7 {
  36520. if shift >= 64 {
  36521. return ErrIntOverflowApi
  36522. }
  36523. if iNdEx >= l {
  36524. return io.ErrUnexpectedEOF
  36525. }
  36526. b := dAtA[iNdEx]
  36527. iNdEx++
  36528. m.CreatedAt |= int64(b&0x7F) << shift
  36529. if b < 0x80 {
  36530. break
  36531. }
  36532. }
  36533. case 5:
  36534. if wireType != 0 {
  36535. return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType)
  36536. }
  36537. m.StartedAt = 0
  36538. for shift := uint(0); ; shift += 7 {
  36539. if shift >= 64 {
  36540. return ErrIntOverflowApi
  36541. }
  36542. if iNdEx >= l {
  36543. return io.ErrUnexpectedEOF
  36544. }
  36545. b := dAtA[iNdEx]
  36546. iNdEx++
  36547. m.StartedAt |= int64(b&0x7F) << shift
  36548. if b < 0x80 {
  36549. break
  36550. }
  36551. }
  36552. case 6:
  36553. if wireType != 0 {
  36554. return fmt.Errorf("proto: wrong wireType = %d for field FinishedAt", wireType)
  36555. }
  36556. m.FinishedAt = 0
  36557. for shift := uint(0); ; shift += 7 {
  36558. if shift >= 64 {
  36559. return ErrIntOverflowApi
  36560. }
  36561. if iNdEx >= l {
  36562. return io.ErrUnexpectedEOF
  36563. }
  36564. b := dAtA[iNdEx]
  36565. iNdEx++
  36566. m.FinishedAt |= int64(b&0x7F) << shift
  36567. if b < 0x80 {
  36568. break
  36569. }
  36570. }
  36571. case 7:
  36572. if wireType != 0 {
  36573. return fmt.Errorf("proto: wrong wireType = %d for field ExitCode", wireType)
  36574. }
  36575. m.ExitCode = 0
  36576. for shift := uint(0); ; shift += 7 {
  36577. if shift >= 64 {
  36578. return ErrIntOverflowApi
  36579. }
  36580. if iNdEx >= l {
  36581. return io.ErrUnexpectedEOF
  36582. }
  36583. b := dAtA[iNdEx]
  36584. iNdEx++
  36585. m.ExitCode |= int32(b&0x7F) << shift
  36586. if b < 0x80 {
  36587. break
  36588. }
  36589. }
  36590. case 8:
  36591. if wireType != 2 {
  36592. return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
  36593. }
  36594. var msglen int
  36595. for shift := uint(0); ; shift += 7 {
  36596. if shift >= 64 {
  36597. return ErrIntOverflowApi
  36598. }
  36599. if iNdEx >= l {
  36600. return io.ErrUnexpectedEOF
  36601. }
  36602. b := dAtA[iNdEx]
  36603. iNdEx++
  36604. msglen |= int(b&0x7F) << shift
  36605. if b < 0x80 {
  36606. break
  36607. }
  36608. }
  36609. if msglen < 0 {
  36610. return ErrInvalidLengthApi
  36611. }
  36612. postIndex := iNdEx + msglen
  36613. if postIndex < 0 {
  36614. return ErrInvalidLengthApi
  36615. }
  36616. if postIndex > l {
  36617. return io.ErrUnexpectedEOF
  36618. }
  36619. if m.Image == nil {
  36620. m.Image = &ImageSpec{}
  36621. }
  36622. if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  36623. return err
  36624. }
  36625. iNdEx = postIndex
  36626. case 9:
  36627. if wireType != 2 {
  36628. return fmt.Errorf("proto: wrong wireType = %d for field ImageRef", wireType)
  36629. }
  36630. var stringLen uint64
  36631. for shift := uint(0); ; shift += 7 {
  36632. if shift >= 64 {
  36633. return ErrIntOverflowApi
  36634. }
  36635. if iNdEx >= l {
  36636. return io.ErrUnexpectedEOF
  36637. }
  36638. b := dAtA[iNdEx]
  36639. iNdEx++
  36640. stringLen |= uint64(b&0x7F) << shift
  36641. if b < 0x80 {
  36642. break
  36643. }
  36644. }
  36645. intStringLen := int(stringLen)
  36646. if intStringLen < 0 {
  36647. return ErrInvalidLengthApi
  36648. }
  36649. postIndex := iNdEx + intStringLen
  36650. if postIndex < 0 {
  36651. return ErrInvalidLengthApi
  36652. }
  36653. if postIndex > l {
  36654. return io.ErrUnexpectedEOF
  36655. }
  36656. m.ImageRef = string(dAtA[iNdEx:postIndex])
  36657. iNdEx = postIndex
  36658. case 10:
  36659. if wireType != 2 {
  36660. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  36661. }
  36662. var stringLen uint64
  36663. for shift := uint(0); ; shift += 7 {
  36664. if shift >= 64 {
  36665. return ErrIntOverflowApi
  36666. }
  36667. if iNdEx >= l {
  36668. return io.ErrUnexpectedEOF
  36669. }
  36670. b := dAtA[iNdEx]
  36671. iNdEx++
  36672. stringLen |= uint64(b&0x7F) << shift
  36673. if b < 0x80 {
  36674. break
  36675. }
  36676. }
  36677. intStringLen := int(stringLen)
  36678. if intStringLen < 0 {
  36679. return ErrInvalidLengthApi
  36680. }
  36681. postIndex := iNdEx + intStringLen
  36682. if postIndex < 0 {
  36683. return ErrInvalidLengthApi
  36684. }
  36685. if postIndex > l {
  36686. return io.ErrUnexpectedEOF
  36687. }
  36688. m.Reason = string(dAtA[iNdEx:postIndex])
  36689. iNdEx = postIndex
  36690. case 11:
  36691. if wireType != 2 {
  36692. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  36693. }
  36694. var stringLen uint64
  36695. for shift := uint(0); ; shift += 7 {
  36696. if shift >= 64 {
  36697. return ErrIntOverflowApi
  36698. }
  36699. if iNdEx >= l {
  36700. return io.ErrUnexpectedEOF
  36701. }
  36702. b := dAtA[iNdEx]
  36703. iNdEx++
  36704. stringLen |= uint64(b&0x7F) << shift
  36705. if b < 0x80 {
  36706. break
  36707. }
  36708. }
  36709. intStringLen := int(stringLen)
  36710. if intStringLen < 0 {
  36711. return ErrInvalidLengthApi
  36712. }
  36713. postIndex := iNdEx + intStringLen
  36714. if postIndex < 0 {
  36715. return ErrInvalidLengthApi
  36716. }
  36717. if postIndex > l {
  36718. return io.ErrUnexpectedEOF
  36719. }
  36720. m.Message = string(dAtA[iNdEx:postIndex])
  36721. iNdEx = postIndex
  36722. case 12:
  36723. if wireType != 2 {
  36724. return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  36725. }
  36726. var msglen int
  36727. for shift := uint(0); ; shift += 7 {
  36728. if shift >= 64 {
  36729. return ErrIntOverflowApi
  36730. }
  36731. if iNdEx >= l {
  36732. return io.ErrUnexpectedEOF
  36733. }
  36734. b := dAtA[iNdEx]
  36735. iNdEx++
  36736. msglen |= int(b&0x7F) << shift
  36737. if b < 0x80 {
  36738. break
  36739. }
  36740. }
  36741. if msglen < 0 {
  36742. return ErrInvalidLengthApi
  36743. }
  36744. postIndex := iNdEx + msglen
  36745. if postIndex < 0 {
  36746. return ErrInvalidLengthApi
  36747. }
  36748. if postIndex > l {
  36749. return io.ErrUnexpectedEOF
  36750. }
  36751. if m.Labels == nil {
  36752. m.Labels = make(map[string]string)
  36753. }
  36754. var mapkey string
  36755. var mapvalue string
  36756. for iNdEx < postIndex {
  36757. entryPreIndex := iNdEx
  36758. var wire uint64
  36759. for shift := uint(0); ; shift += 7 {
  36760. if shift >= 64 {
  36761. return ErrIntOverflowApi
  36762. }
  36763. if iNdEx >= l {
  36764. return io.ErrUnexpectedEOF
  36765. }
  36766. b := dAtA[iNdEx]
  36767. iNdEx++
  36768. wire |= uint64(b&0x7F) << shift
  36769. if b < 0x80 {
  36770. break
  36771. }
  36772. }
  36773. fieldNum := int32(wire >> 3)
  36774. if fieldNum == 1 {
  36775. var stringLenmapkey uint64
  36776. for shift := uint(0); ; shift += 7 {
  36777. if shift >= 64 {
  36778. return ErrIntOverflowApi
  36779. }
  36780. if iNdEx >= l {
  36781. return io.ErrUnexpectedEOF
  36782. }
  36783. b := dAtA[iNdEx]
  36784. iNdEx++
  36785. stringLenmapkey |= uint64(b&0x7F) << shift
  36786. if b < 0x80 {
  36787. break
  36788. }
  36789. }
  36790. intStringLenmapkey := int(stringLenmapkey)
  36791. if intStringLenmapkey < 0 {
  36792. return ErrInvalidLengthApi
  36793. }
  36794. postStringIndexmapkey := iNdEx + intStringLenmapkey
  36795. if postStringIndexmapkey < 0 {
  36796. return ErrInvalidLengthApi
  36797. }
  36798. if postStringIndexmapkey > l {
  36799. return io.ErrUnexpectedEOF
  36800. }
  36801. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  36802. iNdEx = postStringIndexmapkey
  36803. } else if fieldNum == 2 {
  36804. var stringLenmapvalue uint64
  36805. for shift := uint(0); ; shift += 7 {
  36806. if shift >= 64 {
  36807. return ErrIntOverflowApi
  36808. }
  36809. if iNdEx >= l {
  36810. return io.ErrUnexpectedEOF
  36811. }
  36812. b := dAtA[iNdEx]
  36813. iNdEx++
  36814. stringLenmapvalue |= uint64(b&0x7F) << shift
  36815. if b < 0x80 {
  36816. break
  36817. }
  36818. }
  36819. intStringLenmapvalue := int(stringLenmapvalue)
  36820. if intStringLenmapvalue < 0 {
  36821. return ErrInvalidLengthApi
  36822. }
  36823. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  36824. if postStringIndexmapvalue < 0 {
  36825. return ErrInvalidLengthApi
  36826. }
  36827. if postStringIndexmapvalue > l {
  36828. return io.ErrUnexpectedEOF
  36829. }
  36830. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  36831. iNdEx = postStringIndexmapvalue
  36832. } else {
  36833. iNdEx = entryPreIndex
  36834. skippy, err := skipApi(dAtA[iNdEx:])
  36835. if err != nil {
  36836. return err
  36837. }
  36838. if (skippy < 0) || (iNdEx+skippy) < 0 {
  36839. return ErrInvalidLengthApi
  36840. }
  36841. if (iNdEx + skippy) > postIndex {
  36842. return io.ErrUnexpectedEOF
  36843. }
  36844. iNdEx += skippy
  36845. }
  36846. }
  36847. m.Labels[mapkey] = mapvalue
  36848. iNdEx = postIndex
  36849. case 13:
  36850. if wireType != 2 {
  36851. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  36852. }
  36853. var msglen int
  36854. for shift := uint(0); ; shift += 7 {
  36855. if shift >= 64 {
  36856. return ErrIntOverflowApi
  36857. }
  36858. if iNdEx >= l {
  36859. return io.ErrUnexpectedEOF
  36860. }
  36861. b := dAtA[iNdEx]
  36862. iNdEx++
  36863. msglen |= int(b&0x7F) << shift
  36864. if b < 0x80 {
  36865. break
  36866. }
  36867. }
  36868. if msglen < 0 {
  36869. return ErrInvalidLengthApi
  36870. }
  36871. postIndex := iNdEx + msglen
  36872. if postIndex < 0 {
  36873. return ErrInvalidLengthApi
  36874. }
  36875. if postIndex > l {
  36876. return io.ErrUnexpectedEOF
  36877. }
  36878. if m.Annotations == nil {
  36879. m.Annotations = make(map[string]string)
  36880. }
  36881. var mapkey string
  36882. var mapvalue string
  36883. for iNdEx < postIndex {
  36884. entryPreIndex := iNdEx
  36885. var wire uint64
  36886. for shift := uint(0); ; shift += 7 {
  36887. if shift >= 64 {
  36888. return ErrIntOverflowApi
  36889. }
  36890. if iNdEx >= l {
  36891. return io.ErrUnexpectedEOF
  36892. }
  36893. b := dAtA[iNdEx]
  36894. iNdEx++
  36895. wire |= uint64(b&0x7F) << shift
  36896. if b < 0x80 {
  36897. break
  36898. }
  36899. }
  36900. fieldNum := int32(wire >> 3)
  36901. if fieldNum == 1 {
  36902. var stringLenmapkey uint64
  36903. for shift := uint(0); ; shift += 7 {
  36904. if shift >= 64 {
  36905. return ErrIntOverflowApi
  36906. }
  36907. if iNdEx >= l {
  36908. return io.ErrUnexpectedEOF
  36909. }
  36910. b := dAtA[iNdEx]
  36911. iNdEx++
  36912. stringLenmapkey |= uint64(b&0x7F) << shift
  36913. if b < 0x80 {
  36914. break
  36915. }
  36916. }
  36917. intStringLenmapkey := int(stringLenmapkey)
  36918. if intStringLenmapkey < 0 {
  36919. return ErrInvalidLengthApi
  36920. }
  36921. postStringIndexmapkey := iNdEx + intStringLenmapkey
  36922. if postStringIndexmapkey < 0 {
  36923. return ErrInvalidLengthApi
  36924. }
  36925. if postStringIndexmapkey > l {
  36926. return io.ErrUnexpectedEOF
  36927. }
  36928. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  36929. iNdEx = postStringIndexmapkey
  36930. } else if fieldNum == 2 {
  36931. var stringLenmapvalue uint64
  36932. for shift := uint(0); ; shift += 7 {
  36933. if shift >= 64 {
  36934. return ErrIntOverflowApi
  36935. }
  36936. if iNdEx >= l {
  36937. return io.ErrUnexpectedEOF
  36938. }
  36939. b := dAtA[iNdEx]
  36940. iNdEx++
  36941. stringLenmapvalue |= uint64(b&0x7F) << shift
  36942. if b < 0x80 {
  36943. break
  36944. }
  36945. }
  36946. intStringLenmapvalue := int(stringLenmapvalue)
  36947. if intStringLenmapvalue < 0 {
  36948. return ErrInvalidLengthApi
  36949. }
  36950. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  36951. if postStringIndexmapvalue < 0 {
  36952. return ErrInvalidLengthApi
  36953. }
  36954. if postStringIndexmapvalue > l {
  36955. return io.ErrUnexpectedEOF
  36956. }
  36957. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  36958. iNdEx = postStringIndexmapvalue
  36959. } else {
  36960. iNdEx = entryPreIndex
  36961. skippy, err := skipApi(dAtA[iNdEx:])
  36962. if err != nil {
  36963. return err
  36964. }
  36965. if (skippy < 0) || (iNdEx+skippy) < 0 {
  36966. return ErrInvalidLengthApi
  36967. }
  36968. if (iNdEx + skippy) > postIndex {
  36969. return io.ErrUnexpectedEOF
  36970. }
  36971. iNdEx += skippy
  36972. }
  36973. }
  36974. m.Annotations[mapkey] = mapvalue
  36975. iNdEx = postIndex
  36976. case 14:
  36977. if wireType != 2 {
  36978. return fmt.Errorf("proto: wrong wireType = %d for field Mounts", wireType)
  36979. }
  36980. var msglen int
  36981. for shift := uint(0); ; shift += 7 {
  36982. if shift >= 64 {
  36983. return ErrIntOverflowApi
  36984. }
  36985. if iNdEx >= l {
  36986. return io.ErrUnexpectedEOF
  36987. }
  36988. b := dAtA[iNdEx]
  36989. iNdEx++
  36990. msglen |= int(b&0x7F) << shift
  36991. if b < 0x80 {
  36992. break
  36993. }
  36994. }
  36995. if msglen < 0 {
  36996. return ErrInvalidLengthApi
  36997. }
  36998. postIndex := iNdEx + msglen
  36999. if postIndex < 0 {
  37000. return ErrInvalidLengthApi
  37001. }
  37002. if postIndex > l {
  37003. return io.ErrUnexpectedEOF
  37004. }
  37005. m.Mounts = append(m.Mounts, &Mount{})
  37006. if err := m.Mounts[len(m.Mounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  37007. return err
  37008. }
  37009. iNdEx = postIndex
  37010. case 15:
  37011. if wireType != 2 {
  37012. return fmt.Errorf("proto: wrong wireType = %d for field LogPath", wireType)
  37013. }
  37014. var stringLen uint64
  37015. for shift := uint(0); ; shift += 7 {
  37016. if shift >= 64 {
  37017. return ErrIntOverflowApi
  37018. }
  37019. if iNdEx >= l {
  37020. return io.ErrUnexpectedEOF
  37021. }
  37022. b := dAtA[iNdEx]
  37023. iNdEx++
  37024. stringLen |= uint64(b&0x7F) << shift
  37025. if b < 0x80 {
  37026. break
  37027. }
  37028. }
  37029. intStringLen := int(stringLen)
  37030. if intStringLen < 0 {
  37031. return ErrInvalidLengthApi
  37032. }
  37033. postIndex := iNdEx + intStringLen
  37034. if postIndex < 0 {
  37035. return ErrInvalidLengthApi
  37036. }
  37037. if postIndex > l {
  37038. return io.ErrUnexpectedEOF
  37039. }
  37040. m.LogPath = string(dAtA[iNdEx:postIndex])
  37041. iNdEx = postIndex
  37042. case 16:
  37043. if wireType != 2 {
  37044. return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
  37045. }
  37046. var msglen int
  37047. for shift := uint(0); ; shift += 7 {
  37048. if shift >= 64 {
  37049. return ErrIntOverflowApi
  37050. }
  37051. if iNdEx >= l {
  37052. return io.ErrUnexpectedEOF
  37053. }
  37054. b := dAtA[iNdEx]
  37055. iNdEx++
  37056. msglen |= int(b&0x7F) << shift
  37057. if b < 0x80 {
  37058. break
  37059. }
  37060. }
  37061. if msglen < 0 {
  37062. return ErrInvalidLengthApi
  37063. }
  37064. postIndex := iNdEx + msglen
  37065. if postIndex < 0 {
  37066. return ErrInvalidLengthApi
  37067. }
  37068. if postIndex > l {
  37069. return io.ErrUnexpectedEOF
  37070. }
  37071. if m.Resources == nil {
  37072. m.Resources = &ContainerResources{}
  37073. }
  37074. if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  37075. return err
  37076. }
  37077. iNdEx = postIndex
  37078. default:
  37079. iNdEx = preIndex
  37080. skippy, err := skipApi(dAtA[iNdEx:])
  37081. if err != nil {
  37082. return err
  37083. }
  37084. if (skippy < 0) || (iNdEx+skippy) < 0 {
  37085. return ErrInvalidLengthApi
  37086. }
  37087. if (iNdEx + skippy) > l {
  37088. return io.ErrUnexpectedEOF
  37089. }
  37090. iNdEx += skippy
  37091. }
  37092. }
  37093. if iNdEx > l {
  37094. return io.ErrUnexpectedEOF
  37095. }
  37096. return nil
  37097. }
  37098. func (m *ContainerStatusResponse) Unmarshal(dAtA []byte) error {
  37099. l := len(dAtA)
  37100. iNdEx := 0
  37101. for iNdEx < l {
  37102. preIndex := iNdEx
  37103. var wire uint64
  37104. for shift := uint(0); ; shift += 7 {
  37105. if shift >= 64 {
  37106. return ErrIntOverflowApi
  37107. }
  37108. if iNdEx >= l {
  37109. return io.ErrUnexpectedEOF
  37110. }
  37111. b := dAtA[iNdEx]
  37112. iNdEx++
  37113. wire |= uint64(b&0x7F) << shift
  37114. if b < 0x80 {
  37115. break
  37116. }
  37117. }
  37118. fieldNum := int32(wire >> 3)
  37119. wireType := int(wire & 0x7)
  37120. if wireType == 4 {
  37121. return fmt.Errorf("proto: ContainerStatusResponse: wiretype end group for non-group")
  37122. }
  37123. if fieldNum <= 0 {
  37124. return fmt.Errorf("proto: ContainerStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  37125. }
  37126. switch fieldNum {
  37127. case 1:
  37128. if wireType != 2 {
  37129. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  37130. }
  37131. var msglen int
  37132. for shift := uint(0); ; shift += 7 {
  37133. if shift >= 64 {
  37134. return ErrIntOverflowApi
  37135. }
  37136. if iNdEx >= l {
  37137. return io.ErrUnexpectedEOF
  37138. }
  37139. b := dAtA[iNdEx]
  37140. iNdEx++
  37141. msglen |= int(b&0x7F) << shift
  37142. if b < 0x80 {
  37143. break
  37144. }
  37145. }
  37146. if msglen < 0 {
  37147. return ErrInvalidLengthApi
  37148. }
  37149. postIndex := iNdEx + msglen
  37150. if postIndex < 0 {
  37151. return ErrInvalidLengthApi
  37152. }
  37153. if postIndex > l {
  37154. return io.ErrUnexpectedEOF
  37155. }
  37156. if m.Status == nil {
  37157. m.Status = &ContainerStatus{}
  37158. }
  37159. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  37160. return err
  37161. }
  37162. iNdEx = postIndex
  37163. case 2:
  37164. if wireType != 2 {
  37165. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  37166. }
  37167. var msglen int
  37168. for shift := uint(0); ; shift += 7 {
  37169. if shift >= 64 {
  37170. return ErrIntOverflowApi
  37171. }
  37172. if iNdEx >= l {
  37173. return io.ErrUnexpectedEOF
  37174. }
  37175. b := dAtA[iNdEx]
  37176. iNdEx++
  37177. msglen |= int(b&0x7F) << shift
  37178. if b < 0x80 {
  37179. break
  37180. }
  37181. }
  37182. if msglen < 0 {
  37183. return ErrInvalidLengthApi
  37184. }
  37185. postIndex := iNdEx + msglen
  37186. if postIndex < 0 {
  37187. return ErrInvalidLengthApi
  37188. }
  37189. if postIndex > l {
  37190. return io.ErrUnexpectedEOF
  37191. }
  37192. if m.Info == nil {
  37193. m.Info = make(map[string]string)
  37194. }
  37195. var mapkey string
  37196. var mapvalue string
  37197. for iNdEx < postIndex {
  37198. entryPreIndex := iNdEx
  37199. var wire uint64
  37200. for shift := uint(0); ; shift += 7 {
  37201. if shift >= 64 {
  37202. return ErrIntOverflowApi
  37203. }
  37204. if iNdEx >= l {
  37205. return io.ErrUnexpectedEOF
  37206. }
  37207. b := dAtA[iNdEx]
  37208. iNdEx++
  37209. wire |= uint64(b&0x7F) << shift
  37210. if b < 0x80 {
  37211. break
  37212. }
  37213. }
  37214. fieldNum := int32(wire >> 3)
  37215. if fieldNum == 1 {
  37216. var stringLenmapkey uint64
  37217. for shift := uint(0); ; shift += 7 {
  37218. if shift >= 64 {
  37219. return ErrIntOverflowApi
  37220. }
  37221. if iNdEx >= l {
  37222. return io.ErrUnexpectedEOF
  37223. }
  37224. b := dAtA[iNdEx]
  37225. iNdEx++
  37226. stringLenmapkey |= uint64(b&0x7F) << shift
  37227. if b < 0x80 {
  37228. break
  37229. }
  37230. }
  37231. intStringLenmapkey := int(stringLenmapkey)
  37232. if intStringLenmapkey < 0 {
  37233. return ErrInvalidLengthApi
  37234. }
  37235. postStringIndexmapkey := iNdEx + intStringLenmapkey
  37236. if postStringIndexmapkey < 0 {
  37237. return ErrInvalidLengthApi
  37238. }
  37239. if postStringIndexmapkey > l {
  37240. return io.ErrUnexpectedEOF
  37241. }
  37242. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  37243. iNdEx = postStringIndexmapkey
  37244. } else if fieldNum == 2 {
  37245. var stringLenmapvalue uint64
  37246. for shift := uint(0); ; shift += 7 {
  37247. if shift >= 64 {
  37248. return ErrIntOverflowApi
  37249. }
  37250. if iNdEx >= l {
  37251. return io.ErrUnexpectedEOF
  37252. }
  37253. b := dAtA[iNdEx]
  37254. iNdEx++
  37255. stringLenmapvalue |= uint64(b&0x7F) << shift
  37256. if b < 0x80 {
  37257. break
  37258. }
  37259. }
  37260. intStringLenmapvalue := int(stringLenmapvalue)
  37261. if intStringLenmapvalue < 0 {
  37262. return ErrInvalidLengthApi
  37263. }
  37264. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  37265. if postStringIndexmapvalue < 0 {
  37266. return ErrInvalidLengthApi
  37267. }
  37268. if postStringIndexmapvalue > l {
  37269. return io.ErrUnexpectedEOF
  37270. }
  37271. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  37272. iNdEx = postStringIndexmapvalue
  37273. } else {
  37274. iNdEx = entryPreIndex
  37275. skippy, err := skipApi(dAtA[iNdEx:])
  37276. if err != nil {
  37277. return err
  37278. }
  37279. if (skippy < 0) || (iNdEx+skippy) < 0 {
  37280. return ErrInvalidLengthApi
  37281. }
  37282. if (iNdEx + skippy) > postIndex {
  37283. return io.ErrUnexpectedEOF
  37284. }
  37285. iNdEx += skippy
  37286. }
  37287. }
  37288. m.Info[mapkey] = mapvalue
  37289. iNdEx = postIndex
  37290. default:
  37291. iNdEx = preIndex
  37292. skippy, err := skipApi(dAtA[iNdEx:])
  37293. if err != nil {
  37294. return err
  37295. }
  37296. if (skippy < 0) || (iNdEx+skippy) < 0 {
  37297. return ErrInvalidLengthApi
  37298. }
  37299. if (iNdEx + skippy) > l {
  37300. return io.ErrUnexpectedEOF
  37301. }
  37302. iNdEx += skippy
  37303. }
  37304. }
  37305. if iNdEx > l {
  37306. return io.ErrUnexpectedEOF
  37307. }
  37308. return nil
  37309. }
  37310. func (m *ContainerResources) Unmarshal(dAtA []byte) error {
  37311. l := len(dAtA)
  37312. iNdEx := 0
  37313. for iNdEx < l {
  37314. preIndex := iNdEx
  37315. var wire uint64
  37316. for shift := uint(0); ; shift += 7 {
  37317. if shift >= 64 {
  37318. return ErrIntOverflowApi
  37319. }
  37320. if iNdEx >= l {
  37321. return io.ErrUnexpectedEOF
  37322. }
  37323. b := dAtA[iNdEx]
  37324. iNdEx++
  37325. wire |= uint64(b&0x7F) << shift
  37326. if b < 0x80 {
  37327. break
  37328. }
  37329. }
  37330. fieldNum := int32(wire >> 3)
  37331. wireType := int(wire & 0x7)
  37332. if wireType == 4 {
  37333. return fmt.Errorf("proto: ContainerResources: wiretype end group for non-group")
  37334. }
  37335. if fieldNum <= 0 {
  37336. return fmt.Errorf("proto: ContainerResources: illegal tag %d (wire type %d)", fieldNum, wire)
  37337. }
  37338. switch fieldNum {
  37339. case 1:
  37340. if wireType != 2 {
  37341. return fmt.Errorf("proto: wrong wireType = %d for field Linux", wireType)
  37342. }
  37343. var msglen int
  37344. for shift := uint(0); ; shift += 7 {
  37345. if shift >= 64 {
  37346. return ErrIntOverflowApi
  37347. }
  37348. if iNdEx >= l {
  37349. return io.ErrUnexpectedEOF
  37350. }
  37351. b := dAtA[iNdEx]
  37352. iNdEx++
  37353. msglen |= int(b&0x7F) << shift
  37354. if b < 0x80 {
  37355. break
  37356. }
  37357. }
  37358. if msglen < 0 {
  37359. return ErrInvalidLengthApi
  37360. }
  37361. postIndex := iNdEx + msglen
  37362. if postIndex < 0 {
  37363. return ErrInvalidLengthApi
  37364. }
  37365. if postIndex > l {
  37366. return io.ErrUnexpectedEOF
  37367. }
  37368. if m.Linux == nil {
  37369. m.Linux = &LinuxContainerResources{}
  37370. }
  37371. if err := m.Linux.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  37372. return err
  37373. }
  37374. iNdEx = postIndex
  37375. case 2:
  37376. if wireType != 2 {
  37377. return fmt.Errorf("proto: wrong wireType = %d for field Windows", wireType)
  37378. }
  37379. var msglen int
  37380. for shift := uint(0); ; shift += 7 {
  37381. if shift >= 64 {
  37382. return ErrIntOverflowApi
  37383. }
  37384. if iNdEx >= l {
  37385. return io.ErrUnexpectedEOF
  37386. }
  37387. b := dAtA[iNdEx]
  37388. iNdEx++
  37389. msglen |= int(b&0x7F) << shift
  37390. if b < 0x80 {
  37391. break
  37392. }
  37393. }
  37394. if msglen < 0 {
  37395. return ErrInvalidLengthApi
  37396. }
  37397. postIndex := iNdEx + msglen
  37398. if postIndex < 0 {
  37399. return ErrInvalidLengthApi
  37400. }
  37401. if postIndex > l {
  37402. return io.ErrUnexpectedEOF
  37403. }
  37404. if m.Windows == nil {
  37405. m.Windows = &WindowsContainerResources{}
  37406. }
  37407. if err := m.Windows.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  37408. return err
  37409. }
  37410. iNdEx = postIndex
  37411. default:
  37412. iNdEx = preIndex
  37413. skippy, err := skipApi(dAtA[iNdEx:])
  37414. if err != nil {
  37415. return err
  37416. }
  37417. if (skippy < 0) || (iNdEx+skippy) < 0 {
  37418. return ErrInvalidLengthApi
  37419. }
  37420. if (iNdEx + skippy) > l {
  37421. return io.ErrUnexpectedEOF
  37422. }
  37423. iNdEx += skippy
  37424. }
  37425. }
  37426. if iNdEx > l {
  37427. return io.ErrUnexpectedEOF
  37428. }
  37429. return nil
  37430. }
  37431. func (m *UpdateContainerResourcesRequest) Unmarshal(dAtA []byte) error {
  37432. l := len(dAtA)
  37433. iNdEx := 0
  37434. for iNdEx < l {
  37435. preIndex := iNdEx
  37436. var wire uint64
  37437. for shift := uint(0); ; shift += 7 {
  37438. if shift >= 64 {
  37439. return ErrIntOverflowApi
  37440. }
  37441. if iNdEx >= l {
  37442. return io.ErrUnexpectedEOF
  37443. }
  37444. b := dAtA[iNdEx]
  37445. iNdEx++
  37446. wire |= uint64(b&0x7F) << shift
  37447. if b < 0x80 {
  37448. break
  37449. }
  37450. }
  37451. fieldNum := int32(wire >> 3)
  37452. wireType := int(wire & 0x7)
  37453. if wireType == 4 {
  37454. return fmt.Errorf("proto: UpdateContainerResourcesRequest: wiretype end group for non-group")
  37455. }
  37456. if fieldNum <= 0 {
  37457. return fmt.Errorf("proto: UpdateContainerResourcesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  37458. }
  37459. switch fieldNum {
  37460. case 1:
  37461. if wireType != 2 {
  37462. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  37463. }
  37464. var stringLen uint64
  37465. for shift := uint(0); ; shift += 7 {
  37466. if shift >= 64 {
  37467. return ErrIntOverflowApi
  37468. }
  37469. if iNdEx >= l {
  37470. return io.ErrUnexpectedEOF
  37471. }
  37472. b := dAtA[iNdEx]
  37473. iNdEx++
  37474. stringLen |= uint64(b&0x7F) << shift
  37475. if b < 0x80 {
  37476. break
  37477. }
  37478. }
  37479. intStringLen := int(stringLen)
  37480. if intStringLen < 0 {
  37481. return ErrInvalidLengthApi
  37482. }
  37483. postIndex := iNdEx + intStringLen
  37484. if postIndex < 0 {
  37485. return ErrInvalidLengthApi
  37486. }
  37487. if postIndex > l {
  37488. return io.ErrUnexpectedEOF
  37489. }
  37490. m.ContainerId = string(dAtA[iNdEx:postIndex])
  37491. iNdEx = postIndex
  37492. case 2:
  37493. if wireType != 2 {
  37494. return fmt.Errorf("proto: wrong wireType = %d for field Linux", wireType)
  37495. }
  37496. var msglen int
  37497. for shift := uint(0); ; shift += 7 {
  37498. if shift >= 64 {
  37499. return ErrIntOverflowApi
  37500. }
  37501. if iNdEx >= l {
  37502. return io.ErrUnexpectedEOF
  37503. }
  37504. b := dAtA[iNdEx]
  37505. iNdEx++
  37506. msglen |= int(b&0x7F) << shift
  37507. if b < 0x80 {
  37508. break
  37509. }
  37510. }
  37511. if msglen < 0 {
  37512. return ErrInvalidLengthApi
  37513. }
  37514. postIndex := iNdEx + msglen
  37515. if postIndex < 0 {
  37516. return ErrInvalidLengthApi
  37517. }
  37518. if postIndex > l {
  37519. return io.ErrUnexpectedEOF
  37520. }
  37521. if m.Linux == nil {
  37522. m.Linux = &LinuxContainerResources{}
  37523. }
  37524. if err := m.Linux.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  37525. return err
  37526. }
  37527. iNdEx = postIndex
  37528. case 3:
  37529. if wireType != 2 {
  37530. return fmt.Errorf("proto: wrong wireType = %d for field Windows", wireType)
  37531. }
  37532. var msglen int
  37533. for shift := uint(0); ; shift += 7 {
  37534. if shift >= 64 {
  37535. return ErrIntOverflowApi
  37536. }
  37537. if iNdEx >= l {
  37538. return io.ErrUnexpectedEOF
  37539. }
  37540. b := dAtA[iNdEx]
  37541. iNdEx++
  37542. msglen |= int(b&0x7F) << shift
  37543. if b < 0x80 {
  37544. break
  37545. }
  37546. }
  37547. if msglen < 0 {
  37548. return ErrInvalidLengthApi
  37549. }
  37550. postIndex := iNdEx + msglen
  37551. if postIndex < 0 {
  37552. return ErrInvalidLengthApi
  37553. }
  37554. if postIndex > l {
  37555. return io.ErrUnexpectedEOF
  37556. }
  37557. if m.Windows == nil {
  37558. m.Windows = &WindowsContainerResources{}
  37559. }
  37560. if err := m.Windows.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  37561. return err
  37562. }
  37563. iNdEx = postIndex
  37564. case 4:
  37565. if wireType != 2 {
  37566. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  37567. }
  37568. var msglen int
  37569. for shift := uint(0); ; shift += 7 {
  37570. if shift >= 64 {
  37571. return ErrIntOverflowApi
  37572. }
  37573. if iNdEx >= l {
  37574. return io.ErrUnexpectedEOF
  37575. }
  37576. b := dAtA[iNdEx]
  37577. iNdEx++
  37578. msglen |= int(b&0x7F) << shift
  37579. if b < 0x80 {
  37580. break
  37581. }
  37582. }
  37583. if msglen < 0 {
  37584. return ErrInvalidLengthApi
  37585. }
  37586. postIndex := iNdEx + msglen
  37587. if postIndex < 0 {
  37588. return ErrInvalidLengthApi
  37589. }
  37590. if postIndex > l {
  37591. return io.ErrUnexpectedEOF
  37592. }
  37593. if m.Annotations == nil {
  37594. m.Annotations = make(map[string]string)
  37595. }
  37596. var mapkey string
  37597. var mapvalue string
  37598. for iNdEx < postIndex {
  37599. entryPreIndex := iNdEx
  37600. var wire uint64
  37601. for shift := uint(0); ; shift += 7 {
  37602. if shift >= 64 {
  37603. return ErrIntOverflowApi
  37604. }
  37605. if iNdEx >= l {
  37606. return io.ErrUnexpectedEOF
  37607. }
  37608. b := dAtA[iNdEx]
  37609. iNdEx++
  37610. wire |= uint64(b&0x7F) << shift
  37611. if b < 0x80 {
  37612. break
  37613. }
  37614. }
  37615. fieldNum := int32(wire >> 3)
  37616. if fieldNum == 1 {
  37617. var stringLenmapkey uint64
  37618. for shift := uint(0); ; shift += 7 {
  37619. if shift >= 64 {
  37620. return ErrIntOverflowApi
  37621. }
  37622. if iNdEx >= l {
  37623. return io.ErrUnexpectedEOF
  37624. }
  37625. b := dAtA[iNdEx]
  37626. iNdEx++
  37627. stringLenmapkey |= uint64(b&0x7F) << shift
  37628. if b < 0x80 {
  37629. break
  37630. }
  37631. }
  37632. intStringLenmapkey := int(stringLenmapkey)
  37633. if intStringLenmapkey < 0 {
  37634. return ErrInvalidLengthApi
  37635. }
  37636. postStringIndexmapkey := iNdEx + intStringLenmapkey
  37637. if postStringIndexmapkey < 0 {
  37638. return ErrInvalidLengthApi
  37639. }
  37640. if postStringIndexmapkey > l {
  37641. return io.ErrUnexpectedEOF
  37642. }
  37643. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  37644. iNdEx = postStringIndexmapkey
  37645. } else if fieldNum == 2 {
  37646. var stringLenmapvalue uint64
  37647. for shift := uint(0); ; shift += 7 {
  37648. if shift >= 64 {
  37649. return ErrIntOverflowApi
  37650. }
  37651. if iNdEx >= l {
  37652. return io.ErrUnexpectedEOF
  37653. }
  37654. b := dAtA[iNdEx]
  37655. iNdEx++
  37656. stringLenmapvalue |= uint64(b&0x7F) << shift
  37657. if b < 0x80 {
  37658. break
  37659. }
  37660. }
  37661. intStringLenmapvalue := int(stringLenmapvalue)
  37662. if intStringLenmapvalue < 0 {
  37663. return ErrInvalidLengthApi
  37664. }
  37665. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  37666. if postStringIndexmapvalue < 0 {
  37667. return ErrInvalidLengthApi
  37668. }
  37669. if postStringIndexmapvalue > l {
  37670. return io.ErrUnexpectedEOF
  37671. }
  37672. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  37673. iNdEx = postStringIndexmapvalue
  37674. } else {
  37675. iNdEx = entryPreIndex
  37676. skippy, err := skipApi(dAtA[iNdEx:])
  37677. if err != nil {
  37678. return err
  37679. }
  37680. if (skippy < 0) || (iNdEx+skippy) < 0 {
  37681. return ErrInvalidLengthApi
  37682. }
  37683. if (iNdEx + skippy) > postIndex {
  37684. return io.ErrUnexpectedEOF
  37685. }
  37686. iNdEx += skippy
  37687. }
  37688. }
  37689. m.Annotations[mapkey] = mapvalue
  37690. iNdEx = postIndex
  37691. default:
  37692. iNdEx = preIndex
  37693. skippy, err := skipApi(dAtA[iNdEx:])
  37694. if err != nil {
  37695. return err
  37696. }
  37697. if (skippy < 0) || (iNdEx+skippy) < 0 {
  37698. return ErrInvalidLengthApi
  37699. }
  37700. if (iNdEx + skippy) > l {
  37701. return io.ErrUnexpectedEOF
  37702. }
  37703. iNdEx += skippy
  37704. }
  37705. }
  37706. if iNdEx > l {
  37707. return io.ErrUnexpectedEOF
  37708. }
  37709. return nil
  37710. }
  37711. func (m *UpdateContainerResourcesResponse) Unmarshal(dAtA []byte) error {
  37712. l := len(dAtA)
  37713. iNdEx := 0
  37714. for iNdEx < l {
  37715. preIndex := iNdEx
  37716. var wire uint64
  37717. for shift := uint(0); ; shift += 7 {
  37718. if shift >= 64 {
  37719. return ErrIntOverflowApi
  37720. }
  37721. if iNdEx >= l {
  37722. return io.ErrUnexpectedEOF
  37723. }
  37724. b := dAtA[iNdEx]
  37725. iNdEx++
  37726. wire |= uint64(b&0x7F) << shift
  37727. if b < 0x80 {
  37728. break
  37729. }
  37730. }
  37731. fieldNum := int32(wire >> 3)
  37732. wireType := int(wire & 0x7)
  37733. if wireType == 4 {
  37734. return fmt.Errorf("proto: UpdateContainerResourcesResponse: wiretype end group for non-group")
  37735. }
  37736. if fieldNum <= 0 {
  37737. return fmt.Errorf("proto: UpdateContainerResourcesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  37738. }
  37739. switch fieldNum {
  37740. default:
  37741. iNdEx = preIndex
  37742. skippy, err := skipApi(dAtA[iNdEx:])
  37743. if err != nil {
  37744. return err
  37745. }
  37746. if (skippy < 0) || (iNdEx+skippy) < 0 {
  37747. return ErrInvalidLengthApi
  37748. }
  37749. if (iNdEx + skippy) > l {
  37750. return io.ErrUnexpectedEOF
  37751. }
  37752. iNdEx += skippy
  37753. }
  37754. }
  37755. if iNdEx > l {
  37756. return io.ErrUnexpectedEOF
  37757. }
  37758. return nil
  37759. }
  37760. func (m *ExecSyncRequest) Unmarshal(dAtA []byte) error {
  37761. l := len(dAtA)
  37762. iNdEx := 0
  37763. for iNdEx < l {
  37764. preIndex := iNdEx
  37765. var wire uint64
  37766. for shift := uint(0); ; shift += 7 {
  37767. if shift >= 64 {
  37768. return ErrIntOverflowApi
  37769. }
  37770. if iNdEx >= l {
  37771. return io.ErrUnexpectedEOF
  37772. }
  37773. b := dAtA[iNdEx]
  37774. iNdEx++
  37775. wire |= uint64(b&0x7F) << shift
  37776. if b < 0x80 {
  37777. break
  37778. }
  37779. }
  37780. fieldNum := int32(wire >> 3)
  37781. wireType := int(wire & 0x7)
  37782. if wireType == 4 {
  37783. return fmt.Errorf("proto: ExecSyncRequest: wiretype end group for non-group")
  37784. }
  37785. if fieldNum <= 0 {
  37786. return fmt.Errorf("proto: ExecSyncRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  37787. }
  37788. switch fieldNum {
  37789. case 1:
  37790. if wireType != 2 {
  37791. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  37792. }
  37793. var stringLen uint64
  37794. for shift := uint(0); ; shift += 7 {
  37795. if shift >= 64 {
  37796. return ErrIntOverflowApi
  37797. }
  37798. if iNdEx >= l {
  37799. return io.ErrUnexpectedEOF
  37800. }
  37801. b := dAtA[iNdEx]
  37802. iNdEx++
  37803. stringLen |= uint64(b&0x7F) << shift
  37804. if b < 0x80 {
  37805. break
  37806. }
  37807. }
  37808. intStringLen := int(stringLen)
  37809. if intStringLen < 0 {
  37810. return ErrInvalidLengthApi
  37811. }
  37812. postIndex := iNdEx + intStringLen
  37813. if postIndex < 0 {
  37814. return ErrInvalidLengthApi
  37815. }
  37816. if postIndex > l {
  37817. return io.ErrUnexpectedEOF
  37818. }
  37819. m.ContainerId = string(dAtA[iNdEx:postIndex])
  37820. iNdEx = postIndex
  37821. case 2:
  37822. if wireType != 2 {
  37823. return fmt.Errorf("proto: wrong wireType = %d for field Cmd", wireType)
  37824. }
  37825. var stringLen uint64
  37826. for shift := uint(0); ; shift += 7 {
  37827. if shift >= 64 {
  37828. return ErrIntOverflowApi
  37829. }
  37830. if iNdEx >= l {
  37831. return io.ErrUnexpectedEOF
  37832. }
  37833. b := dAtA[iNdEx]
  37834. iNdEx++
  37835. stringLen |= uint64(b&0x7F) << shift
  37836. if b < 0x80 {
  37837. break
  37838. }
  37839. }
  37840. intStringLen := int(stringLen)
  37841. if intStringLen < 0 {
  37842. return ErrInvalidLengthApi
  37843. }
  37844. postIndex := iNdEx + intStringLen
  37845. if postIndex < 0 {
  37846. return ErrInvalidLengthApi
  37847. }
  37848. if postIndex > l {
  37849. return io.ErrUnexpectedEOF
  37850. }
  37851. m.Cmd = append(m.Cmd, string(dAtA[iNdEx:postIndex]))
  37852. iNdEx = postIndex
  37853. case 3:
  37854. if wireType != 0 {
  37855. return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
  37856. }
  37857. m.Timeout = 0
  37858. for shift := uint(0); ; shift += 7 {
  37859. if shift >= 64 {
  37860. return ErrIntOverflowApi
  37861. }
  37862. if iNdEx >= l {
  37863. return io.ErrUnexpectedEOF
  37864. }
  37865. b := dAtA[iNdEx]
  37866. iNdEx++
  37867. m.Timeout |= int64(b&0x7F) << shift
  37868. if b < 0x80 {
  37869. break
  37870. }
  37871. }
  37872. default:
  37873. iNdEx = preIndex
  37874. skippy, err := skipApi(dAtA[iNdEx:])
  37875. if err != nil {
  37876. return err
  37877. }
  37878. if (skippy < 0) || (iNdEx+skippy) < 0 {
  37879. return ErrInvalidLengthApi
  37880. }
  37881. if (iNdEx + skippy) > l {
  37882. return io.ErrUnexpectedEOF
  37883. }
  37884. iNdEx += skippy
  37885. }
  37886. }
  37887. if iNdEx > l {
  37888. return io.ErrUnexpectedEOF
  37889. }
  37890. return nil
  37891. }
  37892. func (m *ExecSyncResponse) Unmarshal(dAtA []byte) error {
  37893. l := len(dAtA)
  37894. iNdEx := 0
  37895. for iNdEx < l {
  37896. preIndex := iNdEx
  37897. var wire uint64
  37898. for shift := uint(0); ; shift += 7 {
  37899. if shift >= 64 {
  37900. return ErrIntOverflowApi
  37901. }
  37902. if iNdEx >= l {
  37903. return io.ErrUnexpectedEOF
  37904. }
  37905. b := dAtA[iNdEx]
  37906. iNdEx++
  37907. wire |= uint64(b&0x7F) << shift
  37908. if b < 0x80 {
  37909. break
  37910. }
  37911. }
  37912. fieldNum := int32(wire >> 3)
  37913. wireType := int(wire & 0x7)
  37914. if wireType == 4 {
  37915. return fmt.Errorf("proto: ExecSyncResponse: wiretype end group for non-group")
  37916. }
  37917. if fieldNum <= 0 {
  37918. return fmt.Errorf("proto: ExecSyncResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  37919. }
  37920. switch fieldNum {
  37921. case 1:
  37922. if wireType != 2 {
  37923. return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType)
  37924. }
  37925. var byteLen int
  37926. for shift := uint(0); ; shift += 7 {
  37927. if shift >= 64 {
  37928. return ErrIntOverflowApi
  37929. }
  37930. if iNdEx >= l {
  37931. return io.ErrUnexpectedEOF
  37932. }
  37933. b := dAtA[iNdEx]
  37934. iNdEx++
  37935. byteLen |= int(b&0x7F) << shift
  37936. if b < 0x80 {
  37937. break
  37938. }
  37939. }
  37940. if byteLen < 0 {
  37941. return ErrInvalidLengthApi
  37942. }
  37943. postIndex := iNdEx + byteLen
  37944. if postIndex < 0 {
  37945. return ErrInvalidLengthApi
  37946. }
  37947. if postIndex > l {
  37948. return io.ErrUnexpectedEOF
  37949. }
  37950. m.Stdout = append(m.Stdout[:0], dAtA[iNdEx:postIndex]...)
  37951. if m.Stdout == nil {
  37952. m.Stdout = []byte{}
  37953. }
  37954. iNdEx = postIndex
  37955. case 2:
  37956. if wireType != 2 {
  37957. return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType)
  37958. }
  37959. var byteLen int
  37960. for shift := uint(0); ; shift += 7 {
  37961. if shift >= 64 {
  37962. return ErrIntOverflowApi
  37963. }
  37964. if iNdEx >= l {
  37965. return io.ErrUnexpectedEOF
  37966. }
  37967. b := dAtA[iNdEx]
  37968. iNdEx++
  37969. byteLen |= int(b&0x7F) << shift
  37970. if b < 0x80 {
  37971. break
  37972. }
  37973. }
  37974. if byteLen < 0 {
  37975. return ErrInvalidLengthApi
  37976. }
  37977. postIndex := iNdEx + byteLen
  37978. if postIndex < 0 {
  37979. return ErrInvalidLengthApi
  37980. }
  37981. if postIndex > l {
  37982. return io.ErrUnexpectedEOF
  37983. }
  37984. m.Stderr = append(m.Stderr[:0], dAtA[iNdEx:postIndex]...)
  37985. if m.Stderr == nil {
  37986. m.Stderr = []byte{}
  37987. }
  37988. iNdEx = postIndex
  37989. case 3:
  37990. if wireType != 0 {
  37991. return fmt.Errorf("proto: wrong wireType = %d for field ExitCode", wireType)
  37992. }
  37993. m.ExitCode = 0
  37994. for shift := uint(0); ; shift += 7 {
  37995. if shift >= 64 {
  37996. return ErrIntOverflowApi
  37997. }
  37998. if iNdEx >= l {
  37999. return io.ErrUnexpectedEOF
  38000. }
  38001. b := dAtA[iNdEx]
  38002. iNdEx++
  38003. m.ExitCode |= int32(b&0x7F) << shift
  38004. if b < 0x80 {
  38005. break
  38006. }
  38007. }
  38008. default:
  38009. iNdEx = preIndex
  38010. skippy, err := skipApi(dAtA[iNdEx:])
  38011. if err != nil {
  38012. return err
  38013. }
  38014. if (skippy < 0) || (iNdEx+skippy) < 0 {
  38015. return ErrInvalidLengthApi
  38016. }
  38017. if (iNdEx + skippy) > l {
  38018. return io.ErrUnexpectedEOF
  38019. }
  38020. iNdEx += skippy
  38021. }
  38022. }
  38023. if iNdEx > l {
  38024. return io.ErrUnexpectedEOF
  38025. }
  38026. return nil
  38027. }
  38028. func (m *ExecRequest) Unmarshal(dAtA []byte) error {
  38029. l := len(dAtA)
  38030. iNdEx := 0
  38031. for iNdEx < l {
  38032. preIndex := iNdEx
  38033. var wire uint64
  38034. for shift := uint(0); ; shift += 7 {
  38035. if shift >= 64 {
  38036. return ErrIntOverflowApi
  38037. }
  38038. if iNdEx >= l {
  38039. return io.ErrUnexpectedEOF
  38040. }
  38041. b := dAtA[iNdEx]
  38042. iNdEx++
  38043. wire |= uint64(b&0x7F) << shift
  38044. if b < 0x80 {
  38045. break
  38046. }
  38047. }
  38048. fieldNum := int32(wire >> 3)
  38049. wireType := int(wire & 0x7)
  38050. if wireType == 4 {
  38051. return fmt.Errorf("proto: ExecRequest: wiretype end group for non-group")
  38052. }
  38053. if fieldNum <= 0 {
  38054. return fmt.Errorf("proto: ExecRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  38055. }
  38056. switch fieldNum {
  38057. case 1:
  38058. if wireType != 2 {
  38059. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  38060. }
  38061. var stringLen uint64
  38062. for shift := uint(0); ; shift += 7 {
  38063. if shift >= 64 {
  38064. return ErrIntOverflowApi
  38065. }
  38066. if iNdEx >= l {
  38067. return io.ErrUnexpectedEOF
  38068. }
  38069. b := dAtA[iNdEx]
  38070. iNdEx++
  38071. stringLen |= uint64(b&0x7F) << shift
  38072. if b < 0x80 {
  38073. break
  38074. }
  38075. }
  38076. intStringLen := int(stringLen)
  38077. if intStringLen < 0 {
  38078. return ErrInvalidLengthApi
  38079. }
  38080. postIndex := iNdEx + intStringLen
  38081. if postIndex < 0 {
  38082. return ErrInvalidLengthApi
  38083. }
  38084. if postIndex > l {
  38085. return io.ErrUnexpectedEOF
  38086. }
  38087. m.ContainerId = string(dAtA[iNdEx:postIndex])
  38088. iNdEx = postIndex
  38089. case 2:
  38090. if wireType != 2 {
  38091. return fmt.Errorf("proto: wrong wireType = %d for field Cmd", wireType)
  38092. }
  38093. var stringLen uint64
  38094. for shift := uint(0); ; shift += 7 {
  38095. if shift >= 64 {
  38096. return ErrIntOverflowApi
  38097. }
  38098. if iNdEx >= l {
  38099. return io.ErrUnexpectedEOF
  38100. }
  38101. b := dAtA[iNdEx]
  38102. iNdEx++
  38103. stringLen |= uint64(b&0x7F) << shift
  38104. if b < 0x80 {
  38105. break
  38106. }
  38107. }
  38108. intStringLen := int(stringLen)
  38109. if intStringLen < 0 {
  38110. return ErrInvalidLengthApi
  38111. }
  38112. postIndex := iNdEx + intStringLen
  38113. if postIndex < 0 {
  38114. return ErrInvalidLengthApi
  38115. }
  38116. if postIndex > l {
  38117. return io.ErrUnexpectedEOF
  38118. }
  38119. m.Cmd = append(m.Cmd, string(dAtA[iNdEx:postIndex]))
  38120. iNdEx = postIndex
  38121. case 3:
  38122. if wireType != 0 {
  38123. return fmt.Errorf("proto: wrong wireType = %d for field Tty", wireType)
  38124. }
  38125. var v int
  38126. for shift := uint(0); ; shift += 7 {
  38127. if shift >= 64 {
  38128. return ErrIntOverflowApi
  38129. }
  38130. if iNdEx >= l {
  38131. return io.ErrUnexpectedEOF
  38132. }
  38133. b := dAtA[iNdEx]
  38134. iNdEx++
  38135. v |= int(b&0x7F) << shift
  38136. if b < 0x80 {
  38137. break
  38138. }
  38139. }
  38140. m.Tty = bool(v != 0)
  38141. case 4:
  38142. if wireType != 0 {
  38143. return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType)
  38144. }
  38145. var v int
  38146. for shift := uint(0); ; shift += 7 {
  38147. if shift >= 64 {
  38148. return ErrIntOverflowApi
  38149. }
  38150. if iNdEx >= l {
  38151. return io.ErrUnexpectedEOF
  38152. }
  38153. b := dAtA[iNdEx]
  38154. iNdEx++
  38155. v |= int(b&0x7F) << shift
  38156. if b < 0x80 {
  38157. break
  38158. }
  38159. }
  38160. m.Stdin = bool(v != 0)
  38161. case 5:
  38162. if wireType != 0 {
  38163. return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType)
  38164. }
  38165. var v int
  38166. for shift := uint(0); ; shift += 7 {
  38167. if shift >= 64 {
  38168. return ErrIntOverflowApi
  38169. }
  38170. if iNdEx >= l {
  38171. return io.ErrUnexpectedEOF
  38172. }
  38173. b := dAtA[iNdEx]
  38174. iNdEx++
  38175. v |= int(b&0x7F) << shift
  38176. if b < 0x80 {
  38177. break
  38178. }
  38179. }
  38180. m.Stdout = bool(v != 0)
  38181. case 6:
  38182. if wireType != 0 {
  38183. return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType)
  38184. }
  38185. var v int
  38186. for shift := uint(0); ; shift += 7 {
  38187. if shift >= 64 {
  38188. return ErrIntOverflowApi
  38189. }
  38190. if iNdEx >= l {
  38191. return io.ErrUnexpectedEOF
  38192. }
  38193. b := dAtA[iNdEx]
  38194. iNdEx++
  38195. v |= int(b&0x7F) << shift
  38196. if b < 0x80 {
  38197. break
  38198. }
  38199. }
  38200. m.Stderr = bool(v != 0)
  38201. default:
  38202. iNdEx = preIndex
  38203. skippy, err := skipApi(dAtA[iNdEx:])
  38204. if err != nil {
  38205. return err
  38206. }
  38207. if (skippy < 0) || (iNdEx+skippy) < 0 {
  38208. return ErrInvalidLengthApi
  38209. }
  38210. if (iNdEx + skippy) > l {
  38211. return io.ErrUnexpectedEOF
  38212. }
  38213. iNdEx += skippy
  38214. }
  38215. }
  38216. if iNdEx > l {
  38217. return io.ErrUnexpectedEOF
  38218. }
  38219. return nil
  38220. }
  38221. func (m *ExecResponse) Unmarshal(dAtA []byte) error {
  38222. l := len(dAtA)
  38223. iNdEx := 0
  38224. for iNdEx < l {
  38225. preIndex := iNdEx
  38226. var wire uint64
  38227. for shift := uint(0); ; shift += 7 {
  38228. if shift >= 64 {
  38229. return ErrIntOverflowApi
  38230. }
  38231. if iNdEx >= l {
  38232. return io.ErrUnexpectedEOF
  38233. }
  38234. b := dAtA[iNdEx]
  38235. iNdEx++
  38236. wire |= uint64(b&0x7F) << shift
  38237. if b < 0x80 {
  38238. break
  38239. }
  38240. }
  38241. fieldNum := int32(wire >> 3)
  38242. wireType := int(wire & 0x7)
  38243. if wireType == 4 {
  38244. return fmt.Errorf("proto: ExecResponse: wiretype end group for non-group")
  38245. }
  38246. if fieldNum <= 0 {
  38247. return fmt.Errorf("proto: ExecResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  38248. }
  38249. switch fieldNum {
  38250. case 1:
  38251. if wireType != 2 {
  38252. return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
  38253. }
  38254. var stringLen uint64
  38255. for shift := uint(0); ; shift += 7 {
  38256. if shift >= 64 {
  38257. return ErrIntOverflowApi
  38258. }
  38259. if iNdEx >= l {
  38260. return io.ErrUnexpectedEOF
  38261. }
  38262. b := dAtA[iNdEx]
  38263. iNdEx++
  38264. stringLen |= uint64(b&0x7F) << shift
  38265. if b < 0x80 {
  38266. break
  38267. }
  38268. }
  38269. intStringLen := int(stringLen)
  38270. if intStringLen < 0 {
  38271. return ErrInvalidLengthApi
  38272. }
  38273. postIndex := iNdEx + intStringLen
  38274. if postIndex < 0 {
  38275. return ErrInvalidLengthApi
  38276. }
  38277. if postIndex > l {
  38278. return io.ErrUnexpectedEOF
  38279. }
  38280. m.Url = string(dAtA[iNdEx:postIndex])
  38281. iNdEx = postIndex
  38282. default:
  38283. iNdEx = preIndex
  38284. skippy, err := skipApi(dAtA[iNdEx:])
  38285. if err != nil {
  38286. return err
  38287. }
  38288. if (skippy < 0) || (iNdEx+skippy) < 0 {
  38289. return ErrInvalidLengthApi
  38290. }
  38291. if (iNdEx + skippy) > l {
  38292. return io.ErrUnexpectedEOF
  38293. }
  38294. iNdEx += skippy
  38295. }
  38296. }
  38297. if iNdEx > l {
  38298. return io.ErrUnexpectedEOF
  38299. }
  38300. return nil
  38301. }
  38302. func (m *AttachRequest) Unmarshal(dAtA []byte) error {
  38303. l := len(dAtA)
  38304. iNdEx := 0
  38305. for iNdEx < l {
  38306. preIndex := iNdEx
  38307. var wire uint64
  38308. for shift := uint(0); ; shift += 7 {
  38309. if shift >= 64 {
  38310. return ErrIntOverflowApi
  38311. }
  38312. if iNdEx >= l {
  38313. return io.ErrUnexpectedEOF
  38314. }
  38315. b := dAtA[iNdEx]
  38316. iNdEx++
  38317. wire |= uint64(b&0x7F) << shift
  38318. if b < 0x80 {
  38319. break
  38320. }
  38321. }
  38322. fieldNum := int32(wire >> 3)
  38323. wireType := int(wire & 0x7)
  38324. if wireType == 4 {
  38325. return fmt.Errorf("proto: AttachRequest: wiretype end group for non-group")
  38326. }
  38327. if fieldNum <= 0 {
  38328. return fmt.Errorf("proto: AttachRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  38329. }
  38330. switch fieldNum {
  38331. case 1:
  38332. if wireType != 2 {
  38333. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  38334. }
  38335. var stringLen uint64
  38336. for shift := uint(0); ; shift += 7 {
  38337. if shift >= 64 {
  38338. return ErrIntOverflowApi
  38339. }
  38340. if iNdEx >= l {
  38341. return io.ErrUnexpectedEOF
  38342. }
  38343. b := dAtA[iNdEx]
  38344. iNdEx++
  38345. stringLen |= uint64(b&0x7F) << shift
  38346. if b < 0x80 {
  38347. break
  38348. }
  38349. }
  38350. intStringLen := int(stringLen)
  38351. if intStringLen < 0 {
  38352. return ErrInvalidLengthApi
  38353. }
  38354. postIndex := iNdEx + intStringLen
  38355. if postIndex < 0 {
  38356. return ErrInvalidLengthApi
  38357. }
  38358. if postIndex > l {
  38359. return io.ErrUnexpectedEOF
  38360. }
  38361. m.ContainerId = string(dAtA[iNdEx:postIndex])
  38362. iNdEx = postIndex
  38363. case 2:
  38364. if wireType != 0 {
  38365. return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType)
  38366. }
  38367. var v int
  38368. for shift := uint(0); ; shift += 7 {
  38369. if shift >= 64 {
  38370. return ErrIntOverflowApi
  38371. }
  38372. if iNdEx >= l {
  38373. return io.ErrUnexpectedEOF
  38374. }
  38375. b := dAtA[iNdEx]
  38376. iNdEx++
  38377. v |= int(b&0x7F) << shift
  38378. if b < 0x80 {
  38379. break
  38380. }
  38381. }
  38382. m.Stdin = bool(v != 0)
  38383. case 3:
  38384. if wireType != 0 {
  38385. return fmt.Errorf("proto: wrong wireType = %d for field Tty", wireType)
  38386. }
  38387. var v int
  38388. for shift := uint(0); ; shift += 7 {
  38389. if shift >= 64 {
  38390. return ErrIntOverflowApi
  38391. }
  38392. if iNdEx >= l {
  38393. return io.ErrUnexpectedEOF
  38394. }
  38395. b := dAtA[iNdEx]
  38396. iNdEx++
  38397. v |= int(b&0x7F) << shift
  38398. if b < 0x80 {
  38399. break
  38400. }
  38401. }
  38402. m.Tty = bool(v != 0)
  38403. case 4:
  38404. if wireType != 0 {
  38405. return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType)
  38406. }
  38407. var v int
  38408. for shift := uint(0); ; shift += 7 {
  38409. if shift >= 64 {
  38410. return ErrIntOverflowApi
  38411. }
  38412. if iNdEx >= l {
  38413. return io.ErrUnexpectedEOF
  38414. }
  38415. b := dAtA[iNdEx]
  38416. iNdEx++
  38417. v |= int(b&0x7F) << shift
  38418. if b < 0x80 {
  38419. break
  38420. }
  38421. }
  38422. m.Stdout = bool(v != 0)
  38423. case 5:
  38424. if wireType != 0 {
  38425. return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType)
  38426. }
  38427. var v int
  38428. for shift := uint(0); ; shift += 7 {
  38429. if shift >= 64 {
  38430. return ErrIntOverflowApi
  38431. }
  38432. if iNdEx >= l {
  38433. return io.ErrUnexpectedEOF
  38434. }
  38435. b := dAtA[iNdEx]
  38436. iNdEx++
  38437. v |= int(b&0x7F) << shift
  38438. if b < 0x80 {
  38439. break
  38440. }
  38441. }
  38442. m.Stderr = bool(v != 0)
  38443. default:
  38444. iNdEx = preIndex
  38445. skippy, err := skipApi(dAtA[iNdEx:])
  38446. if err != nil {
  38447. return err
  38448. }
  38449. if (skippy < 0) || (iNdEx+skippy) < 0 {
  38450. return ErrInvalidLengthApi
  38451. }
  38452. if (iNdEx + skippy) > l {
  38453. return io.ErrUnexpectedEOF
  38454. }
  38455. iNdEx += skippy
  38456. }
  38457. }
  38458. if iNdEx > l {
  38459. return io.ErrUnexpectedEOF
  38460. }
  38461. return nil
  38462. }
  38463. func (m *AttachResponse) Unmarshal(dAtA []byte) error {
  38464. l := len(dAtA)
  38465. iNdEx := 0
  38466. for iNdEx < l {
  38467. preIndex := iNdEx
  38468. var wire uint64
  38469. for shift := uint(0); ; shift += 7 {
  38470. if shift >= 64 {
  38471. return ErrIntOverflowApi
  38472. }
  38473. if iNdEx >= l {
  38474. return io.ErrUnexpectedEOF
  38475. }
  38476. b := dAtA[iNdEx]
  38477. iNdEx++
  38478. wire |= uint64(b&0x7F) << shift
  38479. if b < 0x80 {
  38480. break
  38481. }
  38482. }
  38483. fieldNum := int32(wire >> 3)
  38484. wireType := int(wire & 0x7)
  38485. if wireType == 4 {
  38486. return fmt.Errorf("proto: AttachResponse: wiretype end group for non-group")
  38487. }
  38488. if fieldNum <= 0 {
  38489. return fmt.Errorf("proto: AttachResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  38490. }
  38491. switch fieldNum {
  38492. case 1:
  38493. if wireType != 2 {
  38494. return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
  38495. }
  38496. var stringLen uint64
  38497. for shift := uint(0); ; shift += 7 {
  38498. if shift >= 64 {
  38499. return ErrIntOverflowApi
  38500. }
  38501. if iNdEx >= l {
  38502. return io.ErrUnexpectedEOF
  38503. }
  38504. b := dAtA[iNdEx]
  38505. iNdEx++
  38506. stringLen |= uint64(b&0x7F) << shift
  38507. if b < 0x80 {
  38508. break
  38509. }
  38510. }
  38511. intStringLen := int(stringLen)
  38512. if intStringLen < 0 {
  38513. return ErrInvalidLengthApi
  38514. }
  38515. postIndex := iNdEx + intStringLen
  38516. if postIndex < 0 {
  38517. return ErrInvalidLengthApi
  38518. }
  38519. if postIndex > l {
  38520. return io.ErrUnexpectedEOF
  38521. }
  38522. m.Url = string(dAtA[iNdEx:postIndex])
  38523. iNdEx = postIndex
  38524. default:
  38525. iNdEx = preIndex
  38526. skippy, err := skipApi(dAtA[iNdEx:])
  38527. if err != nil {
  38528. return err
  38529. }
  38530. if (skippy < 0) || (iNdEx+skippy) < 0 {
  38531. return ErrInvalidLengthApi
  38532. }
  38533. if (iNdEx + skippy) > l {
  38534. return io.ErrUnexpectedEOF
  38535. }
  38536. iNdEx += skippy
  38537. }
  38538. }
  38539. if iNdEx > l {
  38540. return io.ErrUnexpectedEOF
  38541. }
  38542. return nil
  38543. }
  38544. func (m *PortForwardRequest) Unmarshal(dAtA []byte) error {
  38545. l := len(dAtA)
  38546. iNdEx := 0
  38547. for iNdEx < l {
  38548. preIndex := iNdEx
  38549. var wire uint64
  38550. for shift := uint(0); ; shift += 7 {
  38551. if shift >= 64 {
  38552. return ErrIntOverflowApi
  38553. }
  38554. if iNdEx >= l {
  38555. return io.ErrUnexpectedEOF
  38556. }
  38557. b := dAtA[iNdEx]
  38558. iNdEx++
  38559. wire |= uint64(b&0x7F) << shift
  38560. if b < 0x80 {
  38561. break
  38562. }
  38563. }
  38564. fieldNum := int32(wire >> 3)
  38565. wireType := int(wire & 0x7)
  38566. if wireType == 4 {
  38567. return fmt.Errorf("proto: PortForwardRequest: wiretype end group for non-group")
  38568. }
  38569. if fieldNum <= 0 {
  38570. return fmt.Errorf("proto: PortForwardRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  38571. }
  38572. switch fieldNum {
  38573. case 1:
  38574. if wireType != 2 {
  38575. return fmt.Errorf("proto: wrong wireType = %d for field PodSandboxId", wireType)
  38576. }
  38577. var stringLen uint64
  38578. for shift := uint(0); ; shift += 7 {
  38579. if shift >= 64 {
  38580. return ErrIntOverflowApi
  38581. }
  38582. if iNdEx >= l {
  38583. return io.ErrUnexpectedEOF
  38584. }
  38585. b := dAtA[iNdEx]
  38586. iNdEx++
  38587. stringLen |= uint64(b&0x7F) << shift
  38588. if b < 0x80 {
  38589. break
  38590. }
  38591. }
  38592. intStringLen := int(stringLen)
  38593. if intStringLen < 0 {
  38594. return ErrInvalidLengthApi
  38595. }
  38596. postIndex := iNdEx + intStringLen
  38597. if postIndex < 0 {
  38598. return ErrInvalidLengthApi
  38599. }
  38600. if postIndex > l {
  38601. return io.ErrUnexpectedEOF
  38602. }
  38603. m.PodSandboxId = string(dAtA[iNdEx:postIndex])
  38604. iNdEx = postIndex
  38605. case 2:
  38606. if wireType == 0 {
  38607. var v int32
  38608. for shift := uint(0); ; shift += 7 {
  38609. if shift >= 64 {
  38610. return ErrIntOverflowApi
  38611. }
  38612. if iNdEx >= l {
  38613. return io.ErrUnexpectedEOF
  38614. }
  38615. b := dAtA[iNdEx]
  38616. iNdEx++
  38617. v |= int32(b&0x7F) << shift
  38618. if b < 0x80 {
  38619. break
  38620. }
  38621. }
  38622. m.Port = append(m.Port, v)
  38623. } else if wireType == 2 {
  38624. var packedLen int
  38625. for shift := uint(0); ; shift += 7 {
  38626. if shift >= 64 {
  38627. return ErrIntOverflowApi
  38628. }
  38629. if iNdEx >= l {
  38630. return io.ErrUnexpectedEOF
  38631. }
  38632. b := dAtA[iNdEx]
  38633. iNdEx++
  38634. packedLen |= int(b&0x7F) << shift
  38635. if b < 0x80 {
  38636. break
  38637. }
  38638. }
  38639. if packedLen < 0 {
  38640. return ErrInvalidLengthApi
  38641. }
  38642. postIndex := iNdEx + packedLen
  38643. if postIndex < 0 {
  38644. return ErrInvalidLengthApi
  38645. }
  38646. if postIndex > l {
  38647. return io.ErrUnexpectedEOF
  38648. }
  38649. var elementCount int
  38650. var count int
  38651. for _, integer := range dAtA[iNdEx:postIndex] {
  38652. if integer < 128 {
  38653. count++
  38654. }
  38655. }
  38656. elementCount = count
  38657. if elementCount != 0 && len(m.Port) == 0 {
  38658. m.Port = make([]int32, 0, elementCount)
  38659. }
  38660. for iNdEx < postIndex {
  38661. var v int32
  38662. for shift := uint(0); ; shift += 7 {
  38663. if shift >= 64 {
  38664. return ErrIntOverflowApi
  38665. }
  38666. if iNdEx >= l {
  38667. return io.ErrUnexpectedEOF
  38668. }
  38669. b := dAtA[iNdEx]
  38670. iNdEx++
  38671. v |= int32(b&0x7F) << shift
  38672. if b < 0x80 {
  38673. break
  38674. }
  38675. }
  38676. m.Port = append(m.Port, v)
  38677. }
  38678. } else {
  38679. return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
  38680. }
  38681. default:
  38682. iNdEx = preIndex
  38683. skippy, err := skipApi(dAtA[iNdEx:])
  38684. if err != nil {
  38685. return err
  38686. }
  38687. if (skippy < 0) || (iNdEx+skippy) < 0 {
  38688. return ErrInvalidLengthApi
  38689. }
  38690. if (iNdEx + skippy) > l {
  38691. return io.ErrUnexpectedEOF
  38692. }
  38693. iNdEx += skippy
  38694. }
  38695. }
  38696. if iNdEx > l {
  38697. return io.ErrUnexpectedEOF
  38698. }
  38699. return nil
  38700. }
  38701. func (m *PortForwardResponse) Unmarshal(dAtA []byte) error {
  38702. l := len(dAtA)
  38703. iNdEx := 0
  38704. for iNdEx < l {
  38705. preIndex := iNdEx
  38706. var wire uint64
  38707. for shift := uint(0); ; shift += 7 {
  38708. if shift >= 64 {
  38709. return ErrIntOverflowApi
  38710. }
  38711. if iNdEx >= l {
  38712. return io.ErrUnexpectedEOF
  38713. }
  38714. b := dAtA[iNdEx]
  38715. iNdEx++
  38716. wire |= uint64(b&0x7F) << shift
  38717. if b < 0x80 {
  38718. break
  38719. }
  38720. }
  38721. fieldNum := int32(wire >> 3)
  38722. wireType := int(wire & 0x7)
  38723. if wireType == 4 {
  38724. return fmt.Errorf("proto: PortForwardResponse: wiretype end group for non-group")
  38725. }
  38726. if fieldNum <= 0 {
  38727. return fmt.Errorf("proto: PortForwardResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  38728. }
  38729. switch fieldNum {
  38730. case 1:
  38731. if wireType != 2 {
  38732. return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
  38733. }
  38734. var stringLen uint64
  38735. for shift := uint(0); ; shift += 7 {
  38736. if shift >= 64 {
  38737. return ErrIntOverflowApi
  38738. }
  38739. if iNdEx >= l {
  38740. return io.ErrUnexpectedEOF
  38741. }
  38742. b := dAtA[iNdEx]
  38743. iNdEx++
  38744. stringLen |= uint64(b&0x7F) << shift
  38745. if b < 0x80 {
  38746. break
  38747. }
  38748. }
  38749. intStringLen := int(stringLen)
  38750. if intStringLen < 0 {
  38751. return ErrInvalidLengthApi
  38752. }
  38753. postIndex := iNdEx + intStringLen
  38754. if postIndex < 0 {
  38755. return ErrInvalidLengthApi
  38756. }
  38757. if postIndex > l {
  38758. return io.ErrUnexpectedEOF
  38759. }
  38760. m.Url = string(dAtA[iNdEx:postIndex])
  38761. iNdEx = postIndex
  38762. default:
  38763. iNdEx = preIndex
  38764. skippy, err := skipApi(dAtA[iNdEx:])
  38765. if err != nil {
  38766. return err
  38767. }
  38768. if (skippy < 0) || (iNdEx+skippy) < 0 {
  38769. return ErrInvalidLengthApi
  38770. }
  38771. if (iNdEx + skippy) > l {
  38772. return io.ErrUnexpectedEOF
  38773. }
  38774. iNdEx += skippy
  38775. }
  38776. }
  38777. if iNdEx > l {
  38778. return io.ErrUnexpectedEOF
  38779. }
  38780. return nil
  38781. }
  38782. func (m *ImageFilter) Unmarshal(dAtA []byte) error {
  38783. l := len(dAtA)
  38784. iNdEx := 0
  38785. for iNdEx < l {
  38786. preIndex := iNdEx
  38787. var wire uint64
  38788. for shift := uint(0); ; shift += 7 {
  38789. if shift >= 64 {
  38790. return ErrIntOverflowApi
  38791. }
  38792. if iNdEx >= l {
  38793. return io.ErrUnexpectedEOF
  38794. }
  38795. b := dAtA[iNdEx]
  38796. iNdEx++
  38797. wire |= uint64(b&0x7F) << shift
  38798. if b < 0x80 {
  38799. break
  38800. }
  38801. }
  38802. fieldNum := int32(wire >> 3)
  38803. wireType := int(wire & 0x7)
  38804. if wireType == 4 {
  38805. return fmt.Errorf("proto: ImageFilter: wiretype end group for non-group")
  38806. }
  38807. if fieldNum <= 0 {
  38808. return fmt.Errorf("proto: ImageFilter: illegal tag %d (wire type %d)", fieldNum, wire)
  38809. }
  38810. switch fieldNum {
  38811. case 1:
  38812. if wireType != 2 {
  38813. return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
  38814. }
  38815. var msglen int
  38816. for shift := uint(0); ; shift += 7 {
  38817. if shift >= 64 {
  38818. return ErrIntOverflowApi
  38819. }
  38820. if iNdEx >= l {
  38821. return io.ErrUnexpectedEOF
  38822. }
  38823. b := dAtA[iNdEx]
  38824. iNdEx++
  38825. msglen |= int(b&0x7F) << shift
  38826. if b < 0x80 {
  38827. break
  38828. }
  38829. }
  38830. if msglen < 0 {
  38831. return ErrInvalidLengthApi
  38832. }
  38833. postIndex := iNdEx + msglen
  38834. if postIndex < 0 {
  38835. return ErrInvalidLengthApi
  38836. }
  38837. if postIndex > l {
  38838. return io.ErrUnexpectedEOF
  38839. }
  38840. if m.Image == nil {
  38841. m.Image = &ImageSpec{}
  38842. }
  38843. if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  38844. return err
  38845. }
  38846. iNdEx = postIndex
  38847. default:
  38848. iNdEx = preIndex
  38849. skippy, err := skipApi(dAtA[iNdEx:])
  38850. if err != nil {
  38851. return err
  38852. }
  38853. if (skippy < 0) || (iNdEx+skippy) < 0 {
  38854. return ErrInvalidLengthApi
  38855. }
  38856. if (iNdEx + skippy) > l {
  38857. return io.ErrUnexpectedEOF
  38858. }
  38859. iNdEx += skippy
  38860. }
  38861. }
  38862. if iNdEx > l {
  38863. return io.ErrUnexpectedEOF
  38864. }
  38865. return nil
  38866. }
  38867. func (m *ListImagesRequest) Unmarshal(dAtA []byte) error {
  38868. l := len(dAtA)
  38869. iNdEx := 0
  38870. for iNdEx < l {
  38871. preIndex := iNdEx
  38872. var wire uint64
  38873. for shift := uint(0); ; shift += 7 {
  38874. if shift >= 64 {
  38875. return ErrIntOverflowApi
  38876. }
  38877. if iNdEx >= l {
  38878. return io.ErrUnexpectedEOF
  38879. }
  38880. b := dAtA[iNdEx]
  38881. iNdEx++
  38882. wire |= uint64(b&0x7F) << shift
  38883. if b < 0x80 {
  38884. break
  38885. }
  38886. }
  38887. fieldNum := int32(wire >> 3)
  38888. wireType := int(wire & 0x7)
  38889. if wireType == 4 {
  38890. return fmt.Errorf("proto: ListImagesRequest: wiretype end group for non-group")
  38891. }
  38892. if fieldNum <= 0 {
  38893. return fmt.Errorf("proto: ListImagesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  38894. }
  38895. switch fieldNum {
  38896. case 1:
  38897. if wireType != 2 {
  38898. return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType)
  38899. }
  38900. var msglen int
  38901. for shift := uint(0); ; shift += 7 {
  38902. if shift >= 64 {
  38903. return ErrIntOverflowApi
  38904. }
  38905. if iNdEx >= l {
  38906. return io.ErrUnexpectedEOF
  38907. }
  38908. b := dAtA[iNdEx]
  38909. iNdEx++
  38910. msglen |= int(b&0x7F) << shift
  38911. if b < 0x80 {
  38912. break
  38913. }
  38914. }
  38915. if msglen < 0 {
  38916. return ErrInvalidLengthApi
  38917. }
  38918. postIndex := iNdEx + msglen
  38919. if postIndex < 0 {
  38920. return ErrInvalidLengthApi
  38921. }
  38922. if postIndex > l {
  38923. return io.ErrUnexpectedEOF
  38924. }
  38925. if m.Filter == nil {
  38926. m.Filter = &ImageFilter{}
  38927. }
  38928. if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  38929. return err
  38930. }
  38931. iNdEx = postIndex
  38932. default:
  38933. iNdEx = preIndex
  38934. skippy, err := skipApi(dAtA[iNdEx:])
  38935. if err != nil {
  38936. return err
  38937. }
  38938. if (skippy < 0) || (iNdEx+skippy) < 0 {
  38939. return ErrInvalidLengthApi
  38940. }
  38941. if (iNdEx + skippy) > l {
  38942. return io.ErrUnexpectedEOF
  38943. }
  38944. iNdEx += skippy
  38945. }
  38946. }
  38947. if iNdEx > l {
  38948. return io.ErrUnexpectedEOF
  38949. }
  38950. return nil
  38951. }
  38952. func (m *Image) Unmarshal(dAtA []byte) error {
  38953. l := len(dAtA)
  38954. iNdEx := 0
  38955. for iNdEx < l {
  38956. preIndex := iNdEx
  38957. var wire uint64
  38958. for shift := uint(0); ; shift += 7 {
  38959. if shift >= 64 {
  38960. return ErrIntOverflowApi
  38961. }
  38962. if iNdEx >= l {
  38963. return io.ErrUnexpectedEOF
  38964. }
  38965. b := dAtA[iNdEx]
  38966. iNdEx++
  38967. wire |= uint64(b&0x7F) << shift
  38968. if b < 0x80 {
  38969. break
  38970. }
  38971. }
  38972. fieldNum := int32(wire >> 3)
  38973. wireType := int(wire & 0x7)
  38974. if wireType == 4 {
  38975. return fmt.Errorf("proto: Image: wiretype end group for non-group")
  38976. }
  38977. if fieldNum <= 0 {
  38978. return fmt.Errorf("proto: Image: illegal tag %d (wire type %d)", fieldNum, wire)
  38979. }
  38980. switch fieldNum {
  38981. case 1:
  38982. if wireType != 2 {
  38983. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  38984. }
  38985. var stringLen uint64
  38986. for shift := uint(0); ; shift += 7 {
  38987. if shift >= 64 {
  38988. return ErrIntOverflowApi
  38989. }
  38990. if iNdEx >= l {
  38991. return io.ErrUnexpectedEOF
  38992. }
  38993. b := dAtA[iNdEx]
  38994. iNdEx++
  38995. stringLen |= uint64(b&0x7F) << shift
  38996. if b < 0x80 {
  38997. break
  38998. }
  38999. }
  39000. intStringLen := int(stringLen)
  39001. if intStringLen < 0 {
  39002. return ErrInvalidLengthApi
  39003. }
  39004. postIndex := iNdEx + intStringLen
  39005. if postIndex < 0 {
  39006. return ErrInvalidLengthApi
  39007. }
  39008. if postIndex > l {
  39009. return io.ErrUnexpectedEOF
  39010. }
  39011. m.Id = string(dAtA[iNdEx:postIndex])
  39012. iNdEx = postIndex
  39013. case 2:
  39014. if wireType != 2 {
  39015. return fmt.Errorf("proto: wrong wireType = %d for field RepoTags", wireType)
  39016. }
  39017. var stringLen uint64
  39018. for shift := uint(0); ; shift += 7 {
  39019. if shift >= 64 {
  39020. return ErrIntOverflowApi
  39021. }
  39022. if iNdEx >= l {
  39023. return io.ErrUnexpectedEOF
  39024. }
  39025. b := dAtA[iNdEx]
  39026. iNdEx++
  39027. stringLen |= uint64(b&0x7F) << shift
  39028. if b < 0x80 {
  39029. break
  39030. }
  39031. }
  39032. intStringLen := int(stringLen)
  39033. if intStringLen < 0 {
  39034. return ErrInvalidLengthApi
  39035. }
  39036. postIndex := iNdEx + intStringLen
  39037. if postIndex < 0 {
  39038. return ErrInvalidLengthApi
  39039. }
  39040. if postIndex > l {
  39041. return io.ErrUnexpectedEOF
  39042. }
  39043. m.RepoTags = append(m.RepoTags, string(dAtA[iNdEx:postIndex]))
  39044. iNdEx = postIndex
  39045. case 3:
  39046. if wireType != 2 {
  39047. return fmt.Errorf("proto: wrong wireType = %d for field RepoDigests", wireType)
  39048. }
  39049. var stringLen uint64
  39050. for shift := uint(0); ; shift += 7 {
  39051. if shift >= 64 {
  39052. return ErrIntOverflowApi
  39053. }
  39054. if iNdEx >= l {
  39055. return io.ErrUnexpectedEOF
  39056. }
  39057. b := dAtA[iNdEx]
  39058. iNdEx++
  39059. stringLen |= uint64(b&0x7F) << shift
  39060. if b < 0x80 {
  39061. break
  39062. }
  39063. }
  39064. intStringLen := int(stringLen)
  39065. if intStringLen < 0 {
  39066. return ErrInvalidLengthApi
  39067. }
  39068. postIndex := iNdEx + intStringLen
  39069. if postIndex < 0 {
  39070. return ErrInvalidLengthApi
  39071. }
  39072. if postIndex > l {
  39073. return io.ErrUnexpectedEOF
  39074. }
  39075. m.RepoDigests = append(m.RepoDigests, string(dAtA[iNdEx:postIndex]))
  39076. iNdEx = postIndex
  39077. case 4:
  39078. if wireType != 0 {
  39079. return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
  39080. }
  39081. m.Size_ = 0
  39082. for shift := uint(0); ; shift += 7 {
  39083. if shift >= 64 {
  39084. return ErrIntOverflowApi
  39085. }
  39086. if iNdEx >= l {
  39087. return io.ErrUnexpectedEOF
  39088. }
  39089. b := dAtA[iNdEx]
  39090. iNdEx++
  39091. m.Size_ |= uint64(b&0x7F) << shift
  39092. if b < 0x80 {
  39093. break
  39094. }
  39095. }
  39096. case 5:
  39097. if wireType != 2 {
  39098. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  39099. }
  39100. var msglen int
  39101. for shift := uint(0); ; shift += 7 {
  39102. if shift >= 64 {
  39103. return ErrIntOverflowApi
  39104. }
  39105. if iNdEx >= l {
  39106. return io.ErrUnexpectedEOF
  39107. }
  39108. b := dAtA[iNdEx]
  39109. iNdEx++
  39110. msglen |= int(b&0x7F) << shift
  39111. if b < 0x80 {
  39112. break
  39113. }
  39114. }
  39115. if msglen < 0 {
  39116. return ErrInvalidLengthApi
  39117. }
  39118. postIndex := iNdEx + msglen
  39119. if postIndex < 0 {
  39120. return ErrInvalidLengthApi
  39121. }
  39122. if postIndex > l {
  39123. return io.ErrUnexpectedEOF
  39124. }
  39125. if m.Uid == nil {
  39126. m.Uid = &Int64Value{}
  39127. }
  39128. if err := m.Uid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  39129. return err
  39130. }
  39131. iNdEx = postIndex
  39132. case 6:
  39133. if wireType != 2 {
  39134. return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
  39135. }
  39136. var stringLen uint64
  39137. for shift := uint(0); ; shift += 7 {
  39138. if shift >= 64 {
  39139. return ErrIntOverflowApi
  39140. }
  39141. if iNdEx >= l {
  39142. return io.ErrUnexpectedEOF
  39143. }
  39144. b := dAtA[iNdEx]
  39145. iNdEx++
  39146. stringLen |= uint64(b&0x7F) << shift
  39147. if b < 0x80 {
  39148. break
  39149. }
  39150. }
  39151. intStringLen := int(stringLen)
  39152. if intStringLen < 0 {
  39153. return ErrInvalidLengthApi
  39154. }
  39155. postIndex := iNdEx + intStringLen
  39156. if postIndex < 0 {
  39157. return ErrInvalidLengthApi
  39158. }
  39159. if postIndex > l {
  39160. return io.ErrUnexpectedEOF
  39161. }
  39162. m.Username = string(dAtA[iNdEx:postIndex])
  39163. iNdEx = postIndex
  39164. case 7:
  39165. if wireType != 2 {
  39166. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  39167. }
  39168. var msglen int
  39169. for shift := uint(0); ; shift += 7 {
  39170. if shift >= 64 {
  39171. return ErrIntOverflowApi
  39172. }
  39173. if iNdEx >= l {
  39174. return io.ErrUnexpectedEOF
  39175. }
  39176. b := dAtA[iNdEx]
  39177. iNdEx++
  39178. msglen |= int(b&0x7F) << shift
  39179. if b < 0x80 {
  39180. break
  39181. }
  39182. }
  39183. if msglen < 0 {
  39184. return ErrInvalidLengthApi
  39185. }
  39186. postIndex := iNdEx + msglen
  39187. if postIndex < 0 {
  39188. return ErrInvalidLengthApi
  39189. }
  39190. if postIndex > l {
  39191. return io.ErrUnexpectedEOF
  39192. }
  39193. if m.Spec == nil {
  39194. m.Spec = &ImageSpec{}
  39195. }
  39196. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  39197. return err
  39198. }
  39199. iNdEx = postIndex
  39200. case 8:
  39201. if wireType != 0 {
  39202. return fmt.Errorf("proto: wrong wireType = %d for field Pinned", wireType)
  39203. }
  39204. var v int
  39205. for shift := uint(0); ; shift += 7 {
  39206. if shift >= 64 {
  39207. return ErrIntOverflowApi
  39208. }
  39209. if iNdEx >= l {
  39210. return io.ErrUnexpectedEOF
  39211. }
  39212. b := dAtA[iNdEx]
  39213. iNdEx++
  39214. v |= int(b&0x7F) << shift
  39215. if b < 0x80 {
  39216. break
  39217. }
  39218. }
  39219. m.Pinned = bool(v != 0)
  39220. default:
  39221. iNdEx = preIndex
  39222. skippy, err := skipApi(dAtA[iNdEx:])
  39223. if err != nil {
  39224. return err
  39225. }
  39226. if (skippy < 0) || (iNdEx+skippy) < 0 {
  39227. return ErrInvalidLengthApi
  39228. }
  39229. if (iNdEx + skippy) > l {
  39230. return io.ErrUnexpectedEOF
  39231. }
  39232. iNdEx += skippy
  39233. }
  39234. }
  39235. if iNdEx > l {
  39236. return io.ErrUnexpectedEOF
  39237. }
  39238. return nil
  39239. }
  39240. func (m *ListImagesResponse) Unmarshal(dAtA []byte) error {
  39241. l := len(dAtA)
  39242. iNdEx := 0
  39243. for iNdEx < l {
  39244. preIndex := iNdEx
  39245. var wire uint64
  39246. for shift := uint(0); ; shift += 7 {
  39247. if shift >= 64 {
  39248. return ErrIntOverflowApi
  39249. }
  39250. if iNdEx >= l {
  39251. return io.ErrUnexpectedEOF
  39252. }
  39253. b := dAtA[iNdEx]
  39254. iNdEx++
  39255. wire |= uint64(b&0x7F) << shift
  39256. if b < 0x80 {
  39257. break
  39258. }
  39259. }
  39260. fieldNum := int32(wire >> 3)
  39261. wireType := int(wire & 0x7)
  39262. if wireType == 4 {
  39263. return fmt.Errorf("proto: ListImagesResponse: wiretype end group for non-group")
  39264. }
  39265. if fieldNum <= 0 {
  39266. return fmt.Errorf("proto: ListImagesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  39267. }
  39268. switch fieldNum {
  39269. case 1:
  39270. if wireType != 2 {
  39271. return fmt.Errorf("proto: wrong wireType = %d for field Images", wireType)
  39272. }
  39273. var msglen int
  39274. for shift := uint(0); ; shift += 7 {
  39275. if shift >= 64 {
  39276. return ErrIntOverflowApi
  39277. }
  39278. if iNdEx >= l {
  39279. return io.ErrUnexpectedEOF
  39280. }
  39281. b := dAtA[iNdEx]
  39282. iNdEx++
  39283. msglen |= int(b&0x7F) << shift
  39284. if b < 0x80 {
  39285. break
  39286. }
  39287. }
  39288. if msglen < 0 {
  39289. return ErrInvalidLengthApi
  39290. }
  39291. postIndex := iNdEx + msglen
  39292. if postIndex < 0 {
  39293. return ErrInvalidLengthApi
  39294. }
  39295. if postIndex > l {
  39296. return io.ErrUnexpectedEOF
  39297. }
  39298. m.Images = append(m.Images, &Image{})
  39299. if err := m.Images[len(m.Images)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  39300. return err
  39301. }
  39302. iNdEx = postIndex
  39303. default:
  39304. iNdEx = preIndex
  39305. skippy, err := skipApi(dAtA[iNdEx:])
  39306. if err != nil {
  39307. return err
  39308. }
  39309. if (skippy < 0) || (iNdEx+skippy) < 0 {
  39310. return ErrInvalidLengthApi
  39311. }
  39312. if (iNdEx + skippy) > l {
  39313. return io.ErrUnexpectedEOF
  39314. }
  39315. iNdEx += skippy
  39316. }
  39317. }
  39318. if iNdEx > l {
  39319. return io.ErrUnexpectedEOF
  39320. }
  39321. return nil
  39322. }
  39323. func (m *ImageStatusRequest) Unmarshal(dAtA []byte) error {
  39324. l := len(dAtA)
  39325. iNdEx := 0
  39326. for iNdEx < l {
  39327. preIndex := iNdEx
  39328. var wire uint64
  39329. for shift := uint(0); ; shift += 7 {
  39330. if shift >= 64 {
  39331. return ErrIntOverflowApi
  39332. }
  39333. if iNdEx >= l {
  39334. return io.ErrUnexpectedEOF
  39335. }
  39336. b := dAtA[iNdEx]
  39337. iNdEx++
  39338. wire |= uint64(b&0x7F) << shift
  39339. if b < 0x80 {
  39340. break
  39341. }
  39342. }
  39343. fieldNum := int32(wire >> 3)
  39344. wireType := int(wire & 0x7)
  39345. if wireType == 4 {
  39346. return fmt.Errorf("proto: ImageStatusRequest: wiretype end group for non-group")
  39347. }
  39348. if fieldNum <= 0 {
  39349. return fmt.Errorf("proto: ImageStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  39350. }
  39351. switch fieldNum {
  39352. case 1:
  39353. if wireType != 2 {
  39354. return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
  39355. }
  39356. var msglen int
  39357. for shift := uint(0); ; shift += 7 {
  39358. if shift >= 64 {
  39359. return ErrIntOverflowApi
  39360. }
  39361. if iNdEx >= l {
  39362. return io.ErrUnexpectedEOF
  39363. }
  39364. b := dAtA[iNdEx]
  39365. iNdEx++
  39366. msglen |= int(b&0x7F) << shift
  39367. if b < 0x80 {
  39368. break
  39369. }
  39370. }
  39371. if msglen < 0 {
  39372. return ErrInvalidLengthApi
  39373. }
  39374. postIndex := iNdEx + msglen
  39375. if postIndex < 0 {
  39376. return ErrInvalidLengthApi
  39377. }
  39378. if postIndex > l {
  39379. return io.ErrUnexpectedEOF
  39380. }
  39381. if m.Image == nil {
  39382. m.Image = &ImageSpec{}
  39383. }
  39384. if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  39385. return err
  39386. }
  39387. iNdEx = postIndex
  39388. case 2:
  39389. if wireType != 0 {
  39390. return fmt.Errorf("proto: wrong wireType = %d for field Verbose", wireType)
  39391. }
  39392. var v int
  39393. for shift := uint(0); ; shift += 7 {
  39394. if shift >= 64 {
  39395. return ErrIntOverflowApi
  39396. }
  39397. if iNdEx >= l {
  39398. return io.ErrUnexpectedEOF
  39399. }
  39400. b := dAtA[iNdEx]
  39401. iNdEx++
  39402. v |= int(b&0x7F) << shift
  39403. if b < 0x80 {
  39404. break
  39405. }
  39406. }
  39407. m.Verbose = bool(v != 0)
  39408. default:
  39409. iNdEx = preIndex
  39410. skippy, err := skipApi(dAtA[iNdEx:])
  39411. if err != nil {
  39412. return err
  39413. }
  39414. if (skippy < 0) || (iNdEx+skippy) < 0 {
  39415. return ErrInvalidLengthApi
  39416. }
  39417. if (iNdEx + skippy) > l {
  39418. return io.ErrUnexpectedEOF
  39419. }
  39420. iNdEx += skippy
  39421. }
  39422. }
  39423. if iNdEx > l {
  39424. return io.ErrUnexpectedEOF
  39425. }
  39426. return nil
  39427. }
  39428. func (m *ImageStatusResponse) Unmarshal(dAtA []byte) error {
  39429. l := len(dAtA)
  39430. iNdEx := 0
  39431. for iNdEx < l {
  39432. preIndex := iNdEx
  39433. var wire uint64
  39434. for shift := uint(0); ; shift += 7 {
  39435. if shift >= 64 {
  39436. return ErrIntOverflowApi
  39437. }
  39438. if iNdEx >= l {
  39439. return io.ErrUnexpectedEOF
  39440. }
  39441. b := dAtA[iNdEx]
  39442. iNdEx++
  39443. wire |= uint64(b&0x7F) << shift
  39444. if b < 0x80 {
  39445. break
  39446. }
  39447. }
  39448. fieldNum := int32(wire >> 3)
  39449. wireType := int(wire & 0x7)
  39450. if wireType == 4 {
  39451. return fmt.Errorf("proto: ImageStatusResponse: wiretype end group for non-group")
  39452. }
  39453. if fieldNum <= 0 {
  39454. return fmt.Errorf("proto: ImageStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  39455. }
  39456. switch fieldNum {
  39457. case 1:
  39458. if wireType != 2 {
  39459. return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
  39460. }
  39461. var msglen int
  39462. for shift := uint(0); ; shift += 7 {
  39463. if shift >= 64 {
  39464. return ErrIntOverflowApi
  39465. }
  39466. if iNdEx >= l {
  39467. return io.ErrUnexpectedEOF
  39468. }
  39469. b := dAtA[iNdEx]
  39470. iNdEx++
  39471. msglen |= int(b&0x7F) << shift
  39472. if b < 0x80 {
  39473. break
  39474. }
  39475. }
  39476. if msglen < 0 {
  39477. return ErrInvalidLengthApi
  39478. }
  39479. postIndex := iNdEx + msglen
  39480. if postIndex < 0 {
  39481. return ErrInvalidLengthApi
  39482. }
  39483. if postIndex > l {
  39484. return io.ErrUnexpectedEOF
  39485. }
  39486. if m.Image == nil {
  39487. m.Image = &Image{}
  39488. }
  39489. if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  39490. return err
  39491. }
  39492. iNdEx = postIndex
  39493. case 2:
  39494. if wireType != 2 {
  39495. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  39496. }
  39497. var msglen int
  39498. for shift := uint(0); ; shift += 7 {
  39499. if shift >= 64 {
  39500. return ErrIntOverflowApi
  39501. }
  39502. if iNdEx >= l {
  39503. return io.ErrUnexpectedEOF
  39504. }
  39505. b := dAtA[iNdEx]
  39506. iNdEx++
  39507. msglen |= int(b&0x7F) << shift
  39508. if b < 0x80 {
  39509. break
  39510. }
  39511. }
  39512. if msglen < 0 {
  39513. return ErrInvalidLengthApi
  39514. }
  39515. postIndex := iNdEx + msglen
  39516. if postIndex < 0 {
  39517. return ErrInvalidLengthApi
  39518. }
  39519. if postIndex > l {
  39520. return io.ErrUnexpectedEOF
  39521. }
  39522. if m.Info == nil {
  39523. m.Info = make(map[string]string)
  39524. }
  39525. var mapkey string
  39526. var mapvalue string
  39527. for iNdEx < postIndex {
  39528. entryPreIndex := iNdEx
  39529. var wire uint64
  39530. for shift := uint(0); ; shift += 7 {
  39531. if shift >= 64 {
  39532. return ErrIntOverflowApi
  39533. }
  39534. if iNdEx >= l {
  39535. return io.ErrUnexpectedEOF
  39536. }
  39537. b := dAtA[iNdEx]
  39538. iNdEx++
  39539. wire |= uint64(b&0x7F) << shift
  39540. if b < 0x80 {
  39541. break
  39542. }
  39543. }
  39544. fieldNum := int32(wire >> 3)
  39545. if fieldNum == 1 {
  39546. var stringLenmapkey uint64
  39547. for shift := uint(0); ; shift += 7 {
  39548. if shift >= 64 {
  39549. return ErrIntOverflowApi
  39550. }
  39551. if iNdEx >= l {
  39552. return io.ErrUnexpectedEOF
  39553. }
  39554. b := dAtA[iNdEx]
  39555. iNdEx++
  39556. stringLenmapkey |= uint64(b&0x7F) << shift
  39557. if b < 0x80 {
  39558. break
  39559. }
  39560. }
  39561. intStringLenmapkey := int(stringLenmapkey)
  39562. if intStringLenmapkey < 0 {
  39563. return ErrInvalidLengthApi
  39564. }
  39565. postStringIndexmapkey := iNdEx + intStringLenmapkey
  39566. if postStringIndexmapkey < 0 {
  39567. return ErrInvalidLengthApi
  39568. }
  39569. if postStringIndexmapkey > l {
  39570. return io.ErrUnexpectedEOF
  39571. }
  39572. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  39573. iNdEx = postStringIndexmapkey
  39574. } else if fieldNum == 2 {
  39575. var stringLenmapvalue uint64
  39576. for shift := uint(0); ; shift += 7 {
  39577. if shift >= 64 {
  39578. return ErrIntOverflowApi
  39579. }
  39580. if iNdEx >= l {
  39581. return io.ErrUnexpectedEOF
  39582. }
  39583. b := dAtA[iNdEx]
  39584. iNdEx++
  39585. stringLenmapvalue |= uint64(b&0x7F) << shift
  39586. if b < 0x80 {
  39587. break
  39588. }
  39589. }
  39590. intStringLenmapvalue := int(stringLenmapvalue)
  39591. if intStringLenmapvalue < 0 {
  39592. return ErrInvalidLengthApi
  39593. }
  39594. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  39595. if postStringIndexmapvalue < 0 {
  39596. return ErrInvalidLengthApi
  39597. }
  39598. if postStringIndexmapvalue > l {
  39599. return io.ErrUnexpectedEOF
  39600. }
  39601. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  39602. iNdEx = postStringIndexmapvalue
  39603. } else {
  39604. iNdEx = entryPreIndex
  39605. skippy, err := skipApi(dAtA[iNdEx:])
  39606. if err != nil {
  39607. return err
  39608. }
  39609. if (skippy < 0) || (iNdEx+skippy) < 0 {
  39610. return ErrInvalidLengthApi
  39611. }
  39612. if (iNdEx + skippy) > postIndex {
  39613. return io.ErrUnexpectedEOF
  39614. }
  39615. iNdEx += skippy
  39616. }
  39617. }
  39618. m.Info[mapkey] = mapvalue
  39619. iNdEx = postIndex
  39620. default:
  39621. iNdEx = preIndex
  39622. skippy, err := skipApi(dAtA[iNdEx:])
  39623. if err != nil {
  39624. return err
  39625. }
  39626. if (skippy < 0) || (iNdEx+skippy) < 0 {
  39627. return ErrInvalidLengthApi
  39628. }
  39629. if (iNdEx + skippy) > l {
  39630. return io.ErrUnexpectedEOF
  39631. }
  39632. iNdEx += skippy
  39633. }
  39634. }
  39635. if iNdEx > l {
  39636. return io.ErrUnexpectedEOF
  39637. }
  39638. return nil
  39639. }
  39640. func (m *AuthConfig) Unmarshal(dAtA []byte) error {
  39641. l := len(dAtA)
  39642. iNdEx := 0
  39643. for iNdEx < l {
  39644. preIndex := iNdEx
  39645. var wire uint64
  39646. for shift := uint(0); ; shift += 7 {
  39647. if shift >= 64 {
  39648. return ErrIntOverflowApi
  39649. }
  39650. if iNdEx >= l {
  39651. return io.ErrUnexpectedEOF
  39652. }
  39653. b := dAtA[iNdEx]
  39654. iNdEx++
  39655. wire |= uint64(b&0x7F) << shift
  39656. if b < 0x80 {
  39657. break
  39658. }
  39659. }
  39660. fieldNum := int32(wire >> 3)
  39661. wireType := int(wire & 0x7)
  39662. if wireType == 4 {
  39663. return fmt.Errorf("proto: AuthConfig: wiretype end group for non-group")
  39664. }
  39665. if fieldNum <= 0 {
  39666. return fmt.Errorf("proto: AuthConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  39667. }
  39668. switch fieldNum {
  39669. case 1:
  39670. if wireType != 2 {
  39671. return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
  39672. }
  39673. var stringLen uint64
  39674. for shift := uint(0); ; shift += 7 {
  39675. if shift >= 64 {
  39676. return ErrIntOverflowApi
  39677. }
  39678. if iNdEx >= l {
  39679. return io.ErrUnexpectedEOF
  39680. }
  39681. b := dAtA[iNdEx]
  39682. iNdEx++
  39683. stringLen |= uint64(b&0x7F) << shift
  39684. if b < 0x80 {
  39685. break
  39686. }
  39687. }
  39688. intStringLen := int(stringLen)
  39689. if intStringLen < 0 {
  39690. return ErrInvalidLengthApi
  39691. }
  39692. postIndex := iNdEx + intStringLen
  39693. if postIndex < 0 {
  39694. return ErrInvalidLengthApi
  39695. }
  39696. if postIndex > l {
  39697. return io.ErrUnexpectedEOF
  39698. }
  39699. m.Username = string(dAtA[iNdEx:postIndex])
  39700. iNdEx = postIndex
  39701. case 2:
  39702. if wireType != 2 {
  39703. return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
  39704. }
  39705. var stringLen uint64
  39706. for shift := uint(0); ; shift += 7 {
  39707. if shift >= 64 {
  39708. return ErrIntOverflowApi
  39709. }
  39710. if iNdEx >= l {
  39711. return io.ErrUnexpectedEOF
  39712. }
  39713. b := dAtA[iNdEx]
  39714. iNdEx++
  39715. stringLen |= uint64(b&0x7F) << shift
  39716. if b < 0x80 {
  39717. break
  39718. }
  39719. }
  39720. intStringLen := int(stringLen)
  39721. if intStringLen < 0 {
  39722. return ErrInvalidLengthApi
  39723. }
  39724. postIndex := iNdEx + intStringLen
  39725. if postIndex < 0 {
  39726. return ErrInvalidLengthApi
  39727. }
  39728. if postIndex > l {
  39729. return io.ErrUnexpectedEOF
  39730. }
  39731. m.Password = string(dAtA[iNdEx:postIndex])
  39732. iNdEx = postIndex
  39733. case 3:
  39734. if wireType != 2 {
  39735. return fmt.Errorf("proto: wrong wireType = %d for field Auth", wireType)
  39736. }
  39737. var stringLen uint64
  39738. for shift := uint(0); ; shift += 7 {
  39739. if shift >= 64 {
  39740. return ErrIntOverflowApi
  39741. }
  39742. if iNdEx >= l {
  39743. return io.ErrUnexpectedEOF
  39744. }
  39745. b := dAtA[iNdEx]
  39746. iNdEx++
  39747. stringLen |= uint64(b&0x7F) << shift
  39748. if b < 0x80 {
  39749. break
  39750. }
  39751. }
  39752. intStringLen := int(stringLen)
  39753. if intStringLen < 0 {
  39754. return ErrInvalidLengthApi
  39755. }
  39756. postIndex := iNdEx + intStringLen
  39757. if postIndex < 0 {
  39758. return ErrInvalidLengthApi
  39759. }
  39760. if postIndex > l {
  39761. return io.ErrUnexpectedEOF
  39762. }
  39763. m.Auth = string(dAtA[iNdEx:postIndex])
  39764. iNdEx = postIndex
  39765. case 4:
  39766. if wireType != 2 {
  39767. return fmt.Errorf("proto: wrong wireType = %d for field ServerAddress", wireType)
  39768. }
  39769. var stringLen uint64
  39770. for shift := uint(0); ; shift += 7 {
  39771. if shift >= 64 {
  39772. return ErrIntOverflowApi
  39773. }
  39774. if iNdEx >= l {
  39775. return io.ErrUnexpectedEOF
  39776. }
  39777. b := dAtA[iNdEx]
  39778. iNdEx++
  39779. stringLen |= uint64(b&0x7F) << shift
  39780. if b < 0x80 {
  39781. break
  39782. }
  39783. }
  39784. intStringLen := int(stringLen)
  39785. if intStringLen < 0 {
  39786. return ErrInvalidLengthApi
  39787. }
  39788. postIndex := iNdEx + intStringLen
  39789. if postIndex < 0 {
  39790. return ErrInvalidLengthApi
  39791. }
  39792. if postIndex > l {
  39793. return io.ErrUnexpectedEOF
  39794. }
  39795. m.ServerAddress = string(dAtA[iNdEx:postIndex])
  39796. iNdEx = postIndex
  39797. case 5:
  39798. if wireType != 2 {
  39799. return fmt.Errorf("proto: wrong wireType = %d for field IdentityToken", wireType)
  39800. }
  39801. var stringLen uint64
  39802. for shift := uint(0); ; shift += 7 {
  39803. if shift >= 64 {
  39804. return ErrIntOverflowApi
  39805. }
  39806. if iNdEx >= l {
  39807. return io.ErrUnexpectedEOF
  39808. }
  39809. b := dAtA[iNdEx]
  39810. iNdEx++
  39811. stringLen |= uint64(b&0x7F) << shift
  39812. if b < 0x80 {
  39813. break
  39814. }
  39815. }
  39816. intStringLen := int(stringLen)
  39817. if intStringLen < 0 {
  39818. return ErrInvalidLengthApi
  39819. }
  39820. postIndex := iNdEx + intStringLen
  39821. if postIndex < 0 {
  39822. return ErrInvalidLengthApi
  39823. }
  39824. if postIndex > l {
  39825. return io.ErrUnexpectedEOF
  39826. }
  39827. m.IdentityToken = string(dAtA[iNdEx:postIndex])
  39828. iNdEx = postIndex
  39829. case 6:
  39830. if wireType != 2 {
  39831. return fmt.Errorf("proto: wrong wireType = %d for field RegistryToken", wireType)
  39832. }
  39833. var stringLen uint64
  39834. for shift := uint(0); ; shift += 7 {
  39835. if shift >= 64 {
  39836. return ErrIntOverflowApi
  39837. }
  39838. if iNdEx >= l {
  39839. return io.ErrUnexpectedEOF
  39840. }
  39841. b := dAtA[iNdEx]
  39842. iNdEx++
  39843. stringLen |= uint64(b&0x7F) << shift
  39844. if b < 0x80 {
  39845. break
  39846. }
  39847. }
  39848. intStringLen := int(stringLen)
  39849. if intStringLen < 0 {
  39850. return ErrInvalidLengthApi
  39851. }
  39852. postIndex := iNdEx + intStringLen
  39853. if postIndex < 0 {
  39854. return ErrInvalidLengthApi
  39855. }
  39856. if postIndex > l {
  39857. return io.ErrUnexpectedEOF
  39858. }
  39859. m.RegistryToken = string(dAtA[iNdEx:postIndex])
  39860. iNdEx = postIndex
  39861. default:
  39862. iNdEx = preIndex
  39863. skippy, err := skipApi(dAtA[iNdEx:])
  39864. if err != nil {
  39865. return err
  39866. }
  39867. if (skippy < 0) || (iNdEx+skippy) < 0 {
  39868. return ErrInvalidLengthApi
  39869. }
  39870. if (iNdEx + skippy) > l {
  39871. return io.ErrUnexpectedEOF
  39872. }
  39873. iNdEx += skippy
  39874. }
  39875. }
  39876. if iNdEx > l {
  39877. return io.ErrUnexpectedEOF
  39878. }
  39879. return nil
  39880. }
  39881. func (m *PullImageRequest) Unmarshal(dAtA []byte) error {
  39882. l := len(dAtA)
  39883. iNdEx := 0
  39884. for iNdEx < l {
  39885. preIndex := iNdEx
  39886. var wire uint64
  39887. for shift := uint(0); ; shift += 7 {
  39888. if shift >= 64 {
  39889. return ErrIntOverflowApi
  39890. }
  39891. if iNdEx >= l {
  39892. return io.ErrUnexpectedEOF
  39893. }
  39894. b := dAtA[iNdEx]
  39895. iNdEx++
  39896. wire |= uint64(b&0x7F) << shift
  39897. if b < 0x80 {
  39898. break
  39899. }
  39900. }
  39901. fieldNum := int32(wire >> 3)
  39902. wireType := int(wire & 0x7)
  39903. if wireType == 4 {
  39904. return fmt.Errorf("proto: PullImageRequest: wiretype end group for non-group")
  39905. }
  39906. if fieldNum <= 0 {
  39907. return fmt.Errorf("proto: PullImageRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  39908. }
  39909. switch fieldNum {
  39910. case 1:
  39911. if wireType != 2 {
  39912. return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
  39913. }
  39914. var msglen int
  39915. for shift := uint(0); ; shift += 7 {
  39916. if shift >= 64 {
  39917. return ErrIntOverflowApi
  39918. }
  39919. if iNdEx >= l {
  39920. return io.ErrUnexpectedEOF
  39921. }
  39922. b := dAtA[iNdEx]
  39923. iNdEx++
  39924. msglen |= int(b&0x7F) << shift
  39925. if b < 0x80 {
  39926. break
  39927. }
  39928. }
  39929. if msglen < 0 {
  39930. return ErrInvalidLengthApi
  39931. }
  39932. postIndex := iNdEx + msglen
  39933. if postIndex < 0 {
  39934. return ErrInvalidLengthApi
  39935. }
  39936. if postIndex > l {
  39937. return io.ErrUnexpectedEOF
  39938. }
  39939. if m.Image == nil {
  39940. m.Image = &ImageSpec{}
  39941. }
  39942. if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  39943. return err
  39944. }
  39945. iNdEx = postIndex
  39946. case 2:
  39947. if wireType != 2 {
  39948. return fmt.Errorf("proto: wrong wireType = %d for field Auth", wireType)
  39949. }
  39950. var msglen int
  39951. for shift := uint(0); ; shift += 7 {
  39952. if shift >= 64 {
  39953. return ErrIntOverflowApi
  39954. }
  39955. if iNdEx >= l {
  39956. return io.ErrUnexpectedEOF
  39957. }
  39958. b := dAtA[iNdEx]
  39959. iNdEx++
  39960. msglen |= int(b&0x7F) << shift
  39961. if b < 0x80 {
  39962. break
  39963. }
  39964. }
  39965. if msglen < 0 {
  39966. return ErrInvalidLengthApi
  39967. }
  39968. postIndex := iNdEx + msglen
  39969. if postIndex < 0 {
  39970. return ErrInvalidLengthApi
  39971. }
  39972. if postIndex > l {
  39973. return io.ErrUnexpectedEOF
  39974. }
  39975. if m.Auth == nil {
  39976. m.Auth = &AuthConfig{}
  39977. }
  39978. if err := m.Auth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  39979. return err
  39980. }
  39981. iNdEx = postIndex
  39982. case 3:
  39983. if wireType != 2 {
  39984. return fmt.Errorf("proto: wrong wireType = %d for field SandboxConfig", wireType)
  39985. }
  39986. var msglen int
  39987. for shift := uint(0); ; shift += 7 {
  39988. if shift >= 64 {
  39989. return ErrIntOverflowApi
  39990. }
  39991. if iNdEx >= l {
  39992. return io.ErrUnexpectedEOF
  39993. }
  39994. b := dAtA[iNdEx]
  39995. iNdEx++
  39996. msglen |= int(b&0x7F) << shift
  39997. if b < 0x80 {
  39998. break
  39999. }
  40000. }
  40001. if msglen < 0 {
  40002. return ErrInvalidLengthApi
  40003. }
  40004. postIndex := iNdEx + msglen
  40005. if postIndex < 0 {
  40006. return ErrInvalidLengthApi
  40007. }
  40008. if postIndex > l {
  40009. return io.ErrUnexpectedEOF
  40010. }
  40011. if m.SandboxConfig == nil {
  40012. m.SandboxConfig = &PodSandboxConfig{}
  40013. }
  40014. if err := m.SandboxConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  40015. return err
  40016. }
  40017. iNdEx = postIndex
  40018. default:
  40019. iNdEx = preIndex
  40020. skippy, err := skipApi(dAtA[iNdEx:])
  40021. if err != nil {
  40022. return err
  40023. }
  40024. if (skippy < 0) || (iNdEx+skippy) < 0 {
  40025. return ErrInvalidLengthApi
  40026. }
  40027. if (iNdEx + skippy) > l {
  40028. return io.ErrUnexpectedEOF
  40029. }
  40030. iNdEx += skippy
  40031. }
  40032. }
  40033. if iNdEx > l {
  40034. return io.ErrUnexpectedEOF
  40035. }
  40036. return nil
  40037. }
  40038. func (m *PullImageResponse) Unmarshal(dAtA []byte) error {
  40039. l := len(dAtA)
  40040. iNdEx := 0
  40041. for iNdEx < l {
  40042. preIndex := iNdEx
  40043. var wire uint64
  40044. for shift := uint(0); ; shift += 7 {
  40045. if shift >= 64 {
  40046. return ErrIntOverflowApi
  40047. }
  40048. if iNdEx >= l {
  40049. return io.ErrUnexpectedEOF
  40050. }
  40051. b := dAtA[iNdEx]
  40052. iNdEx++
  40053. wire |= uint64(b&0x7F) << shift
  40054. if b < 0x80 {
  40055. break
  40056. }
  40057. }
  40058. fieldNum := int32(wire >> 3)
  40059. wireType := int(wire & 0x7)
  40060. if wireType == 4 {
  40061. return fmt.Errorf("proto: PullImageResponse: wiretype end group for non-group")
  40062. }
  40063. if fieldNum <= 0 {
  40064. return fmt.Errorf("proto: PullImageResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  40065. }
  40066. switch fieldNum {
  40067. case 1:
  40068. if wireType != 2 {
  40069. return fmt.Errorf("proto: wrong wireType = %d for field ImageRef", wireType)
  40070. }
  40071. var stringLen uint64
  40072. for shift := uint(0); ; shift += 7 {
  40073. if shift >= 64 {
  40074. return ErrIntOverflowApi
  40075. }
  40076. if iNdEx >= l {
  40077. return io.ErrUnexpectedEOF
  40078. }
  40079. b := dAtA[iNdEx]
  40080. iNdEx++
  40081. stringLen |= uint64(b&0x7F) << shift
  40082. if b < 0x80 {
  40083. break
  40084. }
  40085. }
  40086. intStringLen := int(stringLen)
  40087. if intStringLen < 0 {
  40088. return ErrInvalidLengthApi
  40089. }
  40090. postIndex := iNdEx + intStringLen
  40091. if postIndex < 0 {
  40092. return ErrInvalidLengthApi
  40093. }
  40094. if postIndex > l {
  40095. return io.ErrUnexpectedEOF
  40096. }
  40097. m.ImageRef = string(dAtA[iNdEx:postIndex])
  40098. iNdEx = postIndex
  40099. default:
  40100. iNdEx = preIndex
  40101. skippy, err := skipApi(dAtA[iNdEx:])
  40102. if err != nil {
  40103. return err
  40104. }
  40105. if (skippy < 0) || (iNdEx+skippy) < 0 {
  40106. return ErrInvalidLengthApi
  40107. }
  40108. if (iNdEx + skippy) > l {
  40109. return io.ErrUnexpectedEOF
  40110. }
  40111. iNdEx += skippy
  40112. }
  40113. }
  40114. if iNdEx > l {
  40115. return io.ErrUnexpectedEOF
  40116. }
  40117. return nil
  40118. }
  40119. func (m *RemoveImageRequest) Unmarshal(dAtA []byte) error {
  40120. l := len(dAtA)
  40121. iNdEx := 0
  40122. for iNdEx < l {
  40123. preIndex := iNdEx
  40124. var wire uint64
  40125. for shift := uint(0); ; shift += 7 {
  40126. if shift >= 64 {
  40127. return ErrIntOverflowApi
  40128. }
  40129. if iNdEx >= l {
  40130. return io.ErrUnexpectedEOF
  40131. }
  40132. b := dAtA[iNdEx]
  40133. iNdEx++
  40134. wire |= uint64(b&0x7F) << shift
  40135. if b < 0x80 {
  40136. break
  40137. }
  40138. }
  40139. fieldNum := int32(wire >> 3)
  40140. wireType := int(wire & 0x7)
  40141. if wireType == 4 {
  40142. return fmt.Errorf("proto: RemoveImageRequest: wiretype end group for non-group")
  40143. }
  40144. if fieldNum <= 0 {
  40145. return fmt.Errorf("proto: RemoveImageRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  40146. }
  40147. switch fieldNum {
  40148. case 1:
  40149. if wireType != 2 {
  40150. return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
  40151. }
  40152. var msglen int
  40153. for shift := uint(0); ; shift += 7 {
  40154. if shift >= 64 {
  40155. return ErrIntOverflowApi
  40156. }
  40157. if iNdEx >= l {
  40158. return io.ErrUnexpectedEOF
  40159. }
  40160. b := dAtA[iNdEx]
  40161. iNdEx++
  40162. msglen |= int(b&0x7F) << shift
  40163. if b < 0x80 {
  40164. break
  40165. }
  40166. }
  40167. if msglen < 0 {
  40168. return ErrInvalidLengthApi
  40169. }
  40170. postIndex := iNdEx + msglen
  40171. if postIndex < 0 {
  40172. return ErrInvalidLengthApi
  40173. }
  40174. if postIndex > l {
  40175. return io.ErrUnexpectedEOF
  40176. }
  40177. if m.Image == nil {
  40178. m.Image = &ImageSpec{}
  40179. }
  40180. if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  40181. return err
  40182. }
  40183. iNdEx = postIndex
  40184. default:
  40185. iNdEx = preIndex
  40186. skippy, err := skipApi(dAtA[iNdEx:])
  40187. if err != nil {
  40188. return err
  40189. }
  40190. if (skippy < 0) || (iNdEx+skippy) < 0 {
  40191. return ErrInvalidLengthApi
  40192. }
  40193. if (iNdEx + skippy) > l {
  40194. return io.ErrUnexpectedEOF
  40195. }
  40196. iNdEx += skippy
  40197. }
  40198. }
  40199. if iNdEx > l {
  40200. return io.ErrUnexpectedEOF
  40201. }
  40202. return nil
  40203. }
  40204. func (m *RemoveImageResponse) Unmarshal(dAtA []byte) error {
  40205. l := len(dAtA)
  40206. iNdEx := 0
  40207. for iNdEx < l {
  40208. preIndex := iNdEx
  40209. var wire uint64
  40210. for shift := uint(0); ; shift += 7 {
  40211. if shift >= 64 {
  40212. return ErrIntOverflowApi
  40213. }
  40214. if iNdEx >= l {
  40215. return io.ErrUnexpectedEOF
  40216. }
  40217. b := dAtA[iNdEx]
  40218. iNdEx++
  40219. wire |= uint64(b&0x7F) << shift
  40220. if b < 0x80 {
  40221. break
  40222. }
  40223. }
  40224. fieldNum := int32(wire >> 3)
  40225. wireType := int(wire & 0x7)
  40226. if wireType == 4 {
  40227. return fmt.Errorf("proto: RemoveImageResponse: wiretype end group for non-group")
  40228. }
  40229. if fieldNum <= 0 {
  40230. return fmt.Errorf("proto: RemoveImageResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  40231. }
  40232. switch fieldNum {
  40233. default:
  40234. iNdEx = preIndex
  40235. skippy, err := skipApi(dAtA[iNdEx:])
  40236. if err != nil {
  40237. return err
  40238. }
  40239. if (skippy < 0) || (iNdEx+skippy) < 0 {
  40240. return ErrInvalidLengthApi
  40241. }
  40242. if (iNdEx + skippy) > l {
  40243. return io.ErrUnexpectedEOF
  40244. }
  40245. iNdEx += skippy
  40246. }
  40247. }
  40248. if iNdEx > l {
  40249. return io.ErrUnexpectedEOF
  40250. }
  40251. return nil
  40252. }
  40253. func (m *NetworkConfig) Unmarshal(dAtA []byte) error {
  40254. l := len(dAtA)
  40255. iNdEx := 0
  40256. for iNdEx < l {
  40257. preIndex := iNdEx
  40258. var wire uint64
  40259. for shift := uint(0); ; shift += 7 {
  40260. if shift >= 64 {
  40261. return ErrIntOverflowApi
  40262. }
  40263. if iNdEx >= l {
  40264. return io.ErrUnexpectedEOF
  40265. }
  40266. b := dAtA[iNdEx]
  40267. iNdEx++
  40268. wire |= uint64(b&0x7F) << shift
  40269. if b < 0x80 {
  40270. break
  40271. }
  40272. }
  40273. fieldNum := int32(wire >> 3)
  40274. wireType := int(wire & 0x7)
  40275. if wireType == 4 {
  40276. return fmt.Errorf("proto: NetworkConfig: wiretype end group for non-group")
  40277. }
  40278. if fieldNum <= 0 {
  40279. return fmt.Errorf("proto: NetworkConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  40280. }
  40281. switch fieldNum {
  40282. case 1:
  40283. if wireType != 2 {
  40284. return fmt.Errorf("proto: wrong wireType = %d for field PodCidr", wireType)
  40285. }
  40286. var stringLen uint64
  40287. for shift := uint(0); ; shift += 7 {
  40288. if shift >= 64 {
  40289. return ErrIntOverflowApi
  40290. }
  40291. if iNdEx >= l {
  40292. return io.ErrUnexpectedEOF
  40293. }
  40294. b := dAtA[iNdEx]
  40295. iNdEx++
  40296. stringLen |= uint64(b&0x7F) << shift
  40297. if b < 0x80 {
  40298. break
  40299. }
  40300. }
  40301. intStringLen := int(stringLen)
  40302. if intStringLen < 0 {
  40303. return ErrInvalidLengthApi
  40304. }
  40305. postIndex := iNdEx + intStringLen
  40306. if postIndex < 0 {
  40307. return ErrInvalidLengthApi
  40308. }
  40309. if postIndex > l {
  40310. return io.ErrUnexpectedEOF
  40311. }
  40312. m.PodCidr = string(dAtA[iNdEx:postIndex])
  40313. iNdEx = postIndex
  40314. default:
  40315. iNdEx = preIndex
  40316. skippy, err := skipApi(dAtA[iNdEx:])
  40317. if err != nil {
  40318. return err
  40319. }
  40320. if (skippy < 0) || (iNdEx+skippy) < 0 {
  40321. return ErrInvalidLengthApi
  40322. }
  40323. if (iNdEx + skippy) > l {
  40324. return io.ErrUnexpectedEOF
  40325. }
  40326. iNdEx += skippy
  40327. }
  40328. }
  40329. if iNdEx > l {
  40330. return io.ErrUnexpectedEOF
  40331. }
  40332. return nil
  40333. }
  40334. func (m *RuntimeConfig) Unmarshal(dAtA []byte) error {
  40335. l := len(dAtA)
  40336. iNdEx := 0
  40337. for iNdEx < l {
  40338. preIndex := iNdEx
  40339. var wire uint64
  40340. for shift := uint(0); ; shift += 7 {
  40341. if shift >= 64 {
  40342. return ErrIntOverflowApi
  40343. }
  40344. if iNdEx >= l {
  40345. return io.ErrUnexpectedEOF
  40346. }
  40347. b := dAtA[iNdEx]
  40348. iNdEx++
  40349. wire |= uint64(b&0x7F) << shift
  40350. if b < 0x80 {
  40351. break
  40352. }
  40353. }
  40354. fieldNum := int32(wire >> 3)
  40355. wireType := int(wire & 0x7)
  40356. if wireType == 4 {
  40357. return fmt.Errorf("proto: RuntimeConfig: wiretype end group for non-group")
  40358. }
  40359. if fieldNum <= 0 {
  40360. return fmt.Errorf("proto: RuntimeConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  40361. }
  40362. switch fieldNum {
  40363. case 1:
  40364. if wireType != 2 {
  40365. return fmt.Errorf("proto: wrong wireType = %d for field NetworkConfig", wireType)
  40366. }
  40367. var msglen int
  40368. for shift := uint(0); ; shift += 7 {
  40369. if shift >= 64 {
  40370. return ErrIntOverflowApi
  40371. }
  40372. if iNdEx >= l {
  40373. return io.ErrUnexpectedEOF
  40374. }
  40375. b := dAtA[iNdEx]
  40376. iNdEx++
  40377. msglen |= int(b&0x7F) << shift
  40378. if b < 0x80 {
  40379. break
  40380. }
  40381. }
  40382. if msglen < 0 {
  40383. return ErrInvalidLengthApi
  40384. }
  40385. postIndex := iNdEx + msglen
  40386. if postIndex < 0 {
  40387. return ErrInvalidLengthApi
  40388. }
  40389. if postIndex > l {
  40390. return io.ErrUnexpectedEOF
  40391. }
  40392. if m.NetworkConfig == nil {
  40393. m.NetworkConfig = &NetworkConfig{}
  40394. }
  40395. if err := m.NetworkConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  40396. return err
  40397. }
  40398. iNdEx = postIndex
  40399. default:
  40400. iNdEx = preIndex
  40401. skippy, err := skipApi(dAtA[iNdEx:])
  40402. if err != nil {
  40403. return err
  40404. }
  40405. if (skippy < 0) || (iNdEx+skippy) < 0 {
  40406. return ErrInvalidLengthApi
  40407. }
  40408. if (iNdEx + skippy) > l {
  40409. return io.ErrUnexpectedEOF
  40410. }
  40411. iNdEx += skippy
  40412. }
  40413. }
  40414. if iNdEx > l {
  40415. return io.ErrUnexpectedEOF
  40416. }
  40417. return nil
  40418. }
  40419. func (m *UpdateRuntimeConfigRequest) Unmarshal(dAtA []byte) error {
  40420. l := len(dAtA)
  40421. iNdEx := 0
  40422. for iNdEx < l {
  40423. preIndex := iNdEx
  40424. var wire uint64
  40425. for shift := uint(0); ; shift += 7 {
  40426. if shift >= 64 {
  40427. return ErrIntOverflowApi
  40428. }
  40429. if iNdEx >= l {
  40430. return io.ErrUnexpectedEOF
  40431. }
  40432. b := dAtA[iNdEx]
  40433. iNdEx++
  40434. wire |= uint64(b&0x7F) << shift
  40435. if b < 0x80 {
  40436. break
  40437. }
  40438. }
  40439. fieldNum := int32(wire >> 3)
  40440. wireType := int(wire & 0x7)
  40441. if wireType == 4 {
  40442. return fmt.Errorf("proto: UpdateRuntimeConfigRequest: wiretype end group for non-group")
  40443. }
  40444. if fieldNum <= 0 {
  40445. return fmt.Errorf("proto: UpdateRuntimeConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  40446. }
  40447. switch fieldNum {
  40448. case 1:
  40449. if wireType != 2 {
  40450. return fmt.Errorf("proto: wrong wireType = %d for field RuntimeConfig", wireType)
  40451. }
  40452. var msglen int
  40453. for shift := uint(0); ; shift += 7 {
  40454. if shift >= 64 {
  40455. return ErrIntOverflowApi
  40456. }
  40457. if iNdEx >= l {
  40458. return io.ErrUnexpectedEOF
  40459. }
  40460. b := dAtA[iNdEx]
  40461. iNdEx++
  40462. msglen |= int(b&0x7F) << shift
  40463. if b < 0x80 {
  40464. break
  40465. }
  40466. }
  40467. if msglen < 0 {
  40468. return ErrInvalidLengthApi
  40469. }
  40470. postIndex := iNdEx + msglen
  40471. if postIndex < 0 {
  40472. return ErrInvalidLengthApi
  40473. }
  40474. if postIndex > l {
  40475. return io.ErrUnexpectedEOF
  40476. }
  40477. if m.RuntimeConfig == nil {
  40478. m.RuntimeConfig = &RuntimeConfig{}
  40479. }
  40480. if err := m.RuntimeConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  40481. return err
  40482. }
  40483. iNdEx = postIndex
  40484. default:
  40485. iNdEx = preIndex
  40486. skippy, err := skipApi(dAtA[iNdEx:])
  40487. if err != nil {
  40488. return err
  40489. }
  40490. if (skippy < 0) || (iNdEx+skippy) < 0 {
  40491. return ErrInvalidLengthApi
  40492. }
  40493. if (iNdEx + skippy) > l {
  40494. return io.ErrUnexpectedEOF
  40495. }
  40496. iNdEx += skippy
  40497. }
  40498. }
  40499. if iNdEx > l {
  40500. return io.ErrUnexpectedEOF
  40501. }
  40502. return nil
  40503. }
  40504. func (m *UpdateRuntimeConfigResponse) Unmarshal(dAtA []byte) error {
  40505. l := len(dAtA)
  40506. iNdEx := 0
  40507. for iNdEx < l {
  40508. preIndex := iNdEx
  40509. var wire uint64
  40510. for shift := uint(0); ; shift += 7 {
  40511. if shift >= 64 {
  40512. return ErrIntOverflowApi
  40513. }
  40514. if iNdEx >= l {
  40515. return io.ErrUnexpectedEOF
  40516. }
  40517. b := dAtA[iNdEx]
  40518. iNdEx++
  40519. wire |= uint64(b&0x7F) << shift
  40520. if b < 0x80 {
  40521. break
  40522. }
  40523. }
  40524. fieldNum := int32(wire >> 3)
  40525. wireType := int(wire & 0x7)
  40526. if wireType == 4 {
  40527. return fmt.Errorf("proto: UpdateRuntimeConfigResponse: wiretype end group for non-group")
  40528. }
  40529. if fieldNum <= 0 {
  40530. return fmt.Errorf("proto: UpdateRuntimeConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  40531. }
  40532. switch fieldNum {
  40533. default:
  40534. iNdEx = preIndex
  40535. skippy, err := skipApi(dAtA[iNdEx:])
  40536. if err != nil {
  40537. return err
  40538. }
  40539. if (skippy < 0) || (iNdEx+skippy) < 0 {
  40540. return ErrInvalidLengthApi
  40541. }
  40542. if (iNdEx + skippy) > l {
  40543. return io.ErrUnexpectedEOF
  40544. }
  40545. iNdEx += skippy
  40546. }
  40547. }
  40548. if iNdEx > l {
  40549. return io.ErrUnexpectedEOF
  40550. }
  40551. return nil
  40552. }
  40553. func (m *RuntimeCondition) Unmarshal(dAtA []byte) error {
  40554. l := len(dAtA)
  40555. iNdEx := 0
  40556. for iNdEx < l {
  40557. preIndex := iNdEx
  40558. var wire uint64
  40559. for shift := uint(0); ; shift += 7 {
  40560. if shift >= 64 {
  40561. return ErrIntOverflowApi
  40562. }
  40563. if iNdEx >= l {
  40564. return io.ErrUnexpectedEOF
  40565. }
  40566. b := dAtA[iNdEx]
  40567. iNdEx++
  40568. wire |= uint64(b&0x7F) << shift
  40569. if b < 0x80 {
  40570. break
  40571. }
  40572. }
  40573. fieldNum := int32(wire >> 3)
  40574. wireType := int(wire & 0x7)
  40575. if wireType == 4 {
  40576. return fmt.Errorf("proto: RuntimeCondition: wiretype end group for non-group")
  40577. }
  40578. if fieldNum <= 0 {
  40579. return fmt.Errorf("proto: RuntimeCondition: illegal tag %d (wire type %d)", fieldNum, wire)
  40580. }
  40581. switch fieldNum {
  40582. case 1:
  40583. if wireType != 2 {
  40584. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  40585. }
  40586. var stringLen uint64
  40587. for shift := uint(0); ; shift += 7 {
  40588. if shift >= 64 {
  40589. return ErrIntOverflowApi
  40590. }
  40591. if iNdEx >= l {
  40592. return io.ErrUnexpectedEOF
  40593. }
  40594. b := dAtA[iNdEx]
  40595. iNdEx++
  40596. stringLen |= uint64(b&0x7F) << shift
  40597. if b < 0x80 {
  40598. break
  40599. }
  40600. }
  40601. intStringLen := int(stringLen)
  40602. if intStringLen < 0 {
  40603. return ErrInvalidLengthApi
  40604. }
  40605. postIndex := iNdEx + intStringLen
  40606. if postIndex < 0 {
  40607. return ErrInvalidLengthApi
  40608. }
  40609. if postIndex > l {
  40610. return io.ErrUnexpectedEOF
  40611. }
  40612. m.Type = string(dAtA[iNdEx:postIndex])
  40613. iNdEx = postIndex
  40614. case 2:
  40615. if wireType != 0 {
  40616. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  40617. }
  40618. var v int
  40619. for shift := uint(0); ; shift += 7 {
  40620. if shift >= 64 {
  40621. return ErrIntOverflowApi
  40622. }
  40623. if iNdEx >= l {
  40624. return io.ErrUnexpectedEOF
  40625. }
  40626. b := dAtA[iNdEx]
  40627. iNdEx++
  40628. v |= int(b&0x7F) << shift
  40629. if b < 0x80 {
  40630. break
  40631. }
  40632. }
  40633. m.Status = bool(v != 0)
  40634. case 3:
  40635. if wireType != 2 {
  40636. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  40637. }
  40638. var stringLen uint64
  40639. for shift := uint(0); ; shift += 7 {
  40640. if shift >= 64 {
  40641. return ErrIntOverflowApi
  40642. }
  40643. if iNdEx >= l {
  40644. return io.ErrUnexpectedEOF
  40645. }
  40646. b := dAtA[iNdEx]
  40647. iNdEx++
  40648. stringLen |= uint64(b&0x7F) << shift
  40649. if b < 0x80 {
  40650. break
  40651. }
  40652. }
  40653. intStringLen := int(stringLen)
  40654. if intStringLen < 0 {
  40655. return ErrInvalidLengthApi
  40656. }
  40657. postIndex := iNdEx + intStringLen
  40658. if postIndex < 0 {
  40659. return ErrInvalidLengthApi
  40660. }
  40661. if postIndex > l {
  40662. return io.ErrUnexpectedEOF
  40663. }
  40664. m.Reason = string(dAtA[iNdEx:postIndex])
  40665. iNdEx = postIndex
  40666. case 4:
  40667. if wireType != 2 {
  40668. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  40669. }
  40670. var stringLen uint64
  40671. for shift := uint(0); ; shift += 7 {
  40672. if shift >= 64 {
  40673. return ErrIntOverflowApi
  40674. }
  40675. if iNdEx >= l {
  40676. return io.ErrUnexpectedEOF
  40677. }
  40678. b := dAtA[iNdEx]
  40679. iNdEx++
  40680. stringLen |= uint64(b&0x7F) << shift
  40681. if b < 0x80 {
  40682. break
  40683. }
  40684. }
  40685. intStringLen := int(stringLen)
  40686. if intStringLen < 0 {
  40687. return ErrInvalidLengthApi
  40688. }
  40689. postIndex := iNdEx + intStringLen
  40690. if postIndex < 0 {
  40691. return ErrInvalidLengthApi
  40692. }
  40693. if postIndex > l {
  40694. return io.ErrUnexpectedEOF
  40695. }
  40696. m.Message = string(dAtA[iNdEx:postIndex])
  40697. iNdEx = postIndex
  40698. default:
  40699. iNdEx = preIndex
  40700. skippy, err := skipApi(dAtA[iNdEx:])
  40701. if err != nil {
  40702. return err
  40703. }
  40704. if (skippy < 0) || (iNdEx+skippy) < 0 {
  40705. return ErrInvalidLengthApi
  40706. }
  40707. if (iNdEx + skippy) > l {
  40708. return io.ErrUnexpectedEOF
  40709. }
  40710. iNdEx += skippy
  40711. }
  40712. }
  40713. if iNdEx > l {
  40714. return io.ErrUnexpectedEOF
  40715. }
  40716. return nil
  40717. }
  40718. func (m *RuntimeStatus) Unmarshal(dAtA []byte) error {
  40719. l := len(dAtA)
  40720. iNdEx := 0
  40721. for iNdEx < l {
  40722. preIndex := iNdEx
  40723. var wire uint64
  40724. for shift := uint(0); ; shift += 7 {
  40725. if shift >= 64 {
  40726. return ErrIntOverflowApi
  40727. }
  40728. if iNdEx >= l {
  40729. return io.ErrUnexpectedEOF
  40730. }
  40731. b := dAtA[iNdEx]
  40732. iNdEx++
  40733. wire |= uint64(b&0x7F) << shift
  40734. if b < 0x80 {
  40735. break
  40736. }
  40737. }
  40738. fieldNum := int32(wire >> 3)
  40739. wireType := int(wire & 0x7)
  40740. if wireType == 4 {
  40741. return fmt.Errorf("proto: RuntimeStatus: wiretype end group for non-group")
  40742. }
  40743. if fieldNum <= 0 {
  40744. return fmt.Errorf("proto: RuntimeStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  40745. }
  40746. switch fieldNum {
  40747. case 1:
  40748. if wireType != 2 {
  40749. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  40750. }
  40751. var msglen int
  40752. for shift := uint(0); ; shift += 7 {
  40753. if shift >= 64 {
  40754. return ErrIntOverflowApi
  40755. }
  40756. if iNdEx >= l {
  40757. return io.ErrUnexpectedEOF
  40758. }
  40759. b := dAtA[iNdEx]
  40760. iNdEx++
  40761. msglen |= int(b&0x7F) << shift
  40762. if b < 0x80 {
  40763. break
  40764. }
  40765. }
  40766. if msglen < 0 {
  40767. return ErrInvalidLengthApi
  40768. }
  40769. postIndex := iNdEx + msglen
  40770. if postIndex < 0 {
  40771. return ErrInvalidLengthApi
  40772. }
  40773. if postIndex > l {
  40774. return io.ErrUnexpectedEOF
  40775. }
  40776. m.Conditions = append(m.Conditions, &RuntimeCondition{})
  40777. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  40778. return err
  40779. }
  40780. iNdEx = postIndex
  40781. default:
  40782. iNdEx = preIndex
  40783. skippy, err := skipApi(dAtA[iNdEx:])
  40784. if err != nil {
  40785. return err
  40786. }
  40787. if (skippy < 0) || (iNdEx+skippy) < 0 {
  40788. return ErrInvalidLengthApi
  40789. }
  40790. if (iNdEx + skippy) > l {
  40791. return io.ErrUnexpectedEOF
  40792. }
  40793. iNdEx += skippy
  40794. }
  40795. }
  40796. if iNdEx > l {
  40797. return io.ErrUnexpectedEOF
  40798. }
  40799. return nil
  40800. }
  40801. func (m *StatusRequest) Unmarshal(dAtA []byte) error {
  40802. l := len(dAtA)
  40803. iNdEx := 0
  40804. for iNdEx < l {
  40805. preIndex := iNdEx
  40806. var wire uint64
  40807. for shift := uint(0); ; shift += 7 {
  40808. if shift >= 64 {
  40809. return ErrIntOverflowApi
  40810. }
  40811. if iNdEx >= l {
  40812. return io.ErrUnexpectedEOF
  40813. }
  40814. b := dAtA[iNdEx]
  40815. iNdEx++
  40816. wire |= uint64(b&0x7F) << shift
  40817. if b < 0x80 {
  40818. break
  40819. }
  40820. }
  40821. fieldNum := int32(wire >> 3)
  40822. wireType := int(wire & 0x7)
  40823. if wireType == 4 {
  40824. return fmt.Errorf("proto: StatusRequest: wiretype end group for non-group")
  40825. }
  40826. if fieldNum <= 0 {
  40827. return fmt.Errorf("proto: StatusRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  40828. }
  40829. switch fieldNum {
  40830. case 1:
  40831. if wireType != 0 {
  40832. return fmt.Errorf("proto: wrong wireType = %d for field Verbose", wireType)
  40833. }
  40834. var v int
  40835. for shift := uint(0); ; shift += 7 {
  40836. if shift >= 64 {
  40837. return ErrIntOverflowApi
  40838. }
  40839. if iNdEx >= l {
  40840. return io.ErrUnexpectedEOF
  40841. }
  40842. b := dAtA[iNdEx]
  40843. iNdEx++
  40844. v |= int(b&0x7F) << shift
  40845. if b < 0x80 {
  40846. break
  40847. }
  40848. }
  40849. m.Verbose = bool(v != 0)
  40850. default:
  40851. iNdEx = preIndex
  40852. skippy, err := skipApi(dAtA[iNdEx:])
  40853. if err != nil {
  40854. return err
  40855. }
  40856. if (skippy < 0) || (iNdEx+skippy) < 0 {
  40857. return ErrInvalidLengthApi
  40858. }
  40859. if (iNdEx + skippy) > l {
  40860. return io.ErrUnexpectedEOF
  40861. }
  40862. iNdEx += skippy
  40863. }
  40864. }
  40865. if iNdEx > l {
  40866. return io.ErrUnexpectedEOF
  40867. }
  40868. return nil
  40869. }
  40870. func (m *StatusResponse) Unmarshal(dAtA []byte) error {
  40871. l := len(dAtA)
  40872. iNdEx := 0
  40873. for iNdEx < l {
  40874. preIndex := iNdEx
  40875. var wire uint64
  40876. for shift := uint(0); ; shift += 7 {
  40877. if shift >= 64 {
  40878. return ErrIntOverflowApi
  40879. }
  40880. if iNdEx >= l {
  40881. return io.ErrUnexpectedEOF
  40882. }
  40883. b := dAtA[iNdEx]
  40884. iNdEx++
  40885. wire |= uint64(b&0x7F) << shift
  40886. if b < 0x80 {
  40887. break
  40888. }
  40889. }
  40890. fieldNum := int32(wire >> 3)
  40891. wireType := int(wire & 0x7)
  40892. if wireType == 4 {
  40893. return fmt.Errorf("proto: StatusResponse: wiretype end group for non-group")
  40894. }
  40895. if fieldNum <= 0 {
  40896. return fmt.Errorf("proto: StatusResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  40897. }
  40898. switch fieldNum {
  40899. case 1:
  40900. if wireType != 2 {
  40901. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  40902. }
  40903. var msglen int
  40904. for shift := uint(0); ; shift += 7 {
  40905. if shift >= 64 {
  40906. return ErrIntOverflowApi
  40907. }
  40908. if iNdEx >= l {
  40909. return io.ErrUnexpectedEOF
  40910. }
  40911. b := dAtA[iNdEx]
  40912. iNdEx++
  40913. msglen |= int(b&0x7F) << shift
  40914. if b < 0x80 {
  40915. break
  40916. }
  40917. }
  40918. if msglen < 0 {
  40919. return ErrInvalidLengthApi
  40920. }
  40921. postIndex := iNdEx + msglen
  40922. if postIndex < 0 {
  40923. return ErrInvalidLengthApi
  40924. }
  40925. if postIndex > l {
  40926. return io.ErrUnexpectedEOF
  40927. }
  40928. if m.Status == nil {
  40929. m.Status = &RuntimeStatus{}
  40930. }
  40931. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  40932. return err
  40933. }
  40934. iNdEx = postIndex
  40935. case 2:
  40936. if wireType != 2 {
  40937. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  40938. }
  40939. var msglen int
  40940. for shift := uint(0); ; shift += 7 {
  40941. if shift >= 64 {
  40942. return ErrIntOverflowApi
  40943. }
  40944. if iNdEx >= l {
  40945. return io.ErrUnexpectedEOF
  40946. }
  40947. b := dAtA[iNdEx]
  40948. iNdEx++
  40949. msglen |= int(b&0x7F) << shift
  40950. if b < 0x80 {
  40951. break
  40952. }
  40953. }
  40954. if msglen < 0 {
  40955. return ErrInvalidLengthApi
  40956. }
  40957. postIndex := iNdEx + msglen
  40958. if postIndex < 0 {
  40959. return ErrInvalidLengthApi
  40960. }
  40961. if postIndex > l {
  40962. return io.ErrUnexpectedEOF
  40963. }
  40964. if m.Info == nil {
  40965. m.Info = make(map[string]string)
  40966. }
  40967. var mapkey string
  40968. var mapvalue string
  40969. for iNdEx < postIndex {
  40970. entryPreIndex := iNdEx
  40971. var wire uint64
  40972. for shift := uint(0); ; shift += 7 {
  40973. if shift >= 64 {
  40974. return ErrIntOverflowApi
  40975. }
  40976. if iNdEx >= l {
  40977. return io.ErrUnexpectedEOF
  40978. }
  40979. b := dAtA[iNdEx]
  40980. iNdEx++
  40981. wire |= uint64(b&0x7F) << shift
  40982. if b < 0x80 {
  40983. break
  40984. }
  40985. }
  40986. fieldNum := int32(wire >> 3)
  40987. if fieldNum == 1 {
  40988. var stringLenmapkey uint64
  40989. for shift := uint(0); ; shift += 7 {
  40990. if shift >= 64 {
  40991. return ErrIntOverflowApi
  40992. }
  40993. if iNdEx >= l {
  40994. return io.ErrUnexpectedEOF
  40995. }
  40996. b := dAtA[iNdEx]
  40997. iNdEx++
  40998. stringLenmapkey |= uint64(b&0x7F) << shift
  40999. if b < 0x80 {
  41000. break
  41001. }
  41002. }
  41003. intStringLenmapkey := int(stringLenmapkey)
  41004. if intStringLenmapkey < 0 {
  41005. return ErrInvalidLengthApi
  41006. }
  41007. postStringIndexmapkey := iNdEx + intStringLenmapkey
  41008. if postStringIndexmapkey < 0 {
  41009. return ErrInvalidLengthApi
  41010. }
  41011. if postStringIndexmapkey > l {
  41012. return io.ErrUnexpectedEOF
  41013. }
  41014. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  41015. iNdEx = postStringIndexmapkey
  41016. } else if fieldNum == 2 {
  41017. var stringLenmapvalue uint64
  41018. for shift := uint(0); ; shift += 7 {
  41019. if shift >= 64 {
  41020. return ErrIntOverflowApi
  41021. }
  41022. if iNdEx >= l {
  41023. return io.ErrUnexpectedEOF
  41024. }
  41025. b := dAtA[iNdEx]
  41026. iNdEx++
  41027. stringLenmapvalue |= uint64(b&0x7F) << shift
  41028. if b < 0x80 {
  41029. break
  41030. }
  41031. }
  41032. intStringLenmapvalue := int(stringLenmapvalue)
  41033. if intStringLenmapvalue < 0 {
  41034. return ErrInvalidLengthApi
  41035. }
  41036. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  41037. if postStringIndexmapvalue < 0 {
  41038. return ErrInvalidLengthApi
  41039. }
  41040. if postStringIndexmapvalue > l {
  41041. return io.ErrUnexpectedEOF
  41042. }
  41043. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  41044. iNdEx = postStringIndexmapvalue
  41045. } else {
  41046. iNdEx = entryPreIndex
  41047. skippy, err := skipApi(dAtA[iNdEx:])
  41048. if err != nil {
  41049. return err
  41050. }
  41051. if (skippy < 0) || (iNdEx+skippy) < 0 {
  41052. return ErrInvalidLengthApi
  41053. }
  41054. if (iNdEx + skippy) > postIndex {
  41055. return io.ErrUnexpectedEOF
  41056. }
  41057. iNdEx += skippy
  41058. }
  41059. }
  41060. m.Info[mapkey] = mapvalue
  41061. iNdEx = postIndex
  41062. default:
  41063. iNdEx = preIndex
  41064. skippy, err := skipApi(dAtA[iNdEx:])
  41065. if err != nil {
  41066. return err
  41067. }
  41068. if (skippy < 0) || (iNdEx+skippy) < 0 {
  41069. return ErrInvalidLengthApi
  41070. }
  41071. if (iNdEx + skippy) > l {
  41072. return io.ErrUnexpectedEOF
  41073. }
  41074. iNdEx += skippy
  41075. }
  41076. }
  41077. if iNdEx > l {
  41078. return io.ErrUnexpectedEOF
  41079. }
  41080. return nil
  41081. }
  41082. func (m *ImageFsInfoRequest) Unmarshal(dAtA []byte) error {
  41083. l := len(dAtA)
  41084. iNdEx := 0
  41085. for iNdEx < l {
  41086. preIndex := iNdEx
  41087. var wire uint64
  41088. for shift := uint(0); ; shift += 7 {
  41089. if shift >= 64 {
  41090. return ErrIntOverflowApi
  41091. }
  41092. if iNdEx >= l {
  41093. return io.ErrUnexpectedEOF
  41094. }
  41095. b := dAtA[iNdEx]
  41096. iNdEx++
  41097. wire |= uint64(b&0x7F) << shift
  41098. if b < 0x80 {
  41099. break
  41100. }
  41101. }
  41102. fieldNum := int32(wire >> 3)
  41103. wireType := int(wire & 0x7)
  41104. if wireType == 4 {
  41105. return fmt.Errorf("proto: ImageFsInfoRequest: wiretype end group for non-group")
  41106. }
  41107. if fieldNum <= 0 {
  41108. return fmt.Errorf("proto: ImageFsInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  41109. }
  41110. switch fieldNum {
  41111. default:
  41112. iNdEx = preIndex
  41113. skippy, err := skipApi(dAtA[iNdEx:])
  41114. if err != nil {
  41115. return err
  41116. }
  41117. if (skippy < 0) || (iNdEx+skippy) < 0 {
  41118. return ErrInvalidLengthApi
  41119. }
  41120. if (iNdEx + skippy) > l {
  41121. return io.ErrUnexpectedEOF
  41122. }
  41123. iNdEx += skippy
  41124. }
  41125. }
  41126. if iNdEx > l {
  41127. return io.ErrUnexpectedEOF
  41128. }
  41129. return nil
  41130. }
  41131. func (m *UInt64Value) Unmarshal(dAtA []byte) error {
  41132. l := len(dAtA)
  41133. iNdEx := 0
  41134. for iNdEx < l {
  41135. preIndex := iNdEx
  41136. var wire uint64
  41137. for shift := uint(0); ; shift += 7 {
  41138. if shift >= 64 {
  41139. return ErrIntOverflowApi
  41140. }
  41141. if iNdEx >= l {
  41142. return io.ErrUnexpectedEOF
  41143. }
  41144. b := dAtA[iNdEx]
  41145. iNdEx++
  41146. wire |= uint64(b&0x7F) << shift
  41147. if b < 0x80 {
  41148. break
  41149. }
  41150. }
  41151. fieldNum := int32(wire >> 3)
  41152. wireType := int(wire & 0x7)
  41153. if wireType == 4 {
  41154. return fmt.Errorf("proto: UInt64Value: wiretype end group for non-group")
  41155. }
  41156. if fieldNum <= 0 {
  41157. return fmt.Errorf("proto: UInt64Value: illegal tag %d (wire type %d)", fieldNum, wire)
  41158. }
  41159. switch fieldNum {
  41160. case 1:
  41161. if wireType != 0 {
  41162. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  41163. }
  41164. m.Value = 0
  41165. for shift := uint(0); ; shift += 7 {
  41166. if shift >= 64 {
  41167. return ErrIntOverflowApi
  41168. }
  41169. if iNdEx >= l {
  41170. return io.ErrUnexpectedEOF
  41171. }
  41172. b := dAtA[iNdEx]
  41173. iNdEx++
  41174. m.Value |= uint64(b&0x7F) << shift
  41175. if b < 0x80 {
  41176. break
  41177. }
  41178. }
  41179. default:
  41180. iNdEx = preIndex
  41181. skippy, err := skipApi(dAtA[iNdEx:])
  41182. if err != nil {
  41183. return err
  41184. }
  41185. if (skippy < 0) || (iNdEx+skippy) < 0 {
  41186. return ErrInvalidLengthApi
  41187. }
  41188. if (iNdEx + skippy) > l {
  41189. return io.ErrUnexpectedEOF
  41190. }
  41191. iNdEx += skippy
  41192. }
  41193. }
  41194. if iNdEx > l {
  41195. return io.ErrUnexpectedEOF
  41196. }
  41197. return nil
  41198. }
  41199. func (m *FilesystemIdentifier) Unmarshal(dAtA []byte) error {
  41200. l := len(dAtA)
  41201. iNdEx := 0
  41202. for iNdEx < l {
  41203. preIndex := iNdEx
  41204. var wire uint64
  41205. for shift := uint(0); ; shift += 7 {
  41206. if shift >= 64 {
  41207. return ErrIntOverflowApi
  41208. }
  41209. if iNdEx >= l {
  41210. return io.ErrUnexpectedEOF
  41211. }
  41212. b := dAtA[iNdEx]
  41213. iNdEx++
  41214. wire |= uint64(b&0x7F) << shift
  41215. if b < 0x80 {
  41216. break
  41217. }
  41218. }
  41219. fieldNum := int32(wire >> 3)
  41220. wireType := int(wire & 0x7)
  41221. if wireType == 4 {
  41222. return fmt.Errorf("proto: FilesystemIdentifier: wiretype end group for non-group")
  41223. }
  41224. if fieldNum <= 0 {
  41225. return fmt.Errorf("proto: FilesystemIdentifier: illegal tag %d (wire type %d)", fieldNum, wire)
  41226. }
  41227. switch fieldNum {
  41228. case 1:
  41229. if wireType != 2 {
  41230. return fmt.Errorf("proto: wrong wireType = %d for field Mountpoint", wireType)
  41231. }
  41232. var stringLen uint64
  41233. for shift := uint(0); ; shift += 7 {
  41234. if shift >= 64 {
  41235. return ErrIntOverflowApi
  41236. }
  41237. if iNdEx >= l {
  41238. return io.ErrUnexpectedEOF
  41239. }
  41240. b := dAtA[iNdEx]
  41241. iNdEx++
  41242. stringLen |= uint64(b&0x7F) << shift
  41243. if b < 0x80 {
  41244. break
  41245. }
  41246. }
  41247. intStringLen := int(stringLen)
  41248. if intStringLen < 0 {
  41249. return ErrInvalidLengthApi
  41250. }
  41251. postIndex := iNdEx + intStringLen
  41252. if postIndex < 0 {
  41253. return ErrInvalidLengthApi
  41254. }
  41255. if postIndex > l {
  41256. return io.ErrUnexpectedEOF
  41257. }
  41258. m.Mountpoint = string(dAtA[iNdEx:postIndex])
  41259. iNdEx = postIndex
  41260. default:
  41261. iNdEx = preIndex
  41262. skippy, err := skipApi(dAtA[iNdEx:])
  41263. if err != nil {
  41264. return err
  41265. }
  41266. if (skippy < 0) || (iNdEx+skippy) < 0 {
  41267. return ErrInvalidLengthApi
  41268. }
  41269. if (iNdEx + skippy) > l {
  41270. return io.ErrUnexpectedEOF
  41271. }
  41272. iNdEx += skippy
  41273. }
  41274. }
  41275. if iNdEx > l {
  41276. return io.ErrUnexpectedEOF
  41277. }
  41278. return nil
  41279. }
  41280. func (m *FilesystemUsage) Unmarshal(dAtA []byte) error {
  41281. l := len(dAtA)
  41282. iNdEx := 0
  41283. for iNdEx < l {
  41284. preIndex := iNdEx
  41285. var wire uint64
  41286. for shift := uint(0); ; shift += 7 {
  41287. if shift >= 64 {
  41288. return ErrIntOverflowApi
  41289. }
  41290. if iNdEx >= l {
  41291. return io.ErrUnexpectedEOF
  41292. }
  41293. b := dAtA[iNdEx]
  41294. iNdEx++
  41295. wire |= uint64(b&0x7F) << shift
  41296. if b < 0x80 {
  41297. break
  41298. }
  41299. }
  41300. fieldNum := int32(wire >> 3)
  41301. wireType := int(wire & 0x7)
  41302. if wireType == 4 {
  41303. return fmt.Errorf("proto: FilesystemUsage: wiretype end group for non-group")
  41304. }
  41305. if fieldNum <= 0 {
  41306. return fmt.Errorf("proto: FilesystemUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  41307. }
  41308. switch fieldNum {
  41309. case 1:
  41310. if wireType != 0 {
  41311. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  41312. }
  41313. m.Timestamp = 0
  41314. for shift := uint(0); ; shift += 7 {
  41315. if shift >= 64 {
  41316. return ErrIntOverflowApi
  41317. }
  41318. if iNdEx >= l {
  41319. return io.ErrUnexpectedEOF
  41320. }
  41321. b := dAtA[iNdEx]
  41322. iNdEx++
  41323. m.Timestamp |= int64(b&0x7F) << shift
  41324. if b < 0x80 {
  41325. break
  41326. }
  41327. }
  41328. case 2:
  41329. if wireType != 2 {
  41330. return fmt.Errorf("proto: wrong wireType = %d for field FsId", wireType)
  41331. }
  41332. var msglen int
  41333. for shift := uint(0); ; shift += 7 {
  41334. if shift >= 64 {
  41335. return ErrIntOverflowApi
  41336. }
  41337. if iNdEx >= l {
  41338. return io.ErrUnexpectedEOF
  41339. }
  41340. b := dAtA[iNdEx]
  41341. iNdEx++
  41342. msglen |= int(b&0x7F) << shift
  41343. if b < 0x80 {
  41344. break
  41345. }
  41346. }
  41347. if msglen < 0 {
  41348. return ErrInvalidLengthApi
  41349. }
  41350. postIndex := iNdEx + msglen
  41351. if postIndex < 0 {
  41352. return ErrInvalidLengthApi
  41353. }
  41354. if postIndex > l {
  41355. return io.ErrUnexpectedEOF
  41356. }
  41357. if m.FsId == nil {
  41358. m.FsId = &FilesystemIdentifier{}
  41359. }
  41360. if err := m.FsId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  41361. return err
  41362. }
  41363. iNdEx = postIndex
  41364. case 3:
  41365. if wireType != 2 {
  41366. return fmt.Errorf("proto: wrong wireType = %d for field UsedBytes", wireType)
  41367. }
  41368. var msglen int
  41369. for shift := uint(0); ; shift += 7 {
  41370. if shift >= 64 {
  41371. return ErrIntOverflowApi
  41372. }
  41373. if iNdEx >= l {
  41374. return io.ErrUnexpectedEOF
  41375. }
  41376. b := dAtA[iNdEx]
  41377. iNdEx++
  41378. msglen |= int(b&0x7F) << shift
  41379. if b < 0x80 {
  41380. break
  41381. }
  41382. }
  41383. if msglen < 0 {
  41384. return ErrInvalidLengthApi
  41385. }
  41386. postIndex := iNdEx + msglen
  41387. if postIndex < 0 {
  41388. return ErrInvalidLengthApi
  41389. }
  41390. if postIndex > l {
  41391. return io.ErrUnexpectedEOF
  41392. }
  41393. if m.UsedBytes == nil {
  41394. m.UsedBytes = &UInt64Value{}
  41395. }
  41396. if err := m.UsedBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  41397. return err
  41398. }
  41399. iNdEx = postIndex
  41400. case 4:
  41401. if wireType != 2 {
  41402. return fmt.Errorf("proto: wrong wireType = %d for field InodesUsed", wireType)
  41403. }
  41404. var msglen int
  41405. for shift := uint(0); ; shift += 7 {
  41406. if shift >= 64 {
  41407. return ErrIntOverflowApi
  41408. }
  41409. if iNdEx >= l {
  41410. return io.ErrUnexpectedEOF
  41411. }
  41412. b := dAtA[iNdEx]
  41413. iNdEx++
  41414. msglen |= int(b&0x7F) << shift
  41415. if b < 0x80 {
  41416. break
  41417. }
  41418. }
  41419. if msglen < 0 {
  41420. return ErrInvalidLengthApi
  41421. }
  41422. postIndex := iNdEx + msglen
  41423. if postIndex < 0 {
  41424. return ErrInvalidLengthApi
  41425. }
  41426. if postIndex > l {
  41427. return io.ErrUnexpectedEOF
  41428. }
  41429. if m.InodesUsed == nil {
  41430. m.InodesUsed = &UInt64Value{}
  41431. }
  41432. if err := m.InodesUsed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  41433. return err
  41434. }
  41435. iNdEx = postIndex
  41436. default:
  41437. iNdEx = preIndex
  41438. skippy, err := skipApi(dAtA[iNdEx:])
  41439. if err != nil {
  41440. return err
  41441. }
  41442. if (skippy < 0) || (iNdEx+skippy) < 0 {
  41443. return ErrInvalidLengthApi
  41444. }
  41445. if (iNdEx + skippy) > l {
  41446. return io.ErrUnexpectedEOF
  41447. }
  41448. iNdEx += skippy
  41449. }
  41450. }
  41451. if iNdEx > l {
  41452. return io.ErrUnexpectedEOF
  41453. }
  41454. return nil
  41455. }
  41456. func (m *WindowsFilesystemUsage) Unmarshal(dAtA []byte) error {
  41457. l := len(dAtA)
  41458. iNdEx := 0
  41459. for iNdEx < l {
  41460. preIndex := iNdEx
  41461. var wire uint64
  41462. for shift := uint(0); ; shift += 7 {
  41463. if shift >= 64 {
  41464. return ErrIntOverflowApi
  41465. }
  41466. if iNdEx >= l {
  41467. return io.ErrUnexpectedEOF
  41468. }
  41469. b := dAtA[iNdEx]
  41470. iNdEx++
  41471. wire |= uint64(b&0x7F) << shift
  41472. if b < 0x80 {
  41473. break
  41474. }
  41475. }
  41476. fieldNum := int32(wire >> 3)
  41477. wireType := int(wire & 0x7)
  41478. if wireType == 4 {
  41479. return fmt.Errorf("proto: WindowsFilesystemUsage: wiretype end group for non-group")
  41480. }
  41481. if fieldNum <= 0 {
  41482. return fmt.Errorf("proto: WindowsFilesystemUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  41483. }
  41484. switch fieldNum {
  41485. case 1:
  41486. if wireType != 0 {
  41487. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  41488. }
  41489. m.Timestamp = 0
  41490. for shift := uint(0); ; shift += 7 {
  41491. if shift >= 64 {
  41492. return ErrIntOverflowApi
  41493. }
  41494. if iNdEx >= l {
  41495. return io.ErrUnexpectedEOF
  41496. }
  41497. b := dAtA[iNdEx]
  41498. iNdEx++
  41499. m.Timestamp |= int64(b&0x7F) << shift
  41500. if b < 0x80 {
  41501. break
  41502. }
  41503. }
  41504. case 2:
  41505. if wireType != 2 {
  41506. return fmt.Errorf("proto: wrong wireType = %d for field FsId", wireType)
  41507. }
  41508. var msglen int
  41509. for shift := uint(0); ; shift += 7 {
  41510. if shift >= 64 {
  41511. return ErrIntOverflowApi
  41512. }
  41513. if iNdEx >= l {
  41514. return io.ErrUnexpectedEOF
  41515. }
  41516. b := dAtA[iNdEx]
  41517. iNdEx++
  41518. msglen |= int(b&0x7F) << shift
  41519. if b < 0x80 {
  41520. break
  41521. }
  41522. }
  41523. if msglen < 0 {
  41524. return ErrInvalidLengthApi
  41525. }
  41526. postIndex := iNdEx + msglen
  41527. if postIndex < 0 {
  41528. return ErrInvalidLengthApi
  41529. }
  41530. if postIndex > l {
  41531. return io.ErrUnexpectedEOF
  41532. }
  41533. if m.FsId == nil {
  41534. m.FsId = &FilesystemIdentifier{}
  41535. }
  41536. if err := m.FsId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  41537. return err
  41538. }
  41539. iNdEx = postIndex
  41540. case 3:
  41541. if wireType != 2 {
  41542. return fmt.Errorf("proto: wrong wireType = %d for field UsedBytes", wireType)
  41543. }
  41544. var msglen int
  41545. for shift := uint(0); ; shift += 7 {
  41546. if shift >= 64 {
  41547. return ErrIntOverflowApi
  41548. }
  41549. if iNdEx >= l {
  41550. return io.ErrUnexpectedEOF
  41551. }
  41552. b := dAtA[iNdEx]
  41553. iNdEx++
  41554. msglen |= int(b&0x7F) << shift
  41555. if b < 0x80 {
  41556. break
  41557. }
  41558. }
  41559. if msglen < 0 {
  41560. return ErrInvalidLengthApi
  41561. }
  41562. postIndex := iNdEx + msglen
  41563. if postIndex < 0 {
  41564. return ErrInvalidLengthApi
  41565. }
  41566. if postIndex > l {
  41567. return io.ErrUnexpectedEOF
  41568. }
  41569. if m.UsedBytes == nil {
  41570. m.UsedBytes = &UInt64Value{}
  41571. }
  41572. if err := m.UsedBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  41573. return err
  41574. }
  41575. iNdEx = postIndex
  41576. default:
  41577. iNdEx = preIndex
  41578. skippy, err := skipApi(dAtA[iNdEx:])
  41579. if err != nil {
  41580. return err
  41581. }
  41582. if (skippy < 0) || (iNdEx+skippy) < 0 {
  41583. return ErrInvalidLengthApi
  41584. }
  41585. if (iNdEx + skippy) > l {
  41586. return io.ErrUnexpectedEOF
  41587. }
  41588. iNdEx += skippy
  41589. }
  41590. }
  41591. if iNdEx > l {
  41592. return io.ErrUnexpectedEOF
  41593. }
  41594. return nil
  41595. }
  41596. func (m *ImageFsInfoResponse) Unmarshal(dAtA []byte) error {
  41597. l := len(dAtA)
  41598. iNdEx := 0
  41599. for iNdEx < l {
  41600. preIndex := iNdEx
  41601. var wire uint64
  41602. for shift := uint(0); ; shift += 7 {
  41603. if shift >= 64 {
  41604. return ErrIntOverflowApi
  41605. }
  41606. if iNdEx >= l {
  41607. return io.ErrUnexpectedEOF
  41608. }
  41609. b := dAtA[iNdEx]
  41610. iNdEx++
  41611. wire |= uint64(b&0x7F) << shift
  41612. if b < 0x80 {
  41613. break
  41614. }
  41615. }
  41616. fieldNum := int32(wire >> 3)
  41617. wireType := int(wire & 0x7)
  41618. if wireType == 4 {
  41619. return fmt.Errorf("proto: ImageFsInfoResponse: wiretype end group for non-group")
  41620. }
  41621. if fieldNum <= 0 {
  41622. return fmt.Errorf("proto: ImageFsInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  41623. }
  41624. switch fieldNum {
  41625. case 1:
  41626. if wireType != 2 {
  41627. return fmt.Errorf("proto: wrong wireType = %d for field ImageFilesystems", wireType)
  41628. }
  41629. var msglen int
  41630. for shift := uint(0); ; shift += 7 {
  41631. if shift >= 64 {
  41632. return ErrIntOverflowApi
  41633. }
  41634. if iNdEx >= l {
  41635. return io.ErrUnexpectedEOF
  41636. }
  41637. b := dAtA[iNdEx]
  41638. iNdEx++
  41639. msglen |= int(b&0x7F) << shift
  41640. if b < 0x80 {
  41641. break
  41642. }
  41643. }
  41644. if msglen < 0 {
  41645. return ErrInvalidLengthApi
  41646. }
  41647. postIndex := iNdEx + msglen
  41648. if postIndex < 0 {
  41649. return ErrInvalidLengthApi
  41650. }
  41651. if postIndex > l {
  41652. return io.ErrUnexpectedEOF
  41653. }
  41654. m.ImageFilesystems = append(m.ImageFilesystems, &FilesystemUsage{})
  41655. if err := m.ImageFilesystems[len(m.ImageFilesystems)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  41656. return err
  41657. }
  41658. iNdEx = postIndex
  41659. default:
  41660. iNdEx = preIndex
  41661. skippy, err := skipApi(dAtA[iNdEx:])
  41662. if err != nil {
  41663. return err
  41664. }
  41665. if (skippy < 0) || (iNdEx+skippy) < 0 {
  41666. return ErrInvalidLengthApi
  41667. }
  41668. if (iNdEx + skippy) > l {
  41669. return io.ErrUnexpectedEOF
  41670. }
  41671. iNdEx += skippy
  41672. }
  41673. }
  41674. if iNdEx > l {
  41675. return io.ErrUnexpectedEOF
  41676. }
  41677. return nil
  41678. }
  41679. func (m *ContainerStatsRequest) Unmarshal(dAtA []byte) error {
  41680. l := len(dAtA)
  41681. iNdEx := 0
  41682. for iNdEx < l {
  41683. preIndex := iNdEx
  41684. var wire uint64
  41685. for shift := uint(0); ; shift += 7 {
  41686. if shift >= 64 {
  41687. return ErrIntOverflowApi
  41688. }
  41689. if iNdEx >= l {
  41690. return io.ErrUnexpectedEOF
  41691. }
  41692. b := dAtA[iNdEx]
  41693. iNdEx++
  41694. wire |= uint64(b&0x7F) << shift
  41695. if b < 0x80 {
  41696. break
  41697. }
  41698. }
  41699. fieldNum := int32(wire >> 3)
  41700. wireType := int(wire & 0x7)
  41701. if wireType == 4 {
  41702. return fmt.Errorf("proto: ContainerStatsRequest: wiretype end group for non-group")
  41703. }
  41704. if fieldNum <= 0 {
  41705. return fmt.Errorf("proto: ContainerStatsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  41706. }
  41707. switch fieldNum {
  41708. case 1:
  41709. if wireType != 2 {
  41710. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  41711. }
  41712. var stringLen uint64
  41713. for shift := uint(0); ; shift += 7 {
  41714. if shift >= 64 {
  41715. return ErrIntOverflowApi
  41716. }
  41717. if iNdEx >= l {
  41718. return io.ErrUnexpectedEOF
  41719. }
  41720. b := dAtA[iNdEx]
  41721. iNdEx++
  41722. stringLen |= uint64(b&0x7F) << shift
  41723. if b < 0x80 {
  41724. break
  41725. }
  41726. }
  41727. intStringLen := int(stringLen)
  41728. if intStringLen < 0 {
  41729. return ErrInvalidLengthApi
  41730. }
  41731. postIndex := iNdEx + intStringLen
  41732. if postIndex < 0 {
  41733. return ErrInvalidLengthApi
  41734. }
  41735. if postIndex > l {
  41736. return io.ErrUnexpectedEOF
  41737. }
  41738. m.ContainerId = string(dAtA[iNdEx:postIndex])
  41739. iNdEx = postIndex
  41740. default:
  41741. iNdEx = preIndex
  41742. skippy, err := skipApi(dAtA[iNdEx:])
  41743. if err != nil {
  41744. return err
  41745. }
  41746. if (skippy < 0) || (iNdEx+skippy) < 0 {
  41747. return ErrInvalidLengthApi
  41748. }
  41749. if (iNdEx + skippy) > l {
  41750. return io.ErrUnexpectedEOF
  41751. }
  41752. iNdEx += skippy
  41753. }
  41754. }
  41755. if iNdEx > l {
  41756. return io.ErrUnexpectedEOF
  41757. }
  41758. return nil
  41759. }
  41760. func (m *ContainerStatsResponse) Unmarshal(dAtA []byte) error {
  41761. l := len(dAtA)
  41762. iNdEx := 0
  41763. for iNdEx < l {
  41764. preIndex := iNdEx
  41765. var wire uint64
  41766. for shift := uint(0); ; shift += 7 {
  41767. if shift >= 64 {
  41768. return ErrIntOverflowApi
  41769. }
  41770. if iNdEx >= l {
  41771. return io.ErrUnexpectedEOF
  41772. }
  41773. b := dAtA[iNdEx]
  41774. iNdEx++
  41775. wire |= uint64(b&0x7F) << shift
  41776. if b < 0x80 {
  41777. break
  41778. }
  41779. }
  41780. fieldNum := int32(wire >> 3)
  41781. wireType := int(wire & 0x7)
  41782. if wireType == 4 {
  41783. return fmt.Errorf("proto: ContainerStatsResponse: wiretype end group for non-group")
  41784. }
  41785. if fieldNum <= 0 {
  41786. return fmt.Errorf("proto: ContainerStatsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  41787. }
  41788. switch fieldNum {
  41789. case 1:
  41790. if wireType != 2 {
  41791. return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType)
  41792. }
  41793. var msglen int
  41794. for shift := uint(0); ; shift += 7 {
  41795. if shift >= 64 {
  41796. return ErrIntOverflowApi
  41797. }
  41798. if iNdEx >= l {
  41799. return io.ErrUnexpectedEOF
  41800. }
  41801. b := dAtA[iNdEx]
  41802. iNdEx++
  41803. msglen |= int(b&0x7F) << shift
  41804. if b < 0x80 {
  41805. break
  41806. }
  41807. }
  41808. if msglen < 0 {
  41809. return ErrInvalidLengthApi
  41810. }
  41811. postIndex := iNdEx + msglen
  41812. if postIndex < 0 {
  41813. return ErrInvalidLengthApi
  41814. }
  41815. if postIndex > l {
  41816. return io.ErrUnexpectedEOF
  41817. }
  41818. if m.Stats == nil {
  41819. m.Stats = &ContainerStats{}
  41820. }
  41821. if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  41822. return err
  41823. }
  41824. iNdEx = postIndex
  41825. default:
  41826. iNdEx = preIndex
  41827. skippy, err := skipApi(dAtA[iNdEx:])
  41828. if err != nil {
  41829. return err
  41830. }
  41831. if (skippy < 0) || (iNdEx+skippy) < 0 {
  41832. return ErrInvalidLengthApi
  41833. }
  41834. if (iNdEx + skippy) > l {
  41835. return io.ErrUnexpectedEOF
  41836. }
  41837. iNdEx += skippy
  41838. }
  41839. }
  41840. if iNdEx > l {
  41841. return io.ErrUnexpectedEOF
  41842. }
  41843. return nil
  41844. }
  41845. func (m *ListContainerStatsRequest) Unmarshal(dAtA []byte) error {
  41846. l := len(dAtA)
  41847. iNdEx := 0
  41848. for iNdEx < l {
  41849. preIndex := iNdEx
  41850. var wire uint64
  41851. for shift := uint(0); ; shift += 7 {
  41852. if shift >= 64 {
  41853. return ErrIntOverflowApi
  41854. }
  41855. if iNdEx >= l {
  41856. return io.ErrUnexpectedEOF
  41857. }
  41858. b := dAtA[iNdEx]
  41859. iNdEx++
  41860. wire |= uint64(b&0x7F) << shift
  41861. if b < 0x80 {
  41862. break
  41863. }
  41864. }
  41865. fieldNum := int32(wire >> 3)
  41866. wireType := int(wire & 0x7)
  41867. if wireType == 4 {
  41868. return fmt.Errorf("proto: ListContainerStatsRequest: wiretype end group for non-group")
  41869. }
  41870. if fieldNum <= 0 {
  41871. return fmt.Errorf("proto: ListContainerStatsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  41872. }
  41873. switch fieldNum {
  41874. case 1:
  41875. if wireType != 2 {
  41876. return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType)
  41877. }
  41878. var msglen int
  41879. for shift := uint(0); ; shift += 7 {
  41880. if shift >= 64 {
  41881. return ErrIntOverflowApi
  41882. }
  41883. if iNdEx >= l {
  41884. return io.ErrUnexpectedEOF
  41885. }
  41886. b := dAtA[iNdEx]
  41887. iNdEx++
  41888. msglen |= int(b&0x7F) << shift
  41889. if b < 0x80 {
  41890. break
  41891. }
  41892. }
  41893. if msglen < 0 {
  41894. return ErrInvalidLengthApi
  41895. }
  41896. postIndex := iNdEx + msglen
  41897. if postIndex < 0 {
  41898. return ErrInvalidLengthApi
  41899. }
  41900. if postIndex > l {
  41901. return io.ErrUnexpectedEOF
  41902. }
  41903. if m.Filter == nil {
  41904. m.Filter = &ContainerStatsFilter{}
  41905. }
  41906. if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  41907. return err
  41908. }
  41909. iNdEx = postIndex
  41910. default:
  41911. iNdEx = preIndex
  41912. skippy, err := skipApi(dAtA[iNdEx:])
  41913. if err != nil {
  41914. return err
  41915. }
  41916. if (skippy < 0) || (iNdEx+skippy) < 0 {
  41917. return ErrInvalidLengthApi
  41918. }
  41919. if (iNdEx + skippy) > l {
  41920. return io.ErrUnexpectedEOF
  41921. }
  41922. iNdEx += skippy
  41923. }
  41924. }
  41925. if iNdEx > l {
  41926. return io.ErrUnexpectedEOF
  41927. }
  41928. return nil
  41929. }
  41930. func (m *ContainerStatsFilter) Unmarshal(dAtA []byte) error {
  41931. l := len(dAtA)
  41932. iNdEx := 0
  41933. for iNdEx < l {
  41934. preIndex := iNdEx
  41935. var wire uint64
  41936. for shift := uint(0); ; shift += 7 {
  41937. if shift >= 64 {
  41938. return ErrIntOverflowApi
  41939. }
  41940. if iNdEx >= l {
  41941. return io.ErrUnexpectedEOF
  41942. }
  41943. b := dAtA[iNdEx]
  41944. iNdEx++
  41945. wire |= uint64(b&0x7F) << shift
  41946. if b < 0x80 {
  41947. break
  41948. }
  41949. }
  41950. fieldNum := int32(wire >> 3)
  41951. wireType := int(wire & 0x7)
  41952. if wireType == 4 {
  41953. return fmt.Errorf("proto: ContainerStatsFilter: wiretype end group for non-group")
  41954. }
  41955. if fieldNum <= 0 {
  41956. return fmt.Errorf("proto: ContainerStatsFilter: illegal tag %d (wire type %d)", fieldNum, wire)
  41957. }
  41958. switch fieldNum {
  41959. case 1:
  41960. if wireType != 2 {
  41961. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  41962. }
  41963. var stringLen uint64
  41964. for shift := uint(0); ; shift += 7 {
  41965. if shift >= 64 {
  41966. return ErrIntOverflowApi
  41967. }
  41968. if iNdEx >= l {
  41969. return io.ErrUnexpectedEOF
  41970. }
  41971. b := dAtA[iNdEx]
  41972. iNdEx++
  41973. stringLen |= uint64(b&0x7F) << shift
  41974. if b < 0x80 {
  41975. break
  41976. }
  41977. }
  41978. intStringLen := int(stringLen)
  41979. if intStringLen < 0 {
  41980. return ErrInvalidLengthApi
  41981. }
  41982. postIndex := iNdEx + intStringLen
  41983. if postIndex < 0 {
  41984. return ErrInvalidLengthApi
  41985. }
  41986. if postIndex > l {
  41987. return io.ErrUnexpectedEOF
  41988. }
  41989. m.Id = string(dAtA[iNdEx:postIndex])
  41990. iNdEx = postIndex
  41991. case 2:
  41992. if wireType != 2 {
  41993. return fmt.Errorf("proto: wrong wireType = %d for field PodSandboxId", wireType)
  41994. }
  41995. var stringLen uint64
  41996. for shift := uint(0); ; shift += 7 {
  41997. if shift >= 64 {
  41998. return ErrIntOverflowApi
  41999. }
  42000. if iNdEx >= l {
  42001. return io.ErrUnexpectedEOF
  42002. }
  42003. b := dAtA[iNdEx]
  42004. iNdEx++
  42005. stringLen |= uint64(b&0x7F) << shift
  42006. if b < 0x80 {
  42007. break
  42008. }
  42009. }
  42010. intStringLen := int(stringLen)
  42011. if intStringLen < 0 {
  42012. return ErrInvalidLengthApi
  42013. }
  42014. postIndex := iNdEx + intStringLen
  42015. if postIndex < 0 {
  42016. return ErrInvalidLengthApi
  42017. }
  42018. if postIndex > l {
  42019. return io.ErrUnexpectedEOF
  42020. }
  42021. m.PodSandboxId = string(dAtA[iNdEx:postIndex])
  42022. iNdEx = postIndex
  42023. case 3:
  42024. if wireType != 2 {
  42025. return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType)
  42026. }
  42027. var msglen int
  42028. for shift := uint(0); ; shift += 7 {
  42029. if shift >= 64 {
  42030. return ErrIntOverflowApi
  42031. }
  42032. if iNdEx >= l {
  42033. return io.ErrUnexpectedEOF
  42034. }
  42035. b := dAtA[iNdEx]
  42036. iNdEx++
  42037. msglen |= int(b&0x7F) << shift
  42038. if b < 0x80 {
  42039. break
  42040. }
  42041. }
  42042. if msglen < 0 {
  42043. return ErrInvalidLengthApi
  42044. }
  42045. postIndex := iNdEx + msglen
  42046. if postIndex < 0 {
  42047. return ErrInvalidLengthApi
  42048. }
  42049. if postIndex > l {
  42050. return io.ErrUnexpectedEOF
  42051. }
  42052. if m.LabelSelector == nil {
  42053. m.LabelSelector = make(map[string]string)
  42054. }
  42055. var mapkey string
  42056. var mapvalue string
  42057. for iNdEx < postIndex {
  42058. entryPreIndex := iNdEx
  42059. var wire uint64
  42060. for shift := uint(0); ; shift += 7 {
  42061. if shift >= 64 {
  42062. return ErrIntOverflowApi
  42063. }
  42064. if iNdEx >= l {
  42065. return io.ErrUnexpectedEOF
  42066. }
  42067. b := dAtA[iNdEx]
  42068. iNdEx++
  42069. wire |= uint64(b&0x7F) << shift
  42070. if b < 0x80 {
  42071. break
  42072. }
  42073. }
  42074. fieldNum := int32(wire >> 3)
  42075. if fieldNum == 1 {
  42076. var stringLenmapkey uint64
  42077. for shift := uint(0); ; shift += 7 {
  42078. if shift >= 64 {
  42079. return ErrIntOverflowApi
  42080. }
  42081. if iNdEx >= l {
  42082. return io.ErrUnexpectedEOF
  42083. }
  42084. b := dAtA[iNdEx]
  42085. iNdEx++
  42086. stringLenmapkey |= uint64(b&0x7F) << shift
  42087. if b < 0x80 {
  42088. break
  42089. }
  42090. }
  42091. intStringLenmapkey := int(stringLenmapkey)
  42092. if intStringLenmapkey < 0 {
  42093. return ErrInvalidLengthApi
  42094. }
  42095. postStringIndexmapkey := iNdEx + intStringLenmapkey
  42096. if postStringIndexmapkey < 0 {
  42097. return ErrInvalidLengthApi
  42098. }
  42099. if postStringIndexmapkey > l {
  42100. return io.ErrUnexpectedEOF
  42101. }
  42102. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  42103. iNdEx = postStringIndexmapkey
  42104. } else if fieldNum == 2 {
  42105. var stringLenmapvalue uint64
  42106. for shift := uint(0); ; shift += 7 {
  42107. if shift >= 64 {
  42108. return ErrIntOverflowApi
  42109. }
  42110. if iNdEx >= l {
  42111. return io.ErrUnexpectedEOF
  42112. }
  42113. b := dAtA[iNdEx]
  42114. iNdEx++
  42115. stringLenmapvalue |= uint64(b&0x7F) << shift
  42116. if b < 0x80 {
  42117. break
  42118. }
  42119. }
  42120. intStringLenmapvalue := int(stringLenmapvalue)
  42121. if intStringLenmapvalue < 0 {
  42122. return ErrInvalidLengthApi
  42123. }
  42124. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  42125. if postStringIndexmapvalue < 0 {
  42126. return ErrInvalidLengthApi
  42127. }
  42128. if postStringIndexmapvalue > l {
  42129. return io.ErrUnexpectedEOF
  42130. }
  42131. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  42132. iNdEx = postStringIndexmapvalue
  42133. } else {
  42134. iNdEx = entryPreIndex
  42135. skippy, err := skipApi(dAtA[iNdEx:])
  42136. if err != nil {
  42137. return err
  42138. }
  42139. if (skippy < 0) || (iNdEx+skippy) < 0 {
  42140. return ErrInvalidLengthApi
  42141. }
  42142. if (iNdEx + skippy) > postIndex {
  42143. return io.ErrUnexpectedEOF
  42144. }
  42145. iNdEx += skippy
  42146. }
  42147. }
  42148. m.LabelSelector[mapkey] = mapvalue
  42149. iNdEx = postIndex
  42150. default:
  42151. iNdEx = preIndex
  42152. skippy, err := skipApi(dAtA[iNdEx:])
  42153. if err != nil {
  42154. return err
  42155. }
  42156. if (skippy < 0) || (iNdEx+skippy) < 0 {
  42157. return ErrInvalidLengthApi
  42158. }
  42159. if (iNdEx + skippy) > l {
  42160. return io.ErrUnexpectedEOF
  42161. }
  42162. iNdEx += skippy
  42163. }
  42164. }
  42165. if iNdEx > l {
  42166. return io.ErrUnexpectedEOF
  42167. }
  42168. return nil
  42169. }
  42170. func (m *ListContainerStatsResponse) Unmarshal(dAtA []byte) error {
  42171. l := len(dAtA)
  42172. iNdEx := 0
  42173. for iNdEx < l {
  42174. preIndex := iNdEx
  42175. var wire uint64
  42176. for shift := uint(0); ; shift += 7 {
  42177. if shift >= 64 {
  42178. return ErrIntOverflowApi
  42179. }
  42180. if iNdEx >= l {
  42181. return io.ErrUnexpectedEOF
  42182. }
  42183. b := dAtA[iNdEx]
  42184. iNdEx++
  42185. wire |= uint64(b&0x7F) << shift
  42186. if b < 0x80 {
  42187. break
  42188. }
  42189. }
  42190. fieldNum := int32(wire >> 3)
  42191. wireType := int(wire & 0x7)
  42192. if wireType == 4 {
  42193. return fmt.Errorf("proto: ListContainerStatsResponse: wiretype end group for non-group")
  42194. }
  42195. if fieldNum <= 0 {
  42196. return fmt.Errorf("proto: ListContainerStatsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  42197. }
  42198. switch fieldNum {
  42199. case 1:
  42200. if wireType != 2 {
  42201. return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType)
  42202. }
  42203. var msglen int
  42204. for shift := uint(0); ; shift += 7 {
  42205. if shift >= 64 {
  42206. return ErrIntOverflowApi
  42207. }
  42208. if iNdEx >= l {
  42209. return io.ErrUnexpectedEOF
  42210. }
  42211. b := dAtA[iNdEx]
  42212. iNdEx++
  42213. msglen |= int(b&0x7F) << shift
  42214. if b < 0x80 {
  42215. break
  42216. }
  42217. }
  42218. if msglen < 0 {
  42219. return ErrInvalidLengthApi
  42220. }
  42221. postIndex := iNdEx + msglen
  42222. if postIndex < 0 {
  42223. return ErrInvalidLengthApi
  42224. }
  42225. if postIndex > l {
  42226. return io.ErrUnexpectedEOF
  42227. }
  42228. m.Stats = append(m.Stats, &ContainerStats{})
  42229. if err := m.Stats[len(m.Stats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  42230. return err
  42231. }
  42232. iNdEx = postIndex
  42233. default:
  42234. iNdEx = preIndex
  42235. skippy, err := skipApi(dAtA[iNdEx:])
  42236. if err != nil {
  42237. return err
  42238. }
  42239. if (skippy < 0) || (iNdEx+skippy) < 0 {
  42240. return ErrInvalidLengthApi
  42241. }
  42242. if (iNdEx + skippy) > l {
  42243. return io.ErrUnexpectedEOF
  42244. }
  42245. iNdEx += skippy
  42246. }
  42247. }
  42248. if iNdEx > l {
  42249. return io.ErrUnexpectedEOF
  42250. }
  42251. return nil
  42252. }
  42253. func (m *ContainerAttributes) Unmarshal(dAtA []byte) error {
  42254. l := len(dAtA)
  42255. iNdEx := 0
  42256. for iNdEx < l {
  42257. preIndex := iNdEx
  42258. var wire uint64
  42259. for shift := uint(0); ; shift += 7 {
  42260. if shift >= 64 {
  42261. return ErrIntOverflowApi
  42262. }
  42263. if iNdEx >= l {
  42264. return io.ErrUnexpectedEOF
  42265. }
  42266. b := dAtA[iNdEx]
  42267. iNdEx++
  42268. wire |= uint64(b&0x7F) << shift
  42269. if b < 0x80 {
  42270. break
  42271. }
  42272. }
  42273. fieldNum := int32(wire >> 3)
  42274. wireType := int(wire & 0x7)
  42275. if wireType == 4 {
  42276. return fmt.Errorf("proto: ContainerAttributes: wiretype end group for non-group")
  42277. }
  42278. if fieldNum <= 0 {
  42279. return fmt.Errorf("proto: ContainerAttributes: illegal tag %d (wire type %d)", fieldNum, wire)
  42280. }
  42281. switch fieldNum {
  42282. case 1:
  42283. if wireType != 2 {
  42284. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  42285. }
  42286. var stringLen uint64
  42287. for shift := uint(0); ; shift += 7 {
  42288. if shift >= 64 {
  42289. return ErrIntOverflowApi
  42290. }
  42291. if iNdEx >= l {
  42292. return io.ErrUnexpectedEOF
  42293. }
  42294. b := dAtA[iNdEx]
  42295. iNdEx++
  42296. stringLen |= uint64(b&0x7F) << shift
  42297. if b < 0x80 {
  42298. break
  42299. }
  42300. }
  42301. intStringLen := int(stringLen)
  42302. if intStringLen < 0 {
  42303. return ErrInvalidLengthApi
  42304. }
  42305. postIndex := iNdEx + intStringLen
  42306. if postIndex < 0 {
  42307. return ErrInvalidLengthApi
  42308. }
  42309. if postIndex > l {
  42310. return io.ErrUnexpectedEOF
  42311. }
  42312. m.Id = string(dAtA[iNdEx:postIndex])
  42313. iNdEx = postIndex
  42314. case 2:
  42315. if wireType != 2 {
  42316. return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
  42317. }
  42318. var msglen int
  42319. for shift := uint(0); ; shift += 7 {
  42320. if shift >= 64 {
  42321. return ErrIntOverflowApi
  42322. }
  42323. if iNdEx >= l {
  42324. return io.ErrUnexpectedEOF
  42325. }
  42326. b := dAtA[iNdEx]
  42327. iNdEx++
  42328. msglen |= int(b&0x7F) << shift
  42329. if b < 0x80 {
  42330. break
  42331. }
  42332. }
  42333. if msglen < 0 {
  42334. return ErrInvalidLengthApi
  42335. }
  42336. postIndex := iNdEx + msglen
  42337. if postIndex < 0 {
  42338. return ErrInvalidLengthApi
  42339. }
  42340. if postIndex > l {
  42341. return io.ErrUnexpectedEOF
  42342. }
  42343. if m.Metadata == nil {
  42344. m.Metadata = &ContainerMetadata{}
  42345. }
  42346. if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  42347. return err
  42348. }
  42349. iNdEx = postIndex
  42350. case 3:
  42351. if wireType != 2 {
  42352. return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  42353. }
  42354. var msglen int
  42355. for shift := uint(0); ; shift += 7 {
  42356. if shift >= 64 {
  42357. return ErrIntOverflowApi
  42358. }
  42359. if iNdEx >= l {
  42360. return io.ErrUnexpectedEOF
  42361. }
  42362. b := dAtA[iNdEx]
  42363. iNdEx++
  42364. msglen |= int(b&0x7F) << shift
  42365. if b < 0x80 {
  42366. break
  42367. }
  42368. }
  42369. if msglen < 0 {
  42370. return ErrInvalidLengthApi
  42371. }
  42372. postIndex := iNdEx + msglen
  42373. if postIndex < 0 {
  42374. return ErrInvalidLengthApi
  42375. }
  42376. if postIndex > l {
  42377. return io.ErrUnexpectedEOF
  42378. }
  42379. if m.Labels == nil {
  42380. m.Labels = make(map[string]string)
  42381. }
  42382. var mapkey string
  42383. var mapvalue string
  42384. for iNdEx < postIndex {
  42385. entryPreIndex := iNdEx
  42386. var wire uint64
  42387. for shift := uint(0); ; shift += 7 {
  42388. if shift >= 64 {
  42389. return ErrIntOverflowApi
  42390. }
  42391. if iNdEx >= l {
  42392. return io.ErrUnexpectedEOF
  42393. }
  42394. b := dAtA[iNdEx]
  42395. iNdEx++
  42396. wire |= uint64(b&0x7F) << shift
  42397. if b < 0x80 {
  42398. break
  42399. }
  42400. }
  42401. fieldNum := int32(wire >> 3)
  42402. if fieldNum == 1 {
  42403. var stringLenmapkey uint64
  42404. for shift := uint(0); ; shift += 7 {
  42405. if shift >= 64 {
  42406. return ErrIntOverflowApi
  42407. }
  42408. if iNdEx >= l {
  42409. return io.ErrUnexpectedEOF
  42410. }
  42411. b := dAtA[iNdEx]
  42412. iNdEx++
  42413. stringLenmapkey |= uint64(b&0x7F) << shift
  42414. if b < 0x80 {
  42415. break
  42416. }
  42417. }
  42418. intStringLenmapkey := int(stringLenmapkey)
  42419. if intStringLenmapkey < 0 {
  42420. return ErrInvalidLengthApi
  42421. }
  42422. postStringIndexmapkey := iNdEx + intStringLenmapkey
  42423. if postStringIndexmapkey < 0 {
  42424. return ErrInvalidLengthApi
  42425. }
  42426. if postStringIndexmapkey > l {
  42427. return io.ErrUnexpectedEOF
  42428. }
  42429. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  42430. iNdEx = postStringIndexmapkey
  42431. } else if fieldNum == 2 {
  42432. var stringLenmapvalue uint64
  42433. for shift := uint(0); ; shift += 7 {
  42434. if shift >= 64 {
  42435. return ErrIntOverflowApi
  42436. }
  42437. if iNdEx >= l {
  42438. return io.ErrUnexpectedEOF
  42439. }
  42440. b := dAtA[iNdEx]
  42441. iNdEx++
  42442. stringLenmapvalue |= uint64(b&0x7F) << shift
  42443. if b < 0x80 {
  42444. break
  42445. }
  42446. }
  42447. intStringLenmapvalue := int(stringLenmapvalue)
  42448. if intStringLenmapvalue < 0 {
  42449. return ErrInvalidLengthApi
  42450. }
  42451. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  42452. if postStringIndexmapvalue < 0 {
  42453. return ErrInvalidLengthApi
  42454. }
  42455. if postStringIndexmapvalue > l {
  42456. return io.ErrUnexpectedEOF
  42457. }
  42458. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  42459. iNdEx = postStringIndexmapvalue
  42460. } else {
  42461. iNdEx = entryPreIndex
  42462. skippy, err := skipApi(dAtA[iNdEx:])
  42463. if err != nil {
  42464. return err
  42465. }
  42466. if (skippy < 0) || (iNdEx+skippy) < 0 {
  42467. return ErrInvalidLengthApi
  42468. }
  42469. if (iNdEx + skippy) > postIndex {
  42470. return io.ErrUnexpectedEOF
  42471. }
  42472. iNdEx += skippy
  42473. }
  42474. }
  42475. m.Labels[mapkey] = mapvalue
  42476. iNdEx = postIndex
  42477. case 4:
  42478. if wireType != 2 {
  42479. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  42480. }
  42481. var msglen int
  42482. for shift := uint(0); ; shift += 7 {
  42483. if shift >= 64 {
  42484. return ErrIntOverflowApi
  42485. }
  42486. if iNdEx >= l {
  42487. return io.ErrUnexpectedEOF
  42488. }
  42489. b := dAtA[iNdEx]
  42490. iNdEx++
  42491. msglen |= int(b&0x7F) << shift
  42492. if b < 0x80 {
  42493. break
  42494. }
  42495. }
  42496. if msglen < 0 {
  42497. return ErrInvalidLengthApi
  42498. }
  42499. postIndex := iNdEx + msglen
  42500. if postIndex < 0 {
  42501. return ErrInvalidLengthApi
  42502. }
  42503. if postIndex > l {
  42504. return io.ErrUnexpectedEOF
  42505. }
  42506. if m.Annotations == nil {
  42507. m.Annotations = make(map[string]string)
  42508. }
  42509. var mapkey string
  42510. var mapvalue string
  42511. for iNdEx < postIndex {
  42512. entryPreIndex := iNdEx
  42513. var wire uint64
  42514. for shift := uint(0); ; shift += 7 {
  42515. if shift >= 64 {
  42516. return ErrIntOverflowApi
  42517. }
  42518. if iNdEx >= l {
  42519. return io.ErrUnexpectedEOF
  42520. }
  42521. b := dAtA[iNdEx]
  42522. iNdEx++
  42523. wire |= uint64(b&0x7F) << shift
  42524. if b < 0x80 {
  42525. break
  42526. }
  42527. }
  42528. fieldNum := int32(wire >> 3)
  42529. if fieldNum == 1 {
  42530. var stringLenmapkey uint64
  42531. for shift := uint(0); ; shift += 7 {
  42532. if shift >= 64 {
  42533. return ErrIntOverflowApi
  42534. }
  42535. if iNdEx >= l {
  42536. return io.ErrUnexpectedEOF
  42537. }
  42538. b := dAtA[iNdEx]
  42539. iNdEx++
  42540. stringLenmapkey |= uint64(b&0x7F) << shift
  42541. if b < 0x80 {
  42542. break
  42543. }
  42544. }
  42545. intStringLenmapkey := int(stringLenmapkey)
  42546. if intStringLenmapkey < 0 {
  42547. return ErrInvalidLengthApi
  42548. }
  42549. postStringIndexmapkey := iNdEx + intStringLenmapkey
  42550. if postStringIndexmapkey < 0 {
  42551. return ErrInvalidLengthApi
  42552. }
  42553. if postStringIndexmapkey > l {
  42554. return io.ErrUnexpectedEOF
  42555. }
  42556. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  42557. iNdEx = postStringIndexmapkey
  42558. } else if fieldNum == 2 {
  42559. var stringLenmapvalue uint64
  42560. for shift := uint(0); ; shift += 7 {
  42561. if shift >= 64 {
  42562. return ErrIntOverflowApi
  42563. }
  42564. if iNdEx >= l {
  42565. return io.ErrUnexpectedEOF
  42566. }
  42567. b := dAtA[iNdEx]
  42568. iNdEx++
  42569. stringLenmapvalue |= uint64(b&0x7F) << shift
  42570. if b < 0x80 {
  42571. break
  42572. }
  42573. }
  42574. intStringLenmapvalue := int(stringLenmapvalue)
  42575. if intStringLenmapvalue < 0 {
  42576. return ErrInvalidLengthApi
  42577. }
  42578. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  42579. if postStringIndexmapvalue < 0 {
  42580. return ErrInvalidLengthApi
  42581. }
  42582. if postStringIndexmapvalue > l {
  42583. return io.ErrUnexpectedEOF
  42584. }
  42585. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  42586. iNdEx = postStringIndexmapvalue
  42587. } else {
  42588. iNdEx = entryPreIndex
  42589. skippy, err := skipApi(dAtA[iNdEx:])
  42590. if err != nil {
  42591. return err
  42592. }
  42593. if (skippy < 0) || (iNdEx+skippy) < 0 {
  42594. return ErrInvalidLengthApi
  42595. }
  42596. if (iNdEx + skippy) > postIndex {
  42597. return io.ErrUnexpectedEOF
  42598. }
  42599. iNdEx += skippy
  42600. }
  42601. }
  42602. m.Annotations[mapkey] = mapvalue
  42603. iNdEx = postIndex
  42604. default:
  42605. iNdEx = preIndex
  42606. skippy, err := skipApi(dAtA[iNdEx:])
  42607. if err != nil {
  42608. return err
  42609. }
  42610. if (skippy < 0) || (iNdEx+skippy) < 0 {
  42611. return ErrInvalidLengthApi
  42612. }
  42613. if (iNdEx + skippy) > l {
  42614. return io.ErrUnexpectedEOF
  42615. }
  42616. iNdEx += skippy
  42617. }
  42618. }
  42619. if iNdEx > l {
  42620. return io.ErrUnexpectedEOF
  42621. }
  42622. return nil
  42623. }
  42624. func (m *ContainerStats) Unmarshal(dAtA []byte) error {
  42625. l := len(dAtA)
  42626. iNdEx := 0
  42627. for iNdEx < l {
  42628. preIndex := iNdEx
  42629. var wire uint64
  42630. for shift := uint(0); ; shift += 7 {
  42631. if shift >= 64 {
  42632. return ErrIntOverflowApi
  42633. }
  42634. if iNdEx >= l {
  42635. return io.ErrUnexpectedEOF
  42636. }
  42637. b := dAtA[iNdEx]
  42638. iNdEx++
  42639. wire |= uint64(b&0x7F) << shift
  42640. if b < 0x80 {
  42641. break
  42642. }
  42643. }
  42644. fieldNum := int32(wire >> 3)
  42645. wireType := int(wire & 0x7)
  42646. if wireType == 4 {
  42647. return fmt.Errorf("proto: ContainerStats: wiretype end group for non-group")
  42648. }
  42649. if fieldNum <= 0 {
  42650. return fmt.Errorf("proto: ContainerStats: illegal tag %d (wire type %d)", fieldNum, wire)
  42651. }
  42652. switch fieldNum {
  42653. case 1:
  42654. if wireType != 2 {
  42655. return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType)
  42656. }
  42657. var msglen int
  42658. for shift := uint(0); ; shift += 7 {
  42659. if shift >= 64 {
  42660. return ErrIntOverflowApi
  42661. }
  42662. if iNdEx >= l {
  42663. return io.ErrUnexpectedEOF
  42664. }
  42665. b := dAtA[iNdEx]
  42666. iNdEx++
  42667. msglen |= int(b&0x7F) << shift
  42668. if b < 0x80 {
  42669. break
  42670. }
  42671. }
  42672. if msglen < 0 {
  42673. return ErrInvalidLengthApi
  42674. }
  42675. postIndex := iNdEx + msglen
  42676. if postIndex < 0 {
  42677. return ErrInvalidLengthApi
  42678. }
  42679. if postIndex > l {
  42680. return io.ErrUnexpectedEOF
  42681. }
  42682. if m.Attributes == nil {
  42683. m.Attributes = &ContainerAttributes{}
  42684. }
  42685. if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  42686. return err
  42687. }
  42688. iNdEx = postIndex
  42689. case 2:
  42690. if wireType != 2 {
  42691. return fmt.Errorf("proto: wrong wireType = %d for field Cpu", wireType)
  42692. }
  42693. var msglen int
  42694. for shift := uint(0); ; shift += 7 {
  42695. if shift >= 64 {
  42696. return ErrIntOverflowApi
  42697. }
  42698. if iNdEx >= l {
  42699. return io.ErrUnexpectedEOF
  42700. }
  42701. b := dAtA[iNdEx]
  42702. iNdEx++
  42703. msglen |= int(b&0x7F) << shift
  42704. if b < 0x80 {
  42705. break
  42706. }
  42707. }
  42708. if msglen < 0 {
  42709. return ErrInvalidLengthApi
  42710. }
  42711. postIndex := iNdEx + msglen
  42712. if postIndex < 0 {
  42713. return ErrInvalidLengthApi
  42714. }
  42715. if postIndex > l {
  42716. return io.ErrUnexpectedEOF
  42717. }
  42718. if m.Cpu == nil {
  42719. m.Cpu = &CpuUsage{}
  42720. }
  42721. if err := m.Cpu.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  42722. return err
  42723. }
  42724. iNdEx = postIndex
  42725. case 3:
  42726. if wireType != 2 {
  42727. return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType)
  42728. }
  42729. var msglen int
  42730. for shift := uint(0); ; shift += 7 {
  42731. if shift >= 64 {
  42732. return ErrIntOverflowApi
  42733. }
  42734. if iNdEx >= l {
  42735. return io.ErrUnexpectedEOF
  42736. }
  42737. b := dAtA[iNdEx]
  42738. iNdEx++
  42739. msglen |= int(b&0x7F) << shift
  42740. if b < 0x80 {
  42741. break
  42742. }
  42743. }
  42744. if msglen < 0 {
  42745. return ErrInvalidLengthApi
  42746. }
  42747. postIndex := iNdEx + msglen
  42748. if postIndex < 0 {
  42749. return ErrInvalidLengthApi
  42750. }
  42751. if postIndex > l {
  42752. return io.ErrUnexpectedEOF
  42753. }
  42754. if m.Memory == nil {
  42755. m.Memory = &MemoryUsage{}
  42756. }
  42757. if err := m.Memory.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  42758. return err
  42759. }
  42760. iNdEx = postIndex
  42761. case 4:
  42762. if wireType != 2 {
  42763. return fmt.Errorf("proto: wrong wireType = %d for field WritableLayer", wireType)
  42764. }
  42765. var msglen int
  42766. for shift := uint(0); ; shift += 7 {
  42767. if shift >= 64 {
  42768. return ErrIntOverflowApi
  42769. }
  42770. if iNdEx >= l {
  42771. return io.ErrUnexpectedEOF
  42772. }
  42773. b := dAtA[iNdEx]
  42774. iNdEx++
  42775. msglen |= int(b&0x7F) << shift
  42776. if b < 0x80 {
  42777. break
  42778. }
  42779. }
  42780. if msglen < 0 {
  42781. return ErrInvalidLengthApi
  42782. }
  42783. postIndex := iNdEx + msglen
  42784. if postIndex < 0 {
  42785. return ErrInvalidLengthApi
  42786. }
  42787. if postIndex > l {
  42788. return io.ErrUnexpectedEOF
  42789. }
  42790. if m.WritableLayer == nil {
  42791. m.WritableLayer = &FilesystemUsage{}
  42792. }
  42793. if err := m.WritableLayer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  42794. return err
  42795. }
  42796. iNdEx = postIndex
  42797. case 5:
  42798. if wireType != 2 {
  42799. return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType)
  42800. }
  42801. var msglen int
  42802. for shift := uint(0); ; shift += 7 {
  42803. if shift >= 64 {
  42804. return ErrIntOverflowApi
  42805. }
  42806. if iNdEx >= l {
  42807. return io.ErrUnexpectedEOF
  42808. }
  42809. b := dAtA[iNdEx]
  42810. iNdEx++
  42811. msglen |= int(b&0x7F) << shift
  42812. if b < 0x80 {
  42813. break
  42814. }
  42815. }
  42816. if msglen < 0 {
  42817. return ErrInvalidLengthApi
  42818. }
  42819. postIndex := iNdEx + msglen
  42820. if postIndex < 0 {
  42821. return ErrInvalidLengthApi
  42822. }
  42823. if postIndex > l {
  42824. return io.ErrUnexpectedEOF
  42825. }
  42826. if m.Swap == nil {
  42827. m.Swap = &SwapUsage{}
  42828. }
  42829. if err := m.Swap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  42830. return err
  42831. }
  42832. iNdEx = postIndex
  42833. default:
  42834. iNdEx = preIndex
  42835. skippy, err := skipApi(dAtA[iNdEx:])
  42836. if err != nil {
  42837. return err
  42838. }
  42839. if (skippy < 0) || (iNdEx+skippy) < 0 {
  42840. return ErrInvalidLengthApi
  42841. }
  42842. if (iNdEx + skippy) > l {
  42843. return io.ErrUnexpectedEOF
  42844. }
  42845. iNdEx += skippy
  42846. }
  42847. }
  42848. if iNdEx > l {
  42849. return io.ErrUnexpectedEOF
  42850. }
  42851. return nil
  42852. }
  42853. func (m *WindowsContainerStats) Unmarshal(dAtA []byte) error {
  42854. l := len(dAtA)
  42855. iNdEx := 0
  42856. for iNdEx < l {
  42857. preIndex := iNdEx
  42858. var wire uint64
  42859. for shift := uint(0); ; shift += 7 {
  42860. if shift >= 64 {
  42861. return ErrIntOverflowApi
  42862. }
  42863. if iNdEx >= l {
  42864. return io.ErrUnexpectedEOF
  42865. }
  42866. b := dAtA[iNdEx]
  42867. iNdEx++
  42868. wire |= uint64(b&0x7F) << shift
  42869. if b < 0x80 {
  42870. break
  42871. }
  42872. }
  42873. fieldNum := int32(wire >> 3)
  42874. wireType := int(wire & 0x7)
  42875. if wireType == 4 {
  42876. return fmt.Errorf("proto: WindowsContainerStats: wiretype end group for non-group")
  42877. }
  42878. if fieldNum <= 0 {
  42879. return fmt.Errorf("proto: WindowsContainerStats: illegal tag %d (wire type %d)", fieldNum, wire)
  42880. }
  42881. switch fieldNum {
  42882. case 1:
  42883. if wireType != 2 {
  42884. return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType)
  42885. }
  42886. var msglen int
  42887. for shift := uint(0); ; shift += 7 {
  42888. if shift >= 64 {
  42889. return ErrIntOverflowApi
  42890. }
  42891. if iNdEx >= l {
  42892. return io.ErrUnexpectedEOF
  42893. }
  42894. b := dAtA[iNdEx]
  42895. iNdEx++
  42896. msglen |= int(b&0x7F) << shift
  42897. if b < 0x80 {
  42898. break
  42899. }
  42900. }
  42901. if msglen < 0 {
  42902. return ErrInvalidLengthApi
  42903. }
  42904. postIndex := iNdEx + msglen
  42905. if postIndex < 0 {
  42906. return ErrInvalidLengthApi
  42907. }
  42908. if postIndex > l {
  42909. return io.ErrUnexpectedEOF
  42910. }
  42911. if m.Attributes == nil {
  42912. m.Attributes = &ContainerAttributes{}
  42913. }
  42914. if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  42915. return err
  42916. }
  42917. iNdEx = postIndex
  42918. case 2:
  42919. if wireType != 2 {
  42920. return fmt.Errorf("proto: wrong wireType = %d for field Cpu", wireType)
  42921. }
  42922. var msglen int
  42923. for shift := uint(0); ; shift += 7 {
  42924. if shift >= 64 {
  42925. return ErrIntOverflowApi
  42926. }
  42927. if iNdEx >= l {
  42928. return io.ErrUnexpectedEOF
  42929. }
  42930. b := dAtA[iNdEx]
  42931. iNdEx++
  42932. msglen |= int(b&0x7F) << shift
  42933. if b < 0x80 {
  42934. break
  42935. }
  42936. }
  42937. if msglen < 0 {
  42938. return ErrInvalidLengthApi
  42939. }
  42940. postIndex := iNdEx + msglen
  42941. if postIndex < 0 {
  42942. return ErrInvalidLengthApi
  42943. }
  42944. if postIndex > l {
  42945. return io.ErrUnexpectedEOF
  42946. }
  42947. if m.Cpu == nil {
  42948. m.Cpu = &WindowsCpuUsage{}
  42949. }
  42950. if err := m.Cpu.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  42951. return err
  42952. }
  42953. iNdEx = postIndex
  42954. case 3:
  42955. if wireType != 2 {
  42956. return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType)
  42957. }
  42958. var msglen int
  42959. for shift := uint(0); ; shift += 7 {
  42960. if shift >= 64 {
  42961. return ErrIntOverflowApi
  42962. }
  42963. if iNdEx >= l {
  42964. return io.ErrUnexpectedEOF
  42965. }
  42966. b := dAtA[iNdEx]
  42967. iNdEx++
  42968. msglen |= int(b&0x7F) << shift
  42969. if b < 0x80 {
  42970. break
  42971. }
  42972. }
  42973. if msglen < 0 {
  42974. return ErrInvalidLengthApi
  42975. }
  42976. postIndex := iNdEx + msglen
  42977. if postIndex < 0 {
  42978. return ErrInvalidLengthApi
  42979. }
  42980. if postIndex > l {
  42981. return io.ErrUnexpectedEOF
  42982. }
  42983. if m.Memory == nil {
  42984. m.Memory = &WindowsMemoryUsage{}
  42985. }
  42986. if err := m.Memory.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  42987. return err
  42988. }
  42989. iNdEx = postIndex
  42990. case 4:
  42991. if wireType != 2 {
  42992. return fmt.Errorf("proto: wrong wireType = %d for field WritableLayer", wireType)
  42993. }
  42994. var msglen int
  42995. for shift := uint(0); ; shift += 7 {
  42996. if shift >= 64 {
  42997. return ErrIntOverflowApi
  42998. }
  42999. if iNdEx >= l {
  43000. return io.ErrUnexpectedEOF
  43001. }
  43002. b := dAtA[iNdEx]
  43003. iNdEx++
  43004. msglen |= int(b&0x7F) << shift
  43005. if b < 0x80 {
  43006. break
  43007. }
  43008. }
  43009. if msglen < 0 {
  43010. return ErrInvalidLengthApi
  43011. }
  43012. postIndex := iNdEx + msglen
  43013. if postIndex < 0 {
  43014. return ErrInvalidLengthApi
  43015. }
  43016. if postIndex > l {
  43017. return io.ErrUnexpectedEOF
  43018. }
  43019. if m.WritableLayer == nil {
  43020. m.WritableLayer = &WindowsFilesystemUsage{}
  43021. }
  43022. if err := m.WritableLayer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43023. return err
  43024. }
  43025. iNdEx = postIndex
  43026. default:
  43027. iNdEx = preIndex
  43028. skippy, err := skipApi(dAtA[iNdEx:])
  43029. if err != nil {
  43030. return err
  43031. }
  43032. if (skippy < 0) || (iNdEx+skippy) < 0 {
  43033. return ErrInvalidLengthApi
  43034. }
  43035. if (iNdEx + skippy) > l {
  43036. return io.ErrUnexpectedEOF
  43037. }
  43038. iNdEx += skippy
  43039. }
  43040. }
  43041. if iNdEx > l {
  43042. return io.ErrUnexpectedEOF
  43043. }
  43044. return nil
  43045. }
  43046. func (m *CpuUsage) Unmarshal(dAtA []byte) error {
  43047. l := len(dAtA)
  43048. iNdEx := 0
  43049. for iNdEx < l {
  43050. preIndex := iNdEx
  43051. var wire uint64
  43052. for shift := uint(0); ; shift += 7 {
  43053. if shift >= 64 {
  43054. return ErrIntOverflowApi
  43055. }
  43056. if iNdEx >= l {
  43057. return io.ErrUnexpectedEOF
  43058. }
  43059. b := dAtA[iNdEx]
  43060. iNdEx++
  43061. wire |= uint64(b&0x7F) << shift
  43062. if b < 0x80 {
  43063. break
  43064. }
  43065. }
  43066. fieldNum := int32(wire >> 3)
  43067. wireType := int(wire & 0x7)
  43068. if wireType == 4 {
  43069. return fmt.Errorf("proto: CpuUsage: wiretype end group for non-group")
  43070. }
  43071. if fieldNum <= 0 {
  43072. return fmt.Errorf("proto: CpuUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  43073. }
  43074. switch fieldNum {
  43075. case 1:
  43076. if wireType != 0 {
  43077. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  43078. }
  43079. m.Timestamp = 0
  43080. for shift := uint(0); ; shift += 7 {
  43081. if shift >= 64 {
  43082. return ErrIntOverflowApi
  43083. }
  43084. if iNdEx >= l {
  43085. return io.ErrUnexpectedEOF
  43086. }
  43087. b := dAtA[iNdEx]
  43088. iNdEx++
  43089. m.Timestamp |= int64(b&0x7F) << shift
  43090. if b < 0x80 {
  43091. break
  43092. }
  43093. }
  43094. case 2:
  43095. if wireType != 2 {
  43096. return fmt.Errorf("proto: wrong wireType = %d for field UsageCoreNanoSeconds", wireType)
  43097. }
  43098. var msglen int
  43099. for shift := uint(0); ; shift += 7 {
  43100. if shift >= 64 {
  43101. return ErrIntOverflowApi
  43102. }
  43103. if iNdEx >= l {
  43104. return io.ErrUnexpectedEOF
  43105. }
  43106. b := dAtA[iNdEx]
  43107. iNdEx++
  43108. msglen |= int(b&0x7F) << shift
  43109. if b < 0x80 {
  43110. break
  43111. }
  43112. }
  43113. if msglen < 0 {
  43114. return ErrInvalidLengthApi
  43115. }
  43116. postIndex := iNdEx + msglen
  43117. if postIndex < 0 {
  43118. return ErrInvalidLengthApi
  43119. }
  43120. if postIndex > l {
  43121. return io.ErrUnexpectedEOF
  43122. }
  43123. if m.UsageCoreNanoSeconds == nil {
  43124. m.UsageCoreNanoSeconds = &UInt64Value{}
  43125. }
  43126. if err := m.UsageCoreNanoSeconds.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43127. return err
  43128. }
  43129. iNdEx = postIndex
  43130. case 3:
  43131. if wireType != 2 {
  43132. return fmt.Errorf("proto: wrong wireType = %d for field UsageNanoCores", wireType)
  43133. }
  43134. var msglen int
  43135. for shift := uint(0); ; shift += 7 {
  43136. if shift >= 64 {
  43137. return ErrIntOverflowApi
  43138. }
  43139. if iNdEx >= l {
  43140. return io.ErrUnexpectedEOF
  43141. }
  43142. b := dAtA[iNdEx]
  43143. iNdEx++
  43144. msglen |= int(b&0x7F) << shift
  43145. if b < 0x80 {
  43146. break
  43147. }
  43148. }
  43149. if msglen < 0 {
  43150. return ErrInvalidLengthApi
  43151. }
  43152. postIndex := iNdEx + msglen
  43153. if postIndex < 0 {
  43154. return ErrInvalidLengthApi
  43155. }
  43156. if postIndex > l {
  43157. return io.ErrUnexpectedEOF
  43158. }
  43159. if m.UsageNanoCores == nil {
  43160. m.UsageNanoCores = &UInt64Value{}
  43161. }
  43162. if err := m.UsageNanoCores.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43163. return err
  43164. }
  43165. iNdEx = postIndex
  43166. default:
  43167. iNdEx = preIndex
  43168. skippy, err := skipApi(dAtA[iNdEx:])
  43169. if err != nil {
  43170. return err
  43171. }
  43172. if (skippy < 0) || (iNdEx+skippy) < 0 {
  43173. return ErrInvalidLengthApi
  43174. }
  43175. if (iNdEx + skippy) > l {
  43176. return io.ErrUnexpectedEOF
  43177. }
  43178. iNdEx += skippy
  43179. }
  43180. }
  43181. if iNdEx > l {
  43182. return io.ErrUnexpectedEOF
  43183. }
  43184. return nil
  43185. }
  43186. func (m *WindowsCpuUsage) Unmarshal(dAtA []byte) error {
  43187. l := len(dAtA)
  43188. iNdEx := 0
  43189. for iNdEx < l {
  43190. preIndex := iNdEx
  43191. var wire uint64
  43192. for shift := uint(0); ; shift += 7 {
  43193. if shift >= 64 {
  43194. return ErrIntOverflowApi
  43195. }
  43196. if iNdEx >= l {
  43197. return io.ErrUnexpectedEOF
  43198. }
  43199. b := dAtA[iNdEx]
  43200. iNdEx++
  43201. wire |= uint64(b&0x7F) << shift
  43202. if b < 0x80 {
  43203. break
  43204. }
  43205. }
  43206. fieldNum := int32(wire >> 3)
  43207. wireType := int(wire & 0x7)
  43208. if wireType == 4 {
  43209. return fmt.Errorf("proto: WindowsCpuUsage: wiretype end group for non-group")
  43210. }
  43211. if fieldNum <= 0 {
  43212. return fmt.Errorf("proto: WindowsCpuUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  43213. }
  43214. switch fieldNum {
  43215. case 1:
  43216. if wireType != 0 {
  43217. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  43218. }
  43219. m.Timestamp = 0
  43220. for shift := uint(0); ; shift += 7 {
  43221. if shift >= 64 {
  43222. return ErrIntOverflowApi
  43223. }
  43224. if iNdEx >= l {
  43225. return io.ErrUnexpectedEOF
  43226. }
  43227. b := dAtA[iNdEx]
  43228. iNdEx++
  43229. m.Timestamp |= int64(b&0x7F) << shift
  43230. if b < 0x80 {
  43231. break
  43232. }
  43233. }
  43234. case 2:
  43235. if wireType != 2 {
  43236. return fmt.Errorf("proto: wrong wireType = %d for field UsageCoreNanoSeconds", wireType)
  43237. }
  43238. var msglen int
  43239. for shift := uint(0); ; shift += 7 {
  43240. if shift >= 64 {
  43241. return ErrIntOverflowApi
  43242. }
  43243. if iNdEx >= l {
  43244. return io.ErrUnexpectedEOF
  43245. }
  43246. b := dAtA[iNdEx]
  43247. iNdEx++
  43248. msglen |= int(b&0x7F) << shift
  43249. if b < 0x80 {
  43250. break
  43251. }
  43252. }
  43253. if msglen < 0 {
  43254. return ErrInvalidLengthApi
  43255. }
  43256. postIndex := iNdEx + msglen
  43257. if postIndex < 0 {
  43258. return ErrInvalidLengthApi
  43259. }
  43260. if postIndex > l {
  43261. return io.ErrUnexpectedEOF
  43262. }
  43263. if m.UsageCoreNanoSeconds == nil {
  43264. m.UsageCoreNanoSeconds = &UInt64Value{}
  43265. }
  43266. if err := m.UsageCoreNanoSeconds.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43267. return err
  43268. }
  43269. iNdEx = postIndex
  43270. case 3:
  43271. if wireType != 2 {
  43272. return fmt.Errorf("proto: wrong wireType = %d for field UsageNanoCores", wireType)
  43273. }
  43274. var msglen int
  43275. for shift := uint(0); ; shift += 7 {
  43276. if shift >= 64 {
  43277. return ErrIntOverflowApi
  43278. }
  43279. if iNdEx >= l {
  43280. return io.ErrUnexpectedEOF
  43281. }
  43282. b := dAtA[iNdEx]
  43283. iNdEx++
  43284. msglen |= int(b&0x7F) << shift
  43285. if b < 0x80 {
  43286. break
  43287. }
  43288. }
  43289. if msglen < 0 {
  43290. return ErrInvalidLengthApi
  43291. }
  43292. postIndex := iNdEx + msglen
  43293. if postIndex < 0 {
  43294. return ErrInvalidLengthApi
  43295. }
  43296. if postIndex > l {
  43297. return io.ErrUnexpectedEOF
  43298. }
  43299. if m.UsageNanoCores == nil {
  43300. m.UsageNanoCores = &UInt64Value{}
  43301. }
  43302. if err := m.UsageNanoCores.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43303. return err
  43304. }
  43305. iNdEx = postIndex
  43306. default:
  43307. iNdEx = preIndex
  43308. skippy, err := skipApi(dAtA[iNdEx:])
  43309. if err != nil {
  43310. return err
  43311. }
  43312. if (skippy < 0) || (iNdEx+skippy) < 0 {
  43313. return ErrInvalidLengthApi
  43314. }
  43315. if (iNdEx + skippy) > l {
  43316. return io.ErrUnexpectedEOF
  43317. }
  43318. iNdEx += skippy
  43319. }
  43320. }
  43321. if iNdEx > l {
  43322. return io.ErrUnexpectedEOF
  43323. }
  43324. return nil
  43325. }
  43326. func (m *MemoryUsage) Unmarshal(dAtA []byte) error {
  43327. l := len(dAtA)
  43328. iNdEx := 0
  43329. for iNdEx < l {
  43330. preIndex := iNdEx
  43331. var wire uint64
  43332. for shift := uint(0); ; shift += 7 {
  43333. if shift >= 64 {
  43334. return ErrIntOverflowApi
  43335. }
  43336. if iNdEx >= l {
  43337. return io.ErrUnexpectedEOF
  43338. }
  43339. b := dAtA[iNdEx]
  43340. iNdEx++
  43341. wire |= uint64(b&0x7F) << shift
  43342. if b < 0x80 {
  43343. break
  43344. }
  43345. }
  43346. fieldNum := int32(wire >> 3)
  43347. wireType := int(wire & 0x7)
  43348. if wireType == 4 {
  43349. return fmt.Errorf("proto: MemoryUsage: wiretype end group for non-group")
  43350. }
  43351. if fieldNum <= 0 {
  43352. return fmt.Errorf("proto: MemoryUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  43353. }
  43354. switch fieldNum {
  43355. case 1:
  43356. if wireType != 0 {
  43357. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  43358. }
  43359. m.Timestamp = 0
  43360. for shift := uint(0); ; shift += 7 {
  43361. if shift >= 64 {
  43362. return ErrIntOverflowApi
  43363. }
  43364. if iNdEx >= l {
  43365. return io.ErrUnexpectedEOF
  43366. }
  43367. b := dAtA[iNdEx]
  43368. iNdEx++
  43369. m.Timestamp |= int64(b&0x7F) << shift
  43370. if b < 0x80 {
  43371. break
  43372. }
  43373. }
  43374. case 2:
  43375. if wireType != 2 {
  43376. return fmt.Errorf("proto: wrong wireType = %d for field WorkingSetBytes", wireType)
  43377. }
  43378. var msglen int
  43379. for shift := uint(0); ; shift += 7 {
  43380. if shift >= 64 {
  43381. return ErrIntOverflowApi
  43382. }
  43383. if iNdEx >= l {
  43384. return io.ErrUnexpectedEOF
  43385. }
  43386. b := dAtA[iNdEx]
  43387. iNdEx++
  43388. msglen |= int(b&0x7F) << shift
  43389. if b < 0x80 {
  43390. break
  43391. }
  43392. }
  43393. if msglen < 0 {
  43394. return ErrInvalidLengthApi
  43395. }
  43396. postIndex := iNdEx + msglen
  43397. if postIndex < 0 {
  43398. return ErrInvalidLengthApi
  43399. }
  43400. if postIndex > l {
  43401. return io.ErrUnexpectedEOF
  43402. }
  43403. if m.WorkingSetBytes == nil {
  43404. m.WorkingSetBytes = &UInt64Value{}
  43405. }
  43406. if err := m.WorkingSetBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43407. return err
  43408. }
  43409. iNdEx = postIndex
  43410. case 3:
  43411. if wireType != 2 {
  43412. return fmt.Errorf("proto: wrong wireType = %d for field AvailableBytes", wireType)
  43413. }
  43414. var msglen int
  43415. for shift := uint(0); ; shift += 7 {
  43416. if shift >= 64 {
  43417. return ErrIntOverflowApi
  43418. }
  43419. if iNdEx >= l {
  43420. return io.ErrUnexpectedEOF
  43421. }
  43422. b := dAtA[iNdEx]
  43423. iNdEx++
  43424. msglen |= int(b&0x7F) << shift
  43425. if b < 0x80 {
  43426. break
  43427. }
  43428. }
  43429. if msglen < 0 {
  43430. return ErrInvalidLengthApi
  43431. }
  43432. postIndex := iNdEx + msglen
  43433. if postIndex < 0 {
  43434. return ErrInvalidLengthApi
  43435. }
  43436. if postIndex > l {
  43437. return io.ErrUnexpectedEOF
  43438. }
  43439. if m.AvailableBytes == nil {
  43440. m.AvailableBytes = &UInt64Value{}
  43441. }
  43442. if err := m.AvailableBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43443. return err
  43444. }
  43445. iNdEx = postIndex
  43446. case 4:
  43447. if wireType != 2 {
  43448. return fmt.Errorf("proto: wrong wireType = %d for field UsageBytes", wireType)
  43449. }
  43450. var msglen int
  43451. for shift := uint(0); ; shift += 7 {
  43452. if shift >= 64 {
  43453. return ErrIntOverflowApi
  43454. }
  43455. if iNdEx >= l {
  43456. return io.ErrUnexpectedEOF
  43457. }
  43458. b := dAtA[iNdEx]
  43459. iNdEx++
  43460. msglen |= int(b&0x7F) << shift
  43461. if b < 0x80 {
  43462. break
  43463. }
  43464. }
  43465. if msglen < 0 {
  43466. return ErrInvalidLengthApi
  43467. }
  43468. postIndex := iNdEx + msglen
  43469. if postIndex < 0 {
  43470. return ErrInvalidLengthApi
  43471. }
  43472. if postIndex > l {
  43473. return io.ErrUnexpectedEOF
  43474. }
  43475. if m.UsageBytes == nil {
  43476. m.UsageBytes = &UInt64Value{}
  43477. }
  43478. if err := m.UsageBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43479. return err
  43480. }
  43481. iNdEx = postIndex
  43482. case 5:
  43483. if wireType != 2 {
  43484. return fmt.Errorf("proto: wrong wireType = %d for field RssBytes", wireType)
  43485. }
  43486. var msglen int
  43487. for shift := uint(0); ; shift += 7 {
  43488. if shift >= 64 {
  43489. return ErrIntOverflowApi
  43490. }
  43491. if iNdEx >= l {
  43492. return io.ErrUnexpectedEOF
  43493. }
  43494. b := dAtA[iNdEx]
  43495. iNdEx++
  43496. msglen |= int(b&0x7F) << shift
  43497. if b < 0x80 {
  43498. break
  43499. }
  43500. }
  43501. if msglen < 0 {
  43502. return ErrInvalidLengthApi
  43503. }
  43504. postIndex := iNdEx + msglen
  43505. if postIndex < 0 {
  43506. return ErrInvalidLengthApi
  43507. }
  43508. if postIndex > l {
  43509. return io.ErrUnexpectedEOF
  43510. }
  43511. if m.RssBytes == nil {
  43512. m.RssBytes = &UInt64Value{}
  43513. }
  43514. if err := m.RssBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43515. return err
  43516. }
  43517. iNdEx = postIndex
  43518. case 6:
  43519. if wireType != 2 {
  43520. return fmt.Errorf("proto: wrong wireType = %d for field PageFaults", wireType)
  43521. }
  43522. var msglen int
  43523. for shift := uint(0); ; shift += 7 {
  43524. if shift >= 64 {
  43525. return ErrIntOverflowApi
  43526. }
  43527. if iNdEx >= l {
  43528. return io.ErrUnexpectedEOF
  43529. }
  43530. b := dAtA[iNdEx]
  43531. iNdEx++
  43532. msglen |= int(b&0x7F) << shift
  43533. if b < 0x80 {
  43534. break
  43535. }
  43536. }
  43537. if msglen < 0 {
  43538. return ErrInvalidLengthApi
  43539. }
  43540. postIndex := iNdEx + msglen
  43541. if postIndex < 0 {
  43542. return ErrInvalidLengthApi
  43543. }
  43544. if postIndex > l {
  43545. return io.ErrUnexpectedEOF
  43546. }
  43547. if m.PageFaults == nil {
  43548. m.PageFaults = &UInt64Value{}
  43549. }
  43550. if err := m.PageFaults.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43551. return err
  43552. }
  43553. iNdEx = postIndex
  43554. case 7:
  43555. if wireType != 2 {
  43556. return fmt.Errorf("proto: wrong wireType = %d for field MajorPageFaults", wireType)
  43557. }
  43558. var msglen int
  43559. for shift := uint(0); ; shift += 7 {
  43560. if shift >= 64 {
  43561. return ErrIntOverflowApi
  43562. }
  43563. if iNdEx >= l {
  43564. return io.ErrUnexpectedEOF
  43565. }
  43566. b := dAtA[iNdEx]
  43567. iNdEx++
  43568. msglen |= int(b&0x7F) << shift
  43569. if b < 0x80 {
  43570. break
  43571. }
  43572. }
  43573. if msglen < 0 {
  43574. return ErrInvalidLengthApi
  43575. }
  43576. postIndex := iNdEx + msglen
  43577. if postIndex < 0 {
  43578. return ErrInvalidLengthApi
  43579. }
  43580. if postIndex > l {
  43581. return io.ErrUnexpectedEOF
  43582. }
  43583. if m.MajorPageFaults == nil {
  43584. m.MajorPageFaults = &UInt64Value{}
  43585. }
  43586. if err := m.MajorPageFaults.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43587. return err
  43588. }
  43589. iNdEx = postIndex
  43590. default:
  43591. iNdEx = preIndex
  43592. skippy, err := skipApi(dAtA[iNdEx:])
  43593. if err != nil {
  43594. return err
  43595. }
  43596. if (skippy < 0) || (iNdEx+skippy) < 0 {
  43597. return ErrInvalidLengthApi
  43598. }
  43599. if (iNdEx + skippy) > l {
  43600. return io.ErrUnexpectedEOF
  43601. }
  43602. iNdEx += skippy
  43603. }
  43604. }
  43605. if iNdEx > l {
  43606. return io.ErrUnexpectedEOF
  43607. }
  43608. return nil
  43609. }
  43610. func (m *SwapUsage) Unmarshal(dAtA []byte) error {
  43611. l := len(dAtA)
  43612. iNdEx := 0
  43613. for iNdEx < l {
  43614. preIndex := iNdEx
  43615. var wire uint64
  43616. for shift := uint(0); ; shift += 7 {
  43617. if shift >= 64 {
  43618. return ErrIntOverflowApi
  43619. }
  43620. if iNdEx >= l {
  43621. return io.ErrUnexpectedEOF
  43622. }
  43623. b := dAtA[iNdEx]
  43624. iNdEx++
  43625. wire |= uint64(b&0x7F) << shift
  43626. if b < 0x80 {
  43627. break
  43628. }
  43629. }
  43630. fieldNum := int32(wire >> 3)
  43631. wireType := int(wire & 0x7)
  43632. if wireType == 4 {
  43633. return fmt.Errorf("proto: SwapUsage: wiretype end group for non-group")
  43634. }
  43635. if fieldNum <= 0 {
  43636. return fmt.Errorf("proto: SwapUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  43637. }
  43638. switch fieldNum {
  43639. case 1:
  43640. if wireType != 0 {
  43641. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  43642. }
  43643. m.Timestamp = 0
  43644. for shift := uint(0); ; shift += 7 {
  43645. if shift >= 64 {
  43646. return ErrIntOverflowApi
  43647. }
  43648. if iNdEx >= l {
  43649. return io.ErrUnexpectedEOF
  43650. }
  43651. b := dAtA[iNdEx]
  43652. iNdEx++
  43653. m.Timestamp |= int64(b&0x7F) << shift
  43654. if b < 0x80 {
  43655. break
  43656. }
  43657. }
  43658. case 2:
  43659. if wireType != 2 {
  43660. return fmt.Errorf("proto: wrong wireType = %d for field SwapAvailableBytes", wireType)
  43661. }
  43662. var msglen int
  43663. for shift := uint(0); ; shift += 7 {
  43664. if shift >= 64 {
  43665. return ErrIntOverflowApi
  43666. }
  43667. if iNdEx >= l {
  43668. return io.ErrUnexpectedEOF
  43669. }
  43670. b := dAtA[iNdEx]
  43671. iNdEx++
  43672. msglen |= int(b&0x7F) << shift
  43673. if b < 0x80 {
  43674. break
  43675. }
  43676. }
  43677. if msglen < 0 {
  43678. return ErrInvalidLengthApi
  43679. }
  43680. postIndex := iNdEx + msglen
  43681. if postIndex < 0 {
  43682. return ErrInvalidLengthApi
  43683. }
  43684. if postIndex > l {
  43685. return io.ErrUnexpectedEOF
  43686. }
  43687. if m.SwapAvailableBytes == nil {
  43688. m.SwapAvailableBytes = &UInt64Value{}
  43689. }
  43690. if err := m.SwapAvailableBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43691. return err
  43692. }
  43693. iNdEx = postIndex
  43694. case 3:
  43695. if wireType != 2 {
  43696. return fmt.Errorf("proto: wrong wireType = %d for field SwapUsageBytes", wireType)
  43697. }
  43698. var msglen int
  43699. for shift := uint(0); ; shift += 7 {
  43700. if shift >= 64 {
  43701. return ErrIntOverflowApi
  43702. }
  43703. if iNdEx >= l {
  43704. return io.ErrUnexpectedEOF
  43705. }
  43706. b := dAtA[iNdEx]
  43707. iNdEx++
  43708. msglen |= int(b&0x7F) << shift
  43709. if b < 0x80 {
  43710. break
  43711. }
  43712. }
  43713. if msglen < 0 {
  43714. return ErrInvalidLengthApi
  43715. }
  43716. postIndex := iNdEx + msglen
  43717. if postIndex < 0 {
  43718. return ErrInvalidLengthApi
  43719. }
  43720. if postIndex > l {
  43721. return io.ErrUnexpectedEOF
  43722. }
  43723. if m.SwapUsageBytes == nil {
  43724. m.SwapUsageBytes = &UInt64Value{}
  43725. }
  43726. if err := m.SwapUsageBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43727. return err
  43728. }
  43729. iNdEx = postIndex
  43730. default:
  43731. iNdEx = preIndex
  43732. skippy, err := skipApi(dAtA[iNdEx:])
  43733. if err != nil {
  43734. return err
  43735. }
  43736. if (skippy < 0) || (iNdEx+skippy) < 0 {
  43737. return ErrInvalidLengthApi
  43738. }
  43739. if (iNdEx + skippy) > l {
  43740. return io.ErrUnexpectedEOF
  43741. }
  43742. iNdEx += skippy
  43743. }
  43744. }
  43745. if iNdEx > l {
  43746. return io.ErrUnexpectedEOF
  43747. }
  43748. return nil
  43749. }
  43750. func (m *WindowsMemoryUsage) Unmarshal(dAtA []byte) error {
  43751. l := len(dAtA)
  43752. iNdEx := 0
  43753. for iNdEx < l {
  43754. preIndex := iNdEx
  43755. var wire uint64
  43756. for shift := uint(0); ; shift += 7 {
  43757. if shift >= 64 {
  43758. return ErrIntOverflowApi
  43759. }
  43760. if iNdEx >= l {
  43761. return io.ErrUnexpectedEOF
  43762. }
  43763. b := dAtA[iNdEx]
  43764. iNdEx++
  43765. wire |= uint64(b&0x7F) << shift
  43766. if b < 0x80 {
  43767. break
  43768. }
  43769. }
  43770. fieldNum := int32(wire >> 3)
  43771. wireType := int(wire & 0x7)
  43772. if wireType == 4 {
  43773. return fmt.Errorf("proto: WindowsMemoryUsage: wiretype end group for non-group")
  43774. }
  43775. if fieldNum <= 0 {
  43776. return fmt.Errorf("proto: WindowsMemoryUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  43777. }
  43778. switch fieldNum {
  43779. case 1:
  43780. if wireType != 0 {
  43781. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  43782. }
  43783. m.Timestamp = 0
  43784. for shift := uint(0); ; shift += 7 {
  43785. if shift >= 64 {
  43786. return ErrIntOverflowApi
  43787. }
  43788. if iNdEx >= l {
  43789. return io.ErrUnexpectedEOF
  43790. }
  43791. b := dAtA[iNdEx]
  43792. iNdEx++
  43793. m.Timestamp |= int64(b&0x7F) << shift
  43794. if b < 0x80 {
  43795. break
  43796. }
  43797. }
  43798. case 2:
  43799. if wireType != 2 {
  43800. return fmt.Errorf("proto: wrong wireType = %d for field WorkingSetBytes", wireType)
  43801. }
  43802. var msglen int
  43803. for shift := uint(0); ; shift += 7 {
  43804. if shift >= 64 {
  43805. return ErrIntOverflowApi
  43806. }
  43807. if iNdEx >= l {
  43808. return io.ErrUnexpectedEOF
  43809. }
  43810. b := dAtA[iNdEx]
  43811. iNdEx++
  43812. msglen |= int(b&0x7F) << shift
  43813. if b < 0x80 {
  43814. break
  43815. }
  43816. }
  43817. if msglen < 0 {
  43818. return ErrInvalidLengthApi
  43819. }
  43820. postIndex := iNdEx + msglen
  43821. if postIndex < 0 {
  43822. return ErrInvalidLengthApi
  43823. }
  43824. if postIndex > l {
  43825. return io.ErrUnexpectedEOF
  43826. }
  43827. if m.WorkingSetBytes == nil {
  43828. m.WorkingSetBytes = &UInt64Value{}
  43829. }
  43830. if err := m.WorkingSetBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43831. return err
  43832. }
  43833. iNdEx = postIndex
  43834. case 3:
  43835. if wireType != 2 {
  43836. return fmt.Errorf("proto: wrong wireType = %d for field AvailableBytes", wireType)
  43837. }
  43838. var msglen int
  43839. for shift := uint(0); ; shift += 7 {
  43840. if shift >= 64 {
  43841. return ErrIntOverflowApi
  43842. }
  43843. if iNdEx >= l {
  43844. return io.ErrUnexpectedEOF
  43845. }
  43846. b := dAtA[iNdEx]
  43847. iNdEx++
  43848. msglen |= int(b&0x7F) << shift
  43849. if b < 0x80 {
  43850. break
  43851. }
  43852. }
  43853. if msglen < 0 {
  43854. return ErrInvalidLengthApi
  43855. }
  43856. postIndex := iNdEx + msglen
  43857. if postIndex < 0 {
  43858. return ErrInvalidLengthApi
  43859. }
  43860. if postIndex > l {
  43861. return io.ErrUnexpectedEOF
  43862. }
  43863. if m.AvailableBytes == nil {
  43864. m.AvailableBytes = &UInt64Value{}
  43865. }
  43866. if err := m.AvailableBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43867. return err
  43868. }
  43869. iNdEx = postIndex
  43870. case 4:
  43871. if wireType != 2 {
  43872. return fmt.Errorf("proto: wrong wireType = %d for field PageFaults", wireType)
  43873. }
  43874. var msglen int
  43875. for shift := uint(0); ; shift += 7 {
  43876. if shift >= 64 {
  43877. return ErrIntOverflowApi
  43878. }
  43879. if iNdEx >= l {
  43880. return io.ErrUnexpectedEOF
  43881. }
  43882. b := dAtA[iNdEx]
  43883. iNdEx++
  43884. msglen |= int(b&0x7F) << shift
  43885. if b < 0x80 {
  43886. break
  43887. }
  43888. }
  43889. if msglen < 0 {
  43890. return ErrInvalidLengthApi
  43891. }
  43892. postIndex := iNdEx + msglen
  43893. if postIndex < 0 {
  43894. return ErrInvalidLengthApi
  43895. }
  43896. if postIndex > l {
  43897. return io.ErrUnexpectedEOF
  43898. }
  43899. if m.PageFaults == nil {
  43900. m.PageFaults = &UInt64Value{}
  43901. }
  43902. if err := m.PageFaults.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43903. return err
  43904. }
  43905. iNdEx = postIndex
  43906. case 5:
  43907. if wireType != 2 {
  43908. return fmt.Errorf("proto: wrong wireType = %d for field CommitMemoryBytes", wireType)
  43909. }
  43910. var msglen int
  43911. for shift := uint(0); ; shift += 7 {
  43912. if shift >= 64 {
  43913. return ErrIntOverflowApi
  43914. }
  43915. if iNdEx >= l {
  43916. return io.ErrUnexpectedEOF
  43917. }
  43918. b := dAtA[iNdEx]
  43919. iNdEx++
  43920. msglen |= int(b&0x7F) << shift
  43921. if b < 0x80 {
  43922. break
  43923. }
  43924. }
  43925. if msglen < 0 {
  43926. return ErrInvalidLengthApi
  43927. }
  43928. postIndex := iNdEx + msglen
  43929. if postIndex < 0 {
  43930. return ErrInvalidLengthApi
  43931. }
  43932. if postIndex > l {
  43933. return io.ErrUnexpectedEOF
  43934. }
  43935. if m.CommitMemoryBytes == nil {
  43936. m.CommitMemoryBytes = &UInt64Value{}
  43937. }
  43938. if err := m.CommitMemoryBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  43939. return err
  43940. }
  43941. iNdEx = postIndex
  43942. default:
  43943. iNdEx = preIndex
  43944. skippy, err := skipApi(dAtA[iNdEx:])
  43945. if err != nil {
  43946. return err
  43947. }
  43948. if (skippy < 0) || (iNdEx+skippy) < 0 {
  43949. return ErrInvalidLengthApi
  43950. }
  43951. if (iNdEx + skippy) > l {
  43952. return io.ErrUnexpectedEOF
  43953. }
  43954. iNdEx += skippy
  43955. }
  43956. }
  43957. if iNdEx > l {
  43958. return io.ErrUnexpectedEOF
  43959. }
  43960. return nil
  43961. }
  43962. func (m *ReopenContainerLogRequest) Unmarshal(dAtA []byte) error {
  43963. l := len(dAtA)
  43964. iNdEx := 0
  43965. for iNdEx < l {
  43966. preIndex := iNdEx
  43967. var wire uint64
  43968. for shift := uint(0); ; shift += 7 {
  43969. if shift >= 64 {
  43970. return ErrIntOverflowApi
  43971. }
  43972. if iNdEx >= l {
  43973. return io.ErrUnexpectedEOF
  43974. }
  43975. b := dAtA[iNdEx]
  43976. iNdEx++
  43977. wire |= uint64(b&0x7F) << shift
  43978. if b < 0x80 {
  43979. break
  43980. }
  43981. }
  43982. fieldNum := int32(wire >> 3)
  43983. wireType := int(wire & 0x7)
  43984. if wireType == 4 {
  43985. return fmt.Errorf("proto: ReopenContainerLogRequest: wiretype end group for non-group")
  43986. }
  43987. if fieldNum <= 0 {
  43988. return fmt.Errorf("proto: ReopenContainerLogRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  43989. }
  43990. switch fieldNum {
  43991. case 1:
  43992. if wireType != 2 {
  43993. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  43994. }
  43995. var stringLen uint64
  43996. for shift := uint(0); ; shift += 7 {
  43997. if shift >= 64 {
  43998. return ErrIntOverflowApi
  43999. }
  44000. if iNdEx >= l {
  44001. return io.ErrUnexpectedEOF
  44002. }
  44003. b := dAtA[iNdEx]
  44004. iNdEx++
  44005. stringLen |= uint64(b&0x7F) << shift
  44006. if b < 0x80 {
  44007. break
  44008. }
  44009. }
  44010. intStringLen := int(stringLen)
  44011. if intStringLen < 0 {
  44012. return ErrInvalidLengthApi
  44013. }
  44014. postIndex := iNdEx + intStringLen
  44015. if postIndex < 0 {
  44016. return ErrInvalidLengthApi
  44017. }
  44018. if postIndex > l {
  44019. return io.ErrUnexpectedEOF
  44020. }
  44021. m.ContainerId = string(dAtA[iNdEx:postIndex])
  44022. iNdEx = postIndex
  44023. default:
  44024. iNdEx = preIndex
  44025. skippy, err := skipApi(dAtA[iNdEx:])
  44026. if err != nil {
  44027. return err
  44028. }
  44029. if (skippy < 0) || (iNdEx+skippy) < 0 {
  44030. return ErrInvalidLengthApi
  44031. }
  44032. if (iNdEx + skippy) > l {
  44033. return io.ErrUnexpectedEOF
  44034. }
  44035. iNdEx += skippy
  44036. }
  44037. }
  44038. if iNdEx > l {
  44039. return io.ErrUnexpectedEOF
  44040. }
  44041. return nil
  44042. }
  44043. func (m *ReopenContainerLogResponse) Unmarshal(dAtA []byte) error {
  44044. l := len(dAtA)
  44045. iNdEx := 0
  44046. for iNdEx < l {
  44047. preIndex := iNdEx
  44048. var wire uint64
  44049. for shift := uint(0); ; shift += 7 {
  44050. if shift >= 64 {
  44051. return ErrIntOverflowApi
  44052. }
  44053. if iNdEx >= l {
  44054. return io.ErrUnexpectedEOF
  44055. }
  44056. b := dAtA[iNdEx]
  44057. iNdEx++
  44058. wire |= uint64(b&0x7F) << shift
  44059. if b < 0x80 {
  44060. break
  44061. }
  44062. }
  44063. fieldNum := int32(wire >> 3)
  44064. wireType := int(wire & 0x7)
  44065. if wireType == 4 {
  44066. return fmt.Errorf("proto: ReopenContainerLogResponse: wiretype end group for non-group")
  44067. }
  44068. if fieldNum <= 0 {
  44069. return fmt.Errorf("proto: ReopenContainerLogResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  44070. }
  44071. switch fieldNum {
  44072. default:
  44073. iNdEx = preIndex
  44074. skippy, err := skipApi(dAtA[iNdEx:])
  44075. if err != nil {
  44076. return err
  44077. }
  44078. if (skippy < 0) || (iNdEx+skippy) < 0 {
  44079. return ErrInvalidLengthApi
  44080. }
  44081. if (iNdEx + skippy) > l {
  44082. return io.ErrUnexpectedEOF
  44083. }
  44084. iNdEx += skippy
  44085. }
  44086. }
  44087. if iNdEx > l {
  44088. return io.ErrUnexpectedEOF
  44089. }
  44090. return nil
  44091. }
  44092. func (m *CheckpointContainerRequest) Unmarshal(dAtA []byte) error {
  44093. l := len(dAtA)
  44094. iNdEx := 0
  44095. for iNdEx < l {
  44096. preIndex := iNdEx
  44097. var wire uint64
  44098. for shift := uint(0); ; shift += 7 {
  44099. if shift >= 64 {
  44100. return ErrIntOverflowApi
  44101. }
  44102. if iNdEx >= l {
  44103. return io.ErrUnexpectedEOF
  44104. }
  44105. b := dAtA[iNdEx]
  44106. iNdEx++
  44107. wire |= uint64(b&0x7F) << shift
  44108. if b < 0x80 {
  44109. break
  44110. }
  44111. }
  44112. fieldNum := int32(wire >> 3)
  44113. wireType := int(wire & 0x7)
  44114. if wireType == 4 {
  44115. return fmt.Errorf("proto: CheckpointContainerRequest: wiretype end group for non-group")
  44116. }
  44117. if fieldNum <= 0 {
  44118. return fmt.Errorf("proto: CheckpointContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  44119. }
  44120. switch fieldNum {
  44121. case 1:
  44122. if wireType != 2 {
  44123. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  44124. }
  44125. var stringLen uint64
  44126. for shift := uint(0); ; shift += 7 {
  44127. if shift >= 64 {
  44128. return ErrIntOverflowApi
  44129. }
  44130. if iNdEx >= l {
  44131. return io.ErrUnexpectedEOF
  44132. }
  44133. b := dAtA[iNdEx]
  44134. iNdEx++
  44135. stringLen |= uint64(b&0x7F) << shift
  44136. if b < 0x80 {
  44137. break
  44138. }
  44139. }
  44140. intStringLen := int(stringLen)
  44141. if intStringLen < 0 {
  44142. return ErrInvalidLengthApi
  44143. }
  44144. postIndex := iNdEx + intStringLen
  44145. if postIndex < 0 {
  44146. return ErrInvalidLengthApi
  44147. }
  44148. if postIndex > l {
  44149. return io.ErrUnexpectedEOF
  44150. }
  44151. m.ContainerId = string(dAtA[iNdEx:postIndex])
  44152. iNdEx = postIndex
  44153. case 2:
  44154. if wireType != 2 {
  44155. return fmt.Errorf("proto: wrong wireType = %d for field Location", wireType)
  44156. }
  44157. var stringLen uint64
  44158. for shift := uint(0); ; shift += 7 {
  44159. if shift >= 64 {
  44160. return ErrIntOverflowApi
  44161. }
  44162. if iNdEx >= l {
  44163. return io.ErrUnexpectedEOF
  44164. }
  44165. b := dAtA[iNdEx]
  44166. iNdEx++
  44167. stringLen |= uint64(b&0x7F) << shift
  44168. if b < 0x80 {
  44169. break
  44170. }
  44171. }
  44172. intStringLen := int(stringLen)
  44173. if intStringLen < 0 {
  44174. return ErrInvalidLengthApi
  44175. }
  44176. postIndex := iNdEx + intStringLen
  44177. if postIndex < 0 {
  44178. return ErrInvalidLengthApi
  44179. }
  44180. if postIndex > l {
  44181. return io.ErrUnexpectedEOF
  44182. }
  44183. m.Location = string(dAtA[iNdEx:postIndex])
  44184. iNdEx = postIndex
  44185. case 3:
  44186. if wireType != 0 {
  44187. return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
  44188. }
  44189. m.Timeout = 0
  44190. for shift := uint(0); ; shift += 7 {
  44191. if shift >= 64 {
  44192. return ErrIntOverflowApi
  44193. }
  44194. if iNdEx >= l {
  44195. return io.ErrUnexpectedEOF
  44196. }
  44197. b := dAtA[iNdEx]
  44198. iNdEx++
  44199. m.Timeout |= int64(b&0x7F) << shift
  44200. if b < 0x80 {
  44201. break
  44202. }
  44203. }
  44204. default:
  44205. iNdEx = preIndex
  44206. skippy, err := skipApi(dAtA[iNdEx:])
  44207. if err != nil {
  44208. return err
  44209. }
  44210. if (skippy < 0) || (iNdEx+skippy) < 0 {
  44211. return ErrInvalidLengthApi
  44212. }
  44213. if (iNdEx + skippy) > l {
  44214. return io.ErrUnexpectedEOF
  44215. }
  44216. iNdEx += skippy
  44217. }
  44218. }
  44219. if iNdEx > l {
  44220. return io.ErrUnexpectedEOF
  44221. }
  44222. return nil
  44223. }
  44224. func (m *CheckpointContainerResponse) Unmarshal(dAtA []byte) error {
  44225. l := len(dAtA)
  44226. iNdEx := 0
  44227. for iNdEx < l {
  44228. preIndex := iNdEx
  44229. var wire uint64
  44230. for shift := uint(0); ; shift += 7 {
  44231. if shift >= 64 {
  44232. return ErrIntOverflowApi
  44233. }
  44234. if iNdEx >= l {
  44235. return io.ErrUnexpectedEOF
  44236. }
  44237. b := dAtA[iNdEx]
  44238. iNdEx++
  44239. wire |= uint64(b&0x7F) << shift
  44240. if b < 0x80 {
  44241. break
  44242. }
  44243. }
  44244. fieldNum := int32(wire >> 3)
  44245. wireType := int(wire & 0x7)
  44246. if wireType == 4 {
  44247. return fmt.Errorf("proto: CheckpointContainerResponse: wiretype end group for non-group")
  44248. }
  44249. if fieldNum <= 0 {
  44250. return fmt.Errorf("proto: CheckpointContainerResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  44251. }
  44252. switch fieldNum {
  44253. default:
  44254. iNdEx = preIndex
  44255. skippy, err := skipApi(dAtA[iNdEx:])
  44256. if err != nil {
  44257. return err
  44258. }
  44259. if (skippy < 0) || (iNdEx+skippy) < 0 {
  44260. return ErrInvalidLengthApi
  44261. }
  44262. if (iNdEx + skippy) > l {
  44263. return io.ErrUnexpectedEOF
  44264. }
  44265. iNdEx += skippy
  44266. }
  44267. }
  44268. if iNdEx > l {
  44269. return io.ErrUnexpectedEOF
  44270. }
  44271. return nil
  44272. }
  44273. func (m *GetEventsRequest) Unmarshal(dAtA []byte) error {
  44274. l := len(dAtA)
  44275. iNdEx := 0
  44276. for iNdEx < l {
  44277. preIndex := iNdEx
  44278. var wire uint64
  44279. for shift := uint(0); ; shift += 7 {
  44280. if shift >= 64 {
  44281. return ErrIntOverflowApi
  44282. }
  44283. if iNdEx >= l {
  44284. return io.ErrUnexpectedEOF
  44285. }
  44286. b := dAtA[iNdEx]
  44287. iNdEx++
  44288. wire |= uint64(b&0x7F) << shift
  44289. if b < 0x80 {
  44290. break
  44291. }
  44292. }
  44293. fieldNum := int32(wire >> 3)
  44294. wireType := int(wire & 0x7)
  44295. if wireType == 4 {
  44296. return fmt.Errorf("proto: GetEventsRequest: wiretype end group for non-group")
  44297. }
  44298. if fieldNum <= 0 {
  44299. return fmt.Errorf("proto: GetEventsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  44300. }
  44301. switch fieldNum {
  44302. default:
  44303. iNdEx = preIndex
  44304. skippy, err := skipApi(dAtA[iNdEx:])
  44305. if err != nil {
  44306. return err
  44307. }
  44308. if (skippy < 0) || (iNdEx+skippy) < 0 {
  44309. return ErrInvalidLengthApi
  44310. }
  44311. if (iNdEx + skippy) > l {
  44312. return io.ErrUnexpectedEOF
  44313. }
  44314. iNdEx += skippy
  44315. }
  44316. }
  44317. if iNdEx > l {
  44318. return io.ErrUnexpectedEOF
  44319. }
  44320. return nil
  44321. }
  44322. func (m *ContainerEventResponse) Unmarshal(dAtA []byte) error {
  44323. l := len(dAtA)
  44324. iNdEx := 0
  44325. for iNdEx < l {
  44326. preIndex := iNdEx
  44327. var wire uint64
  44328. for shift := uint(0); ; shift += 7 {
  44329. if shift >= 64 {
  44330. return ErrIntOverflowApi
  44331. }
  44332. if iNdEx >= l {
  44333. return io.ErrUnexpectedEOF
  44334. }
  44335. b := dAtA[iNdEx]
  44336. iNdEx++
  44337. wire |= uint64(b&0x7F) << shift
  44338. if b < 0x80 {
  44339. break
  44340. }
  44341. }
  44342. fieldNum := int32(wire >> 3)
  44343. wireType := int(wire & 0x7)
  44344. if wireType == 4 {
  44345. return fmt.Errorf("proto: ContainerEventResponse: wiretype end group for non-group")
  44346. }
  44347. if fieldNum <= 0 {
  44348. return fmt.Errorf("proto: ContainerEventResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  44349. }
  44350. switch fieldNum {
  44351. case 1:
  44352. if wireType != 2 {
  44353. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  44354. }
  44355. var stringLen uint64
  44356. for shift := uint(0); ; shift += 7 {
  44357. if shift >= 64 {
  44358. return ErrIntOverflowApi
  44359. }
  44360. if iNdEx >= l {
  44361. return io.ErrUnexpectedEOF
  44362. }
  44363. b := dAtA[iNdEx]
  44364. iNdEx++
  44365. stringLen |= uint64(b&0x7F) << shift
  44366. if b < 0x80 {
  44367. break
  44368. }
  44369. }
  44370. intStringLen := int(stringLen)
  44371. if intStringLen < 0 {
  44372. return ErrInvalidLengthApi
  44373. }
  44374. postIndex := iNdEx + intStringLen
  44375. if postIndex < 0 {
  44376. return ErrInvalidLengthApi
  44377. }
  44378. if postIndex > l {
  44379. return io.ErrUnexpectedEOF
  44380. }
  44381. m.ContainerId = string(dAtA[iNdEx:postIndex])
  44382. iNdEx = postIndex
  44383. case 2:
  44384. if wireType != 0 {
  44385. return fmt.Errorf("proto: wrong wireType = %d for field ContainerEventType", wireType)
  44386. }
  44387. m.ContainerEventType = 0
  44388. for shift := uint(0); ; shift += 7 {
  44389. if shift >= 64 {
  44390. return ErrIntOverflowApi
  44391. }
  44392. if iNdEx >= l {
  44393. return io.ErrUnexpectedEOF
  44394. }
  44395. b := dAtA[iNdEx]
  44396. iNdEx++
  44397. m.ContainerEventType |= ContainerEventType(b&0x7F) << shift
  44398. if b < 0x80 {
  44399. break
  44400. }
  44401. }
  44402. case 3:
  44403. if wireType != 0 {
  44404. return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
  44405. }
  44406. m.CreatedAt = 0
  44407. for shift := uint(0); ; shift += 7 {
  44408. if shift >= 64 {
  44409. return ErrIntOverflowApi
  44410. }
  44411. if iNdEx >= l {
  44412. return io.ErrUnexpectedEOF
  44413. }
  44414. b := dAtA[iNdEx]
  44415. iNdEx++
  44416. m.CreatedAt |= int64(b&0x7F) << shift
  44417. if b < 0x80 {
  44418. break
  44419. }
  44420. }
  44421. case 4:
  44422. if wireType != 2 {
  44423. return fmt.Errorf("proto: wrong wireType = %d for field PodSandboxStatus", wireType)
  44424. }
  44425. var msglen int
  44426. for shift := uint(0); ; shift += 7 {
  44427. if shift >= 64 {
  44428. return ErrIntOverflowApi
  44429. }
  44430. if iNdEx >= l {
  44431. return io.ErrUnexpectedEOF
  44432. }
  44433. b := dAtA[iNdEx]
  44434. iNdEx++
  44435. msglen |= int(b&0x7F) << shift
  44436. if b < 0x80 {
  44437. break
  44438. }
  44439. }
  44440. if msglen < 0 {
  44441. return ErrInvalidLengthApi
  44442. }
  44443. postIndex := iNdEx + msglen
  44444. if postIndex < 0 {
  44445. return ErrInvalidLengthApi
  44446. }
  44447. if postIndex > l {
  44448. return io.ErrUnexpectedEOF
  44449. }
  44450. if m.PodSandboxStatus == nil {
  44451. m.PodSandboxStatus = &PodSandboxStatus{}
  44452. }
  44453. if err := m.PodSandboxStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  44454. return err
  44455. }
  44456. iNdEx = postIndex
  44457. case 5:
  44458. if wireType != 2 {
  44459. return fmt.Errorf("proto: wrong wireType = %d for field ContainersStatuses", wireType)
  44460. }
  44461. var msglen int
  44462. for shift := uint(0); ; shift += 7 {
  44463. if shift >= 64 {
  44464. return ErrIntOverflowApi
  44465. }
  44466. if iNdEx >= l {
  44467. return io.ErrUnexpectedEOF
  44468. }
  44469. b := dAtA[iNdEx]
  44470. iNdEx++
  44471. msglen |= int(b&0x7F) << shift
  44472. if b < 0x80 {
  44473. break
  44474. }
  44475. }
  44476. if msglen < 0 {
  44477. return ErrInvalidLengthApi
  44478. }
  44479. postIndex := iNdEx + msglen
  44480. if postIndex < 0 {
  44481. return ErrInvalidLengthApi
  44482. }
  44483. if postIndex > l {
  44484. return io.ErrUnexpectedEOF
  44485. }
  44486. m.ContainersStatuses = append(m.ContainersStatuses, &ContainerStatus{})
  44487. if err := m.ContainersStatuses[len(m.ContainersStatuses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  44488. return err
  44489. }
  44490. iNdEx = postIndex
  44491. default:
  44492. iNdEx = preIndex
  44493. skippy, err := skipApi(dAtA[iNdEx:])
  44494. if err != nil {
  44495. return err
  44496. }
  44497. if (skippy < 0) || (iNdEx+skippy) < 0 {
  44498. return ErrInvalidLengthApi
  44499. }
  44500. if (iNdEx + skippy) > l {
  44501. return io.ErrUnexpectedEOF
  44502. }
  44503. iNdEx += skippy
  44504. }
  44505. }
  44506. if iNdEx > l {
  44507. return io.ErrUnexpectedEOF
  44508. }
  44509. return nil
  44510. }
  44511. func (m *ListMetricDescriptorsRequest) Unmarshal(dAtA []byte) error {
  44512. l := len(dAtA)
  44513. iNdEx := 0
  44514. for iNdEx < l {
  44515. preIndex := iNdEx
  44516. var wire uint64
  44517. for shift := uint(0); ; shift += 7 {
  44518. if shift >= 64 {
  44519. return ErrIntOverflowApi
  44520. }
  44521. if iNdEx >= l {
  44522. return io.ErrUnexpectedEOF
  44523. }
  44524. b := dAtA[iNdEx]
  44525. iNdEx++
  44526. wire |= uint64(b&0x7F) << shift
  44527. if b < 0x80 {
  44528. break
  44529. }
  44530. }
  44531. fieldNum := int32(wire >> 3)
  44532. wireType := int(wire & 0x7)
  44533. if wireType == 4 {
  44534. return fmt.Errorf("proto: ListMetricDescriptorsRequest: wiretype end group for non-group")
  44535. }
  44536. if fieldNum <= 0 {
  44537. return fmt.Errorf("proto: ListMetricDescriptorsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  44538. }
  44539. switch fieldNum {
  44540. default:
  44541. iNdEx = preIndex
  44542. skippy, err := skipApi(dAtA[iNdEx:])
  44543. if err != nil {
  44544. return err
  44545. }
  44546. if (skippy < 0) || (iNdEx+skippy) < 0 {
  44547. return ErrInvalidLengthApi
  44548. }
  44549. if (iNdEx + skippy) > l {
  44550. return io.ErrUnexpectedEOF
  44551. }
  44552. iNdEx += skippy
  44553. }
  44554. }
  44555. if iNdEx > l {
  44556. return io.ErrUnexpectedEOF
  44557. }
  44558. return nil
  44559. }
  44560. func (m *ListMetricDescriptorsResponse) Unmarshal(dAtA []byte) error {
  44561. l := len(dAtA)
  44562. iNdEx := 0
  44563. for iNdEx < l {
  44564. preIndex := iNdEx
  44565. var wire uint64
  44566. for shift := uint(0); ; shift += 7 {
  44567. if shift >= 64 {
  44568. return ErrIntOverflowApi
  44569. }
  44570. if iNdEx >= l {
  44571. return io.ErrUnexpectedEOF
  44572. }
  44573. b := dAtA[iNdEx]
  44574. iNdEx++
  44575. wire |= uint64(b&0x7F) << shift
  44576. if b < 0x80 {
  44577. break
  44578. }
  44579. }
  44580. fieldNum := int32(wire >> 3)
  44581. wireType := int(wire & 0x7)
  44582. if wireType == 4 {
  44583. return fmt.Errorf("proto: ListMetricDescriptorsResponse: wiretype end group for non-group")
  44584. }
  44585. if fieldNum <= 0 {
  44586. return fmt.Errorf("proto: ListMetricDescriptorsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  44587. }
  44588. switch fieldNum {
  44589. case 1:
  44590. if wireType != 2 {
  44591. return fmt.Errorf("proto: wrong wireType = %d for field Descriptors", wireType)
  44592. }
  44593. var msglen int
  44594. for shift := uint(0); ; shift += 7 {
  44595. if shift >= 64 {
  44596. return ErrIntOverflowApi
  44597. }
  44598. if iNdEx >= l {
  44599. return io.ErrUnexpectedEOF
  44600. }
  44601. b := dAtA[iNdEx]
  44602. iNdEx++
  44603. msglen |= int(b&0x7F) << shift
  44604. if b < 0x80 {
  44605. break
  44606. }
  44607. }
  44608. if msglen < 0 {
  44609. return ErrInvalidLengthApi
  44610. }
  44611. postIndex := iNdEx + msglen
  44612. if postIndex < 0 {
  44613. return ErrInvalidLengthApi
  44614. }
  44615. if postIndex > l {
  44616. return io.ErrUnexpectedEOF
  44617. }
  44618. m.Descriptors = append(m.Descriptors, &MetricDescriptor{})
  44619. if err := m.Descriptors[len(m.Descriptors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  44620. return err
  44621. }
  44622. iNdEx = postIndex
  44623. default:
  44624. iNdEx = preIndex
  44625. skippy, err := skipApi(dAtA[iNdEx:])
  44626. if err != nil {
  44627. return err
  44628. }
  44629. if (skippy < 0) || (iNdEx+skippy) < 0 {
  44630. return ErrInvalidLengthApi
  44631. }
  44632. if (iNdEx + skippy) > l {
  44633. return io.ErrUnexpectedEOF
  44634. }
  44635. iNdEx += skippy
  44636. }
  44637. }
  44638. if iNdEx > l {
  44639. return io.ErrUnexpectedEOF
  44640. }
  44641. return nil
  44642. }
  44643. func (m *MetricDescriptor) Unmarshal(dAtA []byte) error {
  44644. l := len(dAtA)
  44645. iNdEx := 0
  44646. for iNdEx < l {
  44647. preIndex := iNdEx
  44648. var wire uint64
  44649. for shift := uint(0); ; shift += 7 {
  44650. if shift >= 64 {
  44651. return ErrIntOverflowApi
  44652. }
  44653. if iNdEx >= l {
  44654. return io.ErrUnexpectedEOF
  44655. }
  44656. b := dAtA[iNdEx]
  44657. iNdEx++
  44658. wire |= uint64(b&0x7F) << shift
  44659. if b < 0x80 {
  44660. break
  44661. }
  44662. }
  44663. fieldNum := int32(wire >> 3)
  44664. wireType := int(wire & 0x7)
  44665. if wireType == 4 {
  44666. return fmt.Errorf("proto: MetricDescriptor: wiretype end group for non-group")
  44667. }
  44668. if fieldNum <= 0 {
  44669. return fmt.Errorf("proto: MetricDescriptor: illegal tag %d (wire type %d)", fieldNum, wire)
  44670. }
  44671. switch fieldNum {
  44672. case 1:
  44673. if wireType != 2 {
  44674. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  44675. }
  44676. var stringLen uint64
  44677. for shift := uint(0); ; shift += 7 {
  44678. if shift >= 64 {
  44679. return ErrIntOverflowApi
  44680. }
  44681. if iNdEx >= l {
  44682. return io.ErrUnexpectedEOF
  44683. }
  44684. b := dAtA[iNdEx]
  44685. iNdEx++
  44686. stringLen |= uint64(b&0x7F) << shift
  44687. if b < 0x80 {
  44688. break
  44689. }
  44690. }
  44691. intStringLen := int(stringLen)
  44692. if intStringLen < 0 {
  44693. return ErrInvalidLengthApi
  44694. }
  44695. postIndex := iNdEx + intStringLen
  44696. if postIndex < 0 {
  44697. return ErrInvalidLengthApi
  44698. }
  44699. if postIndex > l {
  44700. return io.ErrUnexpectedEOF
  44701. }
  44702. m.Name = string(dAtA[iNdEx:postIndex])
  44703. iNdEx = postIndex
  44704. case 2:
  44705. if wireType != 2 {
  44706. return fmt.Errorf("proto: wrong wireType = %d for field Help", wireType)
  44707. }
  44708. var stringLen uint64
  44709. for shift := uint(0); ; shift += 7 {
  44710. if shift >= 64 {
  44711. return ErrIntOverflowApi
  44712. }
  44713. if iNdEx >= l {
  44714. return io.ErrUnexpectedEOF
  44715. }
  44716. b := dAtA[iNdEx]
  44717. iNdEx++
  44718. stringLen |= uint64(b&0x7F) << shift
  44719. if b < 0x80 {
  44720. break
  44721. }
  44722. }
  44723. intStringLen := int(stringLen)
  44724. if intStringLen < 0 {
  44725. return ErrInvalidLengthApi
  44726. }
  44727. postIndex := iNdEx + intStringLen
  44728. if postIndex < 0 {
  44729. return ErrInvalidLengthApi
  44730. }
  44731. if postIndex > l {
  44732. return io.ErrUnexpectedEOF
  44733. }
  44734. m.Help = string(dAtA[iNdEx:postIndex])
  44735. iNdEx = postIndex
  44736. case 3:
  44737. if wireType != 2 {
  44738. return fmt.Errorf("proto: wrong wireType = %d for field LabelKeys", wireType)
  44739. }
  44740. var stringLen uint64
  44741. for shift := uint(0); ; shift += 7 {
  44742. if shift >= 64 {
  44743. return ErrIntOverflowApi
  44744. }
  44745. if iNdEx >= l {
  44746. return io.ErrUnexpectedEOF
  44747. }
  44748. b := dAtA[iNdEx]
  44749. iNdEx++
  44750. stringLen |= uint64(b&0x7F) << shift
  44751. if b < 0x80 {
  44752. break
  44753. }
  44754. }
  44755. intStringLen := int(stringLen)
  44756. if intStringLen < 0 {
  44757. return ErrInvalidLengthApi
  44758. }
  44759. postIndex := iNdEx + intStringLen
  44760. if postIndex < 0 {
  44761. return ErrInvalidLengthApi
  44762. }
  44763. if postIndex > l {
  44764. return io.ErrUnexpectedEOF
  44765. }
  44766. m.LabelKeys = append(m.LabelKeys, string(dAtA[iNdEx:postIndex]))
  44767. iNdEx = postIndex
  44768. default:
  44769. iNdEx = preIndex
  44770. skippy, err := skipApi(dAtA[iNdEx:])
  44771. if err != nil {
  44772. return err
  44773. }
  44774. if (skippy < 0) || (iNdEx+skippy) < 0 {
  44775. return ErrInvalidLengthApi
  44776. }
  44777. if (iNdEx + skippy) > l {
  44778. return io.ErrUnexpectedEOF
  44779. }
  44780. iNdEx += skippy
  44781. }
  44782. }
  44783. if iNdEx > l {
  44784. return io.ErrUnexpectedEOF
  44785. }
  44786. return nil
  44787. }
  44788. func (m *ListPodSandboxMetricsRequest) Unmarshal(dAtA []byte) error {
  44789. l := len(dAtA)
  44790. iNdEx := 0
  44791. for iNdEx < l {
  44792. preIndex := iNdEx
  44793. var wire uint64
  44794. for shift := uint(0); ; shift += 7 {
  44795. if shift >= 64 {
  44796. return ErrIntOverflowApi
  44797. }
  44798. if iNdEx >= l {
  44799. return io.ErrUnexpectedEOF
  44800. }
  44801. b := dAtA[iNdEx]
  44802. iNdEx++
  44803. wire |= uint64(b&0x7F) << shift
  44804. if b < 0x80 {
  44805. break
  44806. }
  44807. }
  44808. fieldNum := int32(wire >> 3)
  44809. wireType := int(wire & 0x7)
  44810. if wireType == 4 {
  44811. return fmt.Errorf("proto: ListPodSandboxMetricsRequest: wiretype end group for non-group")
  44812. }
  44813. if fieldNum <= 0 {
  44814. return fmt.Errorf("proto: ListPodSandboxMetricsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  44815. }
  44816. switch fieldNum {
  44817. default:
  44818. iNdEx = preIndex
  44819. skippy, err := skipApi(dAtA[iNdEx:])
  44820. if err != nil {
  44821. return err
  44822. }
  44823. if (skippy < 0) || (iNdEx+skippy) < 0 {
  44824. return ErrInvalidLengthApi
  44825. }
  44826. if (iNdEx + skippy) > l {
  44827. return io.ErrUnexpectedEOF
  44828. }
  44829. iNdEx += skippy
  44830. }
  44831. }
  44832. if iNdEx > l {
  44833. return io.ErrUnexpectedEOF
  44834. }
  44835. return nil
  44836. }
  44837. func (m *ListPodSandboxMetricsResponse) Unmarshal(dAtA []byte) error {
  44838. l := len(dAtA)
  44839. iNdEx := 0
  44840. for iNdEx < l {
  44841. preIndex := iNdEx
  44842. var wire uint64
  44843. for shift := uint(0); ; shift += 7 {
  44844. if shift >= 64 {
  44845. return ErrIntOverflowApi
  44846. }
  44847. if iNdEx >= l {
  44848. return io.ErrUnexpectedEOF
  44849. }
  44850. b := dAtA[iNdEx]
  44851. iNdEx++
  44852. wire |= uint64(b&0x7F) << shift
  44853. if b < 0x80 {
  44854. break
  44855. }
  44856. }
  44857. fieldNum := int32(wire >> 3)
  44858. wireType := int(wire & 0x7)
  44859. if wireType == 4 {
  44860. return fmt.Errorf("proto: ListPodSandboxMetricsResponse: wiretype end group for non-group")
  44861. }
  44862. if fieldNum <= 0 {
  44863. return fmt.Errorf("proto: ListPodSandboxMetricsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  44864. }
  44865. switch fieldNum {
  44866. case 1:
  44867. if wireType != 2 {
  44868. return fmt.Errorf("proto: wrong wireType = %d for field PodMetrics", wireType)
  44869. }
  44870. var msglen int
  44871. for shift := uint(0); ; shift += 7 {
  44872. if shift >= 64 {
  44873. return ErrIntOverflowApi
  44874. }
  44875. if iNdEx >= l {
  44876. return io.ErrUnexpectedEOF
  44877. }
  44878. b := dAtA[iNdEx]
  44879. iNdEx++
  44880. msglen |= int(b&0x7F) << shift
  44881. if b < 0x80 {
  44882. break
  44883. }
  44884. }
  44885. if msglen < 0 {
  44886. return ErrInvalidLengthApi
  44887. }
  44888. postIndex := iNdEx + msglen
  44889. if postIndex < 0 {
  44890. return ErrInvalidLengthApi
  44891. }
  44892. if postIndex > l {
  44893. return io.ErrUnexpectedEOF
  44894. }
  44895. m.PodMetrics = append(m.PodMetrics, &PodSandboxMetrics{})
  44896. if err := m.PodMetrics[len(m.PodMetrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  44897. return err
  44898. }
  44899. iNdEx = postIndex
  44900. default:
  44901. iNdEx = preIndex
  44902. skippy, err := skipApi(dAtA[iNdEx:])
  44903. if err != nil {
  44904. return err
  44905. }
  44906. if (skippy < 0) || (iNdEx+skippy) < 0 {
  44907. return ErrInvalidLengthApi
  44908. }
  44909. if (iNdEx + skippy) > l {
  44910. return io.ErrUnexpectedEOF
  44911. }
  44912. iNdEx += skippy
  44913. }
  44914. }
  44915. if iNdEx > l {
  44916. return io.ErrUnexpectedEOF
  44917. }
  44918. return nil
  44919. }
  44920. func (m *PodSandboxMetrics) Unmarshal(dAtA []byte) error {
  44921. l := len(dAtA)
  44922. iNdEx := 0
  44923. for iNdEx < l {
  44924. preIndex := iNdEx
  44925. var wire uint64
  44926. for shift := uint(0); ; shift += 7 {
  44927. if shift >= 64 {
  44928. return ErrIntOverflowApi
  44929. }
  44930. if iNdEx >= l {
  44931. return io.ErrUnexpectedEOF
  44932. }
  44933. b := dAtA[iNdEx]
  44934. iNdEx++
  44935. wire |= uint64(b&0x7F) << shift
  44936. if b < 0x80 {
  44937. break
  44938. }
  44939. }
  44940. fieldNum := int32(wire >> 3)
  44941. wireType := int(wire & 0x7)
  44942. if wireType == 4 {
  44943. return fmt.Errorf("proto: PodSandboxMetrics: wiretype end group for non-group")
  44944. }
  44945. if fieldNum <= 0 {
  44946. return fmt.Errorf("proto: PodSandboxMetrics: illegal tag %d (wire type %d)", fieldNum, wire)
  44947. }
  44948. switch fieldNum {
  44949. case 1:
  44950. if wireType != 2 {
  44951. return fmt.Errorf("proto: wrong wireType = %d for field PodSandboxId", wireType)
  44952. }
  44953. var stringLen uint64
  44954. for shift := uint(0); ; shift += 7 {
  44955. if shift >= 64 {
  44956. return ErrIntOverflowApi
  44957. }
  44958. if iNdEx >= l {
  44959. return io.ErrUnexpectedEOF
  44960. }
  44961. b := dAtA[iNdEx]
  44962. iNdEx++
  44963. stringLen |= uint64(b&0x7F) << shift
  44964. if b < 0x80 {
  44965. break
  44966. }
  44967. }
  44968. intStringLen := int(stringLen)
  44969. if intStringLen < 0 {
  44970. return ErrInvalidLengthApi
  44971. }
  44972. postIndex := iNdEx + intStringLen
  44973. if postIndex < 0 {
  44974. return ErrInvalidLengthApi
  44975. }
  44976. if postIndex > l {
  44977. return io.ErrUnexpectedEOF
  44978. }
  44979. m.PodSandboxId = string(dAtA[iNdEx:postIndex])
  44980. iNdEx = postIndex
  44981. case 2:
  44982. if wireType != 2 {
  44983. return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType)
  44984. }
  44985. var msglen int
  44986. for shift := uint(0); ; shift += 7 {
  44987. if shift >= 64 {
  44988. return ErrIntOverflowApi
  44989. }
  44990. if iNdEx >= l {
  44991. return io.ErrUnexpectedEOF
  44992. }
  44993. b := dAtA[iNdEx]
  44994. iNdEx++
  44995. msglen |= int(b&0x7F) << shift
  44996. if b < 0x80 {
  44997. break
  44998. }
  44999. }
  45000. if msglen < 0 {
  45001. return ErrInvalidLengthApi
  45002. }
  45003. postIndex := iNdEx + msglen
  45004. if postIndex < 0 {
  45005. return ErrInvalidLengthApi
  45006. }
  45007. if postIndex > l {
  45008. return io.ErrUnexpectedEOF
  45009. }
  45010. m.Metrics = append(m.Metrics, &Metric{})
  45011. if err := m.Metrics[len(m.Metrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  45012. return err
  45013. }
  45014. iNdEx = postIndex
  45015. case 3:
  45016. if wireType != 2 {
  45017. return fmt.Errorf("proto: wrong wireType = %d for field ContainerMetrics", wireType)
  45018. }
  45019. var msglen int
  45020. for shift := uint(0); ; shift += 7 {
  45021. if shift >= 64 {
  45022. return ErrIntOverflowApi
  45023. }
  45024. if iNdEx >= l {
  45025. return io.ErrUnexpectedEOF
  45026. }
  45027. b := dAtA[iNdEx]
  45028. iNdEx++
  45029. msglen |= int(b&0x7F) << shift
  45030. if b < 0x80 {
  45031. break
  45032. }
  45033. }
  45034. if msglen < 0 {
  45035. return ErrInvalidLengthApi
  45036. }
  45037. postIndex := iNdEx + msglen
  45038. if postIndex < 0 {
  45039. return ErrInvalidLengthApi
  45040. }
  45041. if postIndex > l {
  45042. return io.ErrUnexpectedEOF
  45043. }
  45044. m.ContainerMetrics = append(m.ContainerMetrics, &ContainerMetrics{})
  45045. if err := m.ContainerMetrics[len(m.ContainerMetrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  45046. return err
  45047. }
  45048. iNdEx = postIndex
  45049. default:
  45050. iNdEx = preIndex
  45051. skippy, err := skipApi(dAtA[iNdEx:])
  45052. if err != nil {
  45053. return err
  45054. }
  45055. if (skippy < 0) || (iNdEx+skippy) < 0 {
  45056. return ErrInvalidLengthApi
  45057. }
  45058. if (iNdEx + skippy) > l {
  45059. return io.ErrUnexpectedEOF
  45060. }
  45061. iNdEx += skippy
  45062. }
  45063. }
  45064. if iNdEx > l {
  45065. return io.ErrUnexpectedEOF
  45066. }
  45067. return nil
  45068. }
  45069. func (m *ContainerMetrics) Unmarshal(dAtA []byte) error {
  45070. l := len(dAtA)
  45071. iNdEx := 0
  45072. for iNdEx < l {
  45073. preIndex := iNdEx
  45074. var wire uint64
  45075. for shift := uint(0); ; shift += 7 {
  45076. if shift >= 64 {
  45077. return ErrIntOverflowApi
  45078. }
  45079. if iNdEx >= l {
  45080. return io.ErrUnexpectedEOF
  45081. }
  45082. b := dAtA[iNdEx]
  45083. iNdEx++
  45084. wire |= uint64(b&0x7F) << shift
  45085. if b < 0x80 {
  45086. break
  45087. }
  45088. }
  45089. fieldNum := int32(wire >> 3)
  45090. wireType := int(wire & 0x7)
  45091. if wireType == 4 {
  45092. return fmt.Errorf("proto: ContainerMetrics: wiretype end group for non-group")
  45093. }
  45094. if fieldNum <= 0 {
  45095. return fmt.Errorf("proto: ContainerMetrics: illegal tag %d (wire type %d)", fieldNum, wire)
  45096. }
  45097. switch fieldNum {
  45098. case 1:
  45099. if wireType != 2 {
  45100. return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType)
  45101. }
  45102. var stringLen uint64
  45103. for shift := uint(0); ; shift += 7 {
  45104. if shift >= 64 {
  45105. return ErrIntOverflowApi
  45106. }
  45107. if iNdEx >= l {
  45108. return io.ErrUnexpectedEOF
  45109. }
  45110. b := dAtA[iNdEx]
  45111. iNdEx++
  45112. stringLen |= uint64(b&0x7F) << shift
  45113. if b < 0x80 {
  45114. break
  45115. }
  45116. }
  45117. intStringLen := int(stringLen)
  45118. if intStringLen < 0 {
  45119. return ErrInvalidLengthApi
  45120. }
  45121. postIndex := iNdEx + intStringLen
  45122. if postIndex < 0 {
  45123. return ErrInvalidLengthApi
  45124. }
  45125. if postIndex > l {
  45126. return io.ErrUnexpectedEOF
  45127. }
  45128. m.ContainerId = string(dAtA[iNdEx:postIndex])
  45129. iNdEx = postIndex
  45130. case 2:
  45131. if wireType != 2 {
  45132. return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType)
  45133. }
  45134. var msglen int
  45135. for shift := uint(0); ; shift += 7 {
  45136. if shift >= 64 {
  45137. return ErrIntOverflowApi
  45138. }
  45139. if iNdEx >= l {
  45140. return io.ErrUnexpectedEOF
  45141. }
  45142. b := dAtA[iNdEx]
  45143. iNdEx++
  45144. msglen |= int(b&0x7F) << shift
  45145. if b < 0x80 {
  45146. break
  45147. }
  45148. }
  45149. if msglen < 0 {
  45150. return ErrInvalidLengthApi
  45151. }
  45152. postIndex := iNdEx + msglen
  45153. if postIndex < 0 {
  45154. return ErrInvalidLengthApi
  45155. }
  45156. if postIndex > l {
  45157. return io.ErrUnexpectedEOF
  45158. }
  45159. m.Metrics = append(m.Metrics, &Metric{})
  45160. if err := m.Metrics[len(m.Metrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  45161. return err
  45162. }
  45163. iNdEx = postIndex
  45164. default:
  45165. iNdEx = preIndex
  45166. skippy, err := skipApi(dAtA[iNdEx:])
  45167. if err != nil {
  45168. return err
  45169. }
  45170. if (skippy < 0) || (iNdEx+skippy) < 0 {
  45171. return ErrInvalidLengthApi
  45172. }
  45173. if (iNdEx + skippy) > l {
  45174. return io.ErrUnexpectedEOF
  45175. }
  45176. iNdEx += skippy
  45177. }
  45178. }
  45179. if iNdEx > l {
  45180. return io.ErrUnexpectedEOF
  45181. }
  45182. return nil
  45183. }
  45184. func (m *Metric) Unmarshal(dAtA []byte) error {
  45185. l := len(dAtA)
  45186. iNdEx := 0
  45187. for iNdEx < l {
  45188. preIndex := iNdEx
  45189. var wire uint64
  45190. for shift := uint(0); ; shift += 7 {
  45191. if shift >= 64 {
  45192. return ErrIntOverflowApi
  45193. }
  45194. if iNdEx >= l {
  45195. return io.ErrUnexpectedEOF
  45196. }
  45197. b := dAtA[iNdEx]
  45198. iNdEx++
  45199. wire |= uint64(b&0x7F) << shift
  45200. if b < 0x80 {
  45201. break
  45202. }
  45203. }
  45204. fieldNum := int32(wire >> 3)
  45205. wireType := int(wire & 0x7)
  45206. if wireType == 4 {
  45207. return fmt.Errorf("proto: Metric: wiretype end group for non-group")
  45208. }
  45209. if fieldNum <= 0 {
  45210. return fmt.Errorf("proto: Metric: illegal tag %d (wire type %d)", fieldNum, wire)
  45211. }
  45212. switch fieldNum {
  45213. case 1:
  45214. if wireType != 2 {
  45215. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  45216. }
  45217. var stringLen uint64
  45218. for shift := uint(0); ; shift += 7 {
  45219. if shift >= 64 {
  45220. return ErrIntOverflowApi
  45221. }
  45222. if iNdEx >= l {
  45223. return io.ErrUnexpectedEOF
  45224. }
  45225. b := dAtA[iNdEx]
  45226. iNdEx++
  45227. stringLen |= uint64(b&0x7F) << shift
  45228. if b < 0x80 {
  45229. break
  45230. }
  45231. }
  45232. intStringLen := int(stringLen)
  45233. if intStringLen < 0 {
  45234. return ErrInvalidLengthApi
  45235. }
  45236. postIndex := iNdEx + intStringLen
  45237. if postIndex < 0 {
  45238. return ErrInvalidLengthApi
  45239. }
  45240. if postIndex > l {
  45241. return io.ErrUnexpectedEOF
  45242. }
  45243. m.Name = string(dAtA[iNdEx:postIndex])
  45244. iNdEx = postIndex
  45245. case 2:
  45246. if wireType != 0 {
  45247. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  45248. }
  45249. m.Timestamp = 0
  45250. for shift := uint(0); ; shift += 7 {
  45251. if shift >= 64 {
  45252. return ErrIntOverflowApi
  45253. }
  45254. if iNdEx >= l {
  45255. return io.ErrUnexpectedEOF
  45256. }
  45257. b := dAtA[iNdEx]
  45258. iNdEx++
  45259. m.Timestamp |= int64(b&0x7F) << shift
  45260. if b < 0x80 {
  45261. break
  45262. }
  45263. }
  45264. case 3:
  45265. if wireType != 0 {
  45266. return fmt.Errorf("proto: wrong wireType = %d for field MetricType", wireType)
  45267. }
  45268. m.MetricType = 0
  45269. for shift := uint(0); ; shift += 7 {
  45270. if shift >= 64 {
  45271. return ErrIntOverflowApi
  45272. }
  45273. if iNdEx >= l {
  45274. return io.ErrUnexpectedEOF
  45275. }
  45276. b := dAtA[iNdEx]
  45277. iNdEx++
  45278. m.MetricType |= MetricType(b&0x7F) << shift
  45279. if b < 0x80 {
  45280. break
  45281. }
  45282. }
  45283. case 4:
  45284. if wireType != 2 {
  45285. return fmt.Errorf("proto: wrong wireType = %d for field LabelValues", wireType)
  45286. }
  45287. var stringLen uint64
  45288. for shift := uint(0); ; shift += 7 {
  45289. if shift >= 64 {
  45290. return ErrIntOverflowApi
  45291. }
  45292. if iNdEx >= l {
  45293. return io.ErrUnexpectedEOF
  45294. }
  45295. b := dAtA[iNdEx]
  45296. iNdEx++
  45297. stringLen |= uint64(b&0x7F) << shift
  45298. if b < 0x80 {
  45299. break
  45300. }
  45301. }
  45302. intStringLen := int(stringLen)
  45303. if intStringLen < 0 {
  45304. return ErrInvalidLengthApi
  45305. }
  45306. postIndex := iNdEx + intStringLen
  45307. if postIndex < 0 {
  45308. return ErrInvalidLengthApi
  45309. }
  45310. if postIndex > l {
  45311. return io.ErrUnexpectedEOF
  45312. }
  45313. m.LabelValues = append(m.LabelValues, string(dAtA[iNdEx:postIndex]))
  45314. iNdEx = postIndex
  45315. case 5:
  45316. if wireType != 2 {
  45317. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  45318. }
  45319. var msglen int
  45320. for shift := uint(0); ; shift += 7 {
  45321. if shift >= 64 {
  45322. return ErrIntOverflowApi
  45323. }
  45324. if iNdEx >= l {
  45325. return io.ErrUnexpectedEOF
  45326. }
  45327. b := dAtA[iNdEx]
  45328. iNdEx++
  45329. msglen |= int(b&0x7F) << shift
  45330. if b < 0x80 {
  45331. break
  45332. }
  45333. }
  45334. if msglen < 0 {
  45335. return ErrInvalidLengthApi
  45336. }
  45337. postIndex := iNdEx + msglen
  45338. if postIndex < 0 {
  45339. return ErrInvalidLengthApi
  45340. }
  45341. if postIndex > l {
  45342. return io.ErrUnexpectedEOF
  45343. }
  45344. if m.Value == nil {
  45345. m.Value = &UInt64Value{}
  45346. }
  45347. if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  45348. return err
  45349. }
  45350. iNdEx = postIndex
  45351. default:
  45352. iNdEx = preIndex
  45353. skippy, err := skipApi(dAtA[iNdEx:])
  45354. if err != nil {
  45355. return err
  45356. }
  45357. if (skippy < 0) || (iNdEx+skippy) < 0 {
  45358. return ErrInvalidLengthApi
  45359. }
  45360. if (iNdEx + skippy) > l {
  45361. return io.ErrUnexpectedEOF
  45362. }
  45363. iNdEx += skippy
  45364. }
  45365. }
  45366. if iNdEx > l {
  45367. return io.ErrUnexpectedEOF
  45368. }
  45369. return nil
  45370. }
  45371. func (m *RuntimeConfigRequest) Unmarshal(dAtA []byte) error {
  45372. l := len(dAtA)
  45373. iNdEx := 0
  45374. for iNdEx < l {
  45375. preIndex := iNdEx
  45376. var wire uint64
  45377. for shift := uint(0); ; shift += 7 {
  45378. if shift >= 64 {
  45379. return ErrIntOverflowApi
  45380. }
  45381. if iNdEx >= l {
  45382. return io.ErrUnexpectedEOF
  45383. }
  45384. b := dAtA[iNdEx]
  45385. iNdEx++
  45386. wire |= uint64(b&0x7F) << shift
  45387. if b < 0x80 {
  45388. break
  45389. }
  45390. }
  45391. fieldNum := int32(wire >> 3)
  45392. wireType := int(wire & 0x7)
  45393. if wireType == 4 {
  45394. return fmt.Errorf("proto: RuntimeConfigRequest: wiretype end group for non-group")
  45395. }
  45396. if fieldNum <= 0 {
  45397. return fmt.Errorf("proto: RuntimeConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  45398. }
  45399. switch fieldNum {
  45400. default:
  45401. iNdEx = preIndex
  45402. skippy, err := skipApi(dAtA[iNdEx:])
  45403. if err != nil {
  45404. return err
  45405. }
  45406. if (skippy < 0) || (iNdEx+skippy) < 0 {
  45407. return ErrInvalidLengthApi
  45408. }
  45409. if (iNdEx + skippy) > l {
  45410. return io.ErrUnexpectedEOF
  45411. }
  45412. iNdEx += skippy
  45413. }
  45414. }
  45415. if iNdEx > l {
  45416. return io.ErrUnexpectedEOF
  45417. }
  45418. return nil
  45419. }
  45420. func (m *RuntimeConfigResponse) Unmarshal(dAtA []byte) error {
  45421. l := len(dAtA)
  45422. iNdEx := 0
  45423. for iNdEx < l {
  45424. preIndex := iNdEx
  45425. var wire uint64
  45426. for shift := uint(0); ; shift += 7 {
  45427. if shift >= 64 {
  45428. return ErrIntOverflowApi
  45429. }
  45430. if iNdEx >= l {
  45431. return io.ErrUnexpectedEOF
  45432. }
  45433. b := dAtA[iNdEx]
  45434. iNdEx++
  45435. wire |= uint64(b&0x7F) << shift
  45436. if b < 0x80 {
  45437. break
  45438. }
  45439. }
  45440. fieldNum := int32(wire >> 3)
  45441. wireType := int(wire & 0x7)
  45442. if wireType == 4 {
  45443. return fmt.Errorf("proto: RuntimeConfigResponse: wiretype end group for non-group")
  45444. }
  45445. if fieldNum <= 0 {
  45446. return fmt.Errorf("proto: RuntimeConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  45447. }
  45448. switch fieldNum {
  45449. case 1:
  45450. if wireType != 2 {
  45451. return fmt.Errorf("proto: wrong wireType = %d for field Linux", wireType)
  45452. }
  45453. var msglen int
  45454. for shift := uint(0); ; shift += 7 {
  45455. if shift >= 64 {
  45456. return ErrIntOverflowApi
  45457. }
  45458. if iNdEx >= l {
  45459. return io.ErrUnexpectedEOF
  45460. }
  45461. b := dAtA[iNdEx]
  45462. iNdEx++
  45463. msglen |= int(b&0x7F) << shift
  45464. if b < 0x80 {
  45465. break
  45466. }
  45467. }
  45468. if msglen < 0 {
  45469. return ErrInvalidLengthApi
  45470. }
  45471. postIndex := iNdEx + msglen
  45472. if postIndex < 0 {
  45473. return ErrInvalidLengthApi
  45474. }
  45475. if postIndex > l {
  45476. return io.ErrUnexpectedEOF
  45477. }
  45478. if m.Linux == nil {
  45479. m.Linux = &LinuxRuntimeConfiguration{}
  45480. }
  45481. if err := m.Linux.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  45482. return err
  45483. }
  45484. iNdEx = postIndex
  45485. default:
  45486. iNdEx = preIndex
  45487. skippy, err := skipApi(dAtA[iNdEx:])
  45488. if err != nil {
  45489. return err
  45490. }
  45491. if (skippy < 0) || (iNdEx+skippy) < 0 {
  45492. return ErrInvalidLengthApi
  45493. }
  45494. if (iNdEx + skippy) > l {
  45495. return io.ErrUnexpectedEOF
  45496. }
  45497. iNdEx += skippy
  45498. }
  45499. }
  45500. if iNdEx > l {
  45501. return io.ErrUnexpectedEOF
  45502. }
  45503. return nil
  45504. }
  45505. func (m *LinuxRuntimeConfiguration) Unmarshal(dAtA []byte) error {
  45506. l := len(dAtA)
  45507. iNdEx := 0
  45508. for iNdEx < l {
  45509. preIndex := iNdEx
  45510. var wire uint64
  45511. for shift := uint(0); ; shift += 7 {
  45512. if shift >= 64 {
  45513. return ErrIntOverflowApi
  45514. }
  45515. if iNdEx >= l {
  45516. return io.ErrUnexpectedEOF
  45517. }
  45518. b := dAtA[iNdEx]
  45519. iNdEx++
  45520. wire |= uint64(b&0x7F) << shift
  45521. if b < 0x80 {
  45522. break
  45523. }
  45524. }
  45525. fieldNum := int32(wire >> 3)
  45526. wireType := int(wire & 0x7)
  45527. if wireType == 4 {
  45528. return fmt.Errorf("proto: LinuxRuntimeConfiguration: wiretype end group for non-group")
  45529. }
  45530. if fieldNum <= 0 {
  45531. return fmt.Errorf("proto: LinuxRuntimeConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  45532. }
  45533. switch fieldNum {
  45534. case 1:
  45535. if wireType != 0 {
  45536. return fmt.Errorf("proto: wrong wireType = %d for field CgroupDriver", wireType)
  45537. }
  45538. m.CgroupDriver = 0
  45539. for shift := uint(0); ; shift += 7 {
  45540. if shift >= 64 {
  45541. return ErrIntOverflowApi
  45542. }
  45543. if iNdEx >= l {
  45544. return io.ErrUnexpectedEOF
  45545. }
  45546. b := dAtA[iNdEx]
  45547. iNdEx++
  45548. m.CgroupDriver |= CgroupDriver(b&0x7F) << shift
  45549. if b < 0x80 {
  45550. break
  45551. }
  45552. }
  45553. default:
  45554. iNdEx = preIndex
  45555. skippy, err := skipApi(dAtA[iNdEx:])
  45556. if err != nil {
  45557. return err
  45558. }
  45559. if (skippy < 0) || (iNdEx+skippy) < 0 {
  45560. return ErrInvalidLengthApi
  45561. }
  45562. if (iNdEx + skippy) > l {
  45563. return io.ErrUnexpectedEOF
  45564. }
  45565. iNdEx += skippy
  45566. }
  45567. }
  45568. if iNdEx > l {
  45569. return io.ErrUnexpectedEOF
  45570. }
  45571. return nil
  45572. }
  45573. func skipApi(dAtA []byte) (n int, err error) {
  45574. l := len(dAtA)
  45575. iNdEx := 0
  45576. depth := 0
  45577. for iNdEx < l {
  45578. var wire uint64
  45579. for shift := uint(0); ; shift += 7 {
  45580. if shift >= 64 {
  45581. return 0, ErrIntOverflowApi
  45582. }
  45583. if iNdEx >= l {
  45584. return 0, io.ErrUnexpectedEOF
  45585. }
  45586. b := dAtA[iNdEx]
  45587. iNdEx++
  45588. wire |= (uint64(b) & 0x7F) << shift
  45589. if b < 0x80 {
  45590. break
  45591. }
  45592. }
  45593. wireType := int(wire & 0x7)
  45594. switch wireType {
  45595. case 0:
  45596. for shift := uint(0); ; shift += 7 {
  45597. if shift >= 64 {
  45598. return 0, ErrIntOverflowApi
  45599. }
  45600. if iNdEx >= l {
  45601. return 0, io.ErrUnexpectedEOF
  45602. }
  45603. iNdEx++
  45604. if dAtA[iNdEx-1] < 0x80 {
  45605. break
  45606. }
  45607. }
  45608. case 1:
  45609. iNdEx += 8
  45610. case 2:
  45611. var length int
  45612. for shift := uint(0); ; shift += 7 {
  45613. if shift >= 64 {
  45614. return 0, ErrIntOverflowApi
  45615. }
  45616. if iNdEx >= l {
  45617. return 0, io.ErrUnexpectedEOF
  45618. }
  45619. b := dAtA[iNdEx]
  45620. iNdEx++
  45621. length |= (int(b) & 0x7F) << shift
  45622. if b < 0x80 {
  45623. break
  45624. }
  45625. }
  45626. if length < 0 {
  45627. return 0, ErrInvalidLengthApi
  45628. }
  45629. iNdEx += length
  45630. case 3:
  45631. depth++
  45632. case 4:
  45633. if depth == 0 {
  45634. return 0, ErrUnexpectedEndOfGroupApi
  45635. }
  45636. depth--
  45637. case 5:
  45638. iNdEx += 4
  45639. default:
  45640. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  45641. }
  45642. if iNdEx < 0 {
  45643. return 0, ErrInvalidLengthApi
  45644. }
  45645. if depth == 0 {
  45646. return iNdEx, nil
  45647. }
  45648. }
  45649. return 0, io.ErrUnexpectedEOF
  45650. }
  45651. var (
  45652. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  45653. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  45654. ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group")
  45655. )