generated.pb.go 118 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691
  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. /*
  16. Package v1 is a generated protocol buffer package.
  17. It is generated from these files:
  18. k8s.io/kubernetes/vendor/k8s.io/api/autoscaling/v1/generated.proto
  19. It has these top-level messages:
  20. CrossVersionObjectReference
  21. ExternalMetricSource
  22. ExternalMetricStatus
  23. HorizontalPodAutoscaler
  24. HorizontalPodAutoscalerCondition
  25. HorizontalPodAutoscalerList
  26. HorizontalPodAutoscalerSpec
  27. HorizontalPodAutoscalerStatus
  28. MetricSpec
  29. MetricStatus
  30. ObjectMetricSource
  31. ObjectMetricStatus
  32. PodsMetricSource
  33. PodsMetricStatus
  34. ResourceMetricSource
  35. ResourceMetricStatus
  36. Scale
  37. ScaleSpec
  38. ScaleStatus
  39. */
  40. package v1
  41. import proto "github.com/gogo/protobuf/proto"
  42. import fmt "fmt"
  43. import math "math"
  44. import k8s_io_apimachinery_pkg_api_resource "k8s.io/apimachinery/pkg/api/resource"
  45. import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  46. import k8s_io_api_core_v1 "k8s.io/api/core/v1"
  47. import strings "strings"
  48. import reflect "reflect"
  49. import io "io"
  50. // Reference imports to suppress errors if they are not otherwise used.
  51. var _ = proto.Marshal
  52. var _ = fmt.Errorf
  53. var _ = math.Inf
  54. // This is a compile-time assertion to ensure that this generated file
  55. // is compatible with the proto package it is being compiled against.
  56. // A compilation error at this line likely means your copy of the
  57. // proto package needs to be updated.
  58. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  59. func (m *CrossVersionObjectReference) Reset() { *m = CrossVersionObjectReference{} }
  60. func (*CrossVersionObjectReference) ProtoMessage() {}
  61. func (*CrossVersionObjectReference) Descriptor() ([]byte, []int) {
  62. return fileDescriptorGenerated, []int{0}
  63. }
  64. func (m *ExternalMetricSource) Reset() { *m = ExternalMetricSource{} }
  65. func (*ExternalMetricSource) ProtoMessage() {}
  66. func (*ExternalMetricSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
  67. func (m *ExternalMetricStatus) Reset() { *m = ExternalMetricStatus{} }
  68. func (*ExternalMetricStatus) ProtoMessage() {}
  69. func (*ExternalMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
  70. func (m *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} }
  71. func (*HorizontalPodAutoscaler) ProtoMessage() {}
  72. func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
  73. func (m *HorizontalPodAutoscalerCondition) Reset() { *m = HorizontalPodAutoscalerCondition{} }
  74. func (*HorizontalPodAutoscalerCondition) ProtoMessage() {}
  75. func (*HorizontalPodAutoscalerCondition) Descriptor() ([]byte, []int) {
  76. return fileDescriptorGenerated, []int{4}
  77. }
  78. func (m *HorizontalPodAutoscalerList) Reset() { *m = HorizontalPodAutoscalerList{} }
  79. func (*HorizontalPodAutoscalerList) ProtoMessage() {}
  80. func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int) {
  81. return fileDescriptorGenerated, []int{5}
  82. }
  83. func (m *HorizontalPodAutoscalerSpec) Reset() { *m = HorizontalPodAutoscalerSpec{} }
  84. func (*HorizontalPodAutoscalerSpec) ProtoMessage() {}
  85. func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int) {
  86. return fileDescriptorGenerated, []int{6}
  87. }
  88. func (m *HorizontalPodAutoscalerStatus) Reset() { *m = HorizontalPodAutoscalerStatus{} }
  89. func (*HorizontalPodAutoscalerStatus) ProtoMessage() {}
  90. func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int) {
  91. return fileDescriptorGenerated, []int{7}
  92. }
  93. func (m *MetricSpec) Reset() { *m = MetricSpec{} }
  94. func (*MetricSpec) ProtoMessage() {}
  95. func (*MetricSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} }
  96. func (m *MetricStatus) Reset() { *m = MetricStatus{} }
  97. func (*MetricStatus) ProtoMessage() {}
  98. func (*MetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} }
  99. func (m *ObjectMetricSource) Reset() { *m = ObjectMetricSource{} }
  100. func (*ObjectMetricSource) ProtoMessage() {}
  101. func (*ObjectMetricSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} }
  102. func (m *ObjectMetricStatus) Reset() { *m = ObjectMetricStatus{} }
  103. func (*ObjectMetricStatus) ProtoMessage() {}
  104. func (*ObjectMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} }
  105. func (m *PodsMetricSource) Reset() { *m = PodsMetricSource{} }
  106. func (*PodsMetricSource) ProtoMessage() {}
  107. func (*PodsMetricSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} }
  108. func (m *PodsMetricStatus) Reset() { *m = PodsMetricStatus{} }
  109. func (*PodsMetricStatus) ProtoMessage() {}
  110. func (*PodsMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} }
  111. func (m *ResourceMetricSource) Reset() { *m = ResourceMetricSource{} }
  112. func (*ResourceMetricSource) ProtoMessage() {}
  113. func (*ResourceMetricSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} }
  114. func (m *ResourceMetricStatus) Reset() { *m = ResourceMetricStatus{} }
  115. func (*ResourceMetricStatus) ProtoMessage() {}
  116. func (*ResourceMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} }
  117. func (m *Scale) Reset() { *m = Scale{} }
  118. func (*Scale) ProtoMessage() {}
  119. func (*Scale) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} }
  120. func (m *ScaleSpec) Reset() { *m = ScaleSpec{} }
  121. func (*ScaleSpec) ProtoMessage() {}
  122. func (*ScaleSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} }
  123. func (m *ScaleStatus) Reset() { *m = ScaleStatus{} }
  124. func (*ScaleStatus) ProtoMessage() {}
  125. func (*ScaleStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} }
  126. func init() {
  127. proto.RegisterType((*CrossVersionObjectReference)(nil), "k8s.io.api.autoscaling.v1.CrossVersionObjectReference")
  128. proto.RegisterType((*ExternalMetricSource)(nil), "k8s.io.api.autoscaling.v1.ExternalMetricSource")
  129. proto.RegisterType((*ExternalMetricStatus)(nil), "k8s.io.api.autoscaling.v1.ExternalMetricStatus")
  130. proto.RegisterType((*HorizontalPodAutoscaler)(nil), "k8s.io.api.autoscaling.v1.HorizontalPodAutoscaler")
  131. proto.RegisterType((*HorizontalPodAutoscalerCondition)(nil), "k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerCondition")
  132. proto.RegisterType((*HorizontalPodAutoscalerList)(nil), "k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerList")
  133. proto.RegisterType((*HorizontalPodAutoscalerSpec)(nil), "k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec")
  134. proto.RegisterType((*HorizontalPodAutoscalerStatus)(nil), "k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerStatus")
  135. proto.RegisterType((*MetricSpec)(nil), "k8s.io.api.autoscaling.v1.MetricSpec")
  136. proto.RegisterType((*MetricStatus)(nil), "k8s.io.api.autoscaling.v1.MetricStatus")
  137. proto.RegisterType((*ObjectMetricSource)(nil), "k8s.io.api.autoscaling.v1.ObjectMetricSource")
  138. proto.RegisterType((*ObjectMetricStatus)(nil), "k8s.io.api.autoscaling.v1.ObjectMetricStatus")
  139. proto.RegisterType((*PodsMetricSource)(nil), "k8s.io.api.autoscaling.v1.PodsMetricSource")
  140. proto.RegisterType((*PodsMetricStatus)(nil), "k8s.io.api.autoscaling.v1.PodsMetricStatus")
  141. proto.RegisterType((*ResourceMetricSource)(nil), "k8s.io.api.autoscaling.v1.ResourceMetricSource")
  142. proto.RegisterType((*ResourceMetricStatus)(nil), "k8s.io.api.autoscaling.v1.ResourceMetricStatus")
  143. proto.RegisterType((*Scale)(nil), "k8s.io.api.autoscaling.v1.Scale")
  144. proto.RegisterType((*ScaleSpec)(nil), "k8s.io.api.autoscaling.v1.ScaleSpec")
  145. proto.RegisterType((*ScaleStatus)(nil), "k8s.io.api.autoscaling.v1.ScaleStatus")
  146. }
  147. func (m *CrossVersionObjectReference) Marshal() (dAtA []byte, err error) {
  148. size := m.Size()
  149. dAtA = make([]byte, size)
  150. n, err := m.MarshalTo(dAtA)
  151. if err != nil {
  152. return nil, err
  153. }
  154. return dAtA[:n], nil
  155. }
  156. func (m *CrossVersionObjectReference) MarshalTo(dAtA []byte) (int, error) {
  157. var i int
  158. _ = i
  159. var l int
  160. _ = l
  161. dAtA[i] = 0xa
  162. i++
  163. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
  164. i += copy(dAtA[i:], m.Kind)
  165. dAtA[i] = 0x12
  166. i++
  167. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  168. i += copy(dAtA[i:], m.Name)
  169. dAtA[i] = 0x1a
  170. i++
  171. i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion)))
  172. i += copy(dAtA[i:], m.APIVersion)
  173. return i, nil
  174. }
  175. func (m *ExternalMetricSource) Marshal() (dAtA []byte, err error) {
  176. size := m.Size()
  177. dAtA = make([]byte, size)
  178. n, err := m.MarshalTo(dAtA)
  179. if err != nil {
  180. return nil, err
  181. }
  182. return dAtA[:n], nil
  183. }
  184. func (m *ExternalMetricSource) MarshalTo(dAtA []byte) (int, error) {
  185. var i int
  186. _ = i
  187. var l int
  188. _ = l
  189. dAtA[i] = 0xa
  190. i++
  191. i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
  192. i += copy(dAtA[i:], m.MetricName)
  193. if m.MetricSelector != nil {
  194. dAtA[i] = 0x12
  195. i++
  196. i = encodeVarintGenerated(dAtA, i, uint64(m.MetricSelector.Size()))
  197. n1, err := m.MetricSelector.MarshalTo(dAtA[i:])
  198. if err != nil {
  199. return 0, err
  200. }
  201. i += n1
  202. }
  203. if m.TargetValue != nil {
  204. dAtA[i] = 0x1a
  205. i++
  206. i = encodeVarintGenerated(dAtA, i, uint64(m.TargetValue.Size()))
  207. n2, err := m.TargetValue.MarshalTo(dAtA[i:])
  208. if err != nil {
  209. return 0, err
  210. }
  211. i += n2
  212. }
  213. if m.TargetAverageValue != nil {
  214. dAtA[i] = 0x22
  215. i++
  216. i = encodeVarintGenerated(dAtA, i, uint64(m.TargetAverageValue.Size()))
  217. n3, err := m.TargetAverageValue.MarshalTo(dAtA[i:])
  218. if err != nil {
  219. return 0, err
  220. }
  221. i += n3
  222. }
  223. return i, nil
  224. }
  225. func (m *ExternalMetricStatus) Marshal() (dAtA []byte, err error) {
  226. size := m.Size()
  227. dAtA = make([]byte, size)
  228. n, err := m.MarshalTo(dAtA)
  229. if err != nil {
  230. return nil, err
  231. }
  232. return dAtA[:n], nil
  233. }
  234. func (m *ExternalMetricStatus) MarshalTo(dAtA []byte) (int, error) {
  235. var i int
  236. _ = i
  237. var l int
  238. _ = l
  239. dAtA[i] = 0xa
  240. i++
  241. i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
  242. i += copy(dAtA[i:], m.MetricName)
  243. if m.MetricSelector != nil {
  244. dAtA[i] = 0x12
  245. i++
  246. i = encodeVarintGenerated(dAtA, i, uint64(m.MetricSelector.Size()))
  247. n4, err := m.MetricSelector.MarshalTo(dAtA[i:])
  248. if err != nil {
  249. return 0, err
  250. }
  251. i += n4
  252. }
  253. dAtA[i] = 0x1a
  254. i++
  255. i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentValue.Size()))
  256. n5, err := m.CurrentValue.MarshalTo(dAtA[i:])
  257. if err != nil {
  258. return 0, err
  259. }
  260. i += n5
  261. if m.CurrentAverageValue != nil {
  262. dAtA[i] = 0x22
  263. i++
  264. i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentAverageValue.Size()))
  265. n6, err := m.CurrentAverageValue.MarshalTo(dAtA[i:])
  266. if err != nil {
  267. return 0, err
  268. }
  269. i += n6
  270. }
  271. return i, nil
  272. }
  273. func (m *HorizontalPodAutoscaler) Marshal() (dAtA []byte, err error) {
  274. size := m.Size()
  275. dAtA = make([]byte, size)
  276. n, err := m.MarshalTo(dAtA)
  277. if err != nil {
  278. return nil, err
  279. }
  280. return dAtA[:n], nil
  281. }
  282. func (m *HorizontalPodAutoscaler) MarshalTo(dAtA []byte) (int, error) {
  283. var i int
  284. _ = i
  285. var l int
  286. _ = l
  287. dAtA[i] = 0xa
  288. i++
  289. i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
  290. n7, err := m.ObjectMeta.MarshalTo(dAtA[i:])
  291. if err != nil {
  292. return 0, err
  293. }
  294. i += n7
  295. dAtA[i] = 0x12
  296. i++
  297. i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
  298. n8, err := m.Spec.MarshalTo(dAtA[i:])
  299. if err != nil {
  300. return 0, err
  301. }
  302. i += n8
  303. dAtA[i] = 0x1a
  304. i++
  305. i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size()))
  306. n9, err := m.Status.MarshalTo(dAtA[i:])
  307. if err != nil {
  308. return 0, err
  309. }
  310. i += n9
  311. return i, nil
  312. }
  313. func (m *HorizontalPodAutoscalerCondition) Marshal() (dAtA []byte, err error) {
  314. size := m.Size()
  315. dAtA = make([]byte, size)
  316. n, err := m.MarshalTo(dAtA)
  317. if err != nil {
  318. return nil, err
  319. }
  320. return dAtA[:n], nil
  321. }
  322. func (m *HorizontalPodAutoscalerCondition) MarshalTo(dAtA []byte) (int, error) {
  323. var i int
  324. _ = i
  325. var l int
  326. _ = l
  327. dAtA[i] = 0xa
  328. i++
  329. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  330. i += copy(dAtA[i:], m.Type)
  331. dAtA[i] = 0x12
  332. i++
  333. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status)))
  334. i += copy(dAtA[i:], m.Status)
  335. dAtA[i] = 0x1a
  336. i++
  337. i = encodeVarintGenerated(dAtA, i, uint64(m.LastTransitionTime.Size()))
  338. n10, err := m.LastTransitionTime.MarshalTo(dAtA[i:])
  339. if err != nil {
  340. return 0, err
  341. }
  342. i += n10
  343. dAtA[i] = 0x22
  344. i++
  345. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
  346. i += copy(dAtA[i:], m.Reason)
  347. dAtA[i] = 0x2a
  348. i++
  349. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
  350. i += copy(dAtA[i:], m.Message)
  351. return i, nil
  352. }
  353. func (m *HorizontalPodAutoscalerList) Marshal() (dAtA []byte, err error) {
  354. size := m.Size()
  355. dAtA = make([]byte, size)
  356. n, err := m.MarshalTo(dAtA)
  357. if err != nil {
  358. return nil, err
  359. }
  360. return dAtA[:n], nil
  361. }
  362. func (m *HorizontalPodAutoscalerList) MarshalTo(dAtA []byte) (int, error) {
  363. var i int
  364. _ = i
  365. var l int
  366. _ = l
  367. dAtA[i] = 0xa
  368. i++
  369. i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
  370. n11, err := m.ListMeta.MarshalTo(dAtA[i:])
  371. if err != nil {
  372. return 0, err
  373. }
  374. i += n11
  375. if len(m.Items) > 0 {
  376. for _, msg := range m.Items {
  377. dAtA[i] = 0x12
  378. i++
  379. i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
  380. n, err := msg.MarshalTo(dAtA[i:])
  381. if err != nil {
  382. return 0, err
  383. }
  384. i += n
  385. }
  386. }
  387. return i, nil
  388. }
  389. func (m *HorizontalPodAutoscalerSpec) Marshal() (dAtA []byte, err error) {
  390. size := m.Size()
  391. dAtA = make([]byte, size)
  392. n, err := m.MarshalTo(dAtA)
  393. if err != nil {
  394. return nil, err
  395. }
  396. return dAtA[:n], nil
  397. }
  398. func (m *HorizontalPodAutoscalerSpec) MarshalTo(dAtA []byte) (int, error) {
  399. var i int
  400. _ = i
  401. var l int
  402. _ = l
  403. dAtA[i] = 0xa
  404. i++
  405. i = encodeVarintGenerated(dAtA, i, uint64(m.ScaleTargetRef.Size()))
  406. n12, err := m.ScaleTargetRef.MarshalTo(dAtA[i:])
  407. if err != nil {
  408. return 0, err
  409. }
  410. i += n12
  411. if m.MinReplicas != nil {
  412. dAtA[i] = 0x10
  413. i++
  414. i = encodeVarintGenerated(dAtA, i, uint64(*m.MinReplicas))
  415. }
  416. dAtA[i] = 0x18
  417. i++
  418. i = encodeVarintGenerated(dAtA, i, uint64(m.MaxReplicas))
  419. if m.TargetCPUUtilizationPercentage != nil {
  420. dAtA[i] = 0x20
  421. i++
  422. i = encodeVarintGenerated(dAtA, i, uint64(*m.TargetCPUUtilizationPercentage))
  423. }
  424. return i, nil
  425. }
  426. func (m *HorizontalPodAutoscalerStatus) Marshal() (dAtA []byte, err error) {
  427. size := m.Size()
  428. dAtA = make([]byte, size)
  429. n, err := m.MarshalTo(dAtA)
  430. if err != nil {
  431. return nil, err
  432. }
  433. return dAtA[:n], nil
  434. }
  435. func (m *HorizontalPodAutoscalerStatus) MarshalTo(dAtA []byte) (int, error) {
  436. var i int
  437. _ = i
  438. var l int
  439. _ = l
  440. if m.ObservedGeneration != nil {
  441. dAtA[i] = 0x8
  442. i++
  443. i = encodeVarintGenerated(dAtA, i, uint64(*m.ObservedGeneration))
  444. }
  445. if m.LastScaleTime != nil {
  446. dAtA[i] = 0x12
  447. i++
  448. i = encodeVarintGenerated(dAtA, i, uint64(m.LastScaleTime.Size()))
  449. n13, err := m.LastScaleTime.MarshalTo(dAtA[i:])
  450. if err != nil {
  451. return 0, err
  452. }
  453. i += n13
  454. }
  455. dAtA[i] = 0x18
  456. i++
  457. i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentReplicas))
  458. dAtA[i] = 0x20
  459. i++
  460. i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredReplicas))
  461. if m.CurrentCPUUtilizationPercentage != nil {
  462. dAtA[i] = 0x28
  463. i++
  464. i = encodeVarintGenerated(dAtA, i, uint64(*m.CurrentCPUUtilizationPercentage))
  465. }
  466. return i, nil
  467. }
  468. func (m *MetricSpec) Marshal() (dAtA []byte, err error) {
  469. size := m.Size()
  470. dAtA = make([]byte, size)
  471. n, err := m.MarshalTo(dAtA)
  472. if err != nil {
  473. return nil, err
  474. }
  475. return dAtA[:n], nil
  476. }
  477. func (m *MetricSpec) MarshalTo(dAtA []byte) (int, error) {
  478. var i int
  479. _ = i
  480. var l int
  481. _ = l
  482. dAtA[i] = 0xa
  483. i++
  484. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  485. i += copy(dAtA[i:], m.Type)
  486. if m.Object != nil {
  487. dAtA[i] = 0x12
  488. i++
  489. i = encodeVarintGenerated(dAtA, i, uint64(m.Object.Size()))
  490. n14, err := m.Object.MarshalTo(dAtA[i:])
  491. if err != nil {
  492. return 0, err
  493. }
  494. i += n14
  495. }
  496. if m.Pods != nil {
  497. dAtA[i] = 0x1a
  498. i++
  499. i = encodeVarintGenerated(dAtA, i, uint64(m.Pods.Size()))
  500. n15, err := m.Pods.MarshalTo(dAtA[i:])
  501. if err != nil {
  502. return 0, err
  503. }
  504. i += n15
  505. }
  506. if m.Resource != nil {
  507. dAtA[i] = 0x22
  508. i++
  509. i = encodeVarintGenerated(dAtA, i, uint64(m.Resource.Size()))
  510. n16, err := m.Resource.MarshalTo(dAtA[i:])
  511. if err != nil {
  512. return 0, err
  513. }
  514. i += n16
  515. }
  516. if m.External != nil {
  517. dAtA[i] = 0x2a
  518. i++
  519. i = encodeVarintGenerated(dAtA, i, uint64(m.External.Size()))
  520. n17, err := m.External.MarshalTo(dAtA[i:])
  521. if err != nil {
  522. return 0, err
  523. }
  524. i += n17
  525. }
  526. return i, nil
  527. }
  528. func (m *MetricStatus) Marshal() (dAtA []byte, err error) {
  529. size := m.Size()
  530. dAtA = make([]byte, size)
  531. n, err := m.MarshalTo(dAtA)
  532. if err != nil {
  533. return nil, err
  534. }
  535. return dAtA[:n], nil
  536. }
  537. func (m *MetricStatus) MarshalTo(dAtA []byte) (int, error) {
  538. var i int
  539. _ = i
  540. var l int
  541. _ = l
  542. dAtA[i] = 0xa
  543. i++
  544. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  545. i += copy(dAtA[i:], m.Type)
  546. if m.Object != nil {
  547. dAtA[i] = 0x12
  548. i++
  549. i = encodeVarintGenerated(dAtA, i, uint64(m.Object.Size()))
  550. n18, err := m.Object.MarshalTo(dAtA[i:])
  551. if err != nil {
  552. return 0, err
  553. }
  554. i += n18
  555. }
  556. if m.Pods != nil {
  557. dAtA[i] = 0x1a
  558. i++
  559. i = encodeVarintGenerated(dAtA, i, uint64(m.Pods.Size()))
  560. n19, err := m.Pods.MarshalTo(dAtA[i:])
  561. if err != nil {
  562. return 0, err
  563. }
  564. i += n19
  565. }
  566. if m.Resource != nil {
  567. dAtA[i] = 0x22
  568. i++
  569. i = encodeVarintGenerated(dAtA, i, uint64(m.Resource.Size()))
  570. n20, err := m.Resource.MarshalTo(dAtA[i:])
  571. if err != nil {
  572. return 0, err
  573. }
  574. i += n20
  575. }
  576. if m.External != nil {
  577. dAtA[i] = 0x2a
  578. i++
  579. i = encodeVarintGenerated(dAtA, i, uint64(m.External.Size()))
  580. n21, err := m.External.MarshalTo(dAtA[i:])
  581. if err != nil {
  582. return 0, err
  583. }
  584. i += n21
  585. }
  586. return i, nil
  587. }
  588. func (m *ObjectMetricSource) Marshal() (dAtA []byte, err error) {
  589. size := m.Size()
  590. dAtA = make([]byte, size)
  591. n, err := m.MarshalTo(dAtA)
  592. if err != nil {
  593. return nil, err
  594. }
  595. return dAtA[:n], nil
  596. }
  597. func (m *ObjectMetricSource) MarshalTo(dAtA []byte) (int, error) {
  598. var i int
  599. _ = i
  600. var l int
  601. _ = l
  602. dAtA[i] = 0xa
  603. i++
  604. i = encodeVarintGenerated(dAtA, i, uint64(m.Target.Size()))
  605. n22, err := m.Target.MarshalTo(dAtA[i:])
  606. if err != nil {
  607. return 0, err
  608. }
  609. i += n22
  610. dAtA[i] = 0x12
  611. i++
  612. i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
  613. i += copy(dAtA[i:], m.MetricName)
  614. dAtA[i] = 0x1a
  615. i++
  616. i = encodeVarintGenerated(dAtA, i, uint64(m.TargetValue.Size()))
  617. n23, err := m.TargetValue.MarshalTo(dAtA[i:])
  618. if err != nil {
  619. return 0, err
  620. }
  621. i += n23
  622. if m.Selector != nil {
  623. dAtA[i] = 0x22
  624. i++
  625. i = encodeVarintGenerated(dAtA, i, uint64(m.Selector.Size()))
  626. n24, err := m.Selector.MarshalTo(dAtA[i:])
  627. if err != nil {
  628. return 0, err
  629. }
  630. i += n24
  631. }
  632. if m.AverageValue != nil {
  633. dAtA[i] = 0x2a
  634. i++
  635. i = encodeVarintGenerated(dAtA, i, uint64(m.AverageValue.Size()))
  636. n25, err := m.AverageValue.MarshalTo(dAtA[i:])
  637. if err != nil {
  638. return 0, err
  639. }
  640. i += n25
  641. }
  642. return i, nil
  643. }
  644. func (m *ObjectMetricStatus) Marshal() (dAtA []byte, err error) {
  645. size := m.Size()
  646. dAtA = make([]byte, size)
  647. n, err := m.MarshalTo(dAtA)
  648. if err != nil {
  649. return nil, err
  650. }
  651. return dAtA[:n], nil
  652. }
  653. func (m *ObjectMetricStatus) MarshalTo(dAtA []byte) (int, error) {
  654. var i int
  655. _ = i
  656. var l int
  657. _ = l
  658. dAtA[i] = 0xa
  659. i++
  660. i = encodeVarintGenerated(dAtA, i, uint64(m.Target.Size()))
  661. n26, err := m.Target.MarshalTo(dAtA[i:])
  662. if err != nil {
  663. return 0, err
  664. }
  665. i += n26
  666. dAtA[i] = 0x12
  667. i++
  668. i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
  669. i += copy(dAtA[i:], m.MetricName)
  670. dAtA[i] = 0x1a
  671. i++
  672. i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentValue.Size()))
  673. n27, err := m.CurrentValue.MarshalTo(dAtA[i:])
  674. if err != nil {
  675. return 0, err
  676. }
  677. i += n27
  678. if m.Selector != nil {
  679. dAtA[i] = 0x22
  680. i++
  681. i = encodeVarintGenerated(dAtA, i, uint64(m.Selector.Size()))
  682. n28, err := m.Selector.MarshalTo(dAtA[i:])
  683. if err != nil {
  684. return 0, err
  685. }
  686. i += n28
  687. }
  688. if m.AverageValue != nil {
  689. dAtA[i] = 0x2a
  690. i++
  691. i = encodeVarintGenerated(dAtA, i, uint64(m.AverageValue.Size()))
  692. n29, err := m.AverageValue.MarshalTo(dAtA[i:])
  693. if err != nil {
  694. return 0, err
  695. }
  696. i += n29
  697. }
  698. return i, nil
  699. }
  700. func (m *PodsMetricSource) Marshal() (dAtA []byte, err error) {
  701. size := m.Size()
  702. dAtA = make([]byte, size)
  703. n, err := m.MarshalTo(dAtA)
  704. if err != nil {
  705. return nil, err
  706. }
  707. return dAtA[:n], nil
  708. }
  709. func (m *PodsMetricSource) MarshalTo(dAtA []byte) (int, error) {
  710. var i int
  711. _ = i
  712. var l int
  713. _ = l
  714. dAtA[i] = 0xa
  715. i++
  716. i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
  717. i += copy(dAtA[i:], m.MetricName)
  718. dAtA[i] = 0x12
  719. i++
  720. i = encodeVarintGenerated(dAtA, i, uint64(m.TargetAverageValue.Size()))
  721. n30, err := m.TargetAverageValue.MarshalTo(dAtA[i:])
  722. if err != nil {
  723. return 0, err
  724. }
  725. i += n30
  726. if m.Selector != nil {
  727. dAtA[i] = 0x1a
  728. i++
  729. i = encodeVarintGenerated(dAtA, i, uint64(m.Selector.Size()))
  730. n31, err := m.Selector.MarshalTo(dAtA[i:])
  731. if err != nil {
  732. return 0, err
  733. }
  734. i += n31
  735. }
  736. return i, nil
  737. }
  738. func (m *PodsMetricStatus) Marshal() (dAtA []byte, err error) {
  739. size := m.Size()
  740. dAtA = make([]byte, size)
  741. n, err := m.MarshalTo(dAtA)
  742. if err != nil {
  743. return nil, err
  744. }
  745. return dAtA[:n], nil
  746. }
  747. func (m *PodsMetricStatus) MarshalTo(dAtA []byte) (int, error) {
  748. var i int
  749. _ = i
  750. var l int
  751. _ = l
  752. dAtA[i] = 0xa
  753. i++
  754. i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
  755. i += copy(dAtA[i:], m.MetricName)
  756. dAtA[i] = 0x12
  757. i++
  758. i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentAverageValue.Size()))
  759. n32, err := m.CurrentAverageValue.MarshalTo(dAtA[i:])
  760. if err != nil {
  761. return 0, err
  762. }
  763. i += n32
  764. if m.Selector != nil {
  765. dAtA[i] = 0x1a
  766. i++
  767. i = encodeVarintGenerated(dAtA, i, uint64(m.Selector.Size()))
  768. n33, err := m.Selector.MarshalTo(dAtA[i:])
  769. if err != nil {
  770. return 0, err
  771. }
  772. i += n33
  773. }
  774. return i, nil
  775. }
  776. func (m *ResourceMetricSource) Marshal() (dAtA []byte, err error) {
  777. size := m.Size()
  778. dAtA = make([]byte, size)
  779. n, err := m.MarshalTo(dAtA)
  780. if err != nil {
  781. return nil, err
  782. }
  783. return dAtA[:n], nil
  784. }
  785. func (m *ResourceMetricSource) MarshalTo(dAtA []byte) (int, error) {
  786. var i int
  787. _ = i
  788. var l int
  789. _ = l
  790. dAtA[i] = 0xa
  791. i++
  792. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  793. i += copy(dAtA[i:], m.Name)
  794. if m.TargetAverageUtilization != nil {
  795. dAtA[i] = 0x10
  796. i++
  797. i = encodeVarintGenerated(dAtA, i, uint64(*m.TargetAverageUtilization))
  798. }
  799. if m.TargetAverageValue != nil {
  800. dAtA[i] = 0x1a
  801. i++
  802. i = encodeVarintGenerated(dAtA, i, uint64(m.TargetAverageValue.Size()))
  803. n34, err := m.TargetAverageValue.MarshalTo(dAtA[i:])
  804. if err != nil {
  805. return 0, err
  806. }
  807. i += n34
  808. }
  809. return i, nil
  810. }
  811. func (m *ResourceMetricStatus) Marshal() (dAtA []byte, err error) {
  812. size := m.Size()
  813. dAtA = make([]byte, size)
  814. n, err := m.MarshalTo(dAtA)
  815. if err != nil {
  816. return nil, err
  817. }
  818. return dAtA[:n], nil
  819. }
  820. func (m *ResourceMetricStatus) MarshalTo(dAtA []byte) (int, error) {
  821. var i int
  822. _ = i
  823. var l int
  824. _ = l
  825. dAtA[i] = 0xa
  826. i++
  827. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  828. i += copy(dAtA[i:], m.Name)
  829. if m.CurrentAverageUtilization != nil {
  830. dAtA[i] = 0x10
  831. i++
  832. i = encodeVarintGenerated(dAtA, i, uint64(*m.CurrentAverageUtilization))
  833. }
  834. dAtA[i] = 0x1a
  835. i++
  836. i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentAverageValue.Size()))
  837. n35, err := m.CurrentAverageValue.MarshalTo(dAtA[i:])
  838. if err != nil {
  839. return 0, err
  840. }
  841. i += n35
  842. return i, nil
  843. }
  844. func (m *Scale) Marshal() (dAtA []byte, err error) {
  845. size := m.Size()
  846. dAtA = make([]byte, size)
  847. n, err := m.MarshalTo(dAtA)
  848. if err != nil {
  849. return nil, err
  850. }
  851. return dAtA[:n], nil
  852. }
  853. func (m *Scale) MarshalTo(dAtA []byte) (int, error) {
  854. var i int
  855. _ = i
  856. var l int
  857. _ = l
  858. dAtA[i] = 0xa
  859. i++
  860. i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
  861. n36, err := m.ObjectMeta.MarshalTo(dAtA[i:])
  862. if err != nil {
  863. return 0, err
  864. }
  865. i += n36
  866. dAtA[i] = 0x12
  867. i++
  868. i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
  869. n37, err := m.Spec.MarshalTo(dAtA[i:])
  870. if err != nil {
  871. return 0, err
  872. }
  873. i += n37
  874. dAtA[i] = 0x1a
  875. i++
  876. i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size()))
  877. n38, err := m.Status.MarshalTo(dAtA[i:])
  878. if err != nil {
  879. return 0, err
  880. }
  881. i += n38
  882. return i, nil
  883. }
  884. func (m *ScaleSpec) Marshal() (dAtA []byte, err error) {
  885. size := m.Size()
  886. dAtA = make([]byte, size)
  887. n, err := m.MarshalTo(dAtA)
  888. if err != nil {
  889. return nil, err
  890. }
  891. return dAtA[:n], nil
  892. }
  893. func (m *ScaleSpec) MarshalTo(dAtA []byte) (int, error) {
  894. var i int
  895. _ = i
  896. var l int
  897. _ = l
  898. dAtA[i] = 0x8
  899. i++
  900. i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas))
  901. return i, nil
  902. }
  903. func (m *ScaleStatus) Marshal() (dAtA []byte, err error) {
  904. size := m.Size()
  905. dAtA = make([]byte, size)
  906. n, err := m.MarshalTo(dAtA)
  907. if err != nil {
  908. return nil, err
  909. }
  910. return dAtA[:n], nil
  911. }
  912. func (m *ScaleStatus) MarshalTo(dAtA []byte) (int, error) {
  913. var i int
  914. _ = i
  915. var l int
  916. _ = l
  917. dAtA[i] = 0x8
  918. i++
  919. i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas))
  920. dAtA[i] = 0x12
  921. i++
  922. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Selector)))
  923. i += copy(dAtA[i:], m.Selector)
  924. return i, nil
  925. }
  926. func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
  927. for v >= 1<<7 {
  928. dAtA[offset] = uint8(v&0x7f | 0x80)
  929. v >>= 7
  930. offset++
  931. }
  932. dAtA[offset] = uint8(v)
  933. return offset + 1
  934. }
  935. func (m *CrossVersionObjectReference) Size() (n int) {
  936. var l int
  937. _ = l
  938. l = len(m.Kind)
  939. n += 1 + l + sovGenerated(uint64(l))
  940. l = len(m.Name)
  941. n += 1 + l + sovGenerated(uint64(l))
  942. l = len(m.APIVersion)
  943. n += 1 + l + sovGenerated(uint64(l))
  944. return n
  945. }
  946. func (m *ExternalMetricSource) Size() (n int) {
  947. var l int
  948. _ = l
  949. l = len(m.MetricName)
  950. n += 1 + l + sovGenerated(uint64(l))
  951. if m.MetricSelector != nil {
  952. l = m.MetricSelector.Size()
  953. n += 1 + l + sovGenerated(uint64(l))
  954. }
  955. if m.TargetValue != nil {
  956. l = m.TargetValue.Size()
  957. n += 1 + l + sovGenerated(uint64(l))
  958. }
  959. if m.TargetAverageValue != nil {
  960. l = m.TargetAverageValue.Size()
  961. n += 1 + l + sovGenerated(uint64(l))
  962. }
  963. return n
  964. }
  965. func (m *ExternalMetricStatus) Size() (n int) {
  966. var l int
  967. _ = l
  968. l = len(m.MetricName)
  969. n += 1 + l + sovGenerated(uint64(l))
  970. if m.MetricSelector != nil {
  971. l = m.MetricSelector.Size()
  972. n += 1 + l + sovGenerated(uint64(l))
  973. }
  974. l = m.CurrentValue.Size()
  975. n += 1 + l + sovGenerated(uint64(l))
  976. if m.CurrentAverageValue != nil {
  977. l = m.CurrentAverageValue.Size()
  978. n += 1 + l + sovGenerated(uint64(l))
  979. }
  980. return n
  981. }
  982. func (m *HorizontalPodAutoscaler) Size() (n int) {
  983. var l int
  984. _ = l
  985. l = m.ObjectMeta.Size()
  986. n += 1 + l + sovGenerated(uint64(l))
  987. l = m.Spec.Size()
  988. n += 1 + l + sovGenerated(uint64(l))
  989. l = m.Status.Size()
  990. n += 1 + l + sovGenerated(uint64(l))
  991. return n
  992. }
  993. func (m *HorizontalPodAutoscalerCondition) Size() (n int) {
  994. var l int
  995. _ = l
  996. l = len(m.Type)
  997. n += 1 + l + sovGenerated(uint64(l))
  998. l = len(m.Status)
  999. n += 1 + l + sovGenerated(uint64(l))
  1000. l = m.LastTransitionTime.Size()
  1001. n += 1 + l + sovGenerated(uint64(l))
  1002. l = len(m.Reason)
  1003. n += 1 + l + sovGenerated(uint64(l))
  1004. l = len(m.Message)
  1005. n += 1 + l + sovGenerated(uint64(l))
  1006. return n
  1007. }
  1008. func (m *HorizontalPodAutoscalerList) Size() (n int) {
  1009. var l int
  1010. _ = l
  1011. l = m.ListMeta.Size()
  1012. n += 1 + l + sovGenerated(uint64(l))
  1013. if len(m.Items) > 0 {
  1014. for _, e := range m.Items {
  1015. l = e.Size()
  1016. n += 1 + l + sovGenerated(uint64(l))
  1017. }
  1018. }
  1019. return n
  1020. }
  1021. func (m *HorizontalPodAutoscalerSpec) Size() (n int) {
  1022. var l int
  1023. _ = l
  1024. l = m.ScaleTargetRef.Size()
  1025. n += 1 + l + sovGenerated(uint64(l))
  1026. if m.MinReplicas != nil {
  1027. n += 1 + sovGenerated(uint64(*m.MinReplicas))
  1028. }
  1029. n += 1 + sovGenerated(uint64(m.MaxReplicas))
  1030. if m.TargetCPUUtilizationPercentage != nil {
  1031. n += 1 + sovGenerated(uint64(*m.TargetCPUUtilizationPercentage))
  1032. }
  1033. return n
  1034. }
  1035. func (m *HorizontalPodAutoscalerStatus) Size() (n int) {
  1036. var l int
  1037. _ = l
  1038. if m.ObservedGeneration != nil {
  1039. n += 1 + sovGenerated(uint64(*m.ObservedGeneration))
  1040. }
  1041. if m.LastScaleTime != nil {
  1042. l = m.LastScaleTime.Size()
  1043. n += 1 + l + sovGenerated(uint64(l))
  1044. }
  1045. n += 1 + sovGenerated(uint64(m.CurrentReplicas))
  1046. n += 1 + sovGenerated(uint64(m.DesiredReplicas))
  1047. if m.CurrentCPUUtilizationPercentage != nil {
  1048. n += 1 + sovGenerated(uint64(*m.CurrentCPUUtilizationPercentage))
  1049. }
  1050. return n
  1051. }
  1052. func (m *MetricSpec) Size() (n int) {
  1053. var l int
  1054. _ = l
  1055. l = len(m.Type)
  1056. n += 1 + l + sovGenerated(uint64(l))
  1057. if m.Object != nil {
  1058. l = m.Object.Size()
  1059. n += 1 + l + sovGenerated(uint64(l))
  1060. }
  1061. if m.Pods != nil {
  1062. l = m.Pods.Size()
  1063. n += 1 + l + sovGenerated(uint64(l))
  1064. }
  1065. if m.Resource != nil {
  1066. l = m.Resource.Size()
  1067. n += 1 + l + sovGenerated(uint64(l))
  1068. }
  1069. if m.External != nil {
  1070. l = m.External.Size()
  1071. n += 1 + l + sovGenerated(uint64(l))
  1072. }
  1073. return n
  1074. }
  1075. func (m *MetricStatus) Size() (n int) {
  1076. var l int
  1077. _ = l
  1078. l = len(m.Type)
  1079. n += 1 + l + sovGenerated(uint64(l))
  1080. if m.Object != nil {
  1081. l = m.Object.Size()
  1082. n += 1 + l + sovGenerated(uint64(l))
  1083. }
  1084. if m.Pods != nil {
  1085. l = m.Pods.Size()
  1086. n += 1 + l + sovGenerated(uint64(l))
  1087. }
  1088. if m.Resource != nil {
  1089. l = m.Resource.Size()
  1090. n += 1 + l + sovGenerated(uint64(l))
  1091. }
  1092. if m.External != nil {
  1093. l = m.External.Size()
  1094. n += 1 + l + sovGenerated(uint64(l))
  1095. }
  1096. return n
  1097. }
  1098. func (m *ObjectMetricSource) Size() (n int) {
  1099. var l int
  1100. _ = l
  1101. l = m.Target.Size()
  1102. n += 1 + l + sovGenerated(uint64(l))
  1103. l = len(m.MetricName)
  1104. n += 1 + l + sovGenerated(uint64(l))
  1105. l = m.TargetValue.Size()
  1106. n += 1 + l + sovGenerated(uint64(l))
  1107. if m.Selector != nil {
  1108. l = m.Selector.Size()
  1109. n += 1 + l + sovGenerated(uint64(l))
  1110. }
  1111. if m.AverageValue != nil {
  1112. l = m.AverageValue.Size()
  1113. n += 1 + l + sovGenerated(uint64(l))
  1114. }
  1115. return n
  1116. }
  1117. func (m *ObjectMetricStatus) Size() (n int) {
  1118. var l int
  1119. _ = l
  1120. l = m.Target.Size()
  1121. n += 1 + l + sovGenerated(uint64(l))
  1122. l = len(m.MetricName)
  1123. n += 1 + l + sovGenerated(uint64(l))
  1124. l = m.CurrentValue.Size()
  1125. n += 1 + l + sovGenerated(uint64(l))
  1126. if m.Selector != nil {
  1127. l = m.Selector.Size()
  1128. n += 1 + l + sovGenerated(uint64(l))
  1129. }
  1130. if m.AverageValue != nil {
  1131. l = m.AverageValue.Size()
  1132. n += 1 + l + sovGenerated(uint64(l))
  1133. }
  1134. return n
  1135. }
  1136. func (m *PodsMetricSource) Size() (n int) {
  1137. var l int
  1138. _ = l
  1139. l = len(m.MetricName)
  1140. n += 1 + l + sovGenerated(uint64(l))
  1141. l = m.TargetAverageValue.Size()
  1142. n += 1 + l + sovGenerated(uint64(l))
  1143. if m.Selector != nil {
  1144. l = m.Selector.Size()
  1145. n += 1 + l + sovGenerated(uint64(l))
  1146. }
  1147. return n
  1148. }
  1149. func (m *PodsMetricStatus) Size() (n int) {
  1150. var l int
  1151. _ = l
  1152. l = len(m.MetricName)
  1153. n += 1 + l + sovGenerated(uint64(l))
  1154. l = m.CurrentAverageValue.Size()
  1155. n += 1 + l + sovGenerated(uint64(l))
  1156. if m.Selector != nil {
  1157. l = m.Selector.Size()
  1158. n += 1 + l + sovGenerated(uint64(l))
  1159. }
  1160. return n
  1161. }
  1162. func (m *ResourceMetricSource) Size() (n int) {
  1163. var l int
  1164. _ = l
  1165. l = len(m.Name)
  1166. n += 1 + l + sovGenerated(uint64(l))
  1167. if m.TargetAverageUtilization != nil {
  1168. n += 1 + sovGenerated(uint64(*m.TargetAverageUtilization))
  1169. }
  1170. if m.TargetAverageValue != nil {
  1171. l = m.TargetAverageValue.Size()
  1172. n += 1 + l + sovGenerated(uint64(l))
  1173. }
  1174. return n
  1175. }
  1176. func (m *ResourceMetricStatus) Size() (n int) {
  1177. var l int
  1178. _ = l
  1179. l = len(m.Name)
  1180. n += 1 + l + sovGenerated(uint64(l))
  1181. if m.CurrentAverageUtilization != nil {
  1182. n += 1 + sovGenerated(uint64(*m.CurrentAverageUtilization))
  1183. }
  1184. l = m.CurrentAverageValue.Size()
  1185. n += 1 + l + sovGenerated(uint64(l))
  1186. return n
  1187. }
  1188. func (m *Scale) Size() (n int) {
  1189. var l int
  1190. _ = l
  1191. l = m.ObjectMeta.Size()
  1192. n += 1 + l + sovGenerated(uint64(l))
  1193. l = m.Spec.Size()
  1194. n += 1 + l + sovGenerated(uint64(l))
  1195. l = m.Status.Size()
  1196. n += 1 + l + sovGenerated(uint64(l))
  1197. return n
  1198. }
  1199. func (m *ScaleSpec) Size() (n int) {
  1200. var l int
  1201. _ = l
  1202. n += 1 + sovGenerated(uint64(m.Replicas))
  1203. return n
  1204. }
  1205. func (m *ScaleStatus) Size() (n int) {
  1206. var l int
  1207. _ = l
  1208. n += 1 + sovGenerated(uint64(m.Replicas))
  1209. l = len(m.Selector)
  1210. n += 1 + l + sovGenerated(uint64(l))
  1211. return n
  1212. }
  1213. func sovGenerated(x uint64) (n int) {
  1214. for {
  1215. n++
  1216. x >>= 7
  1217. if x == 0 {
  1218. break
  1219. }
  1220. }
  1221. return n
  1222. }
  1223. func sozGenerated(x uint64) (n int) {
  1224. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1225. }
  1226. func (this *CrossVersionObjectReference) String() string {
  1227. if this == nil {
  1228. return "nil"
  1229. }
  1230. s := strings.Join([]string{`&CrossVersionObjectReference{`,
  1231. `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
  1232. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  1233. `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`,
  1234. `}`,
  1235. }, "")
  1236. return s
  1237. }
  1238. func (this *ExternalMetricSource) String() string {
  1239. if this == nil {
  1240. return "nil"
  1241. }
  1242. s := strings.Join([]string{`&ExternalMetricSource{`,
  1243. `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
  1244. `MetricSelector:` + strings.Replace(fmt.Sprintf("%v", this.MetricSelector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`,
  1245. `TargetValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetValue), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1) + `,`,
  1246. `TargetAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetAverageValue), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1) + `,`,
  1247. `}`,
  1248. }, "")
  1249. return s
  1250. }
  1251. func (this *ExternalMetricStatus) String() string {
  1252. if this == nil {
  1253. return "nil"
  1254. }
  1255. s := strings.Join([]string{`&ExternalMetricStatus{`,
  1256. `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
  1257. `MetricSelector:` + strings.Replace(fmt.Sprintf("%v", this.MetricSelector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`,
  1258. `CurrentValue:` + strings.Replace(strings.Replace(this.CurrentValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
  1259. `CurrentAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.CurrentAverageValue), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1) + `,`,
  1260. `}`,
  1261. }, "")
  1262. return s
  1263. }
  1264. func (this *HorizontalPodAutoscaler) String() string {
  1265. if this == nil {
  1266. return "nil"
  1267. }
  1268. s := strings.Join([]string{`&HorizontalPodAutoscaler{`,
  1269. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  1270. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "HorizontalPodAutoscalerSpec", "HorizontalPodAutoscalerSpec", 1), `&`, ``, 1) + `,`,
  1271. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "HorizontalPodAutoscalerStatus", "HorizontalPodAutoscalerStatus", 1), `&`, ``, 1) + `,`,
  1272. `}`,
  1273. }, "")
  1274. return s
  1275. }
  1276. func (this *HorizontalPodAutoscalerCondition) String() string {
  1277. if this == nil {
  1278. return "nil"
  1279. }
  1280. s := strings.Join([]string{`&HorizontalPodAutoscalerCondition{`,
  1281. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  1282. `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
  1283. `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`,
  1284. `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
  1285. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  1286. `}`,
  1287. }, "")
  1288. return s
  1289. }
  1290. func (this *HorizontalPodAutoscalerList) String() string {
  1291. if this == nil {
  1292. return "nil"
  1293. }
  1294. s := strings.Join([]string{`&HorizontalPodAutoscalerList{`,
  1295. `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
  1296. `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "HorizontalPodAutoscaler", "HorizontalPodAutoscaler", 1), `&`, ``, 1) + `,`,
  1297. `}`,
  1298. }, "")
  1299. return s
  1300. }
  1301. func (this *HorizontalPodAutoscalerSpec) String() string {
  1302. if this == nil {
  1303. return "nil"
  1304. }
  1305. s := strings.Join([]string{`&HorizontalPodAutoscalerSpec{`,
  1306. `ScaleTargetRef:` + strings.Replace(strings.Replace(this.ScaleTargetRef.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`,
  1307. `MinReplicas:` + valueToStringGenerated(this.MinReplicas) + `,`,
  1308. `MaxReplicas:` + fmt.Sprintf("%v", this.MaxReplicas) + `,`,
  1309. `TargetCPUUtilizationPercentage:` + valueToStringGenerated(this.TargetCPUUtilizationPercentage) + `,`,
  1310. `}`,
  1311. }, "")
  1312. return s
  1313. }
  1314. func (this *HorizontalPodAutoscalerStatus) String() string {
  1315. if this == nil {
  1316. return "nil"
  1317. }
  1318. s := strings.Join([]string{`&HorizontalPodAutoscalerStatus{`,
  1319. `ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`,
  1320. `LastScaleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScaleTime), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1) + `,`,
  1321. `CurrentReplicas:` + fmt.Sprintf("%v", this.CurrentReplicas) + `,`,
  1322. `DesiredReplicas:` + fmt.Sprintf("%v", this.DesiredReplicas) + `,`,
  1323. `CurrentCPUUtilizationPercentage:` + valueToStringGenerated(this.CurrentCPUUtilizationPercentage) + `,`,
  1324. `}`,
  1325. }, "")
  1326. return s
  1327. }
  1328. func (this *MetricSpec) String() string {
  1329. if this == nil {
  1330. return "nil"
  1331. }
  1332. s := strings.Join([]string{`&MetricSpec{`,
  1333. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  1334. `Object:` + strings.Replace(fmt.Sprintf("%v", this.Object), "ObjectMetricSource", "ObjectMetricSource", 1) + `,`,
  1335. `Pods:` + strings.Replace(fmt.Sprintf("%v", this.Pods), "PodsMetricSource", "PodsMetricSource", 1) + `,`,
  1336. `Resource:` + strings.Replace(fmt.Sprintf("%v", this.Resource), "ResourceMetricSource", "ResourceMetricSource", 1) + `,`,
  1337. `External:` + strings.Replace(fmt.Sprintf("%v", this.External), "ExternalMetricSource", "ExternalMetricSource", 1) + `,`,
  1338. `}`,
  1339. }, "")
  1340. return s
  1341. }
  1342. func (this *MetricStatus) String() string {
  1343. if this == nil {
  1344. return "nil"
  1345. }
  1346. s := strings.Join([]string{`&MetricStatus{`,
  1347. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  1348. `Object:` + strings.Replace(fmt.Sprintf("%v", this.Object), "ObjectMetricStatus", "ObjectMetricStatus", 1) + `,`,
  1349. `Pods:` + strings.Replace(fmt.Sprintf("%v", this.Pods), "PodsMetricStatus", "PodsMetricStatus", 1) + `,`,
  1350. `Resource:` + strings.Replace(fmt.Sprintf("%v", this.Resource), "ResourceMetricStatus", "ResourceMetricStatus", 1) + `,`,
  1351. `External:` + strings.Replace(fmt.Sprintf("%v", this.External), "ExternalMetricStatus", "ExternalMetricStatus", 1) + `,`,
  1352. `}`,
  1353. }, "")
  1354. return s
  1355. }
  1356. func (this *ObjectMetricSource) String() string {
  1357. if this == nil {
  1358. return "nil"
  1359. }
  1360. s := strings.Join([]string{`&ObjectMetricSource{`,
  1361. `Target:` + strings.Replace(strings.Replace(this.Target.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`,
  1362. `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
  1363. `TargetValue:` + strings.Replace(strings.Replace(this.TargetValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
  1364. `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`,
  1365. `AverageValue:` + strings.Replace(fmt.Sprintf("%v", this.AverageValue), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1) + `,`,
  1366. `}`,
  1367. }, "")
  1368. return s
  1369. }
  1370. func (this *ObjectMetricStatus) String() string {
  1371. if this == nil {
  1372. return "nil"
  1373. }
  1374. s := strings.Join([]string{`&ObjectMetricStatus{`,
  1375. `Target:` + strings.Replace(strings.Replace(this.Target.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`,
  1376. `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
  1377. `CurrentValue:` + strings.Replace(strings.Replace(this.CurrentValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
  1378. `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`,
  1379. `AverageValue:` + strings.Replace(fmt.Sprintf("%v", this.AverageValue), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1) + `,`,
  1380. `}`,
  1381. }, "")
  1382. return s
  1383. }
  1384. func (this *PodsMetricSource) String() string {
  1385. if this == nil {
  1386. return "nil"
  1387. }
  1388. s := strings.Join([]string{`&PodsMetricSource{`,
  1389. `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
  1390. `TargetAverageValue:` + strings.Replace(strings.Replace(this.TargetAverageValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
  1391. `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`,
  1392. `}`,
  1393. }, "")
  1394. return s
  1395. }
  1396. func (this *PodsMetricStatus) String() string {
  1397. if this == nil {
  1398. return "nil"
  1399. }
  1400. s := strings.Join([]string{`&PodsMetricStatus{`,
  1401. `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
  1402. `CurrentAverageValue:` + strings.Replace(strings.Replace(this.CurrentAverageValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
  1403. `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`,
  1404. `}`,
  1405. }, "")
  1406. return s
  1407. }
  1408. func (this *ResourceMetricSource) String() string {
  1409. if this == nil {
  1410. return "nil"
  1411. }
  1412. s := strings.Join([]string{`&ResourceMetricSource{`,
  1413. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  1414. `TargetAverageUtilization:` + valueToStringGenerated(this.TargetAverageUtilization) + `,`,
  1415. `TargetAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetAverageValue), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1) + `,`,
  1416. `}`,
  1417. }, "")
  1418. return s
  1419. }
  1420. func (this *ResourceMetricStatus) String() string {
  1421. if this == nil {
  1422. return "nil"
  1423. }
  1424. s := strings.Join([]string{`&ResourceMetricStatus{`,
  1425. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  1426. `CurrentAverageUtilization:` + valueToStringGenerated(this.CurrentAverageUtilization) + `,`,
  1427. `CurrentAverageValue:` + strings.Replace(strings.Replace(this.CurrentAverageValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
  1428. `}`,
  1429. }, "")
  1430. return s
  1431. }
  1432. func (this *Scale) String() string {
  1433. if this == nil {
  1434. return "nil"
  1435. }
  1436. s := strings.Join([]string{`&Scale{`,
  1437. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  1438. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ScaleSpec", "ScaleSpec", 1), `&`, ``, 1) + `,`,
  1439. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScaleStatus", "ScaleStatus", 1), `&`, ``, 1) + `,`,
  1440. `}`,
  1441. }, "")
  1442. return s
  1443. }
  1444. func (this *ScaleSpec) String() string {
  1445. if this == nil {
  1446. return "nil"
  1447. }
  1448. s := strings.Join([]string{`&ScaleSpec{`,
  1449. `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
  1450. `}`,
  1451. }, "")
  1452. return s
  1453. }
  1454. func (this *ScaleStatus) String() string {
  1455. if this == nil {
  1456. return "nil"
  1457. }
  1458. s := strings.Join([]string{`&ScaleStatus{`,
  1459. `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
  1460. `Selector:` + fmt.Sprintf("%v", this.Selector) + `,`,
  1461. `}`,
  1462. }, "")
  1463. return s
  1464. }
  1465. func valueToStringGenerated(v interface{}) string {
  1466. rv := reflect.ValueOf(v)
  1467. if rv.IsNil() {
  1468. return "nil"
  1469. }
  1470. pv := reflect.Indirect(rv).Interface()
  1471. return fmt.Sprintf("*%v", pv)
  1472. }
  1473. func (m *CrossVersionObjectReference) Unmarshal(dAtA []byte) error {
  1474. l := len(dAtA)
  1475. iNdEx := 0
  1476. for iNdEx < l {
  1477. preIndex := iNdEx
  1478. var wire uint64
  1479. for shift := uint(0); ; shift += 7 {
  1480. if shift >= 64 {
  1481. return ErrIntOverflowGenerated
  1482. }
  1483. if iNdEx >= l {
  1484. return io.ErrUnexpectedEOF
  1485. }
  1486. b := dAtA[iNdEx]
  1487. iNdEx++
  1488. wire |= (uint64(b) & 0x7F) << shift
  1489. if b < 0x80 {
  1490. break
  1491. }
  1492. }
  1493. fieldNum := int32(wire >> 3)
  1494. wireType := int(wire & 0x7)
  1495. if wireType == 4 {
  1496. return fmt.Errorf("proto: CrossVersionObjectReference: wiretype end group for non-group")
  1497. }
  1498. if fieldNum <= 0 {
  1499. return fmt.Errorf("proto: CrossVersionObjectReference: illegal tag %d (wire type %d)", fieldNum, wire)
  1500. }
  1501. switch fieldNum {
  1502. case 1:
  1503. if wireType != 2 {
  1504. return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
  1505. }
  1506. var stringLen uint64
  1507. for shift := uint(0); ; shift += 7 {
  1508. if shift >= 64 {
  1509. return ErrIntOverflowGenerated
  1510. }
  1511. if iNdEx >= l {
  1512. return io.ErrUnexpectedEOF
  1513. }
  1514. b := dAtA[iNdEx]
  1515. iNdEx++
  1516. stringLen |= (uint64(b) & 0x7F) << shift
  1517. if b < 0x80 {
  1518. break
  1519. }
  1520. }
  1521. intStringLen := int(stringLen)
  1522. if intStringLen < 0 {
  1523. return ErrInvalidLengthGenerated
  1524. }
  1525. postIndex := iNdEx + intStringLen
  1526. if postIndex > l {
  1527. return io.ErrUnexpectedEOF
  1528. }
  1529. m.Kind = string(dAtA[iNdEx:postIndex])
  1530. iNdEx = postIndex
  1531. case 2:
  1532. if wireType != 2 {
  1533. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  1534. }
  1535. var stringLen uint64
  1536. for shift := uint(0); ; shift += 7 {
  1537. if shift >= 64 {
  1538. return ErrIntOverflowGenerated
  1539. }
  1540. if iNdEx >= l {
  1541. return io.ErrUnexpectedEOF
  1542. }
  1543. b := dAtA[iNdEx]
  1544. iNdEx++
  1545. stringLen |= (uint64(b) & 0x7F) << shift
  1546. if b < 0x80 {
  1547. break
  1548. }
  1549. }
  1550. intStringLen := int(stringLen)
  1551. if intStringLen < 0 {
  1552. return ErrInvalidLengthGenerated
  1553. }
  1554. postIndex := iNdEx + intStringLen
  1555. if postIndex > l {
  1556. return io.ErrUnexpectedEOF
  1557. }
  1558. m.Name = string(dAtA[iNdEx:postIndex])
  1559. iNdEx = postIndex
  1560. case 3:
  1561. if wireType != 2 {
  1562. return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType)
  1563. }
  1564. var stringLen uint64
  1565. for shift := uint(0); ; shift += 7 {
  1566. if shift >= 64 {
  1567. return ErrIntOverflowGenerated
  1568. }
  1569. if iNdEx >= l {
  1570. return io.ErrUnexpectedEOF
  1571. }
  1572. b := dAtA[iNdEx]
  1573. iNdEx++
  1574. stringLen |= (uint64(b) & 0x7F) << shift
  1575. if b < 0x80 {
  1576. break
  1577. }
  1578. }
  1579. intStringLen := int(stringLen)
  1580. if intStringLen < 0 {
  1581. return ErrInvalidLengthGenerated
  1582. }
  1583. postIndex := iNdEx + intStringLen
  1584. if postIndex > l {
  1585. return io.ErrUnexpectedEOF
  1586. }
  1587. m.APIVersion = string(dAtA[iNdEx:postIndex])
  1588. iNdEx = postIndex
  1589. default:
  1590. iNdEx = preIndex
  1591. skippy, err := skipGenerated(dAtA[iNdEx:])
  1592. if err != nil {
  1593. return err
  1594. }
  1595. if skippy < 0 {
  1596. return ErrInvalidLengthGenerated
  1597. }
  1598. if (iNdEx + skippy) > l {
  1599. return io.ErrUnexpectedEOF
  1600. }
  1601. iNdEx += skippy
  1602. }
  1603. }
  1604. if iNdEx > l {
  1605. return io.ErrUnexpectedEOF
  1606. }
  1607. return nil
  1608. }
  1609. func (m *ExternalMetricSource) Unmarshal(dAtA []byte) error {
  1610. l := len(dAtA)
  1611. iNdEx := 0
  1612. for iNdEx < l {
  1613. preIndex := iNdEx
  1614. var wire uint64
  1615. for shift := uint(0); ; shift += 7 {
  1616. if shift >= 64 {
  1617. return ErrIntOverflowGenerated
  1618. }
  1619. if iNdEx >= l {
  1620. return io.ErrUnexpectedEOF
  1621. }
  1622. b := dAtA[iNdEx]
  1623. iNdEx++
  1624. wire |= (uint64(b) & 0x7F) << shift
  1625. if b < 0x80 {
  1626. break
  1627. }
  1628. }
  1629. fieldNum := int32(wire >> 3)
  1630. wireType := int(wire & 0x7)
  1631. if wireType == 4 {
  1632. return fmt.Errorf("proto: ExternalMetricSource: wiretype end group for non-group")
  1633. }
  1634. if fieldNum <= 0 {
  1635. return fmt.Errorf("proto: ExternalMetricSource: illegal tag %d (wire type %d)", fieldNum, wire)
  1636. }
  1637. switch fieldNum {
  1638. case 1:
  1639. if wireType != 2 {
  1640. return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
  1641. }
  1642. var stringLen uint64
  1643. for shift := uint(0); ; shift += 7 {
  1644. if shift >= 64 {
  1645. return ErrIntOverflowGenerated
  1646. }
  1647. if iNdEx >= l {
  1648. return io.ErrUnexpectedEOF
  1649. }
  1650. b := dAtA[iNdEx]
  1651. iNdEx++
  1652. stringLen |= (uint64(b) & 0x7F) << shift
  1653. if b < 0x80 {
  1654. break
  1655. }
  1656. }
  1657. intStringLen := int(stringLen)
  1658. if intStringLen < 0 {
  1659. return ErrInvalidLengthGenerated
  1660. }
  1661. postIndex := iNdEx + intStringLen
  1662. if postIndex > l {
  1663. return io.ErrUnexpectedEOF
  1664. }
  1665. m.MetricName = string(dAtA[iNdEx:postIndex])
  1666. iNdEx = postIndex
  1667. case 2:
  1668. if wireType != 2 {
  1669. return fmt.Errorf("proto: wrong wireType = %d for field MetricSelector", wireType)
  1670. }
  1671. var msglen int
  1672. for shift := uint(0); ; shift += 7 {
  1673. if shift >= 64 {
  1674. return ErrIntOverflowGenerated
  1675. }
  1676. if iNdEx >= l {
  1677. return io.ErrUnexpectedEOF
  1678. }
  1679. b := dAtA[iNdEx]
  1680. iNdEx++
  1681. msglen |= (int(b) & 0x7F) << shift
  1682. if b < 0x80 {
  1683. break
  1684. }
  1685. }
  1686. if msglen < 0 {
  1687. return ErrInvalidLengthGenerated
  1688. }
  1689. postIndex := iNdEx + msglen
  1690. if postIndex > l {
  1691. return io.ErrUnexpectedEOF
  1692. }
  1693. if m.MetricSelector == nil {
  1694. m.MetricSelector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}
  1695. }
  1696. if err := m.MetricSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1697. return err
  1698. }
  1699. iNdEx = postIndex
  1700. case 3:
  1701. if wireType != 2 {
  1702. return fmt.Errorf("proto: wrong wireType = %d for field TargetValue", wireType)
  1703. }
  1704. var msglen int
  1705. for shift := uint(0); ; shift += 7 {
  1706. if shift >= 64 {
  1707. return ErrIntOverflowGenerated
  1708. }
  1709. if iNdEx >= l {
  1710. return io.ErrUnexpectedEOF
  1711. }
  1712. b := dAtA[iNdEx]
  1713. iNdEx++
  1714. msglen |= (int(b) & 0x7F) << shift
  1715. if b < 0x80 {
  1716. break
  1717. }
  1718. }
  1719. if msglen < 0 {
  1720. return ErrInvalidLengthGenerated
  1721. }
  1722. postIndex := iNdEx + msglen
  1723. if postIndex > l {
  1724. return io.ErrUnexpectedEOF
  1725. }
  1726. if m.TargetValue == nil {
  1727. m.TargetValue = &k8s_io_apimachinery_pkg_api_resource.Quantity{}
  1728. }
  1729. if err := m.TargetValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1730. return err
  1731. }
  1732. iNdEx = postIndex
  1733. case 4:
  1734. if wireType != 2 {
  1735. return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType)
  1736. }
  1737. var msglen int
  1738. for shift := uint(0); ; shift += 7 {
  1739. if shift >= 64 {
  1740. return ErrIntOverflowGenerated
  1741. }
  1742. if iNdEx >= l {
  1743. return io.ErrUnexpectedEOF
  1744. }
  1745. b := dAtA[iNdEx]
  1746. iNdEx++
  1747. msglen |= (int(b) & 0x7F) << shift
  1748. if b < 0x80 {
  1749. break
  1750. }
  1751. }
  1752. if msglen < 0 {
  1753. return ErrInvalidLengthGenerated
  1754. }
  1755. postIndex := iNdEx + msglen
  1756. if postIndex > l {
  1757. return io.ErrUnexpectedEOF
  1758. }
  1759. if m.TargetAverageValue == nil {
  1760. m.TargetAverageValue = &k8s_io_apimachinery_pkg_api_resource.Quantity{}
  1761. }
  1762. if err := m.TargetAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1763. return err
  1764. }
  1765. iNdEx = postIndex
  1766. default:
  1767. iNdEx = preIndex
  1768. skippy, err := skipGenerated(dAtA[iNdEx:])
  1769. if err != nil {
  1770. return err
  1771. }
  1772. if skippy < 0 {
  1773. return ErrInvalidLengthGenerated
  1774. }
  1775. if (iNdEx + skippy) > l {
  1776. return io.ErrUnexpectedEOF
  1777. }
  1778. iNdEx += skippy
  1779. }
  1780. }
  1781. if iNdEx > l {
  1782. return io.ErrUnexpectedEOF
  1783. }
  1784. return nil
  1785. }
  1786. func (m *ExternalMetricStatus) Unmarshal(dAtA []byte) error {
  1787. l := len(dAtA)
  1788. iNdEx := 0
  1789. for iNdEx < l {
  1790. preIndex := iNdEx
  1791. var wire uint64
  1792. for shift := uint(0); ; shift += 7 {
  1793. if shift >= 64 {
  1794. return ErrIntOverflowGenerated
  1795. }
  1796. if iNdEx >= l {
  1797. return io.ErrUnexpectedEOF
  1798. }
  1799. b := dAtA[iNdEx]
  1800. iNdEx++
  1801. wire |= (uint64(b) & 0x7F) << shift
  1802. if b < 0x80 {
  1803. break
  1804. }
  1805. }
  1806. fieldNum := int32(wire >> 3)
  1807. wireType := int(wire & 0x7)
  1808. if wireType == 4 {
  1809. return fmt.Errorf("proto: ExternalMetricStatus: wiretype end group for non-group")
  1810. }
  1811. if fieldNum <= 0 {
  1812. return fmt.Errorf("proto: ExternalMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  1813. }
  1814. switch fieldNum {
  1815. case 1:
  1816. if wireType != 2 {
  1817. return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
  1818. }
  1819. var stringLen uint64
  1820. for shift := uint(0); ; shift += 7 {
  1821. if shift >= 64 {
  1822. return ErrIntOverflowGenerated
  1823. }
  1824. if iNdEx >= l {
  1825. return io.ErrUnexpectedEOF
  1826. }
  1827. b := dAtA[iNdEx]
  1828. iNdEx++
  1829. stringLen |= (uint64(b) & 0x7F) << shift
  1830. if b < 0x80 {
  1831. break
  1832. }
  1833. }
  1834. intStringLen := int(stringLen)
  1835. if intStringLen < 0 {
  1836. return ErrInvalidLengthGenerated
  1837. }
  1838. postIndex := iNdEx + intStringLen
  1839. if postIndex > l {
  1840. return io.ErrUnexpectedEOF
  1841. }
  1842. m.MetricName = string(dAtA[iNdEx:postIndex])
  1843. iNdEx = postIndex
  1844. case 2:
  1845. if wireType != 2 {
  1846. return fmt.Errorf("proto: wrong wireType = %d for field MetricSelector", wireType)
  1847. }
  1848. var msglen int
  1849. for shift := uint(0); ; shift += 7 {
  1850. if shift >= 64 {
  1851. return ErrIntOverflowGenerated
  1852. }
  1853. if iNdEx >= l {
  1854. return io.ErrUnexpectedEOF
  1855. }
  1856. b := dAtA[iNdEx]
  1857. iNdEx++
  1858. msglen |= (int(b) & 0x7F) << shift
  1859. if b < 0x80 {
  1860. break
  1861. }
  1862. }
  1863. if msglen < 0 {
  1864. return ErrInvalidLengthGenerated
  1865. }
  1866. postIndex := iNdEx + msglen
  1867. if postIndex > l {
  1868. return io.ErrUnexpectedEOF
  1869. }
  1870. if m.MetricSelector == nil {
  1871. m.MetricSelector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}
  1872. }
  1873. if err := m.MetricSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1874. return err
  1875. }
  1876. iNdEx = postIndex
  1877. case 3:
  1878. if wireType != 2 {
  1879. return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType)
  1880. }
  1881. var msglen int
  1882. for shift := uint(0); ; shift += 7 {
  1883. if shift >= 64 {
  1884. return ErrIntOverflowGenerated
  1885. }
  1886. if iNdEx >= l {
  1887. return io.ErrUnexpectedEOF
  1888. }
  1889. b := dAtA[iNdEx]
  1890. iNdEx++
  1891. msglen |= (int(b) & 0x7F) << shift
  1892. if b < 0x80 {
  1893. break
  1894. }
  1895. }
  1896. if msglen < 0 {
  1897. return ErrInvalidLengthGenerated
  1898. }
  1899. postIndex := iNdEx + msglen
  1900. if postIndex > l {
  1901. return io.ErrUnexpectedEOF
  1902. }
  1903. if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1904. return err
  1905. }
  1906. iNdEx = postIndex
  1907. case 4:
  1908. if wireType != 2 {
  1909. return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType)
  1910. }
  1911. var msglen int
  1912. for shift := uint(0); ; shift += 7 {
  1913. if shift >= 64 {
  1914. return ErrIntOverflowGenerated
  1915. }
  1916. if iNdEx >= l {
  1917. return io.ErrUnexpectedEOF
  1918. }
  1919. b := dAtA[iNdEx]
  1920. iNdEx++
  1921. msglen |= (int(b) & 0x7F) << shift
  1922. if b < 0x80 {
  1923. break
  1924. }
  1925. }
  1926. if msglen < 0 {
  1927. return ErrInvalidLengthGenerated
  1928. }
  1929. postIndex := iNdEx + msglen
  1930. if postIndex > l {
  1931. return io.ErrUnexpectedEOF
  1932. }
  1933. if m.CurrentAverageValue == nil {
  1934. m.CurrentAverageValue = &k8s_io_apimachinery_pkg_api_resource.Quantity{}
  1935. }
  1936. if err := m.CurrentAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1937. return err
  1938. }
  1939. iNdEx = postIndex
  1940. default:
  1941. iNdEx = preIndex
  1942. skippy, err := skipGenerated(dAtA[iNdEx:])
  1943. if err != nil {
  1944. return err
  1945. }
  1946. if skippy < 0 {
  1947. return ErrInvalidLengthGenerated
  1948. }
  1949. if (iNdEx + skippy) > l {
  1950. return io.ErrUnexpectedEOF
  1951. }
  1952. iNdEx += skippy
  1953. }
  1954. }
  1955. if iNdEx > l {
  1956. return io.ErrUnexpectedEOF
  1957. }
  1958. return nil
  1959. }
  1960. func (m *HorizontalPodAutoscaler) Unmarshal(dAtA []byte) error {
  1961. l := len(dAtA)
  1962. iNdEx := 0
  1963. for iNdEx < l {
  1964. preIndex := iNdEx
  1965. var wire uint64
  1966. for shift := uint(0); ; shift += 7 {
  1967. if shift >= 64 {
  1968. return ErrIntOverflowGenerated
  1969. }
  1970. if iNdEx >= l {
  1971. return io.ErrUnexpectedEOF
  1972. }
  1973. b := dAtA[iNdEx]
  1974. iNdEx++
  1975. wire |= (uint64(b) & 0x7F) << shift
  1976. if b < 0x80 {
  1977. break
  1978. }
  1979. }
  1980. fieldNum := int32(wire >> 3)
  1981. wireType := int(wire & 0x7)
  1982. if wireType == 4 {
  1983. return fmt.Errorf("proto: HorizontalPodAutoscaler: wiretype end group for non-group")
  1984. }
  1985. if fieldNum <= 0 {
  1986. return fmt.Errorf("proto: HorizontalPodAutoscaler: illegal tag %d (wire type %d)", fieldNum, wire)
  1987. }
  1988. switch fieldNum {
  1989. case 1:
  1990. if wireType != 2 {
  1991. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  1992. }
  1993. var msglen int
  1994. for shift := uint(0); ; shift += 7 {
  1995. if shift >= 64 {
  1996. return ErrIntOverflowGenerated
  1997. }
  1998. if iNdEx >= l {
  1999. return io.ErrUnexpectedEOF
  2000. }
  2001. b := dAtA[iNdEx]
  2002. iNdEx++
  2003. msglen |= (int(b) & 0x7F) << shift
  2004. if b < 0x80 {
  2005. break
  2006. }
  2007. }
  2008. if msglen < 0 {
  2009. return ErrInvalidLengthGenerated
  2010. }
  2011. postIndex := iNdEx + msglen
  2012. if postIndex > l {
  2013. return io.ErrUnexpectedEOF
  2014. }
  2015. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2016. return err
  2017. }
  2018. iNdEx = postIndex
  2019. case 2:
  2020. if wireType != 2 {
  2021. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  2022. }
  2023. var msglen int
  2024. for shift := uint(0); ; shift += 7 {
  2025. if shift >= 64 {
  2026. return ErrIntOverflowGenerated
  2027. }
  2028. if iNdEx >= l {
  2029. return io.ErrUnexpectedEOF
  2030. }
  2031. b := dAtA[iNdEx]
  2032. iNdEx++
  2033. msglen |= (int(b) & 0x7F) << shift
  2034. if b < 0x80 {
  2035. break
  2036. }
  2037. }
  2038. if msglen < 0 {
  2039. return ErrInvalidLengthGenerated
  2040. }
  2041. postIndex := iNdEx + msglen
  2042. if postIndex > l {
  2043. return io.ErrUnexpectedEOF
  2044. }
  2045. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2046. return err
  2047. }
  2048. iNdEx = postIndex
  2049. case 3:
  2050. if wireType != 2 {
  2051. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2052. }
  2053. var msglen int
  2054. for shift := uint(0); ; shift += 7 {
  2055. if shift >= 64 {
  2056. return ErrIntOverflowGenerated
  2057. }
  2058. if iNdEx >= l {
  2059. return io.ErrUnexpectedEOF
  2060. }
  2061. b := dAtA[iNdEx]
  2062. iNdEx++
  2063. msglen |= (int(b) & 0x7F) << shift
  2064. if b < 0x80 {
  2065. break
  2066. }
  2067. }
  2068. if msglen < 0 {
  2069. return ErrInvalidLengthGenerated
  2070. }
  2071. postIndex := iNdEx + msglen
  2072. if postIndex > l {
  2073. return io.ErrUnexpectedEOF
  2074. }
  2075. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2076. return err
  2077. }
  2078. iNdEx = postIndex
  2079. default:
  2080. iNdEx = preIndex
  2081. skippy, err := skipGenerated(dAtA[iNdEx:])
  2082. if err != nil {
  2083. return err
  2084. }
  2085. if skippy < 0 {
  2086. return ErrInvalidLengthGenerated
  2087. }
  2088. if (iNdEx + skippy) > l {
  2089. return io.ErrUnexpectedEOF
  2090. }
  2091. iNdEx += skippy
  2092. }
  2093. }
  2094. if iNdEx > l {
  2095. return io.ErrUnexpectedEOF
  2096. }
  2097. return nil
  2098. }
  2099. func (m *HorizontalPodAutoscalerCondition) Unmarshal(dAtA []byte) error {
  2100. l := len(dAtA)
  2101. iNdEx := 0
  2102. for iNdEx < l {
  2103. preIndex := iNdEx
  2104. var wire uint64
  2105. for shift := uint(0); ; shift += 7 {
  2106. if shift >= 64 {
  2107. return ErrIntOverflowGenerated
  2108. }
  2109. if iNdEx >= l {
  2110. return io.ErrUnexpectedEOF
  2111. }
  2112. b := dAtA[iNdEx]
  2113. iNdEx++
  2114. wire |= (uint64(b) & 0x7F) << shift
  2115. if b < 0x80 {
  2116. break
  2117. }
  2118. }
  2119. fieldNum := int32(wire >> 3)
  2120. wireType := int(wire & 0x7)
  2121. if wireType == 4 {
  2122. return fmt.Errorf("proto: HorizontalPodAutoscalerCondition: wiretype end group for non-group")
  2123. }
  2124. if fieldNum <= 0 {
  2125. return fmt.Errorf("proto: HorizontalPodAutoscalerCondition: illegal tag %d (wire type %d)", fieldNum, wire)
  2126. }
  2127. switch fieldNum {
  2128. case 1:
  2129. if wireType != 2 {
  2130. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2131. }
  2132. var stringLen uint64
  2133. for shift := uint(0); ; shift += 7 {
  2134. if shift >= 64 {
  2135. return ErrIntOverflowGenerated
  2136. }
  2137. if iNdEx >= l {
  2138. return io.ErrUnexpectedEOF
  2139. }
  2140. b := dAtA[iNdEx]
  2141. iNdEx++
  2142. stringLen |= (uint64(b) & 0x7F) << shift
  2143. if b < 0x80 {
  2144. break
  2145. }
  2146. }
  2147. intStringLen := int(stringLen)
  2148. if intStringLen < 0 {
  2149. return ErrInvalidLengthGenerated
  2150. }
  2151. postIndex := iNdEx + intStringLen
  2152. if postIndex > l {
  2153. return io.ErrUnexpectedEOF
  2154. }
  2155. m.Type = HorizontalPodAutoscalerConditionType(dAtA[iNdEx:postIndex])
  2156. iNdEx = postIndex
  2157. case 2:
  2158. if wireType != 2 {
  2159. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2160. }
  2161. var stringLen uint64
  2162. for shift := uint(0); ; shift += 7 {
  2163. if shift >= 64 {
  2164. return ErrIntOverflowGenerated
  2165. }
  2166. if iNdEx >= l {
  2167. return io.ErrUnexpectedEOF
  2168. }
  2169. b := dAtA[iNdEx]
  2170. iNdEx++
  2171. stringLen |= (uint64(b) & 0x7F) << shift
  2172. if b < 0x80 {
  2173. break
  2174. }
  2175. }
  2176. intStringLen := int(stringLen)
  2177. if intStringLen < 0 {
  2178. return ErrInvalidLengthGenerated
  2179. }
  2180. postIndex := iNdEx + intStringLen
  2181. if postIndex > l {
  2182. return io.ErrUnexpectedEOF
  2183. }
  2184. m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex])
  2185. iNdEx = postIndex
  2186. case 3:
  2187. if wireType != 2 {
  2188. return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
  2189. }
  2190. var msglen int
  2191. for shift := uint(0); ; shift += 7 {
  2192. if shift >= 64 {
  2193. return ErrIntOverflowGenerated
  2194. }
  2195. if iNdEx >= l {
  2196. return io.ErrUnexpectedEOF
  2197. }
  2198. b := dAtA[iNdEx]
  2199. iNdEx++
  2200. msglen |= (int(b) & 0x7F) << shift
  2201. if b < 0x80 {
  2202. break
  2203. }
  2204. }
  2205. if msglen < 0 {
  2206. return ErrInvalidLengthGenerated
  2207. }
  2208. postIndex := iNdEx + msglen
  2209. if postIndex > l {
  2210. return io.ErrUnexpectedEOF
  2211. }
  2212. if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2213. return err
  2214. }
  2215. iNdEx = postIndex
  2216. case 4:
  2217. if wireType != 2 {
  2218. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  2219. }
  2220. var stringLen uint64
  2221. for shift := uint(0); ; shift += 7 {
  2222. if shift >= 64 {
  2223. return ErrIntOverflowGenerated
  2224. }
  2225. if iNdEx >= l {
  2226. return io.ErrUnexpectedEOF
  2227. }
  2228. b := dAtA[iNdEx]
  2229. iNdEx++
  2230. stringLen |= (uint64(b) & 0x7F) << shift
  2231. if b < 0x80 {
  2232. break
  2233. }
  2234. }
  2235. intStringLen := int(stringLen)
  2236. if intStringLen < 0 {
  2237. return ErrInvalidLengthGenerated
  2238. }
  2239. postIndex := iNdEx + intStringLen
  2240. if postIndex > l {
  2241. return io.ErrUnexpectedEOF
  2242. }
  2243. m.Reason = string(dAtA[iNdEx:postIndex])
  2244. iNdEx = postIndex
  2245. case 5:
  2246. if wireType != 2 {
  2247. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  2248. }
  2249. var stringLen uint64
  2250. for shift := uint(0); ; shift += 7 {
  2251. if shift >= 64 {
  2252. return ErrIntOverflowGenerated
  2253. }
  2254. if iNdEx >= l {
  2255. return io.ErrUnexpectedEOF
  2256. }
  2257. b := dAtA[iNdEx]
  2258. iNdEx++
  2259. stringLen |= (uint64(b) & 0x7F) << shift
  2260. if b < 0x80 {
  2261. break
  2262. }
  2263. }
  2264. intStringLen := int(stringLen)
  2265. if intStringLen < 0 {
  2266. return ErrInvalidLengthGenerated
  2267. }
  2268. postIndex := iNdEx + intStringLen
  2269. if postIndex > l {
  2270. return io.ErrUnexpectedEOF
  2271. }
  2272. m.Message = string(dAtA[iNdEx:postIndex])
  2273. iNdEx = postIndex
  2274. default:
  2275. iNdEx = preIndex
  2276. skippy, err := skipGenerated(dAtA[iNdEx:])
  2277. if err != nil {
  2278. return err
  2279. }
  2280. if skippy < 0 {
  2281. return ErrInvalidLengthGenerated
  2282. }
  2283. if (iNdEx + skippy) > l {
  2284. return io.ErrUnexpectedEOF
  2285. }
  2286. iNdEx += skippy
  2287. }
  2288. }
  2289. if iNdEx > l {
  2290. return io.ErrUnexpectedEOF
  2291. }
  2292. return nil
  2293. }
  2294. func (m *HorizontalPodAutoscalerList) Unmarshal(dAtA []byte) error {
  2295. l := len(dAtA)
  2296. iNdEx := 0
  2297. for iNdEx < l {
  2298. preIndex := iNdEx
  2299. var wire uint64
  2300. for shift := uint(0); ; shift += 7 {
  2301. if shift >= 64 {
  2302. return ErrIntOverflowGenerated
  2303. }
  2304. if iNdEx >= l {
  2305. return io.ErrUnexpectedEOF
  2306. }
  2307. b := dAtA[iNdEx]
  2308. iNdEx++
  2309. wire |= (uint64(b) & 0x7F) << shift
  2310. if b < 0x80 {
  2311. break
  2312. }
  2313. }
  2314. fieldNum := int32(wire >> 3)
  2315. wireType := int(wire & 0x7)
  2316. if wireType == 4 {
  2317. return fmt.Errorf("proto: HorizontalPodAutoscalerList: wiretype end group for non-group")
  2318. }
  2319. if fieldNum <= 0 {
  2320. return fmt.Errorf("proto: HorizontalPodAutoscalerList: illegal tag %d (wire type %d)", fieldNum, wire)
  2321. }
  2322. switch fieldNum {
  2323. case 1:
  2324. if wireType != 2 {
  2325. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  2326. }
  2327. var msglen int
  2328. for shift := uint(0); ; shift += 7 {
  2329. if shift >= 64 {
  2330. return ErrIntOverflowGenerated
  2331. }
  2332. if iNdEx >= l {
  2333. return io.ErrUnexpectedEOF
  2334. }
  2335. b := dAtA[iNdEx]
  2336. iNdEx++
  2337. msglen |= (int(b) & 0x7F) << shift
  2338. if b < 0x80 {
  2339. break
  2340. }
  2341. }
  2342. if msglen < 0 {
  2343. return ErrInvalidLengthGenerated
  2344. }
  2345. postIndex := iNdEx + msglen
  2346. if postIndex > l {
  2347. return io.ErrUnexpectedEOF
  2348. }
  2349. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2350. return err
  2351. }
  2352. iNdEx = postIndex
  2353. case 2:
  2354. if wireType != 2 {
  2355. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  2356. }
  2357. var msglen int
  2358. for shift := uint(0); ; shift += 7 {
  2359. if shift >= 64 {
  2360. return ErrIntOverflowGenerated
  2361. }
  2362. if iNdEx >= l {
  2363. return io.ErrUnexpectedEOF
  2364. }
  2365. b := dAtA[iNdEx]
  2366. iNdEx++
  2367. msglen |= (int(b) & 0x7F) << shift
  2368. if b < 0x80 {
  2369. break
  2370. }
  2371. }
  2372. if msglen < 0 {
  2373. return ErrInvalidLengthGenerated
  2374. }
  2375. postIndex := iNdEx + msglen
  2376. if postIndex > l {
  2377. return io.ErrUnexpectedEOF
  2378. }
  2379. m.Items = append(m.Items, HorizontalPodAutoscaler{})
  2380. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2381. return err
  2382. }
  2383. iNdEx = postIndex
  2384. default:
  2385. iNdEx = preIndex
  2386. skippy, err := skipGenerated(dAtA[iNdEx:])
  2387. if err != nil {
  2388. return err
  2389. }
  2390. if skippy < 0 {
  2391. return ErrInvalidLengthGenerated
  2392. }
  2393. if (iNdEx + skippy) > l {
  2394. return io.ErrUnexpectedEOF
  2395. }
  2396. iNdEx += skippy
  2397. }
  2398. }
  2399. if iNdEx > l {
  2400. return io.ErrUnexpectedEOF
  2401. }
  2402. return nil
  2403. }
  2404. func (m *HorizontalPodAutoscalerSpec) Unmarshal(dAtA []byte) error {
  2405. l := len(dAtA)
  2406. iNdEx := 0
  2407. for iNdEx < l {
  2408. preIndex := iNdEx
  2409. var wire uint64
  2410. for shift := uint(0); ; shift += 7 {
  2411. if shift >= 64 {
  2412. return ErrIntOverflowGenerated
  2413. }
  2414. if iNdEx >= l {
  2415. return io.ErrUnexpectedEOF
  2416. }
  2417. b := dAtA[iNdEx]
  2418. iNdEx++
  2419. wire |= (uint64(b) & 0x7F) << shift
  2420. if b < 0x80 {
  2421. break
  2422. }
  2423. }
  2424. fieldNum := int32(wire >> 3)
  2425. wireType := int(wire & 0x7)
  2426. if wireType == 4 {
  2427. return fmt.Errorf("proto: HorizontalPodAutoscalerSpec: wiretype end group for non-group")
  2428. }
  2429. if fieldNum <= 0 {
  2430. return fmt.Errorf("proto: HorizontalPodAutoscalerSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  2431. }
  2432. switch fieldNum {
  2433. case 1:
  2434. if wireType != 2 {
  2435. return fmt.Errorf("proto: wrong wireType = %d for field ScaleTargetRef", wireType)
  2436. }
  2437. var msglen int
  2438. for shift := uint(0); ; shift += 7 {
  2439. if shift >= 64 {
  2440. return ErrIntOverflowGenerated
  2441. }
  2442. if iNdEx >= l {
  2443. return io.ErrUnexpectedEOF
  2444. }
  2445. b := dAtA[iNdEx]
  2446. iNdEx++
  2447. msglen |= (int(b) & 0x7F) << shift
  2448. if b < 0x80 {
  2449. break
  2450. }
  2451. }
  2452. if msglen < 0 {
  2453. return ErrInvalidLengthGenerated
  2454. }
  2455. postIndex := iNdEx + msglen
  2456. if postIndex > l {
  2457. return io.ErrUnexpectedEOF
  2458. }
  2459. if err := m.ScaleTargetRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2460. return err
  2461. }
  2462. iNdEx = postIndex
  2463. case 2:
  2464. if wireType != 0 {
  2465. return fmt.Errorf("proto: wrong wireType = %d for field MinReplicas", wireType)
  2466. }
  2467. var v int32
  2468. for shift := uint(0); ; shift += 7 {
  2469. if shift >= 64 {
  2470. return ErrIntOverflowGenerated
  2471. }
  2472. if iNdEx >= l {
  2473. return io.ErrUnexpectedEOF
  2474. }
  2475. b := dAtA[iNdEx]
  2476. iNdEx++
  2477. v |= (int32(b) & 0x7F) << shift
  2478. if b < 0x80 {
  2479. break
  2480. }
  2481. }
  2482. m.MinReplicas = &v
  2483. case 3:
  2484. if wireType != 0 {
  2485. return fmt.Errorf("proto: wrong wireType = %d for field MaxReplicas", wireType)
  2486. }
  2487. m.MaxReplicas = 0
  2488. for shift := uint(0); ; shift += 7 {
  2489. if shift >= 64 {
  2490. return ErrIntOverflowGenerated
  2491. }
  2492. if iNdEx >= l {
  2493. return io.ErrUnexpectedEOF
  2494. }
  2495. b := dAtA[iNdEx]
  2496. iNdEx++
  2497. m.MaxReplicas |= (int32(b) & 0x7F) << shift
  2498. if b < 0x80 {
  2499. break
  2500. }
  2501. }
  2502. case 4:
  2503. if wireType != 0 {
  2504. return fmt.Errorf("proto: wrong wireType = %d for field TargetCPUUtilizationPercentage", wireType)
  2505. }
  2506. var v int32
  2507. for shift := uint(0); ; shift += 7 {
  2508. if shift >= 64 {
  2509. return ErrIntOverflowGenerated
  2510. }
  2511. if iNdEx >= l {
  2512. return io.ErrUnexpectedEOF
  2513. }
  2514. b := dAtA[iNdEx]
  2515. iNdEx++
  2516. v |= (int32(b) & 0x7F) << shift
  2517. if b < 0x80 {
  2518. break
  2519. }
  2520. }
  2521. m.TargetCPUUtilizationPercentage = &v
  2522. default:
  2523. iNdEx = preIndex
  2524. skippy, err := skipGenerated(dAtA[iNdEx:])
  2525. if err != nil {
  2526. return err
  2527. }
  2528. if skippy < 0 {
  2529. return ErrInvalidLengthGenerated
  2530. }
  2531. if (iNdEx + skippy) > l {
  2532. return io.ErrUnexpectedEOF
  2533. }
  2534. iNdEx += skippy
  2535. }
  2536. }
  2537. if iNdEx > l {
  2538. return io.ErrUnexpectedEOF
  2539. }
  2540. return nil
  2541. }
  2542. func (m *HorizontalPodAutoscalerStatus) Unmarshal(dAtA []byte) error {
  2543. l := len(dAtA)
  2544. iNdEx := 0
  2545. for iNdEx < l {
  2546. preIndex := iNdEx
  2547. var wire uint64
  2548. for shift := uint(0); ; shift += 7 {
  2549. if shift >= 64 {
  2550. return ErrIntOverflowGenerated
  2551. }
  2552. if iNdEx >= l {
  2553. return io.ErrUnexpectedEOF
  2554. }
  2555. b := dAtA[iNdEx]
  2556. iNdEx++
  2557. wire |= (uint64(b) & 0x7F) << shift
  2558. if b < 0x80 {
  2559. break
  2560. }
  2561. }
  2562. fieldNum := int32(wire >> 3)
  2563. wireType := int(wire & 0x7)
  2564. if wireType == 4 {
  2565. return fmt.Errorf("proto: HorizontalPodAutoscalerStatus: wiretype end group for non-group")
  2566. }
  2567. if fieldNum <= 0 {
  2568. return fmt.Errorf("proto: HorizontalPodAutoscalerStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  2569. }
  2570. switch fieldNum {
  2571. case 1:
  2572. if wireType != 0 {
  2573. return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
  2574. }
  2575. var v int64
  2576. for shift := uint(0); ; shift += 7 {
  2577. if shift >= 64 {
  2578. return ErrIntOverflowGenerated
  2579. }
  2580. if iNdEx >= l {
  2581. return io.ErrUnexpectedEOF
  2582. }
  2583. b := dAtA[iNdEx]
  2584. iNdEx++
  2585. v |= (int64(b) & 0x7F) << shift
  2586. if b < 0x80 {
  2587. break
  2588. }
  2589. }
  2590. m.ObservedGeneration = &v
  2591. case 2:
  2592. if wireType != 2 {
  2593. return fmt.Errorf("proto: wrong wireType = %d for field LastScaleTime", wireType)
  2594. }
  2595. var msglen int
  2596. for shift := uint(0); ; shift += 7 {
  2597. if shift >= 64 {
  2598. return ErrIntOverflowGenerated
  2599. }
  2600. if iNdEx >= l {
  2601. return io.ErrUnexpectedEOF
  2602. }
  2603. b := dAtA[iNdEx]
  2604. iNdEx++
  2605. msglen |= (int(b) & 0x7F) << shift
  2606. if b < 0x80 {
  2607. break
  2608. }
  2609. }
  2610. if msglen < 0 {
  2611. return ErrInvalidLengthGenerated
  2612. }
  2613. postIndex := iNdEx + msglen
  2614. if postIndex > l {
  2615. return io.ErrUnexpectedEOF
  2616. }
  2617. if m.LastScaleTime == nil {
  2618. m.LastScaleTime = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{}
  2619. }
  2620. if err := m.LastScaleTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2621. return err
  2622. }
  2623. iNdEx = postIndex
  2624. case 3:
  2625. if wireType != 0 {
  2626. return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType)
  2627. }
  2628. m.CurrentReplicas = 0
  2629. for shift := uint(0); ; shift += 7 {
  2630. if shift >= 64 {
  2631. return ErrIntOverflowGenerated
  2632. }
  2633. if iNdEx >= l {
  2634. return io.ErrUnexpectedEOF
  2635. }
  2636. b := dAtA[iNdEx]
  2637. iNdEx++
  2638. m.CurrentReplicas |= (int32(b) & 0x7F) << shift
  2639. if b < 0x80 {
  2640. break
  2641. }
  2642. }
  2643. case 4:
  2644. if wireType != 0 {
  2645. return fmt.Errorf("proto: wrong wireType = %d for field DesiredReplicas", wireType)
  2646. }
  2647. m.DesiredReplicas = 0
  2648. for shift := uint(0); ; shift += 7 {
  2649. if shift >= 64 {
  2650. return ErrIntOverflowGenerated
  2651. }
  2652. if iNdEx >= l {
  2653. return io.ErrUnexpectedEOF
  2654. }
  2655. b := dAtA[iNdEx]
  2656. iNdEx++
  2657. m.DesiredReplicas |= (int32(b) & 0x7F) << shift
  2658. if b < 0x80 {
  2659. break
  2660. }
  2661. }
  2662. case 5:
  2663. if wireType != 0 {
  2664. return fmt.Errorf("proto: wrong wireType = %d for field CurrentCPUUtilizationPercentage", wireType)
  2665. }
  2666. var v int32
  2667. for shift := uint(0); ; shift += 7 {
  2668. if shift >= 64 {
  2669. return ErrIntOverflowGenerated
  2670. }
  2671. if iNdEx >= l {
  2672. return io.ErrUnexpectedEOF
  2673. }
  2674. b := dAtA[iNdEx]
  2675. iNdEx++
  2676. v |= (int32(b) & 0x7F) << shift
  2677. if b < 0x80 {
  2678. break
  2679. }
  2680. }
  2681. m.CurrentCPUUtilizationPercentage = &v
  2682. default:
  2683. iNdEx = preIndex
  2684. skippy, err := skipGenerated(dAtA[iNdEx:])
  2685. if err != nil {
  2686. return err
  2687. }
  2688. if skippy < 0 {
  2689. return ErrInvalidLengthGenerated
  2690. }
  2691. if (iNdEx + skippy) > l {
  2692. return io.ErrUnexpectedEOF
  2693. }
  2694. iNdEx += skippy
  2695. }
  2696. }
  2697. if iNdEx > l {
  2698. return io.ErrUnexpectedEOF
  2699. }
  2700. return nil
  2701. }
  2702. func (m *MetricSpec) Unmarshal(dAtA []byte) error {
  2703. l := len(dAtA)
  2704. iNdEx := 0
  2705. for iNdEx < l {
  2706. preIndex := iNdEx
  2707. var wire uint64
  2708. for shift := uint(0); ; shift += 7 {
  2709. if shift >= 64 {
  2710. return ErrIntOverflowGenerated
  2711. }
  2712. if iNdEx >= l {
  2713. return io.ErrUnexpectedEOF
  2714. }
  2715. b := dAtA[iNdEx]
  2716. iNdEx++
  2717. wire |= (uint64(b) & 0x7F) << shift
  2718. if b < 0x80 {
  2719. break
  2720. }
  2721. }
  2722. fieldNum := int32(wire >> 3)
  2723. wireType := int(wire & 0x7)
  2724. if wireType == 4 {
  2725. return fmt.Errorf("proto: MetricSpec: wiretype end group for non-group")
  2726. }
  2727. if fieldNum <= 0 {
  2728. return fmt.Errorf("proto: MetricSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  2729. }
  2730. switch fieldNum {
  2731. case 1:
  2732. if wireType != 2 {
  2733. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2734. }
  2735. var stringLen uint64
  2736. for shift := uint(0); ; shift += 7 {
  2737. if shift >= 64 {
  2738. return ErrIntOverflowGenerated
  2739. }
  2740. if iNdEx >= l {
  2741. return io.ErrUnexpectedEOF
  2742. }
  2743. b := dAtA[iNdEx]
  2744. iNdEx++
  2745. stringLen |= (uint64(b) & 0x7F) << shift
  2746. if b < 0x80 {
  2747. break
  2748. }
  2749. }
  2750. intStringLen := int(stringLen)
  2751. if intStringLen < 0 {
  2752. return ErrInvalidLengthGenerated
  2753. }
  2754. postIndex := iNdEx + intStringLen
  2755. if postIndex > l {
  2756. return io.ErrUnexpectedEOF
  2757. }
  2758. m.Type = MetricSourceType(dAtA[iNdEx:postIndex])
  2759. iNdEx = postIndex
  2760. case 2:
  2761. if wireType != 2 {
  2762. return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType)
  2763. }
  2764. var msglen int
  2765. for shift := uint(0); ; shift += 7 {
  2766. if shift >= 64 {
  2767. return ErrIntOverflowGenerated
  2768. }
  2769. if iNdEx >= l {
  2770. return io.ErrUnexpectedEOF
  2771. }
  2772. b := dAtA[iNdEx]
  2773. iNdEx++
  2774. msglen |= (int(b) & 0x7F) << shift
  2775. if b < 0x80 {
  2776. break
  2777. }
  2778. }
  2779. if msglen < 0 {
  2780. return ErrInvalidLengthGenerated
  2781. }
  2782. postIndex := iNdEx + msglen
  2783. if postIndex > l {
  2784. return io.ErrUnexpectedEOF
  2785. }
  2786. if m.Object == nil {
  2787. m.Object = &ObjectMetricSource{}
  2788. }
  2789. if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2790. return err
  2791. }
  2792. iNdEx = postIndex
  2793. case 3:
  2794. if wireType != 2 {
  2795. return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType)
  2796. }
  2797. var msglen int
  2798. for shift := uint(0); ; shift += 7 {
  2799. if shift >= 64 {
  2800. return ErrIntOverflowGenerated
  2801. }
  2802. if iNdEx >= l {
  2803. return io.ErrUnexpectedEOF
  2804. }
  2805. b := dAtA[iNdEx]
  2806. iNdEx++
  2807. msglen |= (int(b) & 0x7F) << shift
  2808. if b < 0x80 {
  2809. break
  2810. }
  2811. }
  2812. if msglen < 0 {
  2813. return ErrInvalidLengthGenerated
  2814. }
  2815. postIndex := iNdEx + msglen
  2816. if postIndex > l {
  2817. return io.ErrUnexpectedEOF
  2818. }
  2819. if m.Pods == nil {
  2820. m.Pods = &PodsMetricSource{}
  2821. }
  2822. if err := m.Pods.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2823. return err
  2824. }
  2825. iNdEx = postIndex
  2826. case 4:
  2827. if wireType != 2 {
  2828. return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
  2829. }
  2830. var msglen int
  2831. for shift := uint(0); ; shift += 7 {
  2832. if shift >= 64 {
  2833. return ErrIntOverflowGenerated
  2834. }
  2835. if iNdEx >= l {
  2836. return io.ErrUnexpectedEOF
  2837. }
  2838. b := dAtA[iNdEx]
  2839. iNdEx++
  2840. msglen |= (int(b) & 0x7F) << shift
  2841. if b < 0x80 {
  2842. break
  2843. }
  2844. }
  2845. if msglen < 0 {
  2846. return ErrInvalidLengthGenerated
  2847. }
  2848. postIndex := iNdEx + msglen
  2849. if postIndex > l {
  2850. return io.ErrUnexpectedEOF
  2851. }
  2852. if m.Resource == nil {
  2853. m.Resource = &ResourceMetricSource{}
  2854. }
  2855. if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2856. return err
  2857. }
  2858. iNdEx = postIndex
  2859. case 5:
  2860. if wireType != 2 {
  2861. return fmt.Errorf("proto: wrong wireType = %d for field External", wireType)
  2862. }
  2863. var msglen int
  2864. for shift := uint(0); ; shift += 7 {
  2865. if shift >= 64 {
  2866. return ErrIntOverflowGenerated
  2867. }
  2868. if iNdEx >= l {
  2869. return io.ErrUnexpectedEOF
  2870. }
  2871. b := dAtA[iNdEx]
  2872. iNdEx++
  2873. msglen |= (int(b) & 0x7F) << shift
  2874. if b < 0x80 {
  2875. break
  2876. }
  2877. }
  2878. if msglen < 0 {
  2879. return ErrInvalidLengthGenerated
  2880. }
  2881. postIndex := iNdEx + msglen
  2882. if postIndex > l {
  2883. return io.ErrUnexpectedEOF
  2884. }
  2885. if m.External == nil {
  2886. m.External = &ExternalMetricSource{}
  2887. }
  2888. if err := m.External.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2889. return err
  2890. }
  2891. iNdEx = postIndex
  2892. default:
  2893. iNdEx = preIndex
  2894. skippy, err := skipGenerated(dAtA[iNdEx:])
  2895. if err != nil {
  2896. return err
  2897. }
  2898. if skippy < 0 {
  2899. return ErrInvalidLengthGenerated
  2900. }
  2901. if (iNdEx + skippy) > l {
  2902. return io.ErrUnexpectedEOF
  2903. }
  2904. iNdEx += skippy
  2905. }
  2906. }
  2907. if iNdEx > l {
  2908. return io.ErrUnexpectedEOF
  2909. }
  2910. return nil
  2911. }
  2912. func (m *MetricStatus) Unmarshal(dAtA []byte) error {
  2913. l := len(dAtA)
  2914. iNdEx := 0
  2915. for iNdEx < l {
  2916. preIndex := iNdEx
  2917. var wire uint64
  2918. for shift := uint(0); ; shift += 7 {
  2919. if shift >= 64 {
  2920. return ErrIntOverflowGenerated
  2921. }
  2922. if iNdEx >= l {
  2923. return io.ErrUnexpectedEOF
  2924. }
  2925. b := dAtA[iNdEx]
  2926. iNdEx++
  2927. wire |= (uint64(b) & 0x7F) << shift
  2928. if b < 0x80 {
  2929. break
  2930. }
  2931. }
  2932. fieldNum := int32(wire >> 3)
  2933. wireType := int(wire & 0x7)
  2934. if wireType == 4 {
  2935. return fmt.Errorf("proto: MetricStatus: wiretype end group for non-group")
  2936. }
  2937. if fieldNum <= 0 {
  2938. return fmt.Errorf("proto: MetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  2939. }
  2940. switch fieldNum {
  2941. case 1:
  2942. if wireType != 2 {
  2943. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2944. }
  2945. var stringLen uint64
  2946. for shift := uint(0); ; shift += 7 {
  2947. if shift >= 64 {
  2948. return ErrIntOverflowGenerated
  2949. }
  2950. if iNdEx >= l {
  2951. return io.ErrUnexpectedEOF
  2952. }
  2953. b := dAtA[iNdEx]
  2954. iNdEx++
  2955. stringLen |= (uint64(b) & 0x7F) << shift
  2956. if b < 0x80 {
  2957. break
  2958. }
  2959. }
  2960. intStringLen := int(stringLen)
  2961. if intStringLen < 0 {
  2962. return ErrInvalidLengthGenerated
  2963. }
  2964. postIndex := iNdEx + intStringLen
  2965. if postIndex > l {
  2966. return io.ErrUnexpectedEOF
  2967. }
  2968. m.Type = MetricSourceType(dAtA[iNdEx:postIndex])
  2969. iNdEx = postIndex
  2970. case 2:
  2971. if wireType != 2 {
  2972. return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType)
  2973. }
  2974. var msglen int
  2975. for shift := uint(0); ; shift += 7 {
  2976. if shift >= 64 {
  2977. return ErrIntOverflowGenerated
  2978. }
  2979. if iNdEx >= l {
  2980. return io.ErrUnexpectedEOF
  2981. }
  2982. b := dAtA[iNdEx]
  2983. iNdEx++
  2984. msglen |= (int(b) & 0x7F) << shift
  2985. if b < 0x80 {
  2986. break
  2987. }
  2988. }
  2989. if msglen < 0 {
  2990. return ErrInvalidLengthGenerated
  2991. }
  2992. postIndex := iNdEx + msglen
  2993. if postIndex > l {
  2994. return io.ErrUnexpectedEOF
  2995. }
  2996. if m.Object == nil {
  2997. m.Object = &ObjectMetricStatus{}
  2998. }
  2999. if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3000. return err
  3001. }
  3002. iNdEx = postIndex
  3003. case 3:
  3004. if wireType != 2 {
  3005. return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType)
  3006. }
  3007. var msglen int
  3008. for shift := uint(0); ; shift += 7 {
  3009. if shift >= 64 {
  3010. return ErrIntOverflowGenerated
  3011. }
  3012. if iNdEx >= l {
  3013. return io.ErrUnexpectedEOF
  3014. }
  3015. b := dAtA[iNdEx]
  3016. iNdEx++
  3017. msglen |= (int(b) & 0x7F) << shift
  3018. if b < 0x80 {
  3019. break
  3020. }
  3021. }
  3022. if msglen < 0 {
  3023. return ErrInvalidLengthGenerated
  3024. }
  3025. postIndex := iNdEx + msglen
  3026. if postIndex > l {
  3027. return io.ErrUnexpectedEOF
  3028. }
  3029. if m.Pods == nil {
  3030. m.Pods = &PodsMetricStatus{}
  3031. }
  3032. if err := m.Pods.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3033. return err
  3034. }
  3035. iNdEx = postIndex
  3036. case 4:
  3037. if wireType != 2 {
  3038. return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
  3039. }
  3040. var msglen int
  3041. for shift := uint(0); ; shift += 7 {
  3042. if shift >= 64 {
  3043. return ErrIntOverflowGenerated
  3044. }
  3045. if iNdEx >= l {
  3046. return io.ErrUnexpectedEOF
  3047. }
  3048. b := dAtA[iNdEx]
  3049. iNdEx++
  3050. msglen |= (int(b) & 0x7F) << shift
  3051. if b < 0x80 {
  3052. break
  3053. }
  3054. }
  3055. if msglen < 0 {
  3056. return ErrInvalidLengthGenerated
  3057. }
  3058. postIndex := iNdEx + msglen
  3059. if postIndex > l {
  3060. return io.ErrUnexpectedEOF
  3061. }
  3062. if m.Resource == nil {
  3063. m.Resource = &ResourceMetricStatus{}
  3064. }
  3065. if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3066. return err
  3067. }
  3068. iNdEx = postIndex
  3069. case 5:
  3070. if wireType != 2 {
  3071. return fmt.Errorf("proto: wrong wireType = %d for field External", wireType)
  3072. }
  3073. var msglen int
  3074. for shift := uint(0); ; shift += 7 {
  3075. if shift >= 64 {
  3076. return ErrIntOverflowGenerated
  3077. }
  3078. if iNdEx >= l {
  3079. return io.ErrUnexpectedEOF
  3080. }
  3081. b := dAtA[iNdEx]
  3082. iNdEx++
  3083. msglen |= (int(b) & 0x7F) << shift
  3084. if b < 0x80 {
  3085. break
  3086. }
  3087. }
  3088. if msglen < 0 {
  3089. return ErrInvalidLengthGenerated
  3090. }
  3091. postIndex := iNdEx + msglen
  3092. if postIndex > l {
  3093. return io.ErrUnexpectedEOF
  3094. }
  3095. if m.External == nil {
  3096. m.External = &ExternalMetricStatus{}
  3097. }
  3098. if err := m.External.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3099. return err
  3100. }
  3101. iNdEx = postIndex
  3102. default:
  3103. iNdEx = preIndex
  3104. skippy, err := skipGenerated(dAtA[iNdEx:])
  3105. if err != nil {
  3106. return err
  3107. }
  3108. if skippy < 0 {
  3109. return ErrInvalidLengthGenerated
  3110. }
  3111. if (iNdEx + skippy) > l {
  3112. return io.ErrUnexpectedEOF
  3113. }
  3114. iNdEx += skippy
  3115. }
  3116. }
  3117. if iNdEx > l {
  3118. return io.ErrUnexpectedEOF
  3119. }
  3120. return nil
  3121. }
  3122. func (m *ObjectMetricSource) Unmarshal(dAtA []byte) error {
  3123. l := len(dAtA)
  3124. iNdEx := 0
  3125. for iNdEx < l {
  3126. preIndex := iNdEx
  3127. var wire uint64
  3128. for shift := uint(0); ; shift += 7 {
  3129. if shift >= 64 {
  3130. return ErrIntOverflowGenerated
  3131. }
  3132. if iNdEx >= l {
  3133. return io.ErrUnexpectedEOF
  3134. }
  3135. b := dAtA[iNdEx]
  3136. iNdEx++
  3137. wire |= (uint64(b) & 0x7F) << shift
  3138. if b < 0x80 {
  3139. break
  3140. }
  3141. }
  3142. fieldNum := int32(wire >> 3)
  3143. wireType := int(wire & 0x7)
  3144. if wireType == 4 {
  3145. return fmt.Errorf("proto: ObjectMetricSource: wiretype end group for non-group")
  3146. }
  3147. if fieldNum <= 0 {
  3148. return fmt.Errorf("proto: ObjectMetricSource: illegal tag %d (wire type %d)", fieldNum, wire)
  3149. }
  3150. switch fieldNum {
  3151. case 1:
  3152. if wireType != 2 {
  3153. return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
  3154. }
  3155. var msglen int
  3156. for shift := uint(0); ; shift += 7 {
  3157. if shift >= 64 {
  3158. return ErrIntOverflowGenerated
  3159. }
  3160. if iNdEx >= l {
  3161. return io.ErrUnexpectedEOF
  3162. }
  3163. b := dAtA[iNdEx]
  3164. iNdEx++
  3165. msglen |= (int(b) & 0x7F) << shift
  3166. if b < 0x80 {
  3167. break
  3168. }
  3169. }
  3170. if msglen < 0 {
  3171. return ErrInvalidLengthGenerated
  3172. }
  3173. postIndex := iNdEx + msglen
  3174. if postIndex > l {
  3175. return io.ErrUnexpectedEOF
  3176. }
  3177. if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3178. return err
  3179. }
  3180. iNdEx = postIndex
  3181. case 2:
  3182. if wireType != 2 {
  3183. return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
  3184. }
  3185. var stringLen uint64
  3186. for shift := uint(0); ; shift += 7 {
  3187. if shift >= 64 {
  3188. return ErrIntOverflowGenerated
  3189. }
  3190. if iNdEx >= l {
  3191. return io.ErrUnexpectedEOF
  3192. }
  3193. b := dAtA[iNdEx]
  3194. iNdEx++
  3195. stringLen |= (uint64(b) & 0x7F) << shift
  3196. if b < 0x80 {
  3197. break
  3198. }
  3199. }
  3200. intStringLen := int(stringLen)
  3201. if intStringLen < 0 {
  3202. return ErrInvalidLengthGenerated
  3203. }
  3204. postIndex := iNdEx + intStringLen
  3205. if postIndex > l {
  3206. return io.ErrUnexpectedEOF
  3207. }
  3208. m.MetricName = string(dAtA[iNdEx:postIndex])
  3209. iNdEx = postIndex
  3210. case 3:
  3211. if wireType != 2 {
  3212. return fmt.Errorf("proto: wrong wireType = %d for field TargetValue", wireType)
  3213. }
  3214. var msglen int
  3215. for shift := uint(0); ; shift += 7 {
  3216. if shift >= 64 {
  3217. return ErrIntOverflowGenerated
  3218. }
  3219. if iNdEx >= l {
  3220. return io.ErrUnexpectedEOF
  3221. }
  3222. b := dAtA[iNdEx]
  3223. iNdEx++
  3224. msglen |= (int(b) & 0x7F) << shift
  3225. if b < 0x80 {
  3226. break
  3227. }
  3228. }
  3229. if msglen < 0 {
  3230. return ErrInvalidLengthGenerated
  3231. }
  3232. postIndex := iNdEx + msglen
  3233. if postIndex > l {
  3234. return io.ErrUnexpectedEOF
  3235. }
  3236. if err := m.TargetValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3237. return err
  3238. }
  3239. iNdEx = postIndex
  3240. case 4:
  3241. if wireType != 2 {
  3242. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  3243. }
  3244. var msglen int
  3245. for shift := uint(0); ; shift += 7 {
  3246. if shift >= 64 {
  3247. return ErrIntOverflowGenerated
  3248. }
  3249. if iNdEx >= l {
  3250. return io.ErrUnexpectedEOF
  3251. }
  3252. b := dAtA[iNdEx]
  3253. iNdEx++
  3254. msglen |= (int(b) & 0x7F) << shift
  3255. if b < 0x80 {
  3256. break
  3257. }
  3258. }
  3259. if msglen < 0 {
  3260. return ErrInvalidLengthGenerated
  3261. }
  3262. postIndex := iNdEx + msglen
  3263. if postIndex > l {
  3264. return io.ErrUnexpectedEOF
  3265. }
  3266. if m.Selector == nil {
  3267. m.Selector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}
  3268. }
  3269. if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3270. return err
  3271. }
  3272. iNdEx = postIndex
  3273. case 5:
  3274. if wireType != 2 {
  3275. return fmt.Errorf("proto: wrong wireType = %d for field AverageValue", wireType)
  3276. }
  3277. var msglen int
  3278. for shift := uint(0); ; shift += 7 {
  3279. if shift >= 64 {
  3280. return ErrIntOverflowGenerated
  3281. }
  3282. if iNdEx >= l {
  3283. return io.ErrUnexpectedEOF
  3284. }
  3285. b := dAtA[iNdEx]
  3286. iNdEx++
  3287. msglen |= (int(b) & 0x7F) << shift
  3288. if b < 0x80 {
  3289. break
  3290. }
  3291. }
  3292. if msglen < 0 {
  3293. return ErrInvalidLengthGenerated
  3294. }
  3295. postIndex := iNdEx + msglen
  3296. if postIndex > l {
  3297. return io.ErrUnexpectedEOF
  3298. }
  3299. if m.AverageValue == nil {
  3300. m.AverageValue = &k8s_io_apimachinery_pkg_api_resource.Quantity{}
  3301. }
  3302. if err := m.AverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3303. return err
  3304. }
  3305. iNdEx = postIndex
  3306. default:
  3307. iNdEx = preIndex
  3308. skippy, err := skipGenerated(dAtA[iNdEx:])
  3309. if err != nil {
  3310. return err
  3311. }
  3312. if skippy < 0 {
  3313. return ErrInvalidLengthGenerated
  3314. }
  3315. if (iNdEx + skippy) > l {
  3316. return io.ErrUnexpectedEOF
  3317. }
  3318. iNdEx += skippy
  3319. }
  3320. }
  3321. if iNdEx > l {
  3322. return io.ErrUnexpectedEOF
  3323. }
  3324. return nil
  3325. }
  3326. func (m *ObjectMetricStatus) Unmarshal(dAtA []byte) error {
  3327. l := len(dAtA)
  3328. iNdEx := 0
  3329. for iNdEx < l {
  3330. preIndex := iNdEx
  3331. var wire uint64
  3332. for shift := uint(0); ; shift += 7 {
  3333. if shift >= 64 {
  3334. return ErrIntOverflowGenerated
  3335. }
  3336. if iNdEx >= l {
  3337. return io.ErrUnexpectedEOF
  3338. }
  3339. b := dAtA[iNdEx]
  3340. iNdEx++
  3341. wire |= (uint64(b) & 0x7F) << shift
  3342. if b < 0x80 {
  3343. break
  3344. }
  3345. }
  3346. fieldNum := int32(wire >> 3)
  3347. wireType := int(wire & 0x7)
  3348. if wireType == 4 {
  3349. return fmt.Errorf("proto: ObjectMetricStatus: wiretype end group for non-group")
  3350. }
  3351. if fieldNum <= 0 {
  3352. return fmt.Errorf("proto: ObjectMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  3353. }
  3354. switch fieldNum {
  3355. case 1:
  3356. if wireType != 2 {
  3357. return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
  3358. }
  3359. var msglen int
  3360. for shift := uint(0); ; shift += 7 {
  3361. if shift >= 64 {
  3362. return ErrIntOverflowGenerated
  3363. }
  3364. if iNdEx >= l {
  3365. return io.ErrUnexpectedEOF
  3366. }
  3367. b := dAtA[iNdEx]
  3368. iNdEx++
  3369. msglen |= (int(b) & 0x7F) << shift
  3370. if b < 0x80 {
  3371. break
  3372. }
  3373. }
  3374. if msglen < 0 {
  3375. return ErrInvalidLengthGenerated
  3376. }
  3377. postIndex := iNdEx + msglen
  3378. if postIndex > l {
  3379. return io.ErrUnexpectedEOF
  3380. }
  3381. if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3382. return err
  3383. }
  3384. iNdEx = postIndex
  3385. case 2:
  3386. if wireType != 2 {
  3387. return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
  3388. }
  3389. var stringLen uint64
  3390. for shift := uint(0); ; shift += 7 {
  3391. if shift >= 64 {
  3392. return ErrIntOverflowGenerated
  3393. }
  3394. if iNdEx >= l {
  3395. return io.ErrUnexpectedEOF
  3396. }
  3397. b := dAtA[iNdEx]
  3398. iNdEx++
  3399. stringLen |= (uint64(b) & 0x7F) << shift
  3400. if b < 0x80 {
  3401. break
  3402. }
  3403. }
  3404. intStringLen := int(stringLen)
  3405. if intStringLen < 0 {
  3406. return ErrInvalidLengthGenerated
  3407. }
  3408. postIndex := iNdEx + intStringLen
  3409. if postIndex > l {
  3410. return io.ErrUnexpectedEOF
  3411. }
  3412. m.MetricName = string(dAtA[iNdEx:postIndex])
  3413. iNdEx = postIndex
  3414. case 3:
  3415. if wireType != 2 {
  3416. return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType)
  3417. }
  3418. var msglen int
  3419. for shift := uint(0); ; shift += 7 {
  3420. if shift >= 64 {
  3421. return ErrIntOverflowGenerated
  3422. }
  3423. if iNdEx >= l {
  3424. return io.ErrUnexpectedEOF
  3425. }
  3426. b := dAtA[iNdEx]
  3427. iNdEx++
  3428. msglen |= (int(b) & 0x7F) << shift
  3429. if b < 0x80 {
  3430. break
  3431. }
  3432. }
  3433. if msglen < 0 {
  3434. return ErrInvalidLengthGenerated
  3435. }
  3436. postIndex := iNdEx + msglen
  3437. if postIndex > l {
  3438. return io.ErrUnexpectedEOF
  3439. }
  3440. if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3441. return err
  3442. }
  3443. iNdEx = postIndex
  3444. case 4:
  3445. if wireType != 2 {
  3446. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  3447. }
  3448. var msglen int
  3449. for shift := uint(0); ; shift += 7 {
  3450. if shift >= 64 {
  3451. return ErrIntOverflowGenerated
  3452. }
  3453. if iNdEx >= l {
  3454. return io.ErrUnexpectedEOF
  3455. }
  3456. b := dAtA[iNdEx]
  3457. iNdEx++
  3458. msglen |= (int(b) & 0x7F) << shift
  3459. if b < 0x80 {
  3460. break
  3461. }
  3462. }
  3463. if msglen < 0 {
  3464. return ErrInvalidLengthGenerated
  3465. }
  3466. postIndex := iNdEx + msglen
  3467. if postIndex > l {
  3468. return io.ErrUnexpectedEOF
  3469. }
  3470. if m.Selector == nil {
  3471. m.Selector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}
  3472. }
  3473. if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3474. return err
  3475. }
  3476. iNdEx = postIndex
  3477. case 5:
  3478. if wireType != 2 {
  3479. return fmt.Errorf("proto: wrong wireType = %d for field AverageValue", wireType)
  3480. }
  3481. var msglen int
  3482. for shift := uint(0); ; shift += 7 {
  3483. if shift >= 64 {
  3484. return ErrIntOverflowGenerated
  3485. }
  3486. if iNdEx >= l {
  3487. return io.ErrUnexpectedEOF
  3488. }
  3489. b := dAtA[iNdEx]
  3490. iNdEx++
  3491. msglen |= (int(b) & 0x7F) << shift
  3492. if b < 0x80 {
  3493. break
  3494. }
  3495. }
  3496. if msglen < 0 {
  3497. return ErrInvalidLengthGenerated
  3498. }
  3499. postIndex := iNdEx + msglen
  3500. if postIndex > l {
  3501. return io.ErrUnexpectedEOF
  3502. }
  3503. if m.AverageValue == nil {
  3504. m.AverageValue = &k8s_io_apimachinery_pkg_api_resource.Quantity{}
  3505. }
  3506. if err := m.AverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3507. return err
  3508. }
  3509. iNdEx = postIndex
  3510. default:
  3511. iNdEx = preIndex
  3512. skippy, err := skipGenerated(dAtA[iNdEx:])
  3513. if err != nil {
  3514. return err
  3515. }
  3516. if 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 *PodsMetricSource) 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: PodsMetricSource: wiretype end group for non-group")
  3554. }
  3555. if fieldNum <= 0 {
  3556. return fmt.Errorf("proto: PodsMetricSource: 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 MetricName", 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 > l {
  3584. return io.ErrUnexpectedEOF
  3585. }
  3586. m.MetricName = string(dAtA[iNdEx:postIndex])
  3587. iNdEx = postIndex
  3588. case 2:
  3589. if wireType != 2 {
  3590. return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType)
  3591. }
  3592. var msglen int
  3593. for shift := uint(0); ; shift += 7 {
  3594. if shift >= 64 {
  3595. return ErrIntOverflowGenerated
  3596. }
  3597. if iNdEx >= l {
  3598. return io.ErrUnexpectedEOF
  3599. }
  3600. b := dAtA[iNdEx]
  3601. iNdEx++
  3602. msglen |= (int(b) & 0x7F) << shift
  3603. if b < 0x80 {
  3604. break
  3605. }
  3606. }
  3607. if msglen < 0 {
  3608. return ErrInvalidLengthGenerated
  3609. }
  3610. postIndex := iNdEx + msglen
  3611. if postIndex > l {
  3612. return io.ErrUnexpectedEOF
  3613. }
  3614. if err := m.TargetAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3615. return err
  3616. }
  3617. iNdEx = postIndex
  3618. case 3:
  3619. if wireType != 2 {
  3620. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  3621. }
  3622. var msglen int
  3623. for shift := uint(0); ; shift += 7 {
  3624. if shift >= 64 {
  3625. return ErrIntOverflowGenerated
  3626. }
  3627. if iNdEx >= l {
  3628. return io.ErrUnexpectedEOF
  3629. }
  3630. b := dAtA[iNdEx]
  3631. iNdEx++
  3632. msglen |= (int(b) & 0x7F) << shift
  3633. if b < 0x80 {
  3634. break
  3635. }
  3636. }
  3637. if msglen < 0 {
  3638. return ErrInvalidLengthGenerated
  3639. }
  3640. postIndex := iNdEx + msglen
  3641. if postIndex > l {
  3642. return io.ErrUnexpectedEOF
  3643. }
  3644. if m.Selector == nil {
  3645. m.Selector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}
  3646. }
  3647. if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3648. return err
  3649. }
  3650. iNdEx = postIndex
  3651. default:
  3652. iNdEx = preIndex
  3653. skippy, err := skipGenerated(dAtA[iNdEx:])
  3654. if err != nil {
  3655. return err
  3656. }
  3657. if skippy < 0 {
  3658. return ErrInvalidLengthGenerated
  3659. }
  3660. if (iNdEx + skippy) > l {
  3661. return io.ErrUnexpectedEOF
  3662. }
  3663. iNdEx += skippy
  3664. }
  3665. }
  3666. if iNdEx > l {
  3667. return io.ErrUnexpectedEOF
  3668. }
  3669. return nil
  3670. }
  3671. func (m *PodsMetricStatus) Unmarshal(dAtA []byte) error {
  3672. l := len(dAtA)
  3673. iNdEx := 0
  3674. for iNdEx < l {
  3675. preIndex := iNdEx
  3676. var wire uint64
  3677. for shift := uint(0); ; shift += 7 {
  3678. if shift >= 64 {
  3679. return ErrIntOverflowGenerated
  3680. }
  3681. if iNdEx >= l {
  3682. return io.ErrUnexpectedEOF
  3683. }
  3684. b := dAtA[iNdEx]
  3685. iNdEx++
  3686. wire |= (uint64(b) & 0x7F) << shift
  3687. if b < 0x80 {
  3688. break
  3689. }
  3690. }
  3691. fieldNum := int32(wire >> 3)
  3692. wireType := int(wire & 0x7)
  3693. if wireType == 4 {
  3694. return fmt.Errorf("proto: PodsMetricStatus: wiretype end group for non-group")
  3695. }
  3696. if fieldNum <= 0 {
  3697. return fmt.Errorf("proto: PodsMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  3698. }
  3699. switch fieldNum {
  3700. case 1:
  3701. if wireType != 2 {
  3702. return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
  3703. }
  3704. var stringLen uint64
  3705. for shift := uint(0); ; shift += 7 {
  3706. if shift >= 64 {
  3707. return ErrIntOverflowGenerated
  3708. }
  3709. if iNdEx >= l {
  3710. return io.ErrUnexpectedEOF
  3711. }
  3712. b := dAtA[iNdEx]
  3713. iNdEx++
  3714. stringLen |= (uint64(b) & 0x7F) << shift
  3715. if b < 0x80 {
  3716. break
  3717. }
  3718. }
  3719. intStringLen := int(stringLen)
  3720. if intStringLen < 0 {
  3721. return ErrInvalidLengthGenerated
  3722. }
  3723. postIndex := iNdEx + intStringLen
  3724. if postIndex > l {
  3725. return io.ErrUnexpectedEOF
  3726. }
  3727. m.MetricName = string(dAtA[iNdEx:postIndex])
  3728. iNdEx = postIndex
  3729. case 2:
  3730. if wireType != 2 {
  3731. return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType)
  3732. }
  3733. var msglen int
  3734. for shift := uint(0); ; shift += 7 {
  3735. if shift >= 64 {
  3736. return ErrIntOverflowGenerated
  3737. }
  3738. if iNdEx >= l {
  3739. return io.ErrUnexpectedEOF
  3740. }
  3741. b := dAtA[iNdEx]
  3742. iNdEx++
  3743. msglen |= (int(b) & 0x7F) << shift
  3744. if b < 0x80 {
  3745. break
  3746. }
  3747. }
  3748. if msglen < 0 {
  3749. return ErrInvalidLengthGenerated
  3750. }
  3751. postIndex := iNdEx + msglen
  3752. if postIndex > l {
  3753. return io.ErrUnexpectedEOF
  3754. }
  3755. if err := m.CurrentAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3756. return err
  3757. }
  3758. iNdEx = postIndex
  3759. case 3:
  3760. if wireType != 2 {
  3761. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  3762. }
  3763. var msglen int
  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. msglen |= (int(b) & 0x7F) << shift
  3774. if b < 0x80 {
  3775. break
  3776. }
  3777. }
  3778. if msglen < 0 {
  3779. return ErrInvalidLengthGenerated
  3780. }
  3781. postIndex := iNdEx + msglen
  3782. if postIndex > l {
  3783. return io.ErrUnexpectedEOF
  3784. }
  3785. if m.Selector == nil {
  3786. m.Selector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}
  3787. }
  3788. if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3789. return err
  3790. }
  3791. iNdEx = postIndex
  3792. default:
  3793. iNdEx = preIndex
  3794. skippy, err := skipGenerated(dAtA[iNdEx:])
  3795. if err != nil {
  3796. return err
  3797. }
  3798. if skippy < 0 {
  3799. return ErrInvalidLengthGenerated
  3800. }
  3801. if (iNdEx + skippy) > l {
  3802. return io.ErrUnexpectedEOF
  3803. }
  3804. iNdEx += skippy
  3805. }
  3806. }
  3807. if iNdEx > l {
  3808. return io.ErrUnexpectedEOF
  3809. }
  3810. return nil
  3811. }
  3812. func (m *ResourceMetricSource) Unmarshal(dAtA []byte) error {
  3813. l := len(dAtA)
  3814. iNdEx := 0
  3815. for iNdEx < l {
  3816. preIndex := iNdEx
  3817. var wire uint64
  3818. for shift := uint(0); ; shift += 7 {
  3819. if shift >= 64 {
  3820. return ErrIntOverflowGenerated
  3821. }
  3822. if iNdEx >= l {
  3823. return io.ErrUnexpectedEOF
  3824. }
  3825. b := dAtA[iNdEx]
  3826. iNdEx++
  3827. wire |= (uint64(b) & 0x7F) << shift
  3828. if b < 0x80 {
  3829. break
  3830. }
  3831. }
  3832. fieldNum := int32(wire >> 3)
  3833. wireType := int(wire & 0x7)
  3834. if wireType == 4 {
  3835. return fmt.Errorf("proto: ResourceMetricSource: wiretype end group for non-group")
  3836. }
  3837. if fieldNum <= 0 {
  3838. return fmt.Errorf("proto: ResourceMetricSource: illegal tag %d (wire type %d)", fieldNum, wire)
  3839. }
  3840. switch fieldNum {
  3841. case 1:
  3842. if wireType != 2 {
  3843. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3844. }
  3845. var stringLen uint64
  3846. for shift := uint(0); ; shift += 7 {
  3847. if shift >= 64 {
  3848. return ErrIntOverflowGenerated
  3849. }
  3850. if iNdEx >= l {
  3851. return io.ErrUnexpectedEOF
  3852. }
  3853. b := dAtA[iNdEx]
  3854. iNdEx++
  3855. stringLen |= (uint64(b) & 0x7F) << shift
  3856. if b < 0x80 {
  3857. break
  3858. }
  3859. }
  3860. intStringLen := int(stringLen)
  3861. if intStringLen < 0 {
  3862. return ErrInvalidLengthGenerated
  3863. }
  3864. postIndex := iNdEx + intStringLen
  3865. if postIndex > l {
  3866. return io.ErrUnexpectedEOF
  3867. }
  3868. m.Name = k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postIndex])
  3869. iNdEx = postIndex
  3870. case 2:
  3871. if wireType != 0 {
  3872. return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageUtilization", wireType)
  3873. }
  3874. var v int32
  3875. for shift := uint(0); ; shift += 7 {
  3876. if shift >= 64 {
  3877. return ErrIntOverflowGenerated
  3878. }
  3879. if iNdEx >= l {
  3880. return io.ErrUnexpectedEOF
  3881. }
  3882. b := dAtA[iNdEx]
  3883. iNdEx++
  3884. v |= (int32(b) & 0x7F) << shift
  3885. if b < 0x80 {
  3886. break
  3887. }
  3888. }
  3889. m.TargetAverageUtilization = &v
  3890. case 3:
  3891. if wireType != 2 {
  3892. return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType)
  3893. }
  3894. var msglen int
  3895. for shift := uint(0); ; shift += 7 {
  3896. if shift >= 64 {
  3897. return ErrIntOverflowGenerated
  3898. }
  3899. if iNdEx >= l {
  3900. return io.ErrUnexpectedEOF
  3901. }
  3902. b := dAtA[iNdEx]
  3903. iNdEx++
  3904. msglen |= (int(b) & 0x7F) << shift
  3905. if b < 0x80 {
  3906. break
  3907. }
  3908. }
  3909. if msglen < 0 {
  3910. return ErrInvalidLengthGenerated
  3911. }
  3912. postIndex := iNdEx + msglen
  3913. if postIndex > l {
  3914. return io.ErrUnexpectedEOF
  3915. }
  3916. if m.TargetAverageValue == nil {
  3917. m.TargetAverageValue = &k8s_io_apimachinery_pkg_api_resource.Quantity{}
  3918. }
  3919. if err := m.TargetAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3920. return err
  3921. }
  3922. iNdEx = postIndex
  3923. default:
  3924. iNdEx = preIndex
  3925. skippy, err := skipGenerated(dAtA[iNdEx:])
  3926. if err != nil {
  3927. return err
  3928. }
  3929. if skippy < 0 {
  3930. return ErrInvalidLengthGenerated
  3931. }
  3932. if (iNdEx + skippy) > l {
  3933. return io.ErrUnexpectedEOF
  3934. }
  3935. iNdEx += skippy
  3936. }
  3937. }
  3938. if iNdEx > l {
  3939. return io.ErrUnexpectedEOF
  3940. }
  3941. return nil
  3942. }
  3943. func (m *ResourceMetricStatus) Unmarshal(dAtA []byte) error {
  3944. l := len(dAtA)
  3945. iNdEx := 0
  3946. for iNdEx < l {
  3947. preIndex := iNdEx
  3948. var wire uint64
  3949. for shift := uint(0); ; shift += 7 {
  3950. if shift >= 64 {
  3951. return ErrIntOverflowGenerated
  3952. }
  3953. if iNdEx >= l {
  3954. return io.ErrUnexpectedEOF
  3955. }
  3956. b := dAtA[iNdEx]
  3957. iNdEx++
  3958. wire |= (uint64(b) & 0x7F) << shift
  3959. if b < 0x80 {
  3960. break
  3961. }
  3962. }
  3963. fieldNum := int32(wire >> 3)
  3964. wireType := int(wire & 0x7)
  3965. if wireType == 4 {
  3966. return fmt.Errorf("proto: ResourceMetricStatus: wiretype end group for non-group")
  3967. }
  3968. if fieldNum <= 0 {
  3969. return fmt.Errorf("proto: ResourceMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  3970. }
  3971. switch fieldNum {
  3972. case 1:
  3973. if wireType != 2 {
  3974. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3975. }
  3976. var stringLen uint64
  3977. for shift := uint(0); ; shift += 7 {
  3978. if shift >= 64 {
  3979. return ErrIntOverflowGenerated
  3980. }
  3981. if iNdEx >= l {
  3982. return io.ErrUnexpectedEOF
  3983. }
  3984. b := dAtA[iNdEx]
  3985. iNdEx++
  3986. stringLen |= (uint64(b) & 0x7F) << shift
  3987. if b < 0x80 {
  3988. break
  3989. }
  3990. }
  3991. intStringLen := int(stringLen)
  3992. if intStringLen < 0 {
  3993. return ErrInvalidLengthGenerated
  3994. }
  3995. postIndex := iNdEx + intStringLen
  3996. if postIndex > l {
  3997. return io.ErrUnexpectedEOF
  3998. }
  3999. m.Name = k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postIndex])
  4000. iNdEx = postIndex
  4001. case 2:
  4002. if wireType != 0 {
  4003. return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageUtilization", wireType)
  4004. }
  4005. var v int32
  4006. for shift := uint(0); ; shift += 7 {
  4007. if shift >= 64 {
  4008. return ErrIntOverflowGenerated
  4009. }
  4010. if iNdEx >= l {
  4011. return io.ErrUnexpectedEOF
  4012. }
  4013. b := dAtA[iNdEx]
  4014. iNdEx++
  4015. v |= (int32(b) & 0x7F) << shift
  4016. if b < 0x80 {
  4017. break
  4018. }
  4019. }
  4020. m.CurrentAverageUtilization = &v
  4021. case 3:
  4022. if wireType != 2 {
  4023. return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType)
  4024. }
  4025. var msglen int
  4026. for shift := uint(0); ; shift += 7 {
  4027. if shift >= 64 {
  4028. return ErrIntOverflowGenerated
  4029. }
  4030. if iNdEx >= l {
  4031. return io.ErrUnexpectedEOF
  4032. }
  4033. b := dAtA[iNdEx]
  4034. iNdEx++
  4035. msglen |= (int(b) & 0x7F) << shift
  4036. if b < 0x80 {
  4037. break
  4038. }
  4039. }
  4040. if msglen < 0 {
  4041. return ErrInvalidLengthGenerated
  4042. }
  4043. postIndex := iNdEx + msglen
  4044. if postIndex > l {
  4045. return io.ErrUnexpectedEOF
  4046. }
  4047. if err := m.CurrentAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4048. return err
  4049. }
  4050. iNdEx = postIndex
  4051. default:
  4052. iNdEx = preIndex
  4053. skippy, err := skipGenerated(dAtA[iNdEx:])
  4054. if err != nil {
  4055. return err
  4056. }
  4057. if skippy < 0 {
  4058. return ErrInvalidLengthGenerated
  4059. }
  4060. if (iNdEx + skippy) > l {
  4061. return io.ErrUnexpectedEOF
  4062. }
  4063. iNdEx += skippy
  4064. }
  4065. }
  4066. if iNdEx > l {
  4067. return io.ErrUnexpectedEOF
  4068. }
  4069. return nil
  4070. }
  4071. func (m *Scale) Unmarshal(dAtA []byte) error {
  4072. l := len(dAtA)
  4073. iNdEx := 0
  4074. for iNdEx < l {
  4075. preIndex := iNdEx
  4076. var wire uint64
  4077. for shift := uint(0); ; shift += 7 {
  4078. if shift >= 64 {
  4079. return ErrIntOverflowGenerated
  4080. }
  4081. if iNdEx >= l {
  4082. return io.ErrUnexpectedEOF
  4083. }
  4084. b := dAtA[iNdEx]
  4085. iNdEx++
  4086. wire |= (uint64(b) & 0x7F) << shift
  4087. if b < 0x80 {
  4088. break
  4089. }
  4090. }
  4091. fieldNum := int32(wire >> 3)
  4092. wireType := int(wire & 0x7)
  4093. if wireType == 4 {
  4094. return fmt.Errorf("proto: Scale: wiretype end group for non-group")
  4095. }
  4096. if fieldNum <= 0 {
  4097. return fmt.Errorf("proto: Scale: illegal tag %d (wire type %d)", fieldNum, wire)
  4098. }
  4099. switch fieldNum {
  4100. case 1:
  4101. if wireType != 2 {
  4102. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  4103. }
  4104. var msglen int
  4105. for shift := uint(0); ; shift += 7 {
  4106. if shift >= 64 {
  4107. return ErrIntOverflowGenerated
  4108. }
  4109. if iNdEx >= l {
  4110. return io.ErrUnexpectedEOF
  4111. }
  4112. b := dAtA[iNdEx]
  4113. iNdEx++
  4114. msglen |= (int(b) & 0x7F) << shift
  4115. if b < 0x80 {
  4116. break
  4117. }
  4118. }
  4119. if msglen < 0 {
  4120. return ErrInvalidLengthGenerated
  4121. }
  4122. postIndex := iNdEx + msglen
  4123. if postIndex > l {
  4124. return io.ErrUnexpectedEOF
  4125. }
  4126. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4127. return err
  4128. }
  4129. iNdEx = postIndex
  4130. case 2:
  4131. if wireType != 2 {
  4132. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  4133. }
  4134. var msglen int
  4135. for shift := uint(0); ; shift += 7 {
  4136. if shift >= 64 {
  4137. return ErrIntOverflowGenerated
  4138. }
  4139. if iNdEx >= l {
  4140. return io.ErrUnexpectedEOF
  4141. }
  4142. b := dAtA[iNdEx]
  4143. iNdEx++
  4144. msglen |= (int(b) & 0x7F) << shift
  4145. if b < 0x80 {
  4146. break
  4147. }
  4148. }
  4149. if msglen < 0 {
  4150. return ErrInvalidLengthGenerated
  4151. }
  4152. postIndex := iNdEx + msglen
  4153. if postIndex > l {
  4154. return io.ErrUnexpectedEOF
  4155. }
  4156. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4157. return err
  4158. }
  4159. iNdEx = postIndex
  4160. case 3:
  4161. if wireType != 2 {
  4162. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  4163. }
  4164. var msglen int
  4165. for shift := uint(0); ; shift += 7 {
  4166. if shift >= 64 {
  4167. return ErrIntOverflowGenerated
  4168. }
  4169. if iNdEx >= l {
  4170. return io.ErrUnexpectedEOF
  4171. }
  4172. b := dAtA[iNdEx]
  4173. iNdEx++
  4174. msglen |= (int(b) & 0x7F) << shift
  4175. if b < 0x80 {
  4176. break
  4177. }
  4178. }
  4179. if msglen < 0 {
  4180. return ErrInvalidLengthGenerated
  4181. }
  4182. postIndex := iNdEx + msglen
  4183. if postIndex > l {
  4184. return io.ErrUnexpectedEOF
  4185. }
  4186. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4187. return err
  4188. }
  4189. iNdEx = postIndex
  4190. default:
  4191. iNdEx = preIndex
  4192. skippy, err := skipGenerated(dAtA[iNdEx:])
  4193. if err != nil {
  4194. return err
  4195. }
  4196. if skippy < 0 {
  4197. return ErrInvalidLengthGenerated
  4198. }
  4199. if (iNdEx + skippy) > l {
  4200. return io.ErrUnexpectedEOF
  4201. }
  4202. iNdEx += skippy
  4203. }
  4204. }
  4205. if iNdEx > l {
  4206. return io.ErrUnexpectedEOF
  4207. }
  4208. return nil
  4209. }
  4210. func (m *ScaleSpec) Unmarshal(dAtA []byte) error {
  4211. l := len(dAtA)
  4212. iNdEx := 0
  4213. for iNdEx < l {
  4214. preIndex := iNdEx
  4215. var wire uint64
  4216. for shift := uint(0); ; shift += 7 {
  4217. if shift >= 64 {
  4218. return ErrIntOverflowGenerated
  4219. }
  4220. if iNdEx >= l {
  4221. return io.ErrUnexpectedEOF
  4222. }
  4223. b := dAtA[iNdEx]
  4224. iNdEx++
  4225. wire |= (uint64(b) & 0x7F) << shift
  4226. if b < 0x80 {
  4227. break
  4228. }
  4229. }
  4230. fieldNum := int32(wire >> 3)
  4231. wireType := int(wire & 0x7)
  4232. if wireType == 4 {
  4233. return fmt.Errorf("proto: ScaleSpec: wiretype end group for non-group")
  4234. }
  4235. if fieldNum <= 0 {
  4236. return fmt.Errorf("proto: ScaleSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  4237. }
  4238. switch fieldNum {
  4239. case 1:
  4240. if wireType != 0 {
  4241. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  4242. }
  4243. m.Replicas = 0
  4244. for shift := uint(0); ; shift += 7 {
  4245. if shift >= 64 {
  4246. return ErrIntOverflowGenerated
  4247. }
  4248. if iNdEx >= l {
  4249. return io.ErrUnexpectedEOF
  4250. }
  4251. b := dAtA[iNdEx]
  4252. iNdEx++
  4253. m.Replicas |= (int32(b) & 0x7F) << shift
  4254. if b < 0x80 {
  4255. break
  4256. }
  4257. }
  4258. default:
  4259. iNdEx = preIndex
  4260. skippy, err := skipGenerated(dAtA[iNdEx:])
  4261. if err != nil {
  4262. return err
  4263. }
  4264. if skippy < 0 {
  4265. return ErrInvalidLengthGenerated
  4266. }
  4267. if (iNdEx + skippy) > l {
  4268. return io.ErrUnexpectedEOF
  4269. }
  4270. iNdEx += skippy
  4271. }
  4272. }
  4273. if iNdEx > l {
  4274. return io.ErrUnexpectedEOF
  4275. }
  4276. return nil
  4277. }
  4278. func (m *ScaleStatus) Unmarshal(dAtA []byte) error {
  4279. l := len(dAtA)
  4280. iNdEx := 0
  4281. for iNdEx < l {
  4282. preIndex := iNdEx
  4283. var wire uint64
  4284. for shift := uint(0); ; shift += 7 {
  4285. if shift >= 64 {
  4286. return ErrIntOverflowGenerated
  4287. }
  4288. if iNdEx >= l {
  4289. return io.ErrUnexpectedEOF
  4290. }
  4291. b := dAtA[iNdEx]
  4292. iNdEx++
  4293. wire |= (uint64(b) & 0x7F) << shift
  4294. if b < 0x80 {
  4295. break
  4296. }
  4297. }
  4298. fieldNum := int32(wire >> 3)
  4299. wireType := int(wire & 0x7)
  4300. if wireType == 4 {
  4301. return fmt.Errorf("proto: ScaleStatus: wiretype end group for non-group")
  4302. }
  4303. if fieldNum <= 0 {
  4304. return fmt.Errorf("proto: ScaleStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  4305. }
  4306. switch fieldNum {
  4307. case 1:
  4308. if wireType != 0 {
  4309. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  4310. }
  4311. m.Replicas = 0
  4312. for shift := uint(0); ; shift += 7 {
  4313. if shift >= 64 {
  4314. return ErrIntOverflowGenerated
  4315. }
  4316. if iNdEx >= l {
  4317. return io.ErrUnexpectedEOF
  4318. }
  4319. b := dAtA[iNdEx]
  4320. iNdEx++
  4321. m.Replicas |= (int32(b) & 0x7F) << shift
  4322. if b < 0x80 {
  4323. break
  4324. }
  4325. }
  4326. case 2:
  4327. if wireType != 2 {
  4328. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  4329. }
  4330. var stringLen uint64
  4331. for shift := uint(0); ; shift += 7 {
  4332. if shift >= 64 {
  4333. return ErrIntOverflowGenerated
  4334. }
  4335. if iNdEx >= l {
  4336. return io.ErrUnexpectedEOF
  4337. }
  4338. b := dAtA[iNdEx]
  4339. iNdEx++
  4340. stringLen |= (uint64(b) & 0x7F) << shift
  4341. if b < 0x80 {
  4342. break
  4343. }
  4344. }
  4345. intStringLen := int(stringLen)
  4346. if intStringLen < 0 {
  4347. return ErrInvalidLengthGenerated
  4348. }
  4349. postIndex := iNdEx + intStringLen
  4350. if postIndex > l {
  4351. return io.ErrUnexpectedEOF
  4352. }
  4353. m.Selector = string(dAtA[iNdEx:postIndex])
  4354. iNdEx = postIndex
  4355. default:
  4356. iNdEx = preIndex
  4357. skippy, err := skipGenerated(dAtA[iNdEx:])
  4358. if err != nil {
  4359. return err
  4360. }
  4361. if skippy < 0 {
  4362. return ErrInvalidLengthGenerated
  4363. }
  4364. if (iNdEx + skippy) > l {
  4365. return io.ErrUnexpectedEOF
  4366. }
  4367. iNdEx += skippy
  4368. }
  4369. }
  4370. if iNdEx > l {
  4371. return io.ErrUnexpectedEOF
  4372. }
  4373. return nil
  4374. }
  4375. func skipGenerated(dAtA []byte) (n int, err error) {
  4376. l := len(dAtA)
  4377. iNdEx := 0
  4378. for iNdEx < l {
  4379. var wire uint64
  4380. for shift := uint(0); ; shift += 7 {
  4381. if shift >= 64 {
  4382. return 0, ErrIntOverflowGenerated
  4383. }
  4384. if iNdEx >= l {
  4385. return 0, io.ErrUnexpectedEOF
  4386. }
  4387. b := dAtA[iNdEx]
  4388. iNdEx++
  4389. wire |= (uint64(b) & 0x7F) << shift
  4390. if b < 0x80 {
  4391. break
  4392. }
  4393. }
  4394. wireType := int(wire & 0x7)
  4395. switch wireType {
  4396. case 0:
  4397. for shift := uint(0); ; shift += 7 {
  4398. if shift >= 64 {
  4399. return 0, ErrIntOverflowGenerated
  4400. }
  4401. if iNdEx >= l {
  4402. return 0, io.ErrUnexpectedEOF
  4403. }
  4404. iNdEx++
  4405. if dAtA[iNdEx-1] < 0x80 {
  4406. break
  4407. }
  4408. }
  4409. return iNdEx, nil
  4410. case 1:
  4411. iNdEx += 8
  4412. return iNdEx, nil
  4413. case 2:
  4414. var length int
  4415. for shift := uint(0); ; shift += 7 {
  4416. if shift >= 64 {
  4417. return 0, ErrIntOverflowGenerated
  4418. }
  4419. if iNdEx >= l {
  4420. return 0, io.ErrUnexpectedEOF
  4421. }
  4422. b := dAtA[iNdEx]
  4423. iNdEx++
  4424. length |= (int(b) & 0x7F) << shift
  4425. if b < 0x80 {
  4426. break
  4427. }
  4428. }
  4429. iNdEx += length
  4430. if length < 0 {
  4431. return 0, ErrInvalidLengthGenerated
  4432. }
  4433. return iNdEx, nil
  4434. case 3:
  4435. for {
  4436. var innerWire uint64
  4437. var start int = iNdEx
  4438. for shift := uint(0); ; shift += 7 {
  4439. if shift >= 64 {
  4440. return 0, ErrIntOverflowGenerated
  4441. }
  4442. if iNdEx >= l {
  4443. return 0, io.ErrUnexpectedEOF
  4444. }
  4445. b := dAtA[iNdEx]
  4446. iNdEx++
  4447. innerWire |= (uint64(b) & 0x7F) << shift
  4448. if b < 0x80 {
  4449. break
  4450. }
  4451. }
  4452. innerWireType := int(innerWire & 0x7)
  4453. if innerWireType == 4 {
  4454. break
  4455. }
  4456. next, err := skipGenerated(dAtA[start:])
  4457. if err != nil {
  4458. return 0, err
  4459. }
  4460. iNdEx = start + next
  4461. }
  4462. return iNdEx, nil
  4463. case 4:
  4464. return iNdEx, nil
  4465. case 5:
  4466. iNdEx += 4
  4467. return iNdEx, nil
  4468. default:
  4469. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  4470. }
  4471. }
  4472. panic("unreachable")
  4473. }
  4474. var (
  4475. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  4476. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  4477. )
  4478. func init() {
  4479. proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/autoscaling/v1/generated.proto", fileDescriptorGenerated)
  4480. }
  4481. var fileDescriptorGenerated = []byte{
  4482. // 1516 bytes of a gzipped FileDescriptorProto
  4483. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0xcf, 0x6f, 0x13, 0xc7,
  4484. 0x17, 0x8f, 0x7f, 0x24, 0x24, 0xe3, 0x90, 0xe4, 0x3b, 0x20, 0x08, 0xe1, 0x8b, 0x37, 0xda, 0x22,
  4485. 0x44, 0x7f, 0xb0, 0x6e, 0x52, 0x8a, 0xe8, 0x31, 0x76, 0x4b, 0x41, 0x8d, 0x21, 0x4c, 0x02, 0xa5,
  4486. 0x3f, 0xc5, 0x64, 0x3d, 0x38, 0x43, 0xbc, 0xbb, 0xd6, 0xec, 0xd8, 0x22, 0x48, 0x95, 0xda, 0x43,
  4487. 0xef, 0xbd, 0xb4, 0xea, 0xb1, 0x95, 0x7a, 0xed, 0x99, 0x73, 0x6f, 0x1c, 0x39, 0x20, 0x95, 0xd3,
  4488. 0xaa, 0x6c, 0x8f, 0xfd, 0x0f, 0x38, 0x55, 0xf3, 0xc3, 0xeb, 0x5d, 0xdb, 0xeb, 0x24, 0x26, 0x44,
  4489. 0x6d, 0x6f, 0x3b, 0x33, 0xef, 0x7d, 0xde, 0xec, 0x7b, 0x6f, 0xde, 0x2f, 0x50, 0xde, 0xbe, 0xec,
  4490. 0x5b, 0xd4, 0x2b, 0x6d, 0xb7, 0x36, 0x09, 0x73, 0x09, 0x27, 0x7e, 0xa9, 0x4d, 0xdc, 0x9a, 0xc7,
  4491. 0x4a, 0xfa, 0x00, 0x37, 0x69, 0x09, 0xb7, 0xb8, 0xe7, 0xdb, 0xb8, 0x41, 0xdd, 0x7a, 0xa9, 0xbd,
  4492. 0x54, 0xaa, 0x13, 0x97, 0x30, 0xcc, 0x49, 0xcd, 0x6a, 0x32, 0x8f, 0x7b, 0xf0, 0x94, 0x22, 0xb5,
  4493. 0x70, 0x93, 0x5a, 0x31, 0x52, 0xab, 0xbd, 0xb4, 0x70, 0xa1, 0x4e, 0xf9, 0x56, 0x6b, 0xd3, 0xb2,
  4494. 0x3d, 0xa7, 0x54, 0xf7, 0xea, 0x5e, 0x49, 0x72, 0x6c, 0xb6, 0xee, 0xc9, 0x95, 0x5c, 0xc8, 0x2f,
  4495. 0x85, 0xb4, 0x60, 0xc6, 0x84, 0xda, 0x1e, 0x23, 0x03, 0xa4, 0x2d, 0x5c, 0xec, 0xd2, 0x38, 0xd8,
  4496. 0xde, 0xa2, 0x2e, 0x61, 0x3b, 0xa5, 0xe6, 0x76, 0x5d, 0x32, 0x31, 0xe2, 0x7b, 0x2d, 0x66, 0x93,
  4497. 0x7d, 0x71, 0xf9, 0x25, 0x87, 0x70, 0x3c, 0x48, 0x56, 0x29, 0x8d, 0x8b, 0xb5, 0x5c, 0x4e, 0x9d,
  4498. 0x7e, 0x31, 0x97, 0x76, 0x63, 0xf0, 0xed, 0x2d, 0xe2, 0xe0, 0x5e, 0x3e, 0xf3, 0xfb, 0x0c, 0x38,
  4499. 0x5d, 0x61, 0x9e, 0xef, 0xdf, 0x26, 0xcc, 0xa7, 0x9e, 0x7b, 0x63, 0xf3, 0x3e, 0xb1, 0x39, 0x22,
  4500. 0xf7, 0x08, 0x23, 0xae, 0x4d, 0xe0, 0x22, 0xc8, 0x6f, 0x53, 0xb7, 0x36, 0x9f, 0x59, 0xcc, 0x9c,
  4501. 0x9f, 0x2a, 0x4f, 0x3f, 0x0e, 0x8c, 0xb1, 0x30, 0x30, 0xf2, 0x1f, 0x51, 0xb7, 0x86, 0xe4, 0x89,
  4502. 0xa0, 0x70, 0xb1, 0x43, 0xe6, 0xb3, 0x49, 0x8a, 0xeb, 0xd8, 0x21, 0x48, 0x9e, 0xc0, 0x65, 0x00,
  4503. 0x70, 0x93, 0x6a, 0x01, 0xf3, 0x39, 0x49, 0x07, 0x35, 0x1d, 0x58, 0x59, 0xbb, 0xa6, 0x4f, 0x50,
  4504. 0x8c, 0xca, 0xfc, 0x21, 0x07, 0x8e, 0x7f, 0xf0, 0x80, 0x13, 0xe6, 0xe2, 0x46, 0x95, 0x70, 0x46,
  4505. 0xed, 0x75, 0xa9, 0x5f, 0x01, 0xe6, 0xc8, 0xb5, 0x10, 0xa0, 0xaf, 0x15, 0x81, 0x55, 0xa3, 0x13,
  4506. 0x14, 0xa3, 0x82, 0x1e, 0x98, 0x51, 0xab, 0x75, 0xd2, 0x20, 0x36, 0xf7, 0x98, 0xbc, 0x6c, 0x61,
  4507. 0xf9, 0x1d, 0xab, 0xeb, 0x40, 0x91, 0xd6, 0xac, 0xe6, 0x76, 0x5d, 0x6c, 0xf8, 0x96, 0x30, 0x8e,
  4508. 0xd5, 0x5e, 0xb2, 0x56, 0xf1, 0x26, 0x69, 0x74, 0x58, 0xcb, 0x30, 0x0c, 0x8c, 0x99, 0x6a, 0x02,
  4509. 0x0e, 0xf5, 0xc0, 0x43, 0x0c, 0x0a, 0x1c, 0xb3, 0x3a, 0xe1, 0xb7, 0x71, 0xa3, 0x45, 0xe4, 0x2f,
  4510. 0x17, 0x96, 0xad, 0x61, 0xd2, 0xac, 0x8e, 0x03, 0x59, 0x37, 0x5b, 0xd8, 0xe5, 0x94, 0xef, 0x94,
  4511. 0x67, 0xc3, 0xc0, 0x28, 0x6c, 0x74, 0x61, 0x50, 0x1c, 0x13, 0xb6, 0x01, 0x54, 0xcb, 0x95, 0x36,
  4512. 0x61, 0xb8, 0x4e, 0x94, 0xa4, 0xfc, 0x48, 0x92, 0x4e, 0x84, 0x81, 0x01, 0x37, 0xfa, 0xd0, 0xd0,
  4513. 0x00, 0x09, 0xe6, 0x4f, 0xfd, 0x86, 0xe1, 0x98, 0xb7, 0xfc, 0x7f, 0x87, 0x61, 0xb6, 0xc0, 0xb4,
  4514. 0xdd, 0x62, 0x8c, 0xb8, 0x2f, 0x65, 0x99, 0xe3, 0xfa, 0xb7, 0xa6, 0x2b, 0x31, 0x2c, 0x94, 0x40,
  4515. 0x86, 0x3b, 0xe0, 0x98, 0x5e, 0x1f, 0x80, 0x81, 0x4e, 0x86, 0x81, 0x71, 0xac, 0xd2, 0x0f, 0x87,
  4516. 0x06, 0xc9, 0x30, 0x1f, 0x65, 0xc1, 0xc9, 0xab, 0x1e, 0xa3, 0x0f, 0x3d, 0x97, 0xe3, 0xc6, 0x9a,
  4517. 0x57, 0x5b, 0xd1, 0xb1, 0x91, 0x30, 0x78, 0x17, 0x4c, 0x0a, 0xed, 0xd5, 0x30, 0xc7, 0xd2, 0x46,
  4518. 0x85, 0xe5, 0xb7, 0xf7, 0xa6, 0x6b, 0x15, 0x18, 0xaa, 0x84, 0xe3, 0xae, 0x55, 0xbb, 0x7b, 0x28,
  4519. 0x42, 0x85, 0x77, 0x40, 0xde, 0x6f, 0x12, 0x5b, 0x5b, 0xf2, 0x92, 0x95, 0x1a, 0xa3, 0xad, 0x94,
  4520. 0x3b, 0xae, 0x37, 0x89, 0xdd, 0x8d, 0x23, 0x62, 0x85, 0x24, 0x22, 0xbc, 0x0b, 0x26, 0x7c, 0xe9,
  4521. 0x6b, 0xda, 0x6c, 0x97, 0x47, 0xc0, 0x96, 0xfc, 0xe5, 0x19, 0x8d, 0x3e, 0xa1, 0xd6, 0x48, 0xe3,
  4522. 0x9a, 0xdf, 0xe6, 0xc0, 0x62, 0x0a, 0x67, 0xc5, 0x73, 0x6b, 0x94, 0x53, 0xcf, 0x85, 0x57, 0x41,
  4523. 0x9e, 0xef, 0x34, 0x3b, 0x2e, 0x7e, 0xb1, 0x73, 0xd1, 0x8d, 0x9d, 0x26, 0x79, 0x11, 0x18, 0x67,
  4524. 0x77, 0xe3, 0x17, 0x74, 0x48, 0x22, 0xc0, 0xd5, 0xe8, 0x87, 0xb2, 0x09, 0x2c, 0x7d, 0xad, 0x17,
  4525. 0x81, 0x31, 0x20, 0x2f, 0x59, 0x11, 0x52, 0xf2, 0xf2, 0x22, 0x22, 0x34, 0xb0, 0xcf, 0x37, 0x18,
  4526. 0x76, 0x7d, 0x25, 0x89, 0x3a, 0x1d, 0x0f, 0x7f, 0x63, 0x6f, 0x46, 0x16, 0x1c, 0xe5, 0x05, 0x7d,
  4527. 0x0b, 0xb8, 0xda, 0x87, 0x86, 0x06, 0x48, 0x80, 0xe7, 0xc0, 0x04, 0x23, 0xd8, 0xf7, 0x5c, 0xe9,
  4528. 0xdc, 0x53, 0x5d, 0xe5, 0x22, 0xb9, 0x8b, 0xf4, 0x29, 0x7c, 0x1d, 0x1c, 0x71, 0x88, 0xef, 0xe3,
  4529. 0x3a, 0x99, 0x1f, 0x97, 0x84, 0xb3, 0x9a, 0xf0, 0x48, 0x55, 0x6d, 0xa3, 0xce, 0xb9, 0xf9, 0x34,
  4530. 0x03, 0x4e, 0xa7, 0xe8, 0x71, 0x95, 0xfa, 0x1c, 0x7e, 0xde, 0xe7, 0xc5, 0xd6, 0x1e, 0x23, 0x06,
  4531. 0xf5, 0x95, 0x0f, 0xcf, 0x69, 0xd9, 0x93, 0x9d, 0x9d, 0x98, 0x07, 0x7f, 0x0c, 0xc6, 0x29, 0x27,
  4532. 0x8e, 0xb0, 0x4a, 0xee, 0x7c, 0x61, 0x79, 0x79, 0xff, 0x6e, 0x56, 0x3e, 0xaa, 0xe1, 0xc7, 0xaf,
  4533. 0x09, 0x20, 0xa4, 0xf0, 0xcc, 0xbf, 0xb2, 0xa9, 0xbf, 0x25, 0xdc, 0x1c, 0xb6, 0xc1, 0x8c, 0x5c,
  4534. 0xa9, 0x50, 0x8c, 0xc8, 0x3d, 0xfd, 0x73, 0xc3, 0x1e, 0xd1, 0x90, 0xe4, 0x5d, 0x3e, 0xa1, 0x6f,
  4535. 0x31, 0xb3, 0x9e, 0x40, 0x45, 0x3d, 0x52, 0xe0, 0x12, 0x28, 0x38, 0xd4, 0x45, 0xa4, 0xd9, 0xa0,
  4536. 0x36, 0x56, 0xce, 0x38, 0xae, 0xd2, 0x4f, 0xb5, 0xbb, 0x8d, 0xe2, 0x34, 0xf0, 0x5d, 0x50, 0x70,
  4537. 0xf0, 0x83, 0x88, 0x25, 0x27, 0x59, 0x8e, 0x69, 0x79, 0x85, 0x6a, 0xf7, 0x08, 0xc5, 0xe9, 0xe0,
  4538. 0x7d, 0x50, 0x54, 0x39, 0xa5, 0xb2, 0x76, 0xeb, 0x16, 0xa7, 0x0d, 0xfa, 0x10, 0x0b, 0x3f, 0x5a,
  4539. 0x23, 0xcc, 0x26, 0x2e, 0x17, 0xae, 0x91, 0x97, 0x48, 0x66, 0x18, 0x18, 0xc5, 0x8d, 0xa1, 0x94,
  4540. 0x68, 0x17, 0x24, 0xf3, 0xb7, 0x1c, 0x38, 0x33, 0x34, 0x0c, 0xc0, 0x2b, 0x00, 0x7a, 0x9b, 0x3e,
  4541. 0x61, 0x6d, 0x52, 0xfb, 0x50, 0xd5, 0x45, 0xa2, 0x40, 0x11, 0x3a, 0xcf, 0xa9, 0x9c, 0x78, 0xa3,
  4542. 0xef, 0x14, 0x0d, 0xe0, 0x80, 0x36, 0x38, 0x2a, 0xde, 0x85, 0xd2, 0x32, 0xd5, 0xb5, 0xd0, 0xfe,
  4543. 0x1e, 0xdd, 0xff, 0xc2, 0xc0, 0x38, 0xba, 0x1a, 0x07, 0x41, 0x49, 0x4c, 0xb8, 0x02, 0x66, 0x75,
  4544. 0xb0, 0xef, 0xd1, 0xfa, 0x49, 0xad, 0xf5, 0xd9, 0x4a, 0xf2, 0x18, 0xf5, 0xd2, 0x0b, 0x88, 0x1a,
  4545. 0xf1, 0x29, 0x23, 0xb5, 0x08, 0x22, 0x9f, 0x84, 0x78, 0x3f, 0x79, 0x8c, 0x7a, 0xe9, 0xa1, 0x03,
  4546. 0x0c, 0x8d, 0x9a, 0x6a, 0xc1, 0x71, 0x09, 0xf9, 0x5a, 0x18, 0x18, 0x46, 0x65, 0x38, 0x29, 0xda,
  4547. 0x0d, 0x4b, 0x94, 0x81, 0xba, 0x76, 0x90, 0x0f, 0xe4, 0x62, 0x22, 0xf4, 0x2e, 0xf6, 0x84, 0xde,
  4548. 0xb9, 0x78, 0xa1, 0x18, 0x0b, 0xb3, 0x37, 0xc1, 0x84, 0x27, 0x5f, 0x86, 0xb6, 0xcb, 0x85, 0x21,
  4549. 0xcf, 0x29, 0x4a, 0x69, 0x11, 0x50, 0x19, 0x88, 0x58, 0xa6, 0x9f, 0x96, 0x06, 0x82, 0xd7, 0x40,
  4550. 0xbe, 0xe9, 0xd5, 0x3a, 0x89, 0xe8, 0xcd, 0x21, 0x80, 0x6b, 0x5e, 0xcd, 0x4f, 0xc0, 0x4d, 0x8a,
  4551. 0x1b, 0x8b, 0x5d, 0x24, 0x21, 0xe0, 0x27, 0x60, 0xb2, 0x93, 0xf0, 0x75, 0x75, 0x50, 0x1a, 0x02,
  4552. 0x87, 0x34, 0x69, 0x02, 0x72, 0x5a, 0x04, 0xb2, 0xce, 0x09, 0x8a, 0xe0, 0x04, 0x34, 0xd1, 0xa5,
  4553. 0x9a, 0xb4, 0xca, 0x70, 0xe8, 0x41, 0xe5, 0xb6, 0x82, 0xee, 0x9c, 0xa0, 0x08, 0xce, 0xfc, 0x31,
  4554. 0x07, 0xa6, 0x13, 0xe5, 0xdf, 0x21, 0x9b, 0x46, 0xe5, 0xf1, 0x03, 0x33, 0x8d, 0x82, 0x3b, 0x50,
  4555. 0xd3, 0x28, 0xc8, 0x57, 0x62, 0x9a, 0x18, 0xf4, 0x00, 0xd3, 0x3c, 0xcd, 0x01, 0xd8, 0xef, 0xc6,
  4556. 0xf0, 0x4b, 0x30, 0xa1, 0x02, 0xe6, 0x4b, 0x26, 0x95, 0x28, 0xbd, 0xeb, 0xfc, 0xa1, 0x51, 0x7b,
  4557. 0xea, 0xff, 0xec, 0x9e, 0xea, 0x7f, 0x72, 0x10, 0x7d, 0x52, 0x94, 0x75, 0x52, 0x7b, 0xa5, 0x2f,
  4558. 0xc0, 0xa4, 0xdf, 0x69, 0x30, 0xf2, 0xa3, 0x37, 0x18, 0x52, 0xe1, 0x51, 0x6b, 0x11, 0x41, 0xc2,
  4559. 0x1a, 0x98, 0xc6, 0xf1, 0x1a, 0x7f, 0x7c, 0xa4, 0xdf, 0x98, 0x13, 0x0d, 0x45, 0xa2, 0xb8, 0x4f,
  4560. 0xa0, 0x9a, 0xbf, 0xf7, 0x9a, 0x55, 0xbd, 0xbb, 0x7f, 0xa2, 0x59, 0x0f, 0xaf, 0xcb, 0xfa, 0x4f,
  4561. 0x58, 0xf6, 0xe7, 0x2c, 0x98, 0xeb, 0x4d, 0x13, 0x23, 0xb5, 0xd3, 0x0f, 0x07, 0xce, 0x04, 0xb2,
  4562. 0x23, 0x5d, 0x3a, 0xea, 0x02, 0xf6, 0x36, 0x17, 0x48, 0x58, 0x22, 0x77, 0xe0, 0x96, 0x30, 0x7f,
  4563. 0x49, 0xea, 0x68, 0xf4, 0x91, 0xc3, 0x57, 0x83, 0xfb, 0xf2, 0xd1, 0x94, 0x74, 0x5a, 0x0b, 0xdb,
  4564. 0x73, 0x6f, 0xfe, 0xaa, 0xd5, 0xf4, 0x6b, 0x16, 0x1c, 0x1f, 0x54, 0x22, 0xc0, 0x8a, 0x9e, 0xd2,
  4565. 0x29, 0x25, 0x95, 0xe2, 0x53, 0xba, 0x17, 0x81, 0x61, 0x0c, 0x68, 0x33, 0x3b, 0x30, 0xb1, 0x41,
  4566. 0xde, 0x1d, 0x30, 0x9f, 0xb0, 0x7c, 0xac, 0x66, 0xd3, 0x4d, 0xc3, 0xff, 0xc3, 0xc0, 0x98, 0xdf,
  4567. 0x48, 0xa1, 0x41, 0xa9, 0xdc, 0x29, 0xd3, 0xac, 0xdc, 0x2b, 0x9f, 0x66, 0x3d, 0xea, 0xd7, 0x97,
  4568. 0x72, 0xad, 0x03, 0xd1, 0xd7, 0x67, 0xe0, 0x54, 0xd2, 0x07, 0xfa, 0x15, 0x76, 0x26, 0x0c, 0x8c,
  4569. 0x53, 0x95, 0x34, 0x22, 0x94, 0xce, 0x9f, 0xe6, 0xc8, 0xb9, 0xc3, 0x71, 0x64, 0xf3, 0x9b, 0x2c,
  4570. 0x18, 0x97, 0xcd, 0xc9, 0x21, 0x8c, 0x94, 0xae, 0x24, 0x46, 0x4a, 0x67, 0x87, 0x64, 0x38, 0x79,
  4571. 0xa3, 0xd4, 0x01, 0xd2, 0xf5, 0x9e, 0x01, 0xd2, 0xb9, 0x5d, 0x91, 0x86, 0x8f, 0x8b, 0xde, 0x03,
  4572. 0x53, 0x91, 0x40, 0xf8, 0x96, 0x28, 0x16, 0x75, 0x57, 0x95, 0x91, 0xb6, 0x8d, 0x66, 0x0c, 0x51,
  4573. 0x3b, 0x15, 0x51, 0x98, 0x14, 0x14, 0x62, 0x12, 0xf6, 0xc7, 0x2c, 0xa8, 0xfd, 0xf8, 0xc0, 0x74,
  4574. 0xaa, 0x4b, 0xdd, 0x1f, 0x13, 0xca, 0xe7, 0x1f, 0x3f, 0x2f, 0x8e, 0x3d, 0x79, 0x5e, 0x1c, 0x7b,
  4575. 0xf6, 0xbc, 0x38, 0xf6, 0x75, 0x58, 0xcc, 0x3c, 0x0e, 0x8b, 0x99, 0x27, 0x61, 0x31, 0xf3, 0x2c,
  4576. 0x2c, 0x66, 0xfe, 0x08, 0x8b, 0x99, 0xef, 0xfe, 0x2c, 0x8e, 0x7d, 0x9a, 0x6d, 0x2f, 0xfd, 0x1d,
  4577. 0x00, 0x00, 0xff, 0xff, 0x3c, 0x26, 0x41, 0xcb, 0x94, 0x19, 0x00, 0x00,
  4578. }