generated.pb.go 163 KB

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