blob: efc3102efea89bc3a665194f3371f469ef82104b [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/scheduling/v1/generated.proto
19
20package v1
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
31 math "math"
32 math_bits "math/bits"
33 reflect "reflect"
34 strings "strings"
35)
36
37// Reference imports to suppress errors if they are not otherwise used.
38var _ = proto.Marshal
39var _ = fmt.Errorf
40var _ = math.Inf
41
42// This is a compile-time assertion to ensure that this generated file
43// is compatible with the proto package it is being compiled against.
44// A compilation error at this line likely means your copy of the
45// proto package needs to be updated.
46const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
47
48func (m *PriorityClass) Reset() { *m = PriorityClass{} }
49func (*PriorityClass) ProtoMessage() {}
50func (*PriorityClass) Descriptor() ([]byte, []int) {
51 return fileDescriptor_277b2f43b72fffd5, []int{0}
52}
53func (m *PriorityClass) XXX_Unmarshal(b []byte) error {
54 return m.Unmarshal(b)
55}
56func (m *PriorityClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
57 b = b[:cap(b)]
58 n, err := m.MarshalToSizedBuffer(b)
59 if err != nil {
60 return nil, err
61 }
62 return b[:n], nil
63}
64func (m *PriorityClass) XXX_Merge(src proto.Message) {
65 xxx_messageInfo_PriorityClass.Merge(m, src)
66}
67func (m *PriorityClass) XXX_Size() int {
68 return m.Size()
69}
70func (m *PriorityClass) XXX_DiscardUnknown() {
71 xxx_messageInfo_PriorityClass.DiscardUnknown(m)
72}
73
74var xxx_messageInfo_PriorityClass proto.InternalMessageInfo
75
76func (m *PriorityClassList) Reset() { *m = PriorityClassList{} }
77func (*PriorityClassList) ProtoMessage() {}
78func (*PriorityClassList) Descriptor() ([]byte, []int) {
79 return fileDescriptor_277b2f43b72fffd5, []int{1}
80}
81func (m *PriorityClassList) XXX_Unmarshal(b []byte) error {
82 return m.Unmarshal(b)
83}
84func (m *PriorityClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
85 b = b[:cap(b)]
86 n, err := m.MarshalToSizedBuffer(b)
87 if err != nil {
88 return nil, err
89 }
90 return b[:n], nil
91}
92func (m *PriorityClassList) XXX_Merge(src proto.Message) {
93 xxx_messageInfo_PriorityClassList.Merge(m, src)
94}
95func (m *PriorityClassList) XXX_Size() int {
96 return m.Size()
97}
98func (m *PriorityClassList) XXX_DiscardUnknown() {
99 xxx_messageInfo_PriorityClassList.DiscardUnknown(m)
100}
101
102var xxx_messageInfo_PriorityClassList proto.InternalMessageInfo
103
104func init() {
105 proto.RegisterType((*PriorityClass)(nil), "k8s.io.api.scheduling.v1.PriorityClass")
106 proto.RegisterType((*PriorityClassList)(nil), "k8s.io.api.scheduling.v1.PriorityClassList")
107}
108
109func init() {
110 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/scheduling/v1/generated.proto", fileDescriptor_277b2f43b72fffd5)
111}
112
113var fileDescriptor_277b2f43b72fffd5 = []byte{
114 // 488 bytes of a gzipped FileDescriptorProto
115 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x3f, 0x8f, 0xd3, 0x30,
116 0x18, 0xc6, 0xeb, 0x1e, 0x95, 0x0e, 0x57, 0x95, 0x4a, 0x10, 0x52, 0xd4, 0x21, 0xad, 0x7a, 0x03,
117 0x59, 0xb0, 0xe9, 0x09, 0x10, 0xd2, 0x4d, 0x84, 0x93, 0x10, 0xd2, 0x21, 0xaa, 0x0c, 0x0c, 0x88,
118 0x01, 0x27, 0x79, 0x2f, 0x35, 0x4d, 0xe2, 0xc8, 0x76, 0x22, 0x75, 0xe3, 0x23, 0xf0, 0x8d, 0x58,
119 0x3b, 0xde, 0x78, 0x53, 0x45, 0xc3, 0x47, 0x60, 0x63, 0x42, 0x49, 0xc3, 0xa5, 0x7f, 0xee, 0x04,
120 0x5b, 0xfc, 0x3e, 0xcf, 0xef, 0xb1, 0xfd, 0x24, 0xc1, 0xaf, 0xe6, 0x2f, 0x15, 0xe1, 0x82, 0xce,
121 0x33, 0x0f, 0x64, 0x02, 0x1a, 0x14, 0xcd, 0x21, 0x09, 0x84, 0xa4, 0xb5, 0xc0, 0x52, 0x4e, 0x95,
122 0x3f, 0x83, 0x20, 0x8b, 0x78, 0x12, 0xd2, 0x7c, 0x42, 0x43, 0x48, 0x40, 0x32, 0x0d, 0x01, 0x49,
123 0xa5, 0xd0, 0xc2, 0x30, 0x37, 0x4e, 0xc2, 0x52, 0x4e, 0x1a, 0x27, 0xc9, 0x27, 0x83, 0x27, 0x21,
124 0xd7, 0xb3, 0xcc, 0x23, 0xbe, 0x88, 0x69, 0x28, 0x42, 0x41, 0x2b, 0xc0, 0xcb, 0x2e, 0xab, 0x55,
125 0xb5, 0xa8, 0x9e, 0x36, 0x41, 0x83, 0xf1, 0xd6, 0x96, 0xbe, 0x90, 0x70, 0xcb, 0x66, 0x83, 0x67,
126 0x8d, 0x27, 0x66, 0xfe, 0x8c, 0x27, 0x20, 0x17, 0x34, 0x9d, 0x87, 0xe5, 0x40, 0xd1, 0x18, 0x34,
127 0xbb, 0x8d, 0xa2, 0x77, 0x51, 0x32, 0x4b, 0x34, 0x8f, 0xe1, 0x00, 0x78, 0xf1, 0x2f, 0xa0, 0xbc,
128 0x68, 0xcc, 0xf6, 0xb9, 0xf1, 0xaf, 0x36, 0xee, 0x4d, 0x25, 0x17, 0x92, 0xeb, 0xc5, 0xeb, 0x88,
129 0x29, 0x65, 0x7c, 0xc6, 0xc7, 0xe5, 0xa9, 0x02, 0xa6, 0x99, 0x89, 0x46, 0xc8, 0xee, 0x9e, 0x3e,
130 0x25, 0x4d, 0x61, 0x37, 0xe1, 0x24, 0x9d, 0x87, 0xe5, 0x40, 0x91, 0xd2, 0x4d, 0xf2, 0x09, 0x79,
131 0xef, 0x7d, 0x01, 0x5f, 0xbf, 0x03, 0xcd, 0x1c, 0x63, 0xb9, 0x1a, 0xb6, 0x8a, 0xd5, 0x10, 0x37,
132 0x33, 0xf7, 0x26, 0xd5, 0x38, 0xc1, 0x9d, 0x9c, 0x45, 0x19, 0x98, 0xed, 0x11, 0xb2, 0x3b, 0x4e,
133 0xaf, 0x36, 0x77, 0x3e, 0x94, 0x43, 0x77, 0xa3, 0x19, 0x67, 0xb8, 0x17, 0x46, 0xc2, 0x63, 0xd1,
134 0x39, 0x5c, 0xb2, 0x2c, 0xd2, 0xe6, 0xd1, 0x08, 0xd9, 0xc7, 0xce, 0xa3, 0xda, 0xdc, 0x7b, 0xb3,
135 0x2d, 0xba, 0xbb, 0x5e, 0xe3, 0x39, 0xee, 0x06, 0xa0, 0x7c, 0xc9, 0x53, 0xcd, 0x45, 0x62, 0xde,
136 0x1b, 0x21, 0xfb, 0xbe, 0xf3, 0xb0, 0x46, 0xbb, 0xe7, 0x8d, 0xe4, 0x6e, 0xfb, 0x8c, 0x10, 0xf7,
137 0x53, 0x09, 0x10, 0x57, 0xab, 0xa9, 0x88, 0xb8, 0xbf, 0x30, 0x3b, 0x15, 0x7b, 0x56, 0xac, 0x86,
138 0xfd, 0xe9, 0x9e, 0xf6, 0x7b, 0x35, 0x3c, 0x39, 0xfc, 0x02, 0xc8, 0xbe, 0xcd, 0x3d, 0x08, 0x1d,
139 0x7f, 0x47, 0xf8, 0xc1, 0x4e, 0xeb, 0x17, 0x5c, 0x69, 0xe3, 0xd3, 0x41, 0xf3, 0xe4, 0xff, 0x9a,
140 0x2f, 0xe9, 0xaa, 0xf7, 0x7e, 0x7d, 0xc5, 0xe3, 0xbf, 0x93, 0xad, 0xd6, 0x2f, 0x70, 0x87, 0x6b,
141 0x88, 0x95, 0xd9, 0x1e, 0x1d, 0xd9, 0xdd, 0xd3, 0xc7, 0xe4, 0xae, 0xbf, 0x80, 0xec, 0x9c, 0xac,
142 0x79, 0x3d, 0x6f, 0x4b, 0xda, 0xdd, 0x84, 0x38, 0xf6, 0x72, 0x6d, 0xb5, 0xae, 0xd6, 0x56, 0xeb,
143 0x7a, 0x6d, 0xb5, 0xbe, 0x16, 0x16, 0x5a, 0x16, 0x16, 0xba, 0x2a, 0x2c, 0x74, 0x5d, 0x58, 0xe8,
144 0x47, 0x61, 0xa1, 0x6f, 0x3f, 0xad, 0xd6, 0xc7, 0x76, 0x3e, 0xf9, 0x13, 0x00, 0x00, 0xff, 0xff,
145 0x53, 0xd9, 0x28, 0x30, 0xb1, 0x03, 0x00, 0x00,
146}
147
148func (m *PriorityClass) Marshal() (dAtA []byte, err error) {
149 size := m.Size()
150 dAtA = make([]byte, size)
151 n, err := m.MarshalToSizedBuffer(dAtA[:size])
152 if err != nil {
153 return nil, err
154 }
155 return dAtA[:n], nil
156}
157
158func (m *PriorityClass) MarshalTo(dAtA []byte) (int, error) {
159 size := m.Size()
160 return m.MarshalToSizedBuffer(dAtA[:size])
161}
162
163func (m *PriorityClass) MarshalToSizedBuffer(dAtA []byte) (int, error) {
164 i := len(dAtA)
165 _ = i
166 var l int
167 _ = l
168 if m.PreemptionPolicy != nil {
169 i -= len(*m.PreemptionPolicy)
170 copy(dAtA[i:], *m.PreemptionPolicy)
171 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PreemptionPolicy)))
172 i--
173 dAtA[i] = 0x2a
174 }
175 i -= len(m.Description)
176 copy(dAtA[i:], m.Description)
177 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Description)))
178 i--
179 dAtA[i] = 0x22
180 i--
181 if m.GlobalDefault {
182 dAtA[i] = 1
183 } else {
184 dAtA[i] = 0
185 }
186 i--
187 dAtA[i] = 0x18
188 i = encodeVarintGenerated(dAtA, i, uint64(m.Value))
189 i--
190 dAtA[i] = 0x10
191 {
192 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
193 if err != nil {
194 return 0, err
195 }
196 i -= size
197 i = encodeVarintGenerated(dAtA, i, uint64(size))
198 }
199 i--
200 dAtA[i] = 0xa
201 return len(dAtA) - i, nil
202}
203
204func (m *PriorityClassList) Marshal() (dAtA []byte, err error) {
205 size := m.Size()
206 dAtA = make([]byte, size)
207 n, err := m.MarshalToSizedBuffer(dAtA[:size])
208 if err != nil {
209 return nil, err
210 }
211 return dAtA[:n], nil
212}
213
214func (m *PriorityClassList) MarshalTo(dAtA []byte) (int, error) {
215 size := m.Size()
216 return m.MarshalToSizedBuffer(dAtA[:size])
217}
218
219func (m *PriorityClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
220 i := len(dAtA)
221 _ = i
222 var l int
223 _ = l
224 if len(m.Items) > 0 {
225 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
226 {
227 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
228 if err != nil {
229 return 0, err
230 }
231 i -= size
232 i = encodeVarintGenerated(dAtA, i, uint64(size))
233 }
234 i--
235 dAtA[i] = 0x12
236 }
237 }
238 {
239 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
240 if err != nil {
241 return 0, err
242 }
243 i -= size
244 i = encodeVarintGenerated(dAtA, i, uint64(size))
245 }
246 i--
247 dAtA[i] = 0xa
248 return len(dAtA) - i, nil
249}
250
251func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
252 offset -= sovGenerated(v)
253 base := offset
254 for v >= 1<<7 {
255 dAtA[offset] = uint8(v&0x7f | 0x80)
256 v >>= 7
257 offset++
258 }
259 dAtA[offset] = uint8(v)
260 return base
261}
262func (m *PriorityClass) Size() (n int) {
263 if m == nil {
264 return 0
265 }
266 var l int
267 _ = l
268 l = m.ObjectMeta.Size()
269 n += 1 + l + sovGenerated(uint64(l))
270 n += 1 + sovGenerated(uint64(m.Value))
271 n += 2
272 l = len(m.Description)
273 n += 1 + l + sovGenerated(uint64(l))
274 if m.PreemptionPolicy != nil {
275 l = len(*m.PreemptionPolicy)
276 n += 1 + l + sovGenerated(uint64(l))
277 }
278 return n
279}
280
281func (m *PriorityClassList) Size() (n int) {
282 if m == nil {
283 return 0
284 }
285 var l int
286 _ = l
287 l = m.ListMeta.Size()
288 n += 1 + l + sovGenerated(uint64(l))
289 if len(m.Items) > 0 {
290 for _, e := range m.Items {
291 l = e.Size()
292 n += 1 + l + sovGenerated(uint64(l))
293 }
294 }
295 return n
296}
297
298func sovGenerated(x uint64) (n int) {
299 return (math_bits.Len64(x|1) + 6) / 7
300}
301func sozGenerated(x uint64) (n int) {
302 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
303}
304func (this *PriorityClass) String() string {
305 if this == nil {
306 return "nil"
307 }
308 s := strings.Join([]string{`&PriorityClass{`,
309 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
310 `Value:` + fmt.Sprintf("%v", this.Value) + `,`,
311 `GlobalDefault:` + fmt.Sprintf("%v", this.GlobalDefault) + `,`,
312 `Description:` + fmt.Sprintf("%v", this.Description) + `,`,
313 `PreemptionPolicy:` + valueToStringGenerated(this.PreemptionPolicy) + `,`,
314 `}`,
315 }, "")
316 return s
317}
318func (this *PriorityClassList) String() string {
319 if this == nil {
320 return "nil"
321 }
322 repeatedStringForItems := "[]PriorityClass{"
323 for _, f := range this.Items {
324 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PriorityClass", "PriorityClass", 1), `&`, ``, 1) + ","
325 }
326 repeatedStringForItems += "}"
327 s := strings.Join([]string{`&PriorityClassList{`,
328 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
329 `Items:` + repeatedStringForItems + `,`,
330 `}`,
331 }, "")
332 return s
333}
334func valueToStringGenerated(v interface{}) string {
335 rv := reflect.ValueOf(v)
336 if rv.IsNil() {
337 return "nil"
338 }
339 pv := reflect.Indirect(rv).Interface()
340 return fmt.Sprintf("*%v", pv)
341}
342func (m *PriorityClass) Unmarshal(dAtA []byte) error {
343 l := len(dAtA)
344 iNdEx := 0
345 for iNdEx < l {
346 preIndex := iNdEx
347 var wire uint64
348 for shift := uint(0); ; shift += 7 {
349 if shift >= 64 {
350 return ErrIntOverflowGenerated
351 }
352 if iNdEx >= l {
353 return io.ErrUnexpectedEOF
354 }
355 b := dAtA[iNdEx]
356 iNdEx++
357 wire |= uint64(b&0x7F) << shift
358 if b < 0x80 {
359 break
360 }
361 }
362 fieldNum := int32(wire >> 3)
363 wireType := int(wire & 0x7)
364 if wireType == 4 {
365 return fmt.Errorf("proto: PriorityClass: wiretype end group for non-group")
366 }
367 if fieldNum <= 0 {
368 return fmt.Errorf("proto: PriorityClass: illegal tag %d (wire type %d)", fieldNum, wire)
369 }
370 switch fieldNum {
371 case 1:
372 if wireType != 2 {
373 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
374 }
375 var msglen int
376 for shift := uint(0); ; shift += 7 {
377 if shift >= 64 {
378 return ErrIntOverflowGenerated
379 }
380 if iNdEx >= l {
381 return io.ErrUnexpectedEOF
382 }
383 b := dAtA[iNdEx]
384 iNdEx++
385 msglen |= int(b&0x7F) << shift
386 if b < 0x80 {
387 break
388 }
389 }
390 if msglen < 0 {
391 return ErrInvalidLengthGenerated
392 }
393 postIndex := iNdEx + msglen
394 if postIndex < 0 {
395 return ErrInvalidLengthGenerated
396 }
397 if postIndex > l {
398 return io.ErrUnexpectedEOF
399 }
400 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
401 return err
402 }
403 iNdEx = postIndex
404 case 2:
405 if wireType != 0 {
406 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
407 }
408 m.Value = 0
409 for shift := uint(0); ; shift += 7 {
410 if shift >= 64 {
411 return ErrIntOverflowGenerated
412 }
413 if iNdEx >= l {
414 return io.ErrUnexpectedEOF
415 }
416 b := dAtA[iNdEx]
417 iNdEx++
418 m.Value |= int32(b&0x7F) << shift
419 if b < 0x80 {
420 break
421 }
422 }
423 case 3:
424 if wireType != 0 {
425 return fmt.Errorf("proto: wrong wireType = %d for field GlobalDefault", wireType)
426 }
427 var v int
428 for shift := uint(0); ; shift += 7 {
429 if shift >= 64 {
430 return ErrIntOverflowGenerated
431 }
432 if iNdEx >= l {
433 return io.ErrUnexpectedEOF
434 }
435 b := dAtA[iNdEx]
436 iNdEx++
437 v |= int(b&0x7F) << shift
438 if b < 0x80 {
439 break
440 }
441 }
442 m.GlobalDefault = bool(v != 0)
443 case 4:
444 if wireType != 2 {
445 return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
446 }
447 var stringLen uint64
448 for shift := uint(0); ; shift += 7 {
449 if shift >= 64 {
450 return ErrIntOverflowGenerated
451 }
452 if iNdEx >= l {
453 return io.ErrUnexpectedEOF
454 }
455 b := dAtA[iNdEx]
456 iNdEx++
457 stringLen |= uint64(b&0x7F) << shift
458 if b < 0x80 {
459 break
460 }
461 }
462 intStringLen := int(stringLen)
463 if intStringLen < 0 {
464 return ErrInvalidLengthGenerated
465 }
466 postIndex := iNdEx + intStringLen
467 if postIndex < 0 {
468 return ErrInvalidLengthGenerated
469 }
470 if postIndex > l {
471 return io.ErrUnexpectedEOF
472 }
473 m.Description = string(dAtA[iNdEx:postIndex])
474 iNdEx = postIndex
475 case 5:
476 if wireType != 2 {
477 return fmt.Errorf("proto: wrong wireType = %d for field PreemptionPolicy", wireType)
478 }
479 var stringLen uint64
480 for shift := uint(0); ; shift += 7 {
481 if shift >= 64 {
482 return ErrIntOverflowGenerated
483 }
484 if iNdEx >= l {
485 return io.ErrUnexpectedEOF
486 }
487 b := dAtA[iNdEx]
488 iNdEx++
489 stringLen |= uint64(b&0x7F) << shift
490 if b < 0x80 {
491 break
492 }
493 }
494 intStringLen := int(stringLen)
495 if intStringLen < 0 {
496 return ErrInvalidLengthGenerated
497 }
498 postIndex := iNdEx + intStringLen
499 if postIndex < 0 {
500 return ErrInvalidLengthGenerated
501 }
502 if postIndex > l {
503 return io.ErrUnexpectedEOF
504 }
505 s := k8s_io_api_core_v1.PreemptionPolicy(dAtA[iNdEx:postIndex])
506 m.PreemptionPolicy = &s
507 iNdEx = postIndex
508 default:
509 iNdEx = preIndex
510 skippy, err := skipGenerated(dAtA[iNdEx:])
511 if err != nil {
512 return err
513 }
514 if skippy < 0 {
515 return ErrInvalidLengthGenerated
516 }
517 if (iNdEx + skippy) < 0 {
518 return ErrInvalidLengthGenerated
519 }
520 if (iNdEx + skippy) > l {
521 return io.ErrUnexpectedEOF
522 }
523 iNdEx += skippy
524 }
525 }
526
527 if iNdEx > l {
528 return io.ErrUnexpectedEOF
529 }
530 return nil
531}
532func (m *PriorityClassList) Unmarshal(dAtA []byte) error {
533 l := len(dAtA)
534 iNdEx := 0
535 for iNdEx < l {
536 preIndex := iNdEx
537 var wire uint64
538 for shift := uint(0); ; shift += 7 {
539 if shift >= 64 {
540 return ErrIntOverflowGenerated
541 }
542 if iNdEx >= l {
543 return io.ErrUnexpectedEOF
544 }
545 b := dAtA[iNdEx]
546 iNdEx++
547 wire |= uint64(b&0x7F) << shift
548 if b < 0x80 {
549 break
550 }
551 }
552 fieldNum := int32(wire >> 3)
553 wireType := int(wire & 0x7)
554 if wireType == 4 {
555 return fmt.Errorf("proto: PriorityClassList: wiretype end group for non-group")
556 }
557 if fieldNum <= 0 {
558 return fmt.Errorf("proto: PriorityClassList: illegal tag %d (wire type %d)", fieldNum, wire)
559 }
560 switch fieldNum {
561 case 1:
562 if wireType != 2 {
563 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
564 }
565 var msglen int
566 for shift := uint(0); ; shift += 7 {
567 if shift >= 64 {
568 return ErrIntOverflowGenerated
569 }
570 if iNdEx >= l {
571 return io.ErrUnexpectedEOF
572 }
573 b := dAtA[iNdEx]
574 iNdEx++
575 msglen |= int(b&0x7F) << shift
576 if b < 0x80 {
577 break
578 }
579 }
580 if msglen < 0 {
581 return ErrInvalidLengthGenerated
582 }
583 postIndex := iNdEx + msglen
584 if postIndex < 0 {
585 return ErrInvalidLengthGenerated
586 }
587 if postIndex > l {
588 return io.ErrUnexpectedEOF
589 }
590 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
591 return err
592 }
593 iNdEx = postIndex
594 case 2:
595 if wireType != 2 {
596 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
597 }
598 var msglen int
599 for shift := uint(0); ; shift += 7 {
600 if shift >= 64 {
601 return ErrIntOverflowGenerated
602 }
603 if iNdEx >= l {
604 return io.ErrUnexpectedEOF
605 }
606 b := dAtA[iNdEx]
607 iNdEx++
608 msglen |= int(b&0x7F) << shift
609 if b < 0x80 {
610 break
611 }
612 }
613 if msglen < 0 {
614 return ErrInvalidLengthGenerated
615 }
616 postIndex := iNdEx + msglen
617 if postIndex < 0 {
618 return ErrInvalidLengthGenerated
619 }
620 if postIndex > l {
621 return io.ErrUnexpectedEOF
622 }
623 m.Items = append(m.Items, PriorityClass{})
624 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
625 return err
626 }
627 iNdEx = postIndex
628 default:
629 iNdEx = preIndex
630 skippy, err := skipGenerated(dAtA[iNdEx:])
631 if err != nil {
632 return err
633 }
634 if skippy < 0 {
635 return ErrInvalidLengthGenerated
636 }
637 if (iNdEx + skippy) < 0 {
638 return ErrInvalidLengthGenerated
639 }
640 if (iNdEx + skippy) > l {
641 return io.ErrUnexpectedEOF
642 }
643 iNdEx += skippy
644 }
645 }
646
647 if iNdEx > l {
648 return io.ErrUnexpectedEOF
649 }
650 return nil
651}
652func skipGenerated(dAtA []byte) (n int, err error) {
653 l := len(dAtA)
654 iNdEx := 0
655 depth := 0
656 for iNdEx < l {
657 var wire uint64
658 for shift := uint(0); ; shift += 7 {
659 if shift >= 64 {
660 return 0, ErrIntOverflowGenerated
661 }
662 if iNdEx >= l {
663 return 0, io.ErrUnexpectedEOF
664 }
665 b := dAtA[iNdEx]
666 iNdEx++
667 wire |= (uint64(b) & 0x7F) << shift
668 if b < 0x80 {
669 break
670 }
671 }
672 wireType := int(wire & 0x7)
673 switch wireType {
674 case 0:
675 for shift := uint(0); ; shift += 7 {
676 if shift >= 64 {
677 return 0, ErrIntOverflowGenerated
678 }
679 if iNdEx >= l {
680 return 0, io.ErrUnexpectedEOF
681 }
682 iNdEx++
683 if dAtA[iNdEx-1] < 0x80 {
684 break
685 }
686 }
687 case 1:
688 iNdEx += 8
689 case 2:
690 var length int
691 for shift := uint(0); ; shift += 7 {
692 if shift >= 64 {
693 return 0, ErrIntOverflowGenerated
694 }
695 if iNdEx >= l {
696 return 0, io.ErrUnexpectedEOF
697 }
698 b := dAtA[iNdEx]
699 iNdEx++
700 length |= (int(b) & 0x7F) << shift
701 if b < 0x80 {
702 break
703 }
704 }
705 if length < 0 {
706 return 0, ErrInvalidLengthGenerated
707 }
708 iNdEx += length
709 case 3:
710 depth++
711 case 4:
712 if depth == 0 {
713 return 0, ErrUnexpectedEndOfGroupGenerated
714 }
715 depth--
716 case 5:
717 iNdEx += 4
718 default:
719 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
720 }
721 if iNdEx < 0 {
722 return 0, ErrInvalidLengthGenerated
723 }
724 if depth == 0 {
725 return iNdEx, nil
726 }
727 }
728 return 0, io.ErrUnexpectedEOF
729}
730
731var (
732 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
733 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
734 ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
735)