generated.pb.go 221 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974
  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: k8s.io/kubernetes/vendor/k8s.io/api/apps/v1beta2/generated.proto
  15. package v1beta2
  16. import (
  17. fmt "fmt"
  18. io "io"
  19. proto "github.com/gogo/protobuf/proto"
  20. github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
  21. k8s_io_api_core_v1 "k8s.io/api/core/v1"
  22. v11 "k8s.io/api/core/v1"
  23. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  24. math "math"
  25. math_bits "math/bits"
  26. reflect "reflect"
  27. strings "strings"
  28. intstr "k8s.io/apimachinery/pkg/util/intstr"
  29. )
  30. // Reference imports to suppress errors if they are not otherwise used.
  31. var _ = proto.Marshal
  32. var _ = fmt.Errorf
  33. var _ = math.Inf
  34. // This is a compile-time assertion to ensure that this generated file
  35. // is compatible with the proto package it is being compiled against.
  36. // A compilation error at this line likely means your copy of the
  37. // proto package needs to be updated.
  38. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  39. func (m *ControllerRevision) Reset() { *m = ControllerRevision{} }
  40. func (*ControllerRevision) ProtoMessage() {}
  41. func (*ControllerRevision) Descriptor() ([]byte, []int) {
  42. return fileDescriptor_42fe616264472f7e, []int{0}
  43. }
  44. func (m *ControllerRevision) XXX_Unmarshal(b []byte) error {
  45. return m.Unmarshal(b)
  46. }
  47. func (m *ControllerRevision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  48. b = b[:cap(b)]
  49. n, err := m.MarshalToSizedBuffer(b)
  50. if err != nil {
  51. return nil, err
  52. }
  53. return b[:n], nil
  54. }
  55. func (m *ControllerRevision) XXX_Merge(src proto.Message) {
  56. xxx_messageInfo_ControllerRevision.Merge(m, src)
  57. }
  58. func (m *ControllerRevision) XXX_Size() int {
  59. return m.Size()
  60. }
  61. func (m *ControllerRevision) XXX_DiscardUnknown() {
  62. xxx_messageInfo_ControllerRevision.DiscardUnknown(m)
  63. }
  64. var xxx_messageInfo_ControllerRevision proto.InternalMessageInfo
  65. func (m *ControllerRevisionList) Reset() { *m = ControllerRevisionList{} }
  66. func (*ControllerRevisionList) ProtoMessage() {}
  67. func (*ControllerRevisionList) Descriptor() ([]byte, []int) {
  68. return fileDescriptor_42fe616264472f7e, []int{1}
  69. }
  70. func (m *ControllerRevisionList) XXX_Unmarshal(b []byte) error {
  71. return m.Unmarshal(b)
  72. }
  73. func (m *ControllerRevisionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  74. b = b[:cap(b)]
  75. n, err := m.MarshalToSizedBuffer(b)
  76. if err != nil {
  77. return nil, err
  78. }
  79. return b[:n], nil
  80. }
  81. func (m *ControllerRevisionList) XXX_Merge(src proto.Message) {
  82. xxx_messageInfo_ControllerRevisionList.Merge(m, src)
  83. }
  84. func (m *ControllerRevisionList) XXX_Size() int {
  85. return m.Size()
  86. }
  87. func (m *ControllerRevisionList) XXX_DiscardUnknown() {
  88. xxx_messageInfo_ControllerRevisionList.DiscardUnknown(m)
  89. }
  90. var xxx_messageInfo_ControllerRevisionList proto.InternalMessageInfo
  91. func (m *DaemonSet) Reset() { *m = DaemonSet{} }
  92. func (*DaemonSet) ProtoMessage() {}
  93. func (*DaemonSet) Descriptor() ([]byte, []int) {
  94. return fileDescriptor_42fe616264472f7e, []int{2}
  95. }
  96. func (m *DaemonSet) XXX_Unmarshal(b []byte) error {
  97. return m.Unmarshal(b)
  98. }
  99. func (m *DaemonSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  100. b = b[:cap(b)]
  101. n, err := m.MarshalToSizedBuffer(b)
  102. if err != nil {
  103. return nil, err
  104. }
  105. return b[:n], nil
  106. }
  107. func (m *DaemonSet) XXX_Merge(src proto.Message) {
  108. xxx_messageInfo_DaemonSet.Merge(m, src)
  109. }
  110. func (m *DaemonSet) XXX_Size() int {
  111. return m.Size()
  112. }
  113. func (m *DaemonSet) XXX_DiscardUnknown() {
  114. xxx_messageInfo_DaemonSet.DiscardUnknown(m)
  115. }
  116. var xxx_messageInfo_DaemonSet proto.InternalMessageInfo
  117. func (m *DaemonSetCondition) Reset() { *m = DaemonSetCondition{} }
  118. func (*DaemonSetCondition) ProtoMessage() {}
  119. func (*DaemonSetCondition) Descriptor() ([]byte, []int) {
  120. return fileDescriptor_42fe616264472f7e, []int{3}
  121. }
  122. func (m *DaemonSetCondition) XXX_Unmarshal(b []byte) error {
  123. return m.Unmarshal(b)
  124. }
  125. func (m *DaemonSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  126. b = b[:cap(b)]
  127. n, err := m.MarshalToSizedBuffer(b)
  128. if err != nil {
  129. return nil, err
  130. }
  131. return b[:n], nil
  132. }
  133. func (m *DaemonSetCondition) XXX_Merge(src proto.Message) {
  134. xxx_messageInfo_DaemonSetCondition.Merge(m, src)
  135. }
  136. func (m *DaemonSetCondition) XXX_Size() int {
  137. return m.Size()
  138. }
  139. func (m *DaemonSetCondition) XXX_DiscardUnknown() {
  140. xxx_messageInfo_DaemonSetCondition.DiscardUnknown(m)
  141. }
  142. var xxx_messageInfo_DaemonSetCondition proto.InternalMessageInfo
  143. func (m *DaemonSetList) Reset() { *m = DaemonSetList{} }
  144. func (*DaemonSetList) ProtoMessage() {}
  145. func (*DaemonSetList) Descriptor() ([]byte, []int) {
  146. return fileDescriptor_42fe616264472f7e, []int{4}
  147. }
  148. func (m *DaemonSetList) XXX_Unmarshal(b []byte) error {
  149. return m.Unmarshal(b)
  150. }
  151. func (m *DaemonSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  152. b = b[:cap(b)]
  153. n, err := m.MarshalToSizedBuffer(b)
  154. if err != nil {
  155. return nil, err
  156. }
  157. return b[:n], nil
  158. }
  159. func (m *DaemonSetList) XXX_Merge(src proto.Message) {
  160. xxx_messageInfo_DaemonSetList.Merge(m, src)
  161. }
  162. func (m *DaemonSetList) XXX_Size() int {
  163. return m.Size()
  164. }
  165. func (m *DaemonSetList) XXX_DiscardUnknown() {
  166. xxx_messageInfo_DaemonSetList.DiscardUnknown(m)
  167. }
  168. var xxx_messageInfo_DaemonSetList proto.InternalMessageInfo
  169. func (m *DaemonSetSpec) Reset() { *m = DaemonSetSpec{} }
  170. func (*DaemonSetSpec) ProtoMessage() {}
  171. func (*DaemonSetSpec) Descriptor() ([]byte, []int) {
  172. return fileDescriptor_42fe616264472f7e, []int{5}
  173. }
  174. func (m *DaemonSetSpec) XXX_Unmarshal(b []byte) error {
  175. return m.Unmarshal(b)
  176. }
  177. func (m *DaemonSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  178. b = b[:cap(b)]
  179. n, err := m.MarshalToSizedBuffer(b)
  180. if err != nil {
  181. return nil, err
  182. }
  183. return b[:n], nil
  184. }
  185. func (m *DaemonSetSpec) XXX_Merge(src proto.Message) {
  186. xxx_messageInfo_DaemonSetSpec.Merge(m, src)
  187. }
  188. func (m *DaemonSetSpec) XXX_Size() int {
  189. return m.Size()
  190. }
  191. func (m *DaemonSetSpec) XXX_DiscardUnknown() {
  192. xxx_messageInfo_DaemonSetSpec.DiscardUnknown(m)
  193. }
  194. var xxx_messageInfo_DaemonSetSpec proto.InternalMessageInfo
  195. func (m *DaemonSetStatus) Reset() { *m = DaemonSetStatus{} }
  196. func (*DaemonSetStatus) ProtoMessage() {}
  197. func (*DaemonSetStatus) Descriptor() ([]byte, []int) {
  198. return fileDescriptor_42fe616264472f7e, []int{6}
  199. }
  200. func (m *DaemonSetStatus) XXX_Unmarshal(b []byte) error {
  201. return m.Unmarshal(b)
  202. }
  203. func (m *DaemonSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  204. b = b[:cap(b)]
  205. n, err := m.MarshalToSizedBuffer(b)
  206. if err != nil {
  207. return nil, err
  208. }
  209. return b[:n], nil
  210. }
  211. func (m *DaemonSetStatus) XXX_Merge(src proto.Message) {
  212. xxx_messageInfo_DaemonSetStatus.Merge(m, src)
  213. }
  214. func (m *DaemonSetStatus) XXX_Size() int {
  215. return m.Size()
  216. }
  217. func (m *DaemonSetStatus) XXX_DiscardUnknown() {
  218. xxx_messageInfo_DaemonSetStatus.DiscardUnknown(m)
  219. }
  220. var xxx_messageInfo_DaemonSetStatus proto.InternalMessageInfo
  221. func (m *DaemonSetUpdateStrategy) Reset() { *m = DaemonSetUpdateStrategy{} }
  222. func (*DaemonSetUpdateStrategy) ProtoMessage() {}
  223. func (*DaemonSetUpdateStrategy) Descriptor() ([]byte, []int) {
  224. return fileDescriptor_42fe616264472f7e, []int{7}
  225. }
  226. func (m *DaemonSetUpdateStrategy) XXX_Unmarshal(b []byte) error {
  227. return m.Unmarshal(b)
  228. }
  229. func (m *DaemonSetUpdateStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  230. b = b[:cap(b)]
  231. n, err := m.MarshalToSizedBuffer(b)
  232. if err != nil {
  233. return nil, err
  234. }
  235. return b[:n], nil
  236. }
  237. func (m *DaemonSetUpdateStrategy) XXX_Merge(src proto.Message) {
  238. xxx_messageInfo_DaemonSetUpdateStrategy.Merge(m, src)
  239. }
  240. func (m *DaemonSetUpdateStrategy) XXX_Size() int {
  241. return m.Size()
  242. }
  243. func (m *DaemonSetUpdateStrategy) XXX_DiscardUnknown() {
  244. xxx_messageInfo_DaemonSetUpdateStrategy.DiscardUnknown(m)
  245. }
  246. var xxx_messageInfo_DaemonSetUpdateStrategy proto.InternalMessageInfo
  247. func (m *Deployment) Reset() { *m = Deployment{} }
  248. func (*Deployment) ProtoMessage() {}
  249. func (*Deployment) Descriptor() ([]byte, []int) {
  250. return fileDescriptor_42fe616264472f7e, []int{8}
  251. }
  252. func (m *Deployment) XXX_Unmarshal(b []byte) error {
  253. return m.Unmarshal(b)
  254. }
  255. func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  256. b = b[:cap(b)]
  257. n, err := m.MarshalToSizedBuffer(b)
  258. if err != nil {
  259. return nil, err
  260. }
  261. return b[:n], nil
  262. }
  263. func (m *Deployment) XXX_Merge(src proto.Message) {
  264. xxx_messageInfo_Deployment.Merge(m, src)
  265. }
  266. func (m *Deployment) XXX_Size() int {
  267. return m.Size()
  268. }
  269. func (m *Deployment) XXX_DiscardUnknown() {
  270. xxx_messageInfo_Deployment.DiscardUnknown(m)
  271. }
  272. var xxx_messageInfo_Deployment proto.InternalMessageInfo
  273. func (m *DeploymentCondition) Reset() { *m = DeploymentCondition{} }
  274. func (*DeploymentCondition) ProtoMessage() {}
  275. func (*DeploymentCondition) Descriptor() ([]byte, []int) {
  276. return fileDescriptor_42fe616264472f7e, []int{9}
  277. }
  278. func (m *DeploymentCondition) XXX_Unmarshal(b []byte) error {
  279. return m.Unmarshal(b)
  280. }
  281. func (m *DeploymentCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  282. b = b[:cap(b)]
  283. n, err := m.MarshalToSizedBuffer(b)
  284. if err != nil {
  285. return nil, err
  286. }
  287. return b[:n], nil
  288. }
  289. func (m *DeploymentCondition) XXX_Merge(src proto.Message) {
  290. xxx_messageInfo_DeploymentCondition.Merge(m, src)
  291. }
  292. func (m *DeploymentCondition) XXX_Size() int {
  293. return m.Size()
  294. }
  295. func (m *DeploymentCondition) XXX_DiscardUnknown() {
  296. xxx_messageInfo_DeploymentCondition.DiscardUnknown(m)
  297. }
  298. var xxx_messageInfo_DeploymentCondition proto.InternalMessageInfo
  299. func (m *DeploymentList) Reset() { *m = DeploymentList{} }
  300. func (*DeploymentList) ProtoMessage() {}
  301. func (*DeploymentList) Descriptor() ([]byte, []int) {
  302. return fileDescriptor_42fe616264472f7e, []int{10}
  303. }
  304. func (m *DeploymentList) XXX_Unmarshal(b []byte) error {
  305. return m.Unmarshal(b)
  306. }
  307. func (m *DeploymentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  308. b = b[:cap(b)]
  309. n, err := m.MarshalToSizedBuffer(b)
  310. if err != nil {
  311. return nil, err
  312. }
  313. return b[:n], nil
  314. }
  315. func (m *DeploymentList) XXX_Merge(src proto.Message) {
  316. xxx_messageInfo_DeploymentList.Merge(m, src)
  317. }
  318. func (m *DeploymentList) XXX_Size() int {
  319. return m.Size()
  320. }
  321. func (m *DeploymentList) XXX_DiscardUnknown() {
  322. xxx_messageInfo_DeploymentList.DiscardUnknown(m)
  323. }
  324. var xxx_messageInfo_DeploymentList proto.InternalMessageInfo
  325. func (m *DeploymentSpec) Reset() { *m = DeploymentSpec{} }
  326. func (*DeploymentSpec) ProtoMessage() {}
  327. func (*DeploymentSpec) Descriptor() ([]byte, []int) {
  328. return fileDescriptor_42fe616264472f7e, []int{11}
  329. }
  330. func (m *DeploymentSpec) XXX_Unmarshal(b []byte) error {
  331. return m.Unmarshal(b)
  332. }
  333. func (m *DeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  334. b = b[:cap(b)]
  335. n, err := m.MarshalToSizedBuffer(b)
  336. if err != nil {
  337. return nil, err
  338. }
  339. return b[:n], nil
  340. }
  341. func (m *DeploymentSpec) XXX_Merge(src proto.Message) {
  342. xxx_messageInfo_DeploymentSpec.Merge(m, src)
  343. }
  344. func (m *DeploymentSpec) XXX_Size() int {
  345. return m.Size()
  346. }
  347. func (m *DeploymentSpec) XXX_DiscardUnknown() {
  348. xxx_messageInfo_DeploymentSpec.DiscardUnknown(m)
  349. }
  350. var xxx_messageInfo_DeploymentSpec proto.InternalMessageInfo
  351. func (m *DeploymentStatus) Reset() { *m = DeploymentStatus{} }
  352. func (*DeploymentStatus) ProtoMessage() {}
  353. func (*DeploymentStatus) Descriptor() ([]byte, []int) {
  354. return fileDescriptor_42fe616264472f7e, []int{12}
  355. }
  356. func (m *DeploymentStatus) XXX_Unmarshal(b []byte) error {
  357. return m.Unmarshal(b)
  358. }
  359. func (m *DeploymentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  360. b = b[:cap(b)]
  361. n, err := m.MarshalToSizedBuffer(b)
  362. if err != nil {
  363. return nil, err
  364. }
  365. return b[:n], nil
  366. }
  367. func (m *DeploymentStatus) XXX_Merge(src proto.Message) {
  368. xxx_messageInfo_DeploymentStatus.Merge(m, src)
  369. }
  370. func (m *DeploymentStatus) XXX_Size() int {
  371. return m.Size()
  372. }
  373. func (m *DeploymentStatus) XXX_DiscardUnknown() {
  374. xxx_messageInfo_DeploymentStatus.DiscardUnknown(m)
  375. }
  376. var xxx_messageInfo_DeploymentStatus proto.InternalMessageInfo
  377. func (m *DeploymentStrategy) Reset() { *m = DeploymentStrategy{} }
  378. func (*DeploymentStrategy) ProtoMessage() {}
  379. func (*DeploymentStrategy) Descriptor() ([]byte, []int) {
  380. return fileDescriptor_42fe616264472f7e, []int{13}
  381. }
  382. func (m *DeploymentStrategy) XXX_Unmarshal(b []byte) error {
  383. return m.Unmarshal(b)
  384. }
  385. func (m *DeploymentStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  386. b = b[:cap(b)]
  387. n, err := m.MarshalToSizedBuffer(b)
  388. if err != nil {
  389. return nil, err
  390. }
  391. return b[:n], nil
  392. }
  393. func (m *DeploymentStrategy) XXX_Merge(src proto.Message) {
  394. xxx_messageInfo_DeploymentStrategy.Merge(m, src)
  395. }
  396. func (m *DeploymentStrategy) XXX_Size() int {
  397. return m.Size()
  398. }
  399. func (m *DeploymentStrategy) XXX_DiscardUnknown() {
  400. xxx_messageInfo_DeploymentStrategy.DiscardUnknown(m)
  401. }
  402. var xxx_messageInfo_DeploymentStrategy proto.InternalMessageInfo
  403. func (m *ReplicaSet) Reset() { *m = ReplicaSet{} }
  404. func (*ReplicaSet) ProtoMessage() {}
  405. func (*ReplicaSet) Descriptor() ([]byte, []int) {
  406. return fileDescriptor_42fe616264472f7e, []int{14}
  407. }
  408. func (m *ReplicaSet) XXX_Unmarshal(b []byte) error {
  409. return m.Unmarshal(b)
  410. }
  411. func (m *ReplicaSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  412. b = b[:cap(b)]
  413. n, err := m.MarshalToSizedBuffer(b)
  414. if err != nil {
  415. return nil, err
  416. }
  417. return b[:n], nil
  418. }
  419. func (m *ReplicaSet) XXX_Merge(src proto.Message) {
  420. xxx_messageInfo_ReplicaSet.Merge(m, src)
  421. }
  422. func (m *ReplicaSet) XXX_Size() int {
  423. return m.Size()
  424. }
  425. func (m *ReplicaSet) XXX_DiscardUnknown() {
  426. xxx_messageInfo_ReplicaSet.DiscardUnknown(m)
  427. }
  428. var xxx_messageInfo_ReplicaSet proto.InternalMessageInfo
  429. func (m *ReplicaSetCondition) Reset() { *m = ReplicaSetCondition{} }
  430. func (*ReplicaSetCondition) ProtoMessage() {}
  431. func (*ReplicaSetCondition) Descriptor() ([]byte, []int) {
  432. return fileDescriptor_42fe616264472f7e, []int{15}
  433. }
  434. func (m *ReplicaSetCondition) XXX_Unmarshal(b []byte) error {
  435. return m.Unmarshal(b)
  436. }
  437. func (m *ReplicaSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  438. b = b[:cap(b)]
  439. n, err := m.MarshalToSizedBuffer(b)
  440. if err != nil {
  441. return nil, err
  442. }
  443. return b[:n], nil
  444. }
  445. func (m *ReplicaSetCondition) XXX_Merge(src proto.Message) {
  446. xxx_messageInfo_ReplicaSetCondition.Merge(m, src)
  447. }
  448. func (m *ReplicaSetCondition) XXX_Size() int {
  449. return m.Size()
  450. }
  451. func (m *ReplicaSetCondition) XXX_DiscardUnknown() {
  452. xxx_messageInfo_ReplicaSetCondition.DiscardUnknown(m)
  453. }
  454. var xxx_messageInfo_ReplicaSetCondition proto.InternalMessageInfo
  455. func (m *ReplicaSetList) Reset() { *m = ReplicaSetList{} }
  456. func (*ReplicaSetList) ProtoMessage() {}
  457. func (*ReplicaSetList) Descriptor() ([]byte, []int) {
  458. return fileDescriptor_42fe616264472f7e, []int{16}
  459. }
  460. func (m *ReplicaSetList) XXX_Unmarshal(b []byte) error {
  461. return m.Unmarshal(b)
  462. }
  463. func (m *ReplicaSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  464. b = b[:cap(b)]
  465. n, err := m.MarshalToSizedBuffer(b)
  466. if err != nil {
  467. return nil, err
  468. }
  469. return b[:n], nil
  470. }
  471. func (m *ReplicaSetList) XXX_Merge(src proto.Message) {
  472. xxx_messageInfo_ReplicaSetList.Merge(m, src)
  473. }
  474. func (m *ReplicaSetList) XXX_Size() int {
  475. return m.Size()
  476. }
  477. func (m *ReplicaSetList) XXX_DiscardUnknown() {
  478. xxx_messageInfo_ReplicaSetList.DiscardUnknown(m)
  479. }
  480. var xxx_messageInfo_ReplicaSetList proto.InternalMessageInfo
  481. func (m *ReplicaSetSpec) Reset() { *m = ReplicaSetSpec{} }
  482. func (*ReplicaSetSpec) ProtoMessage() {}
  483. func (*ReplicaSetSpec) Descriptor() ([]byte, []int) {
  484. return fileDescriptor_42fe616264472f7e, []int{17}
  485. }
  486. func (m *ReplicaSetSpec) XXX_Unmarshal(b []byte) error {
  487. return m.Unmarshal(b)
  488. }
  489. func (m *ReplicaSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  490. b = b[:cap(b)]
  491. n, err := m.MarshalToSizedBuffer(b)
  492. if err != nil {
  493. return nil, err
  494. }
  495. return b[:n], nil
  496. }
  497. func (m *ReplicaSetSpec) XXX_Merge(src proto.Message) {
  498. xxx_messageInfo_ReplicaSetSpec.Merge(m, src)
  499. }
  500. func (m *ReplicaSetSpec) XXX_Size() int {
  501. return m.Size()
  502. }
  503. func (m *ReplicaSetSpec) XXX_DiscardUnknown() {
  504. xxx_messageInfo_ReplicaSetSpec.DiscardUnknown(m)
  505. }
  506. var xxx_messageInfo_ReplicaSetSpec proto.InternalMessageInfo
  507. func (m *ReplicaSetStatus) Reset() { *m = ReplicaSetStatus{} }
  508. func (*ReplicaSetStatus) ProtoMessage() {}
  509. func (*ReplicaSetStatus) Descriptor() ([]byte, []int) {
  510. return fileDescriptor_42fe616264472f7e, []int{18}
  511. }
  512. func (m *ReplicaSetStatus) XXX_Unmarshal(b []byte) error {
  513. return m.Unmarshal(b)
  514. }
  515. func (m *ReplicaSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  516. b = b[:cap(b)]
  517. n, err := m.MarshalToSizedBuffer(b)
  518. if err != nil {
  519. return nil, err
  520. }
  521. return b[:n], nil
  522. }
  523. func (m *ReplicaSetStatus) XXX_Merge(src proto.Message) {
  524. xxx_messageInfo_ReplicaSetStatus.Merge(m, src)
  525. }
  526. func (m *ReplicaSetStatus) XXX_Size() int {
  527. return m.Size()
  528. }
  529. func (m *ReplicaSetStatus) XXX_DiscardUnknown() {
  530. xxx_messageInfo_ReplicaSetStatus.DiscardUnknown(m)
  531. }
  532. var xxx_messageInfo_ReplicaSetStatus proto.InternalMessageInfo
  533. func (m *RollingUpdateDaemonSet) Reset() { *m = RollingUpdateDaemonSet{} }
  534. func (*RollingUpdateDaemonSet) ProtoMessage() {}
  535. func (*RollingUpdateDaemonSet) Descriptor() ([]byte, []int) {
  536. return fileDescriptor_42fe616264472f7e, []int{19}
  537. }
  538. func (m *RollingUpdateDaemonSet) XXX_Unmarshal(b []byte) error {
  539. return m.Unmarshal(b)
  540. }
  541. func (m *RollingUpdateDaemonSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  542. b = b[:cap(b)]
  543. n, err := m.MarshalToSizedBuffer(b)
  544. if err != nil {
  545. return nil, err
  546. }
  547. return b[:n], nil
  548. }
  549. func (m *RollingUpdateDaemonSet) XXX_Merge(src proto.Message) {
  550. xxx_messageInfo_RollingUpdateDaemonSet.Merge(m, src)
  551. }
  552. func (m *RollingUpdateDaemonSet) XXX_Size() int {
  553. return m.Size()
  554. }
  555. func (m *RollingUpdateDaemonSet) XXX_DiscardUnknown() {
  556. xxx_messageInfo_RollingUpdateDaemonSet.DiscardUnknown(m)
  557. }
  558. var xxx_messageInfo_RollingUpdateDaemonSet proto.InternalMessageInfo
  559. func (m *RollingUpdateDeployment) Reset() { *m = RollingUpdateDeployment{} }
  560. func (*RollingUpdateDeployment) ProtoMessage() {}
  561. func (*RollingUpdateDeployment) Descriptor() ([]byte, []int) {
  562. return fileDescriptor_42fe616264472f7e, []int{20}
  563. }
  564. func (m *RollingUpdateDeployment) XXX_Unmarshal(b []byte) error {
  565. return m.Unmarshal(b)
  566. }
  567. func (m *RollingUpdateDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  568. b = b[:cap(b)]
  569. n, err := m.MarshalToSizedBuffer(b)
  570. if err != nil {
  571. return nil, err
  572. }
  573. return b[:n], nil
  574. }
  575. func (m *RollingUpdateDeployment) XXX_Merge(src proto.Message) {
  576. xxx_messageInfo_RollingUpdateDeployment.Merge(m, src)
  577. }
  578. func (m *RollingUpdateDeployment) XXX_Size() int {
  579. return m.Size()
  580. }
  581. func (m *RollingUpdateDeployment) XXX_DiscardUnknown() {
  582. xxx_messageInfo_RollingUpdateDeployment.DiscardUnknown(m)
  583. }
  584. var xxx_messageInfo_RollingUpdateDeployment proto.InternalMessageInfo
  585. func (m *RollingUpdateStatefulSetStrategy) Reset() { *m = RollingUpdateStatefulSetStrategy{} }
  586. func (*RollingUpdateStatefulSetStrategy) ProtoMessage() {}
  587. func (*RollingUpdateStatefulSetStrategy) Descriptor() ([]byte, []int) {
  588. return fileDescriptor_42fe616264472f7e, []int{21}
  589. }
  590. func (m *RollingUpdateStatefulSetStrategy) XXX_Unmarshal(b []byte) error {
  591. return m.Unmarshal(b)
  592. }
  593. func (m *RollingUpdateStatefulSetStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  594. b = b[:cap(b)]
  595. n, err := m.MarshalToSizedBuffer(b)
  596. if err != nil {
  597. return nil, err
  598. }
  599. return b[:n], nil
  600. }
  601. func (m *RollingUpdateStatefulSetStrategy) XXX_Merge(src proto.Message) {
  602. xxx_messageInfo_RollingUpdateStatefulSetStrategy.Merge(m, src)
  603. }
  604. func (m *RollingUpdateStatefulSetStrategy) XXX_Size() int {
  605. return m.Size()
  606. }
  607. func (m *RollingUpdateStatefulSetStrategy) XXX_DiscardUnknown() {
  608. xxx_messageInfo_RollingUpdateStatefulSetStrategy.DiscardUnknown(m)
  609. }
  610. var xxx_messageInfo_RollingUpdateStatefulSetStrategy proto.InternalMessageInfo
  611. func (m *Scale) Reset() { *m = Scale{} }
  612. func (*Scale) ProtoMessage() {}
  613. func (*Scale) Descriptor() ([]byte, []int) {
  614. return fileDescriptor_42fe616264472f7e, []int{22}
  615. }
  616. func (m *Scale) XXX_Unmarshal(b []byte) error {
  617. return m.Unmarshal(b)
  618. }
  619. func (m *Scale) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  620. b = b[:cap(b)]
  621. n, err := m.MarshalToSizedBuffer(b)
  622. if err != nil {
  623. return nil, err
  624. }
  625. return b[:n], nil
  626. }
  627. func (m *Scale) XXX_Merge(src proto.Message) {
  628. xxx_messageInfo_Scale.Merge(m, src)
  629. }
  630. func (m *Scale) XXX_Size() int {
  631. return m.Size()
  632. }
  633. func (m *Scale) XXX_DiscardUnknown() {
  634. xxx_messageInfo_Scale.DiscardUnknown(m)
  635. }
  636. var xxx_messageInfo_Scale proto.InternalMessageInfo
  637. func (m *ScaleSpec) Reset() { *m = ScaleSpec{} }
  638. func (*ScaleSpec) ProtoMessage() {}
  639. func (*ScaleSpec) Descriptor() ([]byte, []int) {
  640. return fileDescriptor_42fe616264472f7e, []int{23}
  641. }
  642. func (m *ScaleSpec) XXX_Unmarshal(b []byte) error {
  643. return m.Unmarshal(b)
  644. }
  645. func (m *ScaleSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  646. b = b[:cap(b)]
  647. n, err := m.MarshalToSizedBuffer(b)
  648. if err != nil {
  649. return nil, err
  650. }
  651. return b[:n], nil
  652. }
  653. func (m *ScaleSpec) XXX_Merge(src proto.Message) {
  654. xxx_messageInfo_ScaleSpec.Merge(m, src)
  655. }
  656. func (m *ScaleSpec) XXX_Size() int {
  657. return m.Size()
  658. }
  659. func (m *ScaleSpec) XXX_DiscardUnknown() {
  660. xxx_messageInfo_ScaleSpec.DiscardUnknown(m)
  661. }
  662. var xxx_messageInfo_ScaleSpec proto.InternalMessageInfo
  663. func (m *ScaleStatus) Reset() { *m = ScaleStatus{} }
  664. func (*ScaleStatus) ProtoMessage() {}
  665. func (*ScaleStatus) Descriptor() ([]byte, []int) {
  666. return fileDescriptor_42fe616264472f7e, []int{24}
  667. }
  668. func (m *ScaleStatus) XXX_Unmarshal(b []byte) error {
  669. return m.Unmarshal(b)
  670. }
  671. func (m *ScaleStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  672. b = b[:cap(b)]
  673. n, err := m.MarshalToSizedBuffer(b)
  674. if err != nil {
  675. return nil, err
  676. }
  677. return b[:n], nil
  678. }
  679. func (m *ScaleStatus) XXX_Merge(src proto.Message) {
  680. xxx_messageInfo_ScaleStatus.Merge(m, src)
  681. }
  682. func (m *ScaleStatus) XXX_Size() int {
  683. return m.Size()
  684. }
  685. func (m *ScaleStatus) XXX_DiscardUnknown() {
  686. xxx_messageInfo_ScaleStatus.DiscardUnknown(m)
  687. }
  688. var xxx_messageInfo_ScaleStatus proto.InternalMessageInfo
  689. func (m *StatefulSet) Reset() { *m = StatefulSet{} }
  690. func (*StatefulSet) ProtoMessage() {}
  691. func (*StatefulSet) Descriptor() ([]byte, []int) {
  692. return fileDescriptor_42fe616264472f7e, []int{25}
  693. }
  694. func (m *StatefulSet) XXX_Unmarshal(b []byte) error {
  695. return m.Unmarshal(b)
  696. }
  697. func (m *StatefulSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  698. b = b[:cap(b)]
  699. n, err := m.MarshalToSizedBuffer(b)
  700. if err != nil {
  701. return nil, err
  702. }
  703. return b[:n], nil
  704. }
  705. func (m *StatefulSet) XXX_Merge(src proto.Message) {
  706. xxx_messageInfo_StatefulSet.Merge(m, src)
  707. }
  708. func (m *StatefulSet) XXX_Size() int {
  709. return m.Size()
  710. }
  711. func (m *StatefulSet) XXX_DiscardUnknown() {
  712. xxx_messageInfo_StatefulSet.DiscardUnknown(m)
  713. }
  714. var xxx_messageInfo_StatefulSet proto.InternalMessageInfo
  715. func (m *StatefulSetCondition) Reset() { *m = StatefulSetCondition{} }
  716. func (*StatefulSetCondition) ProtoMessage() {}
  717. func (*StatefulSetCondition) Descriptor() ([]byte, []int) {
  718. return fileDescriptor_42fe616264472f7e, []int{26}
  719. }
  720. func (m *StatefulSetCondition) XXX_Unmarshal(b []byte) error {
  721. return m.Unmarshal(b)
  722. }
  723. func (m *StatefulSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  724. b = b[:cap(b)]
  725. n, err := m.MarshalToSizedBuffer(b)
  726. if err != nil {
  727. return nil, err
  728. }
  729. return b[:n], nil
  730. }
  731. func (m *StatefulSetCondition) XXX_Merge(src proto.Message) {
  732. xxx_messageInfo_StatefulSetCondition.Merge(m, src)
  733. }
  734. func (m *StatefulSetCondition) XXX_Size() int {
  735. return m.Size()
  736. }
  737. func (m *StatefulSetCondition) XXX_DiscardUnknown() {
  738. xxx_messageInfo_StatefulSetCondition.DiscardUnknown(m)
  739. }
  740. var xxx_messageInfo_StatefulSetCondition proto.InternalMessageInfo
  741. func (m *StatefulSetList) Reset() { *m = StatefulSetList{} }
  742. func (*StatefulSetList) ProtoMessage() {}
  743. func (*StatefulSetList) Descriptor() ([]byte, []int) {
  744. return fileDescriptor_42fe616264472f7e, []int{27}
  745. }
  746. func (m *StatefulSetList) XXX_Unmarshal(b []byte) error {
  747. return m.Unmarshal(b)
  748. }
  749. func (m *StatefulSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  750. b = b[:cap(b)]
  751. n, err := m.MarshalToSizedBuffer(b)
  752. if err != nil {
  753. return nil, err
  754. }
  755. return b[:n], nil
  756. }
  757. func (m *StatefulSetList) XXX_Merge(src proto.Message) {
  758. xxx_messageInfo_StatefulSetList.Merge(m, src)
  759. }
  760. func (m *StatefulSetList) XXX_Size() int {
  761. return m.Size()
  762. }
  763. func (m *StatefulSetList) XXX_DiscardUnknown() {
  764. xxx_messageInfo_StatefulSetList.DiscardUnknown(m)
  765. }
  766. var xxx_messageInfo_StatefulSetList proto.InternalMessageInfo
  767. func (m *StatefulSetSpec) Reset() { *m = StatefulSetSpec{} }
  768. func (*StatefulSetSpec) ProtoMessage() {}
  769. func (*StatefulSetSpec) Descriptor() ([]byte, []int) {
  770. return fileDescriptor_42fe616264472f7e, []int{28}
  771. }
  772. func (m *StatefulSetSpec) XXX_Unmarshal(b []byte) error {
  773. return m.Unmarshal(b)
  774. }
  775. func (m *StatefulSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  776. b = b[:cap(b)]
  777. n, err := m.MarshalToSizedBuffer(b)
  778. if err != nil {
  779. return nil, err
  780. }
  781. return b[:n], nil
  782. }
  783. func (m *StatefulSetSpec) XXX_Merge(src proto.Message) {
  784. xxx_messageInfo_StatefulSetSpec.Merge(m, src)
  785. }
  786. func (m *StatefulSetSpec) XXX_Size() int {
  787. return m.Size()
  788. }
  789. func (m *StatefulSetSpec) XXX_DiscardUnknown() {
  790. xxx_messageInfo_StatefulSetSpec.DiscardUnknown(m)
  791. }
  792. var xxx_messageInfo_StatefulSetSpec proto.InternalMessageInfo
  793. func (m *StatefulSetStatus) Reset() { *m = StatefulSetStatus{} }
  794. func (*StatefulSetStatus) ProtoMessage() {}
  795. func (*StatefulSetStatus) Descriptor() ([]byte, []int) {
  796. return fileDescriptor_42fe616264472f7e, []int{29}
  797. }
  798. func (m *StatefulSetStatus) XXX_Unmarshal(b []byte) error {
  799. return m.Unmarshal(b)
  800. }
  801. func (m *StatefulSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  802. b = b[:cap(b)]
  803. n, err := m.MarshalToSizedBuffer(b)
  804. if err != nil {
  805. return nil, err
  806. }
  807. return b[:n], nil
  808. }
  809. func (m *StatefulSetStatus) XXX_Merge(src proto.Message) {
  810. xxx_messageInfo_StatefulSetStatus.Merge(m, src)
  811. }
  812. func (m *StatefulSetStatus) XXX_Size() int {
  813. return m.Size()
  814. }
  815. func (m *StatefulSetStatus) XXX_DiscardUnknown() {
  816. xxx_messageInfo_StatefulSetStatus.DiscardUnknown(m)
  817. }
  818. var xxx_messageInfo_StatefulSetStatus proto.InternalMessageInfo
  819. func (m *StatefulSetUpdateStrategy) Reset() { *m = StatefulSetUpdateStrategy{} }
  820. func (*StatefulSetUpdateStrategy) ProtoMessage() {}
  821. func (*StatefulSetUpdateStrategy) Descriptor() ([]byte, []int) {
  822. return fileDescriptor_42fe616264472f7e, []int{30}
  823. }
  824. func (m *StatefulSetUpdateStrategy) XXX_Unmarshal(b []byte) error {
  825. return m.Unmarshal(b)
  826. }
  827. func (m *StatefulSetUpdateStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  828. b = b[:cap(b)]
  829. n, err := m.MarshalToSizedBuffer(b)
  830. if err != nil {
  831. return nil, err
  832. }
  833. return b[:n], nil
  834. }
  835. func (m *StatefulSetUpdateStrategy) XXX_Merge(src proto.Message) {
  836. xxx_messageInfo_StatefulSetUpdateStrategy.Merge(m, src)
  837. }
  838. func (m *StatefulSetUpdateStrategy) XXX_Size() int {
  839. return m.Size()
  840. }
  841. func (m *StatefulSetUpdateStrategy) XXX_DiscardUnknown() {
  842. xxx_messageInfo_StatefulSetUpdateStrategy.DiscardUnknown(m)
  843. }
  844. var xxx_messageInfo_StatefulSetUpdateStrategy proto.InternalMessageInfo
  845. func init() {
  846. proto.RegisterType((*ControllerRevision)(nil), "k8s.io.api.apps.v1beta2.ControllerRevision")
  847. proto.RegisterType((*ControllerRevisionList)(nil), "k8s.io.api.apps.v1beta2.ControllerRevisionList")
  848. proto.RegisterType((*DaemonSet)(nil), "k8s.io.api.apps.v1beta2.DaemonSet")
  849. proto.RegisterType((*DaemonSetCondition)(nil), "k8s.io.api.apps.v1beta2.DaemonSetCondition")
  850. proto.RegisterType((*DaemonSetList)(nil), "k8s.io.api.apps.v1beta2.DaemonSetList")
  851. proto.RegisterType((*DaemonSetSpec)(nil), "k8s.io.api.apps.v1beta2.DaemonSetSpec")
  852. proto.RegisterType((*DaemonSetStatus)(nil), "k8s.io.api.apps.v1beta2.DaemonSetStatus")
  853. proto.RegisterType((*DaemonSetUpdateStrategy)(nil), "k8s.io.api.apps.v1beta2.DaemonSetUpdateStrategy")
  854. proto.RegisterType((*Deployment)(nil), "k8s.io.api.apps.v1beta2.Deployment")
  855. proto.RegisterType((*DeploymentCondition)(nil), "k8s.io.api.apps.v1beta2.DeploymentCondition")
  856. proto.RegisterType((*DeploymentList)(nil), "k8s.io.api.apps.v1beta2.DeploymentList")
  857. proto.RegisterType((*DeploymentSpec)(nil), "k8s.io.api.apps.v1beta2.DeploymentSpec")
  858. proto.RegisterType((*DeploymentStatus)(nil), "k8s.io.api.apps.v1beta2.DeploymentStatus")
  859. proto.RegisterType((*DeploymentStrategy)(nil), "k8s.io.api.apps.v1beta2.DeploymentStrategy")
  860. proto.RegisterType((*ReplicaSet)(nil), "k8s.io.api.apps.v1beta2.ReplicaSet")
  861. proto.RegisterType((*ReplicaSetCondition)(nil), "k8s.io.api.apps.v1beta2.ReplicaSetCondition")
  862. proto.RegisterType((*ReplicaSetList)(nil), "k8s.io.api.apps.v1beta2.ReplicaSetList")
  863. proto.RegisterType((*ReplicaSetSpec)(nil), "k8s.io.api.apps.v1beta2.ReplicaSetSpec")
  864. proto.RegisterType((*ReplicaSetStatus)(nil), "k8s.io.api.apps.v1beta2.ReplicaSetStatus")
  865. proto.RegisterType((*RollingUpdateDaemonSet)(nil), "k8s.io.api.apps.v1beta2.RollingUpdateDaemonSet")
  866. proto.RegisterType((*RollingUpdateDeployment)(nil), "k8s.io.api.apps.v1beta2.RollingUpdateDeployment")
  867. proto.RegisterType((*RollingUpdateStatefulSetStrategy)(nil), "k8s.io.api.apps.v1beta2.RollingUpdateStatefulSetStrategy")
  868. proto.RegisterType((*Scale)(nil), "k8s.io.api.apps.v1beta2.Scale")
  869. proto.RegisterType((*ScaleSpec)(nil), "k8s.io.api.apps.v1beta2.ScaleSpec")
  870. proto.RegisterType((*ScaleStatus)(nil), "k8s.io.api.apps.v1beta2.ScaleStatus")
  871. proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.apps.v1beta2.ScaleStatus.SelectorEntry")
  872. proto.RegisterType((*StatefulSet)(nil), "k8s.io.api.apps.v1beta2.StatefulSet")
  873. proto.RegisterType((*StatefulSetCondition)(nil), "k8s.io.api.apps.v1beta2.StatefulSetCondition")
  874. proto.RegisterType((*StatefulSetList)(nil), "k8s.io.api.apps.v1beta2.StatefulSetList")
  875. proto.RegisterType((*StatefulSetSpec)(nil), "k8s.io.api.apps.v1beta2.StatefulSetSpec")
  876. proto.RegisterType((*StatefulSetStatus)(nil), "k8s.io.api.apps.v1beta2.StatefulSetStatus")
  877. proto.RegisterType((*StatefulSetUpdateStrategy)(nil), "k8s.io.api.apps.v1beta2.StatefulSetUpdateStrategy")
  878. }
  879. func init() {
  880. proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/apps/v1beta2/generated.proto", fileDescriptor_42fe616264472f7e)
  881. }
  882. var fileDescriptor_42fe616264472f7e = []byte{
  883. // 2169 bytes of a gzipped FileDescriptorProto
  884. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0xcd, 0x6f, 0x1c, 0xb7,
  885. 0xf9, 0xd6, 0xec, 0x87, 0xb4, 0xa2, 0x2c, 0xc9, 0xa6, 0xf4, 0x93, 0x36, 0xf2, 0xaf, 0x2b, 0x63,
  886. 0x13, 0x38, 0x4a, 0x6c, 0xcd, 0xda, 0xca, 0x07, 0x12, 0xbb, 0x68, 0xab, 0x95, 0x52, 0xdb, 0x81,
  887. 0xbe, 0x42, 0x59, 0x06, 0x1a, 0xb4, 0xa8, 0xa9, 0x5d, 0x7a, 0x35, 0xd1, 0x7c, 0x61, 0x86, 0xb3,
  888. 0xf5, 0xa2, 0x97, 0x5e, 0x0b, 0x14, 0x68, 0x7b, 0xed, 0x3f, 0xd1, 0x5b, 0x51, 0xb4, 0xb7, 0x22,
  889. 0x28, 0x7c, 0x29, 0x10, 0xf4, 0x92, 0x9c, 0x84, 0x7a, 0x73, 0x2a, 0x8a, 0x5e, 0x0a, 0xf4, 0x12,
  890. 0xa0, 0x40, 0x41, 0x0e, 0xe7, 0x83, 0xf3, 0xe1, 0x1d, 0x29, 0x8e, 0xd2, 0x04, 0xb9, 0x69, 0xc9,
  891. 0xe7, 0x7d, 0xf8, 0xbe, 0xe4, 0x4b, 0xbe, 0x0f, 0x39, 0x02, 0xdf, 0x3b, 0x7e, 0xcb, 0x55, 0x35,
  892. 0xab, 0x75, 0xec, 0x1d, 0x12, 0xc7, 0x24, 0x94, 0xb8, 0xad, 0x3e, 0x31, 0xbb, 0x96, 0xd3, 0x12,
  893. 0x1d, 0xd8, 0xd6, 0x5a, 0xd8, 0xb6, 0xdd, 0x56, 0xff, 0xe6, 0x21, 0xa1, 0x78, 0xad, 0xd5, 0x23,
  894. 0x26, 0x71, 0x30, 0x25, 0x5d, 0xd5, 0x76, 0x2c, 0x6a, 0xc1, 0x45, 0x1f, 0xa8, 0x62, 0x5b, 0x53,
  895. 0x19, 0x50, 0x15, 0xc0, 0xa5, 0xd5, 0x9e, 0x46, 0x8f, 0xbc, 0x43, 0xb5, 0x63, 0x19, 0xad, 0x9e,
  896. 0xd5, 0xb3, 0x5a, 0x1c, 0x7f, 0xe8, 0x3d, 0xe2, 0xbf, 0xf8, 0x0f, 0xfe, 0x97, 0xcf, 0xb3, 0xd4,
  897. 0x8c, 0x0d, 0xd8, 0xb1, 0x1c, 0xd2, 0xea, 0xdf, 0x4c, 0x8e, 0xb5, 0xf4, 0x7a, 0x84, 0x31, 0x70,
  898. 0xe7, 0x48, 0x33, 0x89, 0x33, 0x68, 0xd9, 0xc7, 0x3d, 0xd6, 0xe0, 0xb6, 0x0c, 0x42, 0x71, 0x96,
  899. 0x55, 0x2b, 0xcf, 0xca, 0xf1, 0x4c, 0xaa, 0x19, 0x24, 0x65, 0xf0, 0xe6, 0x28, 0x03, 0xb7, 0x73,
  900. 0x44, 0x0c, 0x9c, 0xb2, 0x7b, 0x2d, 0xcf, 0xce, 0xa3, 0x9a, 0xde, 0xd2, 0x4c, 0xea, 0x52, 0x27,
  901. 0x69, 0xd4, 0xfc, 0xb7, 0x02, 0xe0, 0x86, 0x65, 0x52, 0xc7, 0xd2, 0x75, 0xe2, 0x20, 0xd2, 0xd7,
  902. 0x5c, 0xcd, 0x32, 0xe1, 0x43, 0x50, 0x63, 0xf1, 0x74, 0x31, 0xc5, 0x75, 0xe5, 0x8a, 0xb2, 0x32,
  903. 0xb5, 0x76, 0x43, 0x8d, 0x66, 0x3a, 0xa4, 0x57, 0xed, 0xe3, 0x1e, 0x6b, 0x70, 0x55, 0x86, 0x56,
  904. 0xfb, 0x37, 0xd5, 0xdd, 0xc3, 0x0f, 0x48, 0x87, 0x6e, 0x13, 0x8a, 0xdb, 0xf0, 0xc9, 0xc9, 0xf2,
  905. 0xd8, 0xf0, 0x64, 0x19, 0x44, 0x6d, 0x28, 0x64, 0x85, 0xbb, 0xa0, 0xc2, 0xd9, 0x4b, 0x9c, 0x7d,
  906. 0x35, 0x97, 0x5d, 0x04, 0xad, 0x22, 0xfc, 0x93, 0x77, 0x1e, 0x53, 0x62, 0x32, 0xf7, 0xda, 0x17,
  907. 0x04, 0x75, 0x65, 0x13, 0x53, 0x8c, 0x38, 0x11, 0xbc, 0x0e, 0x6a, 0x8e, 0x70, 0xbf, 0x5e, 0xbe,
  908. 0xa2, 0xac, 0x94, 0xdb, 0x17, 0x05, 0xaa, 0x16, 0x84, 0x85, 0x42, 0x44, 0xf3, 0x89, 0x02, 0x16,
  909. 0xd2, 0x71, 0x6f, 0x69, 0x2e, 0x85, 0x3f, 0x4c, 0xc5, 0xae, 0x16, 0x8b, 0x9d, 0x59, 0xf3, 0xc8,
  910. 0xc3, 0x81, 0x83, 0x96, 0x58, 0xdc, 0x7b, 0xa0, 0xaa, 0x51, 0x62, 0xb8, 0xf5, 0xd2, 0x95, 0xf2,
  911. 0xca, 0xd4, 0xda, 0x35, 0x35, 0x27, 0x81, 0xd5, 0xb4, 0x77, 0xed, 0x69, 0xc1, 0x5b, 0xbd, 0xc7,
  912. 0x18, 0x90, 0x4f, 0xd4, 0xfc, 0x79, 0x09, 0x4c, 0x6e, 0x62, 0x62, 0x58, 0xe6, 0x3e, 0xa1, 0xe7,
  913. 0xb0, 0x72, 0x77, 0x41, 0xc5, 0xb5, 0x49, 0x47, 0xac, 0xdc, 0xd5, 0xdc, 0x00, 0x42, 0x9f, 0xf6,
  914. 0x6d, 0xd2, 0x89, 0x96, 0x8c, 0xfd, 0x42, 0x9c, 0x01, 0xee, 0x81, 0x71, 0x97, 0x62, 0xea, 0xb9,
  915. 0x7c, 0xc1, 0xa6, 0xd6, 0x56, 0x0a, 0x70, 0x71, 0x7c, 0x7b, 0x46, 0xb0, 0x8d, 0xfb, 0xbf, 0x91,
  916. 0xe0, 0x69, 0xfe, 0xbd, 0x04, 0x60, 0x88, 0xdd, 0xb0, 0xcc, 0xae, 0x46, 0x59, 0x3a, 0xdf, 0x02,
  917. 0x15, 0x3a, 0xb0, 0x09, 0x9f, 0x90, 0xc9, 0xf6, 0xd5, 0xc0, 0x95, 0xfb, 0x03, 0x9b, 0x7c, 0x76,
  918. 0xb2, 0xbc, 0x90, 0xb6, 0x60, 0x3d, 0x88, 0xdb, 0xc0, 0xad, 0xd0, 0xc9, 0x12, 0xb7, 0x7e, 0x5d,
  919. 0x1e, 0xfa, 0xb3, 0x93, 0xe5, 0x8c, 0xb3, 0x43, 0x0d, 0x99, 0x64, 0x07, 0x61, 0x1f, 0x40, 0x1d,
  920. 0xbb, 0xf4, 0xbe, 0x83, 0x4d, 0xd7, 0x1f, 0x49, 0x33, 0x88, 0x08, 0xff, 0xd5, 0x62, 0x0b, 0xc5,
  921. 0x2c, 0xda, 0x4b, 0xc2, 0x0b, 0xb8, 0x95, 0x62, 0x43, 0x19, 0x23, 0xc0, 0xab, 0x60, 0xdc, 0x21,
  922. 0xd8, 0xb5, 0xcc, 0x7a, 0x85, 0x47, 0x11, 0x4e, 0x20, 0xe2, 0xad, 0x48, 0xf4, 0xc2, 0x57, 0xc0,
  923. 0x84, 0x41, 0x5c, 0x17, 0xf7, 0x48, 0xbd, 0xca, 0x81, 0xb3, 0x02, 0x38, 0xb1, 0xed, 0x37, 0xa3,
  924. 0xa0, 0xbf, 0xf9, 0x3b, 0x05, 0x4c, 0x87, 0x33, 0x77, 0x0e, 0x3b, 0xe7, 0x8e, 0xbc, 0x73, 0x9a,
  925. 0xa3, 0x93, 0x25, 0x67, 0xc3, 0x7c, 0x58, 0x8e, 0x39, 0xce, 0xd2, 0x11, 0xfe, 0x08, 0xd4, 0x5c,
  926. 0xa2, 0x93, 0x0e, 0xb5, 0x1c, 0xe1, 0xf8, 0x6b, 0x05, 0x1d, 0xc7, 0x87, 0x44, 0xdf, 0x17, 0xa6,
  927. 0xed, 0x0b, 0xcc, 0xf3, 0xe0, 0x17, 0x0a, 0x29, 0xe1, 0x7b, 0xa0, 0x46, 0x89, 0x61, 0xeb, 0x98,
  928. 0x12, 0xb1, 0x6b, 0x5e, 0x8c, 0x3b, 0xcf, 0x72, 0x86, 0x91, 0xed, 0x59, 0xdd, 0xfb, 0x02, 0xc6,
  929. 0xb7, 0x4c, 0x38, 0x19, 0x41, 0x2b, 0x0a, 0x69, 0xa0, 0x0d, 0x66, 0x3c, 0xbb, 0xcb, 0x90, 0x94,
  930. 0x1d, 0xe7, 0xbd, 0x81, 0xc8, 0xa1, 0x1b, 0xa3, 0x67, 0xe5, 0x40, 0xb2, 0x6b, 0x2f, 0x88, 0x51,
  931. 0x66, 0xe4, 0x76, 0x94, 0xe0, 0x87, 0xeb, 0x60, 0xd6, 0xd0, 0x4c, 0x44, 0x70, 0x77, 0xb0, 0x4f,
  932. 0x3a, 0x96, 0xd9, 0x75, 0x79, 0x2a, 0x55, 0xdb, 0x8b, 0x82, 0x60, 0x76, 0x5b, 0xee, 0x46, 0x49,
  933. 0x3c, 0xdc, 0x02, 0xf3, 0xc1, 0x01, 0x7c, 0x57, 0x73, 0xa9, 0xe5, 0x0c, 0xb6, 0x34, 0x43, 0xa3,
  934. 0xf5, 0x71, 0xce, 0x53, 0x1f, 0x9e, 0x2c, 0xcf, 0xa3, 0x8c, 0x7e, 0x94, 0x69, 0xd5, 0xfc, 0xf5,
  935. 0x38, 0x98, 0x4d, 0x9c, 0x0b, 0xf0, 0x01, 0x58, 0xe8, 0x78, 0x8e, 0x43, 0x4c, 0xba, 0xe3, 0x19,
  936. 0x87, 0xc4, 0xd9, 0xef, 0x1c, 0x91, 0xae, 0xa7, 0x93, 0x2e, 0x5f, 0xd6, 0x6a, 0xbb, 0x21, 0x7c,
  937. 0x5d, 0xd8, 0xc8, 0x44, 0xa1, 0x1c, 0x6b, 0xf8, 0x2e, 0x80, 0x26, 0x6f, 0xda, 0xd6, 0x5c, 0x37,
  938. 0xe4, 0x2c, 0x71, 0xce, 0x70, 0x2b, 0xee, 0xa4, 0x10, 0x28, 0xc3, 0x8a, 0xf9, 0xd8, 0x25, 0xae,
  939. 0xe6, 0x90, 0x6e, 0xd2, 0xc7, 0xb2, 0xec, 0xe3, 0x66, 0x26, 0x0a, 0xe5, 0x58, 0xc3, 0x37, 0xc0,
  940. 0x94, 0x3f, 0x1a, 0x9f, 0x73, 0xb1, 0x38, 0x73, 0x82, 0x6c, 0x6a, 0x27, 0xea, 0x42, 0x71, 0x1c,
  941. 0x0b, 0xcd, 0x3a, 0x74, 0x89, 0xd3, 0x27, 0xdd, 0x3b, 0xbe, 0x38, 0x60, 0x15, 0xb4, 0xca, 0x2b,
  942. 0x68, 0x18, 0xda, 0x6e, 0x0a, 0x81, 0x32, 0xac, 0x58, 0x68, 0x7e, 0xd6, 0xa4, 0x42, 0x1b, 0x97,
  943. 0x43, 0x3b, 0xc8, 0x44, 0xa1, 0x1c, 0x6b, 0x96, 0x7b, 0xbe, 0xcb, 0xeb, 0x7d, 0xac, 0xe9, 0xf8,
  944. 0x50, 0x27, 0xf5, 0x09, 0x39, 0xf7, 0x76, 0xe4, 0x6e, 0x94, 0xc4, 0xc3, 0x3b, 0xe0, 0x92, 0xdf,
  945. 0x74, 0x60, 0xe2, 0x90, 0xa4, 0xc6, 0x49, 0x5e, 0x10, 0x24, 0x97, 0x76, 0x92, 0x00, 0x94, 0xb6,
  946. 0x81, 0xb7, 0xc0, 0x4c, 0xc7, 0xd2, 0x75, 0x9e, 0x8f, 0x1b, 0x96, 0x67, 0xd2, 0xfa, 0x24, 0x67,
  947. 0x81, 0x6c, 0x0f, 0x6d, 0x48, 0x3d, 0x28, 0x81, 0x84, 0x3f, 0x06, 0xa0, 0x13, 0x14, 0x06, 0xb7,
  948. 0x0e, 0x46, 0x28, 0x80, 0x74, 0x59, 0x8a, 0x2a, 0x73, 0xd8, 0xe4, 0xa2, 0x18, 0x65, 0xf3, 0x43,
  949. 0x05, 0x2c, 0xe6, 0x6c, 0x74, 0xf8, 0x5d, 0xa9, 0x08, 0x5e, 0x4b, 0x14, 0xc1, 0xcb, 0x39, 0x66,
  950. 0xb1, 0x4a, 0x78, 0x04, 0xa6, 0x99, 0x20, 0xd1, 0xcc, 0x9e, 0x0f, 0x11, 0x67, 0x59, 0x2b, 0x37,
  951. 0x00, 0x14, 0x47, 0x47, 0xa7, 0xf2, 0xa5, 0xe1, 0xc9, 0xf2, 0xb4, 0xd4, 0x87, 0x64, 0xe2, 0xe6,
  952. 0x2f, 0x4a, 0x00, 0x6c, 0x12, 0x5b, 0xb7, 0x06, 0x06, 0x31, 0xcf, 0x43, 0xd3, 0xdc, 0x93, 0x34,
  953. 0xcd, 0xcb, 0xf9, 0x4b, 0x12, 0x3a, 0x95, 0x2b, 0x6a, 0xde, 0x4b, 0x88, 0x9a, 0x57, 0x8a, 0x90,
  954. 0x3d, 0x5b, 0xd5, 0x7c, 0x5c, 0x06, 0x73, 0x11, 0x38, 0x92, 0x35, 0xb7, 0xa5, 0x15, 0x7d, 0x39,
  955. 0xb1, 0xa2, 0x8b, 0x19, 0x26, 0x5f, 0x98, 0xae, 0xf9, 0x00, 0xcc, 0x30, 0xd5, 0xe1, 0xaf, 0x1f,
  956. 0xd7, 0x34, 0xe3, 0xa7, 0xd6, 0x34, 0x61, 0x25, 0xda, 0x92, 0x98, 0x50, 0x82, 0x39, 0x47, 0x43,
  957. 0x4d, 0x7c, 0x15, 0x35, 0xd4, 0xef, 0x15, 0x30, 0x13, 0x2d, 0xd3, 0x39, 0x88, 0xa8, 0xbb, 0xb2,
  958. 0x88, 0x7a, 0xb1, 0x40, 0x72, 0xe6, 0xa8, 0xa8, 0x8f, 0x2b, 0x71, 0xd7, 0xb9, 0x8c, 0x5a, 0x61,
  959. 0x57, 0x30, 0x5b, 0xd7, 0x3a, 0xd8, 0x15, 0xf5, 0xf6, 0x82, 0x7f, 0xfd, 0xf2, 0xdb, 0x50, 0xd8,
  960. 0x2b, 0x09, 0xae, 0xd2, 0x17, 0x2b, 0xb8, 0xca, 0xcf, 0x47, 0x70, 0xfd, 0x00, 0xd4, 0xdc, 0x40,
  961. 0x6a, 0x55, 0x38, 0xe5, 0xb5, 0x42, 0x1b, 0x5b, 0xa8, 0xac, 0x90, 0x3a, 0xd4, 0x57, 0x21, 0x5d,
  962. 0x96, 0xb2, 0xaa, 0x7e, 0x99, 0xca, 0x8a, 0x25, 0xba, 0x8d, 0x3d, 0x97, 0x74, 0xf9, 0xa6, 0xaa,
  963. 0x45, 0x89, 0xbe, 0xc7, 0x5b, 0x91, 0xe8, 0x85, 0x07, 0x60, 0xd1, 0x76, 0xac, 0x9e, 0x43, 0x5c,
  964. 0x77, 0x93, 0xe0, 0xae, 0xae, 0x99, 0x24, 0x08, 0xc0, 0xaf, 0x89, 0x97, 0x87, 0x27, 0xcb, 0x8b,
  965. 0x7b, 0xd9, 0x10, 0x94, 0x67, 0xdb, 0xfc, 0x53, 0x05, 0x5c, 0x4c, 0x9e, 0x8d, 0x39, 0x32, 0x45,
  966. 0x39, 0x93, 0x4c, 0xb9, 0x1e, 0xcb, 0x53, 0x5f, 0xc3, 0xc5, 0x9e, 0x0a, 0x52, 0xb9, 0xba, 0x0e,
  967. 0x66, 0x85, 0x2c, 0x09, 0x3a, 0x85, 0x50, 0x0b, 0x97, 0xe7, 0x40, 0xee, 0x46, 0x49, 0x3c, 0xbc,
  968. 0x0d, 0xa6, 0x1d, 0xae, 0xbc, 0x02, 0x02, 0x5f, 0xbd, 0xfc, 0x9f, 0x20, 0x98, 0x46, 0xf1, 0x4e,
  969. 0x24, 0x63, 0x99, 0x72, 0x89, 0x04, 0x49, 0x40, 0x50, 0x91, 0x95, 0xcb, 0x7a, 0x12, 0x80, 0xd2,
  970. 0x36, 0x70, 0x1b, 0xcc, 0x79, 0x66, 0x9a, 0xca, 0xcf, 0xb5, 0xcb, 0x82, 0x6a, 0xee, 0x20, 0x0d,
  971. 0x41, 0x59, 0x76, 0xf0, 0xa1, 0x24, 0x66, 0xc6, 0xf9, 0x79, 0x72, 0xbd, 0xc0, 0x9e, 0x28, 0xac,
  972. 0x66, 0x32, 0xa4, 0x56, 0xad, 0xa8, 0xd4, 0x6a, 0xfe, 0x51, 0x01, 0x30, 0xbd, 0x0f, 0x47, 0xbe,
  973. 0x04, 0xa4, 0x2c, 0x62, 0x15, 0x53, 0xcb, 0xd6, 0x3f, 0x37, 0x0a, 0xea, 0x9f, 0xe8, 0x40, 0x2d,
  974. 0x26, 0x80, 0xc4, 0x44, 0x9f, 0xcf, 0xa3, 0x4e, 0x51, 0x01, 0x14, 0x39, 0xf5, 0x1c, 0x04, 0x50,
  975. 0x8c, 0xec, 0xd9, 0x02, 0xe8, 0x1f, 0x25, 0x30, 0x17, 0x81, 0x0b, 0x0b, 0xa0, 0x0c, 0x93, 0x6f,
  976. 0x1e, 0x76, 0x8a, 0x89, 0x92, 0x68, 0xea, 0xfe, 0x97, 0x44, 0x49, 0xe4, 0x55, 0x8e, 0x28, 0xf9,
  977. 0x6d, 0x29, 0xee, 0xfa, 0x29, 0x45, 0xc9, 0x73, 0x78, 0xe1, 0xf8, 0xca, 0xe9, 0x9a, 0xe6, 0x9f,
  978. 0xcb, 0xe0, 0x62, 0x72, 0x1f, 0x4a, 0x05, 0x52, 0x19, 0x59, 0x20, 0xf7, 0xc0, 0xfc, 0x23, 0x4f,
  979. 0xd7, 0x07, 0x3c, 0x86, 0x58, 0x95, 0xf4, 0x4b, 0xeb, 0xff, 0x0b, 0xcb, 0xf9, 0xef, 0x67, 0x60,
  980. 0x50, 0xa6, 0x65, 0xba, 0x5e, 0x56, 0x3e, 0x6f, 0xbd, 0xac, 0x9e, 0xa1, 0x5e, 0x66, 0x4b, 0x8e,
  981. 0xf2, 0x99, 0x24, 0xc7, 0xe9, 0x8a, 0x65, 0xc6, 0xc1, 0x35, 0xf2, 0xea, 0x3f, 0x54, 0xc0, 0x42,
  982. 0xf6, 0x85, 0x1b, 0xea, 0x60, 0xc6, 0xc0, 0x8f, 0xe3, 0x0f, 0x1f, 0xa3, 0x8a, 0x88, 0x47, 0x35,
  983. 0x5d, 0xf5, 0x3f, 0x19, 0xa9, 0xf7, 0x4c, 0xba, 0xeb, 0xec, 0x53, 0x47, 0x33, 0x7b, 0x7e, 0xe5,
  984. 0xdd, 0x96, 0xb8, 0x50, 0x82, 0x1b, 0xbe, 0x0f, 0x6a, 0x06, 0x7e, 0xbc, 0xef, 0x39, 0xbd, 0xac,
  985. 0x0a, 0x59, 0x6c, 0x1c, 0xbe, 0x01, 0xb6, 0x05, 0x0b, 0x0a, 0xf9, 0x9a, 0x9f, 0x2a, 0x60, 0x31,
  986. 0xa7, 0xaa, 0x7e, 0x8d, 0xa2, 0xdc, 0x05, 0x57, 0xa4, 0x20, 0xd9, 0xae, 0x24, 0x8f, 0x3c, 0x9d,
  987. 0x6f, 0x50, 0x21, 0x64, 0xae, 0x81, 0x49, 0x1b, 0x3b, 0x54, 0x0b, 0x65, 0x70, 0xb5, 0x3d, 0x3d,
  988. 0x3c, 0x59, 0x9e, 0xdc, 0x0b, 0x1a, 0x51, 0xd4, 0xdf, 0xfc, 0x8f, 0x02, 0xaa, 0xfb, 0x1d, 0xac,
  989. 0x93, 0x73, 0x50, 0x12, 0x9b, 0x92, 0x92, 0xc8, 0x7f, 0xa5, 0xe7, 0xfe, 0xe4, 0x8a, 0x88, 0xad,
  990. 0x84, 0x88, 0x78, 0x69, 0x04, 0xcf, 0xb3, 0xf5, 0xc3, 0xdb, 0x60, 0x32, 0x1c, 0xee, 0x74, 0x87,
  991. 0x5b, 0xf3, 0x37, 0x25, 0x30, 0x15, 0x1b, 0xe2, 0x94, 0x47, 0xe3, 0x43, 0xa9, 0x1e, 0xb0, 0x4d,
  992. 0xbf, 0x56, 0x24, 0x10, 0x35, 0x38, 0xfb, 0xdf, 0x31, 0xa9, 0x13, 0xbf, 0x3c, 0xa6, 0x4b, 0xc2,
  993. 0x77, 0xc0, 0x0c, 0xc5, 0x4e, 0x8f, 0xd0, 0xa0, 0x8f, 0x4f, 0xd8, 0x64, 0xf4, 0x98, 0x72, 0x5f,
  994. 0xea, 0x45, 0x09, 0xf4, 0xd2, 0x6d, 0x30, 0x2d, 0x0d, 0x06, 0x2f, 0x82, 0xf2, 0x31, 0x19, 0xf8,
  995. 0x92, 0x0a, 0xb1, 0x3f, 0xe1, 0x3c, 0xa8, 0xf6, 0xb1, 0xee, 0xf9, 0x79, 0x3e, 0x89, 0xfc, 0x1f,
  996. 0xb7, 0x4a, 0x6f, 0x29, 0xcd, 0x5f, 0xb2, 0xc9, 0x89, 0x92, 0xf3, 0x1c, 0xb2, 0xeb, 0x5d, 0x29,
  997. 0xbb, 0xf2, 0x3f, 0x18, 0xc6, 0xb7, 0x4c, 0x5e, 0x8e, 0xa1, 0x44, 0x8e, 0xbd, 0x5a, 0x88, 0xed,
  998. 0xd9, 0x99, 0xf6, 0xcf, 0x12, 0x98, 0x8f, 0xa1, 0x23, 0xa9, 0xfa, 0x6d, 0x49, 0xaa, 0xae, 0x24,
  999. 0xa4, 0x6a, 0x3d, 0xcb, 0xe6, 0x1b, 0xad, 0x3a, 0x5a, 0xab, 0xfe, 0x41, 0x01, 0xb3, 0xb1, 0xb9,
  1000. 0x3b, 0x07, 0xb1, 0x7a, 0x4f, 0x16, 0xab, 0x2f, 0x15, 0x49, 0x9a, 0x1c, 0xb5, 0xfa, 0x97, 0xaa,
  1001. 0xe4, 0xfc, 0xd7, 0xfe, 0x0d, 0xed, 0xa7, 0x60, 0xbe, 0x6f, 0xe9, 0x9e, 0x41, 0x36, 0x74, 0xac,
  1002. 0x19, 0x01, 0x80, 0xa9, 0xbb, 0x72, 0xf2, 0x9e, 0x18, 0xd2, 0x13, 0xc7, 0xd5, 0x5c, 0x4a, 0x4c,
  1003. 0xfa, 0x20, 0xb2, 0x8c, 0x34, 0xe5, 0x83, 0x0c, 0x3a, 0x94, 0x39, 0x08, 0x7c, 0x03, 0x4c, 0x31,
  1004. 0x55, 0xa6, 0x75, 0xc8, 0x0e, 0x36, 0x82, 0xc4, 0x0a, 0x3f, 0x8f, 0xed, 0x47, 0x5d, 0x28, 0x8e,
  1005. 0x83, 0x47, 0x60, 0xce, 0xb6, 0xba, 0xdb, 0xd8, 0xc4, 0x3d, 0xc2, 0x64, 0xc6, 0x9e, 0xa5, 0x6b,
  1006. 0x9d, 0x01, 0x7f, 0x58, 0x9b, 0x6c, 0xbf, 0x19, 0x3c, 0x9a, 0xec, 0xa5, 0x21, 0xec, 0x02, 0x9a,
  1007. 0xd1, 0xcc, 0x37, 0x75, 0x16, 0x25, 0x74, 0x52, 0x9f, 0x74, 0xfd, 0x27, 0xed, 0xb5, 0x22, 0x19,
  1008. 0x76, 0xc6, 0x8f, 0xba, 0x79, 0xef, 0x86, 0xb5, 0x33, 0x7d, 0x91, 0xfd, 0x57, 0x05, 0x5c, 0x4a,
  1009. 0x1d, 0x95, 0x5f, 0xe2, 0xcb, 0x5d, 0xea, 0x1a, 0x51, 0x3e, 0xc5, 0x35, 0x62, 0x1d, 0xcc, 0x8a,
  1010. 0x8f, 0xc1, 0x89, 0x5b, 0x48, 0x78, 0x1b, 0xdc, 0x90, 0xbb, 0x51, 0x12, 0x9f, 0xf5, 0x72, 0x58,
  1011. 0x3d, 0xe5, 0xcb, 0x61, 0xdc, 0x0b, 0xf1, 0xcf, 0x4d, 0x7e, 0xea, 0xa5, 0xbd, 0x10, 0xff, 0xe3,
  1012. 0x94, 0xc4, 0x33, 0x85, 0xe0, 0xb3, 0x86, 0x0c, 0x13, 0xb2, 0x42, 0x38, 0x90, 0x7a, 0x51, 0x02,
  1013. 0xfd, 0xb9, 0x3e, 0x78, 0xe2, 0x8c, 0x0f, 0x9e, 0xab, 0x45, 0xf2, 0xb9, 0xf8, 0xbd, 0xe7, 0xaf,
  1014. 0x0a, 0x78, 0x21, 0x77, 0x23, 0xc0, 0x75, 0xa9, 0xec, 0xae, 0x26, 0xca, 0xee, 0xb7, 0x72, 0x0d,
  1015. 0x63, 0xb5, 0xd7, 0xc9, 0x7e, 0xf6, 0x7b, 0xbb, 0xd8, 0xb3, 0x5f, 0x86, 0x76, 0x1f, 0xfd, 0xfe,
  1016. 0xd7, 0x5e, 0x7d, 0xf2, 0xb4, 0x31, 0xf6, 0xd1, 0xd3, 0xc6, 0xd8, 0x27, 0x4f, 0x1b, 0x63, 0x3f,
  1017. 0x1b, 0x36, 0x94, 0x27, 0xc3, 0x86, 0xf2, 0xd1, 0xb0, 0xa1, 0x7c, 0x32, 0x6c, 0x28, 0x7f, 0x1b,
  1018. 0x36, 0x94, 0x5f, 0x7d, 0xda, 0x18, 0x7b, 0x7f, 0x42, 0x8c, 0xf8, 0xdf, 0x00, 0x00, 0x00, 0xff,
  1019. 0xff, 0xd0, 0xf7, 0x24, 0x13, 0x48, 0x29, 0x00, 0x00,
  1020. }
  1021. func (m *ControllerRevision) Marshal() (dAtA []byte, err error) {
  1022. size := m.Size()
  1023. dAtA = make([]byte, size)
  1024. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1025. if err != nil {
  1026. return nil, err
  1027. }
  1028. return dAtA[:n], nil
  1029. }
  1030. func (m *ControllerRevision) MarshalTo(dAtA []byte) (int, error) {
  1031. size := m.Size()
  1032. return m.MarshalToSizedBuffer(dAtA[:size])
  1033. }
  1034. func (m *ControllerRevision) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1035. i := len(dAtA)
  1036. _ = i
  1037. var l int
  1038. _ = l
  1039. i = encodeVarintGenerated(dAtA, i, uint64(m.Revision))
  1040. i--
  1041. dAtA[i] = 0x18
  1042. {
  1043. size, err := m.Data.MarshalToSizedBuffer(dAtA[:i])
  1044. if err != nil {
  1045. return 0, err
  1046. }
  1047. i -= size
  1048. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1049. }
  1050. i--
  1051. dAtA[i] = 0x12
  1052. {
  1053. size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  1054. if err != nil {
  1055. return 0, err
  1056. }
  1057. i -= size
  1058. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1059. }
  1060. i--
  1061. dAtA[i] = 0xa
  1062. return len(dAtA) - i, nil
  1063. }
  1064. func (m *ControllerRevisionList) Marshal() (dAtA []byte, err error) {
  1065. size := m.Size()
  1066. dAtA = make([]byte, size)
  1067. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1068. if err != nil {
  1069. return nil, err
  1070. }
  1071. return dAtA[:n], nil
  1072. }
  1073. func (m *ControllerRevisionList) MarshalTo(dAtA []byte) (int, error) {
  1074. size := m.Size()
  1075. return m.MarshalToSizedBuffer(dAtA[:size])
  1076. }
  1077. func (m *ControllerRevisionList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1078. i := len(dAtA)
  1079. _ = i
  1080. var l int
  1081. _ = l
  1082. if len(m.Items) > 0 {
  1083. for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  1084. {
  1085. size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1086. if err != nil {
  1087. return 0, err
  1088. }
  1089. i -= size
  1090. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1091. }
  1092. i--
  1093. dAtA[i] = 0x12
  1094. }
  1095. }
  1096. {
  1097. size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  1098. if err != nil {
  1099. return 0, err
  1100. }
  1101. i -= size
  1102. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1103. }
  1104. i--
  1105. dAtA[i] = 0xa
  1106. return len(dAtA) - i, nil
  1107. }
  1108. func (m *DaemonSet) Marshal() (dAtA []byte, err error) {
  1109. size := m.Size()
  1110. dAtA = make([]byte, size)
  1111. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1112. if err != nil {
  1113. return nil, err
  1114. }
  1115. return dAtA[:n], nil
  1116. }
  1117. func (m *DaemonSet) MarshalTo(dAtA []byte) (int, error) {
  1118. size := m.Size()
  1119. return m.MarshalToSizedBuffer(dAtA[:size])
  1120. }
  1121. func (m *DaemonSet) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1122. i := len(dAtA)
  1123. _ = i
  1124. var l int
  1125. _ = l
  1126. {
  1127. size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  1128. if err != nil {
  1129. return 0, err
  1130. }
  1131. i -= size
  1132. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1133. }
  1134. i--
  1135. dAtA[i] = 0x1a
  1136. {
  1137. size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  1138. if err != nil {
  1139. return 0, err
  1140. }
  1141. i -= size
  1142. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1143. }
  1144. i--
  1145. dAtA[i] = 0x12
  1146. {
  1147. size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  1148. if err != nil {
  1149. return 0, err
  1150. }
  1151. i -= size
  1152. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1153. }
  1154. i--
  1155. dAtA[i] = 0xa
  1156. return len(dAtA) - i, nil
  1157. }
  1158. func (m *DaemonSetCondition) Marshal() (dAtA []byte, err error) {
  1159. size := m.Size()
  1160. dAtA = make([]byte, size)
  1161. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1162. if err != nil {
  1163. return nil, err
  1164. }
  1165. return dAtA[:n], nil
  1166. }
  1167. func (m *DaemonSetCondition) MarshalTo(dAtA []byte) (int, error) {
  1168. size := m.Size()
  1169. return m.MarshalToSizedBuffer(dAtA[:size])
  1170. }
  1171. func (m *DaemonSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1172. i := len(dAtA)
  1173. _ = i
  1174. var l int
  1175. _ = l
  1176. i -= len(m.Message)
  1177. copy(dAtA[i:], m.Message)
  1178. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
  1179. i--
  1180. dAtA[i] = 0x2a
  1181. i -= len(m.Reason)
  1182. copy(dAtA[i:], m.Reason)
  1183. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
  1184. i--
  1185. dAtA[i] = 0x22
  1186. {
  1187. size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i])
  1188. if err != nil {
  1189. return 0, err
  1190. }
  1191. i -= size
  1192. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1193. }
  1194. i--
  1195. dAtA[i] = 0x1a
  1196. i -= len(m.Status)
  1197. copy(dAtA[i:], m.Status)
  1198. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status)))
  1199. i--
  1200. dAtA[i] = 0x12
  1201. i -= len(m.Type)
  1202. copy(dAtA[i:], m.Type)
  1203. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  1204. i--
  1205. dAtA[i] = 0xa
  1206. return len(dAtA) - i, nil
  1207. }
  1208. func (m *DaemonSetList) Marshal() (dAtA []byte, err error) {
  1209. size := m.Size()
  1210. dAtA = make([]byte, size)
  1211. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1212. if err != nil {
  1213. return nil, err
  1214. }
  1215. return dAtA[:n], nil
  1216. }
  1217. func (m *DaemonSetList) MarshalTo(dAtA []byte) (int, error) {
  1218. size := m.Size()
  1219. return m.MarshalToSizedBuffer(dAtA[:size])
  1220. }
  1221. func (m *DaemonSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1222. i := len(dAtA)
  1223. _ = i
  1224. var l int
  1225. _ = l
  1226. if len(m.Items) > 0 {
  1227. for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  1228. {
  1229. size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1230. if err != nil {
  1231. return 0, err
  1232. }
  1233. i -= size
  1234. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1235. }
  1236. i--
  1237. dAtA[i] = 0x12
  1238. }
  1239. }
  1240. {
  1241. size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  1242. if err != nil {
  1243. return 0, err
  1244. }
  1245. i -= size
  1246. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1247. }
  1248. i--
  1249. dAtA[i] = 0xa
  1250. return len(dAtA) - i, nil
  1251. }
  1252. func (m *DaemonSetSpec) Marshal() (dAtA []byte, err error) {
  1253. size := m.Size()
  1254. dAtA = make([]byte, size)
  1255. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1256. if err != nil {
  1257. return nil, err
  1258. }
  1259. return dAtA[:n], nil
  1260. }
  1261. func (m *DaemonSetSpec) MarshalTo(dAtA []byte) (int, error) {
  1262. size := m.Size()
  1263. return m.MarshalToSizedBuffer(dAtA[:size])
  1264. }
  1265. func (m *DaemonSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1266. i := len(dAtA)
  1267. _ = i
  1268. var l int
  1269. _ = l
  1270. if m.RevisionHistoryLimit != nil {
  1271. i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit))
  1272. i--
  1273. dAtA[i] = 0x30
  1274. }
  1275. i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds))
  1276. i--
  1277. dAtA[i] = 0x20
  1278. {
  1279. size, err := m.UpdateStrategy.MarshalToSizedBuffer(dAtA[:i])
  1280. if err != nil {
  1281. return 0, err
  1282. }
  1283. i -= size
  1284. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1285. }
  1286. i--
  1287. dAtA[i] = 0x1a
  1288. {
  1289. size, err := m.Template.MarshalToSizedBuffer(dAtA[:i])
  1290. if err != nil {
  1291. return 0, err
  1292. }
  1293. i -= size
  1294. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1295. }
  1296. i--
  1297. dAtA[i] = 0x12
  1298. if m.Selector != nil {
  1299. {
  1300. size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i])
  1301. if err != nil {
  1302. return 0, err
  1303. }
  1304. i -= size
  1305. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1306. }
  1307. i--
  1308. dAtA[i] = 0xa
  1309. }
  1310. return len(dAtA) - i, nil
  1311. }
  1312. func (m *DaemonSetStatus) Marshal() (dAtA []byte, err error) {
  1313. size := m.Size()
  1314. dAtA = make([]byte, size)
  1315. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1316. if err != nil {
  1317. return nil, err
  1318. }
  1319. return dAtA[:n], nil
  1320. }
  1321. func (m *DaemonSetStatus) MarshalTo(dAtA []byte) (int, error) {
  1322. size := m.Size()
  1323. return m.MarshalToSizedBuffer(dAtA[:size])
  1324. }
  1325. func (m *DaemonSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1326. i := len(dAtA)
  1327. _ = i
  1328. var l int
  1329. _ = l
  1330. if len(m.Conditions) > 0 {
  1331. for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- {
  1332. {
  1333. size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1334. if err != nil {
  1335. return 0, err
  1336. }
  1337. i -= size
  1338. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1339. }
  1340. i--
  1341. dAtA[i] = 0x52
  1342. }
  1343. }
  1344. if m.CollisionCount != nil {
  1345. i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount))
  1346. i--
  1347. dAtA[i] = 0x48
  1348. }
  1349. i = encodeVarintGenerated(dAtA, i, uint64(m.NumberUnavailable))
  1350. i--
  1351. dAtA[i] = 0x40
  1352. i = encodeVarintGenerated(dAtA, i, uint64(m.NumberAvailable))
  1353. i--
  1354. dAtA[i] = 0x38
  1355. i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedNumberScheduled))
  1356. i--
  1357. dAtA[i] = 0x30
  1358. i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration))
  1359. i--
  1360. dAtA[i] = 0x28
  1361. i = encodeVarintGenerated(dAtA, i, uint64(m.NumberReady))
  1362. i--
  1363. dAtA[i] = 0x20
  1364. i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredNumberScheduled))
  1365. i--
  1366. dAtA[i] = 0x18
  1367. i = encodeVarintGenerated(dAtA, i, uint64(m.NumberMisscheduled))
  1368. i--
  1369. dAtA[i] = 0x10
  1370. i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentNumberScheduled))
  1371. i--
  1372. dAtA[i] = 0x8
  1373. return len(dAtA) - i, nil
  1374. }
  1375. func (m *DaemonSetUpdateStrategy) Marshal() (dAtA []byte, err error) {
  1376. size := m.Size()
  1377. dAtA = make([]byte, size)
  1378. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1379. if err != nil {
  1380. return nil, err
  1381. }
  1382. return dAtA[:n], nil
  1383. }
  1384. func (m *DaemonSetUpdateStrategy) MarshalTo(dAtA []byte) (int, error) {
  1385. size := m.Size()
  1386. return m.MarshalToSizedBuffer(dAtA[:size])
  1387. }
  1388. func (m *DaemonSetUpdateStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1389. i := len(dAtA)
  1390. _ = i
  1391. var l int
  1392. _ = l
  1393. if m.RollingUpdate != nil {
  1394. {
  1395. size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i])
  1396. if err != nil {
  1397. return 0, err
  1398. }
  1399. i -= size
  1400. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1401. }
  1402. i--
  1403. dAtA[i] = 0x12
  1404. }
  1405. i -= len(m.Type)
  1406. copy(dAtA[i:], m.Type)
  1407. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  1408. i--
  1409. dAtA[i] = 0xa
  1410. return len(dAtA) - i, nil
  1411. }
  1412. func (m *Deployment) Marshal() (dAtA []byte, err error) {
  1413. size := m.Size()
  1414. dAtA = make([]byte, size)
  1415. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1416. if err != nil {
  1417. return nil, err
  1418. }
  1419. return dAtA[:n], nil
  1420. }
  1421. func (m *Deployment) MarshalTo(dAtA []byte) (int, error) {
  1422. size := m.Size()
  1423. return m.MarshalToSizedBuffer(dAtA[:size])
  1424. }
  1425. func (m *Deployment) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1426. i := len(dAtA)
  1427. _ = i
  1428. var l int
  1429. _ = l
  1430. {
  1431. size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  1432. if err != nil {
  1433. return 0, err
  1434. }
  1435. i -= size
  1436. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1437. }
  1438. i--
  1439. dAtA[i] = 0x1a
  1440. {
  1441. size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  1442. if err != nil {
  1443. return 0, err
  1444. }
  1445. i -= size
  1446. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1447. }
  1448. i--
  1449. dAtA[i] = 0x12
  1450. {
  1451. size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  1452. if err != nil {
  1453. return 0, err
  1454. }
  1455. i -= size
  1456. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1457. }
  1458. i--
  1459. dAtA[i] = 0xa
  1460. return len(dAtA) - i, nil
  1461. }
  1462. func (m *DeploymentCondition) Marshal() (dAtA []byte, err error) {
  1463. size := m.Size()
  1464. dAtA = make([]byte, size)
  1465. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1466. if err != nil {
  1467. return nil, err
  1468. }
  1469. return dAtA[:n], nil
  1470. }
  1471. func (m *DeploymentCondition) MarshalTo(dAtA []byte) (int, error) {
  1472. size := m.Size()
  1473. return m.MarshalToSizedBuffer(dAtA[:size])
  1474. }
  1475. func (m *DeploymentCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1476. i := len(dAtA)
  1477. _ = i
  1478. var l int
  1479. _ = l
  1480. {
  1481. size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i])
  1482. if err != nil {
  1483. return 0, err
  1484. }
  1485. i -= size
  1486. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1487. }
  1488. i--
  1489. dAtA[i] = 0x3a
  1490. {
  1491. size, err := m.LastUpdateTime.MarshalToSizedBuffer(dAtA[:i])
  1492. if err != nil {
  1493. return 0, err
  1494. }
  1495. i -= size
  1496. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1497. }
  1498. i--
  1499. dAtA[i] = 0x32
  1500. i -= len(m.Message)
  1501. copy(dAtA[i:], m.Message)
  1502. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
  1503. i--
  1504. dAtA[i] = 0x2a
  1505. i -= len(m.Reason)
  1506. copy(dAtA[i:], m.Reason)
  1507. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
  1508. i--
  1509. dAtA[i] = 0x22
  1510. i -= len(m.Status)
  1511. copy(dAtA[i:], m.Status)
  1512. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status)))
  1513. i--
  1514. dAtA[i] = 0x12
  1515. i -= len(m.Type)
  1516. copy(dAtA[i:], m.Type)
  1517. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  1518. i--
  1519. dAtA[i] = 0xa
  1520. return len(dAtA) - i, nil
  1521. }
  1522. func (m *DeploymentList) Marshal() (dAtA []byte, err error) {
  1523. size := m.Size()
  1524. dAtA = make([]byte, size)
  1525. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1526. if err != nil {
  1527. return nil, err
  1528. }
  1529. return dAtA[:n], nil
  1530. }
  1531. func (m *DeploymentList) MarshalTo(dAtA []byte) (int, error) {
  1532. size := m.Size()
  1533. return m.MarshalToSizedBuffer(dAtA[:size])
  1534. }
  1535. func (m *DeploymentList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1536. i := len(dAtA)
  1537. _ = i
  1538. var l int
  1539. _ = l
  1540. if len(m.Items) > 0 {
  1541. for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  1542. {
  1543. size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1544. if err != nil {
  1545. return 0, err
  1546. }
  1547. i -= size
  1548. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1549. }
  1550. i--
  1551. dAtA[i] = 0x12
  1552. }
  1553. }
  1554. {
  1555. size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  1556. if err != nil {
  1557. return 0, err
  1558. }
  1559. i -= size
  1560. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1561. }
  1562. i--
  1563. dAtA[i] = 0xa
  1564. return len(dAtA) - i, nil
  1565. }
  1566. func (m *DeploymentSpec) Marshal() (dAtA []byte, err error) {
  1567. size := m.Size()
  1568. dAtA = make([]byte, size)
  1569. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1570. if err != nil {
  1571. return nil, err
  1572. }
  1573. return dAtA[:n], nil
  1574. }
  1575. func (m *DeploymentSpec) MarshalTo(dAtA []byte) (int, error) {
  1576. size := m.Size()
  1577. return m.MarshalToSizedBuffer(dAtA[:size])
  1578. }
  1579. func (m *DeploymentSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1580. i := len(dAtA)
  1581. _ = i
  1582. var l int
  1583. _ = l
  1584. if m.ProgressDeadlineSeconds != nil {
  1585. i = encodeVarintGenerated(dAtA, i, uint64(*m.ProgressDeadlineSeconds))
  1586. i--
  1587. dAtA[i] = 0x48
  1588. }
  1589. i--
  1590. if m.Paused {
  1591. dAtA[i] = 1
  1592. } else {
  1593. dAtA[i] = 0
  1594. }
  1595. i--
  1596. dAtA[i] = 0x38
  1597. if m.RevisionHistoryLimit != nil {
  1598. i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit))
  1599. i--
  1600. dAtA[i] = 0x30
  1601. }
  1602. i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds))
  1603. i--
  1604. dAtA[i] = 0x28
  1605. {
  1606. size, err := m.Strategy.MarshalToSizedBuffer(dAtA[:i])
  1607. if err != nil {
  1608. return 0, err
  1609. }
  1610. i -= size
  1611. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1612. }
  1613. i--
  1614. dAtA[i] = 0x22
  1615. {
  1616. size, err := m.Template.MarshalToSizedBuffer(dAtA[:i])
  1617. if err != nil {
  1618. return 0, err
  1619. }
  1620. i -= size
  1621. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1622. }
  1623. i--
  1624. dAtA[i] = 0x1a
  1625. if m.Selector != nil {
  1626. {
  1627. size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i])
  1628. if err != nil {
  1629. return 0, err
  1630. }
  1631. i -= size
  1632. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1633. }
  1634. i--
  1635. dAtA[i] = 0x12
  1636. }
  1637. if m.Replicas != nil {
  1638. i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas))
  1639. i--
  1640. dAtA[i] = 0x8
  1641. }
  1642. return len(dAtA) - i, nil
  1643. }
  1644. func (m *DeploymentStatus) Marshal() (dAtA []byte, err error) {
  1645. size := m.Size()
  1646. dAtA = make([]byte, size)
  1647. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1648. if err != nil {
  1649. return nil, err
  1650. }
  1651. return dAtA[:n], nil
  1652. }
  1653. func (m *DeploymentStatus) MarshalTo(dAtA []byte) (int, error) {
  1654. size := m.Size()
  1655. return m.MarshalToSizedBuffer(dAtA[:size])
  1656. }
  1657. func (m *DeploymentStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1658. i := len(dAtA)
  1659. _ = i
  1660. var l int
  1661. _ = l
  1662. if m.CollisionCount != nil {
  1663. i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount))
  1664. i--
  1665. dAtA[i] = 0x40
  1666. }
  1667. i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas))
  1668. i--
  1669. dAtA[i] = 0x38
  1670. if len(m.Conditions) > 0 {
  1671. for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- {
  1672. {
  1673. size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1674. if err != nil {
  1675. return 0, err
  1676. }
  1677. i -= size
  1678. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1679. }
  1680. i--
  1681. dAtA[i] = 0x32
  1682. }
  1683. }
  1684. i = encodeVarintGenerated(dAtA, i, uint64(m.UnavailableReplicas))
  1685. i--
  1686. dAtA[i] = 0x28
  1687. i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas))
  1688. i--
  1689. dAtA[i] = 0x20
  1690. i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedReplicas))
  1691. i--
  1692. dAtA[i] = 0x18
  1693. i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas))
  1694. i--
  1695. dAtA[i] = 0x10
  1696. i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration))
  1697. i--
  1698. dAtA[i] = 0x8
  1699. return len(dAtA) - i, nil
  1700. }
  1701. func (m *DeploymentStrategy) Marshal() (dAtA []byte, err error) {
  1702. size := m.Size()
  1703. dAtA = make([]byte, size)
  1704. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1705. if err != nil {
  1706. return nil, err
  1707. }
  1708. return dAtA[:n], nil
  1709. }
  1710. func (m *DeploymentStrategy) MarshalTo(dAtA []byte) (int, error) {
  1711. size := m.Size()
  1712. return m.MarshalToSizedBuffer(dAtA[:size])
  1713. }
  1714. func (m *DeploymentStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1715. i := len(dAtA)
  1716. _ = i
  1717. var l int
  1718. _ = l
  1719. if m.RollingUpdate != nil {
  1720. {
  1721. size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i])
  1722. if err != nil {
  1723. return 0, err
  1724. }
  1725. i -= size
  1726. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1727. }
  1728. i--
  1729. dAtA[i] = 0x12
  1730. }
  1731. i -= len(m.Type)
  1732. copy(dAtA[i:], m.Type)
  1733. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  1734. i--
  1735. dAtA[i] = 0xa
  1736. return len(dAtA) - i, nil
  1737. }
  1738. func (m *ReplicaSet) Marshal() (dAtA []byte, err error) {
  1739. size := m.Size()
  1740. dAtA = make([]byte, size)
  1741. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1742. if err != nil {
  1743. return nil, err
  1744. }
  1745. return dAtA[:n], nil
  1746. }
  1747. func (m *ReplicaSet) MarshalTo(dAtA []byte) (int, error) {
  1748. size := m.Size()
  1749. return m.MarshalToSizedBuffer(dAtA[:size])
  1750. }
  1751. func (m *ReplicaSet) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1752. i := len(dAtA)
  1753. _ = i
  1754. var l int
  1755. _ = l
  1756. {
  1757. size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  1758. if err != nil {
  1759. return 0, err
  1760. }
  1761. i -= size
  1762. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1763. }
  1764. i--
  1765. dAtA[i] = 0x1a
  1766. {
  1767. size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  1768. if err != nil {
  1769. return 0, err
  1770. }
  1771. i -= size
  1772. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1773. }
  1774. i--
  1775. dAtA[i] = 0x12
  1776. {
  1777. size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  1778. if err != nil {
  1779. return 0, err
  1780. }
  1781. i -= size
  1782. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1783. }
  1784. i--
  1785. dAtA[i] = 0xa
  1786. return len(dAtA) - i, nil
  1787. }
  1788. func (m *ReplicaSetCondition) Marshal() (dAtA []byte, err error) {
  1789. size := m.Size()
  1790. dAtA = make([]byte, size)
  1791. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1792. if err != nil {
  1793. return nil, err
  1794. }
  1795. return dAtA[:n], nil
  1796. }
  1797. func (m *ReplicaSetCondition) MarshalTo(dAtA []byte) (int, error) {
  1798. size := m.Size()
  1799. return m.MarshalToSizedBuffer(dAtA[:size])
  1800. }
  1801. func (m *ReplicaSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1802. i := len(dAtA)
  1803. _ = i
  1804. var l int
  1805. _ = l
  1806. i -= len(m.Message)
  1807. copy(dAtA[i:], m.Message)
  1808. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
  1809. i--
  1810. dAtA[i] = 0x2a
  1811. i -= len(m.Reason)
  1812. copy(dAtA[i:], m.Reason)
  1813. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
  1814. i--
  1815. dAtA[i] = 0x22
  1816. {
  1817. size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i])
  1818. if err != nil {
  1819. return 0, err
  1820. }
  1821. i -= size
  1822. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1823. }
  1824. i--
  1825. dAtA[i] = 0x1a
  1826. i -= len(m.Status)
  1827. copy(dAtA[i:], m.Status)
  1828. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status)))
  1829. i--
  1830. dAtA[i] = 0x12
  1831. i -= len(m.Type)
  1832. copy(dAtA[i:], m.Type)
  1833. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  1834. i--
  1835. dAtA[i] = 0xa
  1836. return len(dAtA) - i, nil
  1837. }
  1838. func (m *ReplicaSetList) Marshal() (dAtA []byte, err error) {
  1839. size := m.Size()
  1840. dAtA = make([]byte, size)
  1841. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1842. if err != nil {
  1843. return nil, err
  1844. }
  1845. return dAtA[:n], nil
  1846. }
  1847. func (m *ReplicaSetList) MarshalTo(dAtA []byte) (int, error) {
  1848. size := m.Size()
  1849. return m.MarshalToSizedBuffer(dAtA[:size])
  1850. }
  1851. func (m *ReplicaSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1852. i := len(dAtA)
  1853. _ = i
  1854. var l int
  1855. _ = l
  1856. if len(m.Items) > 0 {
  1857. for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  1858. {
  1859. size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1860. if err != nil {
  1861. return 0, err
  1862. }
  1863. i -= size
  1864. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1865. }
  1866. i--
  1867. dAtA[i] = 0x12
  1868. }
  1869. }
  1870. {
  1871. size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  1872. if err != nil {
  1873. return 0, err
  1874. }
  1875. i -= size
  1876. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1877. }
  1878. i--
  1879. dAtA[i] = 0xa
  1880. return len(dAtA) - i, nil
  1881. }
  1882. func (m *ReplicaSetSpec) Marshal() (dAtA []byte, err error) {
  1883. size := m.Size()
  1884. dAtA = make([]byte, size)
  1885. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1886. if err != nil {
  1887. return nil, err
  1888. }
  1889. return dAtA[:n], nil
  1890. }
  1891. func (m *ReplicaSetSpec) MarshalTo(dAtA []byte) (int, error) {
  1892. size := m.Size()
  1893. return m.MarshalToSizedBuffer(dAtA[:size])
  1894. }
  1895. func (m *ReplicaSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1896. i := len(dAtA)
  1897. _ = i
  1898. var l int
  1899. _ = l
  1900. i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds))
  1901. i--
  1902. dAtA[i] = 0x20
  1903. {
  1904. size, err := m.Template.MarshalToSizedBuffer(dAtA[:i])
  1905. if err != nil {
  1906. return 0, err
  1907. }
  1908. i -= size
  1909. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1910. }
  1911. i--
  1912. dAtA[i] = 0x1a
  1913. if m.Selector != nil {
  1914. {
  1915. size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i])
  1916. if err != nil {
  1917. return 0, err
  1918. }
  1919. i -= size
  1920. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1921. }
  1922. i--
  1923. dAtA[i] = 0x12
  1924. }
  1925. if m.Replicas != nil {
  1926. i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas))
  1927. i--
  1928. dAtA[i] = 0x8
  1929. }
  1930. return len(dAtA) - i, nil
  1931. }
  1932. func (m *ReplicaSetStatus) Marshal() (dAtA []byte, err error) {
  1933. size := m.Size()
  1934. dAtA = make([]byte, size)
  1935. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1936. if err != nil {
  1937. return nil, err
  1938. }
  1939. return dAtA[:n], nil
  1940. }
  1941. func (m *ReplicaSetStatus) MarshalTo(dAtA []byte) (int, error) {
  1942. size := m.Size()
  1943. return m.MarshalToSizedBuffer(dAtA[:size])
  1944. }
  1945. func (m *ReplicaSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1946. i := len(dAtA)
  1947. _ = i
  1948. var l int
  1949. _ = l
  1950. if len(m.Conditions) > 0 {
  1951. for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- {
  1952. {
  1953. size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1954. if err != nil {
  1955. return 0, err
  1956. }
  1957. i -= size
  1958. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1959. }
  1960. i--
  1961. dAtA[i] = 0x32
  1962. }
  1963. }
  1964. i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas))
  1965. i--
  1966. dAtA[i] = 0x28
  1967. i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas))
  1968. i--
  1969. dAtA[i] = 0x20
  1970. i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration))
  1971. i--
  1972. dAtA[i] = 0x18
  1973. i = encodeVarintGenerated(dAtA, i, uint64(m.FullyLabeledReplicas))
  1974. i--
  1975. dAtA[i] = 0x10
  1976. i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas))
  1977. i--
  1978. dAtA[i] = 0x8
  1979. return len(dAtA) - i, nil
  1980. }
  1981. func (m *RollingUpdateDaemonSet) Marshal() (dAtA []byte, err error) {
  1982. size := m.Size()
  1983. dAtA = make([]byte, size)
  1984. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1985. if err != nil {
  1986. return nil, err
  1987. }
  1988. return dAtA[:n], nil
  1989. }
  1990. func (m *RollingUpdateDaemonSet) MarshalTo(dAtA []byte) (int, error) {
  1991. size := m.Size()
  1992. return m.MarshalToSizedBuffer(dAtA[:size])
  1993. }
  1994. func (m *RollingUpdateDaemonSet) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1995. i := len(dAtA)
  1996. _ = i
  1997. var l int
  1998. _ = l
  1999. if m.MaxSurge != nil {
  2000. {
  2001. size, err := m.MaxSurge.MarshalToSizedBuffer(dAtA[:i])
  2002. if err != nil {
  2003. return 0, err
  2004. }
  2005. i -= size
  2006. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2007. }
  2008. i--
  2009. dAtA[i] = 0x12
  2010. }
  2011. if m.MaxUnavailable != nil {
  2012. {
  2013. size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i])
  2014. if err != nil {
  2015. return 0, err
  2016. }
  2017. i -= size
  2018. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2019. }
  2020. i--
  2021. dAtA[i] = 0xa
  2022. }
  2023. return len(dAtA) - i, nil
  2024. }
  2025. func (m *RollingUpdateDeployment) Marshal() (dAtA []byte, err error) {
  2026. size := m.Size()
  2027. dAtA = make([]byte, size)
  2028. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2029. if err != nil {
  2030. return nil, err
  2031. }
  2032. return dAtA[:n], nil
  2033. }
  2034. func (m *RollingUpdateDeployment) MarshalTo(dAtA []byte) (int, error) {
  2035. size := m.Size()
  2036. return m.MarshalToSizedBuffer(dAtA[:size])
  2037. }
  2038. func (m *RollingUpdateDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2039. i := len(dAtA)
  2040. _ = i
  2041. var l int
  2042. _ = l
  2043. if m.MaxSurge != nil {
  2044. {
  2045. size, err := m.MaxSurge.MarshalToSizedBuffer(dAtA[:i])
  2046. if err != nil {
  2047. return 0, err
  2048. }
  2049. i -= size
  2050. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2051. }
  2052. i--
  2053. dAtA[i] = 0x12
  2054. }
  2055. if m.MaxUnavailable != nil {
  2056. {
  2057. size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i])
  2058. if err != nil {
  2059. return 0, err
  2060. }
  2061. i -= size
  2062. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2063. }
  2064. i--
  2065. dAtA[i] = 0xa
  2066. }
  2067. return len(dAtA) - i, nil
  2068. }
  2069. func (m *RollingUpdateStatefulSetStrategy) Marshal() (dAtA []byte, err error) {
  2070. size := m.Size()
  2071. dAtA = make([]byte, size)
  2072. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2073. if err != nil {
  2074. return nil, err
  2075. }
  2076. return dAtA[:n], nil
  2077. }
  2078. func (m *RollingUpdateStatefulSetStrategy) MarshalTo(dAtA []byte) (int, error) {
  2079. size := m.Size()
  2080. return m.MarshalToSizedBuffer(dAtA[:size])
  2081. }
  2082. func (m *RollingUpdateStatefulSetStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2083. i := len(dAtA)
  2084. _ = i
  2085. var l int
  2086. _ = l
  2087. if m.Partition != nil {
  2088. i = encodeVarintGenerated(dAtA, i, uint64(*m.Partition))
  2089. i--
  2090. dAtA[i] = 0x8
  2091. }
  2092. return len(dAtA) - i, nil
  2093. }
  2094. func (m *Scale) Marshal() (dAtA []byte, err error) {
  2095. size := m.Size()
  2096. dAtA = make([]byte, size)
  2097. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2098. if err != nil {
  2099. return nil, err
  2100. }
  2101. return dAtA[:n], nil
  2102. }
  2103. func (m *Scale) MarshalTo(dAtA []byte) (int, error) {
  2104. size := m.Size()
  2105. return m.MarshalToSizedBuffer(dAtA[:size])
  2106. }
  2107. func (m *Scale) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2108. i := len(dAtA)
  2109. _ = i
  2110. var l int
  2111. _ = l
  2112. {
  2113. size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  2114. if err != nil {
  2115. return 0, err
  2116. }
  2117. i -= size
  2118. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2119. }
  2120. i--
  2121. dAtA[i] = 0x1a
  2122. {
  2123. size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  2124. if err != nil {
  2125. return 0, err
  2126. }
  2127. i -= size
  2128. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2129. }
  2130. i--
  2131. dAtA[i] = 0x12
  2132. {
  2133. size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  2134. if err != nil {
  2135. return 0, err
  2136. }
  2137. i -= size
  2138. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2139. }
  2140. i--
  2141. dAtA[i] = 0xa
  2142. return len(dAtA) - i, nil
  2143. }
  2144. func (m *ScaleSpec) Marshal() (dAtA []byte, err error) {
  2145. size := m.Size()
  2146. dAtA = make([]byte, size)
  2147. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2148. if err != nil {
  2149. return nil, err
  2150. }
  2151. return dAtA[:n], nil
  2152. }
  2153. func (m *ScaleSpec) MarshalTo(dAtA []byte) (int, error) {
  2154. size := m.Size()
  2155. return m.MarshalToSizedBuffer(dAtA[:size])
  2156. }
  2157. func (m *ScaleSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2158. i := len(dAtA)
  2159. _ = i
  2160. var l int
  2161. _ = l
  2162. i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas))
  2163. i--
  2164. dAtA[i] = 0x8
  2165. return len(dAtA) - i, nil
  2166. }
  2167. func (m *ScaleStatus) Marshal() (dAtA []byte, err error) {
  2168. size := m.Size()
  2169. dAtA = make([]byte, size)
  2170. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2171. if err != nil {
  2172. return nil, err
  2173. }
  2174. return dAtA[:n], nil
  2175. }
  2176. func (m *ScaleStatus) MarshalTo(dAtA []byte) (int, error) {
  2177. size := m.Size()
  2178. return m.MarshalToSizedBuffer(dAtA[:size])
  2179. }
  2180. func (m *ScaleStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2181. i := len(dAtA)
  2182. _ = i
  2183. var l int
  2184. _ = l
  2185. i -= len(m.TargetSelector)
  2186. copy(dAtA[i:], m.TargetSelector)
  2187. i = encodeVarintGenerated(dAtA, i, uint64(len(m.TargetSelector)))
  2188. i--
  2189. dAtA[i] = 0x1a
  2190. if len(m.Selector) > 0 {
  2191. keysForSelector := make([]string, 0, len(m.Selector))
  2192. for k := range m.Selector {
  2193. keysForSelector = append(keysForSelector, string(k))
  2194. }
  2195. github_com_gogo_protobuf_sortkeys.Strings(keysForSelector)
  2196. for iNdEx := len(keysForSelector) - 1; iNdEx >= 0; iNdEx-- {
  2197. v := m.Selector[string(keysForSelector[iNdEx])]
  2198. baseI := i
  2199. i -= len(v)
  2200. copy(dAtA[i:], v)
  2201. i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
  2202. i--
  2203. dAtA[i] = 0x12
  2204. i -= len(keysForSelector[iNdEx])
  2205. copy(dAtA[i:], keysForSelector[iNdEx])
  2206. i = encodeVarintGenerated(dAtA, i, uint64(len(keysForSelector[iNdEx])))
  2207. i--
  2208. dAtA[i] = 0xa
  2209. i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
  2210. i--
  2211. dAtA[i] = 0x12
  2212. }
  2213. }
  2214. i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas))
  2215. i--
  2216. dAtA[i] = 0x8
  2217. return len(dAtA) - i, nil
  2218. }
  2219. func (m *StatefulSet) Marshal() (dAtA []byte, err error) {
  2220. size := m.Size()
  2221. dAtA = make([]byte, size)
  2222. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2223. if err != nil {
  2224. return nil, err
  2225. }
  2226. return dAtA[:n], nil
  2227. }
  2228. func (m *StatefulSet) MarshalTo(dAtA []byte) (int, error) {
  2229. size := m.Size()
  2230. return m.MarshalToSizedBuffer(dAtA[:size])
  2231. }
  2232. func (m *StatefulSet) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2233. i := len(dAtA)
  2234. _ = i
  2235. var l int
  2236. _ = l
  2237. {
  2238. size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  2239. if err != nil {
  2240. return 0, err
  2241. }
  2242. i -= size
  2243. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2244. }
  2245. i--
  2246. dAtA[i] = 0x1a
  2247. {
  2248. size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  2249. if err != nil {
  2250. return 0, err
  2251. }
  2252. i -= size
  2253. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2254. }
  2255. i--
  2256. dAtA[i] = 0x12
  2257. {
  2258. size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  2259. if err != nil {
  2260. return 0, err
  2261. }
  2262. i -= size
  2263. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2264. }
  2265. i--
  2266. dAtA[i] = 0xa
  2267. return len(dAtA) - i, nil
  2268. }
  2269. func (m *StatefulSetCondition) Marshal() (dAtA []byte, err error) {
  2270. size := m.Size()
  2271. dAtA = make([]byte, size)
  2272. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2273. if err != nil {
  2274. return nil, err
  2275. }
  2276. return dAtA[:n], nil
  2277. }
  2278. func (m *StatefulSetCondition) MarshalTo(dAtA []byte) (int, error) {
  2279. size := m.Size()
  2280. return m.MarshalToSizedBuffer(dAtA[:size])
  2281. }
  2282. func (m *StatefulSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2283. i := len(dAtA)
  2284. _ = i
  2285. var l int
  2286. _ = l
  2287. i -= len(m.Message)
  2288. copy(dAtA[i:], m.Message)
  2289. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
  2290. i--
  2291. dAtA[i] = 0x2a
  2292. i -= len(m.Reason)
  2293. copy(dAtA[i:], m.Reason)
  2294. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
  2295. i--
  2296. dAtA[i] = 0x22
  2297. {
  2298. size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i])
  2299. if err != nil {
  2300. return 0, err
  2301. }
  2302. i -= size
  2303. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2304. }
  2305. i--
  2306. dAtA[i] = 0x1a
  2307. i -= len(m.Status)
  2308. copy(dAtA[i:], m.Status)
  2309. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status)))
  2310. i--
  2311. dAtA[i] = 0x12
  2312. i -= len(m.Type)
  2313. copy(dAtA[i:], m.Type)
  2314. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  2315. i--
  2316. dAtA[i] = 0xa
  2317. return len(dAtA) - i, nil
  2318. }
  2319. func (m *StatefulSetList) Marshal() (dAtA []byte, err error) {
  2320. size := m.Size()
  2321. dAtA = make([]byte, size)
  2322. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2323. if err != nil {
  2324. return nil, err
  2325. }
  2326. return dAtA[:n], nil
  2327. }
  2328. func (m *StatefulSetList) MarshalTo(dAtA []byte) (int, error) {
  2329. size := m.Size()
  2330. return m.MarshalToSizedBuffer(dAtA[:size])
  2331. }
  2332. func (m *StatefulSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2333. i := len(dAtA)
  2334. _ = i
  2335. var l int
  2336. _ = l
  2337. if len(m.Items) > 0 {
  2338. for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  2339. {
  2340. size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2341. if err != nil {
  2342. return 0, err
  2343. }
  2344. i -= size
  2345. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2346. }
  2347. i--
  2348. dAtA[i] = 0x12
  2349. }
  2350. }
  2351. {
  2352. size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  2353. if err != nil {
  2354. return 0, err
  2355. }
  2356. i -= size
  2357. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2358. }
  2359. i--
  2360. dAtA[i] = 0xa
  2361. return len(dAtA) - i, nil
  2362. }
  2363. func (m *StatefulSetSpec) Marshal() (dAtA []byte, err error) {
  2364. size := m.Size()
  2365. dAtA = make([]byte, size)
  2366. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2367. if err != nil {
  2368. return nil, err
  2369. }
  2370. return dAtA[:n], nil
  2371. }
  2372. func (m *StatefulSetSpec) MarshalTo(dAtA []byte) (int, error) {
  2373. size := m.Size()
  2374. return m.MarshalToSizedBuffer(dAtA[:size])
  2375. }
  2376. func (m *StatefulSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2377. i := len(dAtA)
  2378. _ = i
  2379. var l int
  2380. _ = l
  2381. if m.RevisionHistoryLimit != nil {
  2382. i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit))
  2383. i--
  2384. dAtA[i] = 0x40
  2385. }
  2386. {
  2387. size, err := m.UpdateStrategy.MarshalToSizedBuffer(dAtA[:i])
  2388. if err != nil {
  2389. return 0, err
  2390. }
  2391. i -= size
  2392. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2393. }
  2394. i--
  2395. dAtA[i] = 0x3a
  2396. i -= len(m.PodManagementPolicy)
  2397. copy(dAtA[i:], m.PodManagementPolicy)
  2398. i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodManagementPolicy)))
  2399. i--
  2400. dAtA[i] = 0x32
  2401. i -= len(m.ServiceName)
  2402. copy(dAtA[i:], m.ServiceName)
  2403. i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceName)))
  2404. i--
  2405. dAtA[i] = 0x2a
  2406. if len(m.VolumeClaimTemplates) > 0 {
  2407. for iNdEx := len(m.VolumeClaimTemplates) - 1; iNdEx >= 0; iNdEx-- {
  2408. {
  2409. size, err := m.VolumeClaimTemplates[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2410. if err != nil {
  2411. return 0, err
  2412. }
  2413. i -= size
  2414. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2415. }
  2416. i--
  2417. dAtA[i] = 0x22
  2418. }
  2419. }
  2420. {
  2421. size, err := m.Template.MarshalToSizedBuffer(dAtA[:i])
  2422. if err != nil {
  2423. return 0, err
  2424. }
  2425. i -= size
  2426. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2427. }
  2428. i--
  2429. dAtA[i] = 0x1a
  2430. if m.Selector != nil {
  2431. {
  2432. size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i])
  2433. if err != nil {
  2434. return 0, err
  2435. }
  2436. i -= size
  2437. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2438. }
  2439. i--
  2440. dAtA[i] = 0x12
  2441. }
  2442. if m.Replicas != nil {
  2443. i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas))
  2444. i--
  2445. dAtA[i] = 0x8
  2446. }
  2447. return len(dAtA) - i, nil
  2448. }
  2449. func (m *StatefulSetStatus) Marshal() (dAtA []byte, err error) {
  2450. size := m.Size()
  2451. dAtA = make([]byte, size)
  2452. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2453. if err != nil {
  2454. return nil, err
  2455. }
  2456. return dAtA[:n], nil
  2457. }
  2458. func (m *StatefulSetStatus) MarshalTo(dAtA []byte) (int, error) {
  2459. size := m.Size()
  2460. return m.MarshalToSizedBuffer(dAtA[:size])
  2461. }
  2462. func (m *StatefulSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2463. i := len(dAtA)
  2464. _ = i
  2465. var l int
  2466. _ = l
  2467. if len(m.Conditions) > 0 {
  2468. for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- {
  2469. {
  2470. size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2471. if err != nil {
  2472. return 0, err
  2473. }
  2474. i -= size
  2475. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2476. }
  2477. i--
  2478. dAtA[i] = 0x52
  2479. }
  2480. }
  2481. if m.CollisionCount != nil {
  2482. i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount))
  2483. i--
  2484. dAtA[i] = 0x48
  2485. }
  2486. i -= len(m.UpdateRevision)
  2487. copy(dAtA[i:], m.UpdateRevision)
  2488. i = encodeVarintGenerated(dAtA, i, uint64(len(m.UpdateRevision)))
  2489. i--
  2490. dAtA[i] = 0x3a
  2491. i -= len(m.CurrentRevision)
  2492. copy(dAtA[i:], m.CurrentRevision)
  2493. i = encodeVarintGenerated(dAtA, i, uint64(len(m.CurrentRevision)))
  2494. i--
  2495. dAtA[i] = 0x32
  2496. i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedReplicas))
  2497. i--
  2498. dAtA[i] = 0x28
  2499. i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentReplicas))
  2500. i--
  2501. dAtA[i] = 0x20
  2502. i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas))
  2503. i--
  2504. dAtA[i] = 0x18
  2505. i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas))
  2506. i--
  2507. dAtA[i] = 0x10
  2508. i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration))
  2509. i--
  2510. dAtA[i] = 0x8
  2511. return len(dAtA) - i, nil
  2512. }
  2513. func (m *StatefulSetUpdateStrategy) Marshal() (dAtA []byte, err error) {
  2514. size := m.Size()
  2515. dAtA = make([]byte, size)
  2516. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2517. if err != nil {
  2518. return nil, err
  2519. }
  2520. return dAtA[:n], nil
  2521. }
  2522. func (m *StatefulSetUpdateStrategy) MarshalTo(dAtA []byte) (int, error) {
  2523. size := m.Size()
  2524. return m.MarshalToSizedBuffer(dAtA[:size])
  2525. }
  2526. func (m *StatefulSetUpdateStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2527. i := len(dAtA)
  2528. _ = i
  2529. var l int
  2530. _ = l
  2531. if m.RollingUpdate != nil {
  2532. {
  2533. size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i])
  2534. if err != nil {
  2535. return 0, err
  2536. }
  2537. i -= size
  2538. i = encodeVarintGenerated(dAtA, i, uint64(size))
  2539. }
  2540. i--
  2541. dAtA[i] = 0x12
  2542. }
  2543. i -= len(m.Type)
  2544. copy(dAtA[i:], m.Type)
  2545. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  2546. i--
  2547. dAtA[i] = 0xa
  2548. return len(dAtA) - i, nil
  2549. }
  2550. func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
  2551. offset -= sovGenerated(v)
  2552. base := offset
  2553. for v >= 1<<7 {
  2554. dAtA[offset] = uint8(v&0x7f | 0x80)
  2555. v >>= 7
  2556. offset++
  2557. }
  2558. dAtA[offset] = uint8(v)
  2559. return base
  2560. }
  2561. func (m *ControllerRevision) Size() (n int) {
  2562. if m == nil {
  2563. return 0
  2564. }
  2565. var l int
  2566. _ = l
  2567. l = m.ObjectMeta.Size()
  2568. n += 1 + l + sovGenerated(uint64(l))
  2569. l = m.Data.Size()
  2570. n += 1 + l + sovGenerated(uint64(l))
  2571. n += 1 + sovGenerated(uint64(m.Revision))
  2572. return n
  2573. }
  2574. func (m *ControllerRevisionList) Size() (n int) {
  2575. if m == nil {
  2576. return 0
  2577. }
  2578. var l int
  2579. _ = l
  2580. l = m.ListMeta.Size()
  2581. n += 1 + l + sovGenerated(uint64(l))
  2582. if len(m.Items) > 0 {
  2583. for _, e := range m.Items {
  2584. l = e.Size()
  2585. n += 1 + l + sovGenerated(uint64(l))
  2586. }
  2587. }
  2588. return n
  2589. }
  2590. func (m *DaemonSet) Size() (n int) {
  2591. if m == nil {
  2592. return 0
  2593. }
  2594. var l int
  2595. _ = l
  2596. l = m.ObjectMeta.Size()
  2597. n += 1 + l + sovGenerated(uint64(l))
  2598. l = m.Spec.Size()
  2599. n += 1 + l + sovGenerated(uint64(l))
  2600. l = m.Status.Size()
  2601. n += 1 + l + sovGenerated(uint64(l))
  2602. return n
  2603. }
  2604. func (m *DaemonSetCondition) Size() (n int) {
  2605. if m == nil {
  2606. return 0
  2607. }
  2608. var l int
  2609. _ = l
  2610. l = len(m.Type)
  2611. n += 1 + l + sovGenerated(uint64(l))
  2612. l = len(m.Status)
  2613. n += 1 + l + sovGenerated(uint64(l))
  2614. l = m.LastTransitionTime.Size()
  2615. n += 1 + l + sovGenerated(uint64(l))
  2616. l = len(m.Reason)
  2617. n += 1 + l + sovGenerated(uint64(l))
  2618. l = len(m.Message)
  2619. n += 1 + l + sovGenerated(uint64(l))
  2620. return n
  2621. }
  2622. func (m *DaemonSetList) Size() (n int) {
  2623. if m == nil {
  2624. return 0
  2625. }
  2626. var l int
  2627. _ = l
  2628. l = m.ListMeta.Size()
  2629. n += 1 + l + sovGenerated(uint64(l))
  2630. if len(m.Items) > 0 {
  2631. for _, e := range m.Items {
  2632. l = e.Size()
  2633. n += 1 + l + sovGenerated(uint64(l))
  2634. }
  2635. }
  2636. return n
  2637. }
  2638. func (m *DaemonSetSpec) Size() (n int) {
  2639. if m == nil {
  2640. return 0
  2641. }
  2642. var l int
  2643. _ = l
  2644. if m.Selector != nil {
  2645. l = m.Selector.Size()
  2646. n += 1 + l + sovGenerated(uint64(l))
  2647. }
  2648. l = m.Template.Size()
  2649. n += 1 + l + sovGenerated(uint64(l))
  2650. l = m.UpdateStrategy.Size()
  2651. n += 1 + l + sovGenerated(uint64(l))
  2652. n += 1 + sovGenerated(uint64(m.MinReadySeconds))
  2653. if m.RevisionHistoryLimit != nil {
  2654. n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit))
  2655. }
  2656. return n
  2657. }
  2658. func (m *DaemonSetStatus) Size() (n int) {
  2659. if m == nil {
  2660. return 0
  2661. }
  2662. var l int
  2663. _ = l
  2664. n += 1 + sovGenerated(uint64(m.CurrentNumberScheduled))
  2665. n += 1 + sovGenerated(uint64(m.NumberMisscheduled))
  2666. n += 1 + sovGenerated(uint64(m.DesiredNumberScheduled))
  2667. n += 1 + sovGenerated(uint64(m.NumberReady))
  2668. n += 1 + sovGenerated(uint64(m.ObservedGeneration))
  2669. n += 1 + sovGenerated(uint64(m.UpdatedNumberScheduled))
  2670. n += 1 + sovGenerated(uint64(m.NumberAvailable))
  2671. n += 1 + sovGenerated(uint64(m.NumberUnavailable))
  2672. if m.CollisionCount != nil {
  2673. n += 1 + sovGenerated(uint64(*m.CollisionCount))
  2674. }
  2675. if len(m.Conditions) > 0 {
  2676. for _, e := range m.Conditions {
  2677. l = e.Size()
  2678. n += 1 + l + sovGenerated(uint64(l))
  2679. }
  2680. }
  2681. return n
  2682. }
  2683. func (m *DaemonSetUpdateStrategy) Size() (n int) {
  2684. if m == nil {
  2685. return 0
  2686. }
  2687. var l int
  2688. _ = l
  2689. l = len(m.Type)
  2690. n += 1 + l + sovGenerated(uint64(l))
  2691. if m.RollingUpdate != nil {
  2692. l = m.RollingUpdate.Size()
  2693. n += 1 + l + sovGenerated(uint64(l))
  2694. }
  2695. return n
  2696. }
  2697. func (m *Deployment) Size() (n int) {
  2698. if m == nil {
  2699. return 0
  2700. }
  2701. var l int
  2702. _ = l
  2703. l = m.ObjectMeta.Size()
  2704. n += 1 + l + sovGenerated(uint64(l))
  2705. l = m.Spec.Size()
  2706. n += 1 + l + sovGenerated(uint64(l))
  2707. l = m.Status.Size()
  2708. n += 1 + l + sovGenerated(uint64(l))
  2709. return n
  2710. }
  2711. func (m *DeploymentCondition) Size() (n int) {
  2712. if m == nil {
  2713. return 0
  2714. }
  2715. var l int
  2716. _ = l
  2717. l = len(m.Type)
  2718. n += 1 + l + sovGenerated(uint64(l))
  2719. l = len(m.Status)
  2720. n += 1 + l + sovGenerated(uint64(l))
  2721. l = len(m.Reason)
  2722. n += 1 + l + sovGenerated(uint64(l))
  2723. l = len(m.Message)
  2724. n += 1 + l + sovGenerated(uint64(l))
  2725. l = m.LastUpdateTime.Size()
  2726. n += 1 + l + sovGenerated(uint64(l))
  2727. l = m.LastTransitionTime.Size()
  2728. n += 1 + l + sovGenerated(uint64(l))
  2729. return n
  2730. }
  2731. func (m *DeploymentList) Size() (n int) {
  2732. if m == nil {
  2733. return 0
  2734. }
  2735. var l int
  2736. _ = l
  2737. l = m.ListMeta.Size()
  2738. n += 1 + l + sovGenerated(uint64(l))
  2739. if len(m.Items) > 0 {
  2740. for _, e := range m.Items {
  2741. l = e.Size()
  2742. n += 1 + l + sovGenerated(uint64(l))
  2743. }
  2744. }
  2745. return n
  2746. }
  2747. func (m *DeploymentSpec) Size() (n int) {
  2748. if m == nil {
  2749. return 0
  2750. }
  2751. var l int
  2752. _ = l
  2753. if m.Replicas != nil {
  2754. n += 1 + sovGenerated(uint64(*m.Replicas))
  2755. }
  2756. if m.Selector != nil {
  2757. l = m.Selector.Size()
  2758. n += 1 + l + sovGenerated(uint64(l))
  2759. }
  2760. l = m.Template.Size()
  2761. n += 1 + l + sovGenerated(uint64(l))
  2762. l = m.Strategy.Size()
  2763. n += 1 + l + sovGenerated(uint64(l))
  2764. n += 1 + sovGenerated(uint64(m.MinReadySeconds))
  2765. if m.RevisionHistoryLimit != nil {
  2766. n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit))
  2767. }
  2768. n += 2
  2769. if m.ProgressDeadlineSeconds != nil {
  2770. n += 1 + sovGenerated(uint64(*m.ProgressDeadlineSeconds))
  2771. }
  2772. return n
  2773. }
  2774. func (m *DeploymentStatus) Size() (n int) {
  2775. if m == nil {
  2776. return 0
  2777. }
  2778. var l int
  2779. _ = l
  2780. n += 1 + sovGenerated(uint64(m.ObservedGeneration))
  2781. n += 1 + sovGenerated(uint64(m.Replicas))
  2782. n += 1 + sovGenerated(uint64(m.UpdatedReplicas))
  2783. n += 1 + sovGenerated(uint64(m.AvailableReplicas))
  2784. n += 1 + sovGenerated(uint64(m.UnavailableReplicas))
  2785. if len(m.Conditions) > 0 {
  2786. for _, e := range m.Conditions {
  2787. l = e.Size()
  2788. n += 1 + l + sovGenerated(uint64(l))
  2789. }
  2790. }
  2791. n += 1 + sovGenerated(uint64(m.ReadyReplicas))
  2792. if m.CollisionCount != nil {
  2793. n += 1 + sovGenerated(uint64(*m.CollisionCount))
  2794. }
  2795. return n
  2796. }
  2797. func (m *DeploymentStrategy) Size() (n int) {
  2798. if m == nil {
  2799. return 0
  2800. }
  2801. var l int
  2802. _ = l
  2803. l = len(m.Type)
  2804. n += 1 + l + sovGenerated(uint64(l))
  2805. if m.RollingUpdate != nil {
  2806. l = m.RollingUpdate.Size()
  2807. n += 1 + l + sovGenerated(uint64(l))
  2808. }
  2809. return n
  2810. }
  2811. func (m *ReplicaSet) Size() (n int) {
  2812. if m == nil {
  2813. return 0
  2814. }
  2815. var l int
  2816. _ = l
  2817. l = m.ObjectMeta.Size()
  2818. n += 1 + l + sovGenerated(uint64(l))
  2819. l = m.Spec.Size()
  2820. n += 1 + l + sovGenerated(uint64(l))
  2821. l = m.Status.Size()
  2822. n += 1 + l + sovGenerated(uint64(l))
  2823. return n
  2824. }
  2825. func (m *ReplicaSetCondition) Size() (n int) {
  2826. if m == nil {
  2827. return 0
  2828. }
  2829. var l int
  2830. _ = l
  2831. l = len(m.Type)
  2832. n += 1 + l + sovGenerated(uint64(l))
  2833. l = len(m.Status)
  2834. n += 1 + l + sovGenerated(uint64(l))
  2835. l = m.LastTransitionTime.Size()
  2836. n += 1 + l + sovGenerated(uint64(l))
  2837. l = len(m.Reason)
  2838. n += 1 + l + sovGenerated(uint64(l))
  2839. l = len(m.Message)
  2840. n += 1 + l + sovGenerated(uint64(l))
  2841. return n
  2842. }
  2843. func (m *ReplicaSetList) Size() (n int) {
  2844. if m == nil {
  2845. return 0
  2846. }
  2847. var l int
  2848. _ = l
  2849. l = m.ListMeta.Size()
  2850. n += 1 + l + sovGenerated(uint64(l))
  2851. if len(m.Items) > 0 {
  2852. for _, e := range m.Items {
  2853. l = e.Size()
  2854. n += 1 + l + sovGenerated(uint64(l))
  2855. }
  2856. }
  2857. return n
  2858. }
  2859. func (m *ReplicaSetSpec) Size() (n int) {
  2860. if m == nil {
  2861. return 0
  2862. }
  2863. var l int
  2864. _ = l
  2865. if m.Replicas != nil {
  2866. n += 1 + sovGenerated(uint64(*m.Replicas))
  2867. }
  2868. if m.Selector != nil {
  2869. l = m.Selector.Size()
  2870. n += 1 + l + sovGenerated(uint64(l))
  2871. }
  2872. l = m.Template.Size()
  2873. n += 1 + l + sovGenerated(uint64(l))
  2874. n += 1 + sovGenerated(uint64(m.MinReadySeconds))
  2875. return n
  2876. }
  2877. func (m *ReplicaSetStatus) Size() (n int) {
  2878. if m == nil {
  2879. return 0
  2880. }
  2881. var l int
  2882. _ = l
  2883. n += 1 + sovGenerated(uint64(m.Replicas))
  2884. n += 1 + sovGenerated(uint64(m.FullyLabeledReplicas))
  2885. n += 1 + sovGenerated(uint64(m.ObservedGeneration))
  2886. n += 1 + sovGenerated(uint64(m.ReadyReplicas))
  2887. n += 1 + sovGenerated(uint64(m.AvailableReplicas))
  2888. if len(m.Conditions) > 0 {
  2889. for _, e := range m.Conditions {
  2890. l = e.Size()
  2891. n += 1 + l + sovGenerated(uint64(l))
  2892. }
  2893. }
  2894. return n
  2895. }
  2896. func (m *RollingUpdateDaemonSet) Size() (n int) {
  2897. if m == nil {
  2898. return 0
  2899. }
  2900. var l int
  2901. _ = l
  2902. if m.MaxUnavailable != nil {
  2903. l = m.MaxUnavailable.Size()
  2904. n += 1 + l + sovGenerated(uint64(l))
  2905. }
  2906. if m.MaxSurge != nil {
  2907. l = m.MaxSurge.Size()
  2908. n += 1 + l + sovGenerated(uint64(l))
  2909. }
  2910. return n
  2911. }
  2912. func (m *RollingUpdateDeployment) Size() (n int) {
  2913. if m == nil {
  2914. return 0
  2915. }
  2916. var l int
  2917. _ = l
  2918. if m.MaxUnavailable != nil {
  2919. l = m.MaxUnavailable.Size()
  2920. n += 1 + l + sovGenerated(uint64(l))
  2921. }
  2922. if m.MaxSurge != nil {
  2923. l = m.MaxSurge.Size()
  2924. n += 1 + l + sovGenerated(uint64(l))
  2925. }
  2926. return n
  2927. }
  2928. func (m *RollingUpdateStatefulSetStrategy) Size() (n int) {
  2929. if m == nil {
  2930. return 0
  2931. }
  2932. var l int
  2933. _ = l
  2934. if m.Partition != nil {
  2935. n += 1 + sovGenerated(uint64(*m.Partition))
  2936. }
  2937. return n
  2938. }
  2939. func (m *Scale) Size() (n int) {
  2940. if m == nil {
  2941. return 0
  2942. }
  2943. var l int
  2944. _ = l
  2945. l = m.ObjectMeta.Size()
  2946. n += 1 + l + sovGenerated(uint64(l))
  2947. l = m.Spec.Size()
  2948. n += 1 + l + sovGenerated(uint64(l))
  2949. l = m.Status.Size()
  2950. n += 1 + l + sovGenerated(uint64(l))
  2951. return n
  2952. }
  2953. func (m *ScaleSpec) Size() (n int) {
  2954. if m == nil {
  2955. return 0
  2956. }
  2957. var l int
  2958. _ = l
  2959. n += 1 + sovGenerated(uint64(m.Replicas))
  2960. return n
  2961. }
  2962. func (m *ScaleStatus) Size() (n int) {
  2963. if m == nil {
  2964. return 0
  2965. }
  2966. var l int
  2967. _ = l
  2968. n += 1 + sovGenerated(uint64(m.Replicas))
  2969. if len(m.Selector) > 0 {
  2970. for k, v := range m.Selector {
  2971. _ = k
  2972. _ = v
  2973. mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
  2974. n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
  2975. }
  2976. }
  2977. l = len(m.TargetSelector)
  2978. n += 1 + l + sovGenerated(uint64(l))
  2979. return n
  2980. }
  2981. func (m *StatefulSet) Size() (n int) {
  2982. if m == nil {
  2983. return 0
  2984. }
  2985. var l int
  2986. _ = l
  2987. l = m.ObjectMeta.Size()
  2988. n += 1 + l + sovGenerated(uint64(l))
  2989. l = m.Spec.Size()
  2990. n += 1 + l + sovGenerated(uint64(l))
  2991. l = m.Status.Size()
  2992. n += 1 + l + sovGenerated(uint64(l))
  2993. return n
  2994. }
  2995. func (m *StatefulSetCondition) Size() (n int) {
  2996. if m == nil {
  2997. return 0
  2998. }
  2999. var l int
  3000. _ = l
  3001. l = len(m.Type)
  3002. n += 1 + l + sovGenerated(uint64(l))
  3003. l = len(m.Status)
  3004. n += 1 + l + sovGenerated(uint64(l))
  3005. l = m.LastTransitionTime.Size()
  3006. n += 1 + l + sovGenerated(uint64(l))
  3007. l = len(m.Reason)
  3008. n += 1 + l + sovGenerated(uint64(l))
  3009. l = len(m.Message)
  3010. n += 1 + l + sovGenerated(uint64(l))
  3011. return n
  3012. }
  3013. func (m *StatefulSetList) Size() (n int) {
  3014. if m == nil {
  3015. return 0
  3016. }
  3017. var l int
  3018. _ = l
  3019. l = m.ListMeta.Size()
  3020. n += 1 + l + sovGenerated(uint64(l))
  3021. if len(m.Items) > 0 {
  3022. for _, e := range m.Items {
  3023. l = e.Size()
  3024. n += 1 + l + sovGenerated(uint64(l))
  3025. }
  3026. }
  3027. return n
  3028. }
  3029. func (m *StatefulSetSpec) Size() (n int) {
  3030. if m == nil {
  3031. return 0
  3032. }
  3033. var l int
  3034. _ = l
  3035. if m.Replicas != nil {
  3036. n += 1 + sovGenerated(uint64(*m.Replicas))
  3037. }
  3038. if m.Selector != nil {
  3039. l = m.Selector.Size()
  3040. n += 1 + l + sovGenerated(uint64(l))
  3041. }
  3042. l = m.Template.Size()
  3043. n += 1 + l + sovGenerated(uint64(l))
  3044. if len(m.VolumeClaimTemplates) > 0 {
  3045. for _, e := range m.VolumeClaimTemplates {
  3046. l = e.Size()
  3047. n += 1 + l + sovGenerated(uint64(l))
  3048. }
  3049. }
  3050. l = len(m.ServiceName)
  3051. n += 1 + l + sovGenerated(uint64(l))
  3052. l = len(m.PodManagementPolicy)
  3053. n += 1 + l + sovGenerated(uint64(l))
  3054. l = m.UpdateStrategy.Size()
  3055. n += 1 + l + sovGenerated(uint64(l))
  3056. if m.RevisionHistoryLimit != nil {
  3057. n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit))
  3058. }
  3059. return n
  3060. }
  3061. func (m *StatefulSetStatus) Size() (n int) {
  3062. if m == nil {
  3063. return 0
  3064. }
  3065. var l int
  3066. _ = l
  3067. n += 1 + sovGenerated(uint64(m.ObservedGeneration))
  3068. n += 1 + sovGenerated(uint64(m.Replicas))
  3069. n += 1 + sovGenerated(uint64(m.ReadyReplicas))
  3070. n += 1 + sovGenerated(uint64(m.CurrentReplicas))
  3071. n += 1 + sovGenerated(uint64(m.UpdatedReplicas))
  3072. l = len(m.CurrentRevision)
  3073. n += 1 + l + sovGenerated(uint64(l))
  3074. l = len(m.UpdateRevision)
  3075. n += 1 + l + sovGenerated(uint64(l))
  3076. if m.CollisionCount != nil {
  3077. n += 1 + sovGenerated(uint64(*m.CollisionCount))
  3078. }
  3079. if len(m.Conditions) > 0 {
  3080. for _, e := range m.Conditions {
  3081. l = e.Size()
  3082. n += 1 + l + sovGenerated(uint64(l))
  3083. }
  3084. }
  3085. return n
  3086. }
  3087. func (m *StatefulSetUpdateStrategy) Size() (n int) {
  3088. if m == nil {
  3089. return 0
  3090. }
  3091. var l int
  3092. _ = l
  3093. l = len(m.Type)
  3094. n += 1 + l + sovGenerated(uint64(l))
  3095. if m.RollingUpdate != nil {
  3096. l = m.RollingUpdate.Size()
  3097. n += 1 + l + sovGenerated(uint64(l))
  3098. }
  3099. return n
  3100. }
  3101. func sovGenerated(x uint64) (n int) {
  3102. return (math_bits.Len64(x|1) + 6) / 7
  3103. }
  3104. func sozGenerated(x uint64) (n int) {
  3105. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  3106. }
  3107. func (this *ControllerRevision) String() string {
  3108. if this == nil {
  3109. return "nil"
  3110. }
  3111. s := strings.Join([]string{`&ControllerRevision{`,
  3112. `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  3113. `Data:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Data), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`,
  3114. `Revision:` + fmt.Sprintf("%v", this.Revision) + `,`,
  3115. `}`,
  3116. }, "")
  3117. return s
  3118. }
  3119. func (this *ControllerRevisionList) String() string {
  3120. if this == nil {
  3121. return "nil"
  3122. }
  3123. repeatedStringForItems := "[]ControllerRevision{"
  3124. for _, f := range this.Items {
  3125. repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ControllerRevision", "ControllerRevision", 1), `&`, ``, 1) + ","
  3126. }
  3127. repeatedStringForItems += "}"
  3128. s := strings.Join([]string{`&ControllerRevisionList{`,
  3129. `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  3130. `Items:` + repeatedStringForItems + `,`,
  3131. `}`,
  3132. }, "")
  3133. return s
  3134. }
  3135. func (this *DaemonSet) String() string {
  3136. if this == nil {
  3137. return "nil"
  3138. }
  3139. s := strings.Join([]string{`&DaemonSet{`,
  3140. `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  3141. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DaemonSetSpec", "DaemonSetSpec", 1), `&`, ``, 1) + `,`,
  3142. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "DaemonSetStatus", "DaemonSetStatus", 1), `&`, ``, 1) + `,`,
  3143. `}`,
  3144. }, "")
  3145. return s
  3146. }
  3147. func (this *DaemonSetCondition) String() string {
  3148. if this == nil {
  3149. return "nil"
  3150. }
  3151. s := strings.Join([]string{`&DaemonSetCondition{`,
  3152. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  3153. `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
  3154. `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
  3155. `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
  3156. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  3157. `}`,
  3158. }, "")
  3159. return s
  3160. }
  3161. func (this *DaemonSetList) String() string {
  3162. if this == nil {
  3163. return "nil"
  3164. }
  3165. repeatedStringForItems := "[]DaemonSet{"
  3166. for _, f := range this.Items {
  3167. repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "DaemonSet", "DaemonSet", 1), `&`, ``, 1) + ","
  3168. }
  3169. repeatedStringForItems += "}"
  3170. s := strings.Join([]string{`&DaemonSetList{`,
  3171. `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  3172. `Items:` + repeatedStringForItems + `,`,
  3173. `}`,
  3174. }, "")
  3175. return s
  3176. }
  3177. func (this *DaemonSetSpec) String() string {
  3178. if this == nil {
  3179. return "nil"
  3180. }
  3181. s := strings.Join([]string{`&DaemonSetSpec{`,
  3182. `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
  3183. `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`,
  3184. `UpdateStrategy:` + strings.Replace(strings.Replace(this.UpdateStrategy.String(), "DaemonSetUpdateStrategy", "DaemonSetUpdateStrategy", 1), `&`, ``, 1) + `,`,
  3185. `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`,
  3186. `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`,
  3187. `}`,
  3188. }, "")
  3189. return s
  3190. }
  3191. func (this *DaemonSetStatus) String() string {
  3192. if this == nil {
  3193. return "nil"
  3194. }
  3195. repeatedStringForConditions := "[]DaemonSetCondition{"
  3196. for _, f := range this.Conditions {
  3197. repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "DaemonSetCondition", "DaemonSetCondition", 1), `&`, ``, 1) + ","
  3198. }
  3199. repeatedStringForConditions += "}"
  3200. s := strings.Join([]string{`&DaemonSetStatus{`,
  3201. `CurrentNumberScheduled:` + fmt.Sprintf("%v", this.CurrentNumberScheduled) + `,`,
  3202. `NumberMisscheduled:` + fmt.Sprintf("%v", this.NumberMisscheduled) + `,`,
  3203. `DesiredNumberScheduled:` + fmt.Sprintf("%v", this.DesiredNumberScheduled) + `,`,
  3204. `NumberReady:` + fmt.Sprintf("%v", this.NumberReady) + `,`,
  3205. `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`,
  3206. `UpdatedNumberScheduled:` + fmt.Sprintf("%v", this.UpdatedNumberScheduled) + `,`,
  3207. `NumberAvailable:` + fmt.Sprintf("%v", this.NumberAvailable) + `,`,
  3208. `NumberUnavailable:` + fmt.Sprintf("%v", this.NumberUnavailable) + `,`,
  3209. `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`,
  3210. `Conditions:` + repeatedStringForConditions + `,`,
  3211. `}`,
  3212. }, "")
  3213. return s
  3214. }
  3215. func (this *DaemonSetUpdateStrategy) String() string {
  3216. if this == nil {
  3217. return "nil"
  3218. }
  3219. s := strings.Join([]string{`&DaemonSetUpdateStrategy{`,
  3220. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  3221. `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateDaemonSet", "RollingUpdateDaemonSet", 1) + `,`,
  3222. `}`,
  3223. }, "")
  3224. return s
  3225. }
  3226. func (this *Deployment) String() string {
  3227. if this == nil {
  3228. return "nil"
  3229. }
  3230. s := strings.Join([]string{`&Deployment{`,
  3231. `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  3232. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DeploymentSpec", "DeploymentSpec", 1), `&`, ``, 1) + `,`,
  3233. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "DeploymentStatus", "DeploymentStatus", 1), `&`, ``, 1) + `,`,
  3234. `}`,
  3235. }, "")
  3236. return s
  3237. }
  3238. func (this *DeploymentCondition) String() string {
  3239. if this == nil {
  3240. return "nil"
  3241. }
  3242. s := strings.Join([]string{`&DeploymentCondition{`,
  3243. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  3244. `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
  3245. `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
  3246. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  3247. `LastUpdateTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastUpdateTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
  3248. `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
  3249. `}`,
  3250. }, "")
  3251. return s
  3252. }
  3253. func (this *DeploymentList) String() string {
  3254. if this == nil {
  3255. return "nil"
  3256. }
  3257. repeatedStringForItems := "[]Deployment{"
  3258. for _, f := range this.Items {
  3259. repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Deployment", "Deployment", 1), `&`, ``, 1) + ","
  3260. }
  3261. repeatedStringForItems += "}"
  3262. s := strings.Join([]string{`&DeploymentList{`,
  3263. `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  3264. `Items:` + repeatedStringForItems + `,`,
  3265. `}`,
  3266. }, "")
  3267. return s
  3268. }
  3269. func (this *DeploymentSpec) String() string {
  3270. if this == nil {
  3271. return "nil"
  3272. }
  3273. s := strings.Join([]string{`&DeploymentSpec{`,
  3274. `Replicas:` + valueToStringGenerated(this.Replicas) + `,`,
  3275. `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
  3276. `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`,
  3277. `Strategy:` + strings.Replace(strings.Replace(this.Strategy.String(), "DeploymentStrategy", "DeploymentStrategy", 1), `&`, ``, 1) + `,`,
  3278. `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`,
  3279. `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`,
  3280. `Paused:` + fmt.Sprintf("%v", this.Paused) + `,`,
  3281. `ProgressDeadlineSeconds:` + valueToStringGenerated(this.ProgressDeadlineSeconds) + `,`,
  3282. `}`,
  3283. }, "")
  3284. return s
  3285. }
  3286. func (this *DeploymentStatus) String() string {
  3287. if this == nil {
  3288. return "nil"
  3289. }
  3290. repeatedStringForConditions := "[]DeploymentCondition{"
  3291. for _, f := range this.Conditions {
  3292. repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "DeploymentCondition", "DeploymentCondition", 1), `&`, ``, 1) + ","
  3293. }
  3294. repeatedStringForConditions += "}"
  3295. s := strings.Join([]string{`&DeploymentStatus{`,
  3296. `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`,
  3297. `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
  3298. `UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`,
  3299. `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`,
  3300. `UnavailableReplicas:` + fmt.Sprintf("%v", this.UnavailableReplicas) + `,`,
  3301. `Conditions:` + repeatedStringForConditions + `,`,
  3302. `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`,
  3303. `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`,
  3304. `}`,
  3305. }, "")
  3306. return s
  3307. }
  3308. func (this *DeploymentStrategy) String() string {
  3309. if this == nil {
  3310. return "nil"
  3311. }
  3312. s := strings.Join([]string{`&DeploymentStrategy{`,
  3313. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  3314. `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateDeployment", "RollingUpdateDeployment", 1) + `,`,
  3315. `}`,
  3316. }, "")
  3317. return s
  3318. }
  3319. func (this *ReplicaSet) String() string {
  3320. if this == nil {
  3321. return "nil"
  3322. }
  3323. s := strings.Join([]string{`&ReplicaSet{`,
  3324. `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  3325. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ReplicaSetSpec", "ReplicaSetSpec", 1), `&`, ``, 1) + `,`,
  3326. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ReplicaSetStatus", "ReplicaSetStatus", 1), `&`, ``, 1) + `,`,
  3327. `}`,
  3328. }, "")
  3329. return s
  3330. }
  3331. func (this *ReplicaSetCondition) String() string {
  3332. if this == nil {
  3333. return "nil"
  3334. }
  3335. s := strings.Join([]string{`&ReplicaSetCondition{`,
  3336. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  3337. `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
  3338. `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
  3339. `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
  3340. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  3341. `}`,
  3342. }, "")
  3343. return s
  3344. }
  3345. func (this *ReplicaSetList) String() string {
  3346. if this == nil {
  3347. return "nil"
  3348. }
  3349. repeatedStringForItems := "[]ReplicaSet{"
  3350. for _, f := range this.Items {
  3351. repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ReplicaSet", "ReplicaSet", 1), `&`, ``, 1) + ","
  3352. }
  3353. repeatedStringForItems += "}"
  3354. s := strings.Join([]string{`&ReplicaSetList{`,
  3355. `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  3356. `Items:` + repeatedStringForItems + `,`,
  3357. `}`,
  3358. }, "")
  3359. return s
  3360. }
  3361. func (this *ReplicaSetSpec) String() string {
  3362. if this == nil {
  3363. return "nil"
  3364. }
  3365. s := strings.Join([]string{`&ReplicaSetSpec{`,
  3366. `Replicas:` + valueToStringGenerated(this.Replicas) + `,`,
  3367. `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
  3368. `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`,
  3369. `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`,
  3370. `}`,
  3371. }, "")
  3372. return s
  3373. }
  3374. func (this *ReplicaSetStatus) String() string {
  3375. if this == nil {
  3376. return "nil"
  3377. }
  3378. repeatedStringForConditions := "[]ReplicaSetCondition{"
  3379. for _, f := range this.Conditions {
  3380. repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "ReplicaSetCondition", "ReplicaSetCondition", 1), `&`, ``, 1) + ","
  3381. }
  3382. repeatedStringForConditions += "}"
  3383. s := strings.Join([]string{`&ReplicaSetStatus{`,
  3384. `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
  3385. `FullyLabeledReplicas:` + fmt.Sprintf("%v", this.FullyLabeledReplicas) + `,`,
  3386. `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`,
  3387. `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`,
  3388. `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`,
  3389. `Conditions:` + repeatedStringForConditions + `,`,
  3390. `}`,
  3391. }, "")
  3392. return s
  3393. }
  3394. func (this *RollingUpdateDaemonSet) String() string {
  3395. if this == nil {
  3396. return "nil"
  3397. }
  3398. s := strings.Join([]string{`&RollingUpdateDaemonSet{`,
  3399. `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`,
  3400. `MaxSurge:` + strings.Replace(fmt.Sprintf("%v", this.MaxSurge), "IntOrString", "intstr.IntOrString", 1) + `,`,
  3401. `}`,
  3402. }, "")
  3403. return s
  3404. }
  3405. func (this *RollingUpdateDeployment) String() string {
  3406. if this == nil {
  3407. return "nil"
  3408. }
  3409. s := strings.Join([]string{`&RollingUpdateDeployment{`,
  3410. `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`,
  3411. `MaxSurge:` + strings.Replace(fmt.Sprintf("%v", this.MaxSurge), "IntOrString", "intstr.IntOrString", 1) + `,`,
  3412. `}`,
  3413. }, "")
  3414. return s
  3415. }
  3416. func (this *RollingUpdateStatefulSetStrategy) String() string {
  3417. if this == nil {
  3418. return "nil"
  3419. }
  3420. s := strings.Join([]string{`&RollingUpdateStatefulSetStrategy{`,
  3421. `Partition:` + valueToStringGenerated(this.Partition) + `,`,
  3422. `}`,
  3423. }, "")
  3424. return s
  3425. }
  3426. func (this *Scale) String() string {
  3427. if this == nil {
  3428. return "nil"
  3429. }
  3430. s := strings.Join([]string{`&Scale{`,
  3431. `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  3432. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ScaleSpec", "ScaleSpec", 1), `&`, ``, 1) + `,`,
  3433. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScaleStatus", "ScaleStatus", 1), `&`, ``, 1) + `,`,
  3434. `}`,
  3435. }, "")
  3436. return s
  3437. }
  3438. func (this *ScaleSpec) String() string {
  3439. if this == nil {
  3440. return "nil"
  3441. }
  3442. s := strings.Join([]string{`&ScaleSpec{`,
  3443. `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
  3444. `}`,
  3445. }, "")
  3446. return s
  3447. }
  3448. func (this *ScaleStatus) String() string {
  3449. if this == nil {
  3450. return "nil"
  3451. }
  3452. keysForSelector := make([]string, 0, len(this.Selector))
  3453. for k := range this.Selector {
  3454. keysForSelector = append(keysForSelector, k)
  3455. }
  3456. github_com_gogo_protobuf_sortkeys.Strings(keysForSelector)
  3457. mapStringForSelector := "map[string]string{"
  3458. for _, k := range keysForSelector {
  3459. mapStringForSelector += fmt.Sprintf("%v: %v,", k, this.Selector[k])
  3460. }
  3461. mapStringForSelector += "}"
  3462. s := strings.Join([]string{`&ScaleStatus{`,
  3463. `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
  3464. `Selector:` + mapStringForSelector + `,`,
  3465. `TargetSelector:` + fmt.Sprintf("%v", this.TargetSelector) + `,`,
  3466. `}`,
  3467. }, "")
  3468. return s
  3469. }
  3470. func (this *StatefulSet) String() string {
  3471. if this == nil {
  3472. return "nil"
  3473. }
  3474. s := strings.Join([]string{`&StatefulSet{`,
  3475. `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  3476. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "StatefulSetSpec", "StatefulSetSpec", 1), `&`, ``, 1) + `,`,
  3477. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "StatefulSetStatus", "StatefulSetStatus", 1), `&`, ``, 1) + `,`,
  3478. `}`,
  3479. }, "")
  3480. return s
  3481. }
  3482. func (this *StatefulSetCondition) String() string {
  3483. if this == nil {
  3484. return "nil"
  3485. }
  3486. s := strings.Join([]string{`&StatefulSetCondition{`,
  3487. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  3488. `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
  3489. `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
  3490. `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
  3491. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  3492. `}`,
  3493. }, "")
  3494. return s
  3495. }
  3496. func (this *StatefulSetList) String() string {
  3497. if this == nil {
  3498. return "nil"
  3499. }
  3500. repeatedStringForItems := "[]StatefulSet{"
  3501. for _, f := range this.Items {
  3502. repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "StatefulSet", "StatefulSet", 1), `&`, ``, 1) + ","
  3503. }
  3504. repeatedStringForItems += "}"
  3505. s := strings.Join([]string{`&StatefulSetList{`,
  3506. `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  3507. `Items:` + repeatedStringForItems + `,`,
  3508. `}`,
  3509. }, "")
  3510. return s
  3511. }
  3512. func (this *StatefulSetSpec) String() string {
  3513. if this == nil {
  3514. return "nil"
  3515. }
  3516. repeatedStringForVolumeClaimTemplates := "[]PersistentVolumeClaim{"
  3517. for _, f := range this.VolumeClaimTemplates {
  3518. repeatedStringForVolumeClaimTemplates += fmt.Sprintf("%v", f) + ","
  3519. }
  3520. repeatedStringForVolumeClaimTemplates += "}"
  3521. s := strings.Join([]string{`&StatefulSetSpec{`,
  3522. `Replicas:` + valueToStringGenerated(this.Replicas) + `,`,
  3523. `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
  3524. `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`,
  3525. `VolumeClaimTemplates:` + repeatedStringForVolumeClaimTemplates + `,`,
  3526. `ServiceName:` + fmt.Sprintf("%v", this.ServiceName) + `,`,
  3527. `PodManagementPolicy:` + fmt.Sprintf("%v", this.PodManagementPolicy) + `,`,
  3528. `UpdateStrategy:` + strings.Replace(strings.Replace(this.UpdateStrategy.String(), "StatefulSetUpdateStrategy", "StatefulSetUpdateStrategy", 1), `&`, ``, 1) + `,`,
  3529. `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`,
  3530. `}`,
  3531. }, "")
  3532. return s
  3533. }
  3534. func (this *StatefulSetStatus) String() string {
  3535. if this == nil {
  3536. return "nil"
  3537. }
  3538. repeatedStringForConditions := "[]StatefulSetCondition{"
  3539. for _, f := range this.Conditions {
  3540. repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "StatefulSetCondition", "StatefulSetCondition", 1), `&`, ``, 1) + ","
  3541. }
  3542. repeatedStringForConditions += "}"
  3543. s := strings.Join([]string{`&StatefulSetStatus{`,
  3544. `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`,
  3545. `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
  3546. `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`,
  3547. `CurrentReplicas:` + fmt.Sprintf("%v", this.CurrentReplicas) + `,`,
  3548. `UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`,
  3549. `CurrentRevision:` + fmt.Sprintf("%v", this.CurrentRevision) + `,`,
  3550. `UpdateRevision:` + fmt.Sprintf("%v", this.UpdateRevision) + `,`,
  3551. `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`,
  3552. `Conditions:` + repeatedStringForConditions + `,`,
  3553. `}`,
  3554. }, "")
  3555. return s
  3556. }
  3557. func (this *StatefulSetUpdateStrategy) String() string {
  3558. if this == nil {
  3559. return "nil"
  3560. }
  3561. s := strings.Join([]string{`&StatefulSetUpdateStrategy{`,
  3562. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  3563. `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateStatefulSetStrategy", "RollingUpdateStatefulSetStrategy", 1) + `,`,
  3564. `}`,
  3565. }, "")
  3566. return s
  3567. }
  3568. func valueToStringGenerated(v interface{}) string {
  3569. rv := reflect.ValueOf(v)
  3570. if rv.IsNil() {
  3571. return "nil"
  3572. }
  3573. pv := reflect.Indirect(rv).Interface()
  3574. return fmt.Sprintf("*%v", pv)
  3575. }
  3576. func (m *ControllerRevision) Unmarshal(dAtA []byte) error {
  3577. l := len(dAtA)
  3578. iNdEx := 0
  3579. for iNdEx < l {
  3580. preIndex := iNdEx
  3581. var wire uint64
  3582. for shift := uint(0); ; shift += 7 {
  3583. if shift >= 64 {
  3584. return ErrIntOverflowGenerated
  3585. }
  3586. if iNdEx >= l {
  3587. return io.ErrUnexpectedEOF
  3588. }
  3589. b := dAtA[iNdEx]
  3590. iNdEx++
  3591. wire |= uint64(b&0x7F) << shift
  3592. if b < 0x80 {
  3593. break
  3594. }
  3595. }
  3596. fieldNum := int32(wire >> 3)
  3597. wireType := int(wire & 0x7)
  3598. if wireType == 4 {
  3599. return fmt.Errorf("proto: ControllerRevision: wiretype end group for non-group")
  3600. }
  3601. if fieldNum <= 0 {
  3602. return fmt.Errorf("proto: ControllerRevision: illegal tag %d (wire type %d)", fieldNum, wire)
  3603. }
  3604. switch fieldNum {
  3605. case 1:
  3606. if wireType != 2 {
  3607. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  3608. }
  3609. var msglen int
  3610. for shift := uint(0); ; shift += 7 {
  3611. if shift >= 64 {
  3612. return ErrIntOverflowGenerated
  3613. }
  3614. if iNdEx >= l {
  3615. return io.ErrUnexpectedEOF
  3616. }
  3617. b := dAtA[iNdEx]
  3618. iNdEx++
  3619. msglen |= int(b&0x7F) << shift
  3620. if b < 0x80 {
  3621. break
  3622. }
  3623. }
  3624. if msglen < 0 {
  3625. return ErrInvalidLengthGenerated
  3626. }
  3627. postIndex := iNdEx + msglen
  3628. if postIndex < 0 {
  3629. return ErrInvalidLengthGenerated
  3630. }
  3631. if postIndex > l {
  3632. return io.ErrUnexpectedEOF
  3633. }
  3634. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3635. return err
  3636. }
  3637. iNdEx = postIndex
  3638. case 2:
  3639. if wireType != 2 {
  3640. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  3641. }
  3642. var msglen int
  3643. for shift := uint(0); ; shift += 7 {
  3644. if shift >= 64 {
  3645. return ErrIntOverflowGenerated
  3646. }
  3647. if iNdEx >= l {
  3648. return io.ErrUnexpectedEOF
  3649. }
  3650. b := dAtA[iNdEx]
  3651. iNdEx++
  3652. msglen |= int(b&0x7F) << shift
  3653. if b < 0x80 {
  3654. break
  3655. }
  3656. }
  3657. if msglen < 0 {
  3658. return ErrInvalidLengthGenerated
  3659. }
  3660. postIndex := iNdEx + msglen
  3661. if postIndex < 0 {
  3662. return ErrInvalidLengthGenerated
  3663. }
  3664. if postIndex > l {
  3665. return io.ErrUnexpectedEOF
  3666. }
  3667. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3668. return err
  3669. }
  3670. iNdEx = postIndex
  3671. case 3:
  3672. if wireType != 0 {
  3673. return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType)
  3674. }
  3675. m.Revision = 0
  3676. for shift := uint(0); ; shift += 7 {
  3677. if shift >= 64 {
  3678. return ErrIntOverflowGenerated
  3679. }
  3680. if iNdEx >= l {
  3681. return io.ErrUnexpectedEOF
  3682. }
  3683. b := dAtA[iNdEx]
  3684. iNdEx++
  3685. m.Revision |= int64(b&0x7F) << shift
  3686. if b < 0x80 {
  3687. break
  3688. }
  3689. }
  3690. default:
  3691. iNdEx = preIndex
  3692. skippy, err := skipGenerated(dAtA[iNdEx:])
  3693. if err != nil {
  3694. return err
  3695. }
  3696. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3697. return ErrInvalidLengthGenerated
  3698. }
  3699. if (iNdEx + skippy) > l {
  3700. return io.ErrUnexpectedEOF
  3701. }
  3702. iNdEx += skippy
  3703. }
  3704. }
  3705. if iNdEx > l {
  3706. return io.ErrUnexpectedEOF
  3707. }
  3708. return nil
  3709. }
  3710. func (m *ControllerRevisionList) Unmarshal(dAtA []byte) error {
  3711. l := len(dAtA)
  3712. iNdEx := 0
  3713. for iNdEx < l {
  3714. preIndex := iNdEx
  3715. var wire uint64
  3716. for shift := uint(0); ; shift += 7 {
  3717. if shift >= 64 {
  3718. return ErrIntOverflowGenerated
  3719. }
  3720. if iNdEx >= l {
  3721. return io.ErrUnexpectedEOF
  3722. }
  3723. b := dAtA[iNdEx]
  3724. iNdEx++
  3725. wire |= uint64(b&0x7F) << shift
  3726. if b < 0x80 {
  3727. break
  3728. }
  3729. }
  3730. fieldNum := int32(wire >> 3)
  3731. wireType := int(wire & 0x7)
  3732. if wireType == 4 {
  3733. return fmt.Errorf("proto: ControllerRevisionList: wiretype end group for non-group")
  3734. }
  3735. if fieldNum <= 0 {
  3736. return fmt.Errorf("proto: ControllerRevisionList: illegal tag %d (wire type %d)", fieldNum, wire)
  3737. }
  3738. switch fieldNum {
  3739. case 1:
  3740. if wireType != 2 {
  3741. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  3742. }
  3743. var msglen int
  3744. for shift := uint(0); ; shift += 7 {
  3745. if shift >= 64 {
  3746. return ErrIntOverflowGenerated
  3747. }
  3748. if iNdEx >= l {
  3749. return io.ErrUnexpectedEOF
  3750. }
  3751. b := dAtA[iNdEx]
  3752. iNdEx++
  3753. msglen |= int(b&0x7F) << shift
  3754. if b < 0x80 {
  3755. break
  3756. }
  3757. }
  3758. if msglen < 0 {
  3759. return ErrInvalidLengthGenerated
  3760. }
  3761. postIndex := iNdEx + msglen
  3762. if postIndex < 0 {
  3763. return ErrInvalidLengthGenerated
  3764. }
  3765. if postIndex > l {
  3766. return io.ErrUnexpectedEOF
  3767. }
  3768. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3769. return err
  3770. }
  3771. iNdEx = postIndex
  3772. case 2:
  3773. if wireType != 2 {
  3774. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  3775. }
  3776. var msglen int
  3777. for shift := uint(0); ; shift += 7 {
  3778. if shift >= 64 {
  3779. return ErrIntOverflowGenerated
  3780. }
  3781. if iNdEx >= l {
  3782. return io.ErrUnexpectedEOF
  3783. }
  3784. b := dAtA[iNdEx]
  3785. iNdEx++
  3786. msglen |= int(b&0x7F) << shift
  3787. if b < 0x80 {
  3788. break
  3789. }
  3790. }
  3791. if msglen < 0 {
  3792. return ErrInvalidLengthGenerated
  3793. }
  3794. postIndex := iNdEx + msglen
  3795. if postIndex < 0 {
  3796. return ErrInvalidLengthGenerated
  3797. }
  3798. if postIndex > l {
  3799. return io.ErrUnexpectedEOF
  3800. }
  3801. m.Items = append(m.Items, ControllerRevision{})
  3802. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3803. return err
  3804. }
  3805. iNdEx = postIndex
  3806. default:
  3807. iNdEx = preIndex
  3808. skippy, err := skipGenerated(dAtA[iNdEx:])
  3809. if err != nil {
  3810. return err
  3811. }
  3812. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3813. return ErrInvalidLengthGenerated
  3814. }
  3815. if (iNdEx + skippy) > l {
  3816. return io.ErrUnexpectedEOF
  3817. }
  3818. iNdEx += skippy
  3819. }
  3820. }
  3821. if iNdEx > l {
  3822. return io.ErrUnexpectedEOF
  3823. }
  3824. return nil
  3825. }
  3826. func (m *DaemonSet) Unmarshal(dAtA []byte) error {
  3827. l := len(dAtA)
  3828. iNdEx := 0
  3829. for iNdEx < l {
  3830. preIndex := iNdEx
  3831. var wire uint64
  3832. for shift := uint(0); ; shift += 7 {
  3833. if shift >= 64 {
  3834. return ErrIntOverflowGenerated
  3835. }
  3836. if iNdEx >= l {
  3837. return io.ErrUnexpectedEOF
  3838. }
  3839. b := dAtA[iNdEx]
  3840. iNdEx++
  3841. wire |= uint64(b&0x7F) << shift
  3842. if b < 0x80 {
  3843. break
  3844. }
  3845. }
  3846. fieldNum := int32(wire >> 3)
  3847. wireType := int(wire & 0x7)
  3848. if wireType == 4 {
  3849. return fmt.Errorf("proto: DaemonSet: wiretype end group for non-group")
  3850. }
  3851. if fieldNum <= 0 {
  3852. return fmt.Errorf("proto: DaemonSet: illegal tag %d (wire type %d)", fieldNum, wire)
  3853. }
  3854. switch fieldNum {
  3855. case 1:
  3856. if wireType != 2 {
  3857. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  3858. }
  3859. var msglen int
  3860. for shift := uint(0); ; shift += 7 {
  3861. if shift >= 64 {
  3862. return ErrIntOverflowGenerated
  3863. }
  3864. if iNdEx >= l {
  3865. return io.ErrUnexpectedEOF
  3866. }
  3867. b := dAtA[iNdEx]
  3868. iNdEx++
  3869. msglen |= int(b&0x7F) << shift
  3870. if b < 0x80 {
  3871. break
  3872. }
  3873. }
  3874. if msglen < 0 {
  3875. return ErrInvalidLengthGenerated
  3876. }
  3877. postIndex := iNdEx + msglen
  3878. if postIndex < 0 {
  3879. return ErrInvalidLengthGenerated
  3880. }
  3881. if postIndex > l {
  3882. return io.ErrUnexpectedEOF
  3883. }
  3884. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3885. return err
  3886. }
  3887. iNdEx = postIndex
  3888. case 2:
  3889. if wireType != 2 {
  3890. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  3891. }
  3892. var msglen int
  3893. for shift := uint(0); ; shift += 7 {
  3894. if shift >= 64 {
  3895. return ErrIntOverflowGenerated
  3896. }
  3897. if iNdEx >= l {
  3898. return io.ErrUnexpectedEOF
  3899. }
  3900. b := dAtA[iNdEx]
  3901. iNdEx++
  3902. msglen |= int(b&0x7F) << shift
  3903. if b < 0x80 {
  3904. break
  3905. }
  3906. }
  3907. if msglen < 0 {
  3908. return ErrInvalidLengthGenerated
  3909. }
  3910. postIndex := iNdEx + msglen
  3911. if postIndex < 0 {
  3912. return ErrInvalidLengthGenerated
  3913. }
  3914. if postIndex > l {
  3915. return io.ErrUnexpectedEOF
  3916. }
  3917. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3918. return err
  3919. }
  3920. iNdEx = postIndex
  3921. case 3:
  3922. if wireType != 2 {
  3923. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  3924. }
  3925. var msglen int
  3926. for shift := uint(0); ; shift += 7 {
  3927. if shift >= 64 {
  3928. return ErrIntOverflowGenerated
  3929. }
  3930. if iNdEx >= l {
  3931. return io.ErrUnexpectedEOF
  3932. }
  3933. b := dAtA[iNdEx]
  3934. iNdEx++
  3935. msglen |= int(b&0x7F) << shift
  3936. if b < 0x80 {
  3937. break
  3938. }
  3939. }
  3940. if msglen < 0 {
  3941. return ErrInvalidLengthGenerated
  3942. }
  3943. postIndex := iNdEx + msglen
  3944. if postIndex < 0 {
  3945. return ErrInvalidLengthGenerated
  3946. }
  3947. if postIndex > l {
  3948. return io.ErrUnexpectedEOF
  3949. }
  3950. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3951. return err
  3952. }
  3953. iNdEx = postIndex
  3954. default:
  3955. iNdEx = preIndex
  3956. skippy, err := skipGenerated(dAtA[iNdEx:])
  3957. if err != nil {
  3958. return err
  3959. }
  3960. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3961. return ErrInvalidLengthGenerated
  3962. }
  3963. if (iNdEx + skippy) > l {
  3964. return io.ErrUnexpectedEOF
  3965. }
  3966. iNdEx += skippy
  3967. }
  3968. }
  3969. if iNdEx > l {
  3970. return io.ErrUnexpectedEOF
  3971. }
  3972. return nil
  3973. }
  3974. func (m *DaemonSetCondition) Unmarshal(dAtA []byte) error {
  3975. l := len(dAtA)
  3976. iNdEx := 0
  3977. for iNdEx < l {
  3978. preIndex := iNdEx
  3979. var wire uint64
  3980. for shift := uint(0); ; shift += 7 {
  3981. if shift >= 64 {
  3982. return ErrIntOverflowGenerated
  3983. }
  3984. if iNdEx >= l {
  3985. return io.ErrUnexpectedEOF
  3986. }
  3987. b := dAtA[iNdEx]
  3988. iNdEx++
  3989. wire |= uint64(b&0x7F) << shift
  3990. if b < 0x80 {
  3991. break
  3992. }
  3993. }
  3994. fieldNum := int32(wire >> 3)
  3995. wireType := int(wire & 0x7)
  3996. if wireType == 4 {
  3997. return fmt.Errorf("proto: DaemonSetCondition: wiretype end group for non-group")
  3998. }
  3999. if fieldNum <= 0 {
  4000. return fmt.Errorf("proto: DaemonSetCondition: illegal tag %d (wire type %d)", fieldNum, wire)
  4001. }
  4002. switch fieldNum {
  4003. case 1:
  4004. if wireType != 2 {
  4005. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  4006. }
  4007. var stringLen uint64
  4008. for shift := uint(0); ; shift += 7 {
  4009. if shift >= 64 {
  4010. return ErrIntOverflowGenerated
  4011. }
  4012. if iNdEx >= l {
  4013. return io.ErrUnexpectedEOF
  4014. }
  4015. b := dAtA[iNdEx]
  4016. iNdEx++
  4017. stringLen |= uint64(b&0x7F) << shift
  4018. if b < 0x80 {
  4019. break
  4020. }
  4021. }
  4022. intStringLen := int(stringLen)
  4023. if intStringLen < 0 {
  4024. return ErrInvalidLengthGenerated
  4025. }
  4026. postIndex := iNdEx + intStringLen
  4027. if postIndex < 0 {
  4028. return ErrInvalidLengthGenerated
  4029. }
  4030. if postIndex > l {
  4031. return io.ErrUnexpectedEOF
  4032. }
  4033. m.Type = DaemonSetConditionType(dAtA[iNdEx:postIndex])
  4034. iNdEx = postIndex
  4035. case 2:
  4036. if wireType != 2 {
  4037. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  4038. }
  4039. var stringLen uint64
  4040. for shift := uint(0); ; shift += 7 {
  4041. if shift >= 64 {
  4042. return ErrIntOverflowGenerated
  4043. }
  4044. if iNdEx >= l {
  4045. return io.ErrUnexpectedEOF
  4046. }
  4047. b := dAtA[iNdEx]
  4048. iNdEx++
  4049. stringLen |= uint64(b&0x7F) << shift
  4050. if b < 0x80 {
  4051. break
  4052. }
  4053. }
  4054. intStringLen := int(stringLen)
  4055. if intStringLen < 0 {
  4056. return ErrInvalidLengthGenerated
  4057. }
  4058. postIndex := iNdEx + intStringLen
  4059. if postIndex < 0 {
  4060. return ErrInvalidLengthGenerated
  4061. }
  4062. if postIndex > l {
  4063. return io.ErrUnexpectedEOF
  4064. }
  4065. m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex])
  4066. iNdEx = postIndex
  4067. case 3:
  4068. if wireType != 2 {
  4069. return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
  4070. }
  4071. var msglen int
  4072. for shift := uint(0); ; shift += 7 {
  4073. if shift >= 64 {
  4074. return ErrIntOverflowGenerated
  4075. }
  4076. if iNdEx >= l {
  4077. return io.ErrUnexpectedEOF
  4078. }
  4079. b := dAtA[iNdEx]
  4080. iNdEx++
  4081. msglen |= int(b&0x7F) << shift
  4082. if b < 0x80 {
  4083. break
  4084. }
  4085. }
  4086. if msglen < 0 {
  4087. return ErrInvalidLengthGenerated
  4088. }
  4089. postIndex := iNdEx + msglen
  4090. if postIndex < 0 {
  4091. return ErrInvalidLengthGenerated
  4092. }
  4093. if postIndex > l {
  4094. return io.ErrUnexpectedEOF
  4095. }
  4096. if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4097. return err
  4098. }
  4099. iNdEx = postIndex
  4100. case 4:
  4101. if wireType != 2 {
  4102. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  4103. }
  4104. var stringLen uint64
  4105. for shift := uint(0); ; shift += 7 {
  4106. if shift >= 64 {
  4107. return ErrIntOverflowGenerated
  4108. }
  4109. if iNdEx >= l {
  4110. return io.ErrUnexpectedEOF
  4111. }
  4112. b := dAtA[iNdEx]
  4113. iNdEx++
  4114. stringLen |= uint64(b&0x7F) << shift
  4115. if b < 0x80 {
  4116. break
  4117. }
  4118. }
  4119. intStringLen := int(stringLen)
  4120. if intStringLen < 0 {
  4121. return ErrInvalidLengthGenerated
  4122. }
  4123. postIndex := iNdEx + intStringLen
  4124. if postIndex < 0 {
  4125. return ErrInvalidLengthGenerated
  4126. }
  4127. if postIndex > l {
  4128. return io.ErrUnexpectedEOF
  4129. }
  4130. m.Reason = string(dAtA[iNdEx:postIndex])
  4131. iNdEx = postIndex
  4132. case 5:
  4133. if wireType != 2 {
  4134. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  4135. }
  4136. var stringLen uint64
  4137. for shift := uint(0); ; shift += 7 {
  4138. if shift >= 64 {
  4139. return ErrIntOverflowGenerated
  4140. }
  4141. if iNdEx >= l {
  4142. return io.ErrUnexpectedEOF
  4143. }
  4144. b := dAtA[iNdEx]
  4145. iNdEx++
  4146. stringLen |= uint64(b&0x7F) << shift
  4147. if b < 0x80 {
  4148. break
  4149. }
  4150. }
  4151. intStringLen := int(stringLen)
  4152. if intStringLen < 0 {
  4153. return ErrInvalidLengthGenerated
  4154. }
  4155. postIndex := iNdEx + intStringLen
  4156. if postIndex < 0 {
  4157. return ErrInvalidLengthGenerated
  4158. }
  4159. if postIndex > l {
  4160. return io.ErrUnexpectedEOF
  4161. }
  4162. m.Message = string(dAtA[iNdEx:postIndex])
  4163. iNdEx = postIndex
  4164. default:
  4165. iNdEx = preIndex
  4166. skippy, err := skipGenerated(dAtA[iNdEx:])
  4167. if err != nil {
  4168. return err
  4169. }
  4170. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4171. return ErrInvalidLengthGenerated
  4172. }
  4173. if (iNdEx + skippy) > l {
  4174. return io.ErrUnexpectedEOF
  4175. }
  4176. iNdEx += skippy
  4177. }
  4178. }
  4179. if iNdEx > l {
  4180. return io.ErrUnexpectedEOF
  4181. }
  4182. return nil
  4183. }
  4184. func (m *DaemonSetList) Unmarshal(dAtA []byte) error {
  4185. l := len(dAtA)
  4186. iNdEx := 0
  4187. for iNdEx < l {
  4188. preIndex := iNdEx
  4189. var wire uint64
  4190. for shift := uint(0); ; shift += 7 {
  4191. if shift >= 64 {
  4192. return ErrIntOverflowGenerated
  4193. }
  4194. if iNdEx >= l {
  4195. return io.ErrUnexpectedEOF
  4196. }
  4197. b := dAtA[iNdEx]
  4198. iNdEx++
  4199. wire |= uint64(b&0x7F) << shift
  4200. if b < 0x80 {
  4201. break
  4202. }
  4203. }
  4204. fieldNum := int32(wire >> 3)
  4205. wireType := int(wire & 0x7)
  4206. if wireType == 4 {
  4207. return fmt.Errorf("proto: DaemonSetList: wiretype end group for non-group")
  4208. }
  4209. if fieldNum <= 0 {
  4210. return fmt.Errorf("proto: DaemonSetList: illegal tag %d (wire type %d)", fieldNum, wire)
  4211. }
  4212. switch fieldNum {
  4213. case 1:
  4214. if wireType != 2 {
  4215. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  4216. }
  4217. var msglen int
  4218. for shift := uint(0); ; shift += 7 {
  4219. if shift >= 64 {
  4220. return ErrIntOverflowGenerated
  4221. }
  4222. if iNdEx >= l {
  4223. return io.ErrUnexpectedEOF
  4224. }
  4225. b := dAtA[iNdEx]
  4226. iNdEx++
  4227. msglen |= int(b&0x7F) << shift
  4228. if b < 0x80 {
  4229. break
  4230. }
  4231. }
  4232. if msglen < 0 {
  4233. return ErrInvalidLengthGenerated
  4234. }
  4235. postIndex := iNdEx + msglen
  4236. if postIndex < 0 {
  4237. return ErrInvalidLengthGenerated
  4238. }
  4239. if postIndex > l {
  4240. return io.ErrUnexpectedEOF
  4241. }
  4242. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4243. return err
  4244. }
  4245. iNdEx = postIndex
  4246. case 2:
  4247. if wireType != 2 {
  4248. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  4249. }
  4250. var msglen int
  4251. for shift := uint(0); ; shift += 7 {
  4252. if shift >= 64 {
  4253. return ErrIntOverflowGenerated
  4254. }
  4255. if iNdEx >= l {
  4256. return io.ErrUnexpectedEOF
  4257. }
  4258. b := dAtA[iNdEx]
  4259. iNdEx++
  4260. msglen |= int(b&0x7F) << shift
  4261. if b < 0x80 {
  4262. break
  4263. }
  4264. }
  4265. if msglen < 0 {
  4266. return ErrInvalidLengthGenerated
  4267. }
  4268. postIndex := iNdEx + msglen
  4269. if postIndex < 0 {
  4270. return ErrInvalidLengthGenerated
  4271. }
  4272. if postIndex > l {
  4273. return io.ErrUnexpectedEOF
  4274. }
  4275. m.Items = append(m.Items, DaemonSet{})
  4276. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4277. return err
  4278. }
  4279. iNdEx = postIndex
  4280. default:
  4281. iNdEx = preIndex
  4282. skippy, err := skipGenerated(dAtA[iNdEx:])
  4283. if err != nil {
  4284. return err
  4285. }
  4286. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4287. return ErrInvalidLengthGenerated
  4288. }
  4289. if (iNdEx + skippy) > l {
  4290. return io.ErrUnexpectedEOF
  4291. }
  4292. iNdEx += skippy
  4293. }
  4294. }
  4295. if iNdEx > l {
  4296. return io.ErrUnexpectedEOF
  4297. }
  4298. return nil
  4299. }
  4300. func (m *DaemonSetSpec) Unmarshal(dAtA []byte) error {
  4301. l := len(dAtA)
  4302. iNdEx := 0
  4303. for iNdEx < l {
  4304. preIndex := iNdEx
  4305. var wire uint64
  4306. for shift := uint(0); ; shift += 7 {
  4307. if shift >= 64 {
  4308. return ErrIntOverflowGenerated
  4309. }
  4310. if iNdEx >= l {
  4311. return io.ErrUnexpectedEOF
  4312. }
  4313. b := dAtA[iNdEx]
  4314. iNdEx++
  4315. wire |= uint64(b&0x7F) << shift
  4316. if b < 0x80 {
  4317. break
  4318. }
  4319. }
  4320. fieldNum := int32(wire >> 3)
  4321. wireType := int(wire & 0x7)
  4322. if wireType == 4 {
  4323. return fmt.Errorf("proto: DaemonSetSpec: wiretype end group for non-group")
  4324. }
  4325. if fieldNum <= 0 {
  4326. return fmt.Errorf("proto: DaemonSetSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  4327. }
  4328. switch fieldNum {
  4329. case 1:
  4330. if wireType != 2 {
  4331. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  4332. }
  4333. var msglen int
  4334. for shift := uint(0); ; shift += 7 {
  4335. if shift >= 64 {
  4336. return ErrIntOverflowGenerated
  4337. }
  4338. if iNdEx >= l {
  4339. return io.ErrUnexpectedEOF
  4340. }
  4341. b := dAtA[iNdEx]
  4342. iNdEx++
  4343. msglen |= int(b&0x7F) << shift
  4344. if b < 0x80 {
  4345. break
  4346. }
  4347. }
  4348. if msglen < 0 {
  4349. return ErrInvalidLengthGenerated
  4350. }
  4351. postIndex := iNdEx + msglen
  4352. if postIndex < 0 {
  4353. return ErrInvalidLengthGenerated
  4354. }
  4355. if postIndex > l {
  4356. return io.ErrUnexpectedEOF
  4357. }
  4358. if m.Selector == nil {
  4359. m.Selector = &v1.LabelSelector{}
  4360. }
  4361. if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4362. return err
  4363. }
  4364. iNdEx = postIndex
  4365. case 2:
  4366. if wireType != 2 {
  4367. return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
  4368. }
  4369. var msglen int
  4370. for shift := uint(0); ; shift += 7 {
  4371. if shift >= 64 {
  4372. return ErrIntOverflowGenerated
  4373. }
  4374. if iNdEx >= l {
  4375. return io.ErrUnexpectedEOF
  4376. }
  4377. b := dAtA[iNdEx]
  4378. iNdEx++
  4379. msglen |= int(b&0x7F) << shift
  4380. if b < 0x80 {
  4381. break
  4382. }
  4383. }
  4384. if msglen < 0 {
  4385. return ErrInvalidLengthGenerated
  4386. }
  4387. postIndex := iNdEx + msglen
  4388. if postIndex < 0 {
  4389. return ErrInvalidLengthGenerated
  4390. }
  4391. if postIndex > l {
  4392. return io.ErrUnexpectedEOF
  4393. }
  4394. if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4395. return err
  4396. }
  4397. iNdEx = postIndex
  4398. case 3:
  4399. if wireType != 2 {
  4400. return fmt.Errorf("proto: wrong wireType = %d for field UpdateStrategy", wireType)
  4401. }
  4402. var msglen int
  4403. for shift := uint(0); ; shift += 7 {
  4404. if shift >= 64 {
  4405. return ErrIntOverflowGenerated
  4406. }
  4407. if iNdEx >= l {
  4408. return io.ErrUnexpectedEOF
  4409. }
  4410. b := dAtA[iNdEx]
  4411. iNdEx++
  4412. msglen |= int(b&0x7F) << shift
  4413. if b < 0x80 {
  4414. break
  4415. }
  4416. }
  4417. if msglen < 0 {
  4418. return ErrInvalidLengthGenerated
  4419. }
  4420. postIndex := iNdEx + msglen
  4421. if postIndex < 0 {
  4422. return ErrInvalidLengthGenerated
  4423. }
  4424. if postIndex > l {
  4425. return io.ErrUnexpectedEOF
  4426. }
  4427. if err := m.UpdateStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4428. return err
  4429. }
  4430. iNdEx = postIndex
  4431. case 4:
  4432. if wireType != 0 {
  4433. return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType)
  4434. }
  4435. m.MinReadySeconds = 0
  4436. for shift := uint(0); ; shift += 7 {
  4437. if shift >= 64 {
  4438. return ErrIntOverflowGenerated
  4439. }
  4440. if iNdEx >= l {
  4441. return io.ErrUnexpectedEOF
  4442. }
  4443. b := dAtA[iNdEx]
  4444. iNdEx++
  4445. m.MinReadySeconds |= int32(b&0x7F) << shift
  4446. if b < 0x80 {
  4447. break
  4448. }
  4449. }
  4450. case 6:
  4451. if wireType != 0 {
  4452. return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType)
  4453. }
  4454. var v int32
  4455. for shift := uint(0); ; shift += 7 {
  4456. if shift >= 64 {
  4457. return ErrIntOverflowGenerated
  4458. }
  4459. if iNdEx >= l {
  4460. return io.ErrUnexpectedEOF
  4461. }
  4462. b := dAtA[iNdEx]
  4463. iNdEx++
  4464. v |= int32(b&0x7F) << shift
  4465. if b < 0x80 {
  4466. break
  4467. }
  4468. }
  4469. m.RevisionHistoryLimit = &v
  4470. default:
  4471. iNdEx = preIndex
  4472. skippy, err := skipGenerated(dAtA[iNdEx:])
  4473. if err != nil {
  4474. return err
  4475. }
  4476. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4477. return ErrInvalidLengthGenerated
  4478. }
  4479. if (iNdEx + skippy) > l {
  4480. return io.ErrUnexpectedEOF
  4481. }
  4482. iNdEx += skippy
  4483. }
  4484. }
  4485. if iNdEx > l {
  4486. return io.ErrUnexpectedEOF
  4487. }
  4488. return nil
  4489. }
  4490. func (m *DaemonSetStatus) Unmarshal(dAtA []byte) error {
  4491. l := len(dAtA)
  4492. iNdEx := 0
  4493. for iNdEx < l {
  4494. preIndex := iNdEx
  4495. var wire uint64
  4496. for shift := uint(0); ; shift += 7 {
  4497. if shift >= 64 {
  4498. return ErrIntOverflowGenerated
  4499. }
  4500. if iNdEx >= l {
  4501. return io.ErrUnexpectedEOF
  4502. }
  4503. b := dAtA[iNdEx]
  4504. iNdEx++
  4505. wire |= uint64(b&0x7F) << shift
  4506. if b < 0x80 {
  4507. break
  4508. }
  4509. }
  4510. fieldNum := int32(wire >> 3)
  4511. wireType := int(wire & 0x7)
  4512. if wireType == 4 {
  4513. return fmt.Errorf("proto: DaemonSetStatus: wiretype end group for non-group")
  4514. }
  4515. if fieldNum <= 0 {
  4516. return fmt.Errorf("proto: DaemonSetStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  4517. }
  4518. switch fieldNum {
  4519. case 1:
  4520. if wireType != 0 {
  4521. return fmt.Errorf("proto: wrong wireType = %d for field CurrentNumberScheduled", wireType)
  4522. }
  4523. m.CurrentNumberScheduled = 0
  4524. for shift := uint(0); ; shift += 7 {
  4525. if shift >= 64 {
  4526. return ErrIntOverflowGenerated
  4527. }
  4528. if iNdEx >= l {
  4529. return io.ErrUnexpectedEOF
  4530. }
  4531. b := dAtA[iNdEx]
  4532. iNdEx++
  4533. m.CurrentNumberScheduled |= int32(b&0x7F) << shift
  4534. if b < 0x80 {
  4535. break
  4536. }
  4537. }
  4538. case 2:
  4539. if wireType != 0 {
  4540. return fmt.Errorf("proto: wrong wireType = %d for field NumberMisscheduled", wireType)
  4541. }
  4542. m.NumberMisscheduled = 0
  4543. for shift := uint(0); ; shift += 7 {
  4544. if shift >= 64 {
  4545. return ErrIntOverflowGenerated
  4546. }
  4547. if iNdEx >= l {
  4548. return io.ErrUnexpectedEOF
  4549. }
  4550. b := dAtA[iNdEx]
  4551. iNdEx++
  4552. m.NumberMisscheduled |= int32(b&0x7F) << shift
  4553. if b < 0x80 {
  4554. break
  4555. }
  4556. }
  4557. case 3:
  4558. if wireType != 0 {
  4559. return fmt.Errorf("proto: wrong wireType = %d for field DesiredNumberScheduled", wireType)
  4560. }
  4561. m.DesiredNumberScheduled = 0
  4562. for shift := uint(0); ; shift += 7 {
  4563. if shift >= 64 {
  4564. return ErrIntOverflowGenerated
  4565. }
  4566. if iNdEx >= l {
  4567. return io.ErrUnexpectedEOF
  4568. }
  4569. b := dAtA[iNdEx]
  4570. iNdEx++
  4571. m.DesiredNumberScheduled |= int32(b&0x7F) << shift
  4572. if b < 0x80 {
  4573. break
  4574. }
  4575. }
  4576. case 4:
  4577. if wireType != 0 {
  4578. return fmt.Errorf("proto: wrong wireType = %d for field NumberReady", wireType)
  4579. }
  4580. m.NumberReady = 0
  4581. for shift := uint(0); ; shift += 7 {
  4582. if shift >= 64 {
  4583. return ErrIntOverflowGenerated
  4584. }
  4585. if iNdEx >= l {
  4586. return io.ErrUnexpectedEOF
  4587. }
  4588. b := dAtA[iNdEx]
  4589. iNdEx++
  4590. m.NumberReady |= int32(b&0x7F) << shift
  4591. if b < 0x80 {
  4592. break
  4593. }
  4594. }
  4595. case 5:
  4596. if wireType != 0 {
  4597. return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
  4598. }
  4599. m.ObservedGeneration = 0
  4600. for shift := uint(0); ; shift += 7 {
  4601. if shift >= 64 {
  4602. return ErrIntOverflowGenerated
  4603. }
  4604. if iNdEx >= l {
  4605. return io.ErrUnexpectedEOF
  4606. }
  4607. b := dAtA[iNdEx]
  4608. iNdEx++
  4609. m.ObservedGeneration |= int64(b&0x7F) << shift
  4610. if b < 0x80 {
  4611. break
  4612. }
  4613. }
  4614. case 6:
  4615. if wireType != 0 {
  4616. return fmt.Errorf("proto: wrong wireType = %d for field UpdatedNumberScheduled", wireType)
  4617. }
  4618. m.UpdatedNumberScheduled = 0
  4619. for shift := uint(0); ; shift += 7 {
  4620. if shift >= 64 {
  4621. return ErrIntOverflowGenerated
  4622. }
  4623. if iNdEx >= l {
  4624. return io.ErrUnexpectedEOF
  4625. }
  4626. b := dAtA[iNdEx]
  4627. iNdEx++
  4628. m.UpdatedNumberScheduled |= int32(b&0x7F) << shift
  4629. if b < 0x80 {
  4630. break
  4631. }
  4632. }
  4633. case 7:
  4634. if wireType != 0 {
  4635. return fmt.Errorf("proto: wrong wireType = %d for field NumberAvailable", wireType)
  4636. }
  4637. m.NumberAvailable = 0
  4638. for shift := uint(0); ; shift += 7 {
  4639. if shift >= 64 {
  4640. return ErrIntOverflowGenerated
  4641. }
  4642. if iNdEx >= l {
  4643. return io.ErrUnexpectedEOF
  4644. }
  4645. b := dAtA[iNdEx]
  4646. iNdEx++
  4647. m.NumberAvailable |= int32(b&0x7F) << shift
  4648. if b < 0x80 {
  4649. break
  4650. }
  4651. }
  4652. case 8:
  4653. if wireType != 0 {
  4654. return fmt.Errorf("proto: wrong wireType = %d for field NumberUnavailable", wireType)
  4655. }
  4656. m.NumberUnavailable = 0
  4657. for shift := uint(0); ; shift += 7 {
  4658. if shift >= 64 {
  4659. return ErrIntOverflowGenerated
  4660. }
  4661. if iNdEx >= l {
  4662. return io.ErrUnexpectedEOF
  4663. }
  4664. b := dAtA[iNdEx]
  4665. iNdEx++
  4666. m.NumberUnavailable |= int32(b&0x7F) << shift
  4667. if b < 0x80 {
  4668. break
  4669. }
  4670. }
  4671. case 9:
  4672. if wireType != 0 {
  4673. return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType)
  4674. }
  4675. var v int32
  4676. for shift := uint(0); ; shift += 7 {
  4677. if shift >= 64 {
  4678. return ErrIntOverflowGenerated
  4679. }
  4680. if iNdEx >= l {
  4681. return io.ErrUnexpectedEOF
  4682. }
  4683. b := dAtA[iNdEx]
  4684. iNdEx++
  4685. v |= int32(b&0x7F) << shift
  4686. if b < 0x80 {
  4687. break
  4688. }
  4689. }
  4690. m.CollisionCount = &v
  4691. case 10:
  4692. if wireType != 2 {
  4693. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  4694. }
  4695. var msglen int
  4696. for shift := uint(0); ; shift += 7 {
  4697. if shift >= 64 {
  4698. return ErrIntOverflowGenerated
  4699. }
  4700. if iNdEx >= l {
  4701. return io.ErrUnexpectedEOF
  4702. }
  4703. b := dAtA[iNdEx]
  4704. iNdEx++
  4705. msglen |= int(b&0x7F) << shift
  4706. if b < 0x80 {
  4707. break
  4708. }
  4709. }
  4710. if msglen < 0 {
  4711. return ErrInvalidLengthGenerated
  4712. }
  4713. postIndex := iNdEx + msglen
  4714. if postIndex < 0 {
  4715. return ErrInvalidLengthGenerated
  4716. }
  4717. if postIndex > l {
  4718. return io.ErrUnexpectedEOF
  4719. }
  4720. m.Conditions = append(m.Conditions, DaemonSetCondition{})
  4721. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4722. return err
  4723. }
  4724. iNdEx = postIndex
  4725. default:
  4726. iNdEx = preIndex
  4727. skippy, err := skipGenerated(dAtA[iNdEx:])
  4728. if err != nil {
  4729. return err
  4730. }
  4731. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4732. return ErrInvalidLengthGenerated
  4733. }
  4734. if (iNdEx + skippy) > l {
  4735. return io.ErrUnexpectedEOF
  4736. }
  4737. iNdEx += skippy
  4738. }
  4739. }
  4740. if iNdEx > l {
  4741. return io.ErrUnexpectedEOF
  4742. }
  4743. return nil
  4744. }
  4745. func (m *DaemonSetUpdateStrategy) Unmarshal(dAtA []byte) error {
  4746. l := len(dAtA)
  4747. iNdEx := 0
  4748. for iNdEx < l {
  4749. preIndex := iNdEx
  4750. var wire uint64
  4751. for shift := uint(0); ; shift += 7 {
  4752. if shift >= 64 {
  4753. return ErrIntOverflowGenerated
  4754. }
  4755. if iNdEx >= l {
  4756. return io.ErrUnexpectedEOF
  4757. }
  4758. b := dAtA[iNdEx]
  4759. iNdEx++
  4760. wire |= uint64(b&0x7F) << shift
  4761. if b < 0x80 {
  4762. break
  4763. }
  4764. }
  4765. fieldNum := int32(wire >> 3)
  4766. wireType := int(wire & 0x7)
  4767. if wireType == 4 {
  4768. return fmt.Errorf("proto: DaemonSetUpdateStrategy: wiretype end group for non-group")
  4769. }
  4770. if fieldNum <= 0 {
  4771. return fmt.Errorf("proto: DaemonSetUpdateStrategy: illegal tag %d (wire type %d)", fieldNum, wire)
  4772. }
  4773. switch fieldNum {
  4774. case 1:
  4775. if wireType != 2 {
  4776. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  4777. }
  4778. var stringLen uint64
  4779. for shift := uint(0); ; shift += 7 {
  4780. if shift >= 64 {
  4781. return ErrIntOverflowGenerated
  4782. }
  4783. if iNdEx >= l {
  4784. return io.ErrUnexpectedEOF
  4785. }
  4786. b := dAtA[iNdEx]
  4787. iNdEx++
  4788. stringLen |= uint64(b&0x7F) << shift
  4789. if b < 0x80 {
  4790. break
  4791. }
  4792. }
  4793. intStringLen := int(stringLen)
  4794. if intStringLen < 0 {
  4795. return ErrInvalidLengthGenerated
  4796. }
  4797. postIndex := iNdEx + intStringLen
  4798. if postIndex < 0 {
  4799. return ErrInvalidLengthGenerated
  4800. }
  4801. if postIndex > l {
  4802. return io.ErrUnexpectedEOF
  4803. }
  4804. m.Type = DaemonSetUpdateStrategyType(dAtA[iNdEx:postIndex])
  4805. iNdEx = postIndex
  4806. case 2:
  4807. if wireType != 2 {
  4808. return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType)
  4809. }
  4810. var msglen int
  4811. for shift := uint(0); ; shift += 7 {
  4812. if shift >= 64 {
  4813. return ErrIntOverflowGenerated
  4814. }
  4815. if iNdEx >= l {
  4816. return io.ErrUnexpectedEOF
  4817. }
  4818. b := dAtA[iNdEx]
  4819. iNdEx++
  4820. msglen |= int(b&0x7F) << shift
  4821. if b < 0x80 {
  4822. break
  4823. }
  4824. }
  4825. if msglen < 0 {
  4826. return ErrInvalidLengthGenerated
  4827. }
  4828. postIndex := iNdEx + msglen
  4829. if postIndex < 0 {
  4830. return ErrInvalidLengthGenerated
  4831. }
  4832. if postIndex > l {
  4833. return io.ErrUnexpectedEOF
  4834. }
  4835. if m.RollingUpdate == nil {
  4836. m.RollingUpdate = &RollingUpdateDaemonSet{}
  4837. }
  4838. if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4839. return err
  4840. }
  4841. iNdEx = postIndex
  4842. default:
  4843. iNdEx = preIndex
  4844. skippy, err := skipGenerated(dAtA[iNdEx:])
  4845. if err != nil {
  4846. return err
  4847. }
  4848. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4849. return ErrInvalidLengthGenerated
  4850. }
  4851. if (iNdEx + skippy) > l {
  4852. return io.ErrUnexpectedEOF
  4853. }
  4854. iNdEx += skippy
  4855. }
  4856. }
  4857. if iNdEx > l {
  4858. return io.ErrUnexpectedEOF
  4859. }
  4860. return nil
  4861. }
  4862. func (m *Deployment) Unmarshal(dAtA []byte) error {
  4863. l := len(dAtA)
  4864. iNdEx := 0
  4865. for iNdEx < l {
  4866. preIndex := iNdEx
  4867. var wire uint64
  4868. for shift := uint(0); ; shift += 7 {
  4869. if shift >= 64 {
  4870. return ErrIntOverflowGenerated
  4871. }
  4872. if iNdEx >= l {
  4873. return io.ErrUnexpectedEOF
  4874. }
  4875. b := dAtA[iNdEx]
  4876. iNdEx++
  4877. wire |= uint64(b&0x7F) << shift
  4878. if b < 0x80 {
  4879. break
  4880. }
  4881. }
  4882. fieldNum := int32(wire >> 3)
  4883. wireType := int(wire & 0x7)
  4884. if wireType == 4 {
  4885. return fmt.Errorf("proto: Deployment: wiretype end group for non-group")
  4886. }
  4887. if fieldNum <= 0 {
  4888. return fmt.Errorf("proto: Deployment: illegal tag %d (wire type %d)", fieldNum, wire)
  4889. }
  4890. switch fieldNum {
  4891. case 1:
  4892. if wireType != 2 {
  4893. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  4894. }
  4895. var msglen int
  4896. for shift := uint(0); ; shift += 7 {
  4897. if shift >= 64 {
  4898. return ErrIntOverflowGenerated
  4899. }
  4900. if iNdEx >= l {
  4901. return io.ErrUnexpectedEOF
  4902. }
  4903. b := dAtA[iNdEx]
  4904. iNdEx++
  4905. msglen |= int(b&0x7F) << shift
  4906. if b < 0x80 {
  4907. break
  4908. }
  4909. }
  4910. if msglen < 0 {
  4911. return ErrInvalidLengthGenerated
  4912. }
  4913. postIndex := iNdEx + msglen
  4914. if postIndex < 0 {
  4915. return ErrInvalidLengthGenerated
  4916. }
  4917. if postIndex > l {
  4918. return io.ErrUnexpectedEOF
  4919. }
  4920. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4921. return err
  4922. }
  4923. iNdEx = postIndex
  4924. case 2:
  4925. if wireType != 2 {
  4926. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  4927. }
  4928. var msglen int
  4929. for shift := uint(0); ; shift += 7 {
  4930. if shift >= 64 {
  4931. return ErrIntOverflowGenerated
  4932. }
  4933. if iNdEx >= l {
  4934. return io.ErrUnexpectedEOF
  4935. }
  4936. b := dAtA[iNdEx]
  4937. iNdEx++
  4938. msglen |= int(b&0x7F) << shift
  4939. if b < 0x80 {
  4940. break
  4941. }
  4942. }
  4943. if msglen < 0 {
  4944. return ErrInvalidLengthGenerated
  4945. }
  4946. postIndex := iNdEx + msglen
  4947. if postIndex < 0 {
  4948. return ErrInvalidLengthGenerated
  4949. }
  4950. if postIndex > l {
  4951. return io.ErrUnexpectedEOF
  4952. }
  4953. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4954. return err
  4955. }
  4956. iNdEx = postIndex
  4957. case 3:
  4958. if wireType != 2 {
  4959. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  4960. }
  4961. var msglen int
  4962. for shift := uint(0); ; shift += 7 {
  4963. if shift >= 64 {
  4964. return ErrIntOverflowGenerated
  4965. }
  4966. if iNdEx >= l {
  4967. return io.ErrUnexpectedEOF
  4968. }
  4969. b := dAtA[iNdEx]
  4970. iNdEx++
  4971. msglen |= int(b&0x7F) << shift
  4972. if b < 0x80 {
  4973. break
  4974. }
  4975. }
  4976. if msglen < 0 {
  4977. return ErrInvalidLengthGenerated
  4978. }
  4979. postIndex := iNdEx + msglen
  4980. if postIndex < 0 {
  4981. return ErrInvalidLengthGenerated
  4982. }
  4983. if postIndex > l {
  4984. return io.ErrUnexpectedEOF
  4985. }
  4986. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4987. return err
  4988. }
  4989. iNdEx = postIndex
  4990. default:
  4991. iNdEx = preIndex
  4992. skippy, err := skipGenerated(dAtA[iNdEx:])
  4993. if err != nil {
  4994. return err
  4995. }
  4996. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4997. return ErrInvalidLengthGenerated
  4998. }
  4999. if (iNdEx + skippy) > l {
  5000. return io.ErrUnexpectedEOF
  5001. }
  5002. iNdEx += skippy
  5003. }
  5004. }
  5005. if iNdEx > l {
  5006. return io.ErrUnexpectedEOF
  5007. }
  5008. return nil
  5009. }
  5010. func (m *DeploymentCondition) Unmarshal(dAtA []byte) error {
  5011. l := len(dAtA)
  5012. iNdEx := 0
  5013. for iNdEx < l {
  5014. preIndex := iNdEx
  5015. var wire uint64
  5016. for shift := uint(0); ; shift += 7 {
  5017. if shift >= 64 {
  5018. return ErrIntOverflowGenerated
  5019. }
  5020. if iNdEx >= l {
  5021. return io.ErrUnexpectedEOF
  5022. }
  5023. b := dAtA[iNdEx]
  5024. iNdEx++
  5025. wire |= uint64(b&0x7F) << shift
  5026. if b < 0x80 {
  5027. break
  5028. }
  5029. }
  5030. fieldNum := int32(wire >> 3)
  5031. wireType := int(wire & 0x7)
  5032. if wireType == 4 {
  5033. return fmt.Errorf("proto: DeploymentCondition: wiretype end group for non-group")
  5034. }
  5035. if fieldNum <= 0 {
  5036. return fmt.Errorf("proto: DeploymentCondition: illegal tag %d (wire type %d)", fieldNum, wire)
  5037. }
  5038. switch fieldNum {
  5039. case 1:
  5040. if wireType != 2 {
  5041. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  5042. }
  5043. var stringLen uint64
  5044. for shift := uint(0); ; shift += 7 {
  5045. if shift >= 64 {
  5046. return ErrIntOverflowGenerated
  5047. }
  5048. if iNdEx >= l {
  5049. return io.ErrUnexpectedEOF
  5050. }
  5051. b := dAtA[iNdEx]
  5052. iNdEx++
  5053. stringLen |= uint64(b&0x7F) << shift
  5054. if b < 0x80 {
  5055. break
  5056. }
  5057. }
  5058. intStringLen := int(stringLen)
  5059. if intStringLen < 0 {
  5060. return ErrInvalidLengthGenerated
  5061. }
  5062. postIndex := iNdEx + intStringLen
  5063. if postIndex < 0 {
  5064. return ErrInvalidLengthGenerated
  5065. }
  5066. if postIndex > l {
  5067. return io.ErrUnexpectedEOF
  5068. }
  5069. m.Type = DeploymentConditionType(dAtA[iNdEx:postIndex])
  5070. iNdEx = postIndex
  5071. case 2:
  5072. if wireType != 2 {
  5073. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  5074. }
  5075. var stringLen uint64
  5076. for shift := uint(0); ; shift += 7 {
  5077. if shift >= 64 {
  5078. return ErrIntOverflowGenerated
  5079. }
  5080. if iNdEx >= l {
  5081. return io.ErrUnexpectedEOF
  5082. }
  5083. b := dAtA[iNdEx]
  5084. iNdEx++
  5085. stringLen |= uint64(b&0x7F) << shift
  5086. if b < 0x80 {
  5087. break
  5088. }
  5089. }
  5090. intStringLen := int(stringLen)
  5091. if intStringLen < 0 {
  5092. return ErrInvalidLengthGenerated
  5093. }
  5094. postIndex := iNdEx + intStringLen
  5095. if postIndex < 0 {
  5096. return ErrInvalidLengthGenerated
  5097. }
  5098. if postIndex > l {
  5099. return io.ErrUnexpectedEOF
  5100. }
  5101. m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex])
  5102. iNdEx = postIndex
  5103. case 4:
  5104. if wireType != 2 {
  5105. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  5106. }
  5107. var stringLen uint64
  5108. for shift := uint(0); ; shift += 7 {
  5109. if shift >= 64 {
  5110. return ErrIntOverflowGenerated
  5111. }
  5112. if iNdEx >= l {
  5113. return io.ErrUnexpectedEOF
  5114. }
  5115. b := dAtA[iNdEx]
  5116. iNdEx++
  5117. stringLen |= uint64(b&0x7F) << shift
  5118. if b < 0x80 {
  5119. break
  5120. }
  5121. }
  5122. intStringLen := int(stringLen)
  5123. if intStringLen < 0 {
  5124. return ErrInvalidLengthGenerated
  5125. }
  5126. postIndex := iNdEx + intStringLen
  5127. if postIndex < 0 {
  5128. return ErrInvalidLengthGenerated
  5129. }
  5130. if postIndex > l {
  5131. return io.ErrUnexpectedEOF
  5132. }
  5133. m.Reason = string(dAtA[iNdEx:postIndex])
  5134. iNdEx = postIndex
  5135. case 5:
  5136. if wireType != 2 {
  5137. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  5138. }
  5139. var stringLen uint64
  5140. for shift := uint(0); ; shift += 7 {
  5141. if shift >= 64 {
  5142. return ErrIntOverflowGenerated
  5143. }
  5144. if iNdEx >= l {
  5145. return io.ErrUnexpectedEOF
  5146. }
  5147. b := dAtA[iNdEx]
  5148. iNdEx++
  5149. stringLen |= uint64(b&0x7F) << shift
  5150. if b < 0x80 {
  5151. break
  5152. }
  5153. }
  5154. intStringLen := int(stringLen)
  5155. if intStringLen < 0 {
  5156. return ErrInvalidLengthGenerated
  5157. }
  5158. postIndex := iNdEx + intStringLen
  5159. if postIndex < 0 {
  5160. return ErrInvalidLengthGenerated
  5161. }
  5162. if postIndex > l {
  5163. return io.ErrUnexpectedEOF
  5164. }
  5165. m.Message = string(dAtA[iNdEx:postIndex])
  5166. iNdEx = postIndex
  5167. case 6:
  5168. if wireType != 2 {
  5169. return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType)
  5170. }
  5171. var msglen int
  5172. for shift := uint(0); ; shift += 7 {
  5173. if shift >= 64 {
  5174. return ErrIntOverflowGenerated
  5175. }
  5176. if iNdEx >= l {
  5177. return io.ErrUnexpectedEOF
  5178. }
  5179. b := dAtA[iNdEx]
  5180. iNdEx++
  5181. msglen |= int(b&0x7F) << shift
  5182. if b < 0x80 {
  5183. break
  5184. }
  5185. }
  5186. if msglen < 0 {
  5187. return ErrInvalidLengthGenerated
  5188. }
  5189. postIndex := iNdEx + msglen
  5190. if postIndex < 0 {
  5191. return ErrInvalidLengthGenerated
  5192. }
  5193. if postIndex > l {
  5194. return io.ErrUnexpectedEOF
  5195. }
  5196. if err := m.LastUpdateTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5197. return err
  5198. }
  5199. iNdEx = postIndex
  5200. case 7:
  5201. if wireType != 2 {
  5202. return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
  5203. }
  5204. var msglen int
  5205. for shift := uint(0); ; shift += 7 {
  5206. if shift >= 64 {
  5207. return ErrIntOverflowGenerated
  5208. }
  5209. if iNdEx >= l {
  5210. return io.ErrUnexpectedEOF
  5211. }
  5212. b := dAtA[iNdEx]
  5213. iNdEx++
  5214. msglen |= int(b&0x7F) << shift
  5215. if b < 0x80 {
  5216. break
  5217. }
  5218. }
  5219. if msglen < 0 {
  5220. return ErrInvalidLengthGenerated
  5221. }
  5222. postIndex := iNdEx + msglen
  5223. if postIndex < 0 {
  5224. return ErrInvalidLengthGenerated
  5225. }
  5226. if postIndex > l {
  5227. return io.ErrUnexpectedEOF
  5228. }
  5229. if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5230. return err
  5231. }
  5232. iNdEx = postIndex
  5233. default:
  5234. iNdEx = preIndex
  5235. skippy, err := skipGenerated(dAtA[iNdEx:])
  5236. if err != nil {
  5237. return err
  5238. }
  5239. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5240. return ErrInvalidLengthGenerated
  5241. }
  5242. if (iNdEx + skippy) > l {
  5243. return io.ErrUnexpectedEOF
  5244. }
  5245. iNdEx += skippy
  5246. }
  5247. }
  5248. if iNdEx > l {
  5249. return io.ErrUnexpectedEOF
  5250. }
  5251. return nil
  5252. }
  5253. func (m *DeploymentList) Unmarshal(dAtA []byte) error {
  5254. l := len(dAtA)
  5255. iNdEx := 0
  5256. for iNdEx < l {
  5257. preIndex := iNdEx
  5258. var wire uint64
  5259. for shift := uint(0); ; shift += 7 {
  5260. if shift >= 64 {
  5261. return ErrIntOverflowGenerated
  5262. }
  5263. if iNdEx >= l {
  5264. return io.ErrUnexpectedEOF
  5265. }
  5266. b := dAtA[iNdEx]
  5267. iNdEx++
  5268. wire |= uint64(b&0x7F) << shift
  5269. if b < 0x80 {
  5270. break
  5271. }
  5272. }
  5273. fieldNum := int32(wire >> 3)
  5274. wireType := int(wire & 0x7)
  5275. if wireType == 4 {
  5276. return fmt.Errorf("proto: DeploymentList: wiretype end group for non-group")
  5277. }
  5278. if fieldNum <= 0 {
  5279. return fmt.Errorf("proto: DeploymentList: illegal tag %d (wire type %d)", fieldNum, wire)
  5280. }
  5281. switch fieldNum {
  5282. case 1:
  5283. if wireType != 2 {
  5284. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  5285. }
  5286. var msglen int
  5287. for shift := uint(0); ; shift += 7 {
  5288. if shift >= 64 {
  5289. return ErrIntOverflowGenerated
  5290. }
  5291. if iNdEx >= l {
  5292. return io.ErrUnexpectedEOF
  5293. }
  5294. b := dAtA[iNdEx]
  5295. iNdEx++
  5296. msglen |= int(b&0x7F) << shift
  5297. if b < 0x80 {
  5298. break
  5299. }
  5300. }
  5301. if msglen < 0 {
  5302. return ErrInvalidLengthGenerated
  5303. }
  5304. postIndex := iNdEx + msglen
  5305. if postIndex < 0 {
  5306. return ErrInvalidLengthGenerated
  5307. }
  5308. if postIndex > l {
  5309. return io.ErrUnexpectedEOF
  5310. }
  5311. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5312. return err
  5313. }
  5314. iNdEx = postIndex
  5315. case 2:
  5316. if wireType != 2 {
  5317. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  5318. }
  5319. var msglen int
  5320. for shift := uint(0); ; shift += 7 {
  5321. if shift >= 64 {
  5322. return ErrIntOverflowGenerated
  5323. }
  5324. if iNdEx >= l {
  5325. return io.ErrUnexpectedEOF
  5326. }
  5327. b := dAtA[iNdEx]
  5328. iNdEx++
  5329. msglen |= int(b&0x7F) << shift
  5330. if b < 0x80 {
  5331. break
  5332. }
  5333. }
  5334. if msglen < 0 {
  5335. return ErrInvalidLengthGenerated
  5336. }
  5337. postIndex := iNdEx + msglen
  5338. if postIndex < 0 {
  5339. return ErrInvalidLengthGenerated
  5340. }
  5341. if postIndex > l {
  5342. return io.ErrUnexpectedEOF
  5343. }
  5344. m.Items = append(m.Items, Deployment{})
  5345. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5346. return err
  5347. }
  5348. iNdEx = postIndex
  5349. default:
  5350. iNdEx = preIndex
  5351. skippy, err := skipGenerated(dAtA[iNdEx:])
  5352. if err != nil {
  5353. return err
  5354. }
  5355. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5356. return ErrInvalidLengthGenerated
  5357. }
  5358. if (iNdEx + skippy) > l {
  5359. return io.ErrUnexpectedEOF
  5360. }
  5361. iNdEx += skippy
  5362. }
  5363. }
  5364. if iNdEx > l {
  5365. return io.ErrUnexpectedEOF
  5366. }
  5367. return nil
  5368. }
  5369. func (m *DeploymentSpec) Unmarshal(dAtA []byte) error {
  5370. l := len(dAtA)
  5371. iNdEx := 0
  5372. for iNdEx < l {
  5373. preIndex := iNdEx
  5374. var wire uint64
  5375. for shift := uint(0); ; shift += 7 {
  5376. if shift >= 64 {
  5377. return ErrIntOverflowGenerated
  5378. }
  5379. if iNdEx >= l {
  5380. return io.ErrUnexpectedEOF
  5381. }
  5382. b := dAtA[iNdEx]
  5383. iNdEx++
  5384. wire |= uint64(b&0x7F) << shift
  5385. if b < 0x80 {
  5386. break
  5387. }
  5388. }
  5389. fieldNum := int32(wire >> 3)
  5390. wireType := int(wire & 0x7)
  5391. if wireType == 4 {
  5392. return fmt.Errorf("proto: DeploymentSpec: wiretype end group for non-group")
  5393. }
  5394. if fieldNum <= 0 {
  5395. return fmt.Errorf("proto: DeploymentSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  5396. }
  5397. switch fieldNum {
  5398. case 1:
  5399. if wireType != 0 {
  5400. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  5401. }
  5402. var v int32
  5403. for shift := uint(0); ; shift += 7 {
  5404. if shift >= 64 {
  5405. return ErrIntOverflowGenerated
  5406. }
  5407. if iNdEx >= l {
  5408. return io.ErrUnexpectedEOF
  5409. }
  5410. b := dAtA[iNdEx]
  5411. iNdEx++
  5412. v |= int32(b&0x7F) << shift
  5413. if b < 0x80 {
  5414. break
  5415. }
  5416. }
  5417. m.Replicas = &v
  5418. case 2:
  5419. if wireType != 2 {
  5420. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  5421. }
  5422. var msglen int
  5423. for shift := uint(0); ; shift += 7 {
  5424. if shift >= 64 {
  5425. return ErrIntOverflowGenerated
  5426. }
  5427. if iNdEx >= l {
  5428. return io.ErrUnexpectedEOF
  5429. }
  5430. b := dAtA[iNdEx]
  5431. iNdEx++
  5432. msglen |= int(b&0x7F) << shift
  5433. if b < 0x80 {
  5434. break
  5435. }
  5436. }
  5437. if msglen < 0 {
  5438. return ErrInvalidLengthGenerated
  5439. }
  5440. postIndex := iNdEx + msglen
  5441. if postIndex < 0 {
  5442. return ErrInvalidLengthGenerated
  5443. }
  5444. if postIndex > l {
  5445. return io.ErrUnexpectedEOF
  5446. }
  5447. if m.Selector == nil {
  5448. m.Selector = &v1.LabelSelector{}
  5449. }
  5450. if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5451. return err
  5452. }
  5453. iNdEx = postIndex
  5454. case 3:
  5455. if wireType != 2 {
  5456. return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
  5457. }
  5458. var msglen int
  5459. for shift := uint(0); ; shift += 7 {
  5460. if shift >= 64 {
  5461. return ErrIntOverflowGenerated
  5462. }
  5463. if iNdEx >= l {
  5464. return io.ErrUnexpectedEOF
  5465. }
  5466. b := dAtA[iNdEx]
  5467. iNdEx++
  5468. msglen |= int(b&0x7F) << shift
  5469. if b < 0x80 {
  5470. break
  5471. }
  5472. }
  5473. if msglen < 0 {
  5474. return ErrInvalidLengthGenerated
  5475. }
  5476. postIndex := iNdEx + msglen
  5477. if postIndex < 0 {
  5478. return ErrInvalidLengthGenerated
  5479. }
  5480. if postIndex > l {
  5481. return io.ErrUnexpectedEOF
  5482. }
  5483. if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5484. return err
  5485. }
  5486. iNdEx = postIndex
  5487. case 4:
  5488. if wireType != 2 {
  5489. return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType)
  5490. }
  5491. var msglen int
  5492. for shift := uint(0); ; shift += 7 {
  5493. if shift >= 64 {
  5494. return ErrIntOverflowGenerated
  5495. }
  5496. if iNdEx >= l {
  5497. return io.ErrUnexpectedEOF
  5498. }
  5499. b := dAtA[iNdEx]
  5500. iNdEx++
  5501. msglen |= int(b&0x7F) << shift
  5502. if b < 0x80 {
  5503. break
  5504. }
  5505. }
  5506. if msglen < 0 {
  5507. return ErrInvalidLengthGenerated
  5508. }
  5509. postIndex := iNdEx + msglen
  5510. if postIndex < 0 {
  5511. return ErrInvalidLengthGenerated
  5512. }
  5513. if postIndex > l {
  5514. return io.ErrUnexpectedEOF
  5515. }
  5516. if err := m.Strategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5517. return err
  5518. }
  5519. iNdEx = postIndex
  5520. case 5:
  5521. if wireType != 0 {
  5522. return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType)
  5523. }
  5524. m.MinReadySeconds = 0
  5525. for shift := uint(0); ; shift += 7 {
  5526. if shift >= 64 {
  5527. return ErrIntOverflowGenerated
  5528. }
  5529. if iNdEx >= l {
  5530. return io.ErrUnexpectedEOF
  5531. }
  5532. b := dAtA[iNdEx]
  5533. iNdEx++
  5534. m.MinReadySeconds |= int32(b&0x7F) << shift
  5535. if b < 0x80 {
  5536. break
  5537. }
  5538. }
  5539. case 6:
  5540. if wireType != 0 {
  5541. return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType)
  5542. }
  5543. var v int32
  5544. for shift := uint(0); ; shift += 7 {
  5545. if shift >= 64 {
  5546. return ErrIntOverflowGenerated
  5547. }
  5548. if iNdEx >= l {
  5549. return io.ErrUnexpectedEOF
  5550. }
  5551. b := dAtA[iNdEx]
  5552. iNdEx++
  5553. v |= int32(b&0x7F) << shift
  5554. if b < 0x80 {
  5555. break
  5556. }
  5557. }
  5558. m.RevisionHistoryLimit = &v
  5559. case 7:
  5560. if wireType != 0 {
  5561. return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType)
  5562. }
  5563. var v int
  5564. for shift := uint(0); ; shift += 7 {
  5565. if shift >= 64 {
  5566. return ErrIntOverflowGenerated
  5567. }
  5568. if iNdEx >= l {
  5569. return io.ErrUnexpectedEOF
  5570. }
  5571. b := dAtA[iNdEx]
  5572. iNdEx++
  5573. v |= int(b&0x7F) << shift
  5574. if b < 0x80 {
  5575. break
  5576. }
  5577. }
  5578. m.Paused = bool(v != 0)
  5579. case 9:
  5580. if wireType != 0 {
  5581. return fmt.Errorf("proto: wrong wireType = %d for field ProgressDeadlineSeconds", wireType)
  5582. }
  5583. var v int32
  5584. for shift := uint(0); ; shift += 7 {
  5585. if shift >= 64 {
  5586. return ErrIntOverflowGenerated
  5587. }
  5588. if iNdEx >= l {
  5589. return io.ErrUnexpectedEOF
  5590. }
  5591. b := dAtA[iNdEx]
  5592. iNdEx++
  5593. v |= int32(b&0x7F) << shift
  5594. if b < 0x80 {
  5595. break
  5596. }
  5597. }
  5598. m.ProgressDeadlineSeconds = &v
  5599. default:
  5600. iNdEx = preIndex
  5601. skippy, err := skipGenerated(dAtA[iNdEx:])
  5602. if err != nil {
  5603. return err
  5604. }
  5605. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5606. return ErrInvalidLengthGenerated
  5607. }
  5608. if (iNdEx + skippy) > l {
  5609. return io.ErrUnexpectedEOF
  5610. }
  5611. iNdEx += skippy
  5612. }
  5613. }
  5614. if iNdEx > l {
  5615. return io.ErrUnexpectedEOF
  5616. }
  5617. return nil
  5618. }
  5619. func (m *DeploymentStatus) Unmarshal(dAtA []byte) error {
  5620. l := len(dAtA)
  5621. iNdEx := 0
  5622. for iNdEx < l {
  5623. preIndex := iNdEx
  5624. var wire uint64
  5625. for shift := uint(0); ; shift += 7 {
  5626. if shift >= 64 {
  5627. return ErrIntOverflowGenerated
  5628. }
  5629. if iNdEx >= l {
  5630. return io.ErrUnexpectedEOF
  5631. }
  5632. b := dAtA[iNdEx]
  5633. iNdEx++
  5634. wire |= uint64(b&0x7F) << shift
  5635. if b < 0x80 {
  5636. break
  5637. }
  5638. }
  5639. fieldNum := int32(wire >> 3)
  5640. wireType := int(wire & 0x7)
  5641. if wireType == 4 {
  5642. return fmt.Errorf("proto: DeploymentStatus: wiretype end group for non-group")
  5643. }
  5644. if fieldNum <= 0 {
  5645. return fmt.Errorf("proto: DeploymentStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  5646. }
  5647. switch fieldNum {
  5648. case 1:
  5649. if wireType != 0 {
  5650. return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
  5651. }
  5652. m.ObservedGeneration = 0
  5653. for shift := uint(0); ; shift += 7 {
  5654. if shift >= 64 {
  5655. return ErrIntOverflowGenerated
  5656. }
  5657. if iNdEx >= l {
  5658. return io.ErrUnexpectedEOF
  5659. }
  5660. b := dAtA[iNdEx]
  5661. iNdEx++
  5662. m.ObservedGeneration |= int64(b&0x7F) << shift
  5663. if b < 0x80 {
  5664. break
  5665. }
  5666. }
  5667. case 2:
  5668. if wireType != 0 {
  5669. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  5670. }
  5671. m.Replicas = 0
  5672. for shift := uint(0); ; shift += 7 {
  5673. if shift >= 64 {
  5674. return ErrIntOverflowGenerated
  5675. }
  5676. if iNdEx >= l {
  5677. return io.ErrUnexpectedEOF
  5678. }
  5679. b := dAtA[iNdEx]
  5680. iNdEx++
  5681. m.Replicas |= int32(b&0x7F) << shift
  5682. if b < 0x80 {
  5683. break
  5684. }
  5685. }
  5686. case 3:
  5687. if wireType != 0 {
  5688. return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType)
  5689. }
  5690. m.UpdatedReplicas = 0
  5691. for shift := uint(0); ; shift += 7 {
  5692. if shift >= 64 {
  5693. return ErrIntOverflowGenerated
  5694. }
  5695. if iNdEx >= l {
  5696. return io.ErrUnexpectedEOF
  5697. }
  5698. b := dAtA[iNdEx]
  5699. iNdEx++
  5700. m.UpdatedReplicas |= int32(b&0x7F) << shift
  5701. if b < 0x80 {
  5702. break
  5703. }
  5704. }
  5705. case 4:
  5706. if wireType != 0 {
  5707. return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType)
  5708. }
  5709. m.AvailableReplicas = 0
  5710. for shift := uint(0); ; shift += 7 {
  5711. if shift >= 64 {
  5712. return ErrIntOverflowGenerated
  5713. }
  5714. if iNdEx >= l {
  5715. return io.ErrUnexpectedEOF
  5716. }
  5717. b := dAtA[iNdEx]
  5718. iNdEx++
  5719. m.AvailableReplicas |= int32(b&0x7F) << shift
  5720. if b < 0x80 {
  5721. break
  5722. }
  5723. }
  5724. case 5:
  5725. if wireType != 0 {
  5726. return fmt.Errorf("proto: wrong wireType = %d for field UnavailableReplicas", wireType)
  5727. }
  5728. m.UnavailableReplicas = 0
  5729. for shift := uint(0); ; shift += 7 {
  5730. if shift >= 64 {
  5731. return ErrIntOverflowGenerated
  5732. }
  5733. if iNdEx >= l {
  5734. return io.ErrUnexpectedEOF
  5735. }
  5736. b := dAtA[iNdEx]
  5737. iNdEx++
  5738. m.UnavailableReplicas |= int32(b&0x7F) << shift
  5739. if b < 0x80 {
  5740. break
  5741. }
  5742. }
  5743. case 6:
  5744. if wireType != 2 {
  5745. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  5746. }
  5747. var msglen int
  5748. for shift := uint(0); ; shift += 7 {
  5749. if shift >= 64 {
  5750. return ErrIntOverflowGenerated
  5751. }
  5752. if iNdEx >= l {
  5753. return io.ErrUnexpectedEOF
  5754. }
  5755. b := dAtA[iNdEx]
  5756. iNdEx++
  5757. msglen |= int(b&0x7F) << shift
  5758. if b < 0x80 {
  5759. break
  5760. }
  5761. }
  5762. if msglen < 0 {
  5763. return ErrInvalidLengthGenerated
  5764. }
  5765. postIndex := iNdEx + msglen
  5766. if postIndex < 0 {
  5767. return ErrInvalidLengthGenerated
  5768. }
  5769. if postIndex > l {
  5770. return io.ErrUnexpectedEOF
  5771. }
  5772. m.Conditions = append(m.Conditions, DeploymentCondition{})
  5773. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5774. return err
  5775. }
  5776. iNdEx = postIndex
  5777. case 7:
  5778. if wireType != 0 {
  5779. return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType)
  5780. }
  5781. m.ReadyReplicas = 0
  5782. for shift := uint(0); ; shift += 7 {
  5783. if shift >= 64 {
  5784. return ErrIntOverflowGenerated
  5785. }
  5786. if iNdEx >= l {
  5787. return io.ErrUnexpectedEOF
  5788. }
  5789. b := dAtA[iNdEx]
  5790. iNdEx++
  5791. m.ReadyReplicas |= int32(b&0x7F) << shift
  5792. if b < 0x80 {
  5793. break
  5794. }
  5795. }
  5796. case 8:
  5797. if wireType != 0 {
  5798. return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType)
  5799. }
  5800. var v int32
  5801. for shift := uint(0); ; shift += 7 {
  5802. if shift >= 64 {
  5803. return ErrIntOverflowGenerated
  5804. }
  5805. if iNdEx >= l {
  5806. return io.ErrUnexpectedEOF
  5807. }
  5808. b := dAtA[iNdEx]
  5809. iNdEx++
  5810. v |= int32(b&0x7F) << shift
  5811. if b < 0x80 {
  5812. break
  5813. }
  5814. }
  5815. m.CollisionCount = &v
  5816. default:
  5817. iNdEx = preIndex
  5818. skippy, err := skipGenerated(dAtA[iNdEx:])
  5819. if err != nil {
  5820. return err
  5821. }
  5822. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5823. return ErrInvalidLengthGenerated
  5824. }
  5825. if (iNdEx + skippy) > l {
  5826. return io.ErrUnexpectedEOF
  5827. }
  5828. iNdEx += skippy
  5829. }
  5830. }
  5831. if iNdEx > l {
  5832. return io.ErrUnexpectedEOF
  5833. }
  5834. return nil
  5835. }
  5836. func (m *DeploymentStrategy) Unmarshal(dAtA []byte) error {
  5837. l := len(dAtA)
  5838. iNdEx := 0
  5839. for iNdEx < l {
  5840. preIndex := iNdEx
  5841. var wire uint64
  5842. for shift := uint(0); ; shift += 7 {
  5843. if shift >= 64 {
  5844. return ErrIntOverflowGenerated
  5845. }
  5846. if iNdEx >= l {
  5847. return io.ErrUnexpectedEOF
  5848. }
  5849. b := dAtA[iNdEx]
  5850. iNdEx++
  5851. wire |= uint64(b&0x7F) << shift
  5852. if b < 0x80 {
  5853. break
  5854. }
  5855. }
  5856. fieldNum := int32(wire >> 3)
  5857. wireType := int(wire & 0x7)
  5858. if wireType == 4 {
  5859. return fmt.Errorf("proto: DeploymentStrategy: wiretype end group for non-group")
  5860. }
  5861. if fieldNum <= 0 {
  5862. return fmt.Errorf("proto: DeploymentStrategy: illegal tag %d (wire type %d)", fieldNum, wire)
  5863. }
  5864. switch fieldNum {
  5865. case 1:
  5866. if wireType != 2 {
  5867. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  5868. }
  5869. var stringLen uint64
  5870. for shift := uint(0); ; shift += 7 {
  5871. if shift >= 64 {
  5872. return ErrIntOverflowGenerated
  5873. }
  5874. if iNdEx >= l {
  5875. return io.ErrUnexpectedEOF
  5876. }
  5877. b := dAtA[iNdEx]
  5878. iNdEx++
  5879. stringLen |= uint64(b&0x7F) << shift
  5880. if b < 0x80 {
  5881. break
  5882. }
  5883. }
  5884. intStringLen := int(stringLen)
  5885. if intStringLen < 0 {
  5886. return ErrInvalidLengthGenerated
  5887. }
  5888. postIndex := iNdEx + intStringLen
  5889. if postIndex < 0 {
  5890. return ErrInvalidLengthGenerated
  5891. }
  5892. if postIndex > l {
  5893. return io.ErrUnexpectedEOF
  5894. }
  5895. m.Type = DeploymentStrategyType(dAtA[iNdEx:postIndex])
  5896. iNdEx = postIndex
  5897. case 2:
  5898. if wireType != 2 {
  5899. return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType)
  5900. }
  5901. var msglen int
  5902. for shift := uint(0); ; shift += 7 {
  5903. if shift >= 64 {
  5904. return ErrIntOverflowGenerated
  5905. }
  5906. if iNdEx >= l {
  5907. return io.ErrUnexpectedEOF
  5908. }
  5909. b := dAtA[iNdEx]
  5910. iNdEx++
  5911. msglen |= int(b&0x7F) << shift
  5912. if b < 0x80 {
  5913. break
  5914. }
  5915. }
  5916. if msglen < 0 {
  5917. return ErrInvalidLengthGenerated
  5918. }
  5919. postIndex := iNdEx + msglen
  5920. if postIndex < 0 {
  5921. return ErrInvalidLengthGenerated
  5922. }
  5923. if postIndex > l {
  5924. return io.ErrUnexpectedEOF
  5925. }
  5926. if m.RollingUpdate == nil {
  5927. m.RollingUpdate = &RollingUpdateDeployment{}
  5928. }
  5929. if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5930. return err
  5931. }
  5932. iNdEx = postIndex
  5933. default:
  5934. iNdEx = preIndex
  5935. skippy, err := skipGenerated(dAtA[iNdEx:])
  5936. if err != nil {
  5937. return err
  5938. }
  5939. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5940. return ErrInvalidLengthGenerated
  5941. }
  5942. if (iNdEx + skippy) > l {
  5943. return io.ErrUnexpectedEOF
  5944. }
  5945. iNdEx += skippy
  5946. }
  5947. }
  5948. if iNdEx > l {
  5949. return io.ErrUnexpectedEOF
  5950. }
  5951. return nil
  5952. }
  5953. func (m *ReplicaSet) Unmarshal(dAtA []byte) error {
  5954. l := len(dAtA)
  5955. iNdEx := 0
  5956. for iNdEx < l {
  5957. preIndex := iNdEx
  5958. var wire uint64
  5959. for shift := uint(0); ; shift += 7 {
  5960. if shift >= 64 {
  5961. return ErrIntOverflowGenerated
  5962. }
  5963. if iNdEx >= l {
  5964. return io.ErrUnexpectedEOF
  5965. }
  5966. b := dAtA[iNdEx]
  5967. iNdEx++
  5968. wire |= uint64(b&0x7F) << shift
  5969. if b < 0x80 {
  5970. break
  5971. }
  5972. }
  5973. fieldNum := int32(wire >> 3)
  5974. wireType := int(wire & 0x7)
  5975. if wireType == 4 {
  5976. return fmt.Errorf("proto: ReplicaSet: wiretype end group for non-group")
  5977. }
  5978. if fieldNum <= 0 {
  5979. return fmt.Errorf("proto: ReplicaSet: illegal tag %d (wire type %d)", fieldNum, wire)
  5980. }
  5981. switch fieldNum {
  5982. case 1:
  5983. if wireType != 2 {
  5984. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  5985. }
  5986. var msglen int
  5987. for shift := uint(0); ; shift += 7 {
  5988. if shift >= 64 {
  5989. return ErrIntOverflowGenerated
  5990. }
  5991. if iNdEx >= l {
  5992. return io.ErrUnexpectedEOF
  5993. }
  5994. b := dAtA[iNdEx]
  5995. iNdEx++
  5996. msglen |= int(b&0x7F) << shift
  5997. if b < 0x80 {
  5998. break
  5999. }
  6000. }
  6001. if msglen < 0 {
  6002. return ErrInvalidLengthGenerated
  6003. }
  6004. postIndex := iNdEx + msglen
  6005. if postIndex < 0 {
  6006. return ErrInvalidLengthGenerated
  6007. }
  6008. if postIndex > l {
  6009. return io.ErrUnexpectedEOF
  6010. }
  6011. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6012. return err
  6013. }
  6014. iNdEx = postIndex
  6015. case 2:
  6016. if wireType != 2 {
  6017. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  6018. }
  6019. var msglen int
  6020. for shift := uint(0); ; shift += 7 {
  6021. if shift >= 64 {
  6022. return ErrIntOverflowGenerated
  6023. }
  6024. if iNdEx >= l {
  6025. return io.ErrUnexpectedEOF
  6026. }
  6027. b := dAtA[iNdEx]
  6028. iNdEx++
  6029. msglen |= int(b&0x7F) << shift
  6030. if b < 0x80 {
  6031. break
  6032. }
  6033. }
  6034. if msglen < 0 {
  6035. return ErrInvalidLengthGenerated
  6036. }
  6037. postIndex := iNdEx + msglen
  6038. if postIndex < 0 {
  6039. return ErrInvalidLengthGenerated
  6040. }
  6041. if postIndex > l {
  6042. return io.ErrUnexpectedEOF
  6043. }
  6044. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6045. return err
  6046. }
  6047. iNdEx = postIndex
  6048. case 3:
  6049. if wireType != 2 {
  6050. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  6051. }
  6052. var msglen int
  6053. for shift := uint(0); ; shift += 7 {
  6054. if shift >= 64 {
  6055. return ErrIntOverflowGenerated
  6056. }
  6057. if iNdEx >= l {
  6058. return io.ErrUnexpectedEOF
  6059. }
  6060. b := dAtA[iNdEx]
  6061. iNdEx++
  6062. msglen |= int(b&0x7F) << shift
  6063. if b < 0x80 {
  6064. break
  6065. }
  6066. }
  6067. if msglen < 0 {
  6068. return ErrInvalidLengthGenerated
  6069. }
  6070. postIndex := iNdEx + msglen
  6071. if postIndex < 0 {
  6072. return ErrInvalidLengthGenerated
  6073. }
  6074. if postIndex > l {
  6075. return io.ErrUnexpectedEOF
  6076. }
  6077. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6078. return err
  6079. }
  6080. iNdEx = postIndex
  6081. default:
  6082. iNdEx = preIndex
  6083. skippy, err := skipGenerated(dAtA[iNdEx:])
  6084. if err != nil {
  6085. return err
  6086. }
  6087. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6088. return ErrInvalidLengthGenerated
  6089. }
  6090. if (iNdEx + skippy) > l {
  6091. return io.ErrUnexpectedEOF
  6092. }
  6093. iNdEx += skippy
  6094. }
  6095. }
  6096. if iNdEx > l {
  6097. return io.ErrUnexpectedEOF
  6098. }
  6099. return nil
  6100. }
  6101. func (m *ReplicaSetCondition) Unmarshal(dAtA []byte) error {
  6102. l := len(dAtA)
  6103. iNdEx := 0
  6104. for iNdEx < l {
  6105. preIndex := iNdEx
  6106. var wire uint64
  6107. for shift := uint(0); ; shift += 7 {
  6108. if shift >= 64 {
  6109. return ErrIntOverflowGenerated
  6110. }
  6111. if iNdEx >= l {
  6112. return io.ErrUnexpectedEOF
  6113. }
  6114. b := dAtA[iNdEx]
  6115. iNdEx++
  6116. wire |= uint64(b&0x7F) << shift
  6117. if b < 0x80 {
  6118. break
  6119. }
  6120. }
  6121. fieldNum := int32(wire >> 3)
  6122. wireType := int(wire & 0x7)
  6123. if wireType == 4 {
  6124. return fmt.Errorf("proto: ReplicaSetCondition: wiretype end group for non-group")
  6125. }
  6126. if fieldNum <= 0 {
  6127. return fmt.Errorf("proto: ReplicaSetCondition: illegal tag %d (wire type %d)", fieldNum, wire)
  6128. }
  6129. switch fieldNum {
  6130. case 1:
  6131. if wireType != 2 {
  6132. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  6133. }
  6134. var stringLen uint64
  6135. for shift := uint(0); ; shift += 7 {
  6136. if shift >= 64 {
  6137. return ErrIntOverflowGenerated
  6138. }
  6139. if iNdEx >= l {
  6140. return io.ErrUnexpectedEOF
  6141. }
  6142. b := dAtA[iNdEx]
  6143. iNdEx++
  6144. stringLen |= uint64(b&0x7F) << shift
  6145. if b < 0x80 {
  6146. break
  6147. }
  6148. }
  6149. intStringLen := int(stringLen)
  6150. if intStringLen < 0 {
  6151. return ErrInvalidLengthGenerated
  6152. }
  6153. postIndex := iNdEx + intStringLen
  6154. if postIndex < 0 {
  6155. return ErrInvalidLengthGenerated
  6156. }
  6157. if postIndex > l {
  6158. return io.ErrUnexpectedEOF
  6159. }
  6160. m.Type = ReplicaSetConditionType(dAtA[iNdEx:postIndex])
  6161. iNdEx = postIndex
  6162. case 2:
  6163. if wireType != 2 {
  6164. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  6165. }
  6166. var stringLen uint64
  6167. for shift := uint(0); ; shift += 7 {
  6168. if shift >= 64 {
  6169. return ErrIntOverflowGenerated
  6170. }
  6171. if iNdEx >= l {
  6172. return io.ErrUnexpectedEOF
  6173. }
  6174. b := dAtA[iNdEx]
  6175. iNdEx++
  6176. stringLen |= uint64(b&0x7F) << shift
  6177. if b < 0x80 {
  6178. break
  6179. }
  6180. }
  6181. intStringLen := int(stringLen)
  6182. if intStringLen < 0 {
  6183. return ErrInvalidLengthGenerated
  6184. }
  6185. postIndex := iNdEx + intStringLen
  6186. if postIndex < 0 {
  6187. return ErrInvalidLengthGenerated
  6188. }
  6189. if postIndex > l {
  6190. return io.ErrUnexpectedEOF
  6191. }
  6192. m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex])
  6193. iNdEx = postIndex
  6194. case 3:
  6195. if wireType != 2 {
  6196. return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
  6197. }
  6198. var msglen int
  6199. for shift := uint(0); ; shift += 7 {
  6200. if shift >= 64 {
  6201. return ErrIntOverflowGenerated
  6202. }
  6203. if iNdEx >= l {
  6204. return io.ErrUnexpectedEOF
  6205. }
  6206. b := dAtA[iNdEx]
  6207. iNdEx++
  6208. msglen |= int(b&0x7F) << shift
  6209. if b < 0x80 {
  6210. break
  6211. }
  6212. }
  6213. if msglen < 0 {
  6214. return ErrInvalidLengthGenerated
  6215. }
  6216. postIndex := iNdEx + msglen
  6217. if postIndex < 0 {
  6218. return ErrInvalidLengthGenerated
  6219. }
  6220. if postIndex > l {
  6221. return io.ErrUnexpectedEOF
  6222. }
  6223. if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6224. return err
  6225. }
  6226. iNdEx = postIndex
  6227. case 4:
  6228. if wireType != 2 {
  6229. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  6230. }
  6231. var stringLen uint64
  6232. for shift := uint(0); ; shift += 7 {
  6233. if shift >= 64 {
  6234. return ErrIntOverflowGenerated
  6235. }
  6236. if iNdEx >= l {
  6237. return io.ErrUnexpectedEOF
  6238. }
  6239. b := dAtA[iNdEx]
  6240. iNdEx++
  6241. stringLen |= uint64(b&0x7F) << shift
  6242. if b < 0x80 {
  6243. break
  6244. }
  6245. }
  6246. intStringLen := int(stringLen)
  6247. if intStringLen < 0 {
  6248. return ErrInvalidLengthGenerated
  6249. }
  6250. postIndex := iNdEx + intStringLen
  6251. if postIndex < 0 {
  6252. return ErrInvalidLengthGenerated
  6253. }
  6254. if postIndex > l {
  6255. return io.ErrUnexpectedEOF
  6256. }
  6257. m.Reason = string(dAtA[iNdEx:postIndex])
  6258. iNdEx = postIndex
  6259. case 5:
  6260. if wireType != 2 {
  6261. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  6262. }
  6263. var stringLen uint64
  6264. for shift := uint(0); ; shift += 7 {
  6265. if shift >= 64 {
  6266. return ErrIntOverflowGenerated
  6267. }
  6268. if iNdEx >= l {
  6269. return io.ErrUnexpectedEOF
  6270. }
  6271. b := dAtA[iNdEx]
  6272. iNdEx++
  6273. stringLen |= uint64(b&0x7F) << shift
  6274. if b < 0x80 {
  6275. break
  6276. }
  6277. }
  6278. intStringLen := int(stringLen)
  6279. if intStringLen < 0 {
  6280. return ErrInvalidLengthGenerated
  6281. }
  6282. postIndex := iNdEx + intStringLen
  6283. if postIndex < 0 {
  6284. return ErrInvalidLengthGenerated
  6285. }
  6286. if postIndex > l {
  6287. return io.ErrUnexpectedEOF
  6288. }
  6289. m.Message = string(dAtA[iNdEx:postIndex])
  6290. iNdEx = postIndex
  6291. default:
  6292. iNdEx = preIndex
  6293. skippy, err := skipGenerated(dAtA[iNdEx:])
  6294. if err != nil {
  6295. return err
  6296. }
  6297. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6298. return ErrInvalidLengthGenerated
  6299. }
  6300. if (iNdEx + skippy) > l {
  6301. return io.ErrUnexpectedEOF
  6302. }
  6303. iNdEx += skippy
  6304. }
  6305. }
  6306. if iNdEx > l {
  6307. return io.ErrUnexpectedEOF
  6308. }
  6309. return nil
  6310. }
  6311. func (m *ReplicaSetList) Unmarshal(dAtA []byte) error {
  6312. l := len(dAtA)
  6313. iNdEx := 0
  6314. for iNdEx < l {
  6315. preIndex := iNdEx
  6316. var wire uint64
  6317. for shift := uint(0); ; shift += 7 {
  6318. if shift >= 64 {
  6319. return ErrIntOverflowGenerated
  6320. }
  6321. if iNdEx >= l {
  6322. return io.ErrUnexpectedEOF
  6323. }
  6324. b := dAtA[iNdEx]
  6325. iNdEx++
  6326. wire |= uint64(b&0x7F) << shift
  6327. if b < 0x80 {
  6328. break
  6329. }
  6330. }
  6331. fieldNum := int32(wire >> 3)
  6332. wireType := int(wire & 0x7)
  6333. if wireType == 4 {
  6334. return fmt.Errorf("proto: ReplicaSetList: wiretype end group for non-group")
  6335. }
  6336. if fieldNum <= 0 {
  6337. return fmt.Errorf("proto: ReplicaSetList: illegal tag %d (wire type %d)", fieldNum, wire)
  6338. }
  6339. switch fieldNum {
  6340. case 1:
  6341. if wireType != 2 {
  6342. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  6343. }
  6344. var msglen int
  6345. for shift := uint(0); ; shift += 7 {
  6346. if shift >= 64 {
  6347. return ErrIntOverflowGenerated
  6348. }
  6349. if iNdEx >= l {
  6350. return io.ErrUnexpectedEOF
  6351. }
  6352. b := dAtA[iNdEx]
  6353. iNdEx++
  6354. msglen |= int(b&0x7F) << shift
  6355. if b < 0x80 {
  6356. break
  6357. }
  6358. }
  6359. if msglen < 0 {
  6360. return ErrInvalidLengthGenerated
  6361. }
  6362. postIndex := iNdEx + msglen
  6363. if postIndex < 0 {
  6364. return ErrInvalidLengthGenerated
  6365. }
  6366. if postIndex > l {
  6367. return io.ErrUnexpectedEOF
  6368. }
  6369. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6370. return err
  6371. }
  6372. iNdEx = postIndex
  6373. case 2:
  6374. if wireType != 2 {
  6375. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  6376. }
  6377. var msglen int
  6378. for shift := uint(0); ; shift += 7 {
  6379. if shift >= 64 {
  6380. return ErrIntOverflowGenerated
  6381. }
  6382. if iNdEx >= l {
  6383. return io.ErrUnexpectedEOF
  6384. }
  6385. b := dAtA[iNdEx]
  6386. iNdEx++
  6387. msglen |= int(b&0x7F) << shift
  6388. if b < 0x80 {
  6389. break
  6390. }
  6391. }
  6392. if msglen < 0 {
  6393. return ErrInvalidLengthGenerated
  6394. }
  6395. postIndex := iNdEx + msglen
  6396. if postIndex < 0 {
  6397. return ErrInvalidLengthGenerated
  6398. }
  6399. if postIndex > l {
  6400. return io.ErrUnexpectedEOF
  6401. }
  6402. m.Items = append(m.Items, ReplicaSet{})
  6403. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6404. return err
  6405. }
  6406. iNdEx = postIndex
  6407. default:
  6408. iNdEx = preIndex
  6409. skippy, err := skipGenerated(dAtA[iNdEx:])
  6410. if err != nil {
  6411. return err
  6412. }
  6413. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6414. return ErrInvalidLengthGenerated
  6415. }
  6416. if (iNdEx + skippy) > l {
  6417. return io.ErrUnexpectedEOF
  6418. }
  6419. iNdEx += skippy
  6420. }
  6421. }
  6422. if iNdEx > l {
  6423. return io.ErrUnexpectedEOF
  6424. }
  6425. return nil
  6426. }
  6427. func (m *ReplicaSetSpec) Unmarshal(dAtA []byte) error {
  6428. l := len(dAtA)
  6429. iNdEx := 0
  6430. for iNdEx < l {
  6431. preIndex := iNdEx
  6432. var wire uint64
  6433. for shift := uint(0); ; shift += 7 {
  6434. if shift >= 64 {
  6435. return ErrIntOverflowGenerated
  6436. }
  6437. if iNdEx >= l {
  6438. return io.ErrUnexpectedEOF
  6439. }
  6440. b := dAtA[iNdEx]
  6441. iNdEx++
  6442. wire |= uint64(b&0x7F) << shift
  6443. if b < 0x80 {
  6444. break
  6445. }
  6446. }
  6447. fieldNum := int32(wire >> 3)
  6448. wireType := int(wire & 0x7)
  6449. if wireType == 4 {
  6450. return fmt.Errorf("proto: ReplicaSetSpec: wiretype end group for non-group")
  6451. }
  6452. if fieldNum <= 0 {
  6453. return fmt.Errorf("proto: ReplicaSetSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  6454. }
  6455. switch fieldNum {
  6456. case 1:
  6457. if wireType != 0 {
  6458. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  6459. }
  6460. var v int32
  6461. for shift := uint(0); ; shift += 7 {
  6462. if shift >= 64 {
  6463. return ErrIntOverflowGenerated
  6464. }
  6465. if iNdEx >= l {
  6466. return io.ErrUnexpectedEOF
  6467. }
  6468. b := dAtA[iNdEx]
  6469. iNdEx++
  6470. v |= int32(b&0x7F) << shift
  6471. if b < 0x80 {
  6472. break
  6473. }
  6474. }
  6475. m.Replicas = &v
  6476. case 2:
  6477. if wireType != 2 {
  6478. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  6479. }
  6480. var msglen int
  6481. for shift := uint(0); ; shift += 7 {
  6482. if shift >= 64 {
  6483. return ErrIntOverflowGenerated
  6484. }
  6485. if iNdEx >= l {
  6486. return io.ErrUnexpectedEOF
  6487. }
  6488. b := dAtA[iNdEx]
  6489. iNdEx++
  6490. msglen |= int(b&0x7F) << shift
  6491. if b < 0x80 {
  6492. break
  6493. }
  6494. }
  6495. if msglen < 0 {
  6496. return ErrInvalidLengthGenerated
  6497. }
  6498. postIndex := iNdEx + msglen
  6499. if postIndex < 0 {
  6500. return ErrInvalidLengthGenerated
  6501. }
  6502. if postIndex > l {
  6503. return io.ErrUnexpectedEOF
  6504. }
  6505. if m.Selector == nil {
  6506. m.Selector = &v1.LabelSelector{}
  6507. }
  6508. if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6509. return err
  6510. }
  6511. iNdEx = postIndex
  6512. case 3:
  6513. if wireType != 2 {
  6514. return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
  6515. }
  6516. var msglen int
  6517. for shift := uint(0); ; shift += 7 {
  6518. if shift >= 64 {
  6519. return ErrIntOverflowGenerated
  6520. }
  6521. if iNdEx >= l {
  6522. return io.ErrUnexpectedEOF
  6523. }
  6524. b := dAtA[iNdEx]
  6525. iNdEx++
  6526. msglen |= int(b&0x7F) << shift
  6527. if b < 0x80 {
  6528. break
  6529. }
  6530. }
  6531. if msglen < 0 {
  6532. return ErrInvalidLengthGenerated
  6533. }
  6534. postIndex := iNdEx + msglen
  6535. if postIndex < 0 {
  6536. return ErrInvalidLengthGenerated
  6537. }
  6538. if postIndex > l {
  6539. return io.ErrUnexpectedEOF
  6540. }
  6541. if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6542. return err
  6543. }
  6544. iNdEx = postIndex
  6545. case 4:
  6546. if wireType != 0 {
  6547. return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType)
  6548. }
  6549. m.MinReadySeconds = 0
  6550. for shift := uint(0); ; shift += 7 {
  6551. if shift >= 64 {
  6552. return ErrIntOverflowGenerated
  6553. }
  6554. if iNdEx >= l {
  6555. return io.ErrUnexpectedEOF
  6556. }
  6557. b := dAtA[iNdEx]
  6558. iNdEx++
  6559. m.MinReadySeconds |= int32(b&0x7F) << shift
  6560. if b < 0x80 {
  6561. break
  6562. }
  6563. }
  6564. default:
  6565. iNdEx = preIndex
  6566. skippy, err := skipGenerated(dAtA[iNdEx:])
  6567. if err != nil {
  6568. return err
  6569. }
  6570. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6571. return ErrInvalidLengthGenerated
  6572. }
  6573. if (iNdEx + skippy) > l {
  6574. return io.ErrUnexpectedEOF
  6575. }
  6576. iNdEx += skippy
  6577. }
  6578. }
  6579. if iNdEx > l {
  6580. return io.ErrUnexpectedEOF
  6581. }
  6582. return nil
  6583. }
  6584. func (m *ReplicaSetStatus) Unmarshal(dAtA []byte) error {
  6585. l := len(dAtA)
  6586. iNdEx := 0
  6587. for iNdEx < l {
  6588. preIndex := iNdEx
  6589. var wire uint64
  6590. for shift := uint(0); ; shift += 7 {
  6591. if shift >= 64 {
  6592. return ErrIntOverflowGenerated
  6593. }
  6594. if iNdEx >= l {
  6595. return io.ErrUnexpectedEOF
  6596. }
  6597. b := dAtA[iNdEx]
  6598. iNdEx++
  6599. wire |= uint64(b&0x7F) << shift
  6600. if b < 0x80 {
  6601. break
  6602. }
  6603. }
  6604. fieldNum := int32(wire >> 3)
  6605. wireType := int(wire & 0x7)
  6606. if wireType == 4 {
  6607. return fmt.Errorf("proto: ReplicaSetStatus: wiretype end group for non-group")
  6608. }
  6609. if fieldNum <= 0 {
  6610. return fmt.Errorf("proto: ReplicaSetStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  6611. }
  6612. switch fieldNum {
  6613. case 1:
  6614. if wireType != 0 {
  6615. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  6616. }
  6617. m.Replicas = 0
  6618. for shift := uint(0); ; shift += 7 {
  6619. if shift >= 64 {
  6620. return ErrIntOverflowGenerated
  6621. }
  6622. if iNdEx >= l {
  6623. return io.ErrUnexpectedEOF
  6624. }
  6625. b := dAtA[iNdEx]
  6626. iNdEx++
  6627. m.Replicas |= int32(b&0x7F) << shift
  6628. if b < 0x80 {
  6629. break
  6630. }
  6631. }
  6632. case 2:
  6633. if wireType != 0 {
  6634. return fmt.Errorf("proto: wrong wireType = %d for field FullyLabeledReplicas", wireType)
  6635. }
  6636. m.FullyLabeledReplicas = 0
  6637. for shift := uint(0); ; shift += 7 {
  6638. if shift >= 64 {
  6639. return ErrIntOverflowGenerated
  6640. }
  6641. if iNdEx >= l {
  6642. return io.ErrUnexpectedEOF
  6643. }
  6644. b := dAtA[iNdEx]
  6645. iNdEx++
  6646. m.FullyLabeledReplicas |= int32(b&0x7F) << shift
  6647. if b < 0x80 {
  6648. break
  6649. }
  6650. }
  6651. case 3:
  6652. if wireType != 0 {
  6653. return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
  6654. }
  6655. m.ObservedGeneration = 0
  6656. for shift := uint(0); ; shift += 7 {
  6657. if shift >= 64 {
  6658. return ErrIntOverflowGenerated
  6659. }
  6660. if iNdEx >= l {
  6661. return io.ErrUnexpectedEOF
  6662. }
  6663. b := dAtA[iNdEx]
  6664. iNdEx++
  6665. m.ObservedGeneration |= int64(b&0x7F) << shift
  6666. if b < 0x80 {
  6667. break
  6668. }
  6669. }
  6670. case 4:
  6671. if wireType != 0 {
  6672. return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType)
  6673. }
  6674. m.ReadyReplicas = 0
  6675. for shift := uint(0); ; shift += 7 {
  6676. if shift >= 64 {
  6677. return ErrIntOverflowGenerated
  6678. }
  6679. if iNdEx >= l {
  6680. return io.ErrUnexpectedEOF
  6681. }
  6682. b := dAtA[iNdEx]
  6683. iNdEx++
  6684. m.ReadyReplicas |= int32(b&0x7F) << shift
  6685. if b < 0x80 {
  6686. break
  6687. }
  6688. }
  6689. case 5:
  6690. if wireType != 0 {
  6691. return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType)
  6692. }
  6693. m.AvailableReplicas = 0
  6694. for shift := uint(0); ; shift += 7 {
  6695. if shift >= 64 {
  6696. return ErrIntOverflowGenerated
  6697. }
  6698. if iNdEx >= l {
  6699. return io.ErrUnexpectedEOF
  6700. }
  6701. b := dAtA[iNdEx]
  6702. iNdEx++
  6703. m.AvailableReplicas |= int32(b&0x7F) << shift
  6704. if b < 0x80 {
  6705. break
  6706. }
  6707. }
  6708. case 6:
  6709. if wireType != 2 {
  6710. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  6711. }
  6712. var msglen int
  6713. for shift := uint(0); ; shift += 7 {
  6714. if shift >= 64 {
  6715. return ErrIntOverflowGenerated
  6716. }
  6717. if iNdEx >= l {
  6718. return io.ErrUnexpectedEOF
  6719. }
  6720. b := dAtA[iNdEx]
  6721. iNdEx++
  6722. msglen |= int(b&0x7F) << shift
  6723. if b < 0x80 {
  6724. break
  6725. }
  6726. }
  6727. if msglen < 0 {
  6728. return ErrInvalidLengthGenerated
  6729. }
  6730. postIndex := iNdEx + msglen
  6731. if postIndex < 0 {
  6732. return ErrInvalidLengthGenerated
  6733. }
  6734. if postIndex > l {
  6735. return io.ErrUnexpectedEOF
  6736. }
  6737. m.Conditions = append(m.Conditions, ReplicaSetCondition{})
  6738. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6739. return err
  6740. }
  6741. iNdEx = postIndex
  6742. default:
  6743. iNdEx = preIndex
  6744. skippy, err := skipGenerated(dAtA[iNdEx:])
  6745. if err != nil {
  6746. return err
  6747. }
  6748. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6749. return ErrInvalidLengthGenerated
  6750. }
  6751. if (iNdEx + skippy) > l {
  6752. return io.ErrUnexpectedEOF
  6753. }
  6754. iNdEx += skippy
  6755. }
  6756. }
  6757. if iNdEx > l {
  6758. return io.ErrUnexpectedEOF
  6759. }
  6760. return nil
  6761. }
  6762. func (m *RollingUpdateDaemonSet) Unmarshal(dAtA []byte) error {
  6763. l := len(dAtA)
  6764. iNdEx := 0
  6765. for iNdEx < l {
  6766. preIndex := iNdEx
  6767. var wire uint64
  6768. for shift := uint(0); ; shift += 7 {
  6769. if shift >= 64 {
  6770. return ErrIntOverflowGenerated
  6771. }
  6772. if iNdEx >= l {
  6773. return io.ErrUnexpectedEOF
  6774. }
  6775. b := dAtA[iNdEx]
  6776. iNdEx++
  6777. wire |= uint64(b&0x7F) << shift
  6778. if b < 0x80 {
  6779. break
  6780. }
  6781. }
  6782. fieldNum := int32(wire >> 3)
  6783. wireType := int(wire & 0x7)
  6784. if wireType == 4 {
  6785. return fmt.Errorf("proto: RollingUpdateDaemonSet: wiretype end group for non-group")
  6786. }
  6787. if fieldNum <= 0 {
  6788. return fmt.Errorf("proto: RollingUpdateDaemonSet: illegal tag %d (wire type %d)", fieldNum, wire)
  6789. }
  6790. switch fieldNum {
  6791. case 1:
  6792. if wireType != 2 {
  6793. return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType)
  6794. }
  6795. var msglen int
  6796. for shift := uint(0); ; shift += 7 {
  6797. if shift >= 64 {
  6798. return ErrIntOverflowGenerated
  6799. }
  6800. if iNdEx >= l {
  6801. return io.ErrUnexpectedEOF
  6802. }
  6803. b := dAtA[iNdEx]
  6804. iNdEx++
  6805. msglen |= int(b&0x7F) << shift
  6806. if b < 0x80 {
  6807. break
  6808. }
  6809. }
  6810. if msglen < 0 {
  6811. return ErrInvalidLengthGenerated
  6812. }
  6813. postIndex := iNdEx + msglen
  6814. if postIndex < 0 {
  6815. return ErrInvalidLengthGenerated
  6816. }
  6817. if postIndex > l {
  6818. return io.ErrUnexpectedEOF
  6819. }
  6820. if m.MaxUnavailable == nil {
  6821. m.MaxUnavailable = &intstr.IntOrString{}
  6822. }
  6823. if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6824. return err
  6825. }
  6826. iNdEx = postIndex
  6827. case 2:
  6828. if wireType != 2 {
  6829. return fmt.Errorf("proto: wrong wireType = %d for field MaxSurge", wireType)
  6830. }
  6831. var msglen int
  6832. for shift := uint(0); ; shift += 7 {
  6833. if shift >= 64 {
  6834. return ErrIntOverflowGenerated
  6835. }
  6836. if iNdEx >= l {
  6837. return io.ErrUnexpectedEOF
  6838. }
  6839. b := dAtA[iNdEx]
  6840. iNdEx++
  6841. msglen |= int(b&0x7F) << shift
  6842. if b < 0x80 {
  6843. break
  6844. }
  6845. }
  6846. if msglen < 0 {
  6847. return ErrInvalidLengthGenerated
  6848. }
  6849. postIndex := iNdEx + msglen
  6850. if postIndex < 0 {
  6851. return ErrInvalidLengthGenerated
  6852. }
  6853. if postIndex > l {
  6854. return io.ErrUnexpectedEOF
  6855. }
  6856. if m.MaxSurge == nil {
  6857. m.MaxSurge = &intstr.IntOrString{}
  6858. }
  6859. if err := m.MaxSurge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6860. return err
  6861. }
  6862. iNdEx = postIndex
  6863. default:
  6864. iNdEx = preIndex
  6865. skippy, err := skipGenerated(dAtA[iNdEx:])
  6866. if err != nil {
  6867. return err
  6868. }
  6869. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6870. return ErrInvalidLengthGenerated
  6871. }
  6872. if (iNdEx + skippy) > l {
  6873. return io.ErrUnexpectedEOF
  6874. }
  6875. iNdEx += skippy
  6876. }
  6877. }
  6878. if iNdEx > l {
  6879. return io.ErrUnexpectedEOF
  6880. }
  6881. return nil
  6882. }
  6883. func (m *RollingUpdateDeployment) Unmarshal(dAtA []byte) error {
  6884. l := len(dAtA)
  6885. iNdEx := 0
  6886. for iNdEx < l {
  6887. preIndex := iNdEx
  6888. var wire uint64
  6889. for shift := uint(0); ; shift += 7 {
  6890. if shift >= 64 {
  6891. return ErrIntOverflowGenerated
  6892. }
  6893. if iNdEx >= l {
  6894. return io.ErrUnexpectedEOF
  6895. }
  6896. b := dAtA[iNdEx]
  6897. iNdEx++
  6898. wire |= uint64(b&0x7F) << shift
  6899. if b < 0x80 {
  6900. break
  6901. }
  6902. }
  6903. fieldNum := int32(wire >> 3)
  6904. wireType := int(wire & 0x7)
  6905. if wireType == 4 {
  6906. return fmt.Errorf("proto: RollingUpdateDeployment: wiretype end group for non-group")
  6907. }
  6908. if fieldNum <= 0 {
  6909. return fmt.Errorf("proto: RollingUpdateDeployment: illegal tag %d (wire type %d)", fieldNum, wire)
  6910. }
  6911. switch fieldNum {
  6912. case 1:
  6913. if wireType != 2 {
  6914. return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType)
  6915. }
  6916. var msglen int
  6917. for shift := uint(0); ; shift += 7 {
  6918. if shift >= 64 {
  6919. return ErrIntOverflowGenerated
  6920. }
  6921. if iNdEx >= l {
  6922. return io.ErrUnexpectedEOF
  6923. }
  6924. b := dAtA[iNdEx]
  6925. iNdEx++
  6926. msglen |= int(b&0x7F) << shift
  6927. if b < 0x80 {
  6928. break
  6929. }
  6930. }
  6931. if msglen < 0 {
  6932. return ErrInvalidLengthGenerated
  6933. }
  6934. postIndex := iNdEx + msglen
  6935. if postIndex < 0 {
  6936. return ErrInvalidLengthGenerated
  6937. }
  6938. if postIndex > l {
  6939. return io.ErrUnexpectedEOF
  6940. }
  6941. if m.MaxUnavailable == nil {
  6942. m.MaxUnavailable = &intstr.IntOrString{}
  6943. }
  6944. if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6945. return err
  6946. }
  6947. iNdEx = postIndex
  6948. case 2:
  6949. if wireType != 2 {
  6950. return fmt.Errorf("proto: wrong wireType = %d for field MaxSurge", wireType)
  6951. }
  6952. var msglen int
  6953. for shift := uint(0); ; shift += 7 {
  6954. if shift >= 64 {
  6955. return ErrIntOverflowGenerated
  6956. }
  6957. if iNdEx >= l {
  6958. return io.ErrUnexpectedEOF
  6959. }
  6960. b := dAtA[iNdEx]
  6961. iNdEx++
  6962. msglen |= int(b&0x7F) << shift
  6963. if b < 0x80 {
  6964. break
  6965. }
  6966. }
  6967. if msglen < 0 {
  6968. return ErrInvalidLengthGenerated
  6969. }
  6970. postIndex := iNdEx + msglen
  6971. if postIndex < 0 {
  6972. return ErrInvalidLengthGenerated
  6973. }
  6974. if postIndex > l {
  6975. return io.ErrUnexpectedEOF
  6976. }
  6977. if m.MaxSurge == nil {
  6978. m.MaxSurge = &intstr.IntOrString{}
  6979. }
  6980. if err := m.MaxSurge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6981. return err
  6982. }
  6983. iNdEx = postIndex
  6984. default:
  6985. iNdEx = preIndex
  6986. skippy, err := skipGenerated(dAtA[iNdEx:])
  6987. if err != nil {
  6988. return err
  6989. }
  6990. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6991. return ErrInvalidLengthGenerated
  6992. }
  6993. if (iNdEx + skippy) > l {
  6994. return io.ErrUnexpectedEOF
  6995. }
  6996. iNdEx += skippy
  6997. }
  6998. }
  6999. if iNdEx > l {
  7000. return io.ErrUnexpectedEOF
  7001. }
  7002. return nil
  7003. }
  7004. func (m *RollingUpdateStatefulSetStrategy) Unmarshal(dAtA []byte) error {
  7005. l := len(dAtA)
  7006. iNdEx := 0
  7007. for iNdEx < l {
  7008. preIndex := iNdEx
  7009. var wire uint64
  7010. for shift := uint(0); ; shift += 7 {
  7011. if shift >= 64 {
  7012. return ErrIntOverflowGenerated
  7013. }
  7014. if iNdEx >= l {
  7015. return io.ErrUnexpectedEOF
  7016. }
  7017. b := dAtA[iNdEx]
  7018. iNdEx++
  7019. wire |= uint64(b&0x7F) << shift
  7020. if b < 0x80 {
  7021. break
  7022. }
  7023. }
  7024. fieldNum := int32(wire >> 3)
  7025. wireType := int(wire & 0x7)
  7026. if wireType == 4 {
  7027. return fmt.Errorf("proto: RollingUpdateStatefulSetStrategy: wiretype end group for non-group")
  7028. }
  7029. if fieldNum <= 0 {
  7030. return fmt.Errorf("proto: RollingUpdateStatefulSetStrategy: illegal tag %d (wire type %d)", fieldNum, wire)
  7031. }
  7032. switch fieldNum {
  7033. case 1:
  7034. if wireType != 0 {
  7035. return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType)
  7036. }
  7037. var v int32
  7038. for shift := uint(0); ; shift += 7 {
  7039. if shift >= 64 {
  7040. return ErrIntOverflowGenerated
  7041. }
  7042. if iNdEx >= l {
  7043. return io.ErrUnexpectedEOF
  7044. }
  7045. b := dAtA[iNdEx]
  7046. iNdEx++
  7047. v |= int32(b&0x7F) << shift
  7048. if b < 0x80 {
  7049. break
  7050. }
  7051. }
  7052. m.Partition = &v
  7053. default:
  7054. iNdEx = preIndex
  7055. skippy, err := skipGenerated(dAtA[iNdEx:])
  7056. if err != nil {
  7057. return err
  7058. }
  7059. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7060. return ErrInvalidLengthGenerated
  7061. }
  7062. if (iNdEx + skippy) > l {
  7063. return io.ErrUnexpectedEOF
  7064. }
  7065. iNdEx += skippy
  7066. }
  7067. }
  7068. if iNdEx > l {
  7069. return io.ErrUnexpectedEOF
  7070. }
  7071. return nil
  7072. }
  7073. func (m *Scale) Unmarshal(dAtA []byte) error {
  7074. l := len(dAtA)
  7075. iNdEx := 0
  7076. for iNdEx < l {
  7077. preIndex := iNdEx
  7078. var wire uint64
  7079. for shift := uint(0); ; shift += 7 {
  7080. if shift >= 64 {
  7081. return ErrIntOverflowGenerated
  7082. }
  7083. if iNdEx >= l {
  7084. return io.ErrUnexpectedEOF
  7085. }
  7086. b := dAtA[iNdEx]
  7087. iNdEx++
  7088. wire |= uint64(b&0x7F) << shift
  7089. if b < 0x80 {
  7090. break
  7091. }
  7092. }
  7093. fieldNum := int32(wire >> 3)
  7094. wireType := int(wire & 0x7)
  7095. if wireType == 4 {
  7096. return fmt.Errorf("proto: Scale: wiretype end group for non-group")
  7097. }
  7098. if fieldNum <= 0 {
  7099. return fmt.Errorf("proto: Scale: illegal tag %d (wire type %d)", fieldNum, wire)
  7100. }
  7101. switch fieldNum {
  7102. case 1:
  7103. if wireType != 2 {
  7104. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  7105. }
  7106. var msglen int
  7107. for shift := uint(0); ; shift += 7 {
  7108. if shift >= 64 {
  7109. return ErrIntOverflowGenerated
  7110. }
  7111. if iNdEx >= l {
  7112. return io.ErrUnexpectedEOF
  7113. }
  7114. b := dAtA[iNdEx]
  7115. iNdEx++
  7116. msglen |= int(b&0x7F) << shift
  7117. if b < 0x80 {
  7118. break
  7119. }
  7120. }
  7121. if msglen < 0 {
  7122. return ErrInvalidLengthGenerated
  7123. }
  7124. postIndex := iNdEx + msglen
  7125. if postIndex < 0 {
  7126. return ErrInvalidLengthGenerated
  7127. }
  7128. if postIndex > l {
  7129. return io.ErrUnexpectedEOF
  7130. }
  7131. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7132. return err
  7133. }
  7134. iNdEx = postIndex
  7135. case 2:
  7136. if wireType != 2 {
  7137. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  7138. }
  7139. var msglen int
  7140. for shift := uint(0); ; shift += 7 {
  7141. if shift >= 64 {
  7142. return ErrIntOverflowGenerated
  7143. }
  7144. if iNdEx >= l {
  7145. return io.ErrUnexpectedEOF
  7146. }
  7147. b := dAtA[iNdEx]
  7148. iNdEx++
  7149. msglen |= int(b&0x7F) << shift
  7150. if b < 0x80 {
  7151. break
  7152. }
  7153. }
  7154. if msglen < 0 {
  7155. return ErrInvalidLengthGenerated
  7156. }
  7157. postIndex := iNdEx + msglen
  7158. if postIndex < 0 {
  7159. return ErrInvalidLengthGenerated
  7160. }
  7161. if postIndex > l {
  7162. return io.ErrUnexpectedEOF
  7163. }
  7164. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7165. return err
  7166. }
  7167. iNdEx = postIndex
  7168. case 3:
  7169. if wireType != 2 {
  7170. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  7171. }
  7172. var msglen int
  7173. for shift := uint(0); ; shift += 7 {
  7174. if shift >= 64 {
  7175. return ErrIntOverflowGenerated
  7176. }
  7177. if iNdEx >= l {
  7178. return io.ErrUnexpectedEOF
  7179. }
  7180. b := dAtA[iNdEx]
  7181. iNdEx++
  7182. msglen |= int(b&0x7F) << shift
  7183. if b < 0x80 {
  7184. break
  7185. }
  7186. }
  7187. if msglen < 0 {
  7188. return ErrInvalidLengthGenerated
  7189. }
  7190. postIndex := iNdEx + msglen
  7191. if postIndex < 0 {
  7192. return ErrInvalidLengthGenerated
  7193. }
  7194. if postIndex > l {
  7195. return io.ErrUnexpectedEOF
  7196. }
  7197. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7198. return err
  7199. }
  7200. iNdEx = postIndex
  7201. default:
  7202. iNdEx = preIndex
  7203. skippy, err := skipGenerated(dAtA[iNdEx:])
  7204. if err != nil {
  7205. return err
  7206. }
  7207. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7208. return ErrInvalidLengthGenerated
  7209. }
  7210. if (iNdEx + skippy) > l {
  7211. return io.ErrUnexpectedEOF
  7212. }
  7213. iNdEx += skippy
  7214. }
  7215. }
  7216. if iNdEx > l {
  7217. return io.ErrUnexpectedEOF
  7218. }
  7219. return nil
  7220. }
  7221. func (m *ScaleSpec) Unmarshal(dAtA []byte) error {
  7222. l := len(dAtA)
  7223. iNdEx := 0
  7224. for iNdEx < l {
  7225. preIndex := iNdEx
  7226. var wire uint64
  7227. for shift := uint(0); ; shift += 7 {
  7228. if shift >= 64 {
  7229. return ErrIntOverflowGenerated
  7230. }
  7231. if iNdEx >= l {
  7232. return io.ErrUnexpectedEOF
  7233. }
  7234. b := dAtA[iNdEx]
  7235. iNdEx++
  7236. wire |= uint64(b&0x7F) << shift
  7237. if b < 0x80 {
  7238. break
  7239. }
  7240. }
  7241. fieldNum := int32(wire >> 3)
  7242. wireType := int(wire & 0x7)
  7243. if wireType == 4 {
  7244. return fmt.Errorf("proto: ScaleSpec: wiretype end group for non-group")
  7245. }
  7246. if fieldNum <= 0 {
  7247. return fmt.Errorf("proto: ScaleSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  7248. }
  7249. switch fieldNum {
  7250. case 1:
  7251. if wireType != 0 {
  7252. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  7253. }
  7254. m.Replicas = 0
  7255. for shift := uint(0); ; shift += 7 {
  7256. if shift >= 64 {
  7257. return ErrIntOverflowGenerated
  7258. }
  7259. if iNdEx >= l {
  7260. return io.ErrUnexpectedEOF
  7261. }
  7262. b := dAtA[iNdEx]
  7263. iNdEx++
  7264. m.Replicas |= int32(b&0x7F) << shift
  7265. if b < 0x80 {
  7266. break
  7267. }
  7268. }
  7269. default:
  7270. iNdEx = preIndex
  7271. skippy, err := skipGenerated(dAtA[iNdEx:])
  7272. if err != nil {
  7273. return err
  7274. }
  7275. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7276. return ErrInvalidLengthGenerated
  7277. }
  7278. if (iNdEx + skippy) > l {
  7279. return io.ErrUnexpectedEOF
  7280. }
  7281. iNdEx += skippy
  7282. }
  7283. }
  7284. if iNdEx > l {
  7285. return io.ErrUnexpectedEOF
  7286. }
  7287. return nil
  7288. }
  7289. func (m *ScaleStatus) Unmarshal(dAtA []byte) error {
  7290. l := len(dAtA)
  7291. iNdEx := 0
  7292. for iNdEx < l {
  7293. preIndex := iNdEx
  7294. var wire uint64
  7295. for shift := uint(0); ; shift += 7 {
  7296. if shift >= 64 {
  7297. return ErrIntOverflowGenerated
  7298. }
  7299. if iNdEx >= l {
  7300. return io.ErrUnexpectedEOF
  7301. }
  7302. b := dAtA[iNdEx]
  7303. iNdEx++
  7304. wire |= uint64(b&0x7F) << shift
  7305. if b < 0x80 {
  7306. break
  7307. }
  7308. }
  7309. fieldNum := int32(wire >> 3)
  7310. wireType := int(wire & 0x7)
  7311. if wireType == 4 {
  7312. return fmt.Errorf("proto: ScaleStatus: wiretype end group for non-group")
  7313. }
  7314. if fieldNum <= 0 {
  7315. return fmt.Errorf("proto: ScaleStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  7316. }
  7317. switch fieldNum {
  7318. case 1:
  7319. if wireType != 0 {
  7320. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  7321. }
  7322. m.Replicas = 0
  7323. for shift := uint(0); ; shift += 7 {
  7324. if shift >= 64 {
  7325. return ErrIntOverflowGenerated
  7326. }
  7327. if iNdEx >= l {
  7328. return io.ErrUnexpectedEOF
  7329. }
  7330. b := dAtA[iNdEx]
  7331. iNdEx++
  7332. m.Replicas |= int32(b&0x7F) << shift
  7333. if b < 0x80 {
  7334. break
  7335. }
  7336. }
  7337. case 2:
  7338. if wireType != 2 {
  7339. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  7340. }
  7341. var msglen int
  7342. for shift := uint(0); ; shift += 7 {
  7343. if shift >= 64 {
  7344. return ErrIntOverflowGenerated
  7345. }
  7346. if iNdEx >= l {
  7347. return io.ErrUnexpectedEOF
  7348. }
  7349. b := dAtA[iNdEx]
  7350. iNdEx++
  7351. msglen |= int(b&0x7F) << shift
  7352. if b < 0x80 {
  7353. break
  7354. }
  7355. }
  7356. if msglen < 0 {
  7357. return ErrInvalidLengthGenerated
  7358. }
  7359. postIndex := iNdEx + msglen
  7360. if postIndex < 0 {
  7361. return ErrInvalidLengthGenerated
  7362. }
  7363. if postIndex > l {
  7364. return io.ErrUnexpectedEOF
  7365. }
  7366. if m.Selector == nil {
  7367. m.Selector = make(map[string]string)
  7368. }
  7369. var mapkey string
  7370. var mapvalue string
  7371. for iNdEx < postIndex {
  7372. entryPreIndex := iNdEx
  7373. var wire uint64
  7374. for shift := uint(0); ; shift += 7 {
  7375. if shift >= 64 {
  7376. return ErrIntOverflowGenerated
  7377. }
  7378. if iNdEx >= l {
  7379. return io.ErrUnexpectedEOF
  7380. }
  7381. b := dAtA[iNdEx]
  7382. iNdEx++
  7383. wire |= uint64(b&0x7F) << shift
  7384. if b < 0x80 {
  7385. break
  7386. }
  7387. }
  7388. fieldNum := int32(wire >> 3)
  7389. if fieldNum == 1 {
  7390. var stringLenmapkey uint64
  7391. for shift := uint(0); ; shift += 7 {
  7392. if shift >= 64 {
  7393. return ErrIntOverflowGenerated
  7394. }
  7395. if iNdEx >= l {
  7396. return io.ErrUnexpectedEOF
  7397. }
  7398. b := dAtA[iNdEx]
  7399. iNdEx++
  7400. stringLenmapkey |= uint64(b&0x7F) << shift
  7401. if b < 0x80 {
  7402. break
  7403. }
  7404. }
  7405. intStringLenmapkey := int(stringLenmapkey)
  7406. if intStringLenmapkey < 0 {
  7407. return ErrInvalidLengthGenerated
  7408. }
  7409. postStringIndexmapkey := iNdEx + intStringLenmapkey
  7410. if postStringIndexmapkey < 0 {
  7411. return ErrInvalidLengthGenerated
  7412. }
  7413. if postStringIndexmapkey > l {
  7414. return io.ErrUnexpectedEOF
  7415. }
  7416. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  7417. iNdEx = postStringIndexmapkey
  7418. } else if fieldNum == 2 {
  7419. var stringLenmapvalue uint64
  7420. for shift := uint(0); ; shift += 7 {
  7421. if shift >= 64 {
  7422. return ErrIntOverflowGenerated
  7423. }
  7424. if iNdEx >= l {
  7425. return io.ErrUnexpectedEOF
  7426. }
  7427. b := dAtA[iNdEx]
  7428. iNdEx++
  7429. stringLenmapvalue |= uint64(b&0x7F) << shift
  7430. if b < 0x80 {
  7431. break
  7432. }
  7433. }
  7434. intStringLenmapvalue := int(stringLenmapvalue)
  7435. if intStringLenmapvalue < 0 {
  7436. return ErrInvalidLengthGenerated
  7437. }
  7438. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  7439. if postStringIndexmapvalue < 0 {
  7440. return ErrInvalidLengthGenerated
  7441. }
  7442. if postStringIndexmapvalue > l {
  7443. return io.ErrUnexpectedEOF
  7444. }
  7445. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  7446. iNdEx = postStringIndexmapvalue
  7447. } else {
  7448. iNdEx = entryPreIndex
  7449. skippy, err := skipGenerated(dAtA[iNdEx:])
  7450. if err != nil {
  7451. return err
  7452. }
  7453. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7454. return ErrInvalidLengthGenerated
  7455. }
  7456. if (iNdEx + skippy) > postIndex {
  7457. return io.ErrUnexpectedEOF
  7458. }
  7459. iNdEx += skippy
  7460. }
  7461. }
  7462. m.Selector[mapkey] = mapvalue
  7463. iNdEx = postIndex
  7464. case 3:
  7465. if wireType != 2 {
  7466. return fmt.Errorf("proto: wrong wireType = %d for field TargetSelector", wireType)
  7467. }
  7468. var stringLen uint64
  7469. for shift := uint(0); ; shift += 7 {
  7470. if shift >= 64 {
  7471. return ErrIntOverflowGenerated
  7472. }
  7473. if iNdEx >= l {
  7474. return io.ErrUnexpectedEOF
  7475. }
  7476. b := dAtA[iNdEx]
  7477. iNdEx++
  7478. stringLen |= uint64(b&0x7F) << shift
  7479. if b < 0x80 {
  7480. break
  7481. }
  7482. }
  7483. intStringLen := int(stringLen)
  7484. if intStringLen < 0 {
  7485. return ErrInvalidLengthGenerated
  7486. }
  7487. postIndex := iNdEx + intStringLen
  7488. if postIndex < 0 {
  7489. return ErrInvalidLengthGenerated
  7490. }
  7491. if postIndex > l {
  7492. return io.ErrUnexpectedEOF
  7493. }
  7494. m.TargetSelector = string(dAtA[iNdEx:postIndex])
  7495. iNdEx = postIndex
  7496. default:
  7497. iNdEx = preIndex
  7498. skippy, err := skipGenerated(dAtA[iNdEx:])
  7499. if err != nil {
  7500. return err
  7501. }
  7502. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7503. return ErrInvalidLengthGenerated
  7504. }
  7505. if (iNdEx + skippy) > l {
  7506. return io.ErrUnexpectedEOF
  7507. }
  7508. iNdEx += skippy
  7509. }
  7510. }
  7511. if iNdEx > l {
  7512. return io.ErrUnexpectedEOF
  7513. }
  7514. return nil
  7515. }
  7516. func (m *StatefulSet) Unmarshal(dAtA []byte) error {
  7517. l := len(dAtA)
  7518. iNdEx := 0
  7519. for iNdEx < l {
  7520. preIndex := iNdEx
  7521. var wire uint64
  7522. for shift := uint(0); ; shift += 7 {
  7523. if shift >= 64 {
  7524. return ErrIntOverflowGenerated
  7525. }
  7526. if iNdEx >= l {
  7527. return io.ErrUnexpectedEOF
  7528. }
  7529. b := dAtA[iNdEx]
  7530. iNdEx++
  7531. wire |= uint64(b&0x7F) << shift
  7532. if b < 0x80 {
  7533. break
  7534. }
  7535. }
  7536. fieldNum := int32(wire >> 3)
  7537. wireType := int(wire & 0x7)
  7538. if wireType == 4 {
  7539. return fmt.Errorf("proto: StatefulSet: wiretype end group for non-group")
  7540. }
  7541. if fieldNum <= 0 {
  7542. return fmt.Errorf("proto: StatefulSet: illegal tag %d (wire type %d)", fieldNum, wire)
  7543. }
  7544. switch fieldNum {
  7545. case 1:
  7546. if wireType != 2 {
  7547. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  7548. }
  7549. var msglen int
  7550. for shift := uint(0); ; shift += 7 {
  7551. if shift >= 64 {
  7552. return ErrIntOverflowGenerated
  7553. }
  7554. if iNdEx >= l {
  7555. return io.ErrUnexpectedEOF
  7556. }
  7557. b := dAtA[iNdEx]
  7558. iNdEx++
  7559. msglen |= int(b&0x7F) << shift
  7560. if b < 0x80 {
  7561. break
  7562. }
  7563. }
  7564. if msglen < 0 {
  7565. return ErrInvalidLengthGenerated
  7566. }
  7567. postIndex := iNdEx + msglen
  7568. if postIndex < 0 {
  7569. return ErrInvalidLengthGenerated
  7570. }
  7571. if postIndex > l {
  7572. return io.ErrUnexpectedEOF
  7573. }
  7574. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7575. return err
  7576. }
  7577. iNdEx = postIndex
  7578. case 2:
  7579. if wireType != 2 {
  7580. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  7581. }
  7582. var msglen int
  7583. for shift := uint(0); ; shift += 7 {
  7584. if shift >= 64 {
  7585. return ErrIntOverflowGenerated
  7586. }
  7587. if iNdEx >= l {
  7588. return io.ErrUnexpectedEOF
  7589. }
  7590. b := dAtA[iNdEx]
  7591. iNdEx++
  7592. msglen |= int(b&0x7F) << shift
  7593. if b < 0x80 {
  7594. break
  7595. }
  7596. }
  7597. if msglen < 0 {
  7598. return ErrInvalidLengthGenerated
  7599. }
  7600. postIndex := iNdEx + msglen
  7601. if postIndex < 0 {
  7602. return ErrInvalidLengthGenerated
  7603. }
  7604. if postIndex > l {
  7605. return io.ErrUnexpectedEOF
  7606. }
  7607. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7608. return err
  7609. }
  7610. iNdEx = postIndex
  7611. case 3:
  7612. if wireType != 2 {
  7613. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  7614. }
  7615. var msglen int
  7616. for shift := uint(0); ; shift += 7 {
  7617. if shift >= 64 {
  7618. return ErrIntOverflowGenerated
  7619. }
  7620. if iNdEx >= l {
  7621. return io.ErrUnexpectedEOF
  7622. }
  7623. b := dAtA[iNdEx]
  7624. iNdEx++
  7625. msglen |= int(b&0x7F) << shift
  7626. if b < 0x80 {
  7627. break
  7628. }
  7629. }
  7630. if msglen < 0 {
  7631. return ErrInvalidLengthGenerated
  7632. }
  7633. postIndex := iNdEx + msglen
  7634. if postIndex < 0 {
  7635. return ErrInvalidLengthGenerated
  7636. }
  7637. if postIndex > l {
  7638. return io.ErrUnexpectedEOF
  7639. }
  7640. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7641. return err
  7642. }
  7643. iNdEx = postIndex
  7644. default:
  7645. iNdEx = preIndex
  7646. skippy, err := skipGenerated(dAtA[iNdEx:])
  7647. if err != nil {
  7648. return err
  7649. }
  7650. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7651. return ErrInvalidLengthGenerated
  7652. }
  7653. if (iNdEx + skippy) > l {
  7654. return io.ErrUnexpectedEOF
  7655. }
  7656. iNdEx += skippy
  7657. }
  7658. }
  7659. if iNdEx > l {
  7660. return io.ErrUnexpectedEOF
  7661. }
  7662. return nil
  7663. }
  7664. func (m *StatefulSetCondition) Unmarshal(dAtA []byte) error {
  7665. l := len(dAtA)
  7666. iNdEx := 0
  7667. for iNdEx < l {
  7668. preIndex := iNdEx
  7669. var wire uint64
  7670. for shift := uint(0); ; shift += 7 {
  7671. if shift >= 64 {
  7672. return ErrIntOverflowGenerated
  7673. }
  7674. if iNdEx >= l {
  7675. return io.ErrUnexpectedEOF
  7676. }
  7677. b := dAtA[iNdEx]
  7678. iNdEx++
  7679. wire |= uint64(b&0x7F) << shift
  7680. if b < 0x80 {
  7681. break
  7682. }
  7683. }
  7684. fieldNum := int32(wire >> 3)
  7685. wireType := int(wire & 0x7)
  7686. if wireType == 4 {
  7687. return fmt.Errorf("proto: StatefulSetCondition: wiretype end group for non-group")
  7688. }
  7689. if fieldNum <= 0 {
  7690. return fmt.Errorf("proto: StatefulSetCondition: illegal tag %d (wire type %d)", fieldNum, wire)
  7691. }
  7692. switch fieldNum {
  7693. case 1:
  7694. if wireType != 2 {
  7695. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  7696. }
  7697. var stringLen uint64
  7698. for shift := uint(0); ; shift += 7 {
  7699. if shift >= 64 {
  7700. return ErrIntOverflowGenerated
  7701. }
  7702. if iNdEx >= l {
  7703. return io.ErrUnexpectedEOF
  7704. }
  7705. b := dAtA[iNdEx]
  7706. iNdEx++
  7707. stringLen |= uint64(b&0x7F) << shift
  7708. if b < 0x80 {
  7709. break
  7710. }
  7711. }
  7712. intStringLen := int(stringLen)
  7713. if intStringLen < 0 {
  7714. return ErrInvalidLengthGenerated
  7715. }
  7716. postIndex := iNdEx + intStringLen
  7717. if postIndex < 0 {
  7718. return ErrInvalidLengthGenerated
  7719. }
  7720. if postIndex > l {
  7721. return io.ErrUnexpectedEOF
  7722. }
  7723. m.Type = StatefulSetConditionType(dAtA[iNdEx:postIndex])
  7724. iNdEx = postIndex
  7725. case 2:
  7726. if wireType != 2 {
  7727. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  7728. }
  7729. var stringLen uint64
  7730. for shift := uint(0); ; shift += 7 {
  7731. if shift >= 64 {
  7732. return ErrIntOverflowGenerated
  7733. }
  7734. if iNdEx >= l {
  7735. return io.ErrUnexpectedEOF
  7736. }
  7737. b := dAtA[iNdEx]
  7738. iNdEx++
  7739. stringLen |= uint64(b&0x7F) << shift
  7740. if b < 0x80 {
  7741. break
  7742. }
  7743. }
  7744. intStringLen := int(stringLen)
  7745. if intStringLen < 0 {
  7746. return ErrInvalidLengthGenerated
  7747. }
  7748. postIndex := iNdEx + intStringLen
  7749. if postIndex < 0 {
  7750. return ErrInvalidLengthGenerated
  7751. }
  7752. if postIndex > l {
  7753. return io.ErrUnexpectedEOF
  7754. }
  7755. m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex])
  7756. iNdEx = postIndex
  7757. case 3:
  7758. if wireType != 2 {
  7759. return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
  7760. }
  7761. var msglen int
  7762. for shift := uint(0); ; shift += 7 {
  7763. if shift >= 64 {
  7764. return ErrIntOverflowGenerated
  7765. }
  7766. if iNdEx >= l {
  7767. return io.ErrUnexpectedEOF
  7768. }
  7769. b := dAtA[iNdEx]
  7770. iNdEx++
  7771. msglen |= int(b&0x7F) << shift
  7772. if b < 0x80 {
  7773. break
  7774. }
  7775. }
  7776. if msglen < 0 {
  7777. return ErrInvalidLengthGenerated
  7778. }
  7779. postIndex := iNdEx + msglen
  7780. if postIndex < 0 {
  7781. return ErrInvalidLengthGenerated
  7782. }
  7783. if postIndex > l {
  7784. return io.ErrUnexpectedEOF
  7785. }
  7786. if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7787. return err
  7788. }
  7789. iNdEx = postIndex
  7790. case 4:
  7791. if wireType != 2 {
  7792. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  7793. }
  7794. var stringLen uint64
  7795. for shift := uint(0); ; shift += 7 {
  7796. if shift >= 64 {
  7797. return ErrIntOverflowGenerated
  7798. }
  7799. if iNdEx >= l {
  7800. return io.ErrUnexpectedEOF
  7801. }
  7802. b := dAtA[iNdEx]
  7803. iNdEx++
  7804. stringLen |= uint64(b&0x7F) << shift
  7805. if b < 0x80 {
  7806. break
  7807. }
  7808. }
  7809. intStringLen := int(stringLen)
  7810. if intStringLen < 0 {
  7811. return ErrInvalidLengthGenerated
  7812. }
  7813. postIndex := iNdEx + intStringLen
  7814. if postIndex < 0 {
  7815. return ErrInvalidLengthGenerated
  7816. }
  7817. if postIndex > l {
  7818. return io.ErrUnexpectedEOF
  7819. }
  7820. m.Reason = string(dAtA[iNdEx:postIndex])
  7821. iNdEx = postIndex
  7822. case 5:
  7823. if wireType != 2 {
  7824. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  7825. }
  7826. var stringLen uint64
  7827. for shift := uint(0); ; shift += 7 {
  7828. if shift >= 64 {
  7829. return ErrIntOverflowGenerated
  7830. }
  7831. if iNdEx >= l {
  7832. return io.ErrUnexpectedEOF
  7833. }
  7834. b := dAtA[iNdEx]
  7835. iNdEx++
  7836. stringLen |= uint64(b&0x7F) << shift
  7837. if b < 0x80 {
  7838. break
  7839. }
  7840. }
  7841. intStringLen := int(stringLen)
  7842. if intStringLen < 0 {
  7843. return ErrInvalidLengthGenerated
  7844. }
  7845. postIndex := iNdEx + intStringLen
  7846. if postIndex < 0 {
  7847. return ErrInvalidLengthGenerated
  7848. }
  7849. if postIndex > l {
  7850. return io.ErrUnexpectedEOF
  7851. }
  7852. m.Message = string(dAtA[iNdEx:postIndex])
  7853. iNdEx = postIndex
  7854. default:
  7855. iNdEx = preIndex
  7856. skippy, err := skipGenerated(dAtA[iNdEx:])
  7857. if err != nil {
  7858. return err
  7859. }
  7860. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7861. return ErrInvalidLengthGenerated
  7862. }
  7863. if (iNdEx + skippy) > l {
  7864. return io.ErrUnexpectedEOF
  7865. }
  7866. iNdEx += skippy
  7867. }
  7868. }
  7869. if iNdEx > l {
  7870. return io.ErrUnexpectedEOF
  7871. }
  7872. return nil
  7873. }
  7874. func (m *StatefulSetList) Unmarshal(dAtA []byte) error {
  7875. l := len(dAtA)
  7876. iNdEx := 0
  7877. for iNdEx < l {
  7878. preIndex := iNdEx
  7879. var wire uint64
  7880. for shift := uint(0); ; shift += 7 {
  7881. if shift >= 64 {
  7882. return ErrIntOverflowGenerated
  7883. }
  7884. if iNdEx >= l {
  7885. return io.ErrUnexpectedEOF
  7886. }
  7887. b := dAtA[iNdEx]
  7888. iNdEx++
  7889. wire |= uint64(b&0x7F) << shift
  7890. if b < 0x80 {
  7891. break
  7892. }
  7893. }
  7894. fieldNum := int32(wire >> 3)
  7895. wireType := int(wire & 0x7)
  7896. if wireType == 4 {
  7897. return fmt.Errorf("proto: StatefulSetList: wiretype end group for non-group")
  7898. }
  7899. if fieldNum <= 0 {
  7900. return fmt.Errorf("proto: StatefulSetList: illegal tag %d (wire type %d)", fieldNum, wire)
  7901. }
  7902. switch fieldNum {
  7903. case 1:
  7904. if wireType != 2 {
  7905. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  7906. }
  7907. var msglen int
  7908. for shift := uint(0); ; shift += 7 {
  7909. if shift >= 64 {
  7910. return ErrIntOverflowGenerated
  7911. }
  7912. if iNdEx >= l {
  7913. return io.ErrUnexpectedEOF
  7914. }
  7915. b := dAtA[iNdEx]
  7916. iNdEx++
  7917. msglen |= int(b&0x7F) << shift
  7918. if b < 0x80 {
  7919. break
  7920. }
  7921. }
  7922. if msglen < 0 {
  7923. return ErrInvalidLengthGenerated
  7924. }
  7925. postIndex := iNdEx + msglen
  7926. if postIndex < 0 {
  7927. return ErrInvalidLengthGenerated
  7928. }
  7929. if postIndex > l {
  7930. return io.ErrUnexpectedEOF
  7931. }
  7932. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7933. return err
  7934. }
  7935. iNdEx = postIndex
  7936. case 2:
  7937. if wireType != 2 {
  7938. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  7939. }
  7940. var msglen int
  7941. for shift := uint(0); ; shift += 7 {
  7942. if shift >= 64 {
  7943. return ErrIntOverflowGenerated
  7944. }
  7945. if iNdEx >= l {
  7946. return io.ErrUnexpectedEOF
  7947. }
  7948. b := dAtA[iNdEx]
  7949. iNdEx++
  7950. msglen |= int(b&0x7F) << shift
  7951. if b < 0x80 {
  7952. break
  7953. }
  7954. }
  7955. if msglen < 0 {
  7956. return ErrInvalidLengthGenerated
  7957. }
  7958. postIndex := iNdEx + msglen
  7959. if postIndex < 0 {
  7960. return ErrInvalidLengthGenerated
  7961. }
  7962. if postIndex > l {
  7963. return io.ErrUnexpectedEOF
  7964. }
  7965. m.Items = append(m.Items, StatefulSet{})
  7966. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7967. return err
  7968. }
  7969. iNdEx = postIndex
  7970. default:
  7971. iNdEx = preIndex
  7972. skippy, err := skipGenerated(dAtA[iNdEx:])
  7973. if err != nil {
  7974. return err
  7975. }
  7976. if (skippy < 0) || (iNdEx+skippy) < 0 {
  7977. return ErrInvalidLengthGenerated
  7978. }
  7979. if (iNdEx + skippy) > l {
  7980. return io.ErrUnexpectedEOF
  7981. }
  7982. iNdEx += skippy
  7983. }
  7984. }
  7985. if iNdEx > l {
  7986. return io.ErrUnexpectedEOF
  7987. }
  7988. return nil
  7989. }
  7990. func (m *StatefulSetSpec) Unmarshal(dAtA []byte) error {
  7991. l := len(dAtA)
  7992. iNdEx := 0
  7993. for iNdEx < l {
  7994. preIndex := iNdEx
  7995. var wire uint64
  7996. for shift := uint(0); ; shift += 7 {
  7997. if shift >= 64 {
  7998. return ErrIntOverflowGenerated
  7999. }
  8000. if iNdEx >= l {
  8001. return io.ErrUnexpectedEOF
  8002. }
  8003. b := dAtA[iNdEx]
  8004. iNdEx++
  8005. wire |= uint64(b&0x7F) << shift
  8006. if b < 0x80 {
  8007. break
  8008. }
  8009. }
  8010. fieldNum := int32(wire >> 3)
  8011. wireType := int(wire & 0x7)
  8012. if wireType == 4 {
  8013. return fmt.Errorf("proto: StatefulSetSpec: wiretype end group for non-group")
  8014. }
  8015. if fieldNum <= 0 {
  8016. return fmt.Errorf("proto: StatefulSetSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  8017. }
  8018. switch fieldNum {
  8019. case 1:
  8020. if wireType != 0 {
  8021. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  8022. }
  8023. var v int32
  8024. for shift := uint(0); ; shift += 7 {
  8025. if shift >= 64 {
  8026. return ErrIntOverflowGenerated
  8027. }
  8028. if iNdEx >= l {
  8029. return io.ErrUnexpectedEOF
  8030. }
  8031. b := dAtA[iNdEx]
  8032. iNdEx++
  8033. v |= int32(b&0x7F) << shift
  8034. if b < 0x80 {
  8035. break
  8036. }
  8037. }
  8038. m.Replicas = &v
  8039. case 2:
  8040. if wireType != 2 {
  8041. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  8042. }
  8043. var msglen int
  8044. for shift := uint(0); ; shift += 7 {
  8045. if shift >= 64 {
  8046. return ErrIntOverflowGenerated
  8047. }
  8048. if iNdEx >= l {
  8049. return io.ErrUnexpectedEOF
  8050. }
  8051. b := dAtA[iNdEx]
  8052. iNdEx++
  8053. msglen |= int(b&0x7F) << shift
  8054. if b < 0x80 {
  8055. break
  8056. }
  8057. }
  8058. if msglen < 0 {
  8059. return ErrInvalidLengthGenerated
  8060. }
  8061. postIndex := iNdEx + msglen
  8062. if postIndex < 0 {
  8063. return ErrInvalidLengthGenerated
  8064. }
  8065. if postIndex > l {
  8066. return io.ErrUnexpectedEOF
  8067. }
  8068. if m.Selector == nil {
  8069. m.Selector = &v1.LabelSelector{}
  8070. }
  8071. if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8072. return err
  8073. }
  8074. iNdEx = postIndex
  8075. case 3:
  8076. if wireType != 2 {
  8077. return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
  8078. }
  8079. var msglen int
  8080. for shift := uint(0); ; shift += 7 {
  8081. if shift >= 64 {
  8082. return ErrIntOverflowGenerated
  8083. }
  8084. if iNdEx >= l {
  8085. return io.ErrUnexpectedEOF
  8086. }
  8087. b := dAtA[iNdEx]
  8088. iNdEx++
  8089. msglen |= int(b&0x7F) << shift
  8090. if b < 0x80 {
  8091. break
  8092. }
  8093. }
  8094. if msglen < 0 {
  8095. return ErrInvalidLengthGenerated
  8096. }
  8097. postIndex := iNdEx + msglen
  8098. if postIndex < 0 {
  8099. return ErrInvalidLengthGenerated
  8100. }
  8101. if postIndex > l {
  8102. return io.ErrUnexpectedEOF
  8103. }
  8104. if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8105. return err
  8106. }
  8107. iNdEx = postIndex
  8108. case 4:
  8109. if wireType != 2 {
  8110. return fmt.Errorf("proto: wrong wireType = %d for field VolumeClaimTemplates", wireType)
  8111. }
  8112. var msglen int
  8113. for shift := uint(0); ; shift += 7 {
  8114. if shift >= 64 {
  8115. return ErrIntOverflowGenerated
  8116. }
  8117. if iNdEx >= l {
  8118. return io.ErrUnexpectedEOF
  8119. }
  8120. b := dAtA[iNdEx]
  8121. iNdEx++
  8122. msglen |= int(b&0x7F) << shift
  8123. if b < 0x80 {
  8124. break
  8125. }
  8126. }
  8127. if msglen < 0 {
  8128. return ErrInvalidLengthGenerated
  8129. }
  8130. postIndex := iNdEx + msglen
  8131. if postIndex < 0 {
  8132. return ErrInvalidLengthGenerated
  8133. }
  8134. if postIndex > l {
  8135. return io.ErrUnexpectedEOF
  8136. }
  8137. m.VolumeClaimTemplates = append(m.VolumeClaimTemplates, v11.PersistentVolumeClaim{})
  8138. if err := m.VolumeClaimTemplates[len(m.VolumeClaimTemplates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8139. return err
  8140. }
  8141. iNdEx = postIndex
  8142. case 5:
  8143. if wireType != 2 {
  8144. return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", wireType)
  8145. }
  8146. var stringLen uint64
  8147. for shift := uint(0); ; shift += 7 {
  8148. if shift >= 64 {
  8149. return ErrIntOverflowGenerated
  8150. }
  8151. if iNdEx >= l {
  8152. return io.ErrUnexpectedEOF
  8153. }
  8154. b := dAtA[iNdEx]
  8155. iNdEx++
  8156. stringLen |= uint64(b&0x7F) << shift
  8157. if b < 0x80 {
  8158. break
  8159. }
  8160. }
  8161. intStringLen := int(stringLen)
  8162. if intStringLen < 0 {
  8163. return ErrInvalidLengthGenerated
  8164. }
  8165. postIndex := iNdEx + intStringLen
  8166. if postIndex < 0 {
  8167. return ErrInvalidLengthGenerated
  8168. }
  8169. if postIndex > l {
  8170. return io.ErrUnexpectedEOF
  8171. }
  8172. m.ServiceName = string(dAtA[iNdEx:postIndex])
  8173. iNdEx = postIndex
  8174. case 6:
  8175. if wireType != 2 {
  8176. return fmt.Errorf("proto: wrong wireType = %d for field PodManagementPolicy", wireType)
  8177. }
  8178. var stringLen uint64
  8179. for shift := uint(0); ; shift += 7 {
  8180. if shift >= 64 {
  8181. return ErrIntOverflowGenerated
  8182. }
  8183. if iNdEx >= l {
  8184. return io.ErrUnexpectedEOF
  8185. }
  8186. b := dAtA[iNdEx]
  8187. iNdEx++
  8188. stringLen |= uint64(b&0x7F) << shift
  8189. if b < 0x80 {
  8190. break
  8191. }
  8192. }
  8193. intStringLen := int(stringLen)
  8194. if intStringLen < 0 {
  8195. return ErrInvalidLengthGenerated
  8196. }
  8197. postIndex := iNdEx + intStringLen
  8198. if postIndex < 0 {
  8199. return ErrInvalidLengthGenerated
  8200. }
  8201. if postIndex > l {
  8202. return io.ErrUnexpectedEOF
  8203. }
  8204. m.PodManagementPolicy = PodManagementPolicyType(dAtA[iNdEx:postIndex])
  8205. iNdEx = postIndex
  8206. case 7:
  8207. if wireType != 2 {
  8208. return fmt.Errorf("proto: wrong wireType = %d for field UpdateStrategy", wireType)
  8209. }
  8210. var msglen int
  8211. for shift := uint(0); ; shift += 7 {
  8212. if shift >= 64 {
  8213. return ErrIntOverflowGenerated
  8214. }
  8215. if iNdEx >= l {
  8216. return io.ErrUnexpectedEOF
  8217. }
  8218. b := dAtA[iNdEx]
  8219. iNdEx++
  8220. msglen |= int(b&0x7F) << shift
  8221. if b < 0x80 {
  8222. break
  8223. }
  8224. }
  8225. if msglen < 0 {
  8226. return ErrInvalidLengthGenerated
  8227. }
  8228. postIndex := iNdEx + msglen
  8229. if postIndex < 0 {
  8230. return ErrInvalidLengthGenerated
  8231. }
  8232. if postIndex > l {
  8233. return io.ErrUnexpectedEOF
  8234. }
  8235. if err := m.UpdateStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8236. return err
  8237. }
  8238. iNdEx = postIndex
  8239. case 8:
  8240. if wireType != 0 {
  8241. return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType)
  8242. }
  8243. var v int32
  8244. for shift := uint(0); ; shift += 7 {
  8245. if shift >= 64 {
  8246. return ErrIntOverflowGenerated
  8247. }
  8248. if iNdEx >= l {
  8249. return io.ErrUnexpectedEOF
  8250. }
  8251. b := dAtA[iNdEx]
  8252. iNdEx++
  8253. v |= int32(b&0x7F) << shift
  8254. if b < 0x80 {
  8255. break
  8256. }
  8257. }
  8258. m.RevisionHistoryLimit = &v
  8259. default:
  8260. iNdEx = preIndex
  8261. skippy, err := skipGenerated(dAtA[iNdEx:])
  8262. if err != nil {
  8263. return err
  8264. }
  8265. if (skippy < 0) || (iNdEx+skippy) < 0 {
  8266. return ErrInvalidLengthGenerated
  8267. }
  8268. if (iNdEx + skippy) > l {
  8269. return io.ErrUnexpectedEOF
  8270. }
  8271. iNdEx += skippy
  8272. }
  8273. }
  8274. if iNdEx > l {
  8275. return io.ErrUnexpectedEOF
  8276. }
  8277. return nil
  8278. }
  8279. func (m *StatefulSetStatus) Unmarshal(dAtA []byte) error {
  8280. l := len(dAtA)
  8281. iNdEx := 0
  8282. for iNdEx < l {
  8283. preIndex := iNdEx
  8284. var wire uint64
  8285. for shift := uint(0); ; shift += 7 {
  8286. if shift >= 64 {
  8287. return ErrIntOverflowGenerated
  8288. }
  8289. if iNdEx >= l {
  8290. return io.ErrUnexpectedEOF
  8291. }
  8292. b := dAtA[iNdEx]
  8293. iNdEx++
  8294. wire |= uint64(b&0x7F) << shift
  8295. if b < 0x80 {
  8296. break
  8297. }
  8298. }
  8299. fieldNum := int32(wire >> 3)
  8300. wireType := int(wire & 0x7)
  8301. if wireType == 4 {
  8302. return fmt.Errorf("proto: StatefulSetStatus: wiretype end group for non-group")
  8303. }
  8304. if fieldNum <= 0 {
  8305. return fmt.Errorf("proto: StatefulSetStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  8306. }
  8307. switch fieldNum {
  8308. case 1:
  8309. if wireType != 0 {
  8310. return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
  8311. }
  8312. m.ObservedGeneration = 0
  8313. for shift := uint(0); ; shift += 7 {
  8314. if shift >= 64 {
  8315. return ErrIntOverflowGenerated
  8316. }
  8317. if iNdEx >= l {
  8318. return io.ErrUnexpectedEOF
  8319. }
  8320. b := dAtA[iNdEx]
  8321. iNdEx++
  8322. m.ObservedGeneration |= int64(b&0x7F) << shift
  8323. if b < 0x80 {
  8324. break
  8325. }
  8326. }
  8327. case 2:
  8328. if wireType != 0 {
  8329. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  8330. }
  8331. m.Replicas = 0
  8332. for shift := uint(0); ; shift += 7 {
  8333. if shift >= 64 {
  8334. return ErrIntOverflowGenerated
  8335. }
  8336. if iNdEx >= l {
  8337. return io.ErrUnexpectedEOF
  8338. }
  8339. b := dAtA[iNdEx]
  8340. iNdEx++
  8341. m.Replicas |= int32(b&0x7F) << shift
  8342. if b < 0x80 {
  8343. break
  8344. }
  8345. }
  8346. case 3:
  8347. if wireType != 0 {
  8348. return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType)
  8349. }
  8350. m.ReadyReplicas = 0
  8351. for shift := uint(0); ; shift += 7 {
  8352. if shift >= 64 {
  8353. return ErrIntOverflowGenerated
  8354. }
  8355. if iNdEx >= l {
  8356. return io.ErrUnexpectedEOF
  8357. }
  8358. b := dAtA[iNdEx]
  8359. iNdEx++
  8360. m.ReadyReplicas |= int32(b&0x7F) << shift
  8361. if b < 0x80 {
  8362. break
  8363. }
  8364. }
  8365. case 4:
  8366. if wireType != 0 {
  8367. return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType)
  8368. }
  8369. m.CurrentReplicas = 0
  8370. for shift := uint(0); ; shift += 7 {
  8371. if shift >= 64 {
  8372. return ErrIntOverflowGenerated
  8373. }
  8374. if iNdEx >= l {
  8375. return io.ErrUnexpectedEOF
  8376. }
  8377. b := dAtA[iNdEx]
  8378. iNdEx++
  8379. m.CurrentReplicas |= int32(b&0x7F) << shift
  8380. if b < 0x80 {
  8381. break
  8382. }
  8383. }
  8384. case 5:
  8385. if wireType != 0 {
  8386. return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType)
  8387. }
  8388. m.UpdatedReplicas = 0
  8389. for shift := uint(0); ; shift += 7 {
  8390. if shift >= 64 {
  8391. return ErrIntOverflowGenerated
  8392. }
  8393. if iNdEx >= l {
  8394. return io.ErrUnexpectedEOF
  8395. }
  8396. b := dAtA[iNdEx]
  8397. iNdEx++
  8398. m.UpdatedReplicas |= int32(b&0x7F) << shift
  8399. if b < 0x80 {
  8400. break
  8401. }
  8402. }
  8403. case 6:
  8404. if wireType != 2 {
  8405. return fmt.Errorf("proto: wrong wireType = %d for field CurrentRevision", wireType)
  8406. }
  8407. var stringLen uint64
  8408. for shift := uint(0); ; shift += 7 {
  8409. if shift >= 64 {
  8410. return ErrIntOverflowGenerated
  8411. }
  8412. if iNdEx >= l {
  8413. return io.ErrUnexpectedEOF
  8414. }
  8415. b := dAtA[iNdEx]
  8416. iNdEx++
  8417. stringLen |= uint64(b&0x7F) << shift
  8418. if b < 0x80 {
  8419. break
  8420. }
  8421. }
  8422. intStringLen := int(stringLen)
  8423. if intStringLen < 0 {
  8424. return ErrInvalidLengthGenerated
  8425. }
  8426. postIndex := iNdEx + intStringLen
  8427. if postIndex < 0 {
  8428. return ErrInvalidLengthGenerated
  8429. }
  8430. if postIndex > l {
  8431. return io.ErrUnexpectedEOF
  8432. }
  8433. m.CurrentRevision = string(dAtA[iNdEx:postIndex])
  8434. iNdEx = postIndex
  8435. case 7:
  8436. if wireType != 2 {
  8437. return fmt.Errorf("proto: wrong wireType = %d for field UpdateRevision", wireType)
  8438. }
  8439. var stringLen uint64
  8440. for shift := uint(0); ; shift += 7 {
  8441. if shift >= 64 {
  8442. return ErrIntOverflowGenerated
  8443. }
  8444. if iNdEx >= l {
  8445. return io.ErrUnexpectedEOF
  8446. }
  8447. b := dAtA[iNdEx]
  8448. iNdEx++
  8449. stringLen |= uint64(b&0x7F) << shift
  8450. if b < 0x80 {
  8451. break
  8452. }
  8453. }
  8454. intStringLen := int(stringLen)
  8455. if intStringLen < 0 {
  8456. return ErrInvalidLengthGenerated
  8457. }
  8458. postIndex := iNdEx + intStringLen
  8459. if postIndex < 0 {
  8460. return ErrInvalidLengthGenerated
  8461. }
  8462. if postIndex > l {
  8463. return io.ErrUnexpectedEOF
  8464. }
  8465. m.UpdateRevision = string(dAtA[iNdEx:postIndex])
  8466. iNdEx = postIndex
  8467. case 9:
  8468. if wireType != 0 {
  8469. return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType)
  8470. }
  8471. var v int32
  8472. for shift := uint(0); ; shift += 7 {
  8473. if shift >= 64 {
  8474. return ErrIntOverflowGenerated
  8475. }
  8476. if iNdEx >= l {
  8477. return io.ErrUnexpectedEOF
  8478. }
  8479. b := dAtA[iNdEx]
  8480. iNdEx++
  8481. v |= int32(b&0x7F) << shift
  8482. if b < 0x80 {
  8483. break
  8484. }
  8485. }
  8486. m.CollisionCount = &v
  8487. case 10:
  8488. if wireType != 2 {
  8489. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  8490. }
  8491. var msglen int
  8492. for shift := uint(0); ; shift += 7 {
  8493. if shift >= 64 {
  8494. return ErrIntOverflowGenerated
  8495. }
  8496. if iNdEx >= l {
  8497. return io.ErrUnexpectedEOF
  8498. }
  8499. b := dAtA[iNdEx]
  8500. iNdEx++
  8501. msglen |= int(b&0x7F) << shift
  8502. if b < 0x80 {
  8503. break
  8504. }
  8505. }
  8506. if msglen < 0 {
  8507. return ErrInvalidLengthGenerated
  8508. }
  8509. postIndex := iNdEx + msglen
  8510. if postIndex < 0 {
  8511. return ErrInvalidLengthGenerated
  8512. }
  8513. if postIndex > l {
  8514. return io.ErrUnexpectedEOF
  8515. }
  8516. m.Conditions = append(m.Conditions, StatefulSetCondition{})
  8517. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8518. return err
  8519. }
  8520. iNdEx = postIndex
  8521. default:
  8522. iNdEx = preIndex
  8523. skippy, err := skipGenerated(dAtA[iNdEx:])
  8524. if err != nil {
  8525. return err
  8526. }
  8527. if (skippy < 0) || (iNdEx+skippy) < 0 {
  8528. return ErrInvalidLengthGenerated
  8529. }
  8530. if (iNdEx + skippy) > l {
  8531. return io.ErrUnexpectedEOF
  8532. }
  8533. iNdEx += skippy
  8534. }
  8535. }
  8536. if iNdEx > l {
  8537. return io.ErrUnexpectedEOF
  8538. }
  8539. return nil
  8540. }
  8541. func (m *StatefulSetUpdateStrategy) Unmarshal(dAtA []byte) error {
  8542. l := len(dAtA)
  8543. iNdEx := 0
  8544. for iNdEx < l {
  8545. preIndex := iNdEx
  8546. var wire uint64
  8547. for shift := uint(0); ; shift += 7 {
  8548. if shift >= 64 {
  8549. return ErrIntOverflowGenerated
  8550. }
  8551. if iNdEx >= l {
  8552. return io.ErrUnexpectedEOF
  8553. }
  8554. b := dAtA[iNdEx]
  8555. iNdEx++
  8556. wire |= uint64(b&0x7F) << shift
  8557. if b < 0x80 {
  8558. break
  8559. }
  8560. }
  8561. fieldNum := int32(wire >> 3)
  8562. wireType := int(wire & 0x7)
  8563. if wireType == 4 {
  8564. return fmt.Errorf("proto: StatefulSetUpdateStrategy: wiretype end group for non-group")
  8565. }
  8566. if fieldNum <= 0 {
  8567. return fmt.Errorf("proto: StatefulSetUpdateStrategy: illegal tag %d (wire type %d)", fieldNum, wire)
  8568. }
  8569. switch fieldNum {
  8570. case 1:
  8571. if wireType != 2 {
  8572. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  8573. }
  8574. var stringLen uint64
  8575. for shift := uint(0); ; shift += 7 {
  8576. if shift >= 64 {
  8577. return ErrIntOverflowGenerated
  8578. }
  8579. if iNdEx >= l {
  8580. return io.ErrUnexpectedEOF
  8581. }
  8582. b := dAtA[iNdEx]
  8583. iNdEx++
  8584. stringLen |= uint64(b&0x7F) << shift
  8585. if b < 0x80 {
  8586. break
  8587. }
  8588. }
  8589. intStringLen := int(stringLen)
  8590. if intStringLen < 0 {
  8591. return ErrInvalidLengthGenerated
  8592. }
  8593. postIndex := iNdEx + intStringLen
  8594. if postIndex < 0 {
  8595. return ErrInvalidLengthGenerated
  8596. }
  8597. if postIndex > l {
  8598. return io.ErrUnexpectedEOF
  8599. }
  8600. m.Type = StatefulSetUpdateStrategyType(dAtA[iNdEx:postIndex])
  8601. iNdEx = postIndex
  8602. case 2:
  8603. if wireType != 2 {
  8604. return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType)
  8605. }
  8606. var msglen int
  8607. for shift := uint(0); ; shift += 7 {
  8608. if shift >= 64 {
  8609. return ErrIntOverflowGenerated
  8610. }
  8611. if iNdEx >= l {
  8612. return io.ErrUnexpectedEOF
  8613. }
  8614. b := dAtA[iNdEx]
  8615. iNdEx++
  8616. msglen |= int(b&0x7F) << shift
  8617. if b < 0x80 {
  8618. break
  8619. }
  8620. }
  8621. if msglen < 0 {
  8622. return ErrInvalidLengthGenerated
  8623. }
  8624. postIndex := iNdEx + msglen
  8625. if postIndex < 0 {
  8626. return ErrInvalidLengthGenerated
  8627. }
  8628. if postIndex > l {
  8629. return io.ErrUnexpectedEOF
  8630. }
  8631. if m.RollingUpdate == nil {
  8632. m.RollingUpdate = &RollingUpdateStatefulSetStrategy{}
  8633. }
  8634. if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8635. return err
  8636. }
  8637. iNdEx = postIndex
  8638. default:
  8639. iNdEx = preIndex
  8640. skippy, err := skipGenerated(dAtA[iNdEx:])
  8641. if err != nil {
  8642. return err
  8643. }
  8644. if (skippy < 0) || (iNdEx+skippy) < 0 {
  8645. return ErrInvalidLengthGenerated
  8646. }
  8647. if (iNdEx + skippy) > l {
  8648. return io.ErrUnexpectedEOF
  8649. }
  8650. iNdEx += skippy
  8651. }
  8652. }
  8653. if iNdEx > l {
  8654. return io.ErrUnexpectedEOF
  8655. }
  8656. return nil
  8657. }
  8658. func skipGenerated(dAtA []byte) (n int, err error) {
  8659. l := len(dAtA)
  8660. iNdEx := 0
  8661. depth := 0
  8662. for iNdEx < l {
  8663. var wire uint64
  8664. for shift := uint(0); ; shift += 7 {
  8665. if shift >= 64 {
  8666. return 0, ErrIntOverflowGenerated
  8667. }
  8668. if iNdEx >= l {
  8669. return 0, io.ErrUnexpectedEOF
  8670. }
  8671. b := dAtA[iNdEx]
  8672. iNdEx++
  8673. wire |= (uint64(b) & 0x7F) << shift
  8674. if b < 0x80 {
  8675. break
  8676. }
  8677. }
  8678. wireType := int(wire & 0x7)
  8679. switch wireType {
  8680. case 0:
  8681. for shift := uint(0); ; shift += 7 {
  8682. if shift >= 64 {
  8683. return 0, ErrIntOverflowGenerated
  8684. }
  8685. if iNdEx >= l {
  8686. return 0, io.ErrUnexpectedEOF
  8687. }
  8688. iNdEx++
  8689. if dAtA[iNdEx-1] < 0x80 {
  8690. break
  8691. }
  8692. }
  8693. case 1:
  8694. iNdEx += 8
  8695. case 2:
  8696. var length int
  8697. for shift := uint(0); ; shift += 7 {
  8698. if shift >= 64 {
  8699. return 0, ErrIntOverflowGenerated
  8700. }
  8701. if iNdEx >= l {
  8702. return 0, io.ErrUnexpectedEOF
  8703. }
  8704. b := dAtA[iNdEx]
  8705. iNdEx++
  8706. length |= (int(b) & 0x7F) << shift
  8707. if b < 0x80 {
  8708. break
  8709. }
  8710. }
  8711. if length < 0 {
  8712. return 0, ErrInvalidLengthGenerated
  8713. }
  8714. iNdEx += length
  8715. case 3:
  8716. depth++
  8717. case 4:
  8718. if depth == 0 {
  8719. return 0, ErrUnexpectedEndOfGroupGenerated
  8720. }
  8721. depth--
  8722. case 5:
  8723. iNdEx += 4
  8724. default:
  8725. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  8726. }
  8727. if iNdEx < 0 {
  8728. return 0, ErrInvalidLengthGenerated
  8729. }
  8730. if depth == 0 {
  8731. return iNdEx, nil
  8732. }
  8733. }
  8734. return 0, io.ErrUnexpectedEOF
  8735. }
  8736. var (
  8737. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  8738. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  8739. ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
  8740. )