generated.pb.go 236 KB

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