blob: da9d91740e0756708c619979d46a7d3c69d9c17f [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/v1/generated.proto
19
20/*
21 Package v1 is a generated protocol buffer package.
22
23 It is generated from these files:
24 k8s.io/kubernetes/vendor/k8s.io/api/storage/v1/generated.proto
25
26 It has these top-level messages:
27 StorageClass
28 StorageClassList
29 VolumeAttachment
30 VolumeAttachmentList
31 VolumeAttachmentSource
32 VolumeAttachmentSpec
33 VolumeAttachmentStatus
34 VolumeError
35*/
36package v1
37
Scott Baker4a35a702019-11-26 08:17:33 -080038import (
39 fmt "fmt"
Zack Williamse940c7a2019-08-21 14:25:39 -070040
Scott Baker4a35a702019-11-26 08:17:33 -080041 proto "github.com/gogo/protobuf/proto"
Zack Williamse940c7a2019-08-21 14:25:39 -070042
Scott Baker4a35a702019-11-26 08:17:33 -080043 math "math"
Zack Williamse940c7a2019-08-21 14:25:39 -070044
Scott Baker4a35a702019-11-26 08:17:33 -080045 k8s_io_api_core_v1 "k8s.io/api/core/v1"
Zack Williamse940c7a2019-08-21 14:25:39 -070046
Scott Baker4a35a702019-11-26 08:17:33 -080047 github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
48
49 strings "strings"
50
51 reflect "reflect"
52
53 io "io"
54)
Zack Williamse940c7a2019-08-21 14:25:39 -070055
56// Reference imports to suppress errors if they are not otherwise used.
57var _ = proto.Marshal
58var _ = fmt.Errorf
59var _ = math.Inf
60
61// This is a compile-time assertion to ensure that this generated file
62// is compatible with the proto package it is being compiled against.
63// A compilation error at this line likely means your copy of the
64// proto package needs to be updated.
65const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
66
67func (m *StorageClass) Reset() { *m = StorageClass{} }
68func (*StorageClass) ProtoMessage() {}
69func (*StorageClass) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
70
71func (m *StorageClassList) Reset() { *m = StorageClassList{} }
72func (*StorageClassList) ProtoMessage() {}
73func (*StorageClassList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
74
75func (m *VolumeAttachment) Reset() { *m = VolumeAttachment{} }
76func (*VolumeAttachment) ProtoMessage() {}
77func (*VolumeAttachment) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
78
79func (m *VolumeAttachmentList) Reset() { *m = VolumeAttachmentList{} }
80func (*VolumeAttachmentList) ProtoMessage() {}
81func (*VolumeAttachmentList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
82
83func (m *VolumeAttachmentSource) Reset() { *m = VolumeAttachmentSource{} }
84func (*VolumeAttachmentSource) ProtoMessage() {}
85func (*VolumeAttachmentSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} }
86
87func (m *VolumeAttachmentSpec) Reset() { *m = VolumeAttachmentSpec{} }
88func (*VolumeAttachmentSpec) ProtoMessage() {}
89func (*VolumeAttachmentSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
90
91func (m *VolumeAttachmentStatus) Reset() { *m = VolumeAttachmentStatus{} }
92func (*VolumeAttachmentStatus) ProtoMessage() {}
93func (*VolumeAttachmentStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} }
94
95func (m *VolumeError) Reset() { *m = VolumeError{} }
96func (*VolumeError) ProtoMessage() {}
97func (*VolumeError) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} }
98
99func init() {
100 proto.RegisterType((*StorageClass)(nil), "k8s.io.api.storage.v1.StorageClass")
101 proto.RegisterType((*StorageClassList)(nil), "k8s.io.api.storage.v1.StorageClassList")
102 proto.RegisterType((*VolumeAttachment)(nil), "k8s.io.api.storage.v1.VolumeAttachment")
103 proto.RegisterType((*VolumeAttachmentList)(nil), "k8s.io.api.storage.v1.VolumeAttachmentList")
104 proto.RegisterType((*VolumeAttachmentSource)(nil), "k8s.io.api.storage.v1.VolumeAttachmentSource")
105 proto.RegisterType((*VolumeAttachmentSpec)(nil), "k8s.io.api.storage.v1.VolumeAttachmentSpec")
106 proto.RegisterType((*VolumeAttachmentStatus)(nil), "k8s.io.api.storage.v1.VolumeAttachmentStatus")
107 proto.RegisterType((*VolumeError)(nil), "k8s.io.api.storage.v1.VolumeError")
108}
109func (m *StorageClass) Marshal() (dAtA []byte, err error) {
110 size := m.Size()
111 dAtA = make([]byte, size)
112 n, err := m.MarshalTo(dAtA)
113 if err != nil {
114 return nil, err
115 }
116 return dAtA[:n], nil
117}
118
119func (m *StorageClass) MarshalTo(dAtA []byte) (int, error) {
120 var i int
121 _ = i
122 var l int
123 _ = l
124 dAtA[i] = 0xa
125 i++
126 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
127 n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
128 if err != nil {
129 return 0, err
130 }
131 i += n1
132 dAtA[i] = 0x12
133 i++
134 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Provisioner)))
135 i += copy(dAtA[i:], m.Provisioner)
136 if len(m.Parameters) > 0 {
137 keysForParameters := make([]string, 0, len(m.Parameters))
138 for k := range m.Parameters {
139 keysForParameters = append(keysForParameters, string(k))
140 }
141 github_com_gogo_protobuf_sortkeys.Strings(keysForParameters)
142 for _, k := range keysForParameters {
143 dAtA[i] = 0x1a
144 i++
145 v := m.Parameters[string(k)]
146 mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
147 i = encodeVarintGenerated(dAtA, i, uint64(mapSize))
148 dAtA[i] = 0xa
149 i++
150 i = encodeVarintGenerated(dAtA, i, uint64(len(k)))
151 i += copy(dAtA[i:], k)
152 dAtA[i] = 0x12
153 i++
154 i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
155 i += copy(dAtA[i:], v)
156 }
157 }
158 if m.ReclaimPolicy != nil {
159 dAtA[i] = 0x22
160 i++
161 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ReclaimPolicy)))
162 i += copy(dAtA[i:], *m.ReclaimPolicy)
163 }
164 if len(m.MountOptions) > 0 {
165 for _, s := range m.MountOptions {
166 dAtA[i] = 0x2a
167 i++
168 l = len(s)
169 for l >= 1<<7 {
170 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
171 l >>= 7
172 i++
173 }
174 dAtA[i] = uint8(l)
175 i++
176 i += copy(dAtA[i:], s)
177 }
178 }
179 if m.AllowVolumeExpansion != nil {
180 dAtA[i] = 0x30
181 i++
182 if *m.AllowVolumeExpansion {
183 dAtA[i] = 1
184 } else {
185 dAtA[i] = 0
186 }
187 i++
188 }
189 if m.VolumeBindingMode != nil {
190 dAtA[i] = 0x3a
191 i++
192 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.VolumeBindingMode)))
193 i += copy(dAtA[i:], *m.VolumeBindingMode)
194 }
195 if len(m.AllowedTopologies) > 0 {
196 for _, msg := range m.AllowedTopologies {
197 dAtA[i] = 0x42
198 i++
199 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
200 n, err := msg.MarshalTo(dAtA[i:])
201 if err != nil {
202 return 0, err
203 }
204 i += n
205 }
206 }
207 return i, nil
208}
209
210func (m *StorageClassList) Marshal() (dAtA []byte, err error) {
211 size := m.Size()
212 dAtA = make([]byte, size)
213 n, err := m.MarshalTo(dAtA)
214 if err != nil {
215 return nil, err
216 }
217 return dAtA[:n], nil
218}
219
220func (m *StorageClassList) MarshalTo(dAtA []byte) (int, error) {
221 var i int
222 _ = i
223 var l int
224 _ = l
225 dAtA[i] = 0xa
226 i++
227 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
228 n2, err := m.ListMeta.MarshalTo(dAtA[i:])
229 if err != nil {
230 return 0, err
231 }
232 i += n2
233 if len(m.Items) > 0 {
234 for _, msg := range m.Items {
235 dAtA[i] = 0x12
236 i++
237 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
238 n, err := msg.MarshalTo(dAtA[i:])
239 if err != nil {
240 return 0, err
241 }
242 i += n
243 }
244 }
245 return i, nil
246}
247
248func (m *VolumeAttachment) Marshal() (dAtA []byte, err error) {
249 size := m.Size()
250 dAtA = make([]byte, size)
251 n, err := m.MarshalTo(dAtA)
252 if err != nil {
253 return nil, err
254 }
255 return dAtA[:n], nil
256}
257
258func (m *VolumeAttachment) MarshalTo(dAtA []byte) (int, error) {
259 var i int
260 _ = i
261 var l int
262 _ = l
263 dAtA[i] = 0xa
264 i++
265 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
266 n3, err := m.ObjectMeta.MarshalTo(dAtA[i:])
267 if err != nil {
268 return 0, err
269 }
270 i += n3
271 dAtA[i] = 0x12
272 i++
273 i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
274 n4, err := m.Spec.MarshalTo(dAtA[i:])
275 if err != nil {
276 return 0, err
277 }
278 i += n4
279 dAtA[i] = 0x1a
280 i++
281 i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size()))
282 n5, err := m.Status.MarshalTo(dAtA[i:])
283 if err != nil {
284 return 0, err
285 }
286 i += n5
287 return i, nil
288}
289
290func (m *VolumeAttachmentList) Marshal() (dAtA []byte, err error) {
291 size := m.Size()
292 dAtA = make([]byte, size)
293 n, err := m.MarshalTo(dAtA)
294 if err != nil {
295 return nil, err
296 }
297 return dAtA[:n], nil
298}
299
300func (m *VolumeAttachmentList) MarshalTo(dAtA []byte) (int, error) {
301 var i int
302 _ = i
303 var l int
304 _ = l
305 dAtA[i] = 0xa
306 i++
307 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
308 n6, err := m.ListMeta.MarshalTo(dAtA[i:])
309 if err != nil {
310 return 0, err
311 }
312 i += n6
313 if len(m.Items) > 0 {
314 for _, msg := range m.Items {
315 dAtA[i] = 0x12
316 i++
317 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
318 n, err := msg.MarshalTo(dAtA[i:])
319 if err != nil {
320 return 0, err
321 }
322 i += n
323 }
324 }
325 return i, nil
326}
327
328func (m *VolumeAttachmentSource) Marshal() (dAtA []byte, err error) {
329 size := m.Size()
330 dAtA = make([]byte, size)
331 n, err := m.MarshalTo(dAtA)
332 if err != nil {
333 return nil, err
334 }
335 return dAtA[:n], nil
336}
337
338func (m *VolumeAttachmentSource) MarshalTo(dAtA []byte) (int, error) {
339 var i int
340 _ = i
341 var l int
342 _ = l
343 if m.PersistentVolumeName != nil {
344 dAtA[i] = 0xa
345 i++
346 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PersistentVolumeName)))
347 i += copy(dAtA[i:], *m.PersistentVolumeName)
348 }
349 if m.InlineVolumeSpec != nil {
350 dAtA[i] = 0x12
351 i++
352 i = encodeVarintGenerated(dAtA, i, uint64(m.InlineVolumeSpec.Size()))
353 n7, err := m.InlineVolumeSpec.MarshalTo(dAtA[i:])
354 if err != nil {
355 return 0, err
356 }
357 i += n7
358 }
359 return i, nil
360}
361
362func (m *VolumeAttachmentSpec) Marshal() (dAtA []byte, err error) {
363 size := m.Size()
364 dAtA = make([]byte, size)
365 n, err := m.MarshalTo(dAtA)
366 if err != nil {
367 return nil, err
368 }
369 return dAtA[:n], nil
370}
371
372func (m *VolumeAttachmentSpec) MarshalTo(dAtA []byte) (int, error) {
373 var i int
374 _ = i
375 var l int
376 _ = l
377 dAtA[i] = 0xa
378 i++
379 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Attacher)))
380 i += copy(dAtA[i:], m.Attacher)
381 dAtA[i] = 0x12
382 i++
383 i = encodeVarintGenerated(dAtA, i, uint64(m.Source.Size()))
384 n8, err := m.Source.MarshalTo(dAtA[i:])
385 if err != nil {
386 return 0, err
387 }
388 i += n8
389 dAtA[i] = 0x1a
390 i++
391 i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeName)))
392 i += copy(dAtA[i:], m.NodeName)
393 return i, nil
394}
395
396func (m *VolumeAttachmentStatus) Marshal() (dAtA []byte, err error) {
397 size := m.Size()
398 dAtA = make([]byte, size)
399 n, err := m.MarshalTo(dAtA)
400 if err != nil {
401 return nil, err
402 }
403 return dAtA[:n], nil
404}
405
406func (m *VolumeAttachmentStatus) MarshalTo(dAtA []byte) (int, error) {
407 var i int
408 _ = i
409 var l int
410 _ = l
411 dAtA[i] = 0x8
412 i++
413 if m.Attached {
414 dAtA[i] = 1
415 } else {
416 dAtA[i] = 0
417 }
418 i++
419 if len(m.AttachmentMetadata) > 0 {
420 keysForAttachmentMetadata := make([]string, 0, len(m.AttachmentMetadata))
421 for k := range m.AttachmentMetadata {
422 keysForAttachmentMetadata = append(keysForAttachmentMetadata, string(k))
423 }
424 github_com_gogo_protobuf_sortkeys.Strings(keysForAttachmentMetadata)
425 for _, k := range keysForAttachmentMetadata {
426 dAtA[i] = 0x12
427 i++
428 v := m.AttachmentMetadata[string(k)]
429 mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
430 i = encodeVarintGenerated(dAtA, i, uint64(mapSize))
431 dAtA[i] = 0xa
432 i++
433 i = encodeVarintGenerated(dAtA, i, uint64(len(k)))
434 i += copy(dAtA[i:], k)
435 dAtA[i] = 0x12
436 i++
437 i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
438 i += copy(dAtA[i:], v)
439 }
440 }
441 if m.AttachError != nil {
442 dAtA[i] = 0x1a
443 i++
444 i = encodeVarintGenerated(dAtA, i, uint64(m.AttachError.Size()))
445 n9, err := m.AttachError.MarshalTo(dAtA[i:])
446 if err != nil {
447 return 0, err
448 }
449 i += n9
450 }
451 if m.DetachError != nil {
452 dAtA[i] = 0x22
453 i++
454 i = encodeVarintGenerated(dAtA, i, uint64(m.DetachError.Size()))
455 n10, err := m.DetachError.MarshalTo(dAtA[i:])
456 if err != nil {
457 return 0, err
458 }
459 i += n10
460 }
461 return i, nil
462}
463
464func (m *VolumeError) Marshal() (dAtA []byte, err error) {
465 size := m.Size()
466 dAtA = make([]byte, size)
467 n, err := m.MarshalTo(dAtA)
468 if err != nil {
469 return nil, err
470 }
471 return dAtA[:n], nil
472}
473
474func (m *VolumeError) MarshalTo(dAtA []byte) (int, error) {
475 var i int
476 _ = i
477 var l int
478 _ = l
479 dAtA[i] = 0xa
480 i++
481 i = encodeVarintGenerated(dAtA, i, uint64(m.Time.Size()))
482 n11, err := m.Time.MarshalTo(dAtA[i:])
483 if err != nil {
484 return 0, err
485 }
486 i += n11
487 dAtA[i] = 0x12
488 i++
489 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
490 i += copy(dAtA[i:], m.Message)
491 return i, nil
492}
493
494func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
495 for v >= 1<<7 {
496 dAtA[offset] = uint8(v&0x7f | 0x80)
497 v >>= 7
498 offset++
499 }
500 dAtA[offset] = uint8(v)
501 return offset + 1
502}
503func (m *StorageClass) Size() (n int) {
504 var l int
505 _ = l
506 l = m.ObjectMeta.Size()
507 n += 1 + l + sovGenerated(uint64(l))
508 l = len(m.Provisioner)
509 n += 1 + l + sovGenerated(uint64(l))
510 if len(m.Parameters) > 0 {
511 for k, v := range m.Parameters {
512 _ = k
513 _ = v
514 mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
515 n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
516 }
517 }
518 if m.ReclaimPolicy != nil {
519 l = len(*m.ReclaimPolicy)
520 n += 1 + l + sovGenerated(uint64(l))
521 }
522 if len(m.MountOptions) > 0 {
523 for _, s := range m.MountOptions {
524 l = len(s)
525 n += 1 + l + sovGenerated(uint64(l))
526 }
527 }
528 if m.AllowVolumeExpansion != nil {
529 n += 2
530 }
531 if m.VolumeBindingMode != nil {
532 l = len(*m.VolumeBindingMode)
533 n += 1 + l + sovGenerated(uint64(l))
534 }
535 if len(m.AllowedTopologies) > 0 {
536 for _, e := range m.AllowedTopologies {
537 l = e.Size()
538 n += 1 + l + sovGenerated(uint64(l))
539 }
540 }
541 return n
542}
543
544func (m *StorageClassList) Size() (n int) {
545 var l int
546 _ = l
547 l = m.ListMeta.Size()
548 n += 1 + l + sovGenerated(uint64(l))
549 if len(m.Items) > 0 {
550 for _, e := range m.Items {
551 l = e.Size()
552 n += 1 + l + sovGenerated(uint64(l))
553 }
554 }
555 return n
556}
557
558func (m *VolumeAttachment) Size() (n int) {
559 var l int
560 _ = l
561 l = m.ObjectMeta.Size()
562 n += 1 + l + sovGenerated(uint64(l))
563 l = m.Spec.Size()
564 n += 1 + l + sovGenerated(uint64(l))
565 l = m.Status.Size()
566 n += 1 + l + sovGenerated(uint64(l))
567 return n
568}
569
570func (m *VolumeAttachmentList) Size() (n int) {
571 var l int
572 _ = l
573 l = m.ListMeta.Size()
574 n += 1 + l + sovGenerated(uint64(l))
575 if len(m.Items) > 0 {
576 for _, e := range m.Items {
577 l = e.Size()
578 n += 1 + l + sovGenerated(uint64(l))
579 }
580 }
581 return n
582}
583
584func (m *VolumeAttachmentSource) Size() (n int) {
585 var l int
586 _ = l
587 if m.PersistentVolumeName != nil {
588 l = len(*m.PersistentVolumeName)
589 n += 1 + l + sovGenerated(uint64(l))
590 }
591 if m.InlineVolumeSpec != nil {
592 l = m.InlineVolumeSpec.Size()
593 n += 1 + l + sovGenerated(uint64(l))
594 }
595 return n
596}
597
598func (m *VolumeAttachmentSpec) Size() (n int) {
599 var l int
600 _ = l
601 l = len(m.Attacher)
602 n += 1 + l + sovGenerated(uint64(l))
603 l = m.Source.Size()
604 n += 1 + l + sovGenerated(uint64(l))
605 l = len(m.NodeName)
606 n += 1 + l + sovGenerated(uint64(l))
607 return n
608}
609
610func (m *VolumeAttachmentStatus) Size() (n int) {
611 var l int
612 _ = l
613 n += 2
614 if len(m.AttachmentMetadata) > 0 {
615 for k, v := range m.AttachmentMetadata {
616 _ = k
617 _ = v
618 mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
619 n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
620 }
621 }
622 if m.AttachError != nil {
623 l = m.AttachError.Size()
624 n += 1 + l + sovGenerated(uint64(l))
625 }
626 if m.DetachError != nil {
627 l = m.DetachError.Size()
628 n += 1 + l + sovGenerated(uint64(l))
629 }
630 return n
631}
632
633func (m *VolumeError) Size() (n int) {
634 var l int
635 _ = l
636 l = m.Time.Size()
637 n += 1 + l + sovGenerated(uint64(l))
638 l = len(m.Message)
639 n += 1 + l + sovGenerated(uint64(l))
640 return n
641}
642
643func sovGenerated(x uint64) (n int) {
644 for {
645 n++
646 x >>= 7
647 if x == 0 {
648 break
649 }
650 }
651 return n
652}
653func sozGenerated(x uint64) (n int) {
654 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
655}
656func (this *StorageClass) String() string {
657 if this == nil {
658 return "nil"
659 }
660 keysForParameters := make([]string, 0, len(this.Parameters))
661 for k := range this.Parameters {
662 keysForParameters = append(keysForParameters, k)
663 }
664 github_com_gogo_protobuf_sortkeys.Strings(keysForParameters)
665 mapStringForParameters := "map[string]string{"
666 for _, k := range keysForParameters {
667 mapStringForParameters += fmt.Sprintf("%v: %v,", k, this.Parameters[k])
668 }
669 mapStringForParameters += "}"
670 s := strings.Join([]string{`&StorageClass{`,
671 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
672 `Provisioner:` + fmt.Sprintf("%v", this.Provisioner) + `,`,
673 `Parameters:` + mapStringForParameters + `,`,
674 `ReclaimPolicy:` + valueToStringGenerated(this.ReclaimPolicy) + `,`,
675 `MountOptions:` + fmt.Sprintf("%v", this.MountOptions) + `,`,
676 `AllowVolumeExpansion:` + valueToStringGenerated(this.AllowVolumeExpansion) + `,`,
677 `VolumeBindingMode:` + valueToStringGenerated(this.VolumeBindingMode) + `,`,
678 `AllowedTopologies:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.AllowedTopologies), "TopologySelectorTerm", "k8s_io_api_core_v1.TopologySelectorTerm", 1), `&`, ``, 1) + `,`,
679 `}`,
680 }, "")
681 return s
682}
683func (this *StorageClassList) String() string {
684 if this == nil {
685 return "nil"
686 }
687 s := strings.Join([]string{`&StorageClassList{`,
688 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
689 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "StorageClass", "StorageClass", 1), `&`, ``, 1) + `,`,
690 `}`,
691 }, "")
692 return s
693}
694func (this *VolumeAttachment) String() string {
695 if this == nil {
696 return "nil"
697 }
698 s := strings.Join([]string{`&VolumeAttachment{`,
699 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
700 `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "VolumeAttachmentSpec", "VolumeAttachmentSpec", 1), `&`, ``, 1) + `,`,
701 `Status:` + strings.Replace(strings.Replace(this.Status.String(), "VolumeAttachmentStatus", "VolumeAttachmentStatus", 1), `&`, ``, 1) + `,`,
702 `}`,
703 }, "")
704 return s
705}
706func (this *VolumeAttachmentList) String() string {
707 if this == nil {
708 return "nil"
709 }
710 s := strings.Join([]string{`&VolumeAttachmentList{`,
711 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
712 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "VolumeAttachment", "VolumeAttachment", 1), `&`, ``, 1) + `,`,
713 `}`,
714 }, "")
715 return s
716}
717func (this *VolumeAttachmentSource) String() string {
718 if this == nil {
719 return "nil"
720 }
721 s := strings.Join([]string{`&VolumeAttachmentSource{`,
722 `PersistentVolumeName:` + valueToStringGenerated(this.PersistentVolumeName) + `,`,
723 `InlineVolumeSpec:` + strings.Replace(fmt.Sprintf("%v", this.InlineVolumeSpec), "PersistentVolumeSpec", "k8s_io_api_core_v1.PersistentVolumeSpec", 1) + `,`,
724 `}`,
725 }, "")
726 return s
727}
728func (this *VolumeAttachmentSpec) String() string {
729 if this == nil {
730 return "nil"
731 }
732 s := strings.Join([]string{`&VolumeAttachmentSpec{`,
733 `Attacher:` + fmt.Sprintf("%v", this.Attacher) + `,`,
734 `Source:` + strings.Replace(strings.Replace(this.Source.String(), "VolumeAttachmentSource", "VolumeAttachmentSource", 1), `&`, ``, 1) + `,`,
735 `NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`,
736 `}`,
737 }, "")
738 return s
739}
740func (this *VolumeAttachmentStatus) String() string {
741 if this == nil {
742 return "nil"
743 }
744 keysForAttachmentMetadata := make([]string, 0, len(this.AttachmentMetadata))
745 for k := range this.AttachmentMetadata {
746 keysForAttachmentMetadata = append(keysForAttachmentMetadata, k)
747 }
748 github_com_gogo_protobuf_sortkeys.Strings(keysForAttachmentMetadata)
749 mapStringForAttachmentMetadata := "map[string]string{"
750 for _, k := range keysForAttachmentMetadata {
751 mapStringForAttachmentMetadata += fmt.Sprintf("%v: %v,", k, this.AttachmentMetadata[k])
752 }
753 mapStringForAttachmentMetadata += "}"
754 s := strings.Join([]string{`&VolumeAttachmentStatus{`,
755 `Attached:` + fmt.Sprintf("%v", this.Attached) + `,`,
756 `AttachmentMetadata:` + mapStringForAttachmentMetadata + `,`,
757 `AttachError:` + strings.Replace(fmt.Sprintf("%v", this.AttachError), "VolumeError", "VolumeError", 1) + `,`,
758 `DetachError:` + strings.Replace(fmt.Sprintf("%v", this.DetachError), "VolumeError", "VolumeError", 1) + `,`,
759 `}`,
760 }, "")
761 return s
762}
763func (this *VolumeError) String() string {
764 if this == nil {
765 return "nil"
766 }
767 s := strings.Join([]string{`&VolumeError{`,
768 `Time:` + strings.Replace(strings.Replace(this.Time.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`,
769 `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
770 `}`,
771 }, "")
772 return s
773}
774func valueToStringGenerated(v interface{}) string {
775 rv := reflect.ValueOf(v)
776 if rv.IsNil() {
777 return "nil"
778 }
779 pv := reflect.Indirect(rv).Interface()
780 return fmt.Sprintf("*%v", pv)
781}
782func (m *StorageClass) Unmarshal(dAtA []byte) error {
783 l := len(dAtA)
784 iNdEx := 0
785 for iNdEx < l {
786 preIndex := iNdEx
787 var wire uint64
788 for shift := uint(0); ; shift += 7 {
789 if shift >= 64 {
790 return ErrIntOverflowGenerated
791 }
792 if iNdEx >= l {
793 return io.ErrUnexpectedEOF
794 }
795 b := dAtA[iNdEx]
796 iNdEx++
797 wire |= (uint64(b) & 0x7F) << shift
798 if b < 0x80 {
799 break
800 }
801 }
802 fieldNum := int32(wire >> 3)
803 wireType := int(wire & 0x7)
804 if wireType == 4 {
805 return fmt.Errorf("proto: StorageClass: wiretype end group for non-group")
806 }
807 if fieldNum <= 0 {
808 return fmt.Errorf("proto: StorageClass: illegal tag %d (wire type %d)", fieldNum, wire)
809 }
810 switch fieldNum {
811 case 1:
812 if wireType != 2 {
813 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
814 }
815 var msglen int
816 for shift := uint(0); ; shift += 7 {
817 if shift >= 64 {
818 return ErrIntOverflowGenerated
819 }
820 if iNdEx >= l {
821 return io.ErrUnexpectedEOF
822 }
823 b := dAtA[iNdEx]
824 iNdEx++
825 msglen |= (int(b) & 0x7F) << shift
826 if b < 0x80 {
827 break
828 }
829 }
830 if msglen < 0 {
831 return ErrInvalidLengthGenerated
832 }
833 postIndex := iNdEx + msglen
834 if postIndex > l {
835 return io.ErrUnexpectedEOF
836 }
837 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
838 return err
839 }
840 iNdEx = postIndex
841 case 2:
842 if wireType != 2 {
843 return fmt.Errorf("proto: wrong wireType = %d for field Provisioner", wireType)
844 }
845 var stringLen uint64
846 for shift := uint(0); ; shift += 7 {
847 if shift >= 64 {
848 return ErrIntOverflowGenerated
849 }
850 if iNdEx >= l {
851 return io.ErrUnexpectedEOF
852 }
853 b := dAtA[iNdEx]
854 iNdEx++
855 stringLen |= (uint64(b) & 0x7F) << shift
856 if b < 0x80 {
857 break
858 }
859 }
860 intStringLen := int(stringLen)
861 if intStringLen < 0 {
862 return ErrInvalidLengthGenerated
863 }
864 postIndex := iNdEx + intStringLen
865 if postIndex > l {
866 return io.ErrUnexpectedEOF
867 }
868 m.Provisioner = string(dAtA[iNdEx:postIndex])
869 iNdEx = postIndex
870 case 3:
871 if wireType != 2 {
872 return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType)
873 }
874 var msglen int
875 for shift := uint(0); ; shift += 7 {
876 if shift >= 64 {
877 return ErrIntOverflowGenerated
878 }
879 if iNdEx >= l {
880 return io.ErrUnexpectedEOF
881 }
882 b := dAtA[iNdEx]
883 iNdEx++
884 msglen |= (int(b) & 0x7F) << shift
885 if b < 0x80 {
886 break
887 }
888 }
889 if msglen < 0 {
890 return ErrInvalidLengthGenerated
891 }
892 postIndex := iNdEx + msglen
893 if postIndex > l {
894 return io.ErrUnexpectedEOF
895 }
896 if m.Parameters == nil {
897 m.Parameters = make(map[string]string)
898 }
899 var mapkey string
900 var mapvalue string
901 for iNdEx < postIndex {
902 entryPreIndex := iNdEx
903 var wire uint64
904 for shift := uint(0); ; shift += 7 {
905 if shift >= 64 {
906 return ErrIntOverflowGenerated
907 }
908 if iNdEx >= l {
909 return io.ErrUnexpectedEOF
910 }
911 b := dAtA[iNdEx]
912 iNdEx++
913 wire |= (uint64(b) & 0x7F) << shift
914 if b < 0x80 {
915 break
916 }
917 }
918 fieldNum := int32(wire >> 3)
919 if fieldNum == 1 {
920 var stringLenmapkey uint64
921 for shift := uint(0); ; shift += 7 {
922 if shift >= 64 {
923 return ErrIntOverflowGenerated
924 }
925 if iNdEx >= l {
926 return io.ErrUnexpectedEOF
927 }
928 b := dAtA[iNdEx]
929 iNdEx++
930 stringLenmapkey |= (uint64(b) & 0x7F) << shift
931 if b < 0x80 {
932 break
933 }
934 }
935 intStringLenmapkey := int(stringLenmapkey)
936 if intStringLenmapkey < 0 {
937 return ErrInvalidLengthGenerated
938 }
939 postStringIndexmapkey := iNdEx + intStringLenmapkey
940 if postStringIndexmapkey > l {
941 return io.ErrUnexpectedEOF
942 }
943 mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
944 iNdEx = postStringIndexmapkey
945 } else if fieldNum == 2 {
946 var stringLenmapvalue uint64
947 for shift := uint(0); ; shift += 7 {
948 if shift >= 64 {
949 return ErrIntOverflowGenerated
950 }
951 if iNdEx >= l {
952 return io.ErrUnexpectedEOF
953 }
954 b := dAtA[iNdEx]
955 iNdEx++
956 stringLenmapvalue |= (uint64(b) & 0x7F) << shift
957 if b < 0x80 {
958 break
959 }
960 }
961 intStringLenmapvalue := int(stringLenmapvalue)
962 if intStringLenmapvalue < 0 {
963 return ErrInvalidLengthGenerated
964 }
965 postStringIndexmapvalue := iNdEx + intStringLenmapvalue
966 if postStringIndexmapvalue > l {
967 return io.ErrUnexpectedEOF
968 }
969 mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
970 iNdEx = postStringIndexmapvalue
971 } else {
972 iNdEx = entryPreIndex
973 skippy, err := skipGenerated(dAtA[iNdEx:])
974 if err != nil {
975 return err
976 }
977 if skippy < 0 {
978 return ErrInvalidLengthGenerated
979 }
980 if (iNdEx + skippy) > postIndex {
981 return io.ErrUnexpectedEOF
982 }
983 iNdEx += skippy
984 }
985 }
986 m.Parameters[mapkey] = mapvalue
987 iNdEx = postIndex
988 case 4:
989 if wireType != 2 {
990 return fmt.Errorf("proto: wrong wireType = %d for field ReclaimPolicy", wireType)
991 }
992 var stringLen uint64
993 for shift := uint(0); ; shift += 7 {
994 if shift >= 64 {
995 return ErrIntOverflowGenerated
996 }
997 if iNdEx >= l {
998 return io.ErrUnexpectedEOF
999 }
1000 b := dAtA[iNdEx]
1001 iNdEx++
1002 stringLen |= (uint64(b) & 0x7F) << shift
1003 if b < 0x80 {
1004 break
1005 }
1006 }
1007 intStringLen := int(stringLen)
1008 if intStringLen < 0 {
1009 return ErrInvalidLengthGenerated
1010 }
1011 postIndex := iNdEx + intStringLen
1012 if postIndex > l {
1013 return io.ErrUnexpectedEOF
1014 }
1015 s := k8s_io_api_core_v1.PersistentVolumeReclaimPolicy(dAtA[iNdEx:postIndex])
1016 m.ReclaimPolicy = &s
1017 iNdEx = postIndex
1018 case 5:
1019 if wireType != 2 {
1020 return fmt.Errorf("proto: wrong wireType = %d for field MountOptions", wireType)
1021 }
1022 var stringLen uint64
1023 for shift := uint(0); ; shift += 7 {
1024 if shift >= 64 {
1025 return ErrIntOverflowGenerated
1026 }
1027 if iNdEx >= l {
1028 return io.ErrUnexpectedEOF
1029 }
1030 b := dAtA[iNdEx]
1031 iNdEx++
1032 stringLen |= (uint64(b) & 0x7F) << shift
1033 if b < 0x80 {
1034 break
1035 }
1036 }
1037 intStringLen := int(stringLen)
1038 if intStringLen < 0 {
1039 return ErrInvalidLengthGenerated
1040 }
1041 postIndex := iNdEx + intStringLen
1042 if postIndex > l {
1043 return io.ErrUnexpectedEOF
1044 }
1045 m.MountOptions = append(m.MountOptions, string(dAtA[iNdEx:postIndex]))
1046 iNdEx = postIndex
1047 case 6:
1048 if wireType != 0 {
1049 return fmt.Errorf("proto: wrong wireType = %d for field AllowVolumeExpansion", wireType)
1050 }
1051 var v int
1052 for shift := uint(0); ; shift += 7 {
1053 if shift >= 64 {
1054 return ErrIntOverflowGenerated
1055 }
1056 if iNdEx >= l {
1057 return io.ErrUnexpectedEOF
1058 }
1059 b := dAtA[iNdEx]
1060 iNdEx++
1061 v |= (int(b) & 0x7F) << shift
1062 if b < 0x80 {
1063 break
1064 }
1065 }
1066 b := bool(v != 0)
1067 m.AllowVolumeExpansion = &b
1068 case 7:
1069 if wireType != 2 {
1070 return fmt.Errorf("proto: wrong wireType = %d for field VolumeBindingMode", wireType)
1071 }
1072 var stringLen uint64
1073 for shift := uint(0); ; shift += 7 {
1074 if shift >= 64 {
1075 return ErrIntOverflowGenerated
1076 }
1077 if iNdEx >= l {
1078 return io.ErrUnexpectedEOF
1079 }
1080 b := dAtA[iNdEx]
1081 iNdEx++
1082 stringLen |= (uint64(b) & 0x7F) << shift
1083 if b < 0x80 {
1084 break
1085 }
1086 }
1087 intStringLen := int(stringLen)
1088 if intStringLen < 0 {
1089 return ErrInvalidLengthGenerated
1090 }
1091 postIndex := iNdEx + intStringLen
1092 if postIndex > l {
1093 return io.ErrUnexpectedEOF
1094 }
1095 s := VolumeBindingMode(dAtA[iNdEx:postIndex])
1096 m.VolumeBindingMode = &s
1097 iNdEx = postIndex
1098 case 8:
1099 if wireType != 2 {
1100 return fmt.Errorf("proto: wrong wireType = %d for field AllowedTopologies", wireType)
1101 }
1102 var msglen int
1103 for shift := uint(0); ; shift += 7 {
1104 if shift >= 64 {
1105 return ErrIntOverflowGenerated
1106 }
1107 if iNdEx >= l {
1108 return io.ErrUnexpectedEOF
1109 }
1110 b := dAtA[iNdEx]
1111 iNdEx++
1112 msglen |= (int(b) & 0x7F) << shift
1113 if b < 0x80 {
1114 break
1115 }
1116 }
1117 if msglen < 0 {
1118 return ErrInvalidLengthGenerated
1119 }
1120 postIndex := iNdEx + msglen
1121 if postIndex > l {
1122 return io.ErrUnexpectedEOF
1123 }
1124 m.AllowedTopologies = append(m.AllowedTopologies, k8s_io_api_core_v1.TopologySelectorTerm{})
1125 if err := m.AllowedTopologies[len(m.AllowedTopologies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1126 return err
1127 }
1128 iNdEx = postIndex
1129 default:
1130 iNdEx = preIndex
1131 skippy, err := skipGenerated(dAtA[iNdEx:])
1132 if err != nil {
1133 return err
1134 }
1135 if skippy < 0 {
1136 return ErrInvalidLengthGenerated
1137 }
1138 if (iNdEx + skippy) > l {
1139 return io.ErrUnexpectedEOF
1140 }
1141 iNdEx += skippy
1142 }
1143 }
1144
1145 if iNdEx > l {
1146 return io.ErrUnexpectedEOF
1147 }
1148 return nil
1149}
1150func (m *StorageClassList) Unmarshal(dAtA []byte) error {
1151 l := len(dAtA)
1152 iNdEx := 0
1153 for iNdEx < l {
1154 preIndex := iNdEx
1155 var wire uint64
1156 for shift := uint(0); ; shift += 7 {
1157 if shift >= 64 {
1158 return ErrIntOverflowGenerated
1159 }
1160 if iNdEx >= l {
1161 return io.ErrUnexpectedEOF
1162 }
1163 b := dAtA[iNdEx]
1164 iNdEx++
1165 wire |= (uint64(b) & 0x7F) << shift
1166 if b < 0x80 {
1167 break
1168 }
1169 }
1170 fieldNum := int32(wire >> 3)
1171 wireType := int(wire & 0x7)
1172 if wireType == 4 {
1173 return fmt.Errorf("proto: StorageClassList: wiretype end group for non-group")
1174 }
1175 if fieldNum <= 0 {
1176 return fmt.Errorf("proto: StorageClassList: illegal tag %d (wire type %d)", fieldNum, wire)
1177 }
1178 switch fieldNum {
1179 case 1:
1180 if wireType != 2 {
1181 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
1182 }
1183 var msglen int
1184 for shift := uint(0); ; shift += 7 {
1185 if shift >= 64 {
1186 return ErrIntOverflowGenerated
1187 }
1188 if iNdEx >= l {
1189 return io.ErrUnexpectedEOF
1190 }
1191 b := dAtA[iNdEx]
1192 iNdEx++
1193 msglen |= (int(b) & 0x7F) << shift
1194 if b < 0x80 {
1195 break
1196 }
1197 }
1198 if msglen < 0 {
1199 return ErrInvalidLengthGenerated
1200 }
1201 postIndex := iNdEx + msglen
1202 if postIndex > l {
1203 return io.ErrUnexpectedEOF
1204 }
1205 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1206 return err
1207 }
1208 iNdEx = postIndex
1209 case 2:
1210 if wireType != 2 {
1211 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
1212 }
1213 var msglen int
1214 for shift := uint(0); ; shift += 7 {
1215 if shift >= 64 {
1216 return ErrIntOverflowGenerated
1217 }
1218 if iNdEx >= l {
1219 return io.ErrUnexpectedEOF
1220 }
1221 b := dAtA[iNdEx]
1222 iNdEx++
1223 msglen |= (int(b) & 0x7F) << shift
1224 if b < 0x80 {
1225 break
1226 }
1227 }
1228 if msglen < 0 {
1229 return ErrInvalidLengthGenerated
1230 }
1231 postIndex := iNdEx + msglen
1232 if postIndex > l {
1233 return io.ErrUnexpectedEOF
1234 }
1235 m.Items = append(m.Items, StorageClass{})
1236 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1237 return err
1238 }
1239 iNdEx = postIndex
1240 default:
1241 iNdEx = preIndex
1242 skippy, err := skipGenerated(dAtA[iNdEx:])
1243 if err != nil {
1244 return err
1245 }
1246 if skippy < 0 {
1247 return ErrInvalidLengthGenerated
1248 }
1249 if (iNdEx + skippy) > l {
1250 return io.ErrUnexpectedEOF
1251 }
1252 iNdEx += skippy
1253 }
1254 }
1255
1256 if iNdEx > l {
1257 return io.ErrUnexpectedEOF
1258 }
1259 return nil
1260}
1261func (m *VolumeAttachment) Unmarshal(dAtA []byte) error {
1262 l := len(dAtA)
1263 iNdEx := 0
1264 for iNdEx < l {
1265 preIndex := iNdEx
1266 var wire uint64
1267 for shift := uint(0); ; shift += 7 {
1268 if shift >= 64 {
1269 return ErrIntOverflowGenerated
1270 }
1271 if iNdEx >= l {
1272 return io.ErrUnexpectedEOF
1273 }
1274 b := dAtA[iNdEx]
1275 iNdEx++
1276 wire |= (uint64(b) & 0x7F) << shift
1277 if b < 0x80 {
1278 break
1279 }
1280 }
1281 fieldNum := int32(wire >> 3)
1282 wireType := int(wire & 0x7)
1283 if wireType == 4 {
1284 return fmt.Errorf("proto: VolumeAttachment: wiretype end group for non-group")
1285 }
1286 if fieldNum <= 0 {
1287 return fmt.Errorf("proto: VolumeAttachment: illegal tag %d (wire type %d)", fieldNum, wire)
1288 }
1289 switch fieldNum {
1290 case 1:
1291 if wireType != 2 {
1292 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
1293 }
1294 var msglen int
1295 for shift := uint(0); ; shift += 7 {
1296 if shift >= 64 {
1297 return ErrIntOverflowGenerated
1298 }
1299 if iNdEx >= l {
1300 return io.ErrUnexpectedEOF
1301 }
1302 b := dAtA[iNdEx]
1303 iNdEx++
1304 msglen |= (int(b) & 0x7F) << shift
1305 if b < 0x80 {
1306 break
1307 }
1308 }
1309 if msglen < 0 {
1310 return ErrInvalidLengthGenerated
1311 }
1312 postIndex := iNdEx + msglen
1313 if postIndex > l {
1314 return io.ErrUnexpectedEOF
1315 }
1316 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1317 return err
1318 }
1319 iNdEx = postIndex
1320 case 2:
1321 if wireType != 2 {
1322 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
1323 }
1324 var msglen int
1325 for shift := uint(0); ; shift += 7 {
1326 if shift >= 64 {
1327 return ErrIntOverflowGenerated
1328 }
1329 if iNdEx >= l {
1330 return io.ErrUnexpectedEOF
1331 }
1332 b := dAtA[iNdEx]
1333 iNdEx++
1334 msglen |= (int(b) & 0x7F) << shift
1335 if b < 0x80 {
1336 break
1337 }
1338 }
1339 if msglen < 0 {
1340 return ErrInvalidLengthGenerated
1341 }
1342 postIndex := iNdEx + msglen
1343 if postIndex > l {
1344 return io.ErrUnexpectedEOF
1345 }
1346 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1347 return err
1348 }
1349 iNdEx = postIndex
1350 case 3:
1351 if wireType != 2 {
1352 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
1353 }
1354 var msglen int
1355 for shift := uint(0); ; shift += 7 {
1356 if shift >= 64 {
1357 return ErrIntOverflowGenerated
1358 }
1359 if iNdEx >= l {
1360 return io.ErrUnexpectedEOF
1361 }
1362 b := dAtA[iNdEx]
1363 iNdEx++
1364 msglen |= (int(b) & 0x7F) << shift
1365 if b < 0x80 {
1366 break
1367 }
1368 }
1369 if msglen < 0 {
1370 return ErrInvalidLengthGenerated
1371 }
1372 postIndex := iNdEx + msglen
1373 if postIndex > l {
1374 return io.ErrUnexpectedEOF
1375 }
1376 if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1377 return err
1378 }
1379 iNdEx = postIndex
1380 default:
1381 iNdEx = preIndex
1382 skippy, err := skipGenerated(dAtA[iNdEx:])
1383 if err != nil {
1384 return err
1385 }
1386 if skippy < 0 {
1387 return ErrInvalidLengthGenerated
1388 }
1389 if (iNdEx + skippy) > l {
1390 return io.ErrUnexpectedEOF
1391 }
1392 iNdEx += skippy
1393 }
1394 }
1395
1396 if iNdEx > l {
1397 return io.ErrUnexpectedEOF
1398 }
1399 return nil
1400}
1401func (m *VolumeAttachmentList) Unmarshal(dAtA []byte) error {
1402 l := len(dAtA)
1403 iNdEx := 0
1404 for iNdEx < l {
1405 preIndex := iNdEx
1406 var wire uint64
1407 for shift := uint(0); ; shift += 7 {
1408 if shift >= 64 {
1409 return ErrIntOverflowGenerated
1410 }
1411 if iNdEx >= l {
1412 return io.ErrUnexpectedEOF
1413 }
1414 b := dAtA[iNdEx]
1415 iNdEx++
1416 wire |= (uint64(b) & 0x7F) << shift
1417 if b < 0x80 {
1418 break
1419 }
1420 }
1421 fieldNum := int32(wire >> 3)
1422 wireType := int(wire & 0x7)
1423 if wireType == 4 {
1424 return fmt.Errorf("proto: VolumeAttachmentList: wiretype end group for non-group")
1425 }
1426 if fieldNum <= 0 {
1427 return fmt.Errorf("proto: VolumeAttachmentList: illegal tag %d (wire type %d)", fieldNum, wire)
1428 }
1429 switch fieldNum {
1430 case 1:
1431 if wireType != 2 {
1432 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
1433 }
1434 var msglen int
1435 for shift := uint(0); ; shift += 7 {
1436 if shift >= 64 {
1437 return ErrIntOverflowGenerated
1438 }
1439 if iNdEx >= l {
1440 return io.ErrUnexpectedEOF
1441 }
1442 b := dAtA[iNdEx]
1443 iNdEx++
1444 msglen |= (int(b) & 0x7F) << shift
1445 if b < 0x80 {
1446 break
1447 }
1448 }
1449 if msglen < 0 {
1450 return ErrInvalidLengthGenerated
1451 }
1452 postIndex := iNdEx + msglen
1453 if postIndex > l {
1454 return io.ErrUnexpectedEOF
1455 }
1456 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1457 return err
1458 }
1459 iNdEx = postIndex
1460 case 2:
1461 if wireType != 2 {
1462 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
1463 }
1464 var msglen int
1465 for shift := uint(0); ; shift += 7 {
1466 if shift >= 64 {
1467 return ErrIntOverflowGenerated
1468 }
1469 if iNdEx >= l {
1470 return io.ErrUnexpectedEOF
1471 }
1472 b := dAtA[iNdEx]
1473 iNdEx++
1474 msglen |= (int(b) & 0x7F) << shift
1475 if b < 0x80 {
1476 break
1477 }
1478 }
1479 if msglen < 0 {
1480 return ErrInvalidLengthGenerated
1481 }
1482 postIndex := iNdEx + msglen
1483 if postIndex > l {
1484 return io.ErrUnexpectedEOF
1485 }
1486 m.Items = append(m.Items, VolumeAttachment{})
1487 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1488 return err
1489 }
1490 iNdEx = postIndex
1491 default:
1492 iNdEx = preIndex
1493 skippy, err := skipGenerated(dAtA[iNdEx:])
1494 if err != nil {
1495 return err
1496 }
1497 if skippy < 0 {
1498 return ErrInvalidLengthGenerated
1499 }
1500 if (iNdEx + skippy) > l {
1501 return io.ErrUnexpectedEOF
1502 }
1503 iNdEx += skippy
1504 }
1505 }
1506
1507 if iNdEx > l {
1508 return io.ErrUnexpectedEOF
1509 }
1510 return nil
1511}
1512func (m *VolumeAttachmentSource) Unmarshal(dAtA []byte) error {
1513 l := len(dAtA)
1514 iNdEx := 0
1515 for iNdEx < l {
1516 preIndex := iNdEx
1517 var wire uint64
1518 for shift := uint(0); ; shift += 7 {
1519 if shift >= 64 {
1520 return ErrIntOverflowGenerated
1521 }
1522 if iNdEx >= l {
1523 return io.ErrUnexpectedEOF
1524 }
1525 b := dAtA[iNdEx]
1526 iNdEx++
1527 wire |= (uint64(b) & 0x7F) << shift
1528 if b < 0x80 {
1529 break
1530 }
1531 }
1532 fieldNum := int32(wire >> 3)
1533 wireType := int(wire & 0x7)
1534 if wireType == 4 {
1535 return fmt.Errorf("proto: VolumeAttachmentSource: wiretype end group for non-group")
1536 }
1537 if fieldNum <= 0 {
1538 return fmt.Errorf("proto: VolumeAttachmentSource: illegal tag %d (wire type %d)", fieldNum, wire)
1539 }
1540 switch fieldNum {
1541 case 1:
1542 if wireType != 2 {
1543 return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeName", wireType)
1544 }
1545 var stringLen uint64
1546 for shift := uint(0); ; shift += 7 {
1547 if shift >= 64 {
1548 return ErrIntOverflowGenerated
1549 }
1550 if iNdEx >= l {
1551 return io.ErrUnexpectedEOF
1552 }
1553 b := dAtA[iNdEx]
1554 iNdEx++
1555 stringLen |= (uint64(b) & 0x7F) << shift
1556 if b < 0x80 {
1557 break
1558 }
1559 }
1560 intStringLen := int(stringLen)
1561 if intStringLen < 0 {
1562 return ErrInvalidLengthGenerated
1563 }
1564 postIndex := iNdEx + intStringLen
1565 if postIndex > l {
1566 return io.ErrUnexpectedEOF
1567 }
1568 s := string(dAtA[iNdEx:postIndex])
1569 m.PersistentVolumeName = &s
1570 iNdEx = postIndex
1571 case 2:
1572 if wireType != 2 {
1573 return fmt.Errorf("proto: wrong wireType = %d for field InlineVolumeSpec", wireType)
1574 }
1575 var msglen int
1576 for shift := uint(0); ; shift += 7 {
1577 if shift >= 64 {
1578 return ErrIntOverflowGenerated
1579 }
1580 if iNdEx >= l {
1581 return io.ErrUnexpectedEOF
1582 }
1583 b := dAtA[iNdEx]
1584 iNdEx++
1585 msglen |= (int(b) & 0x7F) << shift
1586 if b < 0x80 {
1587 break
1588 }
1589 }
1590 if msglen < 0 {
1591 return ErrInvalidLengthGenerated
1592 }
1593 postIndex := iNdEx + msglen
1594 if postIndex > l {
1595 return io.ErrUnexpectedEOF
1596 }
1597 if m.InlineVolumeSpec == nil {
1598 m.InlineVolumeSpec = &k8s_io_api_core_v1.PersistentVolumeSpec{}
1599 }
1600 if err := m.InlineVolumeSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1601 return err
1602 }
1603 iNdEx = postIndex
1604 default:
1605 iNdEx = preIndex
1606 skippy, err := skipGenerated(dAtA[iNdEx:])
1607 if err != nil {
1608 return err
1609 }
1610 if skippy < 0 {
1611 return ErrInvalidLengthGenerated
1612 }
1613 if (iNdEx + skippy) > l {
1614 return io.ErrUnexpectedEOF
1615 }
1616 iNdEx += skippy
1617 }
1618 }
1619
1620 if iNdEx > l {
1621 return io.ErrUnexpectedEOF
1622 }
1623 return nil
1624}
1625func (m *VolumeAttachmentSpec) Unmarshal(dAtA []byte) error {
1626 l := len(dAtA)
1627 iNdEx := 0
1628 for iNdEx < l {
1629 preIndex := iNdEx
1630 var wire uint64
1631 for shift := uint(0); ; shift += 7 {
1632 if shift >= 64 {
1633 return ErrIntOverflowGenerated
1634 }
1635 if iNdEx >= l {
1636 return io.ErrUnexpectedEOF
1637 }
1638 b := dAtA[iNdEx]
1639 iNdEx++
1640 wire |= (uint64(b) & 0x7F) << shift
1641 if b < 0x80 {
1642 break
1643 }
1644 }
1645 fieldNum := int32(wire >> 3)
1646 wireType := int(wire & 0x7)
1647 if wireType == 4 {
1648 return fmt.Errorf("proto: VolumeAttachmentSpec: wiretype end group for non-group")
1649 }
1650 if fieldNum <= 0 {
1651 return fmt.Errorf("proto: VolumeAttachmentSpec: illegal tag %d (wire type %d)", fieldNum, wire)
1652 }
1653 switch fieldNum {
1654 case 1:
1655 if wireType != 2 {
1656 return fmt.Errorf("proto: wrong wireType = %d for field Attacher", wireType)
1657 }
1658 var stringLen uint64
1659 for shift := uint(0); ; shift += 7 {
1660 if shift >= 64 {
1661 return ErrIntOverflowGenerated
1662 }
1663 if iNdEx >= l {
1664 return io.ErrUnexpectedEOF
1665 }
1666 b := dAtA[iNdEx]
1667 iNdEx++
1668 stringLen |= (uint64(b) & 0x7F) << shift
1669 if b < 0x80 {
1670 break
1671 }
1672 }
1673 intStringLen := int(stringLen)
1674 if intStringLen < 0 {
1675 return ErrInvalidLengthGenerated
1676 }
1677 postIndex := iNdEx + intStringLen
1678 if postIndex > l {
1679 return io.ErrUnexpectedEOF
1680 }
1681 m.Attacher = string(dAtA[iNdEx:postIndex])
1682 iNdEx = postIndex
1683 case 2:
1684 if wireType != 2 {
1685 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
1686 }
1687 var msglen int
1688 for shift := uint(0); ; shift += 7 {
1689 if shift >= 64 {
1690 return ErrIntOverflowGenerated
1691 }
1692 if iNdEx >= l {
1693 return io.ErrUnexpectedEOF
1694 }
1695 b := dAtA[iNdEx]
1696 iNdEx++
1697 msglen |= (int(b) & 0x7F) << shift
1698 if b < 0x80 {
1699 break
1700 }
1701 }
1702 if msglen < 0 {
1703 return ErrInvalidLengthGenerated
1704 }
1705 postIndex := iNdEx + msglen
1706 if postIndex > l {
1707 return io.ErrUnexpectedEOF
1708 }
1709 if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1710 return err
1711 }
1712 iNdEx = postIndex
1713 case 3:
1714 if wireType != 2 {
1715 return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType)
1716 }
1717 var stringLen uint64
1718 for shift := uint(0); ; shift += 7 {
1719 if shift >= 64 {
1720 return ErrIntOverflowGenerated
1721 }
1722 if iNdEx >= l {
1723 return io.ErrUnexpectedEOF
1724 }
1725 b := dAtA[iNdEx]
1726 iNdEx++
1727 stringLen |= (uint64(b) & 0x7F) << shift
1728 if b < 0x80 {
1729 break
1730 }
1731 }
1732 intStringLen := int(stringLen)
1733 if intStringLen < 0 {
1734 return ErrInvalidLengthGenerated
1735 }
1736 postIndex := iNdEx + intStringLen
1737 if postIndex > l {
1738 return io.ErrUnexpectedEOF
1739 }
1740 m.NodeName = string(dAtA[iNdEx:postIndex])
1741 iNdEx = postIndex
1742 default:
1743 iNdEx = preIndex
1744 skippy, err := skipGenerated(dAtA[iNdEx:])
1745 if err != nil {
1746 return err
1747 }
1748 if skippy < 0 {
1749 return ErrInvalidLengthGenerated
1750 }
1751 if (iNdEx + skippy) > l {
1752 return io.ErrUnexpectedEOF
1753 }
1754 iNdEx += skippy
1755 }
1756 }
1757
1758 if iNdEx > l {
1759 return io.ErrUnexpectedEOF
1760 }
1761 return nil
1762}
1763func (m *VolumeAttachmentStatus) Unmarshal(dAtA []byte) error {
1764 l := len(dAtA)
1765 iNdEx := 0
1766 for iNdEx < l {
1767 preIndex := iNdEx
1768 var wire uint64
1769 for shift := uint(0); ; shift += 7 {
1770 if shift >= 64 {
1771 return ErrIntOverflowGenerated
1772 }
1773 if iNdEx >= l {
1774 return io.ErrUnexpectedEOF
1775 }
1776 b := dAtA[iNdEx]
1777 iNdEx++
1778 wire |= (uint64(b) & 0x7F) << shift
1779 if b < 0x80 {
1780 break
1781 }
1782 }
1783 fieldNum := int32(wire >> 3)
1784 wireType := int(wire & 0x7)
1785 if wireType == 4 {
1786 return fmt.Errorf("proto: VolumeAttachmentStatus: wiretype end group for non-group")
1787 }
1788 if fieldNum <= 0 {
1789 return fmt.Errorf("proto: VolumeAttachmentStatus: illegal tag %d (wire type %d)", fieldNum, wire)
1790 }
1791 switch fieldNum {
1792 case 1:
1793 if wireType != 0 {
1794 return fmt.Errorf("proto: wrong wireType = %d for field Attached", wireType)
1795 }
1796 var v int
1797 for shift := uint(0); ; shift += 7 {
1798 if shift >= 64 {
1799 return ErrIntOverflowGenerated
1800 }
1801 if iNdEx >= l {
1802 return io.ErrUnexpectedEOF
1803 }
1804 b := dAtA[iNdEx]
1805 iNdEx++
1806 v |= (int(b) & 0x7F) << shift
1807 if b < 0x80 {
1808 break
1809 }
1810 }
1811 m.Attached = bool(v != 0)
1812 case 2:
1813 if wireType != 2 {
1814 return fmt.Errorf("proto: wrong wireType = %d for field AttachmentMetadata", wireType)
1815 }
1816 var msglen int
1817 for shift := uint(0); ; shift += 7 {
1818 if shift >= 64 {
1819 return ErrIntOverflowGenerated
1820 }
1821 if iNdEx >= l {
1822 return io.ErrUnexpectedEOF
1823 }
1824 b := dAtA[iNdEx]
1825 iNdEx++
1826 msglen |= (int(b) & 0x7F) << shift
1827 if b < 0x80 {
1828 break
1829 }
1830 }
1831 if msglen < 0 {
1832 return ErrInvalidLengthGenerated
1833 }
1834 postIndex := iNdEx + msglen
1835 if postIndex > l {
1836 return io.ErrUnexpectedEOF
1837 }
1838 if m.AttachmentMetadata == nil {
1839 m.AttachmentMetadata = make(map[string]string)
1840 }
1841 var mapkey string
1842 var mapvalue string
1843 for iNdEx < postIndex {
1844 entryPreIndex := iNdEx
1845 var wire uint64
1846 for shift := uint(0); ; shift += 7 {
1847 if shift >= 64 {
1848 return ErrIntOverflowGenerated
1849 }
1850 if iNdEx >= l {
1851 return io.ErrUnexpectedEOF
1852 }
1853 b := dAtA[iNdEx]
1854 iNdEx++
1855 wire |= (uint64(b) & 0x7F) << shift
1856 if b < 0x80 {
1857 break
1858 }
1859 }
1860 fieldNum := int32(wire >> 3)
1861 if fieldNum == 1 {
1862 var stringLenmapkey uint64
1863 for shift := uint(0); ; shift += 7 {
1864 if shift >= 64 {
1865 return ErrIntOverflowGenerated
1866 }
1867 if iNdEx >= l {
1868 return io.ErrUnexpectedEOF
1869 }
1870 b := dAtA[iNdEx]
1871 iNdEx++
1872 stringLenmapkey |= (uint64(b) & 0x7F) << shift
1873 if b < 0x80 {
1874 break
1875 }
1876 }
1877 intStringLenmapkey := int(stringLenmapkey)
1878 if intStringLenmapkey < 0 {
1879 return ErrInvalidLengthGenerated
1880 }
1881 postStringIndexmapkey := iNdEx + intStringLenmapkey
1882 if postStringIndexmapkey > l {
1883 return io.ErrUnexpectedEOF
1884 }
1885 mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
1886 iNdEx = postStringIndexmapkey
1887 } else if fieldNum == 2 {
1888 var stringLenmapvalue uint64
1889 for shift := uint(0); ; shift += 7 {
1890 if shift >= 64 {
1891 return ErrIntOverflowGenerated
1892 }
1893 if iNdEx >= l {
1894 return io.ErrUnexpectedEOF
1895 }
1896 b := dAtA[iNdEx]
1897 iNdEx++
1898 stringLenmapvalue |= (uint64(b) & 0x7F) << shift
1899 if b < 0x80 {
1900 break
1901 }
1902 }
1903 intStringLenmapvalue := int(stringLenmapvalue)
1904 if intStringLenmapvalue < 0 {
1905 return ErrInvalidLengthGenerated
1906 }
1907 postStringIndexmapvalue := iNdEx + intStringLenmapvalue
1908 if postStringIndexmapvalue > l {
1909 return io.ErrUnexpectedEOF
1910 }
1911 mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
1912 iNdEx = postStringIndexmapvalue
1913 } else {
1914 iNdEx = entryPreIndex
1915 skippy, err := skipGenerated(dAtA[iNdEx:])
1916 if err != nil {
1917 return err
1918 }
1919 if skippy < 0 {
1920 return ErrInvalidLengthGenerated
1921 }
1922 if (iNdEx + skippy) > postIndex {
1923 return io.ErrUnexpectedEOF
1924 }
1925 iNdEx += skippy
1926 }
1927 }
1928 m.AttachmentMetadata[mapkey] = mapvalue
1929 iNdEx = postIndex
1930 case 3:
1931 if wireType != 2 {
1932 return fmt.Errorf("proto: wrong wireType = %d for field AttachError", wireType)
1933 }
1934 var msglen int
1935 for shift := uint(0); ; shift += 7 {
1936 if shift >= 64 {
1937 return ErrIntOverflowGenerated
1938 }
1939 if iNdEx >= l {
1940 return io.ErrUnexpectedEOF
1941 }
1942 b := dAtA[iNdEx]
1943 iNdEx++
1944 msglen |= (int(b) & 0x7F) << shift
1945 if b < 0x80 {
1946 break
1947 }
1948 }
1949 if msglen < 0 {
1950 return ErrInvalidLengthGenerated
1951 }
1952 postIndex := iNdEx + msglen
1953 if postIndex > l {
1954 return io.ErrUnexpectedEOF
1955 }
1956 if m.AttachError == nil {
1957 m.AttachError = &VolumeError{}
1958 }
1959 if err := m.AttachError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1960 return err
1961 }
1962 iNdEx = postIndex
1963 case 4:
1964 if wireType != 2 {
1965 return fmt.Errorf("proto: wrong wireType = %d for field DetachError", wireType)
1966 }
1967 var msglen int
1968 for shift := uint(0); ; shift += 7 {
1969 if shift >= 64 {
1970 return ErrIntOverflowGenerated
1971 }
1972 if iNdEx >= l {
1973 return io.ErrUnexpectedEOF
1974 }
1975 b := dAtA[iNdEx]
1976 iNdEx++
1977 msglen |= (int(b) & 0x7F) << shift
1978 if b < 0x80 {
1979 break
1980 }
1981 }
1982 if msglen < 0 {
1983 return ErrInvalidLengthGenerated
1984 }
1985 postIndex := iNdEx + msglen
1986 if postIndex > l {
1987 return io.ErrUnexpectedEOF
1988 }
1989 if m.DetachError == nil {
1990 m.DetachError = &VolumeError{}
1991 }
1992 if err := m.DetachError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1993 return err
1994 }
1995 iNdEx = postIndex
1996 default:
1997 iNdEx = preIndex
1998 skippy, err := skipGenerated(dAtA[iNdEx:])
1999 if err != nil {
2000 return err
2001 }
2002 if skippy < 0 {
2003 return ErrInvalidLengthGenerated
2004 }
2005 if (iNdEx + skippy) > l {
2006 return io.ErrUnexpectedEOF
2007 }
2008 iNdEx += skippy
2009 }
2010 }
2011
2012 if iNdEx > l {
2013 return io.ErrUnexpectedEOF
2014 }
2015 return nil
2016}
2017func (m *VolumeError) Unmarshal(dAtA []byte) error {
2018 l := len(dAtA)
2019 iNdEx := 0
2020 for iNdEx < l {
2021 preIndex := iNdEx
2022 var wire uint64
2023 for shift := uint(0); ; shift += 7 {
2024 if shift >= 64 {
2025 return ErrIntOverflowGenerated
2026 }
2027 if iNdEx >= l {
2028 return io.ErrUnexpectedEOF
2029 }
2030 b := dAtA[iNdEx]
2031 iNdEx++
2032 wire |= (uint64(b) & 0x7F) << shift
2033 if b < 0x80 {
2034 break
2035 }
2036 }
2037 fieldNum := int32(wire >> 3)
2038 wireType := int(wire & 0x7)
2039 if wireType == 4 {
2040 return fmt.Errorf("proto: VolumeError: wiretype end group for non-group")
2041 }
2042 if fieldNum <= 0 {
2043 return fmt.Errorf("proto: VolumeError: illegal tag %d (wire type %d)", fieldNum, wire)
2044 }
2045 switch fieldNum {
2046 case 1:
2047 if wireType != 2 {
2048 return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
2049 }
2050 var msglen int
2051 for shift := uint(0); ; shift += 7 {
2052 if shift >= 64 {
2053 return ErrIntOverflowGenerated
2054 }
2055 if iNdEx >= l {
2056 return io.ErrUnexpectedEOF
2057 }
2058 b := dAtA[iNdEx]
2059 iNdEx++
2060 msglen |= (int(b) & 0x7F) << shift
2061 if b < 0x80 {
2062 break
2063 }
2064 }
2065 if msglen < 0 {
2066 return ErrInvalidLengthGenerated
2067 }
2068 postIndex := iNdEx + msglen
2069 if postIndex > l {
2070 return io.ErrUnexpectedEOF
2071 }
2072 if err := m.Time.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2073 return err
2074 }
2075 iNdEx = postIndex
2076 case 2:
2077 if wireType != 2 {
2078 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
2079 }
2080 var stringLen uint64
2081 for shift := uint(0); ; shift += 7 {
2082 if shift >= 64 {
2083 return ErrIntOverflowGenerated
2084 }
2085 if iNdEx >= l {
2086 return io.ErrUnexpectedEOF
2087 }
2088 b := dAtA[iNdEx]
2089 iNdEx++
2090 stringLen |= (uint64(b) & 0x7F) << shift
2091 if b < 0x80 {
2092 break
2093 }
2094 }
2095 intStringLen := int(stringLen)
2096 if intStringLen < 0 {
2097 return ErrInvalidLengthGenerated
2098 }
2099 postIndex := iNdEx + intStringLen
2100 if postIndex > l {
2101 return io.ErrUnexpectedEOF
2102 }
2103 m.Message = string(dAtA[iNdEx:postIndex])
2104 iNdEx = postIndex
2105 default:
2106 iNdEx = preIndex
2107 skippy, err := skipGenerated(dAtA[iNdEx:])
2108 if err != nil {
2109 return err
2110 }
2111 if skippy < 0 {
2112 return ErrInvalidLengthGenerated
2113 }
2114 if (iNdEx + skippy) > l {
2115 return io.ErrUnexpectedEOF
2116 }
2117 iNdEx += skippy
2118 }
2119 }
2120
2121 if iNdEx > l {
2122 return io.ErrUnexpectedEOF
2123 }
2124 return nil
2125}
2126func skipGenerated(dAtA []byte) (n int, err error) {
2127 l := len(dAtA)
2128 iNdEx := 0
2129 for iNdEx < l {
2130 var wire uint64
2131 for shift := uint(0); ; shift += 7 {
2132 if shift >= 64 {
2133 return 0, ErrIntOverflowGenerated
2134 }
2135 if iNdEx >= l {
2136 return 0, io.ErrUnexpectedEOF
2137 }
2138 b := dAtA[iNdEx]
2139 iNdEx++
2140 wire |= (uint64(b) & 0x7F) << shift
2141 if b < 0x80 {
2142 break
2143 }
2144 }
2145 wireType := int(wire & 0x7)
2146 switch wireType {
2147 case 0:
2148 for shift := uint(0); ; shift += 7 {
2149 if shift >= 64 {
2150 return 0, ErrIntOverflowGenerated
2151 }
2152 if iNdEx >= l {
2153 return 0, io.ErrUnexpectedEOF
2154 }
2155 iNdEx++
2156 if dAtA[iNdEx-1] < 0x80 {
2157 break
2158 }
2159 }
2160 return iNdEx, nil
2161 case 1:
2162 iNdEx += 8
2163 return iNdEx, nil
2164 case 2:
2165 var length int
2166 for shift := uint(0); ; shift += 7 {
2167 if shift >= 64 {
2168 return 0, ErrIntOverflowGenerated
2169 }
2170 if iNdEx >= l {
2171 return 0, io.ErrUnexpectedEOF
2172 }
2173 b := dAtA[iNdEx]
2174 iNdEx++
2175 length |= (int(b) & 0x7F) << shift
2176 if b < 0x80 {
2177 break
2178 }
2179 }
2180 iNdEx += length
2181 if length < 0 {
2182 return 0, ErrInvalidLengthGenerated
2183 }
2184 return iNdEx, nil
2185 case 3:
2186 for {
2187 var innerWire uint64
2188 var start int = iNdEx
2189 for shift := uint(0); ; shift += 7 {
2190 if shift >= 64 {
2191 return 0, ErrIntOverflowGenerated
2192 }
2193 if iNdEx >= l {
2194 return 0, io.ErrUnexpectedEOF
2195 }
2196 b := dAtA[iNdEx]
2197 iNdEx++
2198 innerWire |= (uint64(b) & 0x7F) << shift
2199 if b < 0x80 {
2200 break
2201 }
2202 }
2203 innerWireType := int(innerWire & 0x7)
2204 if innerWireType == 4 {
2205 break
2206 }
2207 next, err := skipGenerated(dAtA[start:])
2208 if err != nil {
2209 return 0, err
2210 }
2211 iNdEx = start + next
2212 }
2213 return iNdEx, nil
2214 case 4:
2215 return iNdEx, nil
2216 case 5:
2217 iNdEx += 4
2218 return iNdEx, nil
2219 default:
2220 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
2221 }
2222 }
2223 panic("unreachable")
2224}
2225
2226var (
2227 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
2228 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
2229)
2230
2231func init() {
2232 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/storage/v1/generated.proto", fileDescriptorGenerated)
2233}
2234
2235var fileDescriptorGenerated = []byte{
2236 // 1018 bytes of a gzipped FileDescriptorProto
2237 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x3d, 0x6f, 0x23, 0xc5,
2238 0x1b, 0xcf, 0xc6, 0x79, 0x71, 0xc6, 0xc9, 0xff, 0x9c, 0xf9, 0x07, 0x30, 0x2e, 0xec, 0xc8, 0x14,
2239 0x98, 0x83, 0xdb, 0xbd, 0x84, 0x03, 0x9d, 0x90, 0x40, 0xf2, 0x82, 0x25, 0x4e, 0x8a, 0xef, 0xa2,
2240 0x49, 0x38, 0x21, 0x44, 0xc1, 0x64, 0xf7, 0x61, 0xb3, 0x67, 0xef, 0xce, 0x32, 0x33, 0x36, 0xa4,
2241 0xa3, 0xa2, 0x43, 0x82, 0x96, 0x8f, 0x42, 0x49, 0x15, 0xba, 0x13, 0xd5, 0x55, 0x16, 0x59, 0x6a,
2242 0xbe, 0x40, 0x2a, 0x34, 0xb3, 0x13, 0x7b, 0x63, 0x6f, 0xc0, 0x69, 0xae, 0xf3, 0xf3, 0xf2, 0xfb,
2243 0x3d, 0xef, 0xb3, 0x46, 0x1f, 0xf5, 0x1f, 0x0a, 0x3b, 0x64, 0x4e, 0x7f, 0x78, 0x02, 0x3c, 0x06,
2244 0x09, 0xc2, 0x19, 0x41, 0xec, 0x33, 0xee, 0x18, 0x03, 0x4d, 0x42, 0x47, 0x48, 0xc6, 0x69, 0x00,
2245 0xce, 0x68, 0xcf, 0x09, 0x20, 0x06, 0x4e, 0x25, 0xf8, 0x76, 0xc2, 0x99, 0x64, 0xf8, 0x95, 0xcc,
2246 0xcd, 0xa6, 0x49, 0x68, 0x1b, 0x37, 0x7b, 0xb4, 0x57, 0xbf, 0x17, 0x84, 0xf2, 0x74, 0x78, 0x62,
2247 0x7b, 0x2c, 0x72, 0x02, 0x16, 0x30, 0x47, 0x7b, 0x9f, 0x0c, 0xbf, 0xd6, 0x92, 0x16, 0xf4, 0xaf,
2248 0x8c, 0xa5, 0xde, 0xca, 0x05, 0xf3, 0x18, 0x2f, 0x8a, 0x54, 0x7f, 0x30, 0xf5, 0x89, 0xa8, 0x77,
2249 0x1a, 0xc6, 0xc0, 0xcf, 0x9c, 0xa4, 0x1f, 0x28, 0x85, 0x70, 0x22, 0x90, 0xb4, 0x08, 0xe5, 0xdc,
2250 0x84, 0xe2, 0xc3, 0x58, 0x86, 0x11, 0xcc, 0x01, 0xde, 0xff, 0x2f, 0x80, 0xf0, 0x4e, 0x21, 0xa2,
2251 0xb3, 0xb8, 0xd6, 0x8f, 0x6b, 0x68, 0xf3, 0x28, 0x6b, 0xc0, 0xc7, 0x03, 0x2a, 0x04, 0xfe, 0x0a,
2252 0x95, 0x55, 0x52, 0x3e, 0x95, 0xb4, 0x66, 0xed, 0x5a, 0xed, 0xca, 0xfe, 0x7d, 0x7b, 0xda, 0xac,
2253 0x09, 0xb7, 0x9d, 0xf4, 0x03, 0xa5, 0x10, 0xb6, 0xf2, 0xb6, 0x47, 0x7b, 0xf6, 0x93, 0x93, 0x67,
2254 0xe0, 0xc9, 0x1e, 0x48, 0xea, 0xe2, 0xf3, 0x71, 0x73, 0x29, 0x1d, 0x37, 0xd1, 0x54, 0x47, 0x26,
2255 0xac, 0xf8, 0x3d, 0x54, 0x49, 0x38, 0x1b, 0x85, 0x22, 0x64, 0x31, 0xf0, 0xda, 0xf2, 0xae, 0xd5,
2256 0xde, 0x70, 0xff, 0x6f, 0x20, 0x95, 0xc3, 0xa9, 0x89, 0xe4, 0xfd, 0x70, 0x80, 0x50, 0x42, 0x39,
2257 0x8d, 0x40, 0x02, 0x17, 0xb5, 0xd2, 0x6e, 0xa9, 0x5d, 0xd9, 0x7f, 0xd7, 0x2e, 0x9c, 0xa3, 0x9d,
2258 0xaf, 0xc8, 0x3e, 0x9c, 0xa0, 0xba, 0xb1, 0xe4, 0x67, 0xd3, 0xec, 0xa6, 0x06, 0x92, 0xa3, 0xc6,
2259 0x7d, 0xb4, 0xc5, 0xc1, 0x1b, 0xd0, 0x30, 0x3a, 0x64, 0x83, 0xd0, 0x3b, 0xab, 0xad, 0xe8, 0x0c,
2260 0xbb, 0xe9, 0xb8, 0xb9, 0x45, 0xf2, 0x86, 0xcb, 0x71, 0xf3, 0xfe, 0xfc, 0x06, 0xd8, 0x87, 0xc0,
2261 0x45, 0x28, 0x24, 0xc4, 0xf2, 0x29, 0x1b, 0x0c, 0x23, 0xb8, 0x86, 0x21, 0xd7, 0xb9, 0xf1, 0x03,
2262 0xb4, 0x19, 0xb1, 0x61, 0x2c, 0x9f, 0x24, 0x32, 0x64, 0xb1, 0xa8, 0xad, 0xee, 0x96, 0xda, 0x1b,
2263 0x6e, 0x35, 0x1d, 0x37, 0x37, 0x7b, 0x39, 0x3d, 0xb9, 0xe6, 0x85, 0x0f, 0xd0, 0x0e, 0x1d, 0x0c,
2264 0xd8, 0xb7, 0x59, 0x80, 0xee, 0x77, 0x09, 0x8d, 0x55, 0x97, 0x6a, 0x6b, 0xbb, 0x56, 0xbb, 0xec,
2265 0xd6, 0xd2, 0x71, 0x73, 0xa7, 0x53, 0x60, 0x27, 0x85, 0x28, 0xfc, 0x39, 0xda, 0x1e, 0x69, 0x95,
2266 0x1b, 0xc6, 0x7e, 0x18, 0x07, 0x3d, 0xe6, 0x43, 0x6d, 0x5d, 0x17, 0x7d, 0x37, 0x1d, 0x37, 0xb7,
2267 0x9f, 0xce, 0x1a, 0x2f, 0x8b, 0x94, 0x64, 0x9e, 0x04, 0x7f, 0x83, 0xb6, 0x75, 0x44, 0xf0, 0x8f,
2268 0x59, 0xc2, 0x06, 0x2c, 0x08, 0x41, 0xd4, 0xca, 0x7a, 0x74, 0xed, 0xfc, 0xe8, 0x54, 0xeb, 0xd4,
2269 0xdc, 0x8c, 0xd7, 0xd9, 0x11, 0x0c, 0xc0, 0x93, 0x8c, 0x1f, 0x03, 0x8f, 0xdc, 0xd7, 0xcd, 0xbc,
2270 0xb6, 0x3b, 0xb3, 0x54, 0x64, 0x9e, 0xbd, 0xfe, 0x21, 0xba, 0x33, 0x33, 0x70, 0x5c, 0x45, 0xa5,
2271 0x3e, 0x9c, 0xe9, 0x6d, 0xde, 0x20, 0xea, 0x27, 0xde, 0x41, 0xab, 0x23, 0x3a, 0x18, 0x42, 0xb6,
2272 0x7c, 0x24, 0x13, 0x3e, 0x58, 0x7e, 0x68, 0xb5, 0x7e, 0xb5, 0x50, 0x35, 0xbf, 0x3d, 0x07, 0xa1,
2273 0x90, 0xf8, 0xcb, 0xb9, 0x9b, 0xb0, 0x17, 0xbb, 0x09, 0x85, 0xd6, 0x17, 0x51, 0x35, 0x35, 0x94,
2274 0xaf, 0x34, 0xb9, 0x7b, 0xf8, 0x14, 0xad, 0x86, 0x12, 0x22, 0x51, 0x5b, 0xd6, 0x8d, 0x79, 0x63,
2275 0x81, 0x9d, 0x76, 0xb7, 0x0c, 0xdf, 0xea, 0x23, 0x85, 0x24, 0x19, 0x41, 0xeb, 0x97, 0x65, 0x54,
2276 0xcd, 0xe6, 0xd2, 0x91, 0x92, 0x7a, 0xa7, 0x11, 0xc4, 0xf2, 0x25, 0x1c, 0x74, 0x0f, 0xad, 0x88,
2277 0x04, 0x3c, 0xdd, 0xcc, 0xca, 0xfe, 0xdb, 0x37, 0xe4, 0x3f, 0x9b, 0xd8, 0x51, 0x02, 0x9e, 0xbb,
2278 0x69, 0x88, 0x57, 0x94, 0x44, 0x34, 0x0d, 0xfe, 0x0c, 0xad, 0x09, 0x49, 0xe5, 0x50, 0x1d, 0xb9,
2279 0x22, 0xbc, 0xb7, 0x28, 0xa1, 0x06, 0xb9, 0xff, 0x33, 0x94, 0x6b, 0x99, 0x4c, 0x0c, 0x59, 0xeb,
2280 0x37, 0x0b, 0xed, 0xcc, 0x42, 0x5e, 0xc2, 0x74, 0x0f, 0xae, 0x4f, 0xf7, 0xcd, 0x05, 0x8b, 0xb9,
2281 0x61, 0xc2, 0x7f, 0x58, 0xe8, 0xd5, 0xb9, 0xba, 0xd9, 0x90, 0x7b, 0xa0, 0xde, 0x84, 0x64, 0xe6,
2282 0xe5, 0x79, 0x4c, 0x23, 0xc8, 0xd6, 0x3e, 0x7b, 0x13, 0x0e, 0x0b, 0xec, 0xa4, 0x10, 0x85, 0x9f,
2283 0xa1, 0x6a, 0x18, 0x0f, 0xc2, 0x18, 0x32, 0xdd, 0xd1, 0x74, 0xbe, 0x85, 0x87, 0x3b, 0xcb, 0xac,
2284 0x87, 0xbb, 0x93, 0x8e, 0x9b, 0xd5, 0x47, 0x33, 0x2c, 0x64, 0x8e, 0xb7, 0xf5, 0x7b, 0xc1, 0x64,
2285 0x94, 0x01, 0xbf, 0x83, 0xca, 0x54, 0x6b, 0x80, 0x9b, 0x32, 0x26, 0x9d, 0xee, 0x18, 0x3d, 0x99,
2286 0x78, 0xe8, 0xbd, 0xd1, 0xad, 0x30, 0x89, 0x2e, 0xbc, 0x37, 0x1a, 0x94, 0xdb, 0x1b, 0x2d, 0x13,
2287 0x43, 0xa6, 0x92, 0x88, 0x99, 0x9f, 0xf5, 0xb2, 0x74, 0x3d, 0x89, 0xc7, 0x46, 0x4f, 0x26, 0x1e,
2288 0xad, 0xbf, 0x4b, 0x05, 0x03, 0xd2, 0x0b, 0x98, 0xab, 0xc6, 0xd7, 0xd5, 0x94, 0xe7, 0xaa, 0xf1,
2289 0x27, 0xd5, 0xf8, 0xf8, 0x67, 0x0b, 0x61, 0x3a, 0xa1, 0xe8, 0x5d, 0x2d, 0x68, 0xb6, 0x45, 0xdd,
2290 0x5b, 0x9d, 0x84, 0xdd, 0x99, 0xe3, 0xc9, 0xbe, 0x84, 0x75, 0x13, 0x1f, 0xcf, 0x3b, 0x90, 0x82,
2291 0xe0, 0xd8, 0x47, 0x95, 0x4c, 0xdb, 0xe5, 0x9c, 0x71, 0x73, 0x9e, 0xad, 0x7f, 0xcd, 0x45, 0x7b,
2292 0xba, 0x0d, 0xf5, 0x65, 0xef, 0x4c, 0xa1, 0x97, 0xe3, 0x66, 0x25, 0x67, 0x27, 0x79, 0x5a, 0x15,
2293 0xc5, 0x87, 0x69, 0x94, 0x95, 0xdb, 0x45, 0xf9, 0x04, 0x6e, 0x8e, 0x92, 0xa3, 0xad, 0x77, 0xd1,
2294 0x6b, 0x37, 0xb4, 0xe5, 0x56, 0xdf, 0x8b, 0x1f, 0x2c, 0x94, 0x8f, 0x81, 0x0f, 0xd0, 0x8a, 0xfa,
2295 0xbb, 0x65, 0x1e, 0x92, 0xbb, 0x8b, 0x3d, 0x24, 0xc7, 0x61, 0x04, 0xd3, 0xa7, 0x50, 0x49, 0x44,
2296 0xb3, 0xe0, 0xb7, 0xd0, 0x7a, 0x04, 0x42, 0xd0, 0xc0, 0x44, 0x76, 0xef, 0x18, 0xa7, 0xf5, 0x5e,
2297 0xa6, 0x26, 0x57, 0x76, 0xb7, 0x7d, 0x7e, 0xd1, 0x58, 0x7a, 0x7e, 0xd1, 0x58, 0x7a, 0x71, 0xd1,
2298 0x58, 0xfa, 0x3e, 0x6d, 0x58, 0xe7, 0x69, 0xc3, 0x7a, 0x9e, 0x36, 0xac, 0x17, 0x69, 0xc3, 0xfa,
2299 0x33, 0x6d, 0x58, 0x3f, 0xfd, 0xd5, 0x58, 0xfa, 0x62, 0x79, 0xb4, 0xf7, 0x4f, 0x00, 0x00, 0x00,
2300 0xff, 0xff, 0xe2, 0xd4, 0x42, 0x3d, 0x3c, 0x0b, 0x00, 0x00,
2301}