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