generated.pb.go 169 KB

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