generated.pb.go 202 KB

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