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