blob: 8630937a29bcb3999cd0b74cb91e7e6f81c9b123 [file] [log] [blame]
Zack Williamse940c7a2019-08-21 14:25:39 -07001/*
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/storage/v1alpha1/generated.proto
19
20/*
21 Package v1alpha1 is a generated protocol buffer package.
22
23 It is generated from these files:
24 k8s.io/kubernetes/vendor/k8s.io/api/storage/v1alpha1/generated.proto
25
26 It has these top-level messages:
27 VolumeAttachment
28 VolumeAttachmentList
29 VolumeAttachmentSource
30 VolumeAttachmentSpec
31 VolumeAttachmentStatus
32 VolumeError
33*/
34package v1alpha1
35
Scott Baker4a35a702019-11-26 08:17:33 -080036import (
37 fmt "fmt"
Zack Williamse940c7a2019-08-21 14:25:39 -070038
Scott Baker4a35a702019-11-26 08:17:33 -080039 proto "github.com/gogo/protobuf/proto"
Zack Williamse940c7a2019-08-21 14:25:39 -070040
Scott Baker4a35a702019-11-26 08:17:33 -080041 math "math"
Zack Williamse940c7a2019-08-21 14:25:39 -070042
Scott Baker4a35a702019-11-26 08:17:33 -080043 k8s_io_api_core_v1 "k8s.io/api/core/v1"
Zack Williamse940c7a2019-08-21 14:25:39 -070044
Scott Baker4a35a702019-11-26 08:17:33 -080045 github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
46
47 strings "strings"
48
49 reflect "reflect"
50
51 io "io"
52)
Zack Williamse940c7a2019-08-21 14:25:39 -070053
54// Reference imports to suppress errors if they are not otherwise used.
55var _ = proto.Marshal
56var _ = fmt.Errorf
57var _ = math.Inf
58
59// This is a compile-time assertion to ensure that this generated file
60// is compatible with the proto package it is being compiled against.
61// A compilation error at this line likely means your copy of the
62// proto package needs to be updated.
63const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
64
65func (m *VolumeAttachment) Reset() { *m = VolumeAttachment{} }
66func (*VolumeAttachment) ProtoMessage() {}
67func (*VolumeAttachment) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
68
69func (m *VolumeAttachmentList) Reset() { *m = VolumeAttachmentList{} }
70func (*VolumeAttachmentList) ProtoMessage() {}
71func (*VolumeAttachmentList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
72
73func (m *VolumeAttachmentSource) Reset() { *m = VolumeAttachmentSource{} }
74func (*VolumeAttachmentSource) ProtoMessage() {}
75func (*VolumeAttachmentSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
76
77func (m *VolumeAttachmentSpec) Reset() { *m = VolumeAttachmentSpec{} }
78func (*VolumeAttachmentSpec) ProtoMessage() {}
79func (*VolumeAttachmentSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
80
81func (m *VolumeAttachmentStatus) Reset() { *m = VolumeAttachmentStatus{} }
82func (*VolumeAttachmentStatus) ProtoMessage() {}
83func (*VolumeAttachmentStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} }
84
85func (m *VolumeError) Reset() { *m = VolumeError{} }
86func (*VolumeError) ProtoMessage() {}
87func (*VolumeError) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
88
89func init() {
90 proto.RegisterType((*VolumeAttachment)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachment")
91 proto.RegisterType((*VolumeAttachmentList)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentList")
92 proto.RegisterType((*VolumeAttachmentSource)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentSource")
93 proto.RegisterType((*VolumeAttachmentSpec)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentSpec")
94 proto.RegisterType((*VolumeAttachmentStatus)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentStatus")
95 proto.RegisterType((*VolumeError)(nil), "k8s.io.api.storage.v1alpha1.VolumeError")
96}
97func (m *VolumeAttachment) Marshal() (dAtA []byte, err error) {
98 size := m.Size()
99 dAtA = make([]byte, size)
100 n, err := m.MarshalTo(dAtA)
101 if err != nil {
102 return nil, err
103 }
104 return dAtA[:n], nil
105}
106
107func (m *VolumeAttachment) MarshalTo(dAtA []byte) (int, error) {
108 var i int
109 _ = i
110 var l int
111 _ = l
112 dAtA[i] = 0xa
113 i++
114 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
115 n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
116 if err != nil {
117 return 0, err
118 }
119 i += n1
120 dAtA[i] = 0x12
121 i++
122 i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
123 n2, err := m.Spec.MarshalTo(dAtA[i:])
124 if err != nil {
125 return 0, err
126 }
127 i += n2
128 dAtA[i] = 0x1a
129 i++
130 i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size()))
131 n3, err := m.Status.MarshalTo(dAtA[i:])
132 if err != nil {
133 return 0, err
134 }
135 i += n3
136 return i, nil
137}
138
139func (m *VolumeAttachmentList) Marshal() (dAtA []byte, err error) {
140 size := m.Size()
141 dAtA = make([]byte, size)
142 n, err := m.MarshalTo(dAtA)
143 if err != nil {
144 return nil, err
145 }
146 return dAtA[:n], nil
147}
148
149func (m *VolumeAttachmentList) MarshalTo(dAtA []byte) (int, error) {
150 var i int
151 _ = i
152 var l int
153 _ = l
154 dAtA[i] = 0xa
155 i++
156 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
157 n4, err := m.ListMeta.MarshalTo(dAtA[i:])
158 if err != nil {
159 return 0, err
160 }
161 i += n4
162 if len(m.Items) > 0 {
163 for _, msg := range m.Items {
164 dAtA[i] = 0x12
165 i++
166 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
167 n, err := msg.MarshalTo(dAtA[i:])
168 if err != nil {
169 return 0, err
170 }
171 i += n
172 }
173 }
174 return i, nil
175}
176
177func (m *VolumeAttachmentSource) Marshal() (dAtA []byte, err error) {
178 size := m.Size()
179 dAtA = make([]byte, size)
180 n, err := m.MarshalTo(dAtA)
181 if err != nil {
182 return nil, err
183 }
184 return dAtA[:n], nil
185}
186
187func (m *VolumeAttachmentSource) MarshalTo(dAtA []byte) (int, error) {
188 var i int
189 _ = i
190 var l int
191 _ = l
192 if m.PersistentVolumeName != nil {
193 dAtA[i] = 0xa
194 i++
195 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PersistentVolumeName)))
196 i += copy(dAtA[i:], *m.PersistentVolumeName)
197 }
198 if m.InlineVolumeSpec != nil {
199 dAtA[i] = 0x12
200 i++
201 i = encodeVarintGenerated(dAtA, i, uint64(m.InlineVolumeSpec.Size()))
202 n5, err := m.InlineVolumeSpec.MarshalTo(dAtA[i:])
203 if err != nil {
204 return 0, err
205 }
206 i += n5
207 }
208 return i, nil
209}
210
211func (m *VolumeAttachmentSpec) Marshal() (dAtA []byte, err error) {
212 size := m.Size()
213 dAtA = make([]byte, size)
214 n, err := m.MarshalTo(dAtA)
215 if err != nil {
216 return nil, err
217 }
218 return dAtA[:n], nil
219}
220
221func (m *VolumeAttachmentSpec) MarshalTo(dAtA []byte) (int, error) {
222 var i int
223 _ = i
224 var l int
225 _ = l
226 dAtA[i] = 0xa
227 i++
228 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Attacher)))
229 i += copy(dAtA[i:], m.Attacher)
230 dAtA[i] = 0x12
231 i++
232 i = encodeVarintGenerated(dAtA, i, uint64(m.Source.Size()))
233 n6, err := m.Source.MarshalTo(dAtA[i:])
234 if err != nil {
235 return 0, err
236 }
237 i += n6
238 dAtA[i] = 0x1a
239 i++
240 i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeName)))
241 i += copy(dAtA[i:], m.NodeName)
242 return i, nil
243}
244
245func (m *VolumeAttachmentStatus) Marshal() (dAtA []byte, err error) {
246 size := m.Size()
247 dAtA = make([]byte, size)
248 n, err := m.MarshalTo(dAtA)
249 if err != nil {
250 return nil, err
251 }
252 return dAtA[:n], nil
253}
254
255func (m *VolumeAttachmentStatus) MarshalTo(dAtA []byte) (int, error) {
256 var i int
257 _ = i
258 var l int
259 _ = l
260 dAtA[i] = 0x8
261 i++
262 if m.Attached {
263 dAtA[i] = 1
264 } else {
265 dAtA[i] = 0
266 }
267 i++
268 if len(m.AttachmentMetadata) > 0 {
269 keysForAttachmentMetadata := make([]string, 0, len(m.AttachmentMetadata))
270 for k := range m.AttachmentMetadata {
271 keysForAttachmentMetadata = append(keysForAttachmentMetadata, string(k))
272 }
273 github_com_gogo_protobuf_sortkeys.Strings(keysForAttachmentMetadata)
274 for _, k := range keysForAttachmentMetadata {
275 dAtA[i] = 0x12
276 i++
277 v := m.AttachmentMetadata[string(k)]
278 mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
279 i = encodeVarintGenerated(dAtA, i, uint64(mapSize))
280 dAtA[i] = 0xa
281 i++
282 i = encodeVarintGenerated(dAtA, i, uint64(len(k)))
283 i += copy(dAtA[i:], k)
284 dAtA[i] = 0x12
285 i++
286 i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
287 i += copy(dAtA[i:], v)
288 }
289 }
290 if m.AttachError != nil {
291 dAtA[i] = 0x1a
292 i++
293 i = encodeVarintGenerated(dAtA, i, uint64(m.AttachError.Size()))
294 n7, err := m.AttachError.MarshalTo(dAtA[i:])
295 if err != nil {
296 return 0, err
297 }
298 i += n7
299 }
300 if m.DetachError != nil {
301 dAtA[i] = 0x22
302 i++
303 i = encodeVarintGenerated(dAtA, i, uint64(m.DetachError.Size()))
304 n8, err := m.DetachError.MarshalTo(dAtA[i:])
305 if err != nil {
306 return 0, err
307 }
308 i += n8
309 }
310 return i, nil
311}
312
313func (m *VolumeError) Marshal() (dAtA []byte, err error) {
314 size := m.Size()
315 dAtA = make([]byte, size)
316 n, err := m.MarshalTo(dAtA)
317 if err != nil {
318 return nil, err
319 }
320 return dAtA[:n], nil
321}
322
323func (m *VolumeError) MarshalTo(dAtA []byte) (int, error) {
324 var i int
325 _ = i
326 var l int
327 _ = l
328 dAtA[i] = 0xa
329 i++
330 i = encodeVarintGenerated(dAtA, i, uint64(m.Time.Size()))
331 n9, err := m.Time.MarshalTo(dAtA[i:])
332 if err != nil {
333 return 0, err
334 }
335 i += n9
336 dAtA[i] = 0x12
337 i++
338 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
339 i += copy(dAtA[i:], m.Message)
340 return i, nil
341}
342
343func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
344 for v >= 1<<7 {
345 dAtA[offset] = uint8(v&0x7f | 0x80)
346 v >>= 7
347 offset++
348 }
349 dAtA[offset] = uint8(v)
350 return offset + 1
351}
352func (m *VolumeAttachment) Size() (n int) {
353 var l int
354 _ = l
355 l = m.ObjectMeta.Size()
356 n += 1 + l + sovGenerated(uint64(l))
357 l = m.Spec.Size()
358 n += 1 + l + sovGenerated(uint64(l))
359 l = m.Status.Size()
360 n += 1 + l + sovGenerated(uint64(l))
361 return n
362}
363
364func (m *VolumeAttachmentList) Size() (n int) {
365 var l int
366 _ = l
367 l = m.ListMeta.Size()
368 n += 1 + l + sovGenerated(uint64(l))
369 if len(m.Items) > 0 {
370 for _, e := range m.Items {
371 l = e.Size()
372 n += 1 + l + sovGenerated(uint64(l))
373 }
374 }
375 return n
376}
377
378func (m *VolumeAttachmentSource) Size() (n int) {
379 var l int
380 _ = l
381 if m.PersistentVolumeName != nil {
382 l = len(*m.PersistentVolumeName)
383 n += 1 + l + sovGenerated(uint64(l))
384 }
385 if m.InlineVolumeSpec != nil {
386 l = m.InlineVolumeSpec.Size()
387 n += 1 + l + sovGenerated(uint64(l))
388 }
389 return n
390}
391
392func (m *VolumeAttachmentSpec) Size() (n int) {
393 var l int
394 _ = l
395 l = len(m.Attacher)
396 n += 1 + l + sovGenerated(uint64(l))
397 l = m.Source.Size()
398 n += 1 + l + sovGenerated(uint64(l))
399 l = len(m.NodeName)
400 n += 1 + l + sovGenerated(uint64(l))
401 return n
402}
403
404func (m *VolumeAttachmentStatus) Size() (n int) {
405 var l int
406 _ = l
407 n += 2
408 if len(m.AttachmentMetadata) > 0 {
409 for k, v := range m.AttachmentMetadata {
410 _ = k
411 _ = v
412 mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
413 n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
414 }
415 }
416 if m.AttachError != nil {
417 l = m.AttachError.Size()
418 n += 1 + l + sovGenerated(uint64(l))
419 }
420 if m.DetachError != nil {
421 l = m.DetachError.Size()
422 n += 1 + l + sovGenerated(uint64(l))
423 }
424 return n
425}
426
427func (m *VolumeError) Size() (n int) {
428 var l int
429 _ = l
430 l = m.Time.Size()
431 n += 1 + l + sovGenerated(uint64(l))
432 l = len(m.Message)
433 n += 1 + l + sovGenerated(uint64(l))
434 return n
435}
436
437func sovGenerated(x uint64) (n int) {
438 for {
439 n++
440 x >>= 7
441 if x == 0 {
442 break
443 }
444 }
445 return n
446}
447func sozGenerated(x uint64) (n int) {
448 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
449}
450func (this *VolumeAttachment) String() string {
451 if this == nil {
452 return "nil"
453 }
454 s := strings.Join([]string{`&VolumeAttachment{`,
455 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
456 `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "VolumeAttachmentSpec", "VolumeAttachmentSpec", 1), `&`, ``, 1) + `,`,
457 `Status:` + strings.Replace(strings.Replace(this.Status.String(), "VolumeAttachmentStatus", "VolumeAttachmentStatus", 1), `&`, ``, 1) + `,`,
458 `}`,
459 }, "")
460 return s
461}
462func (this *VolumeAttachmentList) String() string {
463 if this == nil {
464 return "nil"
465 }
466 s := strings.Join([]string{`&VolumeAttachmentList{`,
467 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
468 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "VolumeAttachment", "VolumeAttachment", 1), `&`, ``, 1) + `,`,
469 `}`,
470 }, "")
471 return s
472}
473func (this *VolumeAttachmentSource) String() string {
474 if this == nil {
475 return "nil"
476 }
477 s := strings.Join([]string{`&VolumeAttachmentSource{`,
478 `PersistentVolumeName:` + valueToStringGenerated(this.PersistentVolumeName) + `,`,
479 `InlineVolumeSpec:` + strings.Replace(fmt.Sprintf("%v", this.InlineVolumeSpec), "PersistentVolumeSpec", "k8s_io_api_core_v1.PersistentVolumeSpec", 1) + `,`,
480 `}`,
481 }, "")
482 return s
483}
484func (this *VolumeAttachmentSpec) String() string {
485 if this == nil {
486 return "nil"
487 }
488 s := strings.Join([]string{`&VolumeAttachmentSpec{`,
489 `Attacher:` + fmt.Sprintf("%v", this.Attacher) + `,`,
490 `Source:` + strings.Replace(strings.Replace(this.Source.String(), "VolumeAttachmentSource", "VolumeAttachmentSource", 1), `&`, ``, 1) + `,`,
491 `NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`,
492 `}`,
493 }, "")
494 return s
495}
496func (this *VolumeAttachmentStatus) String() string {
497 if this == nil {
498 return "nil"
499 }
500 keysForAttachmentMetadata := make([]string, 0, len(this.AttachmentMetadata))
501 for k := range this.AttachmentMetadata {
502 keysForAttachmentMetadata = append(keysForAttachmentMetadata, k)
503 }
504 github_com_gogo_protobuf_sortkeys.Strings(keysForAttachmentMetadata)
505 mapStringForAttachmentMetadata := "map[string]string{"
506 for _, k := range keysForAttachmentMetadata {
507 mapStringForAttachmentMetadata += fmt.Sprintf("%v: %v,", k, this.AttachmentMetadata[k])
508 }
509 mapStringForAttachmentMetadata += "}"
510 s := strings.Join([]string{`&VolumeAttachmentStatus{`,
511 `Attached:` + fmt.Sprintf("%v", this.Attached) + `,`,
512 `AttachmentMetadata:` + mapStringForAttachmentMetadata + `,`,
513 `AttachError:` + strings.Replace(fmt.Sprintf("%v", this.AttachError), "VolumeError", "VolumeError", 1) + `,`,
514 `DetachError:` + strings.Replace(fmt.Sprintf("%v", this.DetachError), "VolumeError", "VolumeError", 1) + `,`,
515 `}`,
516 }, "")
517 return s
518}
519func (this *VolumeError) String() string {
520 if this == nil {
521 return "nil"
522 }
523 s := strings.Join([]string{`&VolumeError{`,
524 `Time:` + strings.Replace(strings.Replace(this.Time.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`,
525 `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
526 `}`,
527 }, "")
528 return s
529}
530func valueToStringGenerated(v interface{}) string {
531 rv := reflect.ValueOf(v)
532 if rv.IsNil() {
533 return "nil"
534 }
535 pv := reflect.Indirect(rv).Interface()
536 return fmt.Sprintf("*%v", pv)
537}
538func (m *VolumeAttachment) Unmarshal(dAtA []byte) error {
539 l := len(dAtA)
540 iNdEx := 0
541 for iNdEx < l {
542 preIndex := iNdEx
543 var wire uint64
544 for shift := uint(0); ; shift += 7 {
545 if shift >= 64 {
546 return ErrIntOverflowGenerated
547 }
548 if iNdEx >= l {
549 return io.ErrUnexpectedEOF
550 }
551 b := dAtA[iNdEx]
552 iNdEx++
553 wire |= (uint64(b) & 0x7F) << shift
554 if b < 0x80 {
555 break
556 }
557 }
558 fieldNum := int32(wire >> 3)
559 wireType := int(wire & 0x7)
560 if wireType == 4 {
561 return fmt.Errorf("proto: VolumeAttachment: wiretype end group for non-group")
562 }
563 if fieldNum <= 0 {
564 return fmt.Errorf("proto: VolumeAttachment: illegal tag %d (wire type %d)", fieldNum, wire)
565 }
566 switch fieldNum {
567 case 1:
568 if wireType != 2 {
569 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
570 }
571 var msglen int
572 for shift := uint(0); ; shift += 7 {
573 if shift >= 64 {
574 return ErrIntOverflowGenerated
575 }
576 if iNdEx >= l {
577 return io.ErrUnexpectedEOF
578 }
579 b := dAtA[iNdEx]
580 iNdEx++
581 msglen |= (int(b) & 0x7F) << shift
582 if b < 0x80 {
583 break
584 }
585 }
586 if msglen < 0 {
587 return ErrInvalidLengthGenerated
588 }
589 postIndex := iNdEx + msglen
590 if postIndex > l {
591 return io.ErrUnexpectedEOF
592 }
593 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
594 return err
595 }
596 iNdEx = postIndex
597 case 2:
598 if wireType != 2 {
599 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
600 }
601 var msglen int
602 for shift := uint(0); ; shift += 7 {
603 if shift >= 64 {
604 return ErrIntOverflowGenerated
605 }
606 if iNdEx >= l {
607 return io.ErrUnexpectedEOF
608 }
609 b := dAtA[iNdEx]
610 iNdEx++
611 msglen |= (int(b) & 0x7F) << shift
612 if b < 0x80 {
613 break
614 }
615 }
616 if msglen < 0 {
617 return ErrInvalidLengthGenerated
618 }
619 postIndex := iNdEx + msglen
620 if postIndex > l {
621 return io.ErrUnexpectedEOF
622 }
623 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
624 return err
625 }
626 iNdEx = postIndex
627 case 3:
628 if wireType != 2 {
629 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
630 }
631 var msglen int
632 for shift := uint(0); ; shift += 7 {
633 if shift >= 64 {
634 return ErrIntOverflowGenerated
635 }
636 if iNdEx >= l {
637 return io.ErrUnexpectedEOF
638 }
639 b := dAtA[iNdEx]
640 iNdEx++
641 msglen |= (int(b) & 0x7F) << shift
642 if b < 0x80 {
643 break
644 }
645 }
646 if msglen < 0 {
647 return ErrInvalidLengthGenerated
648 }
649 postIndex := iNdEx + msglen
650 if postIndex > l {
651 return io.ErrUnexpectedEOF
652 }
653 if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
654 return err
655 }
656 iNdEx = postIndex
657 default:
658 iNdEx = preIndex
659 skippy, err := skipGenerated(dAtA[iNdEx:])
660 if err != nil {
661 return err
662 }
663 if skippy < 0 {
664 return ErrInvalidLengthGenerated
665 }
666 if (iNdEx + skippy) > l {
667 return io.ErrUnexpectedEOF
668 }
669 iNdEx += skippy
670 }
671 }
672
673 if iNdEx > l {
674 return io.ErrUnexpectedEOF
675 }
676 return nil
677}
678func (m *VolumeAttachmentList) Unmarshal(dAtA []byte) error {
679 l := len(dAtA)
680 iNdEx := 0
681 for iNdEx < l {
682 preIndex := iNdEx
683 var wire uint64
684 for shift := uint(0); ; shift += 7 {
685 if shift >= 64 {
686 return ErrIntOverflowGenerated
687 }
688 if iNdEx >= l {
689 return io.ErrUnexpectedEOF
690 }
691 b := dAtA[iNdEx]
692 iNdEx++
693 wire |= (uint64(b) & 0x7F) << shift
694 if b < 0x80 {
695 break
696 }
697 }
698 fieldNum := int32(wire >> 3)
699 wireType := int(wire & 0x7)
700 if wireType == 4 {
701 return fmt.Errorf("proto: VolumeAttachmentList: wiretype end group for non-group")
702 }
703 if fieldNum <= 0 {
704 return fmt.Errorf("proto: VolumeAttachmentList: illegal tag %d (wire type %d)", fieldNum, wire)
705 }
706 switch fieldNum {
707 case 1:
708 if wireType != 2 {
709 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
710 }
711 var msglen int
712 for shift := uint(0); ; shift += 7 {
713 if shift >= 64 {
714 return ErrIntOverflowGenerated
715 }
716 if iNdEx >= l {
717 return io.ErrUnexpectedEOF
718 }
719 b := dAtA[iNdEx]
720 iNdEx++
721 msglen |= (int(b) & 0x7F) << shift
722 if b < 0x80 {
723 break
724 }
725 }
726 if msglen < 0 {
727 return ErrInvalidLengthGenerated
728 }
729 postIndex := iNdEx + msglen
730 if postIndex > l {
731 return io.ErrUnexpectedEOF
732 }
733 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
734 return err
735 }
736 iNdEx = postIndex
737 case 2:
738 if wireType != 2 {
739 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
740 }
741 var msglen int
742 for shift := uint(0); ; shift += 7 {
743 if shift >= 64 {
744 return ErrIntOverflowGenerated
745 }
746 if iNdEx >= l {
747 return io.ErrUnexpectedEOF
748 }
749 b := dAtA[iNdEx]
750 iNdEx++
751 msglen |= (int(b) & 0x7F) << shift
752 if b < 0x80 {
753 break
754 }
755 }
756 if msglen < 0 {
757 return ErrInvalidLengthGenerated
758 }
759 postIndex := iNdEx + msglen
760 if postIndex > l {
761 return io.ErrUnexpectedEOF
762 }
763 m.Items = append(m.Items, VolumeAttachment{})
764 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
765 return err
766 }
767 iNdEx = postIndex
768 default:
769 iNdEx = preIndex
770 skippy, err := skipGenerated(dAtA[iNdEx:])
771 if err != nil {
772 return err
773 }
774 if skippy < 0 {
775 return ErrInvalidLengthGenerated
776 }
777 if (iNdEx + skippy) > l {
778 return io.ErrUnexpectedEOF
779 }
780 iNdEx += skippy
781 }
782 }
783
784 if iNdEx > l {
785 return io.ErrUnexpectedEOF
786 }
787 return nil
788}
789func (m *VolumeAttachmentSource) Unmarshal(dAtA []byte) error {
790 l := len(dAtA)
791 iNdEx := 0
792 for iNdEx < l {
793 preIndex := iNdEx
794 var wire uint64
795 for shift := uint(0); ; shift += 7 {
796 if shift >= 64 {
797 return ErrIntOverflowGenerated
798 }
799 if iNdEx >= l {
800 return io.ErrUnexpectedEOF
801 }
802 b := dAtA[iNdEx]
803 iNdEx++
804 wire |= (uint64(b) & 0x7F) << shift
805 if b < 0x80 {
806 break
807 }
808 }
809 fieldNum := int32(wire >> 3)
810 wireType := int(wire & 0x7)
811 if wireType == 4 {
812 return fmt.Errorf("proto: VolumeAttachmentSource: wiretype end group for non-group")
813 }
814 if fieldNum <= 0 {
815 return fmt.Errorf("proto: VolumeAttachmentSource: illegal tag %d (wire type %d)", fieldNum, wire)
816 }
817 switch fieldNum {
818 case 1:
819 if wireType != 2 {
820 return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeName", wireType)
821 }
822 var stringLen uint64
823 for shift := uint(0); ; shift += 7 {
824 if shift >= 64 {
825 return ErrIntOverflowGenerated
826 }
827 if iNdEx >= l {
828 return io.ErrUnexpectedEOF
829 }
830 b := dAtA[iNdEx]
831 iNdEx++
832 stringLen |= (uint64(b) & 0x7F) << shift
833 if b < 0x80 {
834 break
835 }
836 }
837 intStringLen := int(stringLen)
838 if intStringLen < 0 {
839 return ErrInvalidLengthGenerated
840 }
841 postIndex := iNdEx + intStringLen
842 if postIndex > l {
843 return io.ErrUnexpectedEOF
844 }
845 s := string(dAtA[iNdEx:postIndex])
846 m.PersistentVolumeName = &s
847 iNdEx = postIndex
848 case 2:
849 if wireType != 2 {
850 return fmt.Errorf("proto: wrong wireType = %d for field InlineVolumeSpec", wireType)
851 }
852 var msglen int
853 for shift := uint(0); ; shift += 7 {
854 if shift >= 64 {
855 return ErrIntOverflowGenerated
856 }
857 if iNdEx >= l {
858 return io.ErrUnexpectedEOF
859 }
860 b := dAtA[iNdEx]
861 iNdEx++
862 msglen |= (int(b) & 0x7F) << shift
863 if b < 0x80 {
864 break
865 }
866 }
867 if msglen < 0 {
868 return ErrInvalidLengthGenerated
869 }
870 postIndex := iNdEx + msglen
871 if postIndex > l {
872 return io.ErrUnexpectedEOF
873 }
874 if m.InlineVolumeSpec == nil {
875 m.InlineVolumeSpec = &k8s_io_api_core_v1.PersistentVolumeSpec{}
876 }
877 if err := m.InlineVolumeSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
878 return err
879 }
880 iNdEx = postIndex
881 default:
882 iNdEx = preIndex
883 skippy, err := skipGenerated(dAtA[iNdEx:])
884 if err != nil {
885 return err
886 }
887 if skippy < 0 {
888 return ErrInvalidLengthGenerated
889 }
890 if (iNdEx + skippy) > l {
891 return io.ErrUnexpectedEOF
892 }
893 iNdEx += skippy
894 }
895 }
896
897 if iNdEx > l {
898 return io.ErrUnexpectedEOF
899 }
900 return nil
901}
902func (m *VolumeAttachmentSpec) Unmarshal(dAtA []byte) error {
903 l := len(dAtA)
904 iNdEx := 0
905 for iNdEx < l {
906 preIndex := iNdEx
907 var wire uint64
908 for shift := uint(0); ; shift += 7 {
909 if shift >= 64 {
910 return ErrIntOverflowGenerated
911 }
912 if iNdEx >= l {
913 return io.ErrUnexpectedEOF
914 }
915 b := dAtA[iNdEx]
916 iNdEx++
917 wire |= (uint64(b) & 0x7F) << shift
918 if b < 0x80 {
919 break
920 }
921 }
922 fieldNum := int32(wire >> 3)
923 wireType := int(wire & 0x7)
924 if wireType == 4 {
925 return fmt.Errorf("proto: VolumeAttachmentSpec: wiretype end group for non-group")
926 }
927 if fieldNum <= 0 {
928 return fmt.Errorf("proto: VolumeAttachmentSpec: illegal tag %d (wire type %d)", fieldNum, wire)
929 }
930 switch fieldNum {
931 case 1:
932 if wireType != 2 {
933 return fmt.Errorf("proto: wrong wireType = %d for field Attacher", wireType)
934 }
935 var stringLen uint64
936 for shift := uint(0); ; shift += 7 {
937 if shift >= 64 {
938 return ErrIntOverflowGenerated
939 }
940 if iNdEx >= l {
941 return io.ErrUnexpectedEOF
942 }
943 b := dAtA[iNdEx]
944 iNdEx++
945 stringLen |= (uint64(b) & 0x7F) << shift
946 if b < 0x80 {
947 break
948 }
949 }
950 intStringLen := int(stringLen)
951 if intStringLen < 0 {
952 return ErrInvalidLengthGenerated
953 }
954 postIndex := iNdEx + intStringLen
955 if postIndex > l {
956 return io.ErrUnexpectedEOF
957 }
958 m.Attacher = string(dAtA[iNdEx:postIndex])
959 iNdEx = postIndex
960 case 2:
961 if wireType != 2 {
962 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
963 }
964 var msglen int
965 for shift := uint(0); ; shift += 7 {
966 if shift >= 64 {
967 return ErrIntOverflowGenerated
968 }
969 if iNdEx >= l {
970 return io.ErrUnexpectedEOF
971 }
972 b := dAtA[iNdEx]
973 iNdEx++
974 msglen |= (int(b) & 0x7F) << shift
975 if b < 0x80 {
976 break
977 }
978 }
979 if msglen < 0 {
980 return ErrInvalidLengthGenerated
981 }
982 postIndex := iNdEx + msglen
983 if postIndex > l {
984 return io.ErrUnexpectedEOF
985 }
986 if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
987 return err
988 }
989 iNdEx = postIndex
990 case 3:
991 if wireType != 2 {
992 return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType)
993 }
994 var stringLen uint64
995 for shift := uint(0); ; shift += 7 {
996 if shift >= 64 {
997 return ErrIntOverflowGenerated
998 }
999 if iNdEx >= l {
1000 return io.ErrUnexpectedEOF
1001 }
1002 b := dAtA[iNdEx]
1003 iNdEx++
1004 stringLen |= (uint64(b) & 0x7F) << shift
1005 if b < 0x80 {
1006 break
1007 }
1008 }
1009 intStringLen := int(stringLen)
1010 if intStringLen < 0 {
1011 return ErrInvalidLengthGenerated
1012 }
1013 postIndex := iNdEx + intStringLen
1014 if postIndex > l {
1015 return io.ErrUnexpectedEOF
1016 }
1017 m.NodeName = string(dAtA[iNdEx:postIndex])
1018 iNdEx = postIndex
1019 default:
1020 iNdEx = preIndex
1021 skippy, err := skipGenerated(dAtA[iNdEx:])
1022 if err != nil {
1023 return err
1024 }
1025 if skippy < 0 {
1026 return ErrInvalidLengthGenerated
1027 }
1028 if (iNdEx + skippy) > l {
1029 return io.ErrUnexpectedEOF
1030 }
1031 iNdEx += skippy
1032 }
1033 }
1034
1035 if iNdEx > l {
1036 return io.ErrUnexpectedEOF
1037 }
1038 return nil
1039}
1040func (m *VolumeAttachmentStatus) Unmarshal(dAtA []byte) error {
1041 l := len(dAtA)
1042 iNdEx := 0
1043 for iNdEx < l {
1044 preIndex := iNdEx
1045 var wire uint64
1046 for shift := uint(0); ; shift += 7 {
1047 if shift >= 64 {
1048 return ErrIntOverflowGenerated
1049 }
1050 if iNdEx >= l {
1051 return io.ErrUnexpectedEOF
1052 }
1053 b := dAtA[iNdEx]
1054 iNdEx++
1055 wire |= (uint64(b) & 0x7F) << shift
1056 if b < 0x80 {
1057 break
1058 }
1059 }
1060 fieldNum := int32(wire >> 3)
1061 wireType := int(wire & 0x7)
1062 if wireType == 4 {
1063 return fmt.Errorf("proto: VolumeAttachmentStatus: wiretype end group for non-group")
1064 }
1065 if fieldNum <= 0 {
1066 return fmt.Errorf("proto: VolumeAttachmentStatus: illegal tag %d (wire type %d)", fieldNum, wire)
1067 }
1068 switch fieldNum {
1069 case 1:
1070 if wireType != 0 {
1071 return fmt.Errorf("proto: wrong wireType = %d for field Attached", wireType)
1072 }
1073 var v int
1074 for shift := uint(0); ; shift += 7 {
1075 if shift >= 64 {
1076 return ErrIntOverflowGenerated
1077 }
1078 if iNdEx >= l {
1079 return io.ErrUnexpectedEOF
1080 }
1081 b := dAtA[iNdEx]
1082 iNdEx++
1083 v |= (int(b) & 0x7F) << shift
1084 if b < 0x80 {
1085 break
1086 }
1087 }
1088 m.Attached = bool(v != 0)
1089 case 2:
1090 if wireType != 2 {
1091 return fmt.Errorf("proto: wrong wireType = %d for field AttachmentMetadata", wireType)
1092 }
1093 var msglen int
1094 for shift := uint(0); ; shift += 7 {
1095 if shift >= 64 {
1096 return ErrIntOverflowGenerated
1097 }
1098 if iNdEx >= l {
1099 return io.ErrUnexpectedEOF
1100 }
1101 b := dAtA[iNdEx]
1102 iNdEx++
1103 msglen |= (int(b) & 0x7F) << shift
1104 if b < 0x80 {
1105 break
1106 }
1107 }
1108 if msglen < 0 {
1109 return ErrInvalidLengthGenerated
1110 }
1111 postIndex := iNdEx + msglen
1112 if postIndex > l {
1113 return io.ErrUnexpectedEOF
1114 }
1115 if m.AttachmentMetadata == nil {
1116 m.AttachmentMetadata = make(map[string]string)
1117 }
1118 var mapkey string
1119 var mapvalue string
1120 for iNdEx < postIndex {
1121 entryPreIndex := iNdEx
1122 var wire uint64
1123 for shift := uint(0); ; shift += 7 {
1124 if shift >= 64 {
1125 return ErrIntOverflowGenerated
1126 }
1127 if iNdEx >= l {
1128 return io.ErrUnexpectedEOF
1129 }
1130 b := dAtA[iNdEx]
1131 iNdEx++
1132 wire |= (uint64(b) & 0x7F) << shift
1133 if b < 0x80 {
1134 break
1135 }
1136 }
1137 fieldNum := int32(wire >> 3)
1138 if fieldNum == 1 {
1139 var stringLenmapkey uint64
1140 for shift := uint(0); ; shift += 7 {
1141 if shift >= 64 {
1142 return ErrIntOverflowGenerated
1143 }
1144 if iNdEx >= l {
1145 return io.ErrUnexpectedEOF
1146 }
1147 b := dAtA[iNdEx]
1148 iNdEx++
1149 stringLenmapkey |= (uint64(b) & 0x7F) << shift
1150 if b < 0x80 {
1151 break
1152 }
1153 }
1154 intStringLenmapkey := int(stringLenmapkey)
1155 if intStringLenmapkey < 0 {
1156 return ErrInvalidLengthGenerated
1157 }
1158 postStringIndexmapkey := iNdEx + intStringLenmapkey
1159 if postStringIndexmapkey > l {
1160 return io.ErrUnexpectedEOF
1161 }
1162 mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
1163 iNdEx = postStringIndexmapkey
1164 } else if fieldNum == 2 {
1165 var stringLenmapvalue uint64
1166 for shift := uint(0); ; shift += 7 {
1167 if shift >= 64 {
1168 return ErrIntOverflowGenerated
1169 }
1170 if iNdEx >= l {
1171 return io.ErrUnexpectedEOF
1172 }
1173 b := dAtA[iNdEx]
1174 iNdEx++
1175 stringLenmapvalue |= (uint64(b) & 0x7F) << shift
1176 if b < 0x80 {
1177 break
1178 }
1179 }
1180 intStringLenmapvalue := int(stringLenmapvalue)
1181 if intStringLenmapvalue < 0 {
1182 return ErrInvalidLengthGenerated
1183 }
1184 postStringIndexmapvalue := iNdEx + intStringLenmapvalue
1185 if postStringIndexmapvalue > l {
1186 return io.ErrUnexpectedEOF
1187 }
1188 mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
1189 iNdEx = postStringIndexmapvalue
1190 } else {
1191 iNdEx = entryPreIndex
1192 skippy, err := skipGenerated(dAtA[iNdEx:])
1193 if err != nil {
1194 return err
1195 }
1196 if skippy < 0 {
1197 return ErrInvalidLengthGenerated
1198 }
1199 if (iNdEx + skippy) > postIndex {
1200 return io.ErrUnexpectedEOF
1201 }
1202 iNdEx += skippy
1203 }
1204 }
1205 m.AttachmentMetadata[mapkey] = mapvalue
1206 iNdEx = postIndex
1207 case 3:
1208 if wireType != 2 {
1209 return fmt.Errorf("proto: wrong wireType = %d for field AttachError", wireType)
1210 }
1211 var msglen int
1212 for shift := uint(0); ; shift += 7 {
1213 if shift >= 64 {
1214 return ErrIntOverflowGenerated
1215 }
1216 if iNdEx >= l {
1217 return io.ErrUnexpectedEOF
1218 }
1219 b := dAtA[iNdEx]
1220 iNdEx++
1221 msglen |= (int(b) & 0x7F) << shift
1222 if b < 0x80 {
1223 break
1224 }
1225 }
1226 if msglen < 0 {
1227 return ErrInvalidLengthGenerated
1228 }
1229 postIndex := iNdEx + msglen
1230 if postIndex > l {
1231 return io.ErrUnexpectedEOF
1232 }
1233 if m.AttachError == nil {
1234 m.AttachError = &VolumeError{}
1235 }
1236 if err := m.AttachError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1237 return err
1238 }
1239 iNdEx = postIndex
1240 case 4:
1241 if wireType != 2 {
1242 return fmt.Errorf("proto: wrong wireType = %d for field DetachError", wireType)
1243 }
1244 var msglen int
1245 for shift := uint(0); ; shift += 7 {
1246 if shift >= 64 {
1247 return ErrIntOverflowGenerated
1248 }
1249 if iNdEx >= l {
1250 return io.ErrUnexpectedEOF
1251 }
1252 b := dAtA[iNdEx]
1253 iNdEx++
1254 msglen |= (int(b) & 0x7F) << shift
1255 if b < 0x80 {
1256 break
1257 }
1258 }
1259 if msglen < 0 {
1260 return ErrInvalidLengthGenerated
1261 }
1262 postIndex := iNdEx + msglen
1263 if postIndex > l {
1264 return io.ErrUnexpectedEOF
1265 }
1266 if m.DetachError == nil {
1267 m.DetachError = &VolumeError{}
1268 }
1269 if err := m.DetachError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1270 return err
1271 }
1272 iNdEx = postIndex
1273 default:
1274 iNdEx = preIndex
1275 skippy, err := skipGenerated(dAtA[iNdEx:])
1276 if err != nil {
1277 return err
1278 }
1279 if skippy < 0 {
1280 return ErrInvalidLengthGenerated
1281 }
1282 if (iNdEx + skippy) > l {
1283 return io.ErrUnexpectedEOF
1284 }
1285 iNdEx += skippy
1286 }
1287 }
1288
1289 if iNdEx > l {
1290 return io.ErrUnexpectedEOF
1291 }
1292 return nil
1293}
1294func (m *VolumeError) Unmarshal(dAtA []byte) error {
1295 l := len(dAtA)
1296 iNdEx := 0
1297 for iNdEx < l {
1298 preIndex := iNdEx
1299 var wire uint64
1300 for shift := uint(0); ; shift += 7 {
1301 if shift >= 64 {
1302 return ErrIntOverflowGenerated
1303 }
1304 if iNdEx >= l {
1305 return io.ErrUnexpectedEOF
1306 }
1307 b := dAtA[iNdEx]
1308 iNdEx++
1309 wire |= (uint64(b) & 0x7F) << shift
1310 if b < 0x80 {
1311 break
1312 }
1313 }
1314 fieldNum := int32(wire >> 3)
1315 wireType := int(wire & 0x7)
1316 if wireType == 4 {
1317 return fmt.Errorf("proto: VolumeError: wiretype end group for non-group")
1318 }
1319 if fieldNum <= 0 {
1320 return fmt.Errorf("proto: VolumeError: illegal tag %d (wire type %d)", fieldNum, wire)
1321 }
1322 switch fieldNum {
1323 case 1:
1324 if wireType != 2 {
1325 return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
1326 }
1327 var msglen int
1328 for shift := uint(0); ; shift += 7 {
1329 if shift >= 64 {
1330 return ErrIntOverflowGenerated
1331 }
1332 if iNdEx >= l {
1333 return io.ErrUnexpectedEOF
1334 }
1335 b := dAtA[iNdEx]
1336 iNdEx++
1337 msglen |= (int(b) & 0x7F) << shift
1338 if b < 0x80 {
1339 break
1340 }
1341 }
1342 if msglen < 0 {
1343 return ErrInvalidLengthGenerated
1344 }
1345 postIndex := iNdEx + msglen
1346 if postIndex > l {
1347 return io.ErrUnexpectedEOF
1348 }
1349 if err := m.Time.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1350 return err
1351 }
1352 iNdEx = postIndex
1353 case 2:
1354 if wireType != 2 {
1355 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
1356 }
1357 var stringLen uint64
1358 for shift := uint(0); ; shift += 7 {
1359 if shift >= 64 {
1360 return ErrIntOverflowGenerated
1361 }
1362 if iNdEx >= l {
1363 return io.ErrUnexpectedEOF
1364 }
1365 b := dAtA[iNdEx]
1366 iNdEx++
1367 stringLen |= (uint64(b) & 0x7F) << shift
1368 if b < 0x80 {
1369 break
1370 }
1371 }
1372 intStringLen := int(stringLen)
1373 if intStringLen < 0 {
1374 return ErrInvalidLengthGenerated
1375 }
1376 postIndex := iNdEx + intStringLen
1377 if postIndex > l {
1378 return io.ErrUnexpectedEOF
1379 }
1380 m.Message = string(dAtA[iNdEx:postIndex])
1381 iNdEx = postIndex
1382 default:
1383 iNdEx = preIndex
1384 skippy, err := skipGenerated(dAtA[iNdEx:])
1385 if err != nil {
1386 return err
1387 }
1388 if skippy < 0 {
1389 return ErrInvalidLengthGenerated
1390 }
1391 if (iNdEx + skippy) > l {
1392 return io.ErrUnexpectedEOF
1393 }
1394 iNdEx += skippy
1395 }
1396 }
1397
1398 if iNdEx > l {
1399 return io.ErrUnexpectedEOF
1400 }
1401 return nil
1402}
1403func skipGenerated(dAtA []byte) (n int, err error) {
1404 l := len(dAtA)
1405 iNdEx := 0
1406 for iNdEx < l {
1407 var wire uint64
1408 for shift := uint(0); ; shift += 7 {
1409 if shift >= 64 {
1410 return 0, ErrIntOverflowGenerated
1411 }
1412 if iNdEx >= l {
1413 return 0, io.ErrUnexpectedEOF
1414 }
1415 b := dAtA[iNdEx]
1416 iNdEx++
1417 wire |= (uint64(b) & 0x7F) << shift
1418 if b < 0x80 {
1419 break
1420 }
1421 }
1422 wireType := int(wire & 0x7)
1423 switch wireType {
1424 case 0:
1425 for shift := uint(0); ; shift += 7 {
1426 if shift >= 64 {
1427 return 0, ErrIntOverflowGenerated
1428 }
1429 if iNdEx >= l {
1430 return 0, io.ErrUnexpectedEOF
1431 }
1432 iNdEx++
1433 if dAtA[iNdEx-1] < 0x80 {
1434 break
1435 }
1436 }
1437 return iNdEx, nil
1438 case 1:
1439 iNdEx += 8
1440 return iNdEx, nil
1441 case 2:
1442 var length int
1443 for shift := uint(0); ; shift += 7 {
1444 if shift >= 64 {
1445 return 0, ErrIntOverflowGenerated
1446 }
1447 if iNdEx >= l {
1448 return 0, io.ErrUnexpectedEOF
1449 }
1450 b := dAtA[iNdEx]
1451 iNdEx++
1452 length |= (int(b) & 0x7F) << shift
1453 if b < 0x80 {
1454 break
1455 }
1456 }
1457 iNdEx += length
1458 if length < 0 {
1459 return 0, ErrInvalidLengthGenerated
1460 }
1461 return iNdEx, nil
1462 case 3:
1463 for {
1464 var innerWire uint64
1465 var start int = iNdEx
1466 for shift := uint(0); ; shift += 7 {
1467 if shift >= 64 {
1468 return 0, ErrIntOverflowGenerated
1469 }
1470 if iNdEx >= l {
1471 return 0, io.ErrUnexpectedEOF
1472 }
1473 b := dAtA[iNdEx]
1474 iNdEx++
1475 innerWire |= (uint64(b) & 0x7F) << shift
1476 if b < 0x80 {
1477 break
1478 }
1479 }
1480 innerWireType := int(innerWire & 0x7)
1481 if innerWireType == 4 {
1482 break
1483 }
1484 next, err := skipGenerated(dAtA[start:])
1485 if err != nil {
1486 return 0, err
1487 }
1488 iNdEx = start + next
1489 }
1490 return iNdEx, nil
1491 case 4:
1492 return iNdEx, nil
1493 case 5:
1494 iNdEx += 4
1495 return iNdEx, nil
1496 default:
1497 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
1498 }
1499 }
1500 panic("unreachable")
1501}
1502
1503var (
1504 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
1505 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
1506)
1507
1508func init() {
1509 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/storage/v1alpha1/generated.proto", fileDescriptorGenerated)
1510}
1511
1512var fileDescriptorGenerated = []byte{
1513 // 745 bytes of a gzipped FileDescriptorProto
1514 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcd, 0x6e, 0xd3, 0x40,
1515 0x10, 0xc7, 0xe3, 0x24, 0x6d, 0xd3, 0x0d, 0x1f, 0xd1, 0x2a, 0x82, 0x28, 0x48, 0x4e, 0x95, 0x53,
1516 0x40, 0x74, 0x4d, 0x0a, 0x42, 0x15, 0xb7, 0x58, 0xed, 0xa1, 0xa2, 0x2d, 0x68, 0x8b, 0x38, 0x00,
1517 0x07, 0x36, 0xf6, 0xe2, 0xb8, 0x89, 0x3f, 0xe4, 0x5d, 0x47, 0xea, 0x8d, 0x13, 0x67, 0x6e, 0xbc,
1518 0x01, 0xcf, 0x92, 0x1b, 0x15, 0xa7, 0x9e, 0x22, 0x6a, 0xde, 0x82, 0x0b, 0x68, 0xd7, 0x9b, 0xc4,
1519 0x24, 0x29, 0xb4, 0xbd, 0x79, 0x66, 0x67, 0x7e, 0x33, 0xf3, 0xdf, 0xf1, 0x82, 0x9d, 0xfe, 0x36,
1520 0x43, 0x6e, 0x60, 0xf4, 0xe3, 0x2e, 0x8d, 0x7c, 0xca, 0x29, 0x33, 0x86, 0xd4, 0xb7, 0x83, 0xc8,
1521 0x50, 0x07, 0x24, 0x74, 0x0d, 0xc6, 0x83, 0x88, 0x38, 0xd4, 0x18, 0xb6, 0xc9, 0x20, 0xec, 0x91,
1522 0xb6, 0xe1, 0x50, 0x9f, 0x46, 0x84, 0x53, 0x1b, 0x85, 0x51, 0xc0, 0x03, 0x78, 0x2f, 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 0xc0, 0xfb, 0x60, 0xcd, 0xa3, 0x8c, 0x11, 0x47, 0x55, 0x36, 0x6f, 0xab,
1557 0xa0, 0xb5, 0x83, 0xd4, 0x8d, 0x27, 0xe7, 0x26, 0x1a, 0x9d, 0xeb, 0xb9, 0xd3, 0x73, 0x3d, 0x77,
1558 0x76, 0xae, 0xe7, 0x3e, 0x26, 0xba, 0x36, 0x4a, 0x74, 0xed, 0x34, 0xd1, 0xb5, 0xb3, 0x44, 0xd7,
1559 0x7e, 0x24, 0xba, 0xf6, 0xf9, 0xa7, 0x9e, 0x7b, 0x53, 0x9a, 0x08, 0xf7, 0x27, 0x00, 0x00, 0xff,
1560 0xff, 0xe8, 0x45, 0xe3, 0xba, 0xab, 0x07, 0x00, 0x00,
1561}