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