generated.pb.go 154 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183
  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) || (iNdEx+skippy) < 0 {
  2596. return ErrInvalidLengthGenerated
  2597. }
  2598. if (iNdEx + skippy) > l {
  2599. return io.ErrUnexpectedEOF
  2600. }
  2601. iNdEx += skippy
  2602. }
  2603. }
  2604. if iNdEx > l {
  2605. return io.ErrUnexpectedEOF
  2606. }
  2607. return nil
  2608. }
  2609. func (m *ControllerRevisionList) Unmarshal(dAtA []byte) error {
  2610. l := len(dAtA)
  2611. iNdEx := 0
  2612. for iNdEx < l {
  2613. preIndex := iNdEx
  2614. var wire uint64
  2615. for shift := uint(0); ; shift += 7 {
  2616. if shift >= 64 {
  2617. return ErrIntOverflowGenerated
  2618. }
  2619. if iNdEx >= l {
  2620. return io.ErrUnexpectedEOF
  2621. }
  2622. b := dAtA[iNdEx]
  2623. iNdEx++
  2624. wire |= uint64(b&0x7F) << shift
  2625. if b < 0x80 {
  2626. break
  2627. }
  2628. }
  2629. fieldNum := int32(wire >> 3)
  2630. wireType := int(wire & 0x7)
  2631. if wireType == 4 {
  2632. return fmt.Errorf("proto: ControllerRevisionList: wiretype end group for non-group")
  2633. }
  2634. if fieldNum <= 0 {
  2635. return fmt.Errorf("proto: ControllerRevisionList: illegal tag %d (wire type %d)", fieldNum, wire)
  2636. }
  2637. switch fieldNum {
  2638. case 1:
  2639. if wireType != 2 {
  2640. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  2641. }
  2642. var msglen int
  2643. for shift := uint(0); ; shift += 7 {
  2644. if shift >= 64 {
  2645. return ErrIntOverflowGenerated
  2646. }
  2647. if iNdEx >= l {
  2648. return io.ErrUnexpectedEOF
  2649. }
  2650. b := dAtA[iNdEx]
  2651. iNdEx++
  2652. msglen |= int(b&0x7F) << shift
  2653. if b < 0x80 {
  2654. break
  2655. }
  2656. }
  2657. if msglen < 0 {
  2658. return ErrInvalidLengthGenerated
  2659. }
  2660. postIndex := iNdEx + msglen
  2661. if postIndex < 0 {
  2662. return ErrInvalidLengthGenerated
  2663. }
  2664. if postIndex > l {
  2665. return io.ErrUnexpectedEOF
  2666. }
  2667. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2668. return err
  2669. }
  2670. iNdEx = postIndex
  2671. case 2:
  2672. if wireType != 2 {
  2673. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  2674. }
  2675. var msglen int
  2676. for shift := uint(0); ; shift += 7 {
  2677. if shift >= 64 {
  2678. return ErrIntOverflowGenerated
  2679. }
  2680. if iNdEx >= l {
  2681. return io.ErrUnexpectedEOF
  2682. }
  2683. b := dAtA[iNdEx]
  2684. iNdEx++
  2685. msglen |= int(b&0x7F) << shift
  2686. if b < 0x80 {
  2687. break
  2688. }
  2689. }
  2690. if msglen < 0 {
  2691. return ErrInvalidLengthGenerated
  2692. }
  2693. postIndex := iNdEx + msglen
  2694. if postIndex < 0 {
  2695. return ErrInvalidLengthGenerated
  2696. }
  2697. if postIndex > l {
  2698. return io.ErrUnexpectedEOF
  2699. }
  2700. m.Items = append(m.Items, ControllerRevision{})
  2701. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2702. return err
  2703. }
  2704. iNdEx = postIndex
  2705. default:
  2706. iNdEx = preIndex
  2707. skippy, err := skipGenerated(dAtA[iNdEx:])
  2708. if err != nil {
  2709. return err
  2710. }
  2711. if (skippy < 0) || (iNdEx+skippy) < 0 {
  2712. return ErrInvalidLengthGenerated
  2713. }
  2714. if (iNdEx + skippy) > l {
  2715. return io.ErrUnexpectedEOF
  2716. }
  2717. iNdEx += skippy
  2718. }
  2719. }
  2720. if iNdEx > l {
  2721. return io.ErrUnexpectedEOF
  2722. }
  2723. return nil
  2724. }
  2725. func (m *Deployment) Unmarshal(dAtA []byte) error {
  2726. l := len(dAtA)
  2727. iNdEx := 0
  2728. for iNdEx < l {
  2729. preIndex := iNdEx
  2730. var wire uint64
  2731. for shift := uint(0); ; shift += 7 {
  2732. if shift >= 64 {
  2733. return ErrIntOverflowGenerated
  2734. }
  2735. if iNdEx >= l {
  2736. return io.ErrUnexpectedEOF
  2737. }
  2738. b := dAtA[iNdEx]
  2739. iNdEx++
  2740. wire |= uint64(b&0x7F) << shift
  2741. if b < 0x80 {
  2742. break
  2743. }
  2744. }
  2745. fieldNum := int32(wire >> 3)
  2746. wireType := int(wire & 0x7)
  2747. if wireType == 4 {
  2748. return fmt.Errorf("proto: Deployment: wiretype end group for non-group")
  2749. }
  2750. if fieldNum <= 0 {
  2751. return fmt.Errorf("proto: Deployment: illegal tag %d (wire type %d)", fieldNum, wire)
  2752. }
  2753. switch fieldNum {
  2754. case 1:
  2755. if wireType != 2 {
  2756. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  2757. }
  2758. var msglen int
  2759. for shift := uint(0); ; shift += 7 {
  2760. if shift >= 64 {
  2761. return ErrIntOverflowGenerated
  2762. }
  2763. if iNdEx >= l {
  2764. return io.ErrUnexpectedEOF
  2765. }
  2766. b := dAtA[iNdEx]
  2767. iNdEx++
  2768. msglen |= int(b&0x7F) << shift
  2769. if b < 0x80 {
  2770. break
  2771. }
  2772. }
  2773. if msglen < 0 {
  2774. return ErrInvalidLengthGenerated
  2775. }
  2776. postIndex := iNdEx + msglen
  2777. if postIndex < 0 {
  2778. return ErrInvalidLengthGenerated
  2779. }
  2780. if postIndex > l {
  2781. return io.ErrUnexpectedEOF
  2782. }
  2783. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2784. return err
  2785. }
  2786. iNdEx = postIndex
  2787. case 2:
  2788. if wireType != 2 {
  2789. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  2790. }
  2791. var msglen int
  2792. for shift := uint(0); ; shift += 7 {
  2793. if shift >= 64 {
  2794. return ErrIntOverflowGenerated
  2795. }
  2796. if iNdEx >= l {
  2797. return io.ErrUnexpectedEOF
  2798. }
  2799. b := dAtA[iNdEx]
  2800. iNdEx++
  2801. msglen |= int(b&0x7F) << shift
  2802. if b < 0x80 {
  2803. break
  2804. }
  2805. }
  2806. if msglen < 0 {
  2807. return ErrInvalidLengthGenerated
  2808. }
  2809. postIndex := iNdEx + msglen
  2810. if postIndex < 0 {
  2811. return ErrInvalidLengthGenerated
  2812. }
  2813. if postIndex > l {
  2814. return io.ErrUnexpectedEOF
  2815. }
  2816. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2817. return err
  2818. }
  2819. iNdEx = postIndex
  2820. case 3:
  2821. if wireType != 2 {
  2822. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2823. }
  2824. var msglen int
  2825. for shift := uint(0); ; shift += 7 {
  2826. if shift >= 64 {
  2827. return ErrIntOverflowGenerated
  2828. }
  2829. if iNdEx >= l {
  2830. return io.ErrUnexpectedEOF
  2831. }
  2832. b := dAtA[iNdEx]
  2833. iNdEx++
  2834. msglen |= int(b&0x7F) << shift
  2835. if b < 0x80 {
  2836. break
  2837. }
  2838. }
  2839. if msglen < 0 {
  2840. return ErrInvalidLengthGenerated
  2841. }
  2842. postIndex := iNdEx + msglen
  2843. if postIndex < 0 {
  2844. return ErrInvalidLengthGenerated
  2845. }
  2846. if postIndex > l {
  2847. return io.ErrUnexpectedEOF
  2848. }
  2849. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2850. return err
  2851. }
  2852. iNdEx = postIndex
  2853. default:
  2854. iNdEx = preIndex
  2855. skippy, err := skipGenerated(dAtA[iNdEx:])
  2856. if err != nil {
  2857. return err
  2858. }
  2859. if (skippy < 0) || (iNdEx+skippy) < 0 {
  2860. return ErrInvalidLengthGenerated
  2861. }
  2862. if (iNdEx + skippy) > l {
  2863. return io.ErrUnexpectedEOF
  2864. }
  2865. iNdEx += skippy
  2866. }
  2867. }
  2868. if iNdEx > l {
  2869. return io.ErrUnexpectedEOF
  2870. }
  2871. return nil
  2872. }
  2873. func (m *DeploymentCondition) Unmarshal(dAtA []byte) error {
  2874. l := len(dAtA)
  2875. iNdEx := 0
  2876. for iNdEx < l {
  2877. preIndex := iNdEx
  2878. var wire uint64
  2879. for shift := uint(0); ; shift += 7 {
  2880. if shift >= 64 {
  2881. return ErrIntOverflowGenerated
  2882. }
  2883. if iNdEx >= l {
  2884. return io.ErrUnexpectedEOF
  2885. }
  2886. b := dAtA[iNdEx]
  2887. iNdEx++
  2888. wire |= uint64(b&0x7F) << shift
  2889. if b < 0x80 {
  2890. break
  2891. }
  2892. }
  2893. fieldNum := int32(wire >> 3)
  2894. wireType := int(wire & 0x7)
  2895. if wireType == 4 {
  2896. return fmt.Errorf("proto: DeploymentCondition: wiretype end group for non-group")
  2897. }
  2898. if fieldNum <= 0 {
  2899. return fmt.Errorf("proto: DeploymentCondition: illegal tag %d (wire type %d)", fieldNum, wire)
  2900. }
  2901. switch fieldNum {
  2902. case 1:
  2903. if wireType != 2 {
  2904. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2905. }
  2906. var stringLen uint64
  2907. for shift := uint(0); ; shift += 7 {
  2908. if shift >= 64 {
  2909. return ErrIntOverflowGenerated
  2910. }
  2911. if iNdEx >= l {
  2912. return io.ErrUnexpectedEOF
  2913. }
  2914. b := dAtA[iNdEx]
  2915. iNdEx++
  2916. stringLen |= uint64(b&0x7F) << shift
  2917. if b < 0x80 {
  2918. break
  2919. }
  2920. }
  2921. intStringLen := int(stringLen)
  2922. if intStringLen < 0 {
  2923. return ErrInvalidLengthGenerated
  2924. }
  2925. postIndex := iNdEx + intStringLen
  2926. if postIndex < 0 {
  2927. return ErrInvalidLengthGenerated
  2928. }
  2929. if postIndex > l {
  2930. return io.ErrUnexpectedEOF
  2931. }
  2932. m.Type = DeploymentConditionType(dAtA[iNdEx:postIndex])
  2933. iNdEx = postIndex
  2934. case 2:
  2935. if wireType != 2 {
  2936. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2937. }
  2938. var stringLen uint64
  2939. for shift := uint(0); ; shift += 7 {
  2940. if shift >= 64 {
  2941. return ErrIntOverflowGenerated
  2942. }
  2943. if iNdEx >= l {
  2944. return io.ErrUnexpectedEOF
  2945. }
  2946. b := dAtA[iNdEx]
  2947. iNdEx++
  2948. stringLen |= uint64(b&0x7F) << shift
  2949. if b < 0x80 {
  2950. break
  2951. }
  2952. }
  2953. intStringLen := int(stringLen)
  2954. if intStringLen < 0 {
  2955. return ErrInvalidLengthGenerated
  2956. }
  2957. postIndex := iNdEx + intStringLen
  2958. if postIndex < 0 {
  2959. return ErrInvalidLengthGenerated
  2960. }
  2961. if postIndex > l {
  2962. return io.ErrUnexpectedEOF
  2963. }
  2964. m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex])
  2965. iNdEx = postIndex
  2966. case 4:
  2967. if wireType != 2 {
  2968. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  2969. }
  2970. var stringLen uint64
  2971. for shift := uint(0); ; shift += 7 {
  2972. if shift >= 64 {
  2973. return ErrIntOverflowGenerated
  2974. }
  2975. if iNdEx >= l {
  2976. return io.ErrUnexpectedEOF
  2977. }
  2978. b := dAtA[iNdEx]
  2979. iNdEx++
  2980. stringLen |= uint64(b&0x7F) << shift
  2981. if b < 0x80 {
  2982. break
  2983. }
  2984. }
  2985. intStringLen := int(stringLen)
  2986. if intStringLen < 0 {
  2987. return ErrInvalidLengthGenerated
  2988. }
  2989. postIndex := iNdEx + intStringLen
  2990. if postIndex < 0 {
  2991. return ErrInvalidLengthGenerated
  2992. }
  2993. if postIndex > l {
  2994. return io.ErrUnexpectedEOF
  2995. }
  2996. m.Reason = string(dAtA[iNdEx:postIndex])
  2997. iNdEx = postIndex
  2998. case 5:
  2999. if wireType != 2 {
  3000. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  3001. }
  3002. var stringLen uint64
  3003. for shift := uint(0); ; shift += 7 {
  3004. if shift >= 64 {
  3005. return ErrIntOverflowGenerated
  3006. }
  3007. if iNdEx >= l {
  3008. return io.ErrUnexpectedEOF
  3009. }
  3010. b := dAtA[iNdEx]
  3011. iNdEx++
  3012. stringLen |= uint64(b&0x7F) << shift
  3013. if b < 0x80 {
  3014. break
  3015. }
  3016. }
  3017. intStringLen := int(stringLen)
  3018. if intStringLen < 0 {
  3019. return ErrInvalidLengthGenerated
  3020. }
  3021. postIndex := iNdEx + intStringLen
  3022. if postIndex < 0 {
  3023. return ErrInvalidLengthGenerated
  3024. }
  3025. if postIndex > l {
  3026. return io.ErrUnexpectedEOF
  3027. }
  3028. m.Message = string(dAtA[iNdEx:postIndex])
  3029. iNdEx = postIndex
  3030. case 6:
  3031. if wireType != 2 {
  3032. return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType)
  3033. }
  3034. var msglen int
  3035. for shift := uint(0); ; shift += 7 {
  3036. if shift >= 64 {
  3037. return ErrIntOverflowGenerated
  3038. }
  3039. if iNdEx >= l {
  3040. return io.ErrUnexpectedEOF
  3041. }
  3042. b := dAtA[iNdEx]
  3043. iNdEx++
  3044. msglen |= int(b&0x7F) << shift
  3045. if b < 0x80 {
  3046. break
  3047. }
  3048. }
  3049. if msglen < 0 {
  3050. return ErrInvalidLengthGenerated
  3051. }
  3052. postIndex := iNdEx + msglen
  3053. if postIndex < 0 {
  3054. return ErrInvalidLengthGenerated
  3055. }
  3056. if postIndex > l {
  3057. return io.ErrUnexpectedEOF
  3058. }
  3059. if err := m.LastUpdateTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3060. return err
  3061. }
  3062. iNdEx = postIndex
  3063. case 7:
  3064. if wireType != 2 {
  3065. return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
  3066. }
  3067. var msglen int
  3068. for shift := uint(0); ; shift += 7 {
  3069. if shift >= 64 {
  3070. return ErrIntOverflowGenerated
  3071. }
  3072. if iNdEx >= l {
  3073. return io.ErrUnexpectedEOF
  3074. }
  3075. b := dAtA[iNdEx]
  3076. iNdEx++
  3077. msglen |= int(b&0x7F) << shift
  3078. if b < 0x80 {
  3079. break
  3080. }
  3081. }
  3082. if msglen < 0 {
  3083. return ErrInvalidLengthGenerated
  3084. }
  3085. postIndex := iNdEx + msglen
  3086. if postIndex < 0 {
  3087. return ErrInvalidLengthGenerated
  3088. }
  3089. if postIndex > l {
  3090. return io.ErrUnexpectedEOF
  3091. }
  3092. if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3093. return err
  3094. }
  3095. iNdEx = postIndex
  3096. default:
  3097. iNdEx = preIndex
  3098. skippy, err := skipGenerated(dAtA[iNdEx:])
  3099. if err != nil {
  3100. return err
  3101. }
  3102. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3103. return ErrInvalidLengthGenerated
  3104. }
  3105. if (iNdEx + skippy) > l {
  3106. return io.ErrUnexpectedEOF
  3107. }
  3108. iNdEx += skippy
  3109. }
  3110. }
  3111. if iNdEx > l {
  3112. return io.ErrUnexpectedEOF
  3113. }
  3114. return nil
  3115. }
  3116. func (m *DeploymentList) Unmarshal(dAtA []byte) error {
  3117. l := len(dAtA)
  3118. iNdEx := 0
  3119. for iNdEx < l {
  3120. preIndex := iNdEx
  3121. var wire uint64
  3122. for shift := uint(0); ; shift += 7 {
  3123. if shift >= 64 {
  3124. return ErrIntOverflowGenerated
  3125. }
  3126. if iNdEx >= l {
  3127. return io.ErrUnexpectedEOF
  3128. }
  3129. b := dAtA[iNdEx]
  3130. iNdEx++
  3131. wire |= uint64(b&0x7F) << shift
  3132. if b < 0x80 {
  3133. break
  3134. }
  3135. }
  3136. fieldNum := int32(wire >> 3)
  3137. wireType := int(wire & 0x7)
  3138. if wireType == 4 {
  3139. return fmt.Errorf("proto: DeploymentList: wiretype end group for non-group")
  3140. }
  3141. if fieldNum <= 0 {
  3142. return fmt.Errorf("proto: DeploymentList: illegal tag %d (wire type %d)", fieldNum, wire)
  3143. }
  3144. switch fieldNum {
  3145. case 1:
  3146. if wireType != 2 {
  3147. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  3148. }
  3149. var msglen int
  3150. for shift := uint(0); ; shift += 7 {
  3151. if shift >= 64 {
  3152. return ErrIntOverflowGenerated
  3153. }
  3154. if iNdEx >= l {
  3155. return io.ErrUnexpectedEOF
  3156. }
  3157. b := dAtA[iNdEx]
  3158. iNdEx++
  3159. msglen |= int(b&0x7F) << shift
  3160. if b < 0x80 {
  3161. break
  3162. }
  3163. }
  3164. if msglen < 0 {
  3165. return ErrInvalidLengthGenerated
  3166. }
  3167. postIndex := iNdEx + msglen
  3168. if postIndex < 0 {
  3169. return ErrInvalidLengthGenerated
  3170. }
  3171. if postIndex > l {
  3172. return io.ErrUnexpectedEOF
  3173. }
  3174. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3175. return err
  3176. }
  3177. iNdEx = postIndex
  3178. case 2:
  3179. if wireType != 2 {
  3180. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  3181. }
  3182. var msglen int
  3183. for shift := uint(0); ; shift += 7 {
  3184. if shift >= 64 {
  3185. return ErrIntOverflowGenerated
  3186. }
  3187. if iNdEx >= l {
  3188. return io.ErrUnexpectedEOF
  3189. }
  3190. b := dAtA[iNdEx]
  3191. iNdEx++
  3192. msglen |= int(b&0x7F) << shift
  3193. if b < 0x80 {
  3194. break
  3195. }
  3196. }
  3197. if msglen < 0 {
  3198. return ErrInvalidLengthGenerated
  3199. }
  3200. postIndex := iNdEx + msglen
  3201. if postIndex < 0 {
  3202. return ErrInvalidLengthGenerated
  3203. }
  3204. if postIndex > l {
  3205. return io.ErrUnexpectedEOF
  3206. }
  3207. m.Items = append(m.Items, Deployment{})
  3208. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3209. return err
  3210. }
  3211. iNdEx = postIndex
  3212. default:
  3213. iNdEx = preIndex
  3214. skippy, err := skipGenerated(dAtA[iNdEx:])
  3215. if err != nil {
  3216. return err
  3217. }
  3218. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3219. return ErrInvalidLengthGenerated
  3220. }
  3221. if (iNdEx + skippy) > l {
  3222. return io.ErrUnexpectedEOF
  3223. }
  3224. iNdEx += skippy
  3225. }
  3226. }
  3227. if iNdEx > l {
  3228. return io.ErrUnexpectedEOF
  3229. }
  3230. return nil
  3231. }
  3232. func (m *DeploymentRollback) Unmarshal(dAtA []byte) error {
  3233. l := len(dAtA)
  3234. iNdEx := 0
  3235. for iNdEx < l {
  3236. preIndex := iNdEx
  3237. var wire uint64
  3238. for shift := uint(0); ; shift += 7 {
  3239. if shift >= 64 {
  3240. return ErrIntOverflowGenerated
  3241. }
  3242. if iNdEx >= l {
  3243. return io.ErrUnexpectedEOF
  3244. }
  3245. b := dAtA[iNdEx]
  3246. iNdEx++
  3247. wire |= uint64(b&0x7F) << shift
  3248. if b < 0x80 {
  3249. break
  3250. }
  3251. }
  3252. fieldNum := int32(wire >> 3)
  3253. wireType := int(wire & 0x7)
  3254. if wireType == 4 {
  3255. return fmt.Errorf("proto: DeploymentRollback: wiretype end group for non-group")
  3256. }
  3257. if fieldNum <= 0 {
  3258. return fmt.Errorf("proto: DeploymentRollback: illegal tag %d (wire type %d)", fieldNum, wire)
  3259. }
  3260. switch fieldNum {
  3261. case 1:
  3262. if wireType != 2 {
  3263. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3264. }
  3265. var stringLen uint64
  3266. for shift := uint(0); ; shift += 7 {
  3267. if shift >= 64 {
  3268. return ErrIntOverflowGenerated
  3269. }
  3270. if iNdEx >= l {
  3271. return io.ErrUnexpectedEOF
  3272. }
  3273. b := dAtA[iNdEx]
  3274. iNdEx++
  3275. stringLen |= uint64(b&0x7F) << shift
  3276. if b < 0x80 {
  3277. break
  3278. }
  3279. }
  3280. intStringLen := int(stringLen)
  3281. if intStringLen < 0 {
  3282. return ErrInvalidLengthGenerated
  3283. }
  3284. postIndex := iNdEx + intStringLen
  3285. if postIndex < 0 {
  3286. return ErrInvalidLengthGenerated
  3287. }
  3288. if postIndex > l {
  3289. return io.ErrUnexpectedEOF
  3290. }
  3291. m.Name = string(dAtA[iNdEx:postIndex])
  3292. iNdEx = postIndex
  3293. case 2:
  3294. if wireType != 2 {
  3295. return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAnnotations", wireType)
  3296. }
  3297. var msglen int
  3298. for shift := uint(0); ; shift += 7 {
  3299. if shift >= 64 {
  3300. return ErrIntOverflowGenerated
  3301. }
  3302. if iNdEx >= l {
  3303. return io.ErrUnexpectedEOF
  3304. }
  3305. b := dAtA[iNdEx]
  3306. iNdEx++
  3307. msglen |= int(b&0x7F) << shift
  3308. if b < 0x80 {
  3309. break
  3310. }
  3311. }
  3312. if msglen < 0 {
  3313. return ErrInvalidLengthGenerated
  3314. }
  3315. postIndex := iNdEx + msglen
  3316. if postIndex < 0 {
  3317. return ErrInvalidLengthGenerated
  3318. }
  3319. if postIndex > l {
  3320. return io.ErrUnexpectedEOF
  3321. }
  3322. if m.UpdatedAnnotations == nil {
  3323. m.UpdatedAnnotations = make(map[string]string)
  3324. }
  3325. var mapkey string
  3326. var mapvalue string
  3327. for iNdEx < postIndex {
  3328. entryPreIndex := iNdEx
  3329. var wire uint64
  3330. for shift := uint(0); ; shift += 7 {
  3331. if shift >= 64 {
  3332. return ErrIntOverflowGenerated
  3333. }
  3334. if iNdEx >= l {
  3335. return io.ErrUnexpectedEOF
  3336. }
  3337. b := dAtA[iNdEx]
  3338. iNdEx++
  3339. wire |= uint64(b&0x7F) << shift
  3340. if b < 0x80 {
  3341. break
  3342. }
  3343. }
  3344. fieldNum := int32(wire >> 3)
  3345. if fieldNum == 1 {
  3346. var stringLenmapkey uint64
  3347. for shift := uint(0); ; shift += 7 {
  3348. if shift >= 64 {
  3349. return ErrIntOverflowGenerated
  3350. }
  3351. if iNdEx >= l {
  3352. return io.ErrUnexpectedEOF
  3353. }
  3354. b := dAtA[iNdEx]
  3355. iNdEx++
  3356. stringLenmapkey |= uint64(b&0x7F) << shift
  3357. if b < 0x80 {
  3358. break
  3359. }
  3360. }
  3361. intStringLenmapkey := int(stringLenmapkey)
  3362. if intStringLenmapkey < 0 {
  3363. return ErrInvalidLengthGenerated
  3364. }
  3365. postStringIndexmapkey := iNdEx + intStringLenmapkey
  3366. if postStringIndexmapkey < 0 {
  3367. return ErrInvalidLengthGenerated
  3368. }
  3369. if postStringIndexmapkey > l {
  3370. return io.ErrUnexpectedEOF
  3371. }
  3372. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  3373. iNdEx = postStringIndexmapkey
  3374. } else if fieldNum == 2 {
  3375. var stringLenmapvalue uint64
  3376. for shift := uint(0); ; shift += 7 {
  3377. if shift >= 64 {
  3378. return ErrIntOverflowGenerated
  3379. }
  3380. if iNdEx >= l {
  3381. return io.ErrUnexpectedEOF
  3382. }
  3383. b := dAtA[iNdEx]
  3384. iNdEx++
  3385. stringLenmapvalue |= uint64(b&0x7F) << shift
  3386. if b < 0x80 {
  3387. break
  3388. }
  3389. }
  3390. intStringLenmapvalue := int(stringLenmapvalue)
  3391. if intStringLenmapvalue < 0 {
  3392. return ErrInvalidLengthGenerated
  3393. }
  3394. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  3395. if postStringIndexmapvalue < 0 {
  3396. return ErrInvalidLengthGenerated
  3397. }
  3398. if postStringIndexmapvalue > l {
  3399. return io.ErrUnexpectedEOF
  3400. }
  3401. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  3402. iNdEx = postStringIndexmapvalue
  3403. } else {
  3404. iNdEx = entryPreIndex
  3405. skippy, err := skipGenerated(dAtA[iNdEx:])
  3406. if err != nil {
  3407. return err
  3408. }
  3409. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3410. return ErrInvalidLengthGenerated
  3411. }
  3412. if (iNdEx + skippy) > postIndex {
  3413. return io.ErrUnexpectedEOF
  3414. }
  3415. iNdEx += skippy
  3416. }
  3417. }
  3418. m.UpdatedAnnotations[mapkey] = mapvalue
  3419. iNdEx = postIndex
  3420. case 3:
  3421. if wireType != 2 {
  3422. return fmt.Errorf("proto: wrong wireType = %d for field RollbackTo", wireType)
  3423. }
  3424. var msglen int
  3425. for shift := uint(0); ; shift += 7 {
  3426. if shift >= 64 {
  3427. return ErrIntOverflowGenerated
  3428. }
  3429. if iNdEx >= l {
  3430. return io.ErrUnexpectedEOF
  3431. }
  3432. b := dAtA[iNdEx]
  3433. iNdEx++
  3434. msglen |= int(b&0x7F) << shift
  3435. if b < 0x80 {
  3436. break
  3437. }
  3438. }
  3439. if msglen < 0 {
  3440. return ErrInvalidLengthGenerated
  3441. }
  3442. postIndex := iNdEx + msglen
  3443. if postIndex < 0 {
  3444. return ErrInvalidLengthGenerated
  3445. }
  3446. if postIndex > l {
  3447. return io.ErrUnexpectedEOF
  3448. }
  3449. if err := m.RollbackTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3450. return err
  3451. }
  3452. iNdEx = postIndex
  3453. default:
  3454. iNdEx = preIndex
  3455. skippy, err := skipGenerated(dAtA[iNdEx:])
  3456. if err != nil {
  3457. return err
  3458. }
  3459. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3460. return ErrInvalidLengthGenerated
  3461. }
  3462. if (iNdEx + skippy) > l {
  3463. return io.ErrUnexpectedEOF
  3464. }
  3465. iNdEx += skippy
  3466. }
  3467. }
  3468. if iNdEx > l {
  3469. return io.ErrUnexpectedEOF
  3470. }
  3471. return nil
  3472. }
  3473. func (m *DeploymentSpec) Unmarshal(dAtA []byte) error {
  3474. l := len(dAtA)
  3475. iNdEx := 0
  3476. for iNdEx < l {
  3477. preIndex := iNdEx
  3478. var wire uint64
  3479. for shift := uint(0); ; shift += 7 {
  3480. if shift >= 64 {
  3481. return ErrIntOverflowGenerated
  3482. }
  3483. if iNdEx >= l {
  3484. return io.ErrUnexpectedEOF
  3485. }
  3486. b := dAtA[iNdEx]
  3487. iNdEx++
  3488. wire |= uint64(b&0x7F) << shift
  3489. if b < 0x80 {
  3490. break
  3491. }
  3492. }
  3493. fieldNum := int32(wire >> 3)
  3494. wireType := int(wire & 0x7)
  3495. if wireType == 4 {
  3496. return fmt.Errorf("proto: DeploymentSpec: wiretype end group for non-group")
  3497. }
  3498. if fieldNum <= 0 {
  3499. return fmt.Errorf("proto: DeploymentSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  3500. }
  3501. switch fieldNum {
  3502. case 1:
  3503. if wireType != 0 {
  3504. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  3505. }
  3506. var v int32
  3507. for shift := uint(0); ; shift += 7 {
  3508. if shift >= 64 {
  3509. return ErrIntOverflowGenerated
  3510. }
  3511. if iNdEx >= l {
  3512. return io.ErrUnexpectedEOF
  3513. }
  3514. b := dAtA[iNdEx]
  3515. iNdEx++
  3516. v |= int32(b&0x7F) << shift
  3517. if b < 0x80 {
  3518. break
  3519. }
  3520. }
  3521. m.Replicas = &v
  3522. case 2:
  3523. if wireType != 2 {
  3524. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  3525. }
  3526. var msglen int
  3527. for shift := uint(0); ; shift += 7 {
  3528. if shift >= 64 {
  3529. return ErrIntOverflowGenerated
  3530. }
  3531. if iNdEx >= l {
  3532. return io.ErrUnexpectedEOF
  3533. }
  3534. b := dAtA[iNdEx]
  3535. iNdEx++
  3536. msglen |= int(b&0x7F) << shift
  3537. if b < 0x80 {
  3538. break
  3539. }
  3540. }
  3541. if msglen < 0 {
  3542. return ErrInvalidLengthGenerated
  3543. }
  3544. postIndex := iNdEx + msglen
  3545. if postIndex < 0 {
  3546. return ErrInvalidLengthGenerated
  3547. }
  3548. if postIndex > l {
  3549. return io.ErrUnexpectedEOF
  3550. }
  3551. if m.Selector == nil {
  3552. m.Selector = &v1.LabelSelector{}
  3553. }
  3554. if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3555. return err
  3556. }
  3557. iNdEx = postIndex
  3558. case 3:
  3559. if wireType != 2 {
  3560. return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
  3561. }
  3562. var msglen int
  3563. for shift := uint(0); ; shift += 7 {
  3564. if shift >= 64 {
  3565. return ErrIntOverflowGenerated
  3566. }
  3567. if iNdEx >= l {
  3568. return io.ErrUnexpectedEOF
  3569. }
  3570. b := dAtA[iNdEx]
  3571. iNdEx++
  3572. msglen |= int(b&0x7F) << shift
  3573. if b < 0x80 {
  3574. break
  3575. }
  3576. }
  3577. if msglen < 0 {
  3578. return ErrInvalidLengthGenerated
  3579. }
  3580. postIndex := iNdEx + msglen
  3581. if postIndex < 0 {
  3582. return ErrInvalidLengthGenerated
  3583. }
  3584. if postIndex > l {
  3585. return io.ErrUnexpectedEOF
  3586. }
  3587. if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3588. return err
  3589. }
  3590. iNdEx = postIndex
  3591. case 4:
  3592. if wireType != 2 {
  3593. return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType)
  3594. }
  3595. var msglen int
  3596. for shift := uint(0); ; shift += 7 {
  3597. if shift >= 64 {
  3598. return ErrIntOverflowGenerated
  3599. }
  3600. if iNdEx >= l {
  3601. return io.ErrUnexpectedEOF
  3602. }
  3603. b := dAtA[iNdEx]
  3604. iNdEx++
  3605. msglen |= int(b&0x7F) << shift
  3606. if b < 0x80 {
  3607. break
  3608. }
  3609. }
  3610. if msglen < 0 {
  3611. return ErrInvalidLengthGenerated
  3612. }
  3613. postIndex := iNdEx + msglen
  3614. if postIndex < 0 {
  3615. return ErrInvalidLengthGenerated
  3616. }
  3617. if postIndex > l {
  3618. return io.ErrUnexpectedEOF
  3619. }
  3620. if err := m.Strategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3621. return err
  3622. }
  3623. iNdEx = postIndex
  3624. case 5:
  3625. if wireType != 0 {
  3626. return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType)
  3627. }
  3628. m.MinReadySeconds = 0
  3629. for shift := uint(0); ; shift += 7 {
  3630. if shift >= 64 {
  3631. return ErrIntOverflowGenerated
  3632. }
  3633. if iNdEx >= l {
  3634. return io.ErrUnexpectedEOF
  3635. }
  3636. b := dAtA[iNdEx]
  3637. iNdEx++
  3638. m.MinReadySeconds |= int32(b&0x7F) << shift
  3639. if b < 0x80 {
  3640. break
  3641. }
  3642. }
  3643. case 6:
  3644. if wireType != 0 {
  3645. return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType)
  3646. }
  3647. var v int32
  3648. for shift := uint(0); ; shift += 7 {
  3649. if shift >= 64 {
  3650. return ErrIntOverflowGenerated
  3651. }
  3652. if iNdEx >= l {
  3653. return io.ErrUnexpectedEOF
  3654. }
  3655. b := dAtA[iNdEx]
  3656. iNdEx++
  3657. v |= int32(b&0x7F) << shift
  3658. if b < 0x80 {
  3659. break
  3660. }
  3661. }
  3662. m.RevisionHistoryLimit = &v
  3663. case 7:
  3664. if wireType != 0 {
  3665. return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType)
  3666. }
  3667. var v int
  3668. for shift := uint(0); ; shift += 7 {
  3669. if shift >= 64 {
  3670. return ErrIntOverflowGenerated
  3671. }
  3672. if iNdEx >= l {
  3673. return io.ErrUnexpectedEOF
  3674. }
  3675. b := dAtA[iNdEx]
  3676. iNdEx++
  3677. v |= int(b&0x7F) << shift
  3678. if b < 0x80 {
  3679. break
  3680. }
  3681. }
  3682. m.Paused = bool(v != 0)
  3683. case 8:
  3684. if wireType != 2 {
  3685. return fmt.Errorf("proto: wrong wireType = %d for field RollbackTo", wireType)
  3686. }
  3687. var msglen int
  3688. for shift := uint(0); ; shift += 7 {
  3689. if shift >= 64 {
  3690. return ErrIntOverflowGenerated
  3691. }
  3692. if iNdEx >= l {
  3693. return io.ErrUnexpectedEOF
  3694. }
  3695. b := dAtA[iNdEx]
  3696. iNdEx++
  3697. msglen |= int(b&0x7F) << shift
  3698. if b < 0x80 {
  3699. break
  3700. }
  3701. }
  3702. if msglen < 0 {
  3703. return ErrInvalidLengthGenerated
  3704. }
  3705. postIndex := iNdEx + msglen
  3706. if postIndex < 0 {
  3707. return ErrInvalidLengthGenerated
  3708. }
  3709. if postIndex > l {
  3710. return io.ErrUnexpectedEOF
  3711. }
  3712. if m.RollbackTo == nil {
  3713. m.RollbackTo = &RollbackConfig{}
  3714. }
  3715. if err := m.RollbackTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3716. return err
  3717. }
  3718. iNdEx = postIndex
  3719. case 9:
  3720. if wireType != 0 {
  3721. return fmt.Errorf("proto: wrong wireType = %d for field ProgressDeadlineSeconds", wireType)
  3722. }
  3723. var v int32
  3724. for shift := uint(0); ; shift += 7 {
  3725. if shift >= 64 {
  3726. return ErrIntOverflowGenerated
  3727. }
  3728. if iNdEx >= l {
  3729. return io.ErrUnexpectedEOF
  3730. }
  3731. b := dAtA[iNdEx]
  3732. iNdEx++
  3733. v |= int32(b&0x7F) << shift
  3734. if b < 0x80 {
  3735. break
  3736. }
  3737. }
  3738. m.ProgressDeadlineSeconds = &v
  3739. default:
  3740. iNdEx = preIndex
  3741. skippy, err := skipGenerated(dAtA[iNdEx:])
  3742. if err != nil {
  3743. return err
  3744. }
  3745. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3746. return ErrInvalidLengthGenerated
  3747. }
  3748. if (iNdEx + skippy) > l {
  3749. return io.ErrUnexpectedEOF
  3750. }
  3751. iNdEx += skippy
  3752. }
  3753. }
  3754. if iNdEx > l {
  3755. return io.ErrUnexpectedEOF
  3756. }
  3757. return nil
  3758. }
  3759. func (m *DeploymentStatus) Unmarshal(dAtA []byte) error {
  3760. l := len(dAtA)
  3761. iNdEx := 0
  3762. for iNdEx < l {
  3763. preIndex := iNdEx
  3764. var wire uint64
  3765. for shift := uint(0); ; shift += 7 {
  3766. if shift >= 64 {
  3767. return ErrIntOverflowGenerated
  3768. }
  3769. if iNdEx >= l {
  3770. return io.ErrUnexpectedEOF
  3771. }
  3772. b := dAtA[iNdEx]
  3773. iNdEx++
  3774. wire |= uint64(b&0x7F) << shift
  3775. if b < 0x80 {
  3776. break
  3777. }
  3778. }
  3779. fieldNum := int32(wire >> 3)
  3780. wireType := int(wire & 0x7)
  3781. if wireType == 4 {
  3782. return fmt.Errorf("proto: DeploymentStatus: wiretype end group for non-group")
  3783. }
  3784. if fieldNum <= 0 {
  3785. return fmt.Errorf("proto: DeploymentStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  3786. }
  3787. switch fieldNum {
  3788. case 1:
  3789. if wireType != 0 {
  3790. return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
  3791. }
  3792. m.ObservedGeneration = 0
  3793. for shift := uint(0); ; shift += 7 {
  3794. if shift >= 64 {
  3795. return ErrIntOverflowGenerated
  3796. }
  3797. if iNdEx >= l {
  3798. return io.ErrUnexpectedEOF
  3799. }
  3800. b := dAtA[iNdEx]
  3801. iNdEx++
  3802. m.ObservedGeneration |= int64(b&0x7F) << shift
  3803. if b < 0x80 {
  3804. break
  3805. }
  3806. }
  3807. case 2:
  3808. if wireType != 0 {
  3809. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  3810. }
  3811. m.Replicas = 0
  3812. for shift := uint(0); ; shift += 7 {
  3813. if shift >= 64 {
  3814. return ErrIntOverflowGenerated
  3815. }
  3816. if iNdEx >= l {
  3817. return io.ErrUnexpectedEOF
  3818. }
  3819. b := dAtA[iNdEx]
  3820. iNdEx++
  3821. m.Replicas |= int32(b&0x7F) << shift
  3822. if b < 0x80 {
  3823. break
  3824. }
  3825. }
  3826. case 3:
  3827. if wireType != 0 {
  3828. return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType)
  3829. }
  3830. m.UpdatedReplicas = 0
  3831. for shift := uint(0); ; shift += 7 {
  3832. if shift >= 64 {
  3833. return ErrIntOverflowGenerated
  3834. }
  3835. if iNdEx >= l {
  3836. return io.ErrUnexpectedEOF
  3837. }
  3838. b := dAtA[iNdEx]
  3839. iNdEx++
  3840. m.UpdatedReplicas |= int32(b&0x7F) << shift
  3841. if b < 0x80 {
  3842. break
  3843. }
  3844. }
  3845. case 4:
  3846. if wireType != 0 {
  3847. return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType)
  3848. }
  3849. m.AvailableReplicas = 0
  3850. for shift := uint(0); ; shift += 7 {
  3851. if shift >= 64 {
  3852. return ErrIntOverflowGenerated
  3853. }
  3854. if iNdEx >= l {
  3855. return io.ErrUnexpectedEOF
  3856. }
  3857. b := dAtA[iNdEx]
  3858. iNdEx++
  3859. m.AvailableReplicas |= int32(b&0x7F) << shift
  3860. if b < 0x80 {
  3861. break
  3862. }
  3863. }
  3864. case 5:
  3865. if wireType != 0 {
  3866. return fmt.Errorf("proto: wrong wireType = %d for field UnavailableReplicas", wireType)
  3867. }
  3868. m.UnavailableReplicas = 0
  3869. for shift := uint(0); ; shift += 7 {
  3870. if shift >= 64 {
  3871. return ErrIntOverflowGenerated
  3872. }
  3873. if iNdEx >= l {
  3874. return io.ErrUnexpectedEOF
  3875. }
  3876. b := dAtA[iNdEx]
  3877. iNdEx++
  3878. m.UnavailableReplicas |= int32(b&0x7F) << shift
  3879. if b < 0x80 {
  3880. break
  3881. }
  3882. }
  3883. case 6:
  3884. if wireType != 2 {
  3885. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  3886. }
  3887. var msglen int
  3888. for shift := uint(0); ; shift += 7 {
  3889. if shift >= 64 {
  3890. return ErrIntOverflowGenerated
  3891. }
  3892. if iNdEx >= l {
  3893. return io.ErrUnexpectedEOF
  3894. }
  3895. b := dAtA[iNdEx]
  3896. iNdEx++
  3897. msglen |= int(b&0x7F) << shift
  3898. if b < 0x80 {
  3899. break
  3900. }
  3901. }
  3902. if msglen < 0 {
  3903. return ErrInvalidLengthGenerated
  3904. }
  3905. postIndex := iNdEx + msglen
  3906. if postIndex < 0 {
  3907. return ErrInvalidLengthGenerated
  3908. }
  3909. if postIndex > l {
  3910. return io.ErrUnexpectedEOF
  3911. }
  3912. m.Conditions = append(m.Conditions, DeploymentCondition{})
  3913. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3914. return err
  3915. }
  3916. iNdEx = postIndex
  3917. case 7:
  3918. if wireType != 0 {
  3919. return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType)
  3920. }
  3921. m.ReadyReplicas = 0
  3922. for shift := uint(0); ; shift += 7 {
  3923. if shift >= 64 {
  3924. return ErrIntOverflowGenerated
  3925. }
  3926. if iNdEx >= l {
  3927. return io.ErrUnexpectedEOF
  3928. }
  3929. b := dAtA[iNdEx]
  3930. iNdEx++
  3931. m.ReadyReplicas |= int32(b&0x7F) << shift
  3932. if b < 0x80 {
  3933. break
  3934. }
  3935. }
  3936. case 8:
  3937. if wireType != 0 {
  3938. return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType)
  3939. }
  3940. var v int32
  3941. for shift := uint(0); ; shift += 7 {
  3942. if shift >= 64 {
  3943. return ErrIntOverflowGenerated
  3944. }
  3945. if iNdEx >= l {
  3946. return io.ErrUnexpectedEOF
  3947. }
  3948. b := dAtA[iNdEx]
  3949. iNdEx++
  3950. v |= int32(b&0x7F) << shift
  3951. if b < 0x80 {
  3952. break
  3953. }
  3954. }
  3955. m.CollisionCount = &v
  3956. default:
  3957. iNdEx = preIndex
  3958. skippy, err := skipGenerated(dAtA[iNdEx:])
  3959. if err != nil {
  3960. return err
  3961. }
  3962. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3963. return ErrInvalidLengthGenerated
  3964. }
  3965. if (iNdEx + skippy) > l {
  3966. return io.ErrUnexpectedEOF
  3967. }
  3968. iNdEx += skippy
  3969. }
  3970. }
  3971. if iNdEx > l {
  3972. return io.ErrUnexpectedEOF
  3973. }
  3974. return nil
  3975. }
  3976. func (m *DeploymentStrategy) Unmarshal(dAtA []byte) error {
  3977. l := len(dAtA)
  3978. iNdEx := 0
  3979. for iNdEx < l {
  3980. preIndex := iNdEx
  3981. var wire uint64
  3982. for shift := uint(0); ; shift += 7 {
  3983. if shift >= 64 {
  3984. return ErrIntOverflowGenerated
  3985. }
  3986. if iNdEx >= l {
  3987. return io.ErrUnexpectedEOF
  3988. }
  3989. b := dAtA[iNdEx]
  3990. iNdEx++
  3991. wire |= uint64(b&0x7F) << shift
  3992. if b < 0x80 {
  3993. break
  3994. }
  3995. }
  3996. fieldNum := int32(wire >> 3)
  3997. wireType := int(wire & 0x7)
  3998. if wireType == 4 {
  3999. return fmt.Errorf("proto: DeploymentStrategy: wiretype end group for non-group")
  4000. }
  4001. if fieldNum <= 0 {
  4002. return fmt.Errorf("proto: DeploymentStrategy: illegal tag %d (wire type %d)", fieldNum, wire)
  4003. }
  4004. switch fieldNum {
  4005. case 1:
  4006. if wireType != 2 {
  4007. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  4008. }
  4009. var stringLen uint64
  4010. for shift := uint(0); ; shift += 7 {
  4011. if shift >= 64 {
  4012. return ErrIntOverflowGenerated
  4013. }
  4014. if iNdEx >= l {
  4015. return io.ErrUnexpectedEOF
  4016. }
  4017. b := dAtA[iNdEx]
  4018. iNdEx++
  4019. stringLen |= uint64(b&0x7F) << shift
  4020. if b < 0x80 {
  4021. break
  4022. }
  4023. }
  4024. intStringLen := int(stringLen)
  4025. if intStringLen < 0 {
  4026. return ErrInvalidLengthGenerated
  4027. }
  4028. postIndex := iNdEx + intStringLen
  4029. if postIndex < 0 {
  4030. return ErrInvalidLengthGenerated
  4031. }
  4032. if postIndex > l {
  4033. return io.ErrUnexpectedEOF
  4034. }
  4035. m.Type = DeploymentStrategyType(dAtA[iNdEx:postIndex])
  4036. iNdEx = postIndex
  4037. case 2:
  4038. if wireType != 2 {
  4039. return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType)
  4040. }
  4041. var msglen int
  4042. for shift := uint(0); ; shift += 7 {
  4043. if shift >= 64 {
  4044. return ErrIntOverflowGenerated
  4045. }
  4046. if iNdEx >= l {
  4047. return io.ErrUnexpectedEOF
  4048. }
  4049. b := dAtA[iNdEx]
  4050. iNdEx++
  4051. msglen |= int(b&0x7F) << shift
  4052. if b < 0x80 {
  4053. break
  4054. }
  4055. }
  4056. if msglen < 0 {
  4057. return ErrInvalidLengthGenerated
  4058. }
  4059. postIndex := iNdEx + msglen
  4060. if postIndex < 0 {
  4061. return ErrInvalidLengthGenerated
  4062. }
  4063. if postIndex > l {
  4064. return io.ErrUnexpectedEOF
  4065. }
  4066. if m.RollingUpdate == nil {
  4067. m.RollingUpdate = &RollingUpdateDeployment{}
  4068. }
  4069. if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4070. return err
  4071. }
  4072. iNdEx = postIndex
  4073. default:
  4074. iNdEx = preIndex
  4075. skippy, err := skipGenerated(dAtA[iNdEx:])
  4076. if err != nil {
  4077. return err
  4078. }
  4079. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4080. return ErrInvalidLengthGenerated
  4081. }
  4082. if (iNdEx + skippy) > l {
  4083. return io.ErrUnexpectedEOF
  4084. }
  4085. iNdEx += skippy
  4086. }
  4087. }
  4088. if iNdEx > l {
  4089. return io.ErrUnexpectedEOF
  4090. }
  4091. return nil
  4092. }
  4093. func (m *RollbackConfig) Unmarshal(dAtA []byte) error {
  4094. l := len(dAtA)
  4095. iNdEx := 0
  4096. for iNdEx < l {
  4097. preIndex := iNdEx
  4098. var wire uint64
  4099. for shift := uint(0); ; shift += 7 {
  4100. if shift >= 64 {
  4101. return ErrIntOverflowGenerated
  4102. }
  4103. if iNdEx >= l {
  4104. return io.ErrUnexpectedEOF
  4105. }
  4106. b := dAtA[iNdEx]
  4107. iNdEx++
  4108. wire |= uint64(b&0x7F) << shift
  4109. if b < 0x80 {
  4110. break
  4111. }
  4112. }
  4113. fieldNum := int32(wire >> 3)
  4114. wireType := int(wire & 0x7)
  4115. if wireType == 4 {
  4116. return fmt.Errorf("proto: RollbackConfig: wiretype end group for non-group")
  4117. }
  4118. if fieldNum <= 0 {
  4119. return fmt.Errorf("proto: RollbackConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  4120. }
  4121. switch fieldNum {
  4122. case 1:
  4123. if wireType != 0 {
  4124. return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType)
  4125. }
  4126. m.Revision = 0
  4127. for shift := uint(0); ; shift += 7 {
  4128. if shift >= 64 {
  4129. return ErrIntOverflowGenerated
  4130. }
  4131. if iNdEx >= l {
  4132. return io.ErrUnexpectedEOF
  4133. }
  4134. b := dAtA[iNdEx]
  4135. iNdEx++
  4136. m.Revision |= int64(b&0x7F) << shift
  4137. if b < 0x80 {
  4138. break
  4139. }
  4140. }
  4141. default:
  4142. iNdEx = preIndex
  4143. skippy, err := skipGenerated(dAtA[iNdEx:])
  4144. if err != nil {
  4145. return err
  4146. }
  4147. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4148. return ErrInvalidLengthGenerated
  4149. }
  4150. if (iNdEx + skippy) > l {
  4151. return io.ErrUnexpectedEOF
  4152. }
  4153. iNdEx += skippy
  4154. }
  4155. }
  4156. if iNdEx > l {
  4157. return io.ErrUnexpectedEOF
  4158. }
  4159. return nil
  4160. }
  4161. func (m *RollingUpdateDeployment) Unmarshal(dAtA []byte) error {
  4162. l := len(dAtA)
  4163. iNdEx := 0
  4164. for iNdEx < l {
  4165. preIndex := iNdEx
  4166. var wire uint64
  4167. for shift := uint(0); ; shift += 7 {
  4168. if shift >= 64 {
  4169. return ErrIntOverflowGenerated
  4170. }
  4171. if iNdEx >= l {
  4172. return io.ErrUnexpectedEOF
  4173. }
  4174. b := dAtA[iNdEx]
  4175. iNdEx++
  4176. wire |= uint64(b&0x7F) << shift
  4177. if b < 0x80 {
  4178. break
  4179. }
  4180. }
  4181. fieldNum := int32(wire >> 3)
  4182. wireType := int(wire & 0x7)
  4183. if wireType == 4 {
  4184. return fmt.Errorf("proto: RollingUpdateDeployment: wiretype end group for non-group")
  4185. }
  4186. if fieldNum <= 0 {
  4187. return fmt.Errorf("proto: RollingUpdateDeployment: illegal tag %d (wire type %d)", fieldNum, wire)
  4188. }
  4189. switch fieldNum {
  4190. case 1:
  4191. if wireType != 2 {
  4192. return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType)
  4193. }
  4194. var msglen int
  4195. for shift := uint(0); ; shift += 7 {
  4196. if shift >= 64 {
  4197. return ErrIntOverflowGenerated
  4198. }
  4199. if iNdEx >= l {
  4200. return io.ErrUnexpectedEOF
  4201. }
  4202. b := dAtA[iNdEx]
  4203. iNdEx++
  4204. msglen |= int(b&0x7F) << shift
  4205. if b < 0x80 {
  4206. break
  4207. }
  4208. }
  4209. if msglen < 0 {
  4210. return ErrInvalidLengthGenerated
  4211. }
  4212. postIndex := iNdEx + msglen
  4213. if postIndex < 0 {
  4214. return ErrInvalidLengthGenerated
  4215. }
  4216. if postIndex > l {
  4217. return io.ErrUnexpectedEOF
  4218. }
  4219. if m.MaxUnavailable == nil {
  4220. m.MaxUnavailable = &intstr.IntOrString{}
  4221. }
  4222. if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4223. return err
  4224. }
  4225. iNdEx = postIndex
  4226. case 2:
  4227. if wireType != 2 {
  4228. return fmt.Errorf("proto: wrong wireType = %d for field MaxSurge", wireType)
  4229. }
  4230. var msglen int
  4231. for shift := uint(0); ; shift += 7 {
  4232. if shift >= 64 {
  4233. return ErrIntOverflowGenerated
  4234. }
  4235. if iNdEx >= l {
  4236. return io.ErrUnexpectedEOF
  4237. }
  4238. b := dAtA[iNdEx]
  4239. iNdEx++
  4240. msglen |= int(b&0x7F) << shift
  4241. if b < 0x80 {
  4242. break
  4243. }
  4244. }
  4245. if msglen < 0 {
  4246. return ErrInvalidLengthGenerated
  4247. }
  4248. postIndex := iNdEx + msglen
  4249. if postIndex < 0 {
  4250. return ErrInvalidLengthGenerated
  4251. }
  4252. if postIndex > l {
  4253. return io.ErrUnexpectedEOF
  4254. }
  4255. if m.MaxSurge == nil {
  4256. m.MaxSurge = &intstr.IntOrString{}
  4257. }
  4258. if err := m.MaxSurge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4259. return err
  4260. }
  4261. iNdEx = postIndex
  4262. default:
  4263. iNdEx = preIndex
  4264. skippy, err := skipGenerated(dAtA[iNdEx:])
  4265. if err != nil {
  4266. return err
  4267. }
  4268. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4269. return ErrInvalidLengthGenerated
  4270. }
  4271. if (iNdEx + skippy) > l {
  4272. return io.ErrUnexpectedEOF
  4273. }
  4274. iNdEx += skippy
  4275. }
  4276. }
  4277. if iNdEx > l {
  4278. return io.ErrUnexpectedEOF
  4279. }
  4280. return nil
  4281. }
  4282. func (m *RollingUpdateStatefulSetStrategy) Unmarshal(dAtA []byte) error {
  4283. l := len(dAtA)
  4284. iNdEx := 0
  4285. for iNdEx < l {
  4286. preIndex := iNdEx
  4287. var wire uint64
  4288. for shift := uint(0); ; shift += 7 {
  4289. if shift >= 64 {
  4290. return ErrIntOverflowGenerated
  4291. }
  4292. if iNdEx >= l {
  4293. return io.ErrUnexpectedEOF
  4294. }
  4295. b := dAtA[iNdEx]
  4296. iNdEx++
  4297. wire |= uint64(b&0x7F) << shift
  4298. if b < 0x80 {
  4299. break
  4300. }
  4301. }
  4302. fieldNum := int32(wire >> 3)
  4303. wireType := int(wire & 0x7)
  4304. if wireType == 4 {
  4305. return fmt.Errorf("proto: RollingUpdateStatefulSetStrategy: wiretype end group for non-group")
  4306. }
  4307. if fieldNum <= 0 {
  4308. return fmt.Errorf("proto: RollingUpdateStatefulSetStrategy: illegal tag %d (wire type %d)", fieldNum, wire)
  4309. }
  4310. switch fieldNum {
  4311. case 1:
  4312. if wireType != 0 {
  4313. return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType)
  4314. }
  4315. var v int32
  4316. for shift := uint(0); ; shift += 7 {
  4317. if shift >= 64 {
  4318. return ErrIntOverflowGenerated
  4319. }
  4320. if iNdEx >= l {
  4321. return io.ErrUnexpectedEOF
  4322. }
  4323. b := dAtA[iNdEx]
  4324. iNdEx++
  4325. v |= int32(b&0x7F) << shift
  4326. if b < 0x80 {
  4327. break
  4328. }
  4329. }
  4330. m.Partition = &v
  4331. default:
  4332. iNdEx = preIndex
  4333. skippy, err := skipGenerated(dAtA[iNdEx:])
  4334. if err != nil {
  4335. return err
  4336. }
  4337. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4338. return ErrInvalidLengthGenerated
  4339. }
  4340. if (iNdEx + skippy) > l {
  4341. return io.ErrUnexpectedEOF
  4342. }
  4343. iNdEx += skippy
  4344. }
  4345. }
  4346. if iNdEx > l {
  4347. return io.ErrUnexpectedEOF
  4348. }
  4349. return nil
  4350. }
  4351. func (m *Scale) Unmarshal(dAtA []byte) error {
  4352. l := len(dAtA)
  4353. iNdEx := 0
  4354. for iNdEx < l {
  4355. preIndex := iNdEx
  4356. var wire uint64
  4357. for shift := uint(0); ; shift += 7 {
  4358. if shift >= 64 {
  4359. return ErrIntOverflowGenerated
  4360. }
  4361. if iNdEx >= l {
  4362. return io.ErrUnexpectedEOF
  4363. }
  4364. b := dAtA[iNdEx]
  4365. iNdEx++
  4366. wire |= uint64(b&0x7F) << shift
  4367. if b < 0x80 {
  4368. break
  4369. }
  4370. }
  4371. fieldNum := int32(wire >> 3)
  4372. wireType := int(wire & 0x7)
  4373. if wireType == 4 {
  4374. return fmt.Errorf("proto: Scale: wiretype end group for non-group")
  4375. }
  4376. if fieldNum <= 0 {
  4377. return fmt.Errorf("proto: Scale: illegal tag %d (wire type %d)", fieldNum, wire)
  4378. }
  4379. switch fieldNum {
  4380. case 1:
  4381. if wireType != 2 {
  4382. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  4383. }
  4384. var msglen int
  4385. for shift := uint(0); ; shift += 7 {
  4386. if shift >= 64 {
  4387. return ErrIntOverflowGenerated
  4388. }
  4389. if iNdEx >= l {
  4390. return io.ErrUnexpectedEOF
  4391. }
  4392. b := dAtA[iNdEx]
  4393. iNdEx++
  4394. msglen |= int(b&0x7F) << shift
  4395. if b < 0x80 {
  4396. break
  4397. }
  4398. }
  4399. if msglen < 0 {
  4400. return ErrInvalidLengthGenerated
  4401. }
  4402. postIndex := iNdEx + msglen
  4403. if postIndex < 0 {
  4404. return ErrInvalidLengthGenerated
  4405. }
  4406. if postIndex > l {
  4407. return io.ErrUnexpectedEOF
  4408. }
  4409. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4410. return err
  4411. }
  4412. iNdEx = postIndex
  4413. case 2:
  4414. if wireType != 2 {
  4415. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  4416. }
  4417. var msglen int
  4418. for shift := uint(0); ; shift += 7 {
  4419. if shift >= 64 {
  4420. return ErrIntOverflowGenerated
  4421. }
  4422. if iNdEx >= l {
  4423. return io.ErrUnexpectedEOF
  4424. }
  4425. b := dAtA[iNdEx]
  4426. iNdEx++
  4427. msglen |= int(b&0x7F) << shift
  4428. if b < 0x80 {
  4429. break
  4430. }
  4431. }
  4432. if msglen < 0 {
  4433. return ErrInvalidLengthGenerated
  4434. }
  4435. postIndex := iNdEx + msglen
  4436. if postIndex < 0 {
  4437. return ErrInvalidLengthGenerated
  4438. }
  4439. if postIndex > l {
  4440. return io.ErrUnexpectedEOF
  4441. }
  4442. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4443. return err
  4444. }
  4445. iNdEx = postIndex
  4446. case 3:
  4447. if wireType != 2 {
  4448. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  4449. }
  4450. var msglen int
  4451. for shift := uint(0); ; shift += 7 {
  4452. if shift >= 64 {
  4453. return ErrIntOverflowGenerated
  4454. }
  4455. if iNdEx >= l {
  4456. return io.ErrUnexpectedEOF
  4457. }
  4458. b := dAtA[iNdEx]
  4459. iNdEx++
  4460. msglen |= int(b&0x7F) << shift
  4461. if b < 0x80 {
  4462. break
  4463. }
  4464. }
  4465. if msglen < 0 {
  4466. return ErrInvalidLengthGenerated
  4467. }
  4468. postIndex := iNdEx + msglen
  4469. if postIndex < 0 {
  4470. return ErrInvalidLengthGenerated
  4471. }
  4472. if postIndex > l {
  4473. return io.ErrUnexpectedEOF
  4474. }
  4475. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4476. return err
  4477. }
  4478. iNdEx = postIndex
  4479. default:
  4480. iNdEx = preIndex
  4481. skippy, err := skipGenerated(dAtA[iNdEx:])
  4482. if err != nil {
  4483. return err
  4484. }
  4485. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4486. return ErrInvalidLengthGenerated
  4487. }
  4488. if (iNdEx + skippy) > l {
  4489. return io.ErrUnexpectedEOF
  4490. }
  4491. iNdEx += skippy
  4492. }
  4493. }
  4494. if iNdEx > l {
  4495. return io.ErrUnexpectedEOF
  4496. }
  4497. return nil
  4498. }
  4499. func (m *ScaleSpec) Unmarshal(dAtA []byte) error {
  4500. l := len(dAtA)
  4501. iNdEx := 0
  4502. for iNdEx < l {
  4503. preIndex := iNdEx
  4504. var wire uint64
  4505. for shift := uint(0); ; shift += 7 {
  4506. if shift >= 64 {
  4507. return ErrIntOverflowGenerated
  4508. }
  4509. if iNdEx >= l {
  4510. return io.ErrUnexpectedEOF
  4511. }
  4512. b := dAtA[iNdEx]
  4513. iNdEx++
  4514. wire |= uint64(b&0x7F) << shift
  4515. if b < 0x80 {
  4516. break
  4517. }
  4518. }
  4519. fieldNum := int32(wire >> 3)
  4520. wireType := int(wire & 0x7)
  4521. if wireType == 4 {
  4522. return fmt.Errorf("proto: ScaleSpec: wiretype end group for non-group")
  4523. }
  4524. if fieldNum <= 0 {
  4525. return fmt.Errorf("proto: ScaleSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  4526. }
  4527. switch fieldNum {
  4528. case 1:
  4529. if wireType != 0 {
  4530. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  4531. }
  4532. m.Replicas = 0
  4533. for shift := uint(0); ; shift += 7 {
  4534. if shift >= 64 {
  4535. return ErrIntOverflowGenerated
  4536. }
  4537. if iNdEx >= l {
  4538. return io.ErrUnexpectedEOF
  4539. }
  4540. b := dAtA[iNdEx]
  4541. iNdEx++
  4542. m.Replicas |= int32(b&0x7F) << shift
  4543. if b < 0x80 {
  4544. break
  4545. }
  4546. }
  4547. default:
  4548. iNdEx = preIndex
  4549. skippy, err := skipGenerated(dAtA[iNdEx:])
  4550. if err != nil {
  4551. return err
  4552. }
  4553. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4554. return ErrInvalidLengthGenerated
  4555. }
  4556. if (iNdEx + skippy) > l {
  4557. return io.ErrUnexpectedEOF
  4558. }
  4559. iNdEx += skippy
  4560. }
  4561. }
  4562. if iNdEx > l {
  4563. return io.ErrUnexpectedEOF
  4564. }
  4565. return nil
  4566. }
  4567. func (m *ScaleStatus) Unmarshal(dAtA []byte) error {
  4568. l := len(dAtA)
  4569. iNdEx := 0
  4570. for iNdEx < l {
  4571. preIndex := iNdEx
  4572. var wire uint64
  4573. for shift := uint(0); ; shift += 7 {
  4574. if shift >= 64 {
  4575. return ErrIntOverflowGenerated
  4576. }
  4577. if iNdEx >= l {
  4578. return io.ErrUnexpectedEOF
  4579. }
  4580. b := dAtA[iNdEx]
  4581. iNdEx++
  4582. wire |= uint64(b&0x7F) << shift
  4583. if b < 0x80 {
  4584. break
  4585. }
  4586. }
  4587. fieldNum := int32(wire >> 3)
  4588. wireType := int(wire & 0x7)
  4589. if wireType == 4 {
  4590. return fmt.Errorf("proto: ScaleStatus: wiretype end group for non-group")
  4591. }
  4592. if fieldNum <= 0 {
  4593. return fmt.Errorf("proto: ScaleStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  4594. }
  4595. switch fieldNum {
  4596. case 1:
  4597. if wireType != 0 {
  4598. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  4599. }
  4600. m.Replicas = 0
  4601. for shift := uint(0); ; shift += 7 {
  4602. if shift >= 64 {
  4603. return ErrIntOverflowGenerated
  4604. }
  4605. if iNdEx >= l {
  4606. return io.ErrUnexpectedEOF
  4607. }
  4608. b := dAtA[iNdEx]
  4609. iNdEx++
  4610. m.Replicas |= int32(b&0x7F) << shift
  4611. if b < 0x80 {
  4612. break
  4613. }
  4614. }
  4615. case 2:
  4616. if wireType != 2 {
  4617. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  4618. }
  4619. var msglen int
  4620. for shift := uint(0); ; shift += 7 {
  4621. if shift >= 64 {
  4622. return ErrIntOverflowGenerated
  4623. }
  4624. if iNdEx >= l {
  4625. return io.ErrUnexpectedEOF
  4626. }
  4627. b := dAtA[iNdEx]
  4628. iNdEx++
  4629. msglen |= int(b&0x7F) << shift
  4630. if b < 0x80 {
  4631. break
  4632. }
  4633. }
  4634. if msglen < 0 {
  4635. return ErrInvalidLengthGenerated
  4636. }
  4637. postIndex := iNdEx + msglen
  4638. if postIndex < 0 {
  4639. return ErrInvalidLengthGenerated
  4640. }
  4641. if postIndex > l {
  4642. return io.ErrUnexpectedEOF
  4643. }
  4644. if m.Selector == nil {
  4645. m.Selector = make(map[string]string)
  4646. }
  4647. var mapkey string
  4648. var mapvalue string
  4649. for iNdEx < postIndex {
  4650. entryPreIndex := iNdEx
  4651. var wire uint64
  4652. for shift := uint(0); ; shift += 7 {
  4653. if shift >= 64 {
  4654. return ErrIntOverflowGenerated
  4655. }
  4656. if iNdEx >= l {
  4657. return io.ErrUnexpectedEOF
  4658. }
  4659. b := dAtA[iNdEx]
  4660. iNdEx++
  4661. wire |= uint64(b&0x7F) << shift
  4662. if b < 0x80 {
  4663. break
  4664. }
  4665. }
  4666. fieldNum := int32(wire >> 3)
  4667. if fieldNum == 1 {
  4668. var stringLenmapkey uint64
  4669. for shift := uint(0); ; shift += 7 {
  4670. if shift >= 64 {
  4671. return ErrIntOverflowGenerated
  4672. }
  4673. if iNdEx >= l {
  4674. return io.ErrUnexpectedEOF
  4675. }
  4676. b := dAtA[iNdEx]
  4677. iNdEx++
  4678. stringLenmapkey |= uint64(b&0x7F) << shift
  4679. if b < 0x80 {
  4680. break
  4681. }
  4682. }
  4683. intStringLenmapkey := int(stringLenmapkey)
  4684. if intStringLenmapkey < 0 {
  4685. return ErrInvalidLengthGenerated
  4686. }
  4687. postStringIndexmapkey := iNdEx + intStringLenmapkey
  4688. if postStringIndexmapkey < 0 {
  4689. return ErrInvalidLengthGenerated
  4690. }
  4691. if postStringIndexmapkey > l {
  4692. return io.ErrUnexpectedEOF
  4693. }
  4694. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  4695. iNdEx = postStringIndexmapkey
  4696. } else if fieldNum == 2 {
  4697. var stringLenmapvalue uint64
  4698. for shift := uint(0); ; shift += 7 {
  4699. if shift >= 64 {
  4700. return ErrIntOverflowGenerated
  4701. }
  4702. if iNdEx >= l {
  4703. return io.ErrUnexpectedEOF
  4704. }
  4705. b := dAtA[iNdEx]
  4706. iNdEx++
  4707. stringLenmapvalue |= uint64(b&0x7F) << shift
  4708. if b < 0x80 {
  4709. break
  4710. }
  4711. }
  4712. intStringLenmapvalue := int(stringLenmapvalue)
  4713. if intStringLenmapvalue < 0 {
  4714. return ErrInvalidLengthGenerated
  4715. }
  4716. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  4717. if postStringIndexmapvalue < 0 {
  4718. return ErrInvalidLengthGenerated
  4719. }
  4720. if postStringIndexmapvalue > l {
  4721. return io.ErrUnexpectedEOF
  4722. }
  4723. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  4724. iNdEx = postStringIndexmapvalue
  4725. } else {
  4726. iNdEx = entryPreIndex
  4727. skippy, err := skipGenerated(dAtA[iNdEx:])
  4728. if err != nil {
  4729. return err
  4730. }
  4731. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4732. return ErrInvalidLengthGenerated
  4733. }
  4734. if (iNdEx + skippy) > postIndex {
  4735. return io.ErrUnexpectedEOF
  4736. }
  4737. iNdEx += skippy
  4738. }
  4739. }
  4740. m.Selector[mapkey] = mapvalue
  4741. iNdEx = postIndex
  4742. case 3:
  4743. if wireType != 2 {
  4744. return fmt.Errorf("proto: wrong wireType = %d for field TargetSelector", wireType)
  4745. }
  4746. var stringLen uint64
  4747. for shift := uint(0); ; shift += 7 {
  4748. if shift >= 64 {
  4749. return ErrIntOverflowGenerated
  4750. }
  4751. if iNdEx >= l {
  4752. return io.ErrUnexpectedEOF
  4753. }
  4754. b := dAtA[iNdEx]
  4755. iNdEx++
  4756. stringLen |= uint64(b&0x7F) << shift
  4757. if b < 0x80 {
  4758. break
  4759. }
  4760. }
  4761. intStringLen := int(stringLen)
  4762. if intStringLen < 0 {
  4763. return ErrInvalidLengthGenerated
  4764. }
  4765. postIndex := iNdEx + intStringLen
  4766. if postIndex < 0 {
  4767. return ErrInvalidLengthGenerated
  4768. }
  4769. if postIndex > l {
  4770. return io.ErrUnexpectedEOF
  4771. }
  4772. m.TargetSelector = string(dAtA[iNdEx:postIndex])
  4773. iNdEx = postIndex
  4774. default:
  4775. iNdEx = preIndex
  4776. skippy, err := skipGenerated(dAtA[iNdEx:])
  4777. if err != nil {
  4778. return err
  4779. }
  4780. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4781. return ErrInvalidLengthGenerated
  4782. }
  4783. if (iNdEx + skippy) > l {
  4784. return io.ErrUnexpectedEOF
  4785. }
  4786. iNdEx += skippy
  4787. }
  4788. }
  4789. if iNdEx > l {
  4790. return io.ErrUnexpectedEOF
  4791. }
  4792. return nil
  4793. }
  4794. func (m *StatefulSet) Unmarshal(dAtA []byte) error {
  4795. l := len(dAtA)
  4796. iNdEx := 0
  4797. for iNdEx < l {
  4798. preIndex := iNdEx
  4799. var wire uint64
  4800. for shift := uint(0); ; shift += 7 {
  4801. if shift >= 64 {
  4802. return ErrIntOverflowGenerated
  4803. }
  4804. if iNdEx >= l {
  4805. return io.ErrUnexpectedEOF
  4806. }
  4807. b := dAtA[iNdEx]
  4808. iNdEx++
  4809. wire |= uint64(b&0x7F) << shift
  4810. if b < 0x80 {
  4811. break
  4812. }
  4813. }
  4814. fieldNum := int32(wire >> 3)
  4815. wireType := int(wire & 0x7)
  4816. if wireType == 4 {
  4817. return fmt.Errorf("proto: StatefulSet: wiretype end group for non-group")
  4818. }
  4819. if fieldNum <= 0 {
  4820. return fmt.Errorf("proto: StatefulSet: illegal tag %d (wire type %d)", fieldNum, wire)
  4821. }
  4822. switch fieldNum {
  4823. case 1:
  4824. if wireType != 2 {
  4825. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  4826. }
  4827. var msglen int
  4828. for shift := uint(0); ; shift += 7 {
  4829. if shift >= 64 {
  4830. return ErrIntOverflowGenerated
  4831. }
  4832. if iNdEx >= l {
  4833. return io.ErrUnexpectedEOF
  4834. }
  4835. b := dAtA[iNdEx]
  4836. iNdEx++
  4837. msglen |= int(b&0x7F) << shift
  4838. if b < 0x80 {
  4839. break
  4840. }
  4841. }
  4842. if msglen < 0 {
  4843. return ErrInvalidLengthGenerated
  4844. }
  4845. postIndex := iNdEx + msglen
  4846. if postIndex < 0 {
  4847. return ErrInvalidLengthGenerated
  4848. }
  4849. if postIndex > l {
  4850. return io.ErrUnexpectedEOF
  4851. }
  4852. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4853. return err
  4854. }
  4855. iNdEx = postIndex
  4856. case 2:
  4857. if wireType != 2 {
  4858. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  4859. }
  4860. var msglen int
  4861. for shift := uint(0); ; shift += 7 {
  4862. if shift >= 64 {
  4863. return ErrIntOverflowGenerated
  4864. }
  4865. if iNdEx >= l {
  4866. return io.ErrUnexpectedEOF
  4867. }
  4868. b := dAtA[iNdEx]
  4869. iNdEx++
  4870. msglen |= int(b&0x7F) << shift
  4871. if b < 0x80 {
  4872. break
  4873. }
  4874. }
  4875. if msglen < 0 {
  4876. return ErrInvalidLengthGenerated
  4877. }
  4878. postIndex := iNdEx + msglen
  4879. if postIndex < 0 {
  4880. return ErrInvalidLengthGenerated
  4881. }
  4882. if postIndex > l {
  4883. return io.ErrUnexpectedEOF
  4884. }
  4885. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4886. return err
  4887. }
  4888. iNdEx = postIndex
  4889. case 3:
  4890. if wireType != 2 {
  4891. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  4892. }
  4893. var msglen int
  4894. for shift := uint(0); ; shift += 7 {
  4895. if shift >= 64 {
  4896. return ErrIntOverflowGenerated
  4897. }
  4898. if iNdEx >= l {
  4899. return io.ErrUnexpectedEOF
  4900. }
  4901. b := dAtA[iNdEx]
  4902. iNdEx++
  4903. msglen |= int(b&0x7F) << shift
  4904. if b < 0x80 {
  4905. break
  4906. }
  4907. }
  4908. if msglen < 0 {
  4909. return ErrInvalidLengthGenerated
  4910. }
  4911. postIndex := iNdEx + msglen
  4912. if postIndex < 0 {
  4913. return ErrInvalidLengthGenerated
  4914. }
  4915. if postIndex > l {
  4916. return io.ErrUnexpectedEOF
  4917. }
  4918. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4919. return err
  4920. }
  4921. iNdEx = postIndex
  4922. default:
  4923. iNdEx = preIndex
  4924. skippy, err := skipGenerated(dAtA[iNdEx:])
  4925. if err != nil {
  4926. return err
  4927. }
  4928. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4929. return ErrInvalidLengthGenerated
  4930. }
  4931. if (iNdEx + skippy) > l {
  4932. return io.ErrUnexpectedEOF
  4933. }
  4934. iNdEx += skippy
  4935. }
  4936. }
  4937. if iNdEx > l {
  4938. return io.ErrUnexpectedEOF
  4939. }
  4940. return nil
  4941. }
  4942. func (m *StatefulSetCondition) Unmarshal(dAtA []byte) error {
  4943. l := len(dAtA)
  4944. iNdEx := 0
  4945. for iNdEx < l {
  4946. preIndex := iNdEx
  4947. var wire uint64
  4948. for shift := uint(0); ; shift += 7 {
  4949. if shift >= 64 {
  4950. return ErrIntOverflowGenerated
  4951. }
  4952. if iNdEx >= l {
  4953. return io.ErrUnexpectedEOF
  4954. }
  4955. b := dAtA[iNdEx]
  4956. iNdEx++
  4957. wire |= uint64(b&0x7F) << shift
  4958. if b < 0x80 {
  4959. break
  4960. }
  4961. }
  4962. fieldNum := int32(wire >> 3)
  4963. wireType := int(wire & 0x7)
  4964. if wireType == 4 {
  4965. return fmt.Errorf("proto: StatefulSetCondition: wiretype end group for non-group")
  4966. }
  4967. if fieldNum <= 0 {
  4968. return fmt.Errorf("proto: StatefulSetCondition: illegal tag %d (wire type %d)", fieldNum, wire)
  4969. }
  4970. switch fieldNum {
  4971. case 1:
  4972. if wireType != 2 {
  4973. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  4974. }
  4975. var stringLen uint64
  4976. for shift := uint(0); ; shift += 7 {
  4977. if shift >= 64 {
  4978. return ErrIntOverflowGenerated
  4979. }
  4980. if iNdEx >= l {
  4981. return io.ErrUnexpectedEOF
  4982. }
  4983. b := dAtA[iNdEx]
  4984. iNdEx++
  4985. stringLen |= uint64(b&0x7F) << shift
  4986. if b < 0x80 {
  4987. break
  4988. }
  4989. }
  4990. intStringLen := int(stringLen)
  4991. if intStringLen < 0 {
  4992. return ErrInvalidLengthGenerated
  4993. }
  4994. postIndex := iNdEx + intStringLen
  4995. if postIndex < 0 {
  4996. return ErrInvalidLengthGenerated
  4997. }
  4998. if postIndex > l {
  4999. return io.ErrUnexpectedEOF
  5000. }
  5001. m.Type = StatefulSetConditionType(dAtA[iNdEx:postIndex])
  5002. iNdEx = postIndex
  5003. case 2:
  5004. if wireType != 2 {
  5005. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  5006. }
  5007. var stringLen uint64
  5008. for shift := uint(0); ; shift += 7 {
  5009. if shift >= 64 {
  5010. return ErrIntOverflowGenerated
  5011. }
  5012. if iNdEx >= l {
  5013. return io.ErrUnexpectedEOF
  5014. }
  5015. b := dAtA[iNdEx]
  5016. iNdEx++
  5017. stringLen |= uint64(b&0x7F) << shift
  5018. if b < 0x80 {
  5019. break
  5020. }
  5021. }
  5022. intStringLen := int(stringLen)
  5023. if intStringLen < 0 {
  5024. return ErrInvalidLengthGenerated
  5025. }
  5026. postIndex := iNdEx + intStringLen
  5027. if postIndex < 0 {
  5028. return ErrInvalidLengthGenerated
  5029. }
  5030. if postIndex > l {
  5031. return io.ErrUnexpectedEOF
  5032. }
  5033. m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex])
  5034. iNdEx = postIndex
  5035. case 3:
  5036. if wireType != 2 {
  5037. return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
  5038. }
  5039. var msglen int
  5040. for shift := uint(0); ; shift += 7 {
  5041. if shift >= 64 {
  5042. return ErrIntOverflowGenerated
  5043. }
  5044. if iNdEx >= l {
  5045. return io.ErrUnexpectedEOF
  5046. }
  5047. b := dAtA[iNdEx]
  5048. iNdEx++
  5049. msglen |= int(b&0x7F) << shift
  5050. if b < 0x80 {
  5051. break
  5052. }
  5053. }
  5054. if msglen < 0 {
  5055. return ErrInvalidLengthGenerated
  5056. }
  5057. postIndex := iNdEx + msglen
  5058. if postIndex < 0 {
  5059. return ErrInvalidLengthGenerated
  5060. }
  5061. if postIndex > l {
  5062. return io.ErrUnexpectedEOF
  5063. }
  5064. if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5065. return err
  5066. }
  5067. iNdEx = postIndex
  5068. case 4:
  5069. if wireType != 2 {
  5070. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  5071. }
  5072. var stringLen uint64
  5073. for shift := uint(0); ; shift += 7 {
  5074. if shift >= 64 {
  5075. return ErrIntOverflowGenerated
  5076. }
  5077. if iNdEx >= l {
  5078. return io.ErrUnexpectedEOF
  5079. }
  5080. b := dAtA[iNdEx]
  5081. iNdEx++
  5082. stringLen |= uint64(b&0x7F) << shift
  5083. if b < 0x80 {
  5084. break
  5085. }
  5086. }
  5087. intStringLen := int(stringLen)
  5088. if intStringLen < 0 {
  5089. return ErrInvalidLengthGenerated
  5090. }
  5091. postIndex := iNdEx + intStringLen
  5092. if postIndex < 0 {
  5093. return ErrInvalidLengthGenerated
  5094. }
  5095. if postIndex > l {
  5096. return io.ErrUnexpectedEOF
  5097. }
  5098. m.Reason = string(dAtA[iNdEx:postIndex])
  5099. iNdEx = postIndex
  5100. case 5:
  5101. if wireType != 2 {
  5102. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  5103. }
  5104. var stringLen uint64
  5105. for shift := uint(0); ; shift += 7 {
  5106. if shift >= 64 {
  5107. return ErrIntOverflowGenerated
  5108. }
  5109. if iNdEx >= l {
  5110. return io.ErrUnexpectedEOF
  5111. }
  5112. b := dAtA[iNdEx]
  5113. iNdEx++
  5114. stringLen |= uint64(b&0x7F) << shift
  5115. if b < 0x80 {
  5116. break
  5117. }
  5118. }
  5119. intStringLen := int(stringLen)
  5120. if intStringLen < 0 {
  5121. return ErrInvalidLengthGenerated
  5122. }
  5123. postIndex := iNdEx + intStringLen
  5124. if postIndex < 0 {
  5125. return ErrInvalidLengthGenerated
  5126. }
  5127. if postIndex > l {
  5128. return io.ErrUnexpectedEOF
  5129. }
  5130. m.Message = string(dAtA[iNdEx:postIndex])
  5131. iNdEx = postIndex
  5132. default:
  5133. iNdEx = preIndex
  5134. skippy, err := skipGenerated(dAtA[iNdEx:])
  5135. if err != nil {
  5136. return err
  5137. }
  5138. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5139. return ErrInvalidLengthGenerated
  5140. }
  5141. if (iNdEx + skippy) > l {
  5142. return io.ErrUnexpectedEOF
  5143. }
  5144. iNdEx += skippy
  5145. }
  5146. }
  5147. if iNdEx > l {
  5148. return io.ErrUnexpectedEOF
  5149. }
  5150. return nil
  5151. }
  5152. func (m *StatefulSetList) Unmarshal(dAtA []byte) error {
  5153. l := len(dAtA)
  5154. iNdEx := 0
  5155. for iNdEx < l {
  5156. preIndex := iNdEx
  5157. var wire uint64
  5158. for shift := uint(0); ; shift += 7 {
  5159. if shift >= 64 {
  5160. return ErrIntOverflowGenerated
  5161. }
  5162. if iNdEx >= l {
  5163. return io.ErrUnexpectedEOF
  5164. }
  5165. b := dAtA[iNdEx]
  5166. iNdEx++
  5167. wire |= uint64(b&0x7F) << shift
  5168. if b < 0x80 {
  5169. break
  5170. }
  5171. }
  5172. fieldNum := int32(wire >> 3)
  5173. wireType := int(wire & 0x7)
  5174. if wireType == 4 {
  5175. return fmt.Errorf("proto: StatefulSetList: wiretype end group for non-group")
  5176. }
  5177. if fieldNum <= 0 {
  5178. return fmt.Errorf("proto: StatefulSetList: illegal tag %d (wire type %d)", fieldNum, wire)
  5179. }
  5180. switch fieldNum {
  5181. case 1:
  5182. if wireType != 2 {
  5183. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  5184. }
  5185. var msglen int
  5186. for shift := uint(0); ; shift += 7 {
  5187. if shift >= 64 {
  5188. return ErrIntOverflowGenerated
  5189. }
  5190. if iNdEx >= l {
  5191. return io.ErrUnexpectedEOF
  5192. }
  5193. b := dAtA[iNdEx]
  5194. iNdEx++
  5195. msglen |= int(b&0x7F) << shift
  5196. if b < 0x80 {
  5197. break
  5198. }
  5199. }
  5200. if msglen < 0 {
  5201. return ErrInvalidLengthGenerated
  5202. }
  5203. postIndex := iNdEx + msglen
  5204. if postIndex < 0 {
  5205. return ErrInvalidLengthGenerated
  5206. }
  5207. if postIndex > l {
  5208. return io.ErrUnexpectedEOF
  5209. }
  5210. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5211. return err
  5212. }
  5213. iNdEx = postIndex
  5214. case 2:
  5215. if wireType != 2 {
  5216. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  5217. }
  5218. var msglen int
  5219. for shift := uint(0); ; shift += 7 {
  5220. if shift >= 64 {
  5221. return ErrIntOverflowGenerated
  5222. }
  5223. if iNdEx >= l {
  5224. return io.ErrUnexpectedEOF
  5225. }
  5226. b := dAtA[iNdEx]
  5227. iNdEx++
  5228. msglen |= int(b&0x7F) << shift
  5229. if b < 0x80 {
  5230. break
  5231. }
  5232. }
  5233. if msglen < 0 {
  5234. return ErrInvalidLengthGenerated
  5235. }
  5236. postIndex := iNdEx + msglen
  5237. if postIndex < 0 {
  5238. return ErrInvalidLengthGenerated
  5239. }
  5240. if postIndex > l {
  5241. return io.ErrUnexpectedEOF
  5242. }
  5243. m.Items = append(m.Items, StatefulSet{})
  5244. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5245. return err
  5246. }
  5247. iNdEx = postIndex
  5248. default:
  5249. iNdEx = preIndex
  5250. skippy, err := skipGenerated(dAtA[iNdEx:])
  5251. if err != nil {
  5252. return err
  5253. }
  5254. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5255. return ErrInvalidLengthGenerated
  5256. }
  5257. if (iNdEx + skippy) > l {
  5258. return io.ErrUnexpectedEOF
  5259. }
  5260. iNdEx += skippy
  5261. }
  5262. }
  5263. if iNdEx > l {
  5264. return io.ErrUnexpectedEOF
  5265. }
  5266. return nil
  5267. }
  5268. func (m *StatefulSetSpec) Unmarshal(dAtA []byte) error {
  5269. l := len(dAtA)
  5270. iNdEx := 0
  5271. for iNdEx < l {
  5272. preIndex := iNdEx
  5273. var wire uint64
  5274. for shift := uint(0); ; shift += 7 {
  5275. if shift >= 64 {
  5276. return ErrIntOverflowGenerated
  5277. }
  5278. if iNdEx >= l {
  5279. return io.ErrUnexpectedEOF
  5280. }
  5281. b := dAtA[iNdEx]
  5282. iNdEx++
  5283. wire |= uint64(b&0x7F) << shift
  5284. if b < 0x80 {
  5285. break
  5286. }
  5287. }
  5288. fieldNum := int32(wire >> 3)
  5289. wireType := int(wire & 0x7)
  5290. if wireType == 4 {
  5291. return fmt.Errorf("proto: StatefulSetSpec: wiretype end group for non-group")
  5292. }
  5293. if fieldNum <= 0 {
  5294. return fmt.Errorf("proto: StatefulSetSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  5295. }
  5296. switch fieldNum {
  5297. case 1:
  5298. if wireType != 0 {
  5299. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  5300. }
  5301. var v int32
  5302. for shift := uint(0); ; shift += 7 {
  5303. if shift >= 64 {
  5304. return ErrIntOverflowGenerated
  5305. }
  5306. if iNdEx >= l {
  5307. return io.ErrUnexpectedEOF
  5308. }
  5309. b := dAtA[iNdEx]
  5310. iNdEx++
  5311. v |= int32(b&0x7F) << shift
  5312. if b < 0x80 {
  5313. break
  5314. }
  5315. }
  5316. m.Replicas = &v
  5317. case 2:
  5318. if wireType != 2 {
  5319. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  5320. }
  5321. var msglen int
  5322. for shift := uint(0); ; shift += 7 {
  5323. if shift >= 64 {
  5324. return ErrIntOverflowGenerated
  5325. }
  5326. if iNdEx >= l {
  5327. return io.ErrUnexpectedEOF
  5328. }
  5329. b := dAtA[iNdEx]
  5330. iNdEx++
  5331. msglen |= int(b&0x7F) << shift
  5332. if b < 0x80 {
  5333. break
  5334. }
  5335. }
  5336. if msglen < 0 {
  5337. return ErrInvalidLengthGenerated
  5338. }
  5339. postIndex := iNdEx + msglen
  5340. if postIndex < 0 {
  5341. return ErrInvalidLengthGenerated
  5342. }
  5343. if postIndex > l {
  5344. return io.ErrUnexpectedEOF
  5345. }
  5346. if m.Selector == nil {
  5347. m.Selector = &v1.LabelSelector{}
  5348. }
  5349. if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5350. return err
  5351. }
  5352. iNdEx = postIndex
  5353. case 3:
  5354. if wireType != 2 {
  5355. return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
  5356. }
  5357. var msglen int
  5358. for shift := uint(0); ; shift += 7 {
  5359. if shift >= 64 {
  5360. return ErrIntOverflowGenerated
  5361. }
  5362. if iNdEx >= l {
  5363. return io.ErrUnexpectedEOF
  5364. }
  5365. b := dAtA[iNdEx]
  5366. iNdEx++
  5367. msglen |= int(b&0x7F) << shift
  5368. if b < 0x80 {
  5369. break
  5370. }
  5371. }
  5372. if msglen < 0 {
  5373. return ErrInvalidLengthGenerated
  5374. }
  5375. postIndex := iNdEx + msglen
  5376. if postIndex < 0 {
  5377. return ErrInvalidLengthGenerated
  5378. }
  5379. if postIndex > l {
  5380. return io.ErrUnexpectedEOF
  5381. }
  5382. if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5383. return err
  5384. }
  5385. iNdEx = postIndex
  5386. case 4:
  5387. if wireType != 2 {
  5388. return fmt.Errorf("proto: wrong wireType = %d for field VolumeClaimTemplates", wireType)
  5389. }
  5390. var msglen int
  5391. for shift := uint(0); ; shift += 7 {
  5392. if shift >= 64 {
  5393. return ErrIntOverflowGenerated
  5394. }
  5395. if iNdEx >= l {
  5396. return io.ErrUnexpectedEOF
  5397. }
  5398. b := dAtA[iNdEx]
  5399. iNdEx++
  5400. msglen |= int(b&0x7F) << shift
  5401. if b < 0x80 {
  5402. break
  5403. }
  5404. }
  5405. if msglen < 0 {
  5406. return ErrInvalidLengthGenerated
  5407. }
  5408. postIndex := iNdEx + msglen
  5409. if postIndex < 0 {
  5410. return ErrInvalidLengthGenerated
  5411. }
  5412. if postIndex > l {
  5413. return io.ErrUnexpectedEOF
  5414. }
  5415. m.VolumeClaimTemplates = append(m.VolumeClaimTemplates, v11.PersistentVolumeClaim{})
  5416. if err := m.VolumeClaimTemplates[len(m.VolumeClaimTemplates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5417. return err
  5418. }
  5419. iNdEx = postIndex
  5420. case 5:
  5421. if wireType != 2 {
  5422. return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", wireType)
  5423. }
  5424. var stringLen uint64
  5425. for shift := uint(0); ; shift += 7 {
  5426. if shift >= 64 {
  5427. return ErrIntOverflowGenerated
  5428. }
  5429. if iNdEx >= l {
  5430. return io.ErrUnexpectedEOF
  5431. }
  5432. b := dAtA[iNdEx]
  5433. iNdEx++
  5434. stringLen |= uint64(b&0x7F) << shift
  5435. if b < 0x80 {
  5436. break
  5437. }
  5438. }
  5439. intStringLen := int(stringLen)
  5440. if intStringLen < 0 {
  5441. return ErrInvalidLengthGenerated
  5442. }
  5443. postIndex := iNdEx + intStringLen
  5444. if postIndex < 0 {
  5445. return ErrInvalidLengthGenerated
  5446. }
  5447. if postIndex > l {
  5448. return io.ErrUnexpectedEOF
  5449. }
  5450. m.ServiceName = string(dAtA[iNdEx:postIndex])
  5451. iNdEx = postIndex
  5452. case 6:
  5453. if wireType != 2 {
  5454. return fmt.Errorf("proto: wrong wireType = %d for field PodManagementPolicy", wireType)
  5455. }
  5456. var stringLen uint64
  5457. for shift := uint(0); ; shift += 7 {
  5458. if shift >= 64 {
  5459. return ErrIntOverflowGenerated
  5460. }
  5461. if iNdEx >= l {
  5462. return io.ErrUnexpectedEOF
  5463. }
  5464. b := dAtA[iNdEx]
  5465. iNdEx++
  5466. stringLen |= uint64(b&0x7F) << shift
  5467. if b < 0x80 {
  5468. break
  5469. }
  5470. }
  5471. intStringLen := int(stringLen)
  5472. if intStringLen < 0 {
  5473. return ErrInvalidLengthGenerated
  5474. }
  5475. postIndex := iNdEx + intStringLen
  5476. if postIndex < 0 {
  5477. return ErrInvalidLengthGenerated
  5478. }
  5479. if postIndex > l {
  5480. return io.ErrUnexpectedEOF
  5481. }
  5482. m.PodManagementPolicy = PodManagementPolicyType(dAtA[iNdEx:postIndex])
  5483. iNdEx = postIndex
  5484. case 7:
  5485. if wireType != 2 {
  5486. return fmt.Errorf("proto: wrong wireType = %d for field UpdateStrategy", wireType)
  5487. }
  5488. var msglen int
  5489. for shift := uint(0); ; shift += 7 {
  5490. if shift >= 64 {
  5491. return ErrIntOverflowGenerated
  5492. }
  5493. if iNdEx >= l {
  5494. return io.ErrUnexpectedEOF
  5495. }
  5496. b := dAtA[iNdEx]
  5497. iNdEx++
  5498. msglen |= int(b&0x7F) << shift
  5499. if b < 0x80 {
  5500. break
  5501. }
  5502. }
  5503. if msglen < 0 {
  5504. return ErrInvalidLengthGenerated
  5505. }
  5506. postIndex := iNdEx + msglen
  5507. if postIndex < 0 {
  5508. return ErrInvalidLengthGenerated
  5509. }
  5510. if postIndex > l {
  5511. return io.ErrUnexpectedEOF
  5512. }
  5513. if err := m.UpdateStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5514. return err
  5515. }
  5516. iNdEx = postIndex
  5517. case 8:
  5518. if wireType != 0 {
  5519. return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType)
  5520. }
  5521. var v int32
  5522. for shift := uint(0); ; shift += 7 {
  5523. if shift >= 64 {
  5524. return ErrIntOverflowGenerated
  5525. }
  5526. if iNdEx >= l {
  5527. return io.ErrUnexpectedEOF
  5528. }
  5529. b := dAtA[iNdEx]
  5530. iNdEx++
  5531. v |= int32(b&0x7F) << shift
  5532. if b < 0x80 {
  5533. break
  5534. }
  5535. }
  5536. m.RevisionHistoryLimit = &v
  5537. default:
  5538. iNdEx = preIndex
  5539. skippy, err := skipGenerated(dAtA[iNdEx:])
  5540. if err != nil {
  5541. return err
  5542. }
  5543. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5544. return ErrInvalidLengthGenerated
  5545. }
  5546. if (iNdEx + skippy) > l {
  5547. return io.ErrUnexpectedEOF
  5548. }
  5549. iNdEx += skippy
  5550. }
  5551. }
  5552. if iNdEx > l {
  5553. return io.ErrUnexpectedEOF
  5554. }
  5555. return nil
  5556. }
  5557. func (m *StatefulSetStatus) Unmarshal(dAtA []byte) error {
  5558. l := len(dAtA)
  5559. iNdEx := 0
  5560. for iNdEx < l {
  5561. preIndex := iNdEx
  5562. var wire uint64
  5563. for shift := uint(0); ; shift += 7 {
  5564. if shift >= 64 {
  5565. return ErrIntOverflowGenerated
  5566. }
  5567. if iNdEx >= l {
  5568. return io.ErrUnexpectedEOF
  5569. }
  5570. b := dAtA[iNdEx]
  5571. iNdEx++
  5572. wire |= uint64(b&0x7F) << shift
  5573. if b < 0x80 {
  5574. break
  5575. }
  5576. }
  5577. fieldNum := int32(wire >> 3)
  5578. wireType := int(wire & 0x7)
  5579. if wireType == 4 {
  5580. return fmt.Errorf("proto: StatefulSetStatus: wiretype end group for non-group")
  5581. }
  5582. if fieldNum <= 0 {
  5583. return fmt.Errorf("proto: StatefulSetStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  5584. }
  5585. switch fieldNum {
  5586. case 1:
  5587. if wireType != 0 {
  5588. return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
  5589. }
  5590. var v int64
  5591. for shift := uint(0); ; shift += 7 {
  5592. if shift >= 64 {
  5593. return ErrIntOverflowGenerated
  5594. }
  5595. if iNdEx >= l {
  5596. return io.ErrUnexpectedEOF
  5597. }
  5598. b := dAtA[iNdEx]
  5599. iNdEx++
  5600. v |= int64(b&0x7F) << shift
  5601. if b < 0x80 {
  5602. break
  5603. }
  5604. }
  5605. m.ObservedGeneration = &v
  5606. case 2:
  5607. if wireType != 0 {
  5608. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  5609. }
  5610. m.Replicas = 0
  5611. for shift := uint(0); ; shift += 7 {
  5612. if shift >= 64 {
  5613. return ErrIntOverflowGenerated
  5614. }
  5615. if iNdEx >= l {
  5616. return io.ErrUnexpectedEOF
  5617. }
  5618. b := dAtA[iNdEx]
  5619. iNdEx++
  5620. m.Replicas |= int32(b&0x7F) << shift
  5621. if b < 0x80 {
  5622. break
  5623. }
  5624. }
  5625. case 3:
  5626. if wireType != 0 {
  5627. return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType)
  5628. }
  5629. m.ReadyReplicas = 0
  5630. for shift := uint(0); ; shift += 7 {
  5631. if shift >= 64 {
  5632. return ErrIntOverflowGenerated
  5633. }
  5634. if iNdEx >= l {
  5635. return io.ErrUnexpectedEOF
  5636. }
  5637. b := dAtA[iNdEx]
  5638. iNdEx++
  5639. m.ReadyReplicas |= int32(b&0x7F) << shift
  5640. if b < 0x80 {
  5641. break
  5642. }
  5643. }
  5644. case 4:
  5645. if wireType != 0 {
  5646. return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType)
  5647. }
  5648. m.CurrentReplicas = 0
  5649. for shift := uint(0); ; shift += 7 {
  5650. if shift >= 64 {
  5651. return ErrIntOverflowGenerated
  5652. }
  5653. if iNdEx >= l {
  5654. return io.ErrUnexpectedEOF
  5655. }
  5656. b := dAtA[iNdEx]
  5657. iNdEx++
  5658. m.CurrentReplicas |= int32(b&0x7F) << shift
  5659. if b < 0x80 {
  5660. break
  5661. }
  5662. }
  5663. case 5:
  5664. if wireType != 0 {
  5665. return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType)
  5666. }
  5667. m.UpdatedReplicas = 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.UpdatedReplicas |= int32(b&0x7F) << shift
  5678. if b < 0x80 {
  5679. break
  5680. }
  5681. }
  5682. case 6:
  5683. if wireType != 2 {
  5684. return fmt.Errorf("proto: wrong wireType = %d for field CurrentRevision", wireType)
  5685. }
  5686. var stringLen uint64
  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. stringLen |= uint64(b&0x7F) << shift
  5697. if b < 0x80 {
  5698. break
  5699. }
  5700. }
  5701. intStringLen := int(stringLen)
  5702. if intStringLen < 0 {
  5703. return ErrInvalidLengthGenerated
  5704. }
  5705. postIndex := iNdEx + intStringLen
  5706. if postIndex < 0 {
  5707. return ErrInvalidLengthGenerated
  5708. }
  5709. if postIndex > l {
  5710. return io.ErrUnexpectedEOF
  5711. }
  5712. m.CurrentRevision = string(dAtA[iNdEx:postIndex])
  5713. iNdEx = postIndex
  5714. case 7:
  5715. if wireType != 2 {
  5716. return fmt.Errorf("proto: wrong wireType = %d for field UpdateRevision", wireType)
  5717. }
  5718. var stringLen uint64
  5719. for shift := uint(0); ; shift += 7 {
  5720. if shift >= 64 {
  5721. return ErrIntOverflowGenerated
  5722. }
  5723. if iNdEx >= l {
  5724. return io.ErrUnexpectedEOF
  5725. }
  5726. b := dAtA[iNdEx]
  5727. iNdEx++
  5728. stringLen |= uint64(b&0x7F) << shift
  5729. if b < 0x80 {
  5730. break
  5731. }
  5732. }
  5733. intStringLen := int(stringLen)
  5734. if intStringLen < 0 {
  5735. return ErrInvalidLengthGenerated
  5736. }
  5737. postIndex := iNdEx + intStringLen
  5738. if postIndex < 0 {
  5739. return ErrInvalidLengthGenerated
  5740. }
  5741. if postIndex > l {
  5742. return io.ErrUnexpectedEOF
  5743. }
  5744. m.UpdateRevision = string(dAtA[iNdEx:postIndex])
  5745. iNdEx = postIndex
  5746. case 9:
  5747. if wireType != 0 {
  5748. return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType)
  5749. }
  5750. var v int32
  5751. for shift := uint(0); ; shift += 7 {
  5752. if shift >= 64 {
  5753. return ErrIntOverflowGenerated
  5754. }
  5755. if iNdEx >= l {
  5756. return io.ErrUnexpectedEOF
  5757. }
  5758. b := dAtA[iNdEx]
  5759. iNdEx++
  5760. v |= int32(b&0x7F) << shift
  5761. if b < 0x80 {
  5762. break
  5763. }
  5764. }
  5765. m.CollisionCount = &v
  5766. case 10:
  5767. if wireType != 2 {
  5768. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  5769. }
  5770. var msglen int
  5771. for shift := uint(0); ; shift += 7 {
  5772. if shift >= 64 {
  5773. return ErrIntOverflowGenerated
  5774. }
  5775. if iNdEx >= l {
  5776. return io.ErrUnexpectedEOF
  5777. }
  5778. b := dAtA[iNdEx]
  5779. iNdEx++
  5780. msglen |= int(b&0x7F) << shift
  5781. if b < 0x80 {
  5782. break
  5783. }
  5784. }
  5785. if msglen < 0 {
  5786. return ErrInvalidLengthGenerated
  5787. }
  5788. postIndex := iNdEx + msglen
  5789. if postIndex < 0 {
  5790. return ErrInvalidLengthGenerated
  5791. }
  5792. if postIndex > l {
  5793. return io.ErrUnexpectedEOF
  5794. }
  5795. m.Conditions = append(m.Conditions, StatefulSetCondition{})
  5796. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5797. return err
  5798. }
  5799. iNdEx = postIndex
  5800. default:
  5801. iNdEx = preIndex
  5802. skippy, err := skipGenerated(dAtA[iNdEx:])
  5803. if err != nil {
  5804. return err
  5805. }
  5806. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5807. return ErrInvalidLengthGenerated
  5808. }
  5809. if (iNdEx + skippy) > l {
  5810. return io.ErrUnexpectedEOF
  5811. }
  5812. iNdEx += skippy
  5813. }
  5814. }
  5815. if iNdEx > l {
  5816. return io.ErrUnexpectedEOF
  5817. }
  5818. return nil
  5819. }
  5820. func (m *StatefulSetUpdateStrategy) Unmarshal(dAtA []byte) error {
  5821. l := len(dAtA)
  5822. iNdEx := 0
  5823. for iNdEx < l {
  5824. preIndex := iNdEx
  5825. var wire uint64
  5826. for shift := uint(0); ; shift += 7 {
  5827. if shift >= 64 {
  5828. return ErrIntOverflowGenerated
  5829. }
  5830. if iNdEx >= l {
  5831. return io.ErrUnexpectedEOF
  5832. }
  5833. b := dAtA[iNdEx]
  5834. iNdEx++
  5835. wire |= uint64(b&0x7F) << shift
  5836. if b < 0x80 {
  5837. break
  5838. }
  5839. }
  5840. fieldNum := int32(wire >> 3)
  5841. wireType := int(wire & 0x7)
  5842. if wireType == 4 {
  5843. return fmt.Errorf("proto: StatefulSetUpdateStrategy: wiretype end group for non-group")
  5844. }
  5845. if fieldNum <= 0 {
  5846. return fmt.Errorf("proto: StatefulSetUpdateStrategy: illegal tag %d (wire type %d)", fieldNum, wire)
  5847. }
  5848. switch fieldNum {
  5849. case 1:
  5850. if wireType != 2 {
  5851. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  5852. }
  5853. var stringLen uint64
  5854. for shift := uint(0); ; shift += 7 {
  5855. if shift >= 64 {
  5856. return ErrIntOverflowGenerated
  5857. }
  5858. if iNdEx >= l {
  5859. return io.ErrUnexpectedEOF
  5860. }
  5861. b := dAtA[iNdEx]
  5862. iNdEx++
  5863. stringLen |= uint64(b&0x7F) << shift
  5864. if b < 0x80 {
  5865. break
  5866. }
  5867. }
  5868. intStringLen := int(stringLen)
  5869. if intStringLen < 0 {
  5870. return ErrInvalidLengthGenerated
  5871. }
  5872. postIndex := iNdEx + intStringLen
  5873. if postIndex < 0 {
  5874. return ErrInvalidLengthGenerated
  5875. }
  5876. if postIndex > l {
  5877. return io.ErrUnexpectedEOF
  5878. }
  5879. m.Type = StatefulSetUpdateStrategyType(dAtA[iNdEx:postIndex])
  5880. iNdEx = postIndex
  5881. case 2:
  5882. if wireType != 2 {
  5883. return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType)
  5884. }
  5885. var msglen int
  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. msglen |= int(b&0x7F) << shift
  5896. if b < 0x80 {
  5897. break
  5898. }
  5899. }
  5900. if msglen < 0 {
  5901. return ErrInvalidLengthGenerated
  5902. }
  5903. postIndex := iNdEx + msglen
  5904. if postIndex < 0 {
  5905. return ErrInvalidLengthGenerated
  5906. }
  5907. if postIndex > l {
  5908. return io.ErrUnexpectedEOF
  5909. }
  5910. if m.RollingUpdate == nil {
  5911. m.RollingUpdate = &RollingUpdateStatefulSetStrategy{}
  5912. }
  5913. if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5914. return err
  5915. }
  5916. iNdEx = postIndex
  5917. default:
  5918. iNdEx = preIndex
  5919. skippy, err := skipGenerated(dAtA[iNdEx:])
  5920. if err != nil {
  5921. return err
  5922. }
  5923. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5924. return ErrInvalidLengthGenerated
  5925. }
  5926. if (iNdEx + skippy) > l {
  5927. return io.ErrUnexpectedEOF
  5928. }
  5929. iNdEx += skippy
  5930. }
  5931. }
  5932. if iNdEx > l {
  5933. return io.ErrUnexpectedEOF
  5934. }
  5935. return nil
  5936. }
  5937. func skipGenerated(dAtA []byte) (n int, err error) {
  5938. l := len(dAtA)
  5939. iNdEx := 0
  5940. depth := 0
  5941. for iNdEx < l {
  5942. var wire uint64
  5943. for shift := uint(0); ; shift += 7 {
  5944. if shift >= 64 {
  5945. return 0, ErrIntOverflowGenerated
  5946. }
  5947. if iNdEx >= l {
  5948. return 0, io.ErrUnexpectedEOF
  5949. }
  5950. b := dAtA[iNdEx]
  5951. iNdEx++
  5952. wire |= (uint64(b) & 0x7F) << shift
  5953. if b < 0x80 {
  5954. break
  5955. }
  5956. }
  5957. wireType := int(wire & 0x7)
  5958. switch wireType {
  5959. case 0:
  5960. for shift := uint(0); ; shift += 7 {
  5961. if shift >= 64 {
  5962. return 0, ErrIntOverflowGenerated
  5963. }
  5964. if iNdEx >= l {
  5965. return 0, io.ErrUnexpectedEOF
  5966. }
  5967. iNdEx++
  5968. if dAtA[iNdEx-1] < 0x80 {
  5969. break
  5970. }
  5971. }
  5972. case 1:
  5973. iNdEx += 8
  5974. case 2:
  5975. var length int
  5976. for shift := uint(0); ; shift += 7 {
  5977. if shift >= 64 {
  5978. return 0, ErrIntOverflowGenerated
  5979. }
  5980. if iNdEx >= l {
  5981. return 0, io.ErrUnexpectedEOF
  5982. }
  5983. b := dAtA[iNdEx]
  5984. iNdEx++
  5985. length |= (int(b) & 0x7F) << shift
  5986. if b < 0x80 {
  5987. break
  5988. }
  5989. }
  5990. if length < 0 {
  5991. return 0, ErrInvalidLengthGenerated
  5992. }
  5993. iNdEx += length
  5994. case 3:
  5995. depth++
  5996. case 4:
  5997. if depth == 0 {
  5998. return 0, ErrUnexpectedEndOfGroupGenerated
  5999. }
  6000. depth--
  6001. case 5:
  6002. iNdEx += 4
  6003. default:
  6004. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  6005. }
  6006. if iNdEx < 0 {
  6007. return 0, ErrInvalidLengthGenerated
  6008. }
  6009. if depth == 0 {
  6010. return iNdEx, nil
  6011. }
  6012. }
  6013. return 0, io.ErrUnexpectedEOF
  6014. }
  6015. var (
  6016. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  6017. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  6018. ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
  6019. )