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