blob: 8a62104dbe73b27de18bebaf97b14077aef8aba3 [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/v1alpha1/generated.proto
19
20package v1alpha1
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_f033641dd0b95dce, []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_f033641dd0b95dce, []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.v1alpha1.PriorityClass")
106 proto.RegisterType((*PriorityClassList)(nil), "k8s.io.api.scheduling.v1alpha1.PriorityClassList")
107}
108
109func init() {
110 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/scheduling/v1alpha1/generated.proto", fileDescriptor_f033641dd0b95dce)
111}
112
113var fileDescriptor_f033641dd0b95dce = []byte{
114 // 494 bytes of a gzipped FileDescriptorProto
115 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x8b, 0xd3, 0x40,
116 0x18, 0xc6, 0x3b, 0x5d, 0x0b, 0x75, 0x4a, 0xa1, 0x46, 0x84, 0xd0, 0xc3, 0xb4, 0x74, 0x2f, 0xbd,
117 0xec, 0x8c, 0x5d, 0x54, 0x84, 0xbd, 0xd5, 0x85, 0x45, 0x50, 0x2c, 0x39, 0x78, 0x10, 0x0f, 0x4e,
118 0xd3, 0x77, 0xd3, 0xb1, 0x49, 0x26, 0xcc, 0x4c, 0x02, 0xbd, 0xf9, 0x11, 0xfc, 0x52, 0x42, 0x8f,
119 0x7b, 0xdc, 0x53, 0xb1, 0xf1, 0x23, 0x78, 0xf3, 0x24, 0x49, 0xd3, 0x4d, 0xdb, 0xf8, 0x67, 0x6f,
120 0x99, 0xf7, 0xf9, 0x3d, 0xcf, 0xcc, 0x3c, 0x49, 0xf0, 0xd5, 0xe2, 0xa5, 0xa6, 0x42, 0xb2, 0x45,
121 0x3c, 0x05, 0x15, 0x82, 0x01, 0xcd, 0x12, 0x08, 0x67, 0x52, 0xb1, 0x42, 0xe0, 0x91, 0x60, 0xda,
122 0x9d, 0xc3, 0x2c, 0xf6, 0x45, 0xe8, 0xb1, 0x64, 0xc4, 0xfd, 0x68, 0xce, 0x47, 0xcc, 0x83, 0x10,
123 0x14, 0x37, 0x30, 0xa3, 0x91, 0x92, 0x46, 0x5a, 0x64, 0xcb, 0x53, 0x1e, 0x09, 0x5a, 0xf2, 0x74,
124 0xc7, 0x77, 0xcf, 0x3c, 0x61, 0xe6, 0xf1, 0x94, 0xba, 0x32, 0x60, 0x9e, 0xf4, 0x24, 0xcb, 0x6d,
125 0xd3, 0xf8, 0x3a, 0x5f, 0xe5, 0x8b, 0xfc, 0x69, 0x1b, 0xd7, 0x1d, 0xec, 0x6d, 0xef, 0x4a, 0x05,
126 0x2c, 0xa9, 0x6c, 0xd9, 0x7d, 0x56, 0x32, 0x01, 0x77, 0xe7, 0x22, 0x04, 0xb5, 0x64, 0xd1, 0xc2,
127 0xcb, 0x06, 0x9a, 0x05, 0x60, 0xf8, 0x9f, 0x5c, 0xec, 0x6f, 0x2e, 0x15, 0x87, 0x46, 0x04, 0x50,
128 0x31, 0xbc, 0xf8, 0x9f, 0x21, 0xbb, 0x6e, 0xc0, 0x8f, 0x7d, 0x83, 0x9f, 0x75, 0xdc, 0x9e, 0x28,
129 0x21, 0x95, 0x30, 0xcb, 0x57, 0x3e, 0xd7, 0xda, 0xfa, 0x84, 0x9b, 0xd9, 0xa9, 0x66, 0xdc, 0x70,
130 0x1b, 0xf5, 0xd1, 0xb0, 0x75, 0xfe, 0x94, 0x96, 0xb5, 0xdd, 0x85, 0xd3, 0x68, 0xe1, 0x65, 0x03,
131 0x4d, 0x33, 0x9a, 0x26, 0x23, 0xfa, 0x6e, 0xfa, 0x19, 0x5c, 0xf3, 0x16, 0x0c, 0x1f, 0x5b, 0xab,
132 0x75, 0xaf, 0x96, 0xae, 0x7b, 0xb8, 0x9c, 0x39, 0x77, 0xa9, 0xd6, 0x29, 0x6e, 0x24, 0xdc, 0x8f,
133 0xc1, 0xae, 0xf7, 0xd1, 0xb0, 0x31, 0x6e, 0x17, 0x70, 0xe3, 0x7d, 0x36, 0x74, 0xb6, 0x9a, 0x75,
134 0x81, 0xdb, 0x9e, 0x2f, 0xa7, 0xdc, 0xbf, 0x84, 0x6b, 0x1e, 0xfb, 0xc6, 0x3e, 0xe9, 0xa3, 0x61,
135 0x73, 0xfc, 0xa4, 0x80, 0xdb, 0x57, 0xfb, 0xa2, 0x73, 0xc8, 0x5a, 0xcf, 0x71, 0x6b, 0x06, 0xda,
136 0x55, 0x22, 0x32, 0x42, 0x86, 0xf6, 0x83, 0x3e, 0x1a, 0x3e, 0x1c, 0x3f, 0x2e, 0xac, 0xad, 0xcb,
137 0x52, 0x72, 0xf6, 0x39, 0xcb, 0xc3, 0x9d, 0x48, 0x01, 0x04, 0xf9, 0x6a, 0x22, 0x7d, 0xe1, 0x2e,
138 0xed, 0x46, 0xee, 0xbd, 0x48, 0xd7, 0xbd, 0xce, 0xe4, 0x48, 0xfb, 0xb5, 0xee, 0x9d, 0x56, 0xbf,
139 0x00, 0x7a, 0x8c, 0x39, 0x95, 0xd0, 0xc1, 0x37, 0x84, 0x1f, 0x1d, 0xb4, 0xfe, 0x46, 0x68, 0x63,
140 0x7d, 0xac, 0x34, 0x4f, 0xef, 0xd7, 0x7c, 0xe6, 0xce, 0x7b, 0xef, 0x14, 0x57, 0x6c, 0xee, 0x26,
141 0x7b, 0xad, 0x3b, 0xb8, 0x21, 0x0c, 0x04, 0xda, 0xae, 0xf7, 0x4f, 0x86, 0xad, 0xf3, 0x33, 0xfa,
142 0xef, 0x7f, 0x81, 0x1e, 0x9c, 0xaf, 0x7c, 0x49, 0xaf, 0xb3, 0x0c, 0x67, 0x1b, 0x35, 0xa6, 0xab,
143 0x0d, 0xa9, 0xdd, 0x6c, 0x48, 0xed, 0x76, 0x43, 0x6a, 0x5f, 0x52, 0x82, 0x56, 0x29, 0x41, 0x37,
144 0x29, 0x41, 0xb7, 0x29, 0x41, 0xdf, 0x53, 0x82, 0xbe, 0xfe, 0x20, 0xb5, 0x0f, 0xcd, 0x5d, 0xe6,
145 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x55, 0x5c, 0x1a, 0x39, 0xc9, 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)