generated.pb.go 221 KB

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