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