generated.pb.go 137 KB

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