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