generated.pb.go 153 KB

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