generated.pb.go 137 KB

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