generated.pb.go 88 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498
  1. /*
  2. Copyright 2017 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.
  14. // source: k8s.io/kubernetes/pkg/apis/autoscaling/v1/generated.proto
  15. // DO NOT EDIT!
  16. /*
  17. Package v1 is a generated protocol buffer package.
  18. It is generated from these files:
  19. k8s.io/kubernetes/pkg/apis/autoscaling/v1/generated.proto
  20. It has these top-level messages:
  21. CrossVersionObjectReference
  22. HorizontalPodAutoscaler
  23. HorizontalPodAutoscalerList
  24. HorizontalPodAutoscalerSpec
  25. HorizontalPodAutoscalerStatus
  26. MetricSpec
  27. MetricStatus
  28. ObjectMetricSource
  29. ObjectMetricStatus
  30. PodsMetricSource
  31. PodsMetricStatus
  32. ResourceMetricSource
  33. ResourceMetricStatus
  34. Scale
  35. ScaleSpec
  36. ScaleStatus
  37. */
  38. package v1
  39. import proto "github.com/gogo/protobuf/proto"
  40. import fmt "fmt"
  41. import math "math"
  42. import k8s_io_apimachinery_pkg_api_resource "k8s.io/apimachinery/pkg/api/resource"
  43. import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  44. import k8s_io_kubernetes_pkg_api_v1 "k8s.io/client-go/pkg/api/v1"
  45. import strings "strings"
  46. import reflect "reflect"
  47. import io "io"
  48. // Reference imports to suppress errors if they are not otherwise used.
  49. var _ = proto.Marshal
  50. var _ = fmt.Errorf
  51. var _ = math.Inf
  52. // This is a compile-time assertion to ensure that this generated file
  53. // is compatible with the proto package it is being compiled against.
  54. const _ = proto.GoGoProtoPackageIsVersion1
  55. func (m *CrossVersionObjectReference) Reset() { *m = CrossVersionObjectReference{} }
  56. func (*CrossVersionObjectReference) ProtoMessage() {}
  57. func (*CrossVersionObjectReference) Descriptor() ([]byte, []int) {
  58. return fileDescriptorGenerated, []int{0}
  59. }
  60. func (m *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} }
  61. func (*HorizontalPodAutoscaler) ProtoMessage() {}
  62. func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
  63. func (m *HorizontalPodAutoscalerList) Reset() { *m = HorizontalPodAutoscalerList{} }
  64. func (*HorizontalPodAutoscalerList) ProtoMessage() {}
  65. func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int) {
  66. return fileDescriptorGenerated, []int{2}
  67. }
  68. func (m *HorizontalPodAutoscalerSpec) Reset() { *m = HorizontalPodAutoscalerSpec{} }
  69. func (*HorizontalPodAutoscalerSpec) ProtoMessage() {}
  70. func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int) {
  71. return fileDescriptorGenerated, []int{3}
  72. }
  73. func (m *HorizontalPodAutoscalerStatus) Reset() { *m = HorizontalPodAutoscalerStatus{} }
  74. func (*HorizontalPodAutoscalerStatus) ProtoMessage() {}
  75. func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int) {
  76. return fileDescriptorGenerated, []int{4}
  77. }
  78. func (m *MetricSpec) Reset() { *m = MetricSpec{} }
  79. func (*MetricSpec) ProtoMessage() {}
  80. func (*MetricSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
  81. func (m *MetricStatus) Reset() { *m = MetricStatus{} }
  82. func (*MetricStatus) ProtoMessage() {}
  83. func (*MetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} }
  84. func (m *ObjectMetricSource) Reset() { *m = ObjectMetricSource{} }
  85. func (*ObjectMetricSource) ProtoMessage() {}
  86. func (*ObjectMetricSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} }
  87. func (m *ObjectMetricStatus) Reset() { *m = ObjectMetricStatus{} }
  88. func (*ObjectMetricStatus) ProtoMessage() {}
  89. func (*ObjectMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} }
  90. func (m *PodsMetricSource) Reset() { *m = PodsMetricSource{} }
  91. func (*PodsMetricSource) ProtoMessage() {}
  92. func (*PodsMetricSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} }
  93. func (m *PodsMetricStatus) Reset() { *m = PodsMetricStatus{} }
  94. func (*PodsMetricStatus) ProtoMessage() {}
  95. func (*PodsMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} }
  96. func (m *ResourceMetricSource) Reset() { *m = ResourceMetricSource{} }
  97. func (*ResourceMetricSource) ProtoMessage() {}
  98. func (*ResourceMetricSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} }
  99. func (m *ResourceMetricStatus) Reset() { *m = ResourceMetricStatus{} }
  100. func (*ResourceMetricStatus) ProtoMessage() {}
  101. func (*ResourceMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} }
  102. func (m *Scale) Reset() { *m = Scale{} }
  103. func (*Scale) ProtoMessage() {}
  104. func (*Scale) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} }
  105. func (m *ScaleSpec) Reset() { *m = ScaleSpec{} }
  106. func (*ScaleSpec) ProtoMessage() {}
  107. func (*ScaleSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} }
  108. func (m *ScaleStatus) Reset() { *m = ScaleStatus{} }
  109. func (*ScaleStatus) ProtoMessage() {}
  110. func (*ScaleStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} }
  111. func init() {
  112. proto.RegisterType((*CrossVersionObjectReference)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.CrossVersionObjectReference")
  113. proto.RegisterType((*HorizontalPodAutoscaler)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.HorizontalPodAutoscaler")
  114. proto.RegisterType((*HorizontalPodAutoscalerList)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.HorizontalPodAutoscalerList")
  115. proto.RegisterType((*HorizontalPodAutoscalerSpec)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.HorizontalPodAutoscalerSpec")
  116. proto.RegisterType((*HorizontalPodAutoscalerStatus)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.HorizontalPodAutoscalerStatus")
  117. proto.RegisterType((*MetricSpec)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.MetricSpec")
  118. proto.RegisterType((*MetricStatus)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.MetricStatus")
  119. proto.RegisterType((*ObjectMetricSource)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.ObjectMetricSource")
  120. proto.RegisterType((*ObjectMetricStatus)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.ObjectMetricStatus")
  121. proto.RegisterType((*PodsMetricSource)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.PodsMetricSource")
  122. proto.RegisterType((*PodsMetricStatus)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.PodsMetricStatus")
  123. proto.RegisterType((*ResourceMetricSource)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.ResourceMetricSource")
  124. proto.RegisterType((*ResourceMetricStatus)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.ResourceMetricStatus")
  125. proto.RegisterType((*Scale)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.Scale")
  126. proto.RegisterType((*ScaleSpec)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.ScaleSpec")
  127. proto.RegisterType((*ScaleStatus)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.ScaleStatus")
  128. }
  129. func (m *CrossVersionObjectReference) Marshal() (data []byte, err error) {
  130. size := m.Size()
  131. data = make([]byte, size)
  132. n, err := m.MarshalTo(data)
  133. if err != nil {
  134. return nil, err
  135. }
  136. return data[:n], nil
  137. }
  138. func (m *CrossVersionObjectReference) MarshalTo(data []byte) (int, error) {
  139. var i int
  140. _ = i
  141. var l int
  142. _ = l
  143. data[i] = 0xa
  144. i++
  145. i = encodeVarintGenerated(data, i, uint64(len(m.Kind)))
  146. i += copy(data[i:], m.Kind)
  147. data[i] = 0x12
  148. i++
  149. i = encodeVarintGenerated(data, i, uint64(len(m.Name)))
  150. i += copy(data[i:], m.Name)
  151. data[i] = 0x1a
  152. i++
  153. i = encodeVarintGenerated(data, i, uint64(len(m.APIVersion)))
  154. i += copy(data[i:], m.APIVersion)
  155. return i, nil
  156. }
  157. func (m *HorizontalPodAutoscaler) Marshal() (data []byte, err error) {
  158. size := m.Size()
  159. data = make([]byte, size)
  160. n, err := m.MarshalTo(data)
  161. if err != nil {
  162. return nil, err
  163. }
  164. return data[:n], nil
  165. }
  166. func (m *HorizontalPodAutoscaler) MarshalTo(data []byte) (int, error) {
  167. var i int
  168. _ = i
  169. var l int
  170. _ = l
  171. data[i] = 0xa
  172. i++
  173. i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size()))
  174. n1, err := m.ObjectMeta.MarshalTo(data[i:])
  175. if err != nil {
  176. return 0, err
  177. }
  178. i += n1
  179. data[i] = 0x12
  180. i++
  181. i = encodeVarintGenerated(data, i, uint64(m.Spec.Size()))
  182. n2, err := m.Spec.MarshalTo(data[i:])
  183. if err != nil {
  184. return 0, err
  185. }
  186. i += n2
  187. data[i] = 0x1a
  188. i++
  189. i = encodeVarintGenerated(data, i, uint64(m.Status.Size()))
  190. n3, err := m.Status.MarshalTo(data[i:])
  191. if err != nil {
  192. return 0, err
  193. }
  194. i += n3
  195. return i, nil
  196. }
  197. func (m *HorizontalPodAutoscalerList) Marshal() (data []byte, err error) {
  198. size := m.Size()
  199. data = make([]byte, size)
  200. n, err := m.MarshalTo(data)
  201. if err != nil {
  202. return nil, err
  203. }
  204. return data[:n], nil
  205. }
  206. func (m *HorizontalPodAutoscalerList) MarshalTo(data []byte) (int, error) {
  207. var i int
  208. _ = i
  209. var l int
  210. _ = l
  211. data[i] = 0xa
  212. i++
  213. i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size()))
  214. n4, err := m.ListMeta.MarshalTo(data[i:])
  215. if err != nil {
  216. return 0, err
  217. }
  218. i += n4
  219. if len(m.Items) > 0 {
  220. for _, msg := range m.Items {
  221. data[i] = 0x12
  222. i++
  223. i = encodeVarintGenerated(data, i, uint64(msg.Size()))
  224. n, err := msg.MarshalTo(data[i:])
  225. if err != nil {
  226. return 0, err
  227. }
  228. i += n
  229. }
  230. }
  231. return i, nil
  232. }
  233. func (m *HorizontalPodAutoscalerSpec) Marshal() (data []byte, err error) {
  234. size := m.Size()
  235. data = make([]byte, size)
  236. n, err := m.MarshalTo(data)
  237. if err != nil {
  238. return nil, err
  239. }
  240. return data[:n], nil
  241. }
  242. func (m *HorizontalPodAutoscalerSpec) MarshalTo(data []byte) (int, error) {
  243. var i int
  244. _ = i
  245. var l int
  246. _ = l
  247. data[i] = 0xa
  248. i++
  249. i = encodeVarintGenerated(data, i, uint64(m.ScaleTargetRef.Size()))
  250. n5, err := m.ScaleTargetRef.MarshalTo(data[i:])
  251. if err != nil {
  252. return 0, err
  253. }
  254. i += n5
  255. if m.MinReplicas != nil {
  256. data[i] = 0x10
  257. i++
  258. i = encodeVarintGenerated(data, i, uint64(*m.MinReplicas))
  259. }
  260. data[i] = 0x18
  261. i++
  262. i = encodeVarintGenerated(data, i, uint64(m.MaxReplicas))
  263. if m.TargetCPUUtilizationPercentage != nil {
  264. data[i] = 0x20
  265. i++
  266. i = encodeVarintGenerated(data, i, uint64(*m.TargetCPUUtilizationPercentage))
  267. }
  268. return i, nil
  269. }
  270. func (m *HorizontalPodAutoscalerStatus) Marshal() (data []byte, err error) {
  271. size := m.Size()
  272. data = make([]byte, size)
  273. n, err := m.MarshalTo(data)
  274. if err != nil {
  275. return nil, err
  276. }
  277. return data[:n], nil
  278. }
  279. func (m *HorizontalPodAutoscalerStatus) MarshalTo(data []byte) (int, error) {
  280. var i int
  281. _ = i
  282. var l int
  283. _ = l
  284. if m.ObservedGeneration != nil {
  285. data[i] = 0x8
  286. i++
  287. i = encodeVarintGenerated(data, i, uint64(*m.ObservedGeneration))
  288. }
  289. if m.LastScaleTime != nil {
  290. data[i] = 0x12
  291. i++
  292. i = encodeVarintGenerated(data, i, uint64(m.LastScaleTime.Size()))
  293. n6, err := m.LastScaleTime.MarshalTo(data[i:])
  294. if err != nil {
  295. return 0, err
  296. }
  297. i += n6
  298. }
  299. data[i] = 0x18
  300. i++
  301. i = encodeVarintGenerated(data, i, uint64(m.CurrentReplicas))
  302. data[i] = 0x20
  303. i++
  304. i = encodeVarintGenerated(data, i, uint64(m.DesiredReplicas))
  305. if m.CurrentCPUUtilizationPercentage != nil {
  306. data[i] = 0x28
  307. i++
  308. i = encodeVarintGenerated(data, i, uint64(*m.CurrentCPUUtilizationPercentage))
  309. }
  310. return i, nil
  311. }
  312. func (m *MetricSpec) Marshal() (data []byte, err error) {
  313. size := m.Size()
  314. data = make([]byte, size)
  315. n, err := m.MarshalTo(data)
  316. if err != nil {
  317. return nil, err
  318. }
  319. return data[:n], nil
  320. }
  321. func (m *MetricSpec) MarshalTo(data []byte) (int, error) {
  322. var i int
  323. _ = i
  324. var l int
  325. _ = l
  326. data[i] = 0xa
  327. i++
  328. i = encodeVarintGenerated(data, i, uint64(len(m.Type)))
  329. i += copy(data[i:], m.Type)
  330. if m.Object != nil {
  331. data[i] = 0x12
  332. i++
  333. i = encodeVarintGenerated(data, i, uint64(m.Object.Size()))
  334. n7, err := m.Object.MarshalTo(data[i:])
  335. if err != nil {
  336. return 0, err
  337. }
  338. i += n7
  339. }
  340. if m.Pods != nil {
  341. data[i] = 0x1a
  342. i++
  343. i = encodeVarintGenerated(data, i, uint64(m.Pods.Size()))
  344. n8, err := m.Pods.MarshalTo(data[i:])
  345. if err != nil {
  346. return 0, err
  347. }
  348. i += n8
  349. }
  350. if m.Resource != nil {
  351. data[i] = 0x22
  352. i++
  353. i = encodeVarintGenerated(data, i, uint64(m.Resource.Size()))
  354. n9, err := m.Resource.MarshalTo(data[i:])
  355. if err != nil {
  356. return 0, err
  357. }
  358. i += n9
  359. }
  360. return i, nil
  361. }
  362. func (m *MetricStatus) Marshal() (data []byte, err error) {
  363. size := m.Size()
  364. data = make([]byte, size)
  365. n, err := m.MarshalTo(data)
  366. if err != nil {
  367. return nil, err
  368. }
  369. return data[:n], nil
  370. }
  371. func (m *MetricStatus) MarshalTo(data []byte) (int, error) {
  372. var i int
  373. _ = i
  374. var l int
  375. _ = l
  376. data[i] = 0xa
  377. i++
  378. i = encodeVarintGenerated(data, i, uint64(len(m.Type)))
  379. i += copy(data[i:], m.Type)
  380. if m.Object != nil {
  381. data[i] = 0x12
  382. i++
  383. i = encodeVarintGenerated(data, i, uint64(m.Object.Size()))
  384. n10, err := m.Object.MarshalTo(data[i:])
  385. if err != nil {
  386. return 0, err
  387. }
  388. i += n10
  389. }
  390. if m.Pods != nil {
  391. data[i] = 0x1a
  392. i++
  393. i = encodeVarintGenerated(data, i, uint64(m.Pods.Size()))
  394. n11, err := m.Pods.MarshalTo(data[i:])
  395. if err != nil {
  396. return 0, err
  397. }
  398. i += n11
  399. }
  400. if m.Resource != nil {
  401. data[i] = 0x22
  402. i++
  403. i = encodeVarintGenerated(data, i, uint64(m.Resource.Size()))
  404. n12, err := m.Resource.MarshalTo(data[i:])
  405. if err != nil {
  406. return 0, err
  407. }
  408. i += n12
  409. }
  410. return i, nil
  411. }
  412. func (m *ObjectMetricSource) Marshal() (data []byte, err error) {
  413. size := m.Size()
  414. data = make([]byte, size)
  415. n, err := m.MarshalTo(data)
  416. if err != nil {
  417. return nil, err
  418. }
  419. return data[:n], nil
  420. }
  421. func (m *ObjectMetricSource) MarshalTo(data []byte) (int, error) {
  422. var i int
  423. _ = i
  424. var l int
  425. _ = l
  426. data[i] = 0xa
  427. i++
  428. i = encodeVarintGenerated(data, i, uint64(m.Target.Size()))
  429. n13, err := m.Target.MarshalTo(data[i:])
  430. if err != nil {
  431. return 0, err
  432. }
  433. i += n13
  434. data[i] = 0x12
  435. i++
  436. i = encodeVarintGenerated(data, i, uint64(len(m.MetricName)))
  437. i += copy(data[i:], m.MetricName)
  438. data[i] = 0x1a
  439. i++
  440. i = encodeVarintGenerated(data, i, uint64(m.TargetValue.Size()))
  441. n14, err := m.TargetValue.MarshalTo(data[i:])
  442. if err != nil {
  443. return 0, err
  444. }
  445. i += n14
  446. return i, nil
  447. }
  448. func (m *ObjectMetricStatus) Marshal() (data []byte, err error) {
  449. size := m.Size()
  450. data = make([]byte, size)
  451. n, err := m.MarshalTo(data)
  452. if err != nil {
  453. return nil, err
  454. }
  455. return data[:n], nil
  456. }
  457. func (m *ObjectMetricStatus) MarshalTo(data []byte) (int, error) {
  458. var i int
  459. _ = i
  460. var l int
  461. _ = l
  462. data[i] = 0xa
  463. i++
  464. i = encodeVarintGenerated(data, i, uint64(m.Target.Size()))
  465. n15, err := m.Target.MarshalTo(data[i:])
  466. if err != nil {
  467. return 0, err
  468. }
  469. i += n15
  470. data[i] = 0x12
  471. i++
  472. i = encodeVarintGenerated(data, i, uint64(len(m.MetricName)))
  473. i += copy(data[i:], m.MetricName)
  474. data[i] = 0x1a
  475. i++
  476. i = encodeVarintGenerated(data, i, uint64(m.CurrentValue.Size()))
  477. n16, err := m.CurrentValue.MarshalTo(data[i:])
  478. if err != nil {
  479. return 0, err
  480. }
  481. i += n16
  482. return i, nil
  483. }
  484. func (m *PodsMetricSource) Marshal() (data []byte, err error) {
  485. size := m.Size()
  486. data = make([]byte, size)
  487. n, err := m.MarshalTo(data)
  488. if err != nil {
  489. return nil, err
  490. }
  491. return data[:n], nil
  492. }
  493. func (m *PodsMetricSource) MarshalTo(data []byte) (int, error) {
  494. var i int
  495. _ = i
  496. var l int
  497. _ = l
  498. data[i] = 0xa
  499. i++
  500. i = encodeVarintGenerated(data, i, uint64(len(m.MetricName)))
  501. i += copy(data[i:], m.MetricName)
  502. data[i] = 0x12
  503. i++
  504. i = encodeVarintGenerated(data, i, uint64(m.TargetAverageValue.Size()))
  505. n17, err := m.TargetAverageValue.MarshalTo(data[i:])
  506. if err != nil {
  507. return 0, err
  508. }
  509. i += n17
  510. return i, nil
  511. }
  512. func (m *PodsMetricStatus) Marshal() (data []byte, err error) {
  513. size := m.Size()
  514. data = make([]byte, size)
  515. n, err := m.MarshalTo(data)
  516. if err != nil {
  517. return nil, err
  518. }
  519. return data[:n], nil
  520. }
  521. func (m *PodsMetricStatus) MarshalTo(data []byte) (int, error) {
  522. var i int
  523. _ = i
  524. var l int
  525. _ = l
  526. data[i] = 0xa
  527. i++
  528. i = encodeVarintGenerated(data, i, uint64(len(m.MetricName)))
  529. i += copy(data[i:], m.MetricName)
  530. data[i] = 0x12
  531. i++
  532. i = encodeVarintGenerated(data, i, uint64(m.CurrentAverageValue.Size()))
  533. n18, err := m.CurrentAverageValue.MarshalTo(data[i:])
  534. if err != nil {
  535. return 0, err
  536. }
  537. i += n18
  538. return i, nil
  539. }
  540. func (m *ResourceMetricSource) Marshal() (data []byte, err error) {
  541. size := m.Size()
  542. data = make([]byte, size)
  543. n, err := m.MarshalTo(data)
  544. if err != nil {
  545. return nil, err
  546. }
  547. return data[:n], nil
  548. }
  549. func (m *ResourceMetricSource) MarshalTo(data []byte) (int, error) {
  550. var i int
  551. _ = i
  552. var l int
  553. _ = l
  554. data[i] = 0xa
  555. i++
  556. i = encodeVarintGenerated(data, i, uint64(len(m.Name)))
  557. i += copy(data[i:], m.Name)
  558. if m.TargetAverageUtilization != nil {
  559. data[i] = 0x10
  560. i++
  561. i = encodeVarintGenerated(data, i, uint64(*m.TargetAverageUtilization))
  562. }
  563. if m.TargetAverageValue != nil {
  564. data[i] = 0x1a
  565. i++
  566. i = encodeVarintGenerated(data, i, uint64(m.TargetAverageValue.Size()))
  567. n19, err := m.TargetAverageValue.MarshalTo(data[i:])
  568. if err != nil {
  569. return 0, err
  570. }
  571. i += n19
  572. }
  573. return i, nil
  574. }
  575. func (m *ResourceMetricStatus) Marshal() (data []byte, err error) {
  576. size := m.Size()
  577. data = make([]byte, size)
  578. n, err := m.MarshalTo(data)
  579. if err != nil {
  580. return nil, err
  581. }
  582. return data[:n], nil
  583. }
  584. func (m *ResourceMetricStatus) MarshalTo(data []byte) (int, error) {
  585. var i int
  586. _ = i
  587. var l int
  588. _ = l
  589. data[i] = 0xa
  590. i++
  591. i = encodeVarintGenerated(data, i, uint64(len(m.Name)))
  592. i += copy(data[i:], m.Name)
  593. if m.CurrentAverageUtilization != nil {
  594. data[i] = 0x10
  595. i++
  596. i = encodeVarintGenerated(data, i, uint64(*m.CurrentAverageUtilization))
  597. }
  598. data[i] = 0x1a
  599. i++
  600. i = encodeVarintGenerated(data, i, uint64(m.CurrentAverageValue.Size()))
  601. n20, err := m.CurrentAverageValue.MarshalTo(data[i:])
  602. if err != nil {
  603. return 0, err
  604. }
  605. i += n20
  606. return i, nil
  607. }
  608. func (m *Scale) Marshal() (data []byte, err error) {
  609. size := m.Size()
  610. data = make([]byte, size)
  611. n, err := m.MarshalTo(data)
  612. if err != nil {
  613. return nil, err
  614. }
  615. return data[:n], nil
  616. }
  617. func (m *Scale) MarshalTo(data []byte) (int, error) {
  618. var i int
  619. _ = i
  620. var l int
  621. _ = l
  622. data[i] = 0xa
  623. i++
  624. i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size()))
  625. n21, err := m.ObjectMeta.MarshalTo(data[i:])
  626. if err != nil {
  627. return 0, err
  628. }
  629. i += n21
  630. data[i] = 0x12
  631. i++
  632. i = encodeVarintGenerated(data, i, uint64(m.Spec.Size()))
  633. n22, err := m.Spec.MarshalTo(data[i:])
  634. if err != nil {
  635. return 0, err
  636. }
  637. i += n22
  638. data[i] = 0x1a
  639. i++
  640. i = encodeVarintGenerated(data, i, uint64(m.Status.Size()))
  641. n23, err := m.Status.MarshalTo(data[i:])
  642. if err != nil {
  643. return 0, err
  644. }
  645. i += n23
  646. return i, nil
  647. }
  648. func (m *ScaleSpec) Marshal() (data []byte, err error) {
  649. size := m.Size()
  650. data = make([]byte, size)
  651. n, err := m.MarshalTo(data)
  652. if err != nil {
  653. return nil, err
  654. }
  655. return data[:n], nil
  656. }
  657. func (m *ScaleSpec) MarshalTo(data []byte) (int, error) {
  658. var i int
  659. _ = i
  660. var l int
  661. _ = l
  662. data[i] = 0x8
  663. i++
  664. i = encodeVarintGenerated(data, i, uint64(m.Replicas))
  665. return i, nil
  666. }
  667. func (m *ScaleStatus) Marshal() (data []byte, err error) {
  668. size := m.Size()
  669. data = make([]byte, size)
  670. n, err := m.MarshalTo(data)
  671. if err != nil {
  672. return nil, err
  673. }
  674. return data[:n], nil
  675. }
  676. func (m *ScaleStatus) MarshalTo(data []byte) (int, error) {
  677. var i int
  678. _ = i
  679. var l int
  680. _ = l
  681. data[i] = 0x8
  682. i++
  683. i = encodeVarintGenerated(data, i, uint64(m.Replicas))
  684. data[i] = 0x12
  685. i++
  686. i = encodeVarintGenerated(data, i, uint64(len(m.Selector)))
  687. i += copy(data[i:], m.Selector)
  688. return i, nil
  689. }
  690. func encodeFixed64Generated(data []byte, offset int, v uint64) int {
  691. data[offset] = uint8(v)
  692. data[offset+1] = uint8(v >> 8)
  693. data[offset+2] = uint8(v >> 16)
  694. data[offset+3] = uint8(v >> 24)
  695. data[offset+4] = uint8(v >> 32)
  696. data[offset+5] = uint8(v >> 40)
  697. data[offset+6] = uint8(v >> 48)
  698. data[offset+7] = uint8(v >> 56)
  699. return offset + 8
  700. }
  701. func encodeFixed32Generated(data []byte, offset int, v uint32) int {
  702. data[offset] = uint8(v)
  703. data[offset+1] = uint8(v >> 8)
  704. data[offset+2] = uint8(v >> 16)
  705. data[offset+3] = uint8(v >> 24)
  706. return offset + 4
  707. }
  708. func encodeVarintGenerated(data []byte, offset int, v uint64) int {
  709. for v >= 1<<7 {
  710. data[offset] = uint8(v&0x7f | 0x80)
  711. v >>= 7
  712. offset++
  713. }
  714. data[offset] = uint8(v)
  715. return offset + 1
  716. }
  717. func (m *CrossVersionObjectReference) Size() (n int) {
  718. var l int
  719. _ = l
  720. l = len(m.Kind)
  721. n += 1 + l + sovGenerated(uint64(l))
  722. l = len(m.Name)
  723. n += 1 + l + sovGenerated(uint64(l))
  724. l = len(m.APIVersion)
  725. n += 1 + l + sovGenerated(uint64(l))
  726. return n
  727. }
  728. func (m *HorizontalPodAutoscaler) Size() (n int) {
  729. var l int
  730. _ = l
  731. l = m.ObjectMeta.Size()
  732. n += 1 + l + sovGenerated(uint64(l))
  733. l = m.Spec.Size()
  734. n += 1 + l + sovGenerated(uint64(l))
  735. l = m.Status.Size()
  736. n += 1 + l + sovGenerated(uint64(l))
  737. return n
  738. }
  739. func (m *HorizontalPodAutoscalerList) Size() (n int) {
  740. var l int
  741. _ = l
  742. l = m.ListMeta.Size()
  743. n += 1 + l + sovGenerated(uint64(l))
  744. if len(m.Items) > 0 {
  745. for _, e := range m.Items {
  746. l = e.Size()
  747. n += 1 + l + sovGenerated(uint64(l))
  748. }
  749. }
  750. return n
  751. }
  752. func (m *HorizontalPodAutoscalerSpec) Size() (n int) {
  753. var l int
  754. _ = l
  755. l = m.ScaleTargetRef.Size()
  756. n += 1 + l + sovGenerated(uint64(l))
  757. if m.MinReplicas != nil {
  758. n += 1 + sovGenerated(uint64(*m.MinReplicas))
  759. }
  760. n += 1 + sovGenerated(uint64(m.MaxReplicas))
  761. if m.TargetCPUUtilizationPercentage != nil {
  762. n += 1 + sovGenerated(uint64(*m.TargetCPUUtilizationPercentage))
  763. }
  764. return n
  765. }
  766. func (m *HorizontalPodAutoscalerStatus) Size() (n int) {
  767. var l int
  768. _ = l
  769. if m.ObservedGeneration != nil {
  770. n += 1 + sovGenerated(uint64(*m.ObservedGeneration))
  771. }
  772. if m.LastScaleTime != nil {
  773. l = m.LastScaleTime.Size()
  774. n += 1 + l + sovGenerated(uint64(l))
  775. }
  776. n += 1 + sovGenerated(uint64(m.CurrentReplicas))
  777. n += 1 + sovGenerated(uint64(m.DesiredReplicas))
  778. if m.CurrentCPUUtilizationPercentage != nil {
  779. n += 1 + sovGenerated(uint64(*m.CurrentCPUUtilizationPercentage))
  780. }
  781. return n
  782. }
  783. func (m *MetricSpec) Size() (n int) {
  784. var l int
  785. _ = l
  786. l = len(m.Type)
  787. n += 1 + l + sovGenerated(uint64(l))
  788. if m.Object != nil {
  789. l = m.Object.Size()
  790. n += 1 + l + sovGenerated(uint64(l))
  791. }
  792. if m.Pods != nil {
  793. l = m.Pods.Size()
  794. n += 1 + l + sovGenerated(uint64(l))
  795. }
  796. if m.Resource != nil {
  797. l = m.Resource.Size()
  798. n += 1 + l + sovGenerated(uint64(l))
  799. }
  800. return n
  801. }
  802. func (m *MetricStatus) Size() (n int) {
  803. var l int
  804. _ = l
  805. l = len(m.Type)
  806. n += 1 + l + sovGenerated(uint64(l))
  807. if m.Object != nil {
  808. l = m.Object.Size()
  809. n += 1 + l + sovGenerated(uint64(l))
  810. }
  811. if m.Pods != nil {
  812. l = m.Pods.Size()
  813. n += 1 + l + sovGenerated(uint64(l))
  814. }
  815. if m.Resource != nil {
  816. l = m.Resource.Size()
  817. n += 1 + l + sovGenerated(uint64(l))
  818. }
  819. return n
  820. }
  821. func (m *ObjectMetricSource) Size() (n int) {
  822. var l int
  823. _ = l
  824. l = m.Target.Size()
  825. n += 1 + l + sovGenerated(uint64(l))
  826. l = len(m.MetricName)
  827. n += 1 + l + sovGenerated(uint64(l))
  828. l = m.TargetValue.Size()
  829. n += 1 + l + sovGenerated(uint64(l))
  830. return n
  831. }
  832. func (m *ObjectMetricStatus) Size() (n int) {
  833. var l int
  834. _ = l
  835. l = m.Target.Size()
  836. n += 1 + l + sovGenerated(uint64(l))
  837. l = len(m.MetricName)
  838. n += 1 + l + sovGenerated(uint64(l))
  839. l = m.CurrentValue.Size()
  840. n += 1 + l + sovGenerated(uint64(l))
  841. return n
  842. }
  843. func (m *PodsMetricSource) Size() (n int) {
  844. var l int
  845. _ = l
  846. l = len(m.MetricName)
  847. n += 1 + l + sovGenerated(uint64(l))
  848. l = m.TargetAverageValue.Size()
  849. n += 1 + l + sovGenerated(uint64(l))
  850. return n
  851. }
  852. func (m *PodsMetricStatus) Size() (n int) {
  853. var l int
  854. _ = l
  855. l = len(m.MetricName)
  856. n += 1 + l + sovGenerated(uint64(l))
  857. l = m.CurrentAverageValue.Size()
  858. n += 1 + l + sovGenerated(uint64(l))
  859. return n
  860. }
  861. func (m *ResourceMetricSource) Size() (n int) {
  862. var l int
  863. _ = l
  864. l = len(m.Name)
  865. n += 1 + l + sovGenerated(uint64(l))
  866. if m.TargetAverageUtilization != nil {
  867. n += 1 + sovGenerated(uint64(*m.TargetAverageUtilization))
  868. }
  869. if m.TargetAverageValue != nil {
  870. l = m.TargetAverageValue.Size()
  871. n += 1 + l + sovGenerated(uint64(l))
  872. }
  873. return n
  874. }
  875. func (m *ResourceMetricStatus) Size() (n int) {
  876. var l int
  877. _ = l
  878. l = len(m.Name)
  879. n += 1 + l + sovGenerated(uint64(l))
  880. if m.CurrentAverageUtilization != nil {
  881. n += 1 + sovGenerated(uint64(*m.CurrentAverageUtilization))
  882. }
  883. l = m.CurrentAverageValue.Size()
  884. n += 1 + l + sovGenerated(uint64(l))
  885. return n
  886. }
  887. func (m *Scale) Size() (n int) {
  888. var l int
  889. _ = l
  890. l = m.ObjectMeta.Size()
  891. n += 1 + l + sovGenerated(uint64(l))
  892. l = m.Spec.Size()
  893. n += 1 + l + sovGenerated(uint64(l))
  894. l = m.Status.Size()
  895. n += 1 + l + sovGenerated(uint64(l))
  896. return n
  897. }
  898. func (m *ScaleSpec) Size() (n int) {
  899. var l int
  900. _ = l
  901. n += 1 + sovGenerated(uint64(m.Replicas))
  902. return n
  903. }
  904. func (m *ScaleStatus) Size() (n int) {
  905. var l int
  906. _ = l
  907. n += 1 + sovGenerated(uint64(m.Replicas))
  908. l = len(m.Selector)
  909. n += 1 + l + sovGenerated(uint64(l))
  910. return n
  911. }
  912. func sovGenerated(x uint64) (n int) {
  913. for {
  914. n++
  915. x >>= 7
  916. if x == 0 {
  917. break
  918. }
  919. }
  920. return n
  921. }
  922. func sozGenerated(x uint64) (n int) {
  923. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  924. }
  925. func (this *CrossVersionObjectReference) String() string {
  926. if this == nil {
  927. return "nil"
  928. }
  929. s := strings.Join([]string{`&CrossVersionObjectReference{`,
  930. `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
  931. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  932. `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`,
  933. `}`,
  934. }, "")
  935. return s
  936. }
  937. func (this *HorizontalPodAutoscaler) String() string {
  938. if this == nil {
  939. return "nil"
  940. }
  941. s := strings.Join([]string{`&HorizontalPodAutoscaler{`,
  942. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  943. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "HorizontalPodAutoscalerSpec", "HorizontalPodAutoscalerSpec", 1), `&`, ``, 1) + `,`,
  944. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "HorizontalPodAutoscalerStatus", "HorizontalPodAutoscalerStatus", 1), `&`, ``, 1) + `,`,
  945. `}`,
  946. }, "")
  947. return s
  948. }
  949. func (this *HorizontalPodAutoscalerList) String() string {
  950. if this == nil {
  951. return "nil"
  952. }
  953. s := strings.Join([]string{`&HorizontalPodAutoscalerList{`,
  954. `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
  955. `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "HorizontalPodAutoscaler", "HorizontalPodAutoscaler", 1), `&`, ``, 1) + `,`,
  956. `}`,
  957. }, "")
  958. return s
  959. }
  960. func (this *HorizontalPodAutoscalerSpec) String() string {
  961. if this == nil {
  962. return "nil"
  963. }
  964. s := strings.Join([]string{`&HorizontalPodAutoscalerSpec{`,
  965. `ScaleTargetRef:` + strings.Replace(strings.Replace(this.ScaleTargetRef.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`,
  966. `MinReplicas:` + valueToStringGenerated(this.MinReplicas) + `,`,
  967. `MaxReplicas:` + fmt.Sprintf("%v", this.MaxReplicas) + `,`,
  968. `TargetCPUUtilizationPercentage:` + valueToStringGenerated(this.TargetCPUUtilizationPercentage) + `,`,
  969. `}`,
  970. }, "")
  971. return s
  972. }
  973. func (this *HorizontalPodAutoscalerStatus) String() string {
  974. if this == nil {
  975. return "nil"
  976. }
  977. s := strings.Join([]string{`&HorizontalPodAutoscalerStatus{`,
  978. `ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`,
  979. `LastScaleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScaleTime), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1) + `,`,
  980. `CurrentReplicas:` + fmt.Sprintf("%v", this.CurrentReplicas) + `,`,
  981. `DesiredReplicas:` + fmt.Sprintf("%v", this.DesiredReplicas) + `,`,
  982. `CurrentCPUUtilizationPercentage:` + valueToStringGenerated(this.CurrentCPUUtilizationPercentage) + `,`,
  983. `}`,
  984. }, "")
  985. return s
  986. }
  987. func (this *MetricSpec) String() string {
  988. if this == nil {
  989. return "nil"
  990. }
  991. s := strings.Join([]string{`&MetricSpec{`,
  992. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  993. `Object:` + strings.Replace(fmt.Sprintf("%v", this.Object), "ObjectMetricSource", "ObjectMetricSource", 1) + `,`,
  994. `Pods:` + strings.Replace(fmt.Sprintf("%v", this.Pods), "PodsMetricSource", "PodsMetricSource", 1) + `,`,
  995. `Resource:` + strings.Replace(fmt.Sprintf("%v", this.Resource), "ResourceMetricSource", "ResourceMetricSource", 1) + `,`,
  996. `}`,
  997. }, "")
  998. return s
  999. }
  1000. func (this *MetricStatus) String() string {
  1001. if this == nil {
  1002. return "nil"
  1003. }
  1004. s := strings.Join([]string{`&MetricStatus{`,
  1005. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  1006. `Object:` + strings.Replace(fmt.Sprintf("%v", this.Object), "ObjectMetricStatus", "ObjectMetricStatus", 1) + `,`,
  1007. `Pods:` + strings.Replace(fmt.Sprintf("%v", this.Pods), "PodsMetricStatus", "PodsMetricStatus", 1) + `,`,
  1008. `Resource:` + strings.Replace(fmt.Sprintf("%v", this.Resource), "ResourceMetricStatus", "ResourceMetricStatus", 1) + `,`,
  1009. `}`,
  1010. }, "")
  1011. return s
  1012. }
  1013. func (this *ObjectMetricSource) String() string {
  1014. if this == nil {
  1015. return "nil"
  1016. }
  1017. s := strings.Join([]string{`&ObjectMetricSource{`,
  1018. `Target:` + strings.Replace(strings.Replace(this.Target.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`,
  1019. `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
  1020. `TargetValue:` + strings.Replace(strings.Replace(this.TargetValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
  1021. `}`,
  1022. }, "")
  1023. return s
  1024. }
  1025. func (this *ObjectMetricStatus) String() string {
  1026. if this == nil {
  1027. return "nil"
  1028. }
  1029. s := strings.Join([]string{`&ObjectMetricStatus{`,
  1030. `Target:` + strings.Replace(strings.Replace(this.Target.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`,
  1031. `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
  1032. `CurrentValue:` + strings.Replace(strings.Replace(this.CurrentValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
  1033. `}`,
  1034. }, "")
  1035. return s
  1036. }
  1037. func (this *PodsMetricSource) String() string {
  1038. if this == nil {
  1039. return "nil"
  1040. }
  1041. s := strings.Join([]string{`&PodsMetricSource{`,
  1042. `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
  1043. `TargetAverageValue:` + strings.Replace(strings.Replace(this.TargetAverageValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
  1044. `}`,
  1045. }, "")
  1046. return s
  1047. }
  1048. func (this *PodsMetricStatus) String() string {
  1049. if this == nil {
  1050. return "nil"
  1051. }
  1052. s := strings.Join([]string{`&PodsMetricStatus{`,
  1053. `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
  1054. `CurrentAverageValue:` + strings.Replace(strings.Replace(this.CurrentAverageValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
  1055. `}`,
  1056. }, "")
  1057. return s
  1058. }
  1059. func (this *ResourceMetricSource) String() string {
  1060. if this == nil {
  1061. return "nil"
  1062. }
  1063. s := strings.Join([]string{`&ResourceMetricSource{`,
  1064. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  1065. `TargetAverageUtilization:` + valueToStringGenerated(this.TargetAverageUtilization) + `,`,
  1066. `TargetAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetAverageValue), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1) + `,`,
  1067. `}`,
  1068. }, "")
  1069. return s
  1070. }
  1071. func (this *ResourceMetricStatus) String() string {
  1072. if this == nil {
  1073. return "nil"
  1074. }
  1075. s := strings.Join([]string{`&ResourceMetricStatus{`,
  1076. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  1077. `CurrentAverageUtilization:` + valueToStringGenerated(this.CurrentAverageUtilization) + `,`,
  1078. `CurrentAverageValue:` + strings.Replace(strings.Replace(this.CurrentAverageValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
  1079. `}`,
  1080. }, "")
  1081. return s
  1082. }
  1083. func (this *Scale) String() string {
  1084. if this == nil {
  1085. return "nil"
  1086. }
  1087. s := strings.Join([]string{`&Scale{`,
  1088. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  1089. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ScaleSpec", "ScaleSpec", 1), `&`, ``, 1) + `,`,
  1090. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScaleStatus", "ScaleStatus", 1), `&`, ``, 1) + `,`,
  1091. `}`,
  1092. }, "")
  1093. return s
  1094. }
  1095. func (this *ScaleSpec) String() string {
  1096. if this == nil {
  1097. return "nil"
  1098. }
  1099. s := strings.Join([]string{`&ScaleSpec{`,
  1100. `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
  1101. `}`,
  1102. }, "")
  1103. return s
  1104. }
  1105. func (this *ScaleStatus) String() string {
  1106. if this == nil {
  1107. return "nil"
  1108. }
  1109. s := strings.Join([]string{`&ScaleStatus{`,
  1110. `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
  1111. `Selector:` + fmt.Sprintf("%v", this.Selector) + `,`,
  1112. `}`,
  1113. }, "")
  1114. return s
  1115. }
  1116. func valueToStringGenerated(v interface{}) string {
  1117. rv := reflect.ValueOf(v)
  1118. if rv.IsNil() {
  1119. return "nil"
  1120. }
  1121. pv := reflect.Indirect(rv).Interface()
  1122. return fmt.Sprintf("*%v", pv)
  1123. }
  1124. func (m *CrossVersionObjectReference) Unmarshal(data []byte) error {
  1125. l := len(data)
  1126. iNdEx := 0
  1127. for iNdEx < l {
  1128. preIndex := iNdEx
  1129. var wire uint64
  1130. for shift := uint(0); ; shift += 7 {
  1131. if shift >= 64 {
  1132. return ErrIntOverflowGenerated
  1133. }
  1134. if iNdEx >= l {
  1135. return io.ErrUnexpectedEOF
  1136. }
  1137. b := data[iNdEx]
  1138. iNdEx++
  1139. wire |= (uint64(b) & 0x7F) << shift
  1140. if b < 0x80 {
  1141. break
  1142. }
  1143. }
  1144. fieldNum := int32(wire >> 3)
  1145. wireType := int(wire & 0x7)
  1146. if wireType == 4 {
  1147. return fmt.Errorf("proto: CrossVersionObjectReference: wiretype end group for non-group")
  1148. }
  1149. if fieldNum <= 0 {
  1150. return fmt.Errorf("proto: CrossVersionObjectReference: illegal tag %d (wire type %d)", fieldNum, wire)
  1151. }
  1152. switch fieldNum {
  1153. case 1:
  1154. if wireType != 2 {
  1155. return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
  1156. }
  1157. var stringLen uint64
  1158. for shift := uint(0); ; shift += 7 {
  1159. if shift >= 64 {
  1160. return ErrIntOverflowGenerated
  1161. }
  1162. if iNdEx >= l {
  1163. return io.ErrUnexpectedEOF
  1164. }
  1165. b := data[iNdEx]
  1166. iNdEx++
  1167. stringLen |= (uint64(b) & 0x7F) << shift
  1168. if b < 0x80 {
  1169. break
  1170. }
  1171. }
  1172. intStringLen := int(stringLen)
  1173. if intStringLen < 0 {
  1174. return ErrInvalidLengthGenerated
  1175. }
  1176. postIndex := iNdEx + intStringLen
  1177. if postIndex > l {
  1178. return io.ErrUnexpectedEOF
  1179. }
  1180. m.Kind = string(data[iNdEx:postIndex])
  1181. iNdEx = postIndex
  1182. case 2:
  1183. if wireType != 2 {
  1184. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  1185. }
  1186. var stringLen uint64
  1187. for shift := uint(0); ; shift += 7 {
  1188. if shift >= 64 {
  1189. return ErrIntOverflowGenerated
  1190. }
  1191. if iNdEx >= l {
  1192. return io.ErrUnexpectedEOF
  1193. }
  1194. b := data[iNdEx]
  1195. iNdEx++
  1196. stringLen |= (uint64(b) & 0x7F) << shift
  1197. if b < 0x80 {
  1198. break
  1199. }
  1200. }
  1201. intStringLen := int(stringLen)
  1202. if intStringLen < 0 {
  1203. return ErrInvalidLengthGenerated
  1204. }
  1205. postIndex := iNdEx + intStringLen
  1206. if postIndex > l {
  1207. return io.ErrUnexpectedEOF
  1208. }
  1209. m.Name = string(data[iNdEx:postIndex])
  1210. iNdEx = postIndex
  1211. case 3:
  1212. if wireType != 2 {
  1213. return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType)
  1214. }
  1215. var stringLen uint64
  1216. for shift := uint(0); ; shift += 7 {
  1217. if shift >= 64 {
  1218. return ErrIntOverflowGenerated
  1219. }
  1220. if iNdEx >= l {
  1221. return io.ErrUnexpectedEOF
  1222. }
  1223. b := data[iNdEx]
  1224. iNdEx++
  1225. stringLen |= (uint64(b) & 0x7F) << shift
  1226. if b < 0x80 {
  1227. break
  1228. }
  1229. }
  1230. intStringLen := int(stringLen)
  1231. if intStringLen < 0 {
  1232. return ErrInvalidLengthGenerated
  1233. }
  1234. postIndex := iNdEx + intStringLen
  1235. if postIndex > l {
  1236. return io.ErrUnexpectedEOF
  1237. }
  1238. m.APIVersion = string(data[iNdEx:postIndex])
  1239. iNdEx = postIndex
  1240. default:
  1241. iNdEx = preIndex
  1242. skippy, err := skipGenerated(data[iNdEx:])
  1243. if err != nil {
  1244. return err
  1245. }
  1246. if skippy < 0 {
  1247. return ErrInvalidLengthGenerated
  1248. }
  1249. if (iNdEx + skippy) > l {
  1250. return io.ErrUnexpectedEOF
  1251. }
  1252. iNdEx += skippy
  1253. }
  1254. }
  1255. if iNdEx > l {
  1256. return io.ErrUnexpectedEOF
  1257. }
  1258. return nil
  1259. }
  1260. func (m *HorizontalPodAutoscaler) Unmarshal(data []byte) error {
  1261. l := len(data)
  1262. iNdEx := 0
  1263. for iNdEx < l {
  1264. preIndex := iNdEx
  1265. var wire uint64
  1266. for shift := uint(0); ; shift += 7 {
  1267. if shift >= 64 {
  1268. return ErrIntOverflowGenerated
  1269. }
  1270. if iNdEx >= l {
  1271. return io.ErrUnexpectedEOF
  1272. }
  1273. b := data[iNdEx]
  1274. iNdEx++
  1275. wire |= (uint64(b) & 0x7F) << shift
  1276. if b < 0x80 {
  1277. break
  1278. }
  1279. }
  1280. fieldNum := int32(wire >> 3)
  1281. wireType := int(wire & 0x7)
  1282. if wireType == 4 {
  1283. return fmt.Errorf("proto: HorizontalPodAutoscaler: wiretype end group for non-group")
  1284. }
  1285. if fieldNum <= 0 {
  1286. return fmt.Errorf("proto: HorizontalPodAutoscaler: illegal tag %d (wire type %d)", fieldNum, wire)
  1287. }
  1288. switch fieldNum {
  1289. case 1:
  1290. if wireType != 2 {
  1291. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  1292. }
  1293. var msglen int
  1294. for shift := uint(0); ; shift += 7 {
  1295. if shift >= 64 {
  1296. return ErrIntOverflowGenerated
  1297. }
  1298. if iNdEx >= l {
  1299. return io.ErrUnexpectedEOF
  1300. }
  1301. b := data[iNdEx]
  1302. iNdEx++
  1303. msglen |= (int(b) & 0x7F) << shift
  1304. if b < 0x80 {
  1305. break
  1306. }
  1307. }
  1308. if msglen < 0 {
  1309. return ErrInvalidLengthGenerated
  1310. }
  1311. postIndex := iNdEx + msglen
  1312. if postIndex > l {
  1313. return io.ErrUnexpectedEOF
  1314. }
  1315. if err := m.ObjectMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1316. return err
  1317. }
  1318. iNdEx = postIndex
  1319. case 2:
  1320. if wireType != 2 {
  1321. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  1322. }
  1323. var msglen int
  1324. for shift := uint(0); ; shift += 7 {
  1325. if shift >= 64 {
  1326. return ErrIntOverflowGenerated
  1327. }
  1328. if iNdEx >= l {
  1329. return io.ErrUnexpectedEOF
  1330. }
  1331. b := data[iNdEx]
  1332. iNdEx++
  1333. msglen |= (int(b) & 0x7F) << shift
  1334. if b < 0x80 {
  1335. break
  1336. }
  1337. }
  1338. if msglen < 0 {
  1339. return ErrInvalidLengthGenerated
  1340. }
  1341. postIndex := iNdEx + msglen
  1342. if postIndex > l {
  1343. return io.ErrUnexpectedEOF
  1344. }
  1345. if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1346. return err
  1347. }
  1348. iNdEx = postIndex
  1349. case 3:
  1350. if wireType != 2 {
  1351. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  1352. }
  1353. var msglen int
  1354. for shift := uint(0); ; shift += 7 {
  1355. if shift >= 64 {
  1356. return ErrIntOverflowGenerated
  1357. }
  1358. if iNdEx >= l {
  1359. return io.ErrUnexpectedEOF
  1360. }
  1361. b := data[iNdEx]
  1362. iNdEx++
  1363. msglen |= (int(b) & 0x7F) << shift
  1364. if b < 0x80 {
  1365. break
  1366. }
  1367. }
  1368. if msglen < 0 {
  1369. return ErrInvalidLengthGenerated
  1370. }
  1371. postIndex := iNdEx + msglen
  1372. if postIndex > l {
  1373. return io.ErrUnexpectedEOF
  1374. }
  1375. if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1376. return err
  1377. }
  1378. iNdEx = postIndex
  1379. default:
  1380. iNdEx = preIndex
  1381. skippy, err := skipGenerated(data[iNdEx:])
  1382. if err != nil {
  1383. return err
  1384. }
  1385. if skippy < 0 {
  1386. return ErrInvalidLengthGenerated
  1387. }
  1388. if (iNdEx + skippy) > l {
  1389. return io.ErrUnexpectedEOF
  1390. }
  1391. iNdEx += skippy
  1392. }
  1393. }
  1394. if iNdEx > l {
  1395. return io.ErrUnexpectedEOF
  1396. }
  1397. return nil
  1398. }
  1399. func (m *HorizontalPodAutoscalerList) Unmarshal(data []byte) error {
  1400. l := len(data)
  1401. iNdEx := 0
  1402. for iNdEx < l {
  1403. preIndex := iNdEx
  1404. var wire uint64
  1405. for shift := uint(0); ; shift += 7 {
  1406. if shift >= 64 {
  1407. return ErrIntOverflowGenerated
  1408. }
  1409. if iNdEx >= l {
  1410. return io.ErrUnexpectedEOF
  1411. }
  1412. b := data[iNdEx]
  1413. iNdEx++
  1414. wire |= (uint64(b) & 0x7F) << shift
  1415. if b < 0x80 {
  1416. break
  1417. }
  1418. }
  1419. fieldNum := int32(wire >> 3)
  1420. wireType := int(wire & 0x7)
  1421. if wireType == 4 {
  1422. return fmt.Errorf("proto: HorizontalPodAutoscalerList: wiretype end group for non-group")
  1423. }
  1424. if fieldNum <= 0 {
  1425. return fmt.Errorf("proto: HorizontalPodAutoscalerList: illegal tag %d (wire type %d)", fieldNum, wire)
  1426. }
  1427. switch fieldNum {
  1428. case 1:
  1429. if wireType != 2 {
  1430. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  1431. }
  1432. var msglen int
  1433. for shift := uint(0); ; shift += 7 {
  1434. if shift >= 64 {
  1435. return ErrIntOverflowGenerated
  1436. }
  1437. if iNdEx >= l {
  1438. return io.ErrUnexpectedEOF
  1439. }
  1440. b := data[iNdEx]
  1441. iNdEx++
  1442. msglen |= (int(b) & 0x7F) << shift
  1443. if b < 0x80 {
  1444. break
  1445. }
  1446. }
  1447. if msglen < 0 {
  1448. return ErrInvalidLengthGenerated
  1449. }
  1450. postIndex := iNdEx + msglen
  1451. if postIndex > l {
  1452. return io.ErrUnexpectedEOF
  1453. }
  1454. if err := m.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1455. return err
  1456. }
  1457. iNdEx = postIndex
  1458. case 2:
  1459. if wireType != 2 {
  1460. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  1461. }
  1462. var msglen int
  1463. for shift := uint(0); ; shift += 7 {
  1464. if shift >= 64 {
  1465. return ErrIntOverflowGenerated
  1466. }
  1467. if iNdEx >= l {
  1468. return io.ErrUnexpectedEOF
  1469. }
  1470. b := data[iNdEx]
  1471. iNdEx++
  1472. msglen |= (int(b) & 0x7F) << shift
  1473. if b < 0x80 {
  1474. break
  1475. }
  1476. }
  1477. if msglen < 0 {
  1478. return ErrInvalidLengthGenerated
  1479. }
  1480. postIndex := iNdEx + msglen
  1481. if postIndex > l {
  1482. return io.ErrUnexpectedEOF
  1483. }
  1484. m.Items = append(m.Items, HorizontalPodAutoscaler{})
  1485. if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
  1486. return err
  1487. }
  1488. iNdEx = postIndex
  1489. default:
  1490. iNdEx = preIndex
  1491. skippy, err := skipGenerated(data[iNdEx:])
  1492. if err != nil {
  1493. return err
  1494. }
  1495. if skippy < 0 {
  1496. return ErrInvalidLengthGenerated
  1497. }
  1498. if (iNdEx + skippy) > l {
  1499. return io.ErrUnexpectedEOF
  1500. }
  1501. iNdEx += skippy
  1502. }
  1503. }
  1504. if iNdEx > l {
  1505. return io.ErrUnexpectedEOF
  1506. }
  1507. return nil
  1508. }
  1509. func (m *HorizontalPodAutoscalerSpec) Unmarshal(data []byte) error {
  1510. l := len(data)
  1511. iNdEx := 0
  1512. for iNdEx < l {
  1513. preIndex := iNdEx
  1514. var wire uint64
  1515. for shift := uint(0); ; shift += 7 {
  1516. if shift >= 64 {
  1517. return ErrIntOverflowGenerated
  1518. }
  1519. if iNdEx >= l {
  1520. return io.ErrUnexpectedEOF
  1521. }
  1522. b := data[iNdEx]
  1523. iNdEx++
  1524. wire |= (uint64(b) & 0x7F) << shift
  1525. if b < 0x80 {
  1526. break
  1527. }
  1528. }
  1529. fieldNum := int32(wire >> 3)
  1530. wireType := int(wire & 0x7)
  1531. if wireType == 4 {
  1532. return fmt.Errorf("proto: HorizontalPodAutoscalerSpec: wiretype end group for non-group")
  1533. }
  1534. if fieldNum <= 0 {
  1535. return fmt.Errorf("proto: HorizontalPodAutoscalerSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  1536. }
  1537. switch fieldNum {
  1538. case 1:
  1539. if wireType != 2 {
  1540. return fmt.Errorf("proto: wrong wireType = %d for field ScaleTargetRef", wireType)
  1541. }
  1542. var msglen int
  1543. for shift := uint(0); ; shift += 7 {
  1544. if shift >= 64 {
  1545. return ErrIntOverflowGenerated
  1546. }
  1547. if iNdEx >= l {
  1548. return io.ErrUnexpectedEOF
  1549. }
  1550. b := data[iNdEx]
  1551. iNdEx++
  1552. msglen |= (int(b) & 0x7F) << shift
  1553. if b < 0x80 {
  1554. break
  1555. }
  1556. }
  1557. if msglen < 0 {
  1558. return ErrInvalidLengthGenerated
  1559. }
  1560. postIndex := iNdEx + msglen
  1561. if postIndex > l {
  1562. return io.ErrUnexpectedEOF
  1563. }
  1564. if err := m.ScaleTargetRef.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1565. return err
  1566. }
  1567. iNdEx = postIndex
  1568. case 2:
  1569. if wireType != 0 {
  1570. return fmt.Errorf("proto: wrong wireType = %d for field MinReplicas", wireType)
  1571. }
  1572. var v int32
  1573. for shift := uint(0); ; shift += 7 {
  1574. if shift >= 64 {
  1575. return ErrIntOverflowGenerated
  1576. }
  1577. if iNdEx >= l {
  1578. return io.ErrUnexpectedEOF
  1579. }
  1580. b := data[iNdEx]
  1581. iNdEx++
  1582. v |= (int32(b) & 0x7F) << shift
  1583. if b < 0x80 {
  1584. break
  1585. }
  1586. }
  1587. m.MinReplicas = &v
  1588. case 3:
  1589. if wireType != 0 {
  1590. return fmt.Errorf("proto: wrong wireType = %d for field MaxReplicas", wireType)
  1591. }
  1592. m.MaxReplicas = 0
  1593. for shift := uint(0); ; shift += 7 {
  1594. if shift >= 64 {
  1595. return ErrIntOverflowGenerated
  1596. }
  1597. if iNdEx >= l {
  1598. return io.ErrUnexpectedEOF
  1599. }
  1600. b := data[iNdEx]
  1601. iNdEx++
  1602. m.MaxReplicas |= (int32(b) & 0x7F) << shift
  1603. if b < 0x80 {
  1604. break
  1605. }
  1606. }
  1607. case 4:
  1608. if wireType != 0 {
  1609. return fmt.Errorf("proto: wrong wireType = %d for field TargetCPUUtilizationPercentage", wireType)
  1610. }
  1611. var v int32
  1612. for shift := uint(0); ; shift += 7 {
  1613. if shift >= 64 {
  1614. return ErrIntOverflowGenerated
  1615. }
  1616. if iNdEx >= l {
  1617. return io.ErrUnexpectedEOF
  1618. }
  1619. b := data[iNdEx]
  1620. iNdEx++
  1621. v |= (int32(b) & 0x7F) << shift
  1622. if b < 0x80 {
  1623. break
  1624. }
  1625. }
  1626. m.TargetCPUUtilizationPercentage = &v
  1627. default:
  1628. iNdEx = preIndex
  1629. skippy, err := skipGenerated(data[iNdEx:])
  1630. if err != nil {
  1631. return err
  1632. }
  1633. if skippy < 0 {
  1634. return ErrInvalidLengthGenerated
  1635. }
  1636. if (iNdEx + skippy) > l {
  1637. return io.ErrUnexpectedEOF
  1638. }
  1639. iNdEx += skippy
  1640. }
  1641. }
  1642. if iNdEx > l {
  1643. return io.ErrUnexpectedEOF
  1644. }
  1645. return nil
  1646. }
  1647. func (m *HorizontalPodAutoscalerStatus) Unmarshal(data []byte) error {
  1648. l := len(data)
  1649. iNdEx := 0
  1650. for iNdEx < l {
  1651. preIndex := iNdEx
  1652. var wire uint64
  1653. for shift := uint(0); ; shift += 7 {
  1654. if shift >= 64 {
  1655. return ErrIntOverflowGenerated
  1656. }
  1657. if iNdEx >= l {
  1658. return io.ErrUnexpectedEOF
  1659. }
  1660. b := data[iNdEx]
  1661. iNdEx++
  1662. wire |= (uint64(b) & 0x7F) << shift
  1663. if b < 0x80 {
  1664. break
  1665. }
  1666. }
  1667. fieldNum := int32(wire >> 3)
  1668. wireType := int(wire & 0x7)
  1669. if wireType == 4 {
  1670. return fmt.Errorf("proto: HorizontalPodAutoscalerStatus: wiretype end group for non-group")
  1671. }
  1672. if fieldNum <= 0 {
  1673. return fmt.Errorf("proto: HorizontalPodAutoscalerStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  1674. }
  1675. switch fieldNum {
  1676. case 1:
  1677. if wireType != 0 {
  1678. return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
  1679. }
  1680. var v int64
  1681. for shift := uint(0); ; shift += 7 {
  1682. if shift >= 64 {
  1683. return ErrIntOverflowGenerated
  1684. }
  1685. if iNdEx >= l {
  1686. return io.ErrUnexpectedEOF
  1687. }
  1688. b := data[iNdEx]
  1689. iNdEx++
  1690. v |= (int64(b) & 0x7F) << shift
  1691. if b < 0x80 {
  1692. break
  1693. }
  1694. }
  1695. m.ObservedGeneration = &v
  1696. case 2:
  1697. if wireType != 2 {
  1698. return fmt.Errorf("proto: wrong wireType = %d for field LastScaleTime", wireType)
  1699. }
  1700. var msglen int
  1701. for shift := uint(0); ; shift += 7 {
  1702. if shift >= 64 {
  1703. return ErrIntOverflowGenerated
  1704. }
  1705. if iNdEx >= l {
  1706. return io.ErrUnexpectedEOF
  1707. }
  1708. b := data[iNdEx]
  1709. iNdEx++
  1710. msglen |= (int(b) & 0x7F) << shift
  1711. if b < 0x80 {
  1712. break
  1713. }
  1714. }
  1715. if msglen < 0 {
  1716. return ErrInvalidLengthGenerated
  1717. }
  1718. postIndex := iNdEx + msglen
  1719. if postIndex > l {
  1720. return io.ErrUnexpectedEOF
  1721. }
  1722. if m.LastScaleTime == nil {
  1723. m.LastScaleTime = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{}
  1724. }
  1725. if err := m.LastScaleTime.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1726. return err
  1727. }
  1728. iNdEx = postIndex
  1729. case 3:
  1730. if wireType != 0 {
  1731. return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType)
  1732. }
  1733. m.CurrentReplicas = 0
  1734. for shift := uint(0); ; shift += 7 {
  1735. if shift >= 64 {
  1736. return ErrIntOverflowGenerated
  1737. }
  1738. if iNdEx >= l {
  1739. return io.ErrUnexpectedEOF
  1740. }
  1741. b := data[iNdEx]
  1742. iNdEx++
  1743. m.CurrentReplicas |= (int32(b) & 0x7F) << shift
  1744. if b < 0x80 {
  1745. break
  1746. }
  1747. }
  1748. case 4:
  1749. if wireType != 0 {
  1750. return fmt.Errorf("proto: wrong wireType = %d for field DesiredReplicas", wireType)
  1751. }
  1752. m.DesiredReplicas = 0
  1753. for shift := uint(0); ; shift += 7 {
  1754. if shift >= 64 {
  1755. return ErrIntOverflowGenerated
  1756. }
  1757. if iNdEx >= l {
  1758. return io.ErrUnexpectedEOF
  1759. }
  1760. b := data[iNdEx]
  1761. iNdEx++
  1762. m.DesiredReplicas |= (int32(b) & 0x7F) << shift
  1763. if b < 0x80 {
  1764. break
  1765. }
  1766. }
  1767. case 5:
  1768. if wireType != 0 {
  1769. return fmt.Errorf("proto: wrong wireType = %d for field CurrentCPUUtilizationPercentage", wireType)
  1770. }
  1771. var v int32
  1772. for shift := uint(0); ; shift += 7 {
  1773. if shift >= 64 {
  1774. return ErrIntOverflowGenerated
  1775. }
  1776. if iNdEx >= l {
  1777. return io.ErrUnexpectedEOF
  1778. }
  1779. b := data[iNdEx]
  1780. iNdEx++
  1781. v |= (int32(b) & 0x7F) << shift
  1782. if b < 0x80 {
  1783. break
  1784. }
  1785. }
  1786. m.CurrentCPUUtilizationPercentage = &v
  1787. default:
  1788. iNdEx = preIndex
  1789. skippy, err := skipGenerated(data[iNdEx:])
  1790. if err != nil {
  1791. return err
  1792. }
  1793. if skippy < 0 {
  1794. return ErrInvalidLengthGenerated
  1795. }
  1796. if (iNdEx + skippy) > l {
  1797. return io.ErrUnexpectedEOF
  1798. }
  1799. iNdEx += skippy
  1800. }
  1801. }
  1802. if iNdEx > l {
  1803. return io.ErrUnexpectedEOF
  1804. }
  1805. return nil
  1806. }
  1807. func (m *MetricSpec) Unmarshal(data []byte) error {
  1808. l := len(data)
  1809. iNdEx := 0
  1810. for iNdEx < l {
  1811. preIndex := iNdEx
  1812. var wire uint64
  1813. for shift := uint(0); ; shift += 7 {
  1814. if shift >= 64 {
  1815. return ErrIntOverflowGenerated
  1816. }
  1817. if iNdEx >= l {
  1818. return io.ErrUnexpectedEOF
  1819. }
  1820. b := data[iNdEx]
  1821. iNdEx++
  1822. wire |= (uint64(b) & 0x7F) << shift
  1823. if b < 0x80 {
  1824. break
  1825. }
  1826. }
  1827. fieldNum := int32(wire >> 3)
  1828. wireType := int(wire & 0x7)
  1829. if wireType == 4 {
  1830. return fmt.Errorf("proto: MetricSpec: wiretype end group for non-group")
  1831. }
  1832. if fieldNum <= 0 {
  1833. return fmt.Errorf("proto: MetricSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  1834. }
  1835. switch fieldNum {
  1836. case 1:
  1837. if wireType != 2 {
  1838. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  1839. }
  1840. var stringLen uint64
  1841. for shift := uint(0); ; shift += 7 {
  1842. if shift >= 64 {
  1843. return ErrIntOverflowGenerated
  1844. }
  1845. if iNdEx >= l {
  1846. return io.ErrUnexpectedEOF
  1847. }
  1848. b := data[iNdEx]
  1849. iNdEx++
  1850. stringLen |= (uint64(b) & 0x7F) << shift
  1851. if b < 0x80 {
  1852. break
  1853. }
  1854. }
  1855. intStringLen := int(stringLen)
  1856. if intStringLen < 0 {
  1857. return ErrInvalidLengthGenerated
  1858. }
  1859. postIndex := iNdEx + intStringLen
  1860. if postIndex > l {
  1861. return io.ErrUnexpectedEOF
  1862. }
  1863. m.Type = MetricSourceType(data[iNdEx:postIndex])
  1864. iNdEx = postIndex
  1865. case 2:
  1866. if wireType != 2 {
  1867. return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType)
  1868. }
  1869. var msglen int
  1870. for shift := uint(0); ; shift += 7 {
  1871. if shift >= 64 {
  1872. return ErrIntOverflowGenerated
  1873. }
  1874. if iNdEx >= l {
  1875. return io.ErrUnexpectedEOF
  1876. }
  1877. b := data[iNdEx]
  1878. iNdEx++
  1879. msglen |= (int(b) & 0x7F) << shift
  1880. if b < 0x80 {
  1881. break
  1882. }
  1883. }
  1884. if msglen < 0 {
  1885. return ErrInvalidLengthGenerated
  1886. }
  1887. postIndex := iNdEx + msglen
  1888. if postIndex > l {
  1889. return io.ErrUnexpectedEOF
  1890. }
  1891. if m.Object == nil {
  1892. m.Object = &ObjectMetricSource{}
  1893. }
  1894. if err := m.Object.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1895. return err
  1896. }
  1897. iNdEx = postIndex
  1898. case 3:
  1899. if wireType != 2 {
  1900. return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType)
  1901. }
  1902. var msglen int
  1903. for shift := uint(0); ; shift += 7 {
  1904. if shift >= 64 {
  1905. return ErrIntOverflowGenerated
  1906. }
  1907. if iNdEx >= l {
  1908. return io.ErrUnexpectedEOF
  1909. }
  1910. b := data[iNdEx]
  1911. iNdEx++
  1912. msglen |= (int(b) & 0x7F) << shift
  1913. if b < 0x80 {
  1914. break
  1915. }
  1916. }
  1917. if msglen < 0 {
  1918. return ErrInvalidLengthGenerated
  1919. }
  1920. postIndex := iNdEx + msglen
  1921. if postIndex > l {
  1922. return io.ErrUnexpectedEOF
  1923. }
  1924. if m.Pods == nil {
  1925. m.Pods = &PodsMetricSource{}
  1926. }
  1927. if err := m.Pods.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1928. return err
  1929. }
  1930. iNdEx = postIndex
  1931. case 4:
  1932. if wireType != 2 {
  1933. return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
  1934. }
  1935. var msglen int
  1936. for shift := uint(0); ; shift += 7 {
  1937. if shift >= 64 {
  1938. return ErrIntOverflowGenerated
  1939. }
  1940. if iNdEx >= l {
  1941. return io.ErrUnexpectedEOF
  1942. }
  1943. b := data[iNdEx]
  1944. iNdEx++
  1945. msglen |= (int(b) & 0x7F) << shift
  1946. if b < 0x80 {
  1947. break
  1948. }
  1949. }
  1950. if msglen < 0 {
  1951. return ErrInvalidLengthGenerated
  1952. }
  1953. postIndex := iNdEx + msglen
  1954. if postIndex > l {
  1955. return io.ErrUnexpectedEOF
  1956. }
  1957. if m.Resource == nil {
  1958. m.Resource = &ResourceMetricSource{}
  1959. }
  1960. if err := m.Resource.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1961. return err
  1962. }
  1963. iNdEx = postIndex
  1964. default:
  1965. iNdEx = preIndex
  1966. skippy, err := skipGenerated(data[iNdEx:])
  1967. if err != nil {
  1968. return err
  1969. }
  1970. if skippy < 0 {
  1971. return ErrInvalidLengthGenerated
  1972. }
  1973. if (iNdEx + skippy) > l {
  1974. return io.ErrUnexpectedEOF
  1975. }
  1976. iNdEx += skippy
  1977. }
  1978. }
  1979. if iNdEx > l {
  1980. return io.ErrUnexpectedEOF
  1981. }
  1982. return nil
  1983. }
  1984. func (m *MetricStatus) Unmarshal(data []byte) error {
  1985. l := len(data)
  1986. iNdEx := 0
  1987. for iNdEx < l {
  1988. preIndex := iNdEx
  1989. var wire uint64
  1990. for shift := uint(0); ; shift += 7 {
  1991. if shift >= 64 {
  1992. return ErrIntOverflowGenerated
  1993. }
  1994. if iNdEx >= l {
  1995. return io.ErrUnexpectedEOF
  1996. }
  1997. b := data[iNdEx]
  1998. iNdEx++
  1999. wire |= (uint64(b) & 0x7F) << shift
  2000. if b < 0x80 {
  2001. break
  2002. }
  2003. }
  2004. fieldNum := int32(wire >> 3)
  2005. wireType := int(wire & 0x7)
  2006. if wireType == 4 {
  2007. return fmt.Errorf("proto: MetricStatus: wiretype end group for non-group")
  2008. }
  2009. if fieldNum <= 0 {
  2010. return fmt.Errorf("proto: MetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  2011. }
  2012. switch fieldNum {
  2013. case 1:
  2014. if wireType != 2 {
  2015. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2016. }
  2017. var stringLen uint64
  2018. for shift := uint(0); ; shift += 7 {
  2019. if shift >= 64 {
  2020. return ErrIntOverflowGenerated
  2021. }
  2022. if iNdEx >= l {
  2023. return io.ErrUnexpectedEOF
  2024. }
  2025. b := data[iNdEx]
  2026. iNdEx++
  2027. stringLen |= (uint64(b) & 0x7F) << shift
  2028. if b < 0x80 {
  2029. break
  2030. }
  2031. }
  2032. intStringLen := int(stringLen)
  2033. if intStringLen < 0 {
  2034. return ErrInvalidLengthGenerated
  2035. }
  2036. postIndex := iNdEx + intStringLen
  2037. if postIndex > l {
  2038. return io.ErrUnexpectedEOF
  2039. }
  2040. m.Type = MetricSourceType(data[iNdEx:postIndex])
  2041. iNdEx = postIndex
  2042. case 2:
  2043. if wireType != 2 {
  2044. return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType)
  2045. }
  2046. var msglen int
  2047. for shift := uint(0); ; shift += 7 {
  2048. if shift >= 64 {
  2049. return ErrIntOverflowGenerated
  2050. }
  2051. if iNdEx >= l {
  2052. return io.ErrUnexpectedEOF
  2053. }
  2054. b := data[iNdEx]
  2055. iNdEx++
  2056. msglen |= (int(b) & 0x7F) << shift
  2057. if b < 0x80 {
  2058. break
  2059. }
  2060. }
  2061. if msglen < 0 {
  2062. return ErrInvalidLengthGenerated
  2063. }
  2064. postIndex := iNdEx + msglen
  2065. if postIndex > l {
  2066. return io.ErrUnexpectedEOF
  2067. }
  2068. if m.Object == nil {
  2069. m.Object = &ObjectMetricStatus{}
  2070. }
  2071. if err := m.Object.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2072. return err
  2073. }
  2074. iNdEx = postIndex
  2075. case 3:
  2076. if wireType != 2 {
  2077. return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType)
  2078. }
  2079. var msglen int
  2080. for shift := uint(0); ; shift += 7 {
  2081. if shift >= 64 {
  2082. return ErrIntOverflowGenerated
  2083. }
  2084. if iNdEx >= l {
  2085. return io.ErrUnexpectedEOF
  2086. }
  2087. b := data[iNdEx]
  2088. iNdEx++
  2089. msglen |= (int(b) & 0x7F) << shift
  2090. if b < 0x80 {
  2091. break
  2092. }
  2093. }
  2094. if msglen < 0 {
  2095. return ErrInvalidLengthGenerated
  2096. }
  2097. postIndex := iNdEx + msglen
  2098. if postIndex > l {
  2099. return io.ErrUnexpectedEOF
  2100. }
  2101. if m.Pods == nil {
  2102. m.Pods = &PodsMetricStatus{}
  2103. }
  2104. if err := m.Pods.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2105. return err
  2106. }
  2107. iNdEx = postIndex
  2108. case 4:
  2109. if wireType != 2 {
  2110. return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
  2111. }
  2112. var msglen int
  2113. for shift := uint(0); ; shift += 7 {
  2114. if shift >= 64 {
  2115. return ErrIntOverflowGenerated
  2116. }
  2117. if iNdEx >= l {
  2118. return io.ErrUnexpectedEOF
  2119. }
  2120. b := data[iNdEx]
  2121. iNdEx++
  2122. msglen |= (int(b) & 0x7F) << shift
  2123. if b < 0x80 {
  2124. break
  2125. }
  2126. }
  2127. if msglen < 0 {
  2128. return ErrInvalidLengthGenerated
  2129. }
  2130. postIndex := iNdEx + msglen
  2131. if postIndex > l {
  2132. return io.ErrUnexpectedEOF
  2133. }
  2134. if m.Resource == nil {
  2135. m.Resource = &ResourceMetricStatus{}
  2136. }
  2137. if err := m.Resource.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2138. return err
  2139. }
  2140. iNdEx = postIndex
  2141. default:
  2142. iNdEx = preIndex
  2143. skippy, err := skipGenerated(data[iNdEx:])
  2144. if err != nil {
  2145. return err
  2146. }
  2147. if skippy < 0 {
  2148. return ErrInvalidLengthGenerated
  2149. }
  2150. if (iNdEx + skippy) > l {
  2151. return io.ErrUnexpectedEOF
  2152. }
  2153. iNdEx += skippy
  2154. }
  2155. }
  2156. if iNdEx > l {
  2157. return io.ErrUnexpectedEOF
  2158. }
  2159. return nil
  2160. }
  2161. func (m *ObjectMetricSource) Unmarshal(data []byte) error {
  2162. l := len(data)
  2163. iNdEx := 0
  2164. for iNdEx < l {
  2165. preIndex := iNdEx
  2166. var wire uint64
  2167. for shift := uint(0); ; shift += 7 {
  2168. if shift >= 64 {
  2169. return ErrIntOverflowGenerated
  2170. }
  2171. if iNdEx >= l {
  2172. return io.ErrUnexpectedEOF
  2173. }
  2174. b := data[iNdEx]
  2175. iNdEx++
  2176. wire |= (uint64(b) & 0x7F) << shift
  2177. if b < 0x80 {
  2178. break
  2179. }
  2180. }
  2181. fieldNum := int32(wire >> 3)
  2182. wireType := int(wire & 0x7)
  2183. if wireType == 4 {
  2184. return fmt.Errorf("proto: ObjectMetricSource: wiretype end group for non-group")
  2185. }
  2186. if fieldNum <= 0 {
  2187. return fmt.Errorf("proto: ObjectMetricSource: illegal tag %d (wire type %d)", fieldNum, wire)
  2188. }
  2189. switch fieldNum {
  2190. case 1:
  2191. if wireType != 2 {
  2192. return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
  2193. }
  2194. var msglen int
  2195. for shift := uint(0); ; shift += 7 {
  2196. if shift >= 64 {
  2197. return ErrIntOverflowGenerated
  2198. }
  2199. if iNdEx >= l {
  2200. return io.ErrUnexpectedEOF
  2201. }
  2202. b := data[iNdEx]
  2203. iNdEx++
  2204. msglen |= (int(b) & 0x7F) << shift
  2205. if b < 0x80 {
  2206. break
  2207. }
  2208. }
  2209. if msglen < 0 {
  2210. return ErrInvalidLengthGenerated
  2211. }
  2212. postIndex := iNdEx + msglen
  2213. if postIndex > l {
  2214. return io.ErrUnexpectedEOF
  2215. }
  2216. if err := m.Target.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2217. return err
  2218. }
  2219. iNdEx = postIndex
  2220. case 2:
  2221. if wireType != 2 {
  2222. return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
  2223. }
  2224. var stringLen uint64
  2225. for shift := uint(0); ; shift += 7 {
  2226. if shift >= 64 {
  2227. return ErrIntOverflowGenerated
  2228. }
  2229. if iNdEx >= l {
  2230. return io.ErrUnexpectedEOF
  2231. }
  2232. b := data[iNdEx]
  2233. iNdEx++
  2234. stringLen |= (uint64(b) & 0x7F) << shift
  2235. if b < 0x80 {
  2236. break
  2237. }
  2238. }
  2239. intStringLen := int(stringLen)
  2240. if intStringLen < 0 {
  2241. return ErrInvalidLengthGenerated
  2242. }
  2243. postIndex := iNdEx + intStringLen
  2244. if postIndex > l {
  2245. return io.ErrUnexpectedEOF
  2246. }
  2247. m.MetricName = string(data[iNdEx:postIndex])
  2248. iNdEx = postIndex
  2249. case 3:
  2250. if wireType != 2 {
  2251. return fmt.Errorf("proto: wrong wireType = %d for field TargetValue", wireType)
  2252. }
  2253. var msglen int
  2254. for shift := uint(0); ; shift += 7 {
  2255. if shift >= 64 {
  2256. return ErrIntOverflowGenerated
  2257. }
  2258. if iNdEx >= l {
  2259. return io.ErrUnexpectedEOF
  2260. }
  2261. b := data[iNdEx]
  2262. iNdEx++
  2263. msglen |= (int(b) & 0x7F) << shift
  2264. if b < 0x80 {
  2265. break
  2266. }
  2267. }
  2268. if msglen < 0 {
  2269. return ErrInvalidLengthGenerated
  2270. }
  2271. postIndex := iNdEx + msglen
  2272. if postIndex > l {
  2273. return io.ErrUnexpectedEOF
  2274. }
  2275. if err := m.TargetValue.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2276. return err
  2277. }
  2278. iNdEx = postIndex
  2279. default:
  2280. iNdEx = preIndex
  2281. skippy, err := skipGenerated(data[iNdEx:])
  2282. if err != nil {
  2283. return err
  2284. }
  2285. if skippy < 0 {
  2286. return ErrInvalidLengthGenerated
  2287. }
  2288. if (iNdEx + skippy) > l {
  2289. return io.ErrUnexpectedEOF
  2290. }
  2291. iNdEx += skippy
  2292. }
  2293. }
  2294. if iNdEx > l {
  2295. return io.ErrUnexpectedEOF
  2296. }
  2297. return nil
  2298. }
  2299. func (m *ObjectMetricStatus) Unmarshal(data []byte) error {
  2300. l := len(data)
  2301. iNdEx := 0
  2302. for iNdEx < l {
  2303. preIndex := iNdEx
  2304. var wire uint64
  2305. for shift := uint(0); ; shift += 7 {
  2306. if shift >= 64 {
  2307. return ErrIntOverflowGenerated
  2308. }
  2309. if iNdEx >= l {
  2310. return io.ErrUnexpectedEOF
  2311. }
  2312. b := data[iNdEx]
  2313. iNdEx++
  2314. wire |= (uint64(b) & 0x7F) << shift
  2315. if b < 0x80 {
  2316. break
  2317. }
  2318. }
  2319. fieldNum := int32(wire >> 3)
  2320. wireType := int(wire & 0x7)
  2321. if wireType == 4 {
  2322. return fmt.Errorf("proto: ObjectMetricStatus: wiretype end group for non-group")
  2323. }
  2324. if fieldNum <= 0 {
  2325. return fmt.Errorf("proto: ObjectMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  2326. }
  2327. switch fieldNum {
  2328. case 1:
  2329. if wireType != 2 {
  2330. return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
  2331. }
  2332. var msglen int
  2333. for shift := uint(0); ; shift += 7 {
  2334. if shift >= 64 {
  2335. return ErrIntOverflowGenerated
  2336. }
  2337. if iNdEx >= l {
  2338. return io.ErrUnexpectedEOF
  2339. }
  2340. b := data[iNdEx]
  2341. iNdEx++
  2342. msglen |= (int(b) & 0x7F) << shift
  2343. if b < 0x80 {
  2344. break
  2345. }
  2346. }
  2347. if msglen < 0 {
  2348. return ErrInvalidLengthGenerated
  2349. }
  2350. postIndex := iNdEx + msglen
  2351. if postIndex > l {
  2352. return io.ErrUnexpectedEOF
  2353. }
  2354. if err := m.Target.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2355. return err
  2356. }
  2357. iNdEx = postIndex
  2358. case 2:
  2359. if wireType != 2 {
  2360. return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
  2361. }
  2362. var stringLen uint64
  2363. for shift := uint(0); ; shift += 7 {
  2364. if shift >= 64 {
  2365. return ErrIntOverflowGenerated
  2366. }
  2367. if iNdEx >= l {
  2368. return io.ErrUnexpectedEOF
  2369. }
  2370. b := data[iNdEx]
  2371. iNdEx++
  2372. stringLen |= (uint64(b) & 0x7F) << shift
  2373. if b < 0x80 {
  2374. break
  2375. }
  2376. }
  2377. intStringLen := int(stringLen)
  2378. if intStringLen < 0 {
  2379. return ErrInvalidLengthGenerated
  2380. }
  2381. postIndex := iNdEx + intStringLen
  2382. if postIndex > l {
  2383. return io.ErrUnexpectedEOF
  2384. }
  2385. m.MetricName = string(data[iNdEx:postIndex])
  2386. iNdEx = postIndex
  2387. case 3:
  2388. if wireType != 2 {
  2389. return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType)
  2390. }
  2391. var msglen int
  2392. for shift := uint(0); ; shift += 7 {
  2393. if shift >= 64 {
  2394. return ErrIntOverflowGenerated
  2395. }
  2396. if iNdEx >= l {
  2397. return io.ErrUnexpectedEOF
  2398. }
  2399. b := data[iNdEx]
  2400. iNdEx++
  2401. msglen |= (int(b) & 0x7F) << shift
  2402. if b < 0x80 {
  2403. break
  2404. }
  2405. }
  2406. if msglen < 0 {
  2407. return ErrInvalidLengthGenerated
  2408. }
  2409. postIndex := iNdEx + msglen
  2410. if postIndex > l {
  2411. return io.ErrUnexpectedEOF
  2412. }
  2413. if err := m.CurrentValue.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2414. return err
  2415. }
  2416. iNdEx = postIndex
  2417. default:
  2418. iNdEx = preIndex
  2419. skippy, err := skipGenerated(data[iNdEx:])
  2420. if err != nil {
  2421. return err
  2422. }
  2423. if skippy < 0 {
  2424. return ErrInvalidLengthGenerated
  2425. }
  2426. if (iNdEx + skippy) > l {
  2427. return io.ErrUnexpectedEOF
  2428. }
  2429. iNdEx += skippy
  2430. }
  2431. }
  2432. if iNdEx > l {
  2433. return io.ErrUnexpectedEOF
  2434. }
  2435. return nil
  2436. }
  2437. func (m *PodsMetricSource) Unmarshal(data []byte) error {
  2438. l := len(data)
  2439. iNdEx := 0
  2440. for iNdEx < l {
  2441. preIndex := iNdEx
  2442. var wire uint64
  2443. for shift := uint(0); ; shift += 7 {
  2444. if shift >= 64 {
  2445. return ErrIntOverflowGenerated
  2446. }
  2447. if iNdEx >= l {
  2448. return io.ErrUnexpectedEOF
  2449. }
  2450. b := data[iNdEx]
  2451. iNdEx++
  2452. wire |= (uint64(b) & 0x7F) << shift
  2453. if b < 0x80 {
  2454. break
  2455. }
  2456. }
  2457. fieldNum := int32(wire >> 3)
  2458. wireType := int(wire & 0x7)
  2459. if wireType == 4 {
  2460. return fmt.Errorf("proto: PodsMetricSource: wiretype end group for non-group")
  2461. }
  2462. if fieldNum <= 0 {
  2463. return fmt.Errorf("proto: PodsMetricSource: illegal tag %d (wire type %d)", fieldNum, wire)
  2464. }
  2465. switch fieldNum {
  2466. case 1:
  2467. if wireType != 2 {
  2468. return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
  2469. }
  2470. var stringLen uint64
  2471. for shift := uint(0); ; shift += 7 {
  2472. if shift >= 64 {
  2473. return ErrIntOverflowGenerated
  2474. }
  2475. if iNdEx >= l {
  2476. return io.ErrUnexpectedEOF
  2477. }
  2478. b := data[iNdEx]
  2479. iNdEx++
  2480. stringLen |= (uint64(b) & 0x7F) << shift
  2481. if b < 0x80 {
  2482. break
  2483. }
  2484. }
  2485. intStringLen := int(stringLen)
  2486. if intStringLen < 0 {
  2487. return ErrInvalidLengthGenerated
  2488. }
  2489. postIndex := iNdEx + intStringLen
  2490. if postIndex > l {
  2491. return io.ErrUnexpectedEOF
  2492. }
  2493. m.MetricName = string(data[iNdEx:postIndex])
  2494. iNdEx = postIndex
  2495. case 2:
  2496. if wireType != 2 {
  2497. return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType)
  2498. }
  2499. var msglen int
  2500. for shift := uint(0); ; shift += 7 {
  2501. if shift >= 64 {
  2502. return ErrIntOverflowGenerated
  2503. }
  2504. if iNdEx >= l {
  2505. return io.ErrUnexpectedEOF
  2506. }
  2507. b := data[iNdEx]
  2508. iNdEx++
  2509. msglen |= (int(b) & 0x7F) << shift
  2510. if b < 0x80 {
  2511. break
  2512. }
  2513. }
  2514. if msglen < 0 {
  2515. return ErrInvalidLengthGenerated
  2516. }
  2517. postIndex := iNdEx + msglen
  2518. if postIndex > l {
  2519. return io.ErrUnexpectedEOF
  2520. }
  2521. if err := m.TargetAverageValue.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2522. return err
  2523. }
  2524. iNdEx = postIndex
  2525. default:
  2526. iNdEx = preIndex
  2527. skippy, err := skipGenerated(data[iNdEx:])
  2528. if err != nil {
  2529. return err
  2530. }
  2531. if skippy < 0 {
  2532. return ErrInvalidLengthGenerated
  2533. }
  2534. if (iNdEx + skippy) > l {
  2535. return io.ErrUnexpectedEOF
  2536. }
  2537. iNdEx += skippy
  2538. }
  2539. }
  2540. if iNdEx > l {
  2541. return io.ErrUnexpectedEOF
  2542. }
  2543. return nil
  2544. }
  2545. func (m *PodsMetricStatus) Unmarshal(data []byte) error {
  2546. l := len(data)
  2547. iNdEx := 0
  2548. for iNdEx < l {
  2549. preIndex := iNdEx
  2550. var wire uint64
  2551. for shift := uint(0); ; shift += 7 {
  2552. if shift >= 64 {
  2553. return ErrIntOverflowGenerated
  2554. }
  2555. if iNdEx >= l {
  2556. return io.ErrUnexpectedEOF
  2557. }
  2558. b := data[iNdEx]
  2559. iNdEx++
  2560. wire |= (uint64(b) & 0x7F) << shift
  2561. if b < 0x80 {
  2562. break
  2563. }
  2564. }
  2565. fieldNum := int32(wire >> 3)
  2566. wireType := int(wire & 0x7)
  2567. if wireType == 4 {
  2568. return fmt.Errorf("proto: PodsMetricStatus: wiretype end group for non-group")
  2569. }
  2570. if fieldNum <= 0 {
  2571. return fmt.Errorf("proto: PodsMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  2572. }
  2573. switch fieldNum {
  2574. case 1:
  2575. if wireType != 2 {
  2576. return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
  2577. }
  2578. var stringLen uint64
  2579. for shift := uint(0); ; shift += 7 {
  2580. if shift >= 64 {
  2581. return ErrIntOverflowGenerated
  2582. }
  2583. if iNdEx >= l {
  2584. return io.ErrUnexpectedEOF
  2585. }
  2586. b := data[iNdEx]
  2587. iNdEx++
  2588. stringLen |= (uint64(b) & 0x7F) << shift
  2589. if b < 0x80 {
  2590. break
  2591. }
  2592. }
  2593. intStringLen := int(stringLen)
  2594. if intStringLen < 0 {
  2595. return ErrInvalidLengthGenerated
  2596. }
  2597. postIndex := iNdEx + intStringLen
  2598. if postIndex > l {
  2599. return io.ErrUnexpectedEOF
  2600. }
  2601. m.MetricName = string(data[iNdEx:postIndex])
  2602. iNdEx = postIndex
  2603. case 2:
  2604. if wireType != 2 {
  2605. return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType)
  2606. }
  2607. var msglen int
  2608. for shift := uint(0); ; shift += 7 {
  2609. if shift >= 64 {
  2610. return ErrIntOverflowGenerated
  2611. }
  2612. if iNdEx >= l {
  2613. return io.ErrUnexpectedEOF
  2614. }
  2615. b := data[iNdEx]
  2616. iNdEx++
  2617. msglen |= (int(b) & 0x7F) << shift
  2618. if b < 0x80 {
  2619. break
  2620. }
  2621. }
  2622. if msglen < 0 {
  2623. return ErrInvalidLengthGenerated
  2624. }
  2625. postIndex := iNdEx + msglen
  2626. if postIndex > l {
  2627. return io.ErrUnexpectedEOF
  2628. }
  2629. if err := m.CurrentAverageValue.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2630. return err
  2631. }
  2632. iNdEx = postIndex
  2633. default:
  2634. iNdEx = preIndex
  2635. skippy, err := skipGenerated(data[iNdEx:])
  2636. if err != nil {
  2637. return err
  2638. }
  2639. if skippy < 0 {
  2640. return ErrInvalidLengthGenerated
  2641. }
  2642. if (iNdEx + skippy) > l {
  2643. return io.ErrUnexpectedEOF
  2644. }
  2645. iNdEx += skippy
  2646. }
  2647. }
  2648. if iNdEx > l {
  2649. return io.ErrUnexpectedEOF
  2650. }
  2651. return nil
  2652. }
  2653. func (m *ResourceMetricSource) Unmarshal(data []byte) error {
  2654. l := len(data)
  2655. iNdEx := 0
  2656. for iNdEx < l {
  2657. preIndex := iNdEx
  2658. var wire uint64
  2659. for shift := uint(0); ; shift += 7 {
  2660. if shift >= 64 {
  2661. return ErrIntOverflowGenerated
  2662. }
  2663. if iNdEx >= l {
  2664. return io.ErrUnexpectedEOF
  2665. }
  2666. b := data[iNdEx]
  2667. iNdEx++
  2668. wire |= (uint64(b) & 0x7F) << shift
  2669. if b < 0x80 {
  2670. break
  2671. }
  2672. }
  2673. fieldNum := int32(wire >> 3)
  2674. wireType := int(wire & 0x7)
  2675. if wireType == 4 {
  2676. return fmt.Errorf("proto: ResourceMetricSource: wiretype end group for non-group")
  2677. }
  2678. if fieldNum <= 0 {
  2679. return fmt.Errorf("proto: ResourceMetricSource: illegal tag %d (wire type %d)", fieldNum, wire)
  2680. }
  2681. switch fieldNum {
  2682. case 1:
  2683. if wireType != 2 {
  2684. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2685. }
  2686. var stringLen uint64
  2687. for shift := uint(0); ; shift += 7 {
  2688. if shift >= 64 {
  2689. return ErrIntOverflowGenerated
  2690. }
  2691. if iNdEx >= l {
  2692. return io.ErrUnexpectedEOF
  2693. }
  2694. b := data[iNdEx]
  2695. iNdEx++
  2696. stringLen |= (uint64(b) & 0x7F) << shift
  2697. if b < 0x80 {
  2698. break
  2699. }
  2700. }
  2701. intStringLen := int(stringLen)
  2702. if intStringLen < 0 {
  2703. return ErrInvalidLengthGenerated
  2704. }
  2705. postIndex := iNdEx + intStringLen
  2706. if postIndex > l {
  2707. return io.ErrUnexpectedEOF
  2708. }
  2709. m.Name = k8s_io_kubernetes_pkg_api_v1.ResourceName(data[iNdEx:postIndex])
  2710. iNdEx = postIndex
  2711. case 2:
  2712. if wireType != 0 {
  2713. return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageUtilization", wireType)
  2714. }
  2715. var v int32
  2716. for shift := uint(0); ; shift += 7 {
  2717. if shift >= 64 {
  2718. return ErrIntOverflowGenerated
  2719. }
  2720. if iNdEx >= l {
  2721. return io.ErrUnexpectedEOF
  2722. }
  2723. b := data[iNdEx]
  2724. iNdEx++
  2725. v |= (int32(b) & 0x7F) << shift
  2726. if b < 0x80 {
  2727. break
  2728. }
  2729. }
  2730. m.TargetAverageUtilization = &v
  2731. case 3:
  2732. if wireType != 2 {
  2733. return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType)
  2734. }
  2735. var msglen int
  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. msglen |= (int(b) & 0x7F) << shift
  2746. if b < 0x80 {
  2747. break
  2748. }
  2749. }
  2750. if msglen < 0 {
  2751. return ErrInvalidLengthGenerated
  2752. }
  2753. postIndex := iNdEx + msglen
  2754. if postIndex > l {
  2755. return io.ErrUnexpectedEOF
  2756. }
  2757. if m.TargetAverageValue == nil {
  2758. m.TargetAverageValue = &k8s_io_apimachinery_pkg_api_resource.Quantity{}
  2759. }
  2760. if err := m.TargetAverageValue.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2761. return err
  2762. }
  2763. iNdEx = postIndex
  2764. default:
  2765. iNdEx = preIndex
  2766. skippy, err := skipGenerated(data[iNdEx:])
  2767. if err != nil {
  2768. return err
  2769. }
  2770. if skippy < 0 {
  2771. return ErrInvalidLengthGenerated
  2772. }
  2773. if (iNdEx + skippy) > l {
  2774. return io.ErrUnexpectedEOF
  2775. }
  2776. iNdEx += skippy
  2777. }
  2778. }
  2779. if iNdEx > l {
  2780. return io.ErrUnexpectedEOF
  2781. }
  2782. return nil
  2783. }
  2784. func (m *ResourceMetricStatus) Unmarshal(data []byte) error {
  2785. l := len(data)
  2786. iNdEx := 0
  2787. for iNdEx < l {
  2788. preIndex := iNdEx
  2789. var wire uint64
  2790. for shift := uint(0); ; shift += 7 {
  2791. if shift >= 64 {
  2792. return ErrIntOverflowGenerated
  2793. }
  2794. if iNdEx >= l {
  2795. return io.ErrUnexpectedEOF
  2796. }
  2797. b := data[iNdEx]
  2798. iNdEx++
  2799. wire |= (uint64(b) & 0x7F) << shift
  2800. if b < 0x80 {
  2801. break
  2802. }
  2803. }
  2804. fieldNum := int32(wire >> 3)
  2805. wireType := int(wire & 0x7)
  2806. if wireType == 4 {
  2807. return fmt.Errorf("proto: ResourceMetricStatus: wiretype end group for non-group")
  2808. }
  2809. if fieldNum <= 0 {
  2810. return fmt.Errorf("proto: ResourceMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  2811. }
  2812. switch fieldNum {
  2813. case 1:
  2814. if wireType != 2 {
  2815. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2816. }
  2817. var stringLen uint64
  2818. for shift := uint(0); ; shift += 7 {
  2819. if shift >= 64 {
  2820. return ErrIntOverflowGenerated
  2821. }
  2822. if iNdEx >= l {
  2823. return io.ErrUnexpectedEOF
  2824. }
  2825. b := data[iNdEx]
  2826. iNdEx++
  2827. stringLen |= (uint64(b) & 0x7F) << shift
  2828. if b < 0x80 {
  2829. break
  2830. }
  2831. }
  2832. intStringLen := int(stringLen)
  2833. if intStringLen < 0 {
  2834. return ErrInvalidLengthGenerated
  2835. }
  2836. postIndex := iNdEx + intStringLen
  2837. if postIndex > l {
  2838. return io.ErrUnexpectedEOF
  2839. }
  2840. m.Name = k8s_io_kubernetes_pkg_api_v1.ResourceName(data[iNdEx:postIndex])
  2841. iNdEx = postIndex
  2842. case 2:
  2843. if wireType != 0 {
  2844. return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageUtilization", wireType)
  2845. }
  2846. var v int32
  2847. for shift := uint(0); ; shift += 7 {
  2848. if shift >= 64 {
  2849. return ErrIntOverflowGenerated
  2850. }
  2851. if iNdEx >= l {
  2852. return io.ErrUnexpectedEOF
  2853. }
  2854. b := data[iNdEx]
  2855. iNdEx++
  2856. v |= (int32(b) & 0x7F) << shift
  2857. if b < 0x80 {
  2858. break
  2859. }
  2860. }
  2861. m.CurrentAverageUtilization = &v
  2862. case 3:
  2863. if wireType != 2 {
  2864. return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType)
  2865. }
  2866. var msglen int
  2867. for shift := uint(0); ; shift += 7 {
  2868. if shift >= 64 {
  2869. return ErrIntOverflowGenerated
  2870. }
  2871. if iNdEx >= l {
  2872. return io.ErrUnexpectedEOF
  2873. }
  2874. b := data[iNdEx]
  2875. iNdEx++
  2876. msglen |= (int(b) & 0x7F) << shift
  2877. if b < 0x80 {
  2878. break
  2879. }
  2880. }
  2881. if msglen < 0 {
  2882. return ErrInvalidLengthGenerated
  2883. }
  2884. postIndex := iNdEx + msglen
  2885. if postIndex > l {
  2886. return io.ErrUnexpectedEOF
  2887. }
  2888. if err := m.CurrentAverageValue.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 *Scale) 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: Scale: wiretype end group for non-group")
  2936. }
  2937. if fieldNum <= 0 {
  2938. return fmt.Errorf("proto: Scale: 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 ObjectMeta", wireType)
  2944. }
  2945. var msglen int
  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. msglen |= (int(b) & 0x7F) << shift
  2956. if b < 0x80 {
  2957. break
  2958. }
  2959. }
  2960. if msglen < 0 {
  2961. return ErrInvalidLengthGenerated
  2962. }
  2963. postIndex := iNdEx + msglen
  2964. if postIndex > l {
  2965. return io.ErrUnexpectedEOF
  2966. }
  2967. if err := m.ObjectMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2968. return err
  2969. }
  2970. iNdEx = postIndex
  2971. case 2:
  2972. if wireType != 2 {
  2973. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  2974. }
  2975. var msglen int
  2976. for shift := uint(0); ; shift += 7 {
  2977. if shift >= 64 {
  2978. return ErrIntOverflowGenerated
  2979. }
  2980. if iNdEx >= l {
  2981. return io.ErrUnexpectedEOF
  2982. }
  2983. b := data[iNdEx]
  2984. iNdEx++
  2985. msglen |= (int(b) & 0x7F) << shift
  2986. if b < 0x80 {
  2987. break
  2988. }
  2989. }
  2990. if msglen < 0 {
  2991. return ErrInvalidLengthGenerated
  2992. }
  2993. postIndex := iNdEx + msglen
  2994. if postIndex > l {
  2995. return io.ErrUnexpectedEOF
  2996. }
  2997. if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2998. return err
  2999. }
  3000. iNdEx = postIndex
  3001. case 3:
  3002. if wireType != 2 {
  3003. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  3004. }
  3005. var msglen int
  3006. for shift := uint(0); ; shift += 7 {
  3007. if shift >= 64 {
  3008. return ErrIntOverflowGenerated
  3009. }
  3010. if iNdEx >= l {
  3011. return io.ErrUnexpectedEOF
  3012. }
  3013. b := data[iNdEx]
  3014. iNdEx++
  3015. msglen |= (int(b) & 0x7F) << shift
  3016. if b < 0x80 {
  3017. break
  3018. }
  3019. }
  3020. if msglen < 0 {
  3021. return ErrInvalidLengthGenerated
  3022. }
  3023. postIndex := iNdEx + msglen
  3024. if postIndex > l {
  3025. return io.ErrUnexpectedEOF
  3026. }
  3027. if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil {
  3028. return err
  3029. }
  3030. iNdEx = postIndex
  3031. default:
  3032. iNdEx = preIndex
  3033. skippy, err := skipGenerated(data[iNdEx:])
  3034. if err != nil {
  3035. return err
  3036. }
  3037. if skippy < 0 {
  3038. return ErrInvalidLengthGenerated
  3039. }
  3040. if (iNdEx + skippy) > l {
  3041. return io.ErrUnexpectedEOF
  3042. }
  3043. iNdEx += skippy
  3044. }
  3045. }
  3046. if iNdEx > l {
  3047. return io.ErrUnexpectedEOF
  3048. }
  3049. return nil
  3050. }
  3051. func (m *ScaleSpec) Unmarshal(data []byte) error {
  3052. l := len(data)
  3053. iNdEx := 0
  3054. for iNdEx < l {
  3055. preIndex := iNdEx
  3056. var wire uint64
  3057. for shift := uint(0); ; shift += 7 {
  3058. if shift >= 64 {
  3059. return ErrIntOverflowGenerated
  3060. }
  3061. if iNdEx >= l {
  3062. return io.ErrUnexpectedEOF
  3063. }
  3064. b := data[iNdEx]
  3065. iNdEx++
  3066. wire |= (uint64(b) & 0x7F) << shift
  3067. if b < 0x80 {
  3068. break
  3069. }
  3070. }
  3071. fieldNum := int32(wire >> 3)
  3072. wireType := int(wire & 0x7)
  3073. if wireType == 4 {
  3074. return fmt.Errorf("proto: ScaleSpec: wiretype end group for non-group")
  3075. }
  3076. if fieldNum <= 0 {
  3077. return fmt.Errorf("proto: ScaleSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  3078. }
  3079. switch fieldNum {
  3080. case 1:
  3081. if wireType != 0 {
  3082. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  3083. }
  3084. m.Replicas = 0
  3085. for shift := uint(0); ; shift += 7 {
  3086. if shift >= 64 {
  3087. return ErrIntOverflowGenerated
  3088. }
  3089. if iNdEx >= l {
  3090. return io.ErrUnexpectedEOF
  3091. }
  3092. b := data[iNdEx]
  3093. iNdEx++
  3094. m.Replicas |= (int32(b) & 0x7F) << shift
  3095. if b < 0x80 {
  3096. break
  3097. }
  3098. }
  3099. default:
  3100. iNdEx = preIndex
  3101. skippy, err := skipGenerated(data[iNdEx:])
  3102. if err != nil {
  3103. return err
  3104. }
  3105. if skippy < 0 {
  3106. return ErrInvalidLengthGenerated
  3107. }
  3108. if (iNdEx + skippy) > l {
  3109. return io.ErrUnexpectedEOF
  3110. }
  3111. iNdEx += skippy
  3112. }
  3113. }
  3114. if iNdEx > l {
  3115. return io.ErrUnexpectedEOF
  3116. }
  3117. return nil
  3118. }
  3119. func (m *ScaleStatus) Unmarshal(data []byte) error {
  3120. l := len(data)
  3121. iNdEx := 0
  3122. for iNdEx < l {
  3123. preIndex := iNdEx
  3124. var wire uint64
  3125. for shift := uint(0); ; shift += 7 {
  3126. if shift >= 64 {
  3127. return ErrIntOverflowGenerated
  3128. }
  3129. if iNdEx >= l {
  3130. return io.ErrUnexpectedEOF
  3131. }
  3132. b := data[iNdEx]
  3133. iNdEx++
  3134. wire |= (uint64(b) & 0x7F) << shift
  3135. if b < 0x80 {
  3136. break
  3137. }
  3138. }
  3139. fieldNum := int32(wire >> 3)
  3140. wireType := int(wire & 0x7)
  3141. if wireType == 4 {
  3142. return fmt.Errorf("proto: ScaleStatus: wiretype end group for non-group")
  3143. }
  3144. if fieldNum <= 0 {
  3145. return fmt.Errorf("proto: ScaleStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  3146. }
  3147. switch fieldNum {
  3148. case 1:
  3149. if wireType != 0 {
  3150. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  3151. }
  3152. m.Replicas = 0
  3153. for shift := uint(0); ; shift += 7 {
  3154. if shift >= 64 {
  3155. return ErrIntOverflowGenerated
  3156. }
  3157. if iNdEx >= l {
  3158. return io.ErrUnexpectedEOF
  3159. }
  3160. b := data[iNdEx]
  3161. iNdEx++
  3162. m.Replicas |= (int32(b) & 0x7F) << shift
  3163. if b < 0x80 {
  3164. break
  3165. }
  3166. }
  3167. case 2:
  3168. if wireType != 2 {
  3169. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  3170. }
  3171. var stringLen uint64
  3172. for shift := uint(0); ; shift += 7 {
  3173. if shift >= 64 {
  3174. return ErrIntOverflowGenerated
  3175. }
  3176. if iNdEx >= l {
  3177. return io.ErrUnexpectedEOF
  3178. }
  3179. b := data[iNdEx]
  3180. iNdEx++
  3181. stringLen |= (uint64(b) & 0x7F) << shift
  3182. if b < 0x80 {
  3183. break
  3184. }
  3185. }
  3186. intStringLen := int(stringLen)
  3187. if intStringLen < 0 {
  3188. return ErrInvalidLengthGenerated
  3189. }
  3190. postIndex := iNdEx + intStringLen
  3191. if postIndex > l {
  3192. return io.ErrUnexpectedEOF
  3193. }
  3194. m.Selector = string(data[iNdEx:postIndex])
  3195. iNdEx = postIndex
  3196. default:
  3197. iNdEx = preIndex
  3198. skippy, err := skipGenerated(data[iNdEx:])
  3199. if err != nil {
  3200. return err
  3201. }
  3202. if skippy < 0 {
  3203. return ErrInvalidLengthGenerated
  3204. }
  3205. if (iNdEx + skippy) > l {
  3206. return io.ErrUnexpectedEOF
  3207. }
  3208. iNdEx += skippy
  3209. }
  3210. }
  3211. if iNdEx > l {
  3212. return io.ErrUnexpectedEOF
  3213. }
  3214. return nil
  3215. }
  3216. func skipGenerated(data []byte) (n int, err error) {
  3217. l := len(data)
  3218. iNdEx := 0
  3219. for iNdEx < l {
  3220. var wire uint64
  3221. for shift := uint(0); ; shift += 7 {
  3222. if shift >= 64 {
  3223. return 0, ErrIntOverflowGenerated
  3224. }
  3225. if iNdEx >= l {
  3226. return 0, io.ErrUnexpectedEOF
  3227. }
  3228. b := data[iNdEx]
  3229. iNdEx++
  3230. wire |= (uint64(b) & 0x7F) << shift
  3231. if b < 0x80 {
  3232. break
  3233. }
  3234. }
  3235. wireType := int(wire & 0x7)
  3236. switch wireType {
  3237. case 0:
  3238. for shift := uint(0); ; shift += 7 {
  3239. if shift >= 64 {
  3240. return 0, ErrIntOverflowGenerated
  3241. }
  3242. if iNdEx >= l {
  3243. return 0, io.ErrUnexpectedEOF
  3244. }
  3245. iNdEx++
  3246. if data[iNdEx-1] < 0x80 {
  3247. break
  3248. }
  3249. }
  3250. return iNdEx, nil
  3251. case 1:
  3252. iNdEx += 8
  3253. return iNdEx, nil
  3254. case 2:
  3255. var length int
  3256. for shift := uint(0); ; shift += 7 {
  3257. if shift >= 64 {
  3258. return 0, ErrIntOverflowGenerated
  3259. }
  3260. if iNdEx >= l {
  3261. return 0, io.ErrUnexpectedEOF
  3262. }
  3263. b := data[iNdEx]
  3264. iNdEx++
  3265. length |= (int(b) & 0x7F) << shift
  3266. if b < 0x80 {
  3267. break
  3268. }
  3269. }
  3270. iNdEx += length
  3271. if length < 0 {
  3272. return 0, ErrInvalidLengthGenerated
  3273. }
  3274. return iNdEx, nil
  3275. case 3:
  3276. for {
  3277. var innerWire uint64
  3278. var start int = iNdEx
  3279. for shift := uint(0); ; shift += 7 {
  3280. if shift >= 64 {
  3281. return 0, ErrIntOverflowGenerated
  3282. }
  3283. if iNdEx >= l {
  3284. return 0, io.ErrUnexpectedEOF
  3285. }
  3286. b := data[iNdEx]
  3287. iNdEx++
  3288. innerWire |= (uint64(b) & 0x7F) << shift
  3289. if b < 0x80 {
  3290. break
  3291. }
  3292. }
  3293. innerWireType := int(innerWire & 0x7)
  3294. if innerWireType == 4 {
  3295. break
  3296. }
  3297. next, err := skipGenerated(data[start:])
  3298. if err != nil {
  3299. return 0, err
  3300. }
  3301. iNdEx = start + next
  3302. }
  3303. return iNdEx, nil
  3304. case 4:
  3305. return iNdEx, nil
  3306. case 5:
  3307. iNdEx += 4
  3308. return iNdEx, nil
  3309. default:
  3310. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3311. }
  3312. }
  3313. panic("unreachable")
  3314. }
  3315. var (
  3316. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  3317. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  3318. )
  3319. var fileDescriptorGenerated = []byte{
  3320. // 1279 bytes of a gzipped FileDescriptorProto
  3321. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x57, 0xcd, 0x6f, 0x1b, 0x45,
  3322. 0x14, 0xcf, 0xda, 0x4e, 0x94, 0xce, 0xa6, 0x1f, 0x4c, 0xaa, 0xd4, 0x4d, 0xa8, 0x37, 0x5a, 0x38,
  3323. 0xb4, 0xa8, 0xec, 0x12, 0x13, 0x2a, 0x22, 0x84, 0x50, 0x6c, 0x54, 0x5a, 0x51, 0xb7, 0x61, 0xe2,
  3324. 0x46, 0x7c, 0x09, 0x31, 0x59, 0x4f, 0x9d, 0x69, 0xbc, 0x1f, 0x9a, 0x1d, 0x5b, 0x4d, 0x24, 0x24,
  3325. 0x4e, 0x9c, 0xb9, 0x70, 0x46, 0xf0, 0x4f, 0x70, 0x2e, 0x12, 0x52, 0x8e, 0xbd, 0xc1, 0xc9, 0x22,
  3326. 0x0b, 0x37, 0xc4, 0x3f, 0x50, 0x71, 0x40, 0x3b, 0x3b, 0x5e, 0xef, 0xda, 0x5e, 0x27, 0x4e, 0xd3,
  3327. 0x22, 0x6e, 0xbb, 0x33, 0xef, 0xfd, 0x7e, 0xef, 0xfd, 0xe6, 0xcd, 0x9b, 0x19, 0xb0, 0xb6, 0xfb,
  3328. 0xb6, 0x6f, 0x50, 0xd7, 0xdc, 0x6d, 0x6f, 0x13, 0xe6, 0x10, 0x4e, 0x7c, 0xd3, 0xdb, 0x6d, 0x9a,
  3329. 0xd8, 0xa3, 0xbe, 0x89, 0xdb, 0xdc, 0xf5, 0x2d, 0xdc, 0xa2, 0x4e, 0xd3, 0xec, 0xac, 0x98, 0x4d,
  3330. 0xe2, 0x10, 0x86, 0x39, 0x69, 0x18, 0x1e, 0x73, 0xb9, 0x0b, 0xaf, 0x45, 0xae, 0x46, 0xdf, 0xd5,
  3331. 0xf0, 0x76, 0x9b, 0x46, 0xe8, 0x6a, 0x24, 0x5c, 0x8d, 0xce, 0xca, 0xe2, 0xeb, 0x4d, 0xca, 0x77,
  3332. 0xda, 0xdb, 0x86, 0xe5, 0xda, 0x66, 0xd3, 0x6d, 0xba, 0xa6, 0x40, 0xd8, 0x6e, 0x3f, 0x10, 0x7f,
  3333. 0xe2, 0x47, 0x7c, 0x45, 0xc8, 0x8b, 0xab, 0x32, 0x28, 0xec, 0x51, 0x1b, 0x5b, 0x3b, 0xd4, 0x21,
  3334. 0x6c, 0xaf, 0x17, 0x96, 0xc9, 0x88, 0xef, 0xb6, 0x99, 0x45, 0x06, 0xe3, 0x19, 0xeb, 0xe5, 0x9b,
  3335. 0x36, 0xe1, 0x78, 0x44, 0x16, 0x8b, 0x66, 0x96, 0x17, 0x6b, 0x3b, 0x9c, 0xda, 0xc3, 0x34, 0x37,
  3336. 0x8e, 0x72, 0xf0, 0xad, 0x1d, 0x62, 0xe3, 0x21, 0xbf, 0x37, 0xb3, 0xfc, 0xda, 0x9c, 0xb6, 0x4c,
  3337. 0xea, 0x70, 0x9f, 0xb3, 0x71, 0x39, 0xf9, 0x84, 0x75, 0x08, 0xeb, 0x27, 0x44, 0x1e, 0x61, 0xdb,
  3338. 0x6b, 0x91, 0x51, 0x39, 0x5d, 0xcf, 0x5c, 0xd4, 0x11, 0xd6, 0xfa, 0x77, 0x0a, 0x58, 0xaa, 0x32,
  3339. 0xd7, 0xf7, 0xb7, 0x08, 0xf3, 0xa9, 0xeb, 0xdc, 0xdb, 0x7e, 0x48, 0x2c, 0x8e, 0xc8, 0x03, 0xc2,
  3340. 0x88, 0x63, 0x11, 0xb8, 0x0c, 0x0a, 0xbb, 0xd4, 0x69, 0x14, 0x95, 0x65, 0xe5, 0xea, 0x99, 0xca,
  3341. 0xdc, 0x41, 0x57, 0x9b, 0x0a, 0xba, 0x5a, 0xe1, 0x43, 0xea, 0x34, 0x90, 0x98, 0x09, 0x2d, 0x1c,
  3342. 0x6c, 0x93, 0x62, 0x2e, 0x6d, 0x71, 0x17, 0xdb, 0x04, 0x89, 0x19, 0x58, 0x06, 0x00, 0x7b, 0x54,
  3343. 0x12, 0x14, 0xf3, 0xc2, 0x0e, 0x4a, 0x3b, 0xb0, 0xbe, 0x71, 0x5b, 0xce, 0xa0, 0x84, 0x95, 0xfe,
  3344. 0x6b, 0x0e, 0x5c, 0xba, 0xe5, 0x32, 0xba, 0xef, 0x3a, 0x1c, 0xb7, 0x36, 0xdc, 0xc6, 0xba, 0x2c,
  3345. 0x2a, 0xc2, 0xe0, 0x97, 0x60, 0x36, 0x5c, 0xd0, 0x06, 0xe6, 0x58, 0xc4, 0xa5, 0x96, 0xdf, 0x30,
  3346. 0x64, 0x39, 0x26, 0xf5, 0xed, 0x17, 0x64, 0x68, 0x6d, 0x74, 0x56, 0x8c, 0x28, 0xb9, 0x1a, 0xe1,
  3347. 0xb8, 0xcf, 0xdf, 0x1f, 0x43, 0x31, 0x2a, 0xdc, 0x01, 0x05, 0xdf, 0x23, 0x96, 0xc8, 0x49, 0x2d,
  3348. 0xdf, 0x34, 0x8e, 0x5d, 0xec, 0x46, 0x46, 0xcc, 0x9b, 0x1e, 0xb1, 0xfa, 0xda, 0x84, 0x7f, 0x48,
  3349. 0x30, 0x40, 0x0f, 0xcc, 0xf8, 0x1c, 0xf3, 0xb6, 0x2f, 0x74, 0x51, 0xcb, 0xb7, 0x4e, 0x81, 0x4b,
  3350. 0xe0, 0x55, 0xce, 0x49, 0xb6, 0x99, 0xe8, 0x1f, 0x49, 0x1e, 0xfd, 0x4f, 0x05, 0x2c, 0x65, 0x78,
  3351. 0xde, 0xa1, 0x3e, 0x87, 0x9f, 0x0f, 0xa9, 0x6b, 0x1c, 0x4f, 0xdd, 0xd0, 0x5b, 0x68, 0x7b, 0x41,
  3352. 0x32, 0xcf, 0xf6, 0x46, 0x12, 0xca, 0x36, 0xc1, 0x34, 0xe5, 0xc4, 0xf6, 0x8b, 0xb9, 0xe5, 0xfc,
  3353. 0x55, 0xb5, 0x5c, 0x79, 0xf6, 0x74, 0x2b, 0x67, 0x25, 0xdd, 0xf4, 0xed, 0x10, 0x18, 0x45, 0xf8,
  3354. 0xfa, 0x3f, 0xb9, 0xcc, 0x34, 0x43, 0xf9, 0xe1, 0x37, 0x0a, 0x38, 0x27, 0x7e, 0xeb, 0x98, 0x35,
  3355. 0x49, 0x58, 0xf1, 0x32, 0xdb, 0x49, 0x56, 0x7b, 0xcc, 0xce, 0xa9, 0x2c, 0xc8, 0xb0, 0xce, 0x6d,
  3356. 0xa6, 0x58, 0xd0, 0x00, 0x2b, 0x5c, 0x01, 0xaa, 0x4d, 0x1d, 0x44, 0xbc, 0x16, 0xb5, 0xb0, 0x2f,
  3357. 0x4a, 0x6e, 0xba, 0x72, 0x3e, 0xe8, 0x6a, 0x6a, 0xad, 0x3f, 0x8c, 0x92, 0x36, 0xf0, 0x2d, 0xa0,
  3358. 0xda, 0xf8, 0x51, 0xec, 0x92, 0x17, 0x2e, 0xf3, 0x92, 0x4f, 0xad, 0xf5, 0xa7, 0x50, 0xd2, 0x0e,
  3359. 0x3e, 0x04, 0x25, 0x2e, 0x68, 0xab, 0x1b, 0xf7, 0xef, 0x73, 0xda, 0xa2, 0xfb, 0x98, 0x53, 0xd7,
  3360. 0xd9, 0x20, 0xcc, 0x22, 0x0e, 0xc7, 0x4d, 0x52, 0x2c, 0x08, 0x24, 0x3d, 0xe8, 0x6a, 0xa5, 0xfa,
  3361. 0x58, 0x4b, 0x74, 0x04, 0x92, 0xfe, 0x38, 0x0f, 0xae, 0x8c, 0xad, 0x4f, 0x78, 0x13, 0x40, 0x77,
  3362. 0x5b, 0xf4, 0xb5, 0xc6, 0x07, 0x51, 0x53, 0x0a, 0xbb, 0x43, 0xb8, 0x06, 0xf9, 0xca, 0x42, 0xd0,
  3363. 0xd5, 0xe0, 0xbd, 0xa1, 0x59, 0x34, 0xc2, 0x03, 0x5a, 0xe0, 0x6c, 0x0b, 0xfb, 0x3c, 0x52, 0x99,
  3364. 0xca, 0x46, 0xa4, 0x96, 0x5f, 0x3b, 0x5e, 0xd1, 0x86, 0x1e, 0x95, 0x97, 0x82, 0xae, 0x76, 0xf6,
  3365. 0x4e, 0x12, 0x04, 0xa5, 0x31, 0xe1, 0x3a, 0x38, 0x6f, 0xb5, 0x19, 0x23, 0x0e, 0x1f, 0x50, 0xfd,
  3366. 0x92, 0x54, 0xfd, 0x7c, 0x35, 0x3d, 0x8d, 0x06, 0xed, 0x43, 0x88, 0x06, 0xf1, 0x29, 0x23, 0x8d,
  3367. 0x18, 0xa2, 0x90, 0x86, 0x78, 0x3f, 0x3d, 0x8d, 0x06, 0xed, 0xa1, 0x0d, 0x34, 0x89, 0x9a, 0xb9,
  3368. 0x82, 0xd3, 0x02, 0xf2, 0x95, 0xa0, 0xab, 0x69, 0xd5, 0xf1, 0xa6, 0xe8, 0x28, 0x2c, 0xfd, 0xaf,
  3369. 0x1c, 0x00, 0x35, 0xc2, 0x19, 0xb5, 0xc4, 0x8e, 0x59, 0x05, 0x05, 0xbe, 0xe7, 0x11, 0x79, 0x14,
  3370. 0x2c, 0xf7, 0x9a, 0x59, 0x7d, 0xcf, 0x23, 0x4f, 0xbb, 0xda, 0x05, 0x69, 0x29, 0x8e, 0xe7, 0x70,
  3371. 0x0c, 0x09, 0x6b, 0x88, 0xc1, 0x8c, 0x2b, 0x76, 0x86, 0x5c, 0x97, 0x77, 0x27, 0xd8, 0x5e, 0x71,
  3372. 0x6f, 0x8e, 0x81, 0x2b, 0x20, 0xec, 0x68, 0x72, 0xab, 0x49, 0x60, 0xf8, 0x09, 0x28, 0x78, 0x6e,
  3373. 0xa3, 0xd7, 0x41, 0xdf, 0x99, 0x80, 0x60, 0xc3, 0x6d, 0xf8, 0x29, 0xf8, 0xd9, 0x30, 0xa3, 0x70,
  3374. 0x14, 0x09, 0x48, 0x48, 0xc1, 0x6c, 0xef, 0xca, 0x21, 0x56, 0x4b, 0x2d, 0xbf, 0x37, 0x01, 0x3c,
  3375. 0x92, 0xae, 0x29, 0x8a, 0xb9, 0xb0, 0x33, 0xf6, 0x66, 0x50, 0x0c, 0xaf, 0xff, 0x9d, 0x03, 0x73,
  3376. 0xd2, 0x30, 0xda, 0x20, 0xff, 0xb1, 0xde, 0xd1, 0x29, 0xf2, 0xdc, 0xf4, 0x8e, 0xe0, 0x9f, 0xab,
  3377. 0xde, 0x11, 0x45, 0x96, 0xde, 0xdf, 0xe7, 0x00, 0x1c, 0x2e, 0x30, 0xe8, 0x80, 0x99, 0xa8, 0xb5,
  3378. 0x9d, 0xf2, 0x71, 0x10, 0x1f, 0xc7, 0xb2, 0xf3, 0x4b, 0x96, 0xf0, 0x72, 0x64, 0x0b, 0xfe, 0xbb,
  3379. 0xfd, 0x4b, 0x54, 0x7c, 0x39, 0xa9, 0xc5, 0x33, 0x28, 0x61, 0x05, 0x09, 0x50, 0x23, 0xef, 0x2d,
  3380. 0xdc, 0x6a, 0x13, 0xb9, 0x0e, 0x63, 0x4f, 0x69, 0xa3, 0x97, 0xb6, 0xf1, 0x51, 0x1b, 0x3b, 0x9c,
  3381. 0xf2, 0xbd, 0xfe, 0x79, 0x51, 0xef, 0x43, 0xa1, 0x24, 0xae, 0xfe, 0xe3, 0xa0, 0x42, 0x51, 0x5d,
  3382. 0xfe, 0x1f, 0x14, 0xda, 0x01, 0x73, 0xb2, 0xbb, 0x3d, 0x8b, 0x44, 0x17, 0x25, 0xcb, 0x5c, 0x35,
  3383. 0x81, 0x85, 0x52, 0xc8, 0xfa, 0xcf, 0x0a, 0xb8, 0x30, 0xd8, 0x46, 0x06, 0x42, 0x56, 0x8e, 0x15,
  3384. 0xf2, 0x3e, 0x80, 0x51, 0xc2, 0xeb, 0x1d, 0xc2, 0x70, 0x93, 0x44, 0x81, 0xe7, 0x4e, 0x14, 0xf8,
  3385. 0xa2, 0xe4, 0x82, 0xf5, 0x21, 0x44, 0x34, 0x82, 0x45, 0xff, 0x25, 0x9d, 0x44, 0xb4, 0xce, 0x27,
  3386. 0x49, 0xe2, 0x2b, 0x30, 0x2f, 0xd5, 0x39, 0x85, 0x2c, 0x96, 0x24, 0xd9, 0x7c, 0x75, 0x18, 0x12,
  3387. 0x8d, 0xe2, 0xd1, 0x7f, 0xca, 0x81, 0x8b, 0xa3, 0x9a, 0x2e, 0xac, 0xc9, 0x47, 0x4a, 0x94, 0xc5,
  3388. 0x5a, 0xf2, 0x91, 0xf2, 0xb4, 0xab, 0x5d, 0x1b, 0xf7, 0x64, 0x8a, 0xbb, 0x4a, 0xe2, 0x45, 0xf3,
  3389. 0x31, 0x28, 0xa6, 0x54, 0x4c, 0x9c, 0x9f, 0xf2, 0x02, 0xf7, 0x72, 0xd0, 0xd5, 0x8a, 0xf5, 0x0c,
  3390. 0x1b, 0x94, 0xe9, 0x0d, 0x3b, 0x23, 0xab, 0xe0, 0x64, 0xe5, 0xbb, 0x30, 0x41, 0x05, 0x3c, 0x1e,
  3391. 0x56, 0x2e, 0xaa, 0x82, 0x53, 0x56, 0xee, 0x33, 0x70, 0x39, 0xbd, 0x70, 0xc3, 0xd2, 0x5d, 0x09,
  3392. 0xba, 0xda, 0xe5, 0x6a, 0x96, 0x11, 0xca, 0xf6, 0xcf, 0xaa, 0xbe, 0xfc, 0x0b, 0xaa, 0xbe, 0x1f,
  3393. 0x72, 0x60, 0x5a, 0x5c, 0x19, 0x5f, 0xc0, 0x0b, 0x75, 0x2b, 0xf5, 0x42, 0x5d, 0x9d, 0xa0, 0x05,
  3394. 0x8b, 0x08, 0x33, 0xdf, 0xa3, 0x5f, 0x0c, 0xbc, 0x47, 0x6f, 0x4c, 0x8c, 0x3c, 0xfe, 0xf5, 0xb9,
  3395. 0x06, 0xce, 0xc4, 0x01, 0xc0, 0xeb, 0xe1, 0x69, 0x2f, 0xef, 0xc2, 0x8a, 0x58, 0xfb, 0xf8, 0xe9,
  3396. 0x18, 0x5f, 0x82, 0x63, 0x0b, 0x9d, 0x02, 0x35, 0xc1, 0x30, 0x99, 0x73, 0x68, 0xed, 0x93, 0x16,
  3397. 0xb1, 0xb8, 0xcb, 0xe4, 0x11, 0x12, 0x5b, 0x6f, 0xca, 0x71, 0x14, 0x5b, 0x54, 0x5e, 0x3d, 0x38,
  3398. 0x2c, 0x4d, 0x3d, 0x39, 0x2c, 0x4d, 0xfd, 0x76, 0x58, 0x9a, 0xfa, 0x3a, 0x28, 0x29, 0x07, 0x41,
  3399. 0x49, 0x79, 0x12, 0x94, 0x94, 0xdf, 0x83, 0x92, 0xf2, 0xed, 0x1f, 0xa5, 0xa9, 0x4f, 0x73, 0x9d,
  3400. 0x95, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x61, 0xfc, 0xd4, 0x31, 0x3f, 0x13, 0x00, 0x00,
  3401. }