generated.pb.go 202 KB

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