generated.pb.go 155 KB

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