generated.pb.go 163 KB

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