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