generated.pb.go 230 KB

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