blob: b13b03fc73ecfb60786ff339ab0bc7b6294b32f8 [file] [log] [blame]
Matthias Andreas Benkard832a54e2019-01-29 09:27:38 +01001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Code generated by protoc-gen-gogo.
18// source: k8s.io/kubernetes/vendor/k8s.io/api/storage/v1/generated.proto
19// DO NOT EDIT!
20
21/*
22 Package v1 is a generated protocol buffer package.
23
24 It is generated from these files:
25 k8s.io/kubernetes/vendor/k8s.io/api/storage/v1/generated.proto
26
27 It has these top-level messages:
28 StorageClass
29 StorageClassList
30*/
31package v1
32
33import proto "github.com/gogo/protobuf/proto"
34import fmt "fmt"
35import math "math"
36
37import k8s_io_api_core_v1 "k8s.io/api/core/v1"
38
39import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
40
41import strings "strings"
42import reflect "reflect"
43
44import io "io"
45
46// Reference imports to suppress errors if they are not otherwise used.
47var _ = proto.Marshal
48var _ = fmt.Errorf
49var _ = math.Inf
50
51// This is a compile-time assertion to ensure that this generated file
52// is compatible with the proto package it is being compiled against.
53// A compilation error at this line likely means your copy of the
54// proto package needs to be updated.
55const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
56
57func (m *StorageClass) Reset() { *m = StorageClass{} }
58func (*StorageClass) ProtoMessage() {}
59func (*StorageClass) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
60
61func (m *StorageClassList) Reset() { *m = StorageClassList{} }
62func (*StorageClassList) ProtoMessage() {}
63func (*StorageClassList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
64
65func init() {
66 proto.RegisterType((*StorageClass)(nil), "k8s.io.api.storage.v1.StorageClass")
67 proto.RegisterType((*StorageClassList)(nil), "k8s.io.api.storage.v1.StorageClassList")
68}
69func (m *StorageClass) Marshal() (dAtA []byte, err error) {
70 size := m.Size()
71 dAtA = make([]byte, size)
72 n, err := m.MarshalTo(dAtA)
73 if err != nil {
74 return nil, err
75 }
76 return dAtA[:n], nil
77}
78
79func (m *StorageClass) MarshalTo(dAtA []byte) (int, error) {
80 var i int
81 _ = i
82 var l int
83 _ = l
84 dAtA[i] = 0xa
85 i++
86 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
87 n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
88 if err != nil {
89 return 0, err
90 }
91 i += n1
92 dAtA[i] = 0x12
93 i++
94 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Provisioner)))
95 i += copy(dAtA[i:], m.Provisioner)
96 if len(m.Parameters) > 0 {
97 keysForParameters := make([]string, 0, len(m.Parameters))
98 for k := range m.Parameters {
99 keysForParameters = append(keysForParameters, string(k))
100 }
101 github_com_gogo_protobuf_sortkeys.Strings(keysForParameters)
102 for _, k := range keysForParameters {
103 dAtA[i] = 0x1a
104 i++
105 v := m.Parameters[string(k)]
106 mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
107 i = encodeVarintGenerated(dAtA, i, uint64(mapSize))
108 dAtA[i] = 0xa
109 i++
110 i = encodeVarintGenerated(dAtA, i, uint64(len(k)))
111 i += copy(dAtA[i:], k)
112 dAtA[i] = 0x12
113 i++
114 i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
115 i += copy(dAtA[i:], v)
116 }
117 }
118 if m.ReclaimPolicy != nil {
119 dAtA[i] = 0x22
120 i++
121 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ReclaimPolicy)))
122 i += copy(dAtA[i:], *m.ReclaimPolicy)
123 }
124 if len(m.MountOptions) > 0 {
125 for _, s := range m.MountOptions {
126 dAtA[i] = 0x2a
127 i++
128 l = len(s)
129 for l >= 1<<7 {
130 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
131 l >>= 7
132 i++
133 }
134 dAtA[i] = uint8(l)
135 i++
136 i += copy(dAtA[i:], s)
137 }
138 }
139 if m.AllowVolumeExpansion != nil {
140 dAtA[i] = 0x30
141 i++
142 if *m.AllowVolumeExpansion {
143 dAtA[i] = 1
144 } else {
145 dAtA[i] = 0
146 }
147 i++
148 }
149 if m.VolumeBindingMode != nil {
150 dAtA[i] = 0x3a
151 i++
152 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.VolumeBindingMode)))
153 i += copy(dAtA[i:], *m.VolumeBindingMode)
154 }
155 if len(m.AllowedTopologies) > 0 {
156 for _, msg := range m.AllowedTopologies {
157 dAtA[i] = 0x42
158 i++
159 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
160 n, err := msg.MarshalTo(dAtA[i:])
161 if err != nil {
162 return 0, err
163 }
164 i += n
165 }
166 }
167 return i, nil
168}
169
170func (m *StorageClassList) Marshal() (dAtA []byte, err error) {
171 size := m.Size()
172 dAtA = make([]byte, size)
173 n, err := m.MarshalTo(dAtA)
174 if err != nil {
175 return nil, err
176 }
177 return dAtA[:n], nil
178}
179
180func (m *StorageClassList) MarshalTo(dAtA []byte) (int, error) {
181 var i int
182 _ = i
183 var l int
184 _ = l
185 dAtA[i] = 0xa
186 i++
187 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
188 n2, err := m.ListMeta.MarshalTo(dAtA[i:])
189 if err != nil {
190 return 0, err
191 }
192 i += n2
193 if len(m.Items) > 0 {
194 for _, msg := range m.Items {
195 dAtA[i] = 0x12
196 i++
197 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
198 n, err := msg.MarshalTo(dAtA[i:])
199 if err != nil {
200 return 0, err
201 }
202 i += n
203 }
204 }
205 return i, nil
206}
207
208func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int {
209 dAtA[offset] = uint8(v)
210 dAtA[offset+1] = uint8(v >> 8)
211 dAtA[offset+2] = uint8(v >> 16)
212 dAtA[offset+3] = uint8(v >> 24)
213 dAtA[offset+4] = uint8(v >> 32)
214 dAtA[offset+5] = uint8(v >> 40)
215 dAtA[offset+6] = uint8(v >> 48)
216 dAtA[offset+7] = uint8(v >> 56)
217 return offset + 8
218}
219func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int {
220 dAtA[offset] = uint8(v)
221 dAtA[offset+1] = uint8(v >> 8)
222 dAtA[offset+2] = uint8(v >> 16)
223 dAtA[offset+3] = uint8(v >> 24)
224 return offset + 4
225}
226func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
227 for v >= 1<<7 {
228 dAtA[offset] = uint8(v&0x7f | 0x80)
229 v >>= 7
230 offset++
231 }
232 dAtA[offset] = uint8(v)
233 return offset + 1
234}
235func (m *StorageClass) Size() (n int) {
236 var l int
237 _ = l
238 l = m.ObjectMeta.Size()
239 n += 1 + l + sovGenerated(uint64(l))
240 l = len(m.Provisioner)
241 n += 1 + l + sovGenerated(uint64(l))
242 if len(m.Parameters) > 0 {
243 for k, v := range m.Parameters {
244 _ = k
245 _ = v
246 mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
247 n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
248 }
249 }
250 if m.ReclaimPolicy != nil {
251 l = len(*m.ReclaimPolicy)
252 n += 1 + l + sovGenerated(uint64(l))
253 }
254 if len(m.MountOptions) > 0 {
255 for _, s := range m.MountOptions {
256 l = len(s)
257 n += 1 + l + sovGenerated(uint64(l))
258 }
259 }
260 if m.AllowVolumeExpansion != nil {
261 n += 2
262 }
263 if m.VolumeBindingMode != nil {
264 l = len(*m.VolumeBindingMode)
265 n += 1 + l + sovGenerated(uint64(l))
266 }
267 if len(m.AllowedTopologies) > 0 {
268 for _, e := range m.AllowedTopologies {
269 l = e.Size()
270 n += 1 + l + sovGenerated(uint64(l))
271 }
272 }
273 return n
274}
275
276func (m *StorageClassList) Size() (n int) {
277 var l int
278 _ = l
279 l = m.ListMeta.Size()
280 n += 1 + l + sovGenerated(uint64(l))
281 if len(m.Items) > 0 {
282 for _, e := range m.Items {
283 l = e.Size()
284 n += 1 + l + sovGenerated(uint64(l))
285 }
286 }
287 return n
288}
289
290func sovGenerated(x uint64) (n int) {
291 for {
292 n++
293 x >>= 7
294 if x == 0 {
295 break
296 }
297 }
298 return n
299}
300func sozGenerated(x uint64) (n int) {
301 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
302}
303func (this *StorageClass) String() string {
304 if this == nil {
305 return "nil"
306 }
307 keysForParameters := make([]string, 0, len(this.Parameters))
308 for k := range this.Parameters {
309 keysForParameters = append(keysForParameters, k)
310 }
311 github_com_gogo_protobuf_sortkeys.Strings(keysForParameters)
312 mapStringForParameters := "map[string]string{"
313 for _, k := range keysForParameters {
314 mapStringForParameters += fmt.Sprintf("%v: %v,", k, this.Parameters[k])
315 }
316 mapStringForParameters += "}"
317 s := strings.Join([]string{`&StorageClass{`,
318 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
319 `Provisioner:` + fmt.Sprintf("%v", this.Provisioner) + `,`,
320 `Parameters:` + mapStringForParameters + `,`,
321 `ReclaimPolicy:` + valueToStringGenerated(this.ReclaimPolicy) + `,`,
322 `MountOptions:` + fmt.Sprintf("%v", this.MountOptions) + `,`,
323 `AllowVolumeExpansion:` + valueToStringGenerated(this.AllowVolumeExpansion) + `,`,
324 `VolumeBindingMode:` + valueToStringGenerated(this.VolumeBindingMode) + `,`,
325 `AllowedTopologies:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.AllowedTopologies), "TopologySelectorTerm", "k8s_io_api_core_v1.TopologySelectorTerm", 1), `&`, ``, 1) + `,`,
326 `}`,
327 }, "")
328 return s
329}
330func (this *StorageClassList) String() string {
331 if this == nil {
332 return "nil"
333 }
334 s := strings.Join([]string{`&StorageClassList{`,
335 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
336 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "StorageClass", "StorageClass", 1), `&`, ``, 1) + `,`,
337 `}`,
338 }, "")
339 return s
340}
341func valueToStringGenerated(v interface{}) string {
342 rv := reflect.ValueOf(v)
343 if rv.IsNil() {
344 return "nil"
345 }
346 pv := reflect.Indirect(rv).Interface()
347 return fmt.Sprintf("*%v", pv)
348}
349func (m *StorageClass) Unmarshal(dAtA []byte) error {
350 l := len(dAtA)
351 iNdEx := 0
352 for iNdEx < l {
353 preIndex := iNdEx
354 var wire uint64
355 for shift := uint(0); ; shift += 7 {
356 if shift >= 64 {
357 return ErrIntOverflowGenerated
358 }
359 if iNdEx >= l {
360 return io.ErrUnexpectedEOF
361 }
362 b := dAtA[iNdEx]
363 iNdEx++
364 wire |= (uint64(b) & 0x7F) << shift
365 if b < 0x80 {
366 break
367 }
368 }
369 fieldNum := int32(wire >> 3)
370 wireType := int(wire & 0x7)
371 if wireType == 4 {
372 return fmt.Errorf("proto: StorageClass: wiretype end group for non-group")
373 }
374 if fieldNum <= 0 {
375 return fmt.Errorf("proto: StorageClass: illegal tag %d (wire type %d)", fieldNum, wire)
376 }
377 switch fieldNum {
378 case 1:
379 if wireType != 2 {
380 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
381 }
382 var msglen int
383 for shift := uint(0); ; shift += 7 {
384 if shift >= 64 {
385 return ErrIntOverflowGenerated
386 }
387 if iNdEx >= l {
388 return io.ErrUnexpectedEOF
389 }
390 b := dAtA[iNdEx]
391 iNdEx++
392 msglen |= (int(b) & 0x7F) << shift
393 if b < 0x80 {
394 break
395 }
396 }
397 if msglen < 0 {
398 return ErrInvalidLengthGenerated
399 }
400 postIndex := iNdEx + msglen
401 if postIndex > l {
402 return io.ErrUnexpectedEOF
403 }
404 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
405 return err
406 }
407 iNdEx = postIndex
408 case 2:
409 if wireType != 2 {
410 return fmt.Errorf("proto: wrong wireType = %d for field Provisioner", wireType)
411 }
412 var stringLen uint64
413 for shift := uint(0); ; shift += 7 {
414 if shift >= 64 {
415 return ErrIntOverflowGenerated
416 }
417 if iNdEx >= l {
418 return io.ErrUnexpectedEOF
419 }
420 b := dAtA[iNdEx]
421 iNdEx++
422 stringLen |= (uint64(b) & 0x7F) << shift
423 if b < 0x80 {
424 break
425 }
426 }
427 intStringLen := int(stringLen)
428 if intStringLen < 0 {
429 return ErrInvalidLengthGenerated
430 }
431 postIndex := iNdEx + intStringLen
432 if postIndex > l {
433 return io.ErrUnexpectedEOF
434 }
435 m.Provisioner = string(dAtA[iNdEx:postIndex])
436 iNdEx = postIndex
437 case 3:
438 if wireType != 2 {
439 return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType)
440 }
441 var msglen int
442 for shift := uint(0); ; shift += 7 {
443 if shift >= 64 {
444 return ErrIntOverflowGenerated
445 }
446 if iNdEx >= l {
447 return io.ErrUnexpectedEOF
448 }
449 b := dAtA[iNdEx]
450 iNdEx++
451 msglen |= (int(b) & 0x7F) << shift
452 if b < 0x80 {
453 break
454 }
455 }
456 if msglen < 0 {
457 return ErrInvalidLengthGenerated
458 }
459 postIndex := iNdEx + msglen
460 if postIndex > l {
461 return io.ErrUnexpectedEOF
462 }
463 var keykey uint64
464 for shift := uint(0); ; shift += 7 {
465 if shift >= 64 {
466 return ErrIntOverflowGenerated
467 }
468 if iNdEx >= l {
469 return io.ErrUnexpectedEOF
470 }
471 b := dAtA[iNdEx]
472 iNdEx++
473 keykey |= (uint64(b) & 0x7F) << shift
474 if b < 0x80 {
475 break
476 }
477 }
478 var stringLenmapkey uint64
479 for shift := uint(0); ; shift += 7 {
480 if shift >= 64 {
481 return ErrIntOverflowGenerated
482 }
483 if iNdEx >= l {
484 return io.ErrUnexpectedEOF
485 }
486 b := dAtA[iNdEx]
487 iNdEx++
488 stringLenmapkey |= (uint64(b) & 0x7F) << shift
489 if b < 0x80 {
490 break
491 }
492 }
493 intStringLenmapkey := int(stringLenmapkey)
494 if intStringLenmapkey < 0 {
495 return ErrInvalidLengthGenerated
496 }
497 postStringIndexmapkey := iNdEx + intStringLenmapkey
498 if postStringIndexmapkey > l {
499 return io.ErrUnexpectedEOF
500 }
501 mapkey := string(dAtA[iNdEx:postStringIndexmapkey])
502 iNdEx = postStringIndexmapkey
503 if m.Parameters == nil {
504 m.Parameters = make(map[string]string)
505 }
506 if iNdEx < postIndex {
507 var valuekey uint64
508 for shift := uint(0); ; shift += 7 {
509 if shift >= 64 {
510 return ErrIntOverflowGenerated
511 }
512 if iNdEx >= l {
513 return io.ErrUnexpectedEOF
514 }
515 b := dAtA[iNdEx]
516 iNdEx++
517 valuekey |= (uint64(b) & 0x7F) << shift
518 if b < 0x80 {
519 break
520 }
521 }
522 var stringLenmapvalue uint64
523 for shift := uint(0); ; shift += 7 {
524 if shift >= 64 {
525 return ErrIntOverflowGenerated
526 }
527 if iNdEx >= l {
528 return io.ErrUnexpectedEOF
529 }
530 b := dAtA[iNdEx]
531 iNdEx++
532 stringLenmapvalue |= (uint64(b) & 0x7F) << shift
533 if b < 0x80 {
534 break
535 }
536 }
537 intStringLenmapvalue := int(stringLenmapvalue)
538 if intStringLenmapvalue < 0 {
539 return ErrInvalidLengthGenerated
540 }
541 postStringIndexmapvalue := iNdEx + intStringLenmapvalue
542 if postStringIndexmapvalue > l {
543 return io.ErrUnexpectedEOF
544 }
545 mapvalue := string(dAtA[iNdEx:postStringIndexmapvalue])
546 iNdEx = postStringIndexmapvalue
547 m.Parameters[mapkey] = mapvalue
548 } else {
549 var mapvalue string
550 m.Parameters[mapkey] = mapvalue
551 }
552 iNdEx = postIndex
553 case 4:
554 if wireType != 2 {
555 return fmt.Errorf("proto: wrong wireType = %d for field ReclaimPolicy", wireType)
556 }
557 var stringLen uint64
558 for shift := uint(0); ; shift += 7 {
559 if shift >= 64 {
560 return ErrIntOverflowGenerated
561 }
562 if iNdEx >= l {
563 return io.ErrUnexpectedEOF
564 }
565 b := dAtA[iNdEx]
566 iNdEx++
567 stringLen |= (uint64(b) & 0x7F) << shift
568 if b < 0x80 {
569 break
570 }
571 }
572 intStringLen := int(stringLen)
573 if intStringLen < 0 {
574 return ErrInvalidLengthGenerated
575 }
576 postIndex := iNdEx + intStringLen
577 if postIndex > l {
578 return io.ErrUnexpectedEOF
579 }
580 s := k8s_io_api_core_v1.PersistentVolumeReclaimPolicy(dAtA[iNdEx:postIndex])
581 m.ReclaimPolicy = &s
582 iNdEx = postIndex
583 case 5:
584 if wireType != 2 {
585 return fmt.Errorf("proto: wrong wireType = %d for field MountOptions", wireType)
586 }
587 var stringLen uint64
588 for shift := uint(0); ; shift += 7 {
589 if shift >= 64 {
590 return ErrIntOverflowGenerated
591 }
592 if iNdEx >= l {
593 return io.ErrUnexpectedEOF
594 }
595 b := dAtA[iNdEx]
596 iNdEx++
597 stringLen |= (uint64(b) & 0x7F) << shift
598 if b < 0x80 {
599 break
600 }
601 }
602 intStringLen := int(stringLen)
603 if intStringLen < 0 {
604 return ErrInvalidLengthGenerated
605 }
606 postIndex := iNdEx + intStringLen
607 if postIndex > l {
608 return io.ErrUnexpectedEOF
609 }
610 m.MountOptions = append(m.MountOptions, string(dAtA[iNdEx:postIndex]))
611 iNdEx = postIndex
612 case 6:
613 if wireType != 0 {
614 return fmt.Errorf("proto: wrong wireType = %d for field AllowVolumeExpansion", wireType)
615 }
616 var v int
617 for shift := uint(0); ; shift += 7 {
618 if shift >= 64 {
619 return ErrIntOverflowGenerated
620 }
621 if iNdEx >= l {
622 return io.ErrUnexpectedEOF
623 }
624 b := dAtA[iNdEx]
625 iNdEx++
626 v |= (int(b) & 0x7F) << shift
627 if b < 0x80 {
628 break
629 }
630 }
631 b := bool(v != 0)
632 m.AllowVolumeExpansion = &b
633 case 7:
634 if wireType != 2 {
635 return fmt.Errorf("proto: wrong wireType = %d for field VolumeBindingMode", wireType)
636 }
637 var stringLen uint64
638 for shift := uint(0); ; shift += 7 {
639 if shift >= 64 {
640 return ErrIntOverflowGenerated
641 }
642 if iNdEx >= l {
643 return io.ErrUnexpectedEOF
644 }
645 b := dAtA[iNdEx]
646 iNdEx++
647 stringLen |= (uint64(b) & 0x7F) << shift
648 if b < 0x80 {
649 break
650 }
651 }
652 intStringLen := int(stringLen)
653 if intStringLen < 0 {
654 return ErrInvalidLengthGenerated
655 }
656 postIndex := iNdEx + intStringLen
657 if postIndex > l {
658 return io.ErrUnexpectedEOF
659 }
660 s := VolumeBindingMode(dAtA[iNdEx:postIndex])
661 m.VolumeBindingMode = &s
662 iNdEx = postIndex
663 case 8:
664 if wireType != 2 {
665 return fmt.Errorf("proto: wrong wireType = %d for field AllowedTopologies", wireType)
666 }
667 var msglen int
668 for shift := uint(0); ; shift += 7 {
669 if shift >= 64 {
670 return ErrIntOverflowGenerated
671 }
672 if iNdEx >= l {
673 return io.ErrUnexpectedEOF
674 }
675 b := dAtA[iNdEx]
676 iNdEx++
677 msglen |= (int(b) & 0x7F) << shift
678 if b < 0x80 {
679 break
680 }
681 }
682 if msglen < 0 {
683 return ErrInvalidLengthGenerated
684 }
685 postIndex := iNdEx + msglen
686 if postIndex > l {
687 return io.ErrUnexpectedEOF
688 }
689 m.AllowedTopologies = append(m.AllowedTopologies, k8s_io_api_core_v1.TopologySelectorTerm{})
690 if err := m.AllowedTopologies[len(m.AllowedTopologies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
691 return err
692 }
693 iNdEx = postIndex
694 default:
695 iNdEx = preIndex
696 skippy, err := skipGenerated(dAtA[iNdEx:])
697 if err != nil {
698 return err
699 }
700 if skippy < 0 {
701 return ErrInvalidLengthGenerated
702 }
703 if (iNdEx + skippy) > l {
704 return io.ErrUnexpectedEOF
705 }
706 iNdEx += skippy
707 }
708 }
709
710 if iNdEx > l {
711 return io.ErrUnexpectedEOF
712 }
713 return nil
714}
715func (m *StorageClassList) Unmarshal(dAtA []byte) error {
716 l := len(dAtA)
717 iNdEx := 0
718 for iNdEx < l {
719 preIndex := iNdEx
720 var wire uint64
721 for shift := uint(0); ; shift += 7 {
722 if shift >= 64 {
723 return ErrIntOverflowGenerated
724 }
725 if iNdEx >= l {
726 return io.ErrUnexpectedEOF
727 }
728 b := dAtA[iNdEx]
729 iNdEx++
730 wire |= (uint64(b) & 0x7F) << shift
731 if b < 0x80 {
732 break
733 }
734 }
735 fieldNum := int32(wire >> 3)
736 wireType := int(wire & 0x7)
737 if wireType == 4 {
738 return fmt.Errorf("proto: StorageClassList: wiretype end group for non-group")
739 }
740 if fieldNum <= 0 {
741 return fmt.Errorf("proto: StorageClassList: illegal tag %d (wire type %d)", fieldNum, wire)
742 }
743 switch fieldNum {
744 case 1:
745 if wireType != 2 {
746 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
747 }
748 var msglen int
749 for shift := uint(0); ; shift += 7 {
750 if shift >= 64 {
751 return ErrIntOverflowGenerated
752 }
753 if iNdEx >= l {
754 return io.ErrUnexpectedEOF
755 }
756 b := dAtA[iNdEx]
757 iNdEx++
758 msglen |= (int(b) & 0x7F) << shift
759 if b < 0x80 {
760 break
761 }
762 }
763 if msglen < 0 {
764 return ErrInvalidLengthGenerated
765 }
766 postIndex := iNdEx + msglen
767 if postIndex > l {
768 return io.ErrUnexpectedEOF
769 }
770 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
771 return err
772 }
773 iNdEx = postIndex
774 case 2:
775 if wireType != 2 {
776 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
777 }
778 var msglen int
779 for shift := uint(0); ; shift += 7 {
780 if shift >= 64 {
781 return ErrIntOverflowGenerated
782 }
783 if iNdEx >= l {
784 return io.ErrUnexpectedEOF
785 }
786 b := dAtA[iNdEx]
787 iNdEx++
788 msglen |= (int(b) & 0x7F) << shift
789 if b < 0x80 {
790 break
791 }
792 }
793 if msglen < 0 {
794 return ErrInvalidLengthGenerated
795 }
796 postIndex := iNdEx + msglen
797 if postIndex > l {
798 return io.ErrUnexpectedEOF
799 }
800 m.Items = append(m.Items, StorageClass{})
801 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
802 return err
803 }
804 iNdEx = postIndex
805 default:
806 iNdEx = preIndex
807 skippy, err := skipGenerated(dAtA[iNdEx:])
808 if err != nil {
809 return err
810 }
811 if skippy < 0 {
812 return ErrInvalidLengthGenerated
813 }
814 if (iNdEx + skippy) > l {
815 return io.ErrUnexpectedEOF
816 }
817 iNdEx += skippy
818 }
819 }
820
821 if iNdEx > l {
822 return io.ErrUnexpectedEOF
823 }
824 return nil
825}
826func skipGenerated(dAtA []byte) (n int, err error) {
827 l := len(dAtA)
828 iNdEx := 0
829 for iNdEx < l {
830 var wire uint64
831 for shift := uint(0); ; shift += 7 {
832 if shift >= 64 {
833 return 0, ErrIntOverflowGenerated
834 }
835 if iNdEx >= l {
836 return 0, io.ErrUnexpectedEOF
837 }
838 b := dAtA[iNdEx]
839 iNdEx++
840 wire |= (uint64(b) & 0x7F) << shift
841 if b < 0x80 {
842 break
843 }
844 }
845 wireType := int(wire & 0x7)
846 switch wireType {
847 case 0:
848 for shift := uint(0); ; shift += 7 {
849 if shift >= 64 {
850 return 0, ErrIntOverflowGenerated
851 }
852 if iNdEx >= l {
853 return 0, io.ErrUnexpectedEOF
854 }
855 iNdEx++
856 if dAtA[iNdEx-1] < 0x80 {
857 break
858 }
859 }
860 return iNdEx, nil
861 case 1:
862 iNdEx += 8
863 return iNdEx, nil
864 case 2:
865 var length int
866 for shift := uint(0); ; shift += 7 {
867 if shift >= 64 {
868 return 0, ErrIntOverflowGenerated
869 }
870 if iNdEx >= l {
871 return 0, io.ErrUnexpectedEOF
872 }
873 b := dAtA[iNdEx]
874 iNdEx++
875 length |= (int(b) & 0x7F) << shift
876 if b < 0x80 {
877 break
878 }
879 }
880 iNdEx += length
881 if length < 0 {
882 return 0, ErrInvalidLengthGenerated
883 }
884 return iNdEx, nil
885 case 3:
886 for {
887 var innerWire uint64
888 var start int = iNdEx
889 for shift := uint(0); ; shift += 7 {
890 if shift >= 64 {
891 return 0, ErrIntOverflowGenerated
892 }
893 if iNdEx >= l {
894 return 0, io.ErrUnexpectedEOF
895 }
896 b := dAtA[iNdEx]
897 iNdEx++
898 innerWire |= (uint64(b) & 0x7F) << shift
899 if b < 0x80 {
900 break
901 }
902 }
903 innerWireType := int(innerWire & 0x7)
904 if innerWireType == 4 {
905 break
906 }
907 next, err := skipGenerated(dAtA[start:])
908 if err != nil {
909 return 0, err
910 }
911 iNdEx = start + next
912 }
913 return iNdEx, nil
914 case 4:
915 return iNdEx, nil
916 case 5:
917 iNdEx += 4
918 return iNdEx, nil
919 default:
920 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
921 }
922 }
923 panic("unreachable")
924}
925
926var (
927 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
928 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
929)
930
931func init() {
932 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/storage/v1/generated.proto", fileDescriptorGenerated)
933}
934
935var fileDescriptorGenerated = []byte{
936 // 677 bytes of a gzipped FileDescriptorProto
937 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xc1, 0x6e, 0xd3, 0x4a,
938 0x14, 0x8d, 0x93, 0x97, 0xbe, 0x74, 0xd2, 0xea, 0x25, 0x7e, 0x45, 0x32, 0x59, 0x38, 0x51, 0xd9,
939 0x44, 0x95, 0x18, 0x37, 0x6d, 0x41, 0x15, 0x12, 0x48, 0x35, 0xaa, 0x04, 0x52, 0xab, 0x46, 0x6e,
940 0x55, 0x21, 0xc4, 0x82, 0x89, 0x73, 0x71, 0x87, 0xd8, 0x33, 0x66, 0x66, 0x6c, 0xc8, 0x8e, 0x1f,
941 0x40, 0xe2, 0x7b, 0xf8, 0x82, 0x2e, 0xbb, 0xec, 0x2a, 0xa2, 0xe6, 0x2f, 0xba, 0x42, 0x76, 0x42,
942 0xe3, 0x26, 0xa9, 0xe8, 0x6e, 0xe6, 0xdc, 0x73, 0xce, 0x9d, 0x3b, 0xf7, 0x5e, 0xf4, 0x62, 0xb0,
943 0x2b, 0x31, 0xe5, 0xd6, 0x20, 0xea, 0x81, 0x60, 0xa0, 0x40, 0x5a, 0x31, 0xb0, 0x3e, 0x17, 0xd6,
944 0x24, 0x40, 0x42, 0x6a, 0x49, 0xc5, 0x05, 0xf1, 0xc0, 0x8a, 0x3b, 0x96, 0x07, 0x0c, 0x04, 0x51,
945 0xd0, 0xc7, 0xa1, 0xe0, 0x8a, 0xeb, 0x0f, 0xc6, 0x34, 0x4c, 0x42, 0x8a, 0x27, 0x34, 0x1c, 0x77,
946 0x1a, 0x8f, 0x3d, 0xaa, 0xce, 0xa2, 0x1e, 0x76, 0x79, 0x60, 0x79, 0xdc, 0xe3, 0x56, 0xc6, 0xee,
947 0x45, 0x1f, 0xb2, 0x5b, 0x76, 0xc9, 0x4e, 0x63, 0x97, 0xc6, 0x7a, 0x2e, 0x99, 0xcb, 0xc5, 0xa2,
948 0x4c, 0x8d, 0x8d, 0x85, 0x0f, 0xea, 0x81, 0x22, 0xf3, 0xdc, 0x9d, 0x29, 0x37, 0x20, 0xee, 0x19,
949 0x65, 0x20, 0x86, 0x56, 0x38, 0xf0, 0x52, 0x40, 0x5a, 0x01, 0x28, 0xb2, 0x28, 0x83, 0x75, 0x97,
950 0x4a, 0x44, 0x4c, 0xd1, 0x00, 0xe6, 0x04, 0x4f, 0xff, 0x26, 0x90, 0xee, 0x19, 0x04, 0x64, 0x4e,
951 0xb7, 0x7d, 0x97, 0x2e, 0x52, 0xd4, 0xb7, 0x28, 0x53, 0x52, 0x89, 0x59, 0xd1, 0xfa, 0xb7, 0x25,
952 0xb4, 0x72, 0x3c, 0xae, 0xfb, 0xa5, 0x4f, 0xa4, 0xd4, 0xdf, 0xa3, 0x4a, 0x5a, 0x49, 0x9f, 0x28,
953 0x62, 0x68, 0x2d, 0xad, 0x5d, 0xdd, 0xda, 0xc4, 0xd3, 0x6e, 0xdc, 0x18, 0xe3, 0x70, 0xe0, 0xa5,
954 0x80, 0xc4, 0x29, 0x1b, 0xc7, 0x1d, 0x7c, 0xd4, 0xfb, 0x08, 0xae, 0x3a, 0x04, 0x45, 0x6c, 0xfd,
955 0x7c, 0xd4, 0x2c, 0x24, 0xa3, 0x26, 0x9a, 0x62, 0xce, 0x8d, 0xab, 0xfe, 0x04, 0x55, 0x43, 0xc1,
956 0x63, 0x2a, 0x29, 0x67, 0x20, 0x8c, 0x62, 0x4b, 0x6b, 0x2f, 0xdb, 0xff, 0x4f, 0x24, 0xd5, 0xee,
957 0x34, 0xe4, 0xe4, 0x79, 0xba, 0x87, 0x50, 0x48, 0x04, 0x09, 0x40, 0x81, 0x90, 0x46, 0xa9, 0x55,
958 0x6a, 0x57, 0xb7, 0xb6, 0xf1, 0xc2, 0x41, 0xc1, 0xf9, 0x8a, 0x70, 0xf7, 0x46, 0xb5, 0xcf, 0x94,
959 0x18, 0x4e, 0x5f, 0x37, 0x0d, 0x38, 0x39, 0x6b, 0x7d, 0x80, 0x56, 0x05, 0xb8, 0x3e, 0xa1, 0x41,
960 0x97, 0xfb, 0xd4, 0x1d, 0x1a, 0xff, 0x64, 0x2f, 0xdc, 0x4f, 0x46, 0xcd, 0x55, 0x27, 0x1f, 0xb8,
961 0x1e, 0x35, 0x37, 0xe7, 0x47, 0x0c, 0x77, 0x41, 0x48, 0x2a, 0x15, 0x30, 0x75, 0xca, 0xfd, 0x28,
962 0x80, 0x5b, 0x1a, 0xe7, 0xb6, 0xb7, 0xbe, 0x83, 0x56, 0x02, 0x1e, 0x31, 0x75, 0x14, 0x2a, 0xca,
963 0x99, 0x34, 0xca, 0xad, 0x52, 0x7b, 0xd9, 0xae, 0x25, 0xa3, 0xe6, 0xca, 0x61, 0x0e, 0x77, 0x6e,
964 0xb1, 0xf4, 0x03, 0xb4, 0x46, 0x7c, 0x9f, 0x7f, 0x1e, 0x27, 0xd8, 0xff, 0x12, 0x12, 0x96, 0xfe,
965 0x92, 0xb1, 0xd4, 0xd2, 0xda, 0x15, 0xdb, 0x48, 0x46, 0xcd, 0xb5, 0xbd, 0x05, 0x71, 0x67, 0xa1,
966 0x4a, 0x7f, 0x83, 0xea, 0x71, 0x06, 0xd9, 0x94, 0xf5, 0x29, 0xf3, 0x0e, 0x79, 0x1f, 0x8c, 0x7f,
967 0xb3, 0xa2, 0x37, 0x92, 0x51, 0xb3, 0x7e, 0x3a, 0x1b, 0xbc, 0x5e, 0x04, 0x3a, 0xf3, 0x26, 0xfa,
968 0x27, 0x54, 0xcf, 0x32, 0x42, 0xff, 0x84, 0x87, 0xdc, 0xe7, 0x1e, 0x05, 0x69, 0x54, 0xb2, 0xd6,
969 0xb5, 0xf3, 0xad, 0x4b, 0xbf, 0x2e, 0xed, 0xdb, 0x84, 0x35, 0x3c, 0x06, 0x1f, 0x5c, 0xc5, 0xc5,
970 0x09, 0x88, 0xc0, 0x7e, 0x38, 0xe9, 0x57, 0x7d, 0x6f, 0xd6, 0xca, 0x99, 0x77, 0x6f, 0x3c, 0x47,
971 0xff, 0xcd, 0x34, 0x5c, 0xaf, 0xa1, 0xd2, 0x00, 0x86, 0xd9, 0x34, 0x2f, 0x3b, 0xe9, 0x51, 0x5f,
972 0x43, 0xe5, 0x98, 0xf8, 0x11, 0x8c, 0x87, 0xcf, 0x19, 0x5f, 0x9e, 0x15, 0x77, 0xb5, 0xf5, 0x1f,
973 0x1a, 0xaa, 0xe5, 0xa7, 0xe7, 0x80, 0x4a, 0xa5, 0xbf, 0x9b, 0xdb, 0x09, 0x7c, 0xbf, 0x9d, 0x48,
974 0xd5, 0xd9, 0x46, 0xd4, 0x26, 0x35, 0x54, 0xfe, 0x20, 0xb9, 0x7d, 0x78, 0x85, 0xca, 0x54, 0x41,
975 0x20, 0x8d, 0x62, 0xf6, 0x31, 0x8f, 0xee, 0x31, 0xd3, 0xf6, 0xea, 0xc4, 0xaf, 0xfc, 0x3a, 0x55,
976 0x3a, 0x63, 0x03, 0xbb, 0x7d, 0x7e, 0x65, 0x16, 0x2e, 0xae, 0xcc, 0xc2, 0xe5, 0x95, 0x59, 0xf8,
977 0x9a, 0x98, 0xda, 0x79, 0x62, 0x6a, 0x17, 0x89, 0xa9, 0x5d, 0x26, 0xa6, 0xf6, 0x33, 0x31, 0xb5,
978 0xef, 0xbf, 0xcc, 0xc2, 0xdb, 0x62, 0xdc, 0xf9, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x0e, 0x67, 0x74,
979 0x30, 0xa1, 0x05, 0x00, 0x00,
980}