blob: 7ed066d31c6c1e648df134f94cf8b9be47684a76 [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/settings/v1alpha1/generated.proto
19
20package v1alpha1
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
30 math "math"
31 math_bits "math/bits"
32 reflect "reflect"
33 strings "strings"
34)
35
36// Reference imports to suppress errors if they are not otherwise used.
37var _ = proto.Marshal
38var _ = fmt.Errorf
39var _ = math.Inf
40
41// This is a compile-time assertion to ensure that this generated file
42// is compatible with the proto package it is being compiled against.
43// A compilation error at this line likely means your copy of the
44// proto package needs to be updated.
45const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
46
47func (m *PodPreset) Reset() { *m = PodPreset{} }
48func (*PodPreset) ProtoMessage() {}
49func (*PodPreset) Descriptor() ([]byte, []int) {
50 return fileDescriptor_48fab0a6ea4b79ce, []int{0}
51}
52func (m *PodPreset) XXX_Unmarshal(b []byte) error {
53 return m.Unmarshal(b)
54}
55func (m *PodPreset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
56 b = b[:cap(b)]
57 n, err := m.MarshalToSizedBuffer(b)
58 if err != nil {
59 return nil, err
60 }
61 return b[:n], nil
62}
63func (m *PodPreset) XXX_Merge(src proto.Message) {
64 xxx_messageInfo_PodPreset.Merge(m, src)
65}
66func (m *PodPreset) XXX_Size() int {
67 return m.Size()
68}
69func (m *PodPreset) XXX_DiscardUnknown() {
70 xxx_messageInfo_PodPreset.DiscardUnknown(m)
71}
72
73var xxx_messageInfo_PodPreset proto.InternalMessageInfo
74
75func (m *PodPresetList) Reset() { *m = PodPresetList{} }
76func (*PodPresetList) ProtoMessage() {}
77func (*PodPresetList) Descriptor() ([]byte, []int) {
78 return fileDescriptor_48fab0a6ea4b79ce, []int{1}
79}
80func (m *PodPresetList) XXX_Unmarshal(b []byte) error {
81 return m.Unmarshal(b)
82}
83func (m *PodPresetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
84 b = b[:cap(b)]
85 n, err := m.MarshalToSizedBuffer(b)
86 if err != nil {
87 return nil, err
88 }
89 return b[:n], nil
90}
91func (m *PodPresetList) XXX_Merge(src proto.Message) {
92 xxx_messageInfo_PodPresetList.Merge(m, src)
93}
94func (m *PodPresetList) XXX_Size() int {
95 return m.Size()
96}
97func (m *PodPresetList) XXX_DiscardUnknown() {
98 xxx_messageInfo_PodPresetList.DiscardUnknown(m)
99}
100
101var xxx_messageInfo_PodPresetList proto.InternalMessageInfo
102
103func (m *PodPresetSpec) Reset() { *m = PodPresetSpec{} }
104func (*PodPresetSpec) ProtoMessage() {}
105func (*PodPresetSpec) Descriptor() ([]byte, []int) {
106 return fileDescriptor_48fab0a6ea4b79ce, []int{2}
107}
108func (m *PodPresetSpec) XXX_Unmarshal(b []byte) error {
109 return m.Unmarshal(b)
110}
111func (m *PodPresetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
112 b = b[:cap(b)]
113 n, err := m.MarshalToSizedBuffer(b)
114 if err != nil {
115 return nil, err
116 }
117 return b[:n], nil
118}
119func (m *PodPresetSpec) XXX_Merge(src proto.Message) {
120 xxx_messageInfo_PodPresetSpec.Merge(m, src)
121}
122func (m *PodPresetSpec) XXX_Size() int {
123 return m.Size()
124}
125func (m *PodPresetSpec) XXX_DiscardUnknown() {
126 xxx_messageInfo_PodPresetSpec.DiscardUnknown(m)
127}
128
129var xxx_messageInfo_PodPresetSpec proto.InternalMessageInfo
130
131func init() {
132 proto.RegisterType((*PodPreset)(nil), "k8s.io.api.settings.v1alpha1.PodPreset")
133 proto.RegisterType((*PodPresetList)(nil), "k8s.io.api.settings.v1alpha1.PodPresetList")
134 proto.RegisterType((*PodPresetSpec)(nil), "k8s.io.api.settings.v1alpha1.PodPresetSpec")
135}
136
137func init() {
138 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/settings/v1alpha1/generated.proto", fileDescriptor_48fab0a6ea4b79ce)
139}
140
141var fileDescriptor_48fab0a6ea4b79ce = []byte{
142 // 542 bytes of a gzipped FileDescriptorProto
143 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x8e, 0xd2, 0x40,
144 0x1c, 0xc6, 0xe9, 0xb2, 0x04, 0x1c, 0xd8, 0x68, 0x1a, 0x0f, 0x0d, 0x31, 0x65, 0xe5, 0xe2, 0x26,
145 0xc6, 0x19, 0x59, 0x8d, 0xd1, 0x6b, 0x13, 0x4c, 0x4c, 0x20, 0x6e, 0x4a, 0xb2, 0x89, 0xc6, 0x83,
146 0x43, 0xf9, 0x5b, 0x2a, 0xb4, 0xd3, 0xcc, 0x4c, 0x9b, 0x78, 0xf3, 0x11, 0x7c, 0x01, 0x9f, 0x44,
147 0x1f, 0x80, 0xe3, 0x1e, 0xf7, 0xb4, 0x91, 0xfa, 0x22, 0x66, 0x86, 0x29, 0xa0, 0x88, 0x72, 0x9b,
148 0xff, 0x9f, 0xef, 0xfb, 0xcd, 0xf7, 0x31, 0x45, 0xfd, 0xd9, 0x73, 0x81, 0x23, 0x46, 0x66, 0xd9,
149 0x18, 0x78, 0x02, 0x12, 0x04, 0xc9, 0x21, 0x99, 0x30, 0x4e, 0xcc, 0x0f, 0x34, 0x8d, 0x88, 0x00,
150 0x29, 0xa3, 0x24, 0x14, 0x24, 0xef, 0xd1, 0x79, 0x3a, 0xa5, 0x3d, 0x12, 0x42, 0x02, 0x9c, 0x4a,
151 0x98, 0xe0, 0x94, 0x33, 0xc9, 0xec, 0x7b, 0x2b, 0x35, 0xa6, 0x69, 0x84, 0x4b, 0x35, 0x2e, 0xd5,
152 0xed, 0x47, 0x61, 0x24, 0xa7, 0xd9, 0x18, 0x07, 0x2c, 0x26, 0x21, 0x0b, 0x19, 0xd1, 0xa6, 0x71,
153 0xf6, 0x41, 0x4f, 0x7a, 0xd0, 0xa7, 0x15, 0xac, 0xdd, 0xdd, 0xba, 0x3a, 0x60, 0x1c, 0x48, 0xbe,
154 0x73, 0x61, 0xfb, 0xe9, 0x46, 0x13, 0xd3, 0x60, 0x1a, 0x25, 0xc0, 0x3f, 0x91, 0x74, 0x16, 0xaa,
155 0x85, 0x20, 0x31, 0x48, 0xfa, 0x37, 0x17, 0xd9, 0xe7, 0xe2, 0x59, 0x22, 0xa3, 0x18, 0x76, 0x0c,
156 0xcf, 0xfe, 0x67, 0x10, 0xc1, 0x14, 0x62, 0xfa, 0xa7, 0xaf, 0xfb, 0xdd, 0x42, 0xb7, 0x2e, 0xd8,
157 0xe4, 0x82, 0x83, 0x00, 0x69, 0xbf, 0x47, 0x0d, 0x95, 0x68, 0x42, 0x25, 0x75, 0xac, 0x53, 0xeb,
158 0xac, 0x79, 0xfe, 0x18, 0x6f, 0xfe, 0xb0, 0x35, 0x18, 0xa7, 0xb3, 0x50, 0x2d, 0x04, 0x56, 0x6a,
159 0x9c, 0xf7, 0xf0, 0xeb, 0xf1, 0x47, 0x08, 0xe4, 0x10, 0x24, 0xf5, 0xec, 0xc5, 0x4d, 0xa7, 0x52,
160 0xdc, 0x74, 0xd0, 0x66, 0xe7, 0xaf, 0xa9, 0xf6, 0x10, 0x1d, 0x8b, 0x14, 0x02, 0xe7, 0x48, 0xd3,
161 0x1f, 0xe2, 0x7f, 0x3d, 0x07, 0x5e, 0x07, 0x1b, 0xa5, 0x10, 0x78, 0x2d, 0x03, 0x3e, 0x56, 0x93,
162 0xaf, 0x31, 0xdd, 0x6f, 0x16, 0x3a, 0x59, 0xab, 0x06, 0x91, 0x90, 0xf6, 0xbb, 0x9d, 0x0a, 0xf8,
163 0xb0, 0x0a, 0xca, 0xad, 0x0b, 0xdc, 0x31, 0xf7, 0x34, 0xca, 0xcd, 0x56, 0xfc, 0x01, 0xaa, 0x45,
164 0x12, 0x62, 0xe1, 0x1c, 0x9d, 0x56, 0xcf, 0x9a, 0xe7, 0x0f, 0x0e, 0xcc, 0xef, 0x9d, 0x18, 0x66,
165 0xed, 0x95, 0x72, 0xfb, 0x2b, 0x48, 0xf7, 0x6b, 0x75, 0x2b, 0xbd, 0x6a, 0x65, 0x53, 0xd4, 0x10,
166 0x30, 0x87, 0x40, 0x32, 0x6e, 0xd2, 0x3f, 0x39, 0x30, 0x3d, 0x1d, 0xc3, 0x7c, 0x64, 0xac, 0x9b,
167 0x0a, 0xe5, 0xc6, 0x5f, 0x63, 0xed, 0x17, 0xa8, 0x0a, 0x49, 0x6e, 0x0a, 0xb4, 0xb7, 0x0b, 0xa8,
168 0x4f, 0x58, 0xb1, 0xfa, 0x49, 0x7e, 0x49, 0xb9, 0xd7, 0x34, 0x90, 0x6a, 0x3f, 0xc9, 0x7d, 0xe5,
169 0xb1, 0x07, 0xa8, 0x0e, 0x49, 0xfe, 0x92, 0xb3, 0xd8, 0xa9, 0x6a, 0xfb, 0xfd, 0x3d, 0x76, 0x25,
170 0x19, 0xb1, 0x8c, 0x07, 0xe0, 0xdd, 0x36, 0x94, 0xba, 0x59, 0xfb, 0x25, 0xc2, 0xee, 0xa3, 0x7a,
171 0xce, 0xe6, 0x59, 0x0c, 0xc2, 0x39, 0xde, 0x1f, 0xe6, 0x52, 0x4b, 0x36, 0x98, 0xd5, 0x2c, 0xfc,
172 0xd2, 0x6b, 0xbf, 0x41, 0xad, 0xd5, 0x71, 0xc8, 0xb2, 0x44, 0x0a, 0xa7, 0xa6, 0x59, 0x9d, 0xfd,
173 0x2c, 0xad, 0xf3, 0xee, 0x1a, 0x60, 0x6b, 0x6b, 0x29, 0xfc, 0xdf, 0x50, 0x1e, 0x5e, 0x2c, 0xdd,
174 0xca, 0xd5, 0xd2, 0xad, 0x5c, 0x2f, 0xdd, 0xca, 0xe7, 0xc2, 0xb5, 0x16, 0x85, 0x6b, 0x5d, 0x15,
175 0xae, 0x75, 0x5d, 0xb8, 0xd6, 0x8f, 0xc2, 0xb5, 0xbe, 0xfc, 0x74, 0x2b, 0x6f, 0x1b, 0xe5, 0x7b,
176 0xff, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x46, 0x15, 0xf2, 0x97, 0xa4, 0x04, 0x00, 0x00,
177}
178
179func (m *PodPreset) Marshal() (dAtA []byte, err error) {
180 size := m.Size()
181 dAtA = make([]byte, size)
182 n, err := m.MarshalToSizedBuffer(dAtA[:size])
183 if err != nil {
184 return nil, err
185 }
186 return dAtA[:n], nil
187}
188
189func (m *PodPreset) MarshalTo(dAtA []byte) (int, error) {
190 size := m.Size()
191 return m.MarshalToSizedBuffer(dAtA[:size])
192}
193
194func (m *PodPreset) MarshalToSizedBuffer(dAtA []byte) (int, error) {
195 i := len(dAtA)
196 _ = i
197 var l int
198 _ = l
199 {
200 size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
201 if err != nil {
202 return 0, err
203 }
204 i -= size
205 i = encodeVarintGenerated(dAtA, i, uint64(size))
206 }
207 i--
208 dAtA[i] = 0x12
209 {
210 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
211 if err != nil {
212 return 0, err
213 }
214 i -= size
215 i = encodeVarintGenerated(dAtA, i, uint64(size))
216 }
217 i--
218 dAtA[i] = 0xa
219 return len(dAtA) - i, nil
220}
221
222func (m *PodPresetList) Marshal() (dAtA []byte, err error) {
223 size := m.Size()
224 dAtA = make([]byte, size)
225 n, err := m.MarshalToSizedBuffer(dAtA[:size])
226 if err != nil {
227 return nil, err
228 }
229 return dAtA[:n], nil
230}
231
232func (m *PodPresetList) MarshalTo(dAtA []byte) (int, error) {
233 size := m.Size()
234 return m.MarshalToSizedBuffer(dAtA[:size])
235}
236
237func (m *PodPresetList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
238 i := len(dAtA)
239 _ = i
240 var l int
241 _ = l
242 if len(m.Items) > 0 {
243 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
244 {
245 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
246 if err != nil {
247 return 0, err
248 }
249 i -= size
250 i = encodeVarintGenerated(dAtA, i, uint64(size))
251 }
252 i--
253 dAtA[i] = 0x12
254 }
255 }
256 {
257 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
258 if err != nil {
259 return 0, err
260 }
261 i -= size
262 i = encodeVarintGenerated(dAtA, i, uint64(size))
263 }
264 i--
265 dAtA[i] = 0xa
266 return len(dAtA) - i, nil
267}
268
269func (m *PodPresetSpec) Marshal() (dAtA []byte, err error) {
270 size := m.Size()
271 dAtA = make([]byte, size)
272 n, err := m.MarshalToSizedBuffer(dAtA[:size])
273 if err != nil {
274 return nil, err
275 }
276 return dAtA[:n], nil
277}
278
279func (m *PodPresetSpec) MarshalTo(dAtA []byte) (int, error) {
280 size := m.Size()
281 return m.MarshalToSizedBuffer(dAtA[:size])
282}
283
284func (m *PodPresetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
285 i := len(dAtA)
286 _ = i
287 var l int
288 _ = l
289 if len(m.VolumeMounts) > 0 {
290 for iNdEx := len(m.VolumeMounts) - 1; iNdEx >= 0; iNdEx-- {
291 {
292 size, err := m.VolumeMounts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
293 if err != nil {
294 return 0, err
295 }
296 i -= size
297 i = encodeVarintGenerated(dAtA, i, uint64(size))
298 }
299 i--
300 dAtA[i] = 0x2a
301 }
302 }
303 if len(m.Volumes) > 0 {
304 for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- {
305 {
306 size, err := m.Volumes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
307 if err != nil {
308 return 0, err
309 }
310 i -= size
311 i = encodeVarintGenerated(dAtA, i, uint64(size))
312 }
313 i--
314 dAtA[i] = 0x22
315 }
316 }
317 if len(m.EnvFrom) > 0 {
318 for iNdEx := len(m.EnvFrom) - 1; iNdEx >= 0; iNdEx-- {
319 {
320 size, err := m.EnvFrom[iNdEx].MarshalToSizedBuffer(dAtA[:i])
321 if err != nil {
322 return 0, err
323 }
324 i -= size
325 i = encodeVarintGenerated(dAtA, i, uint64(size))
326 }
327 i--
328 dAtA[i] = 0x1a
329 }
330 }
331 if len(m.Env) > 0 {
332 for iNdEx := len(m.Env) - 1; iNdEx >= 0; iNdEx-- {
333 {
334 size, err := m.Env[iNdEx].MarshalToSizedBuffer(dAtA[:i])
335 if err != nil {
336 return 0, err
337 }
338 i -= size
339 i = encodeVarintGenerated(dAtA, i, uint64(size))
340 }
341 i--
342 dAtA[i] = 0x12
343 }
344 }
345 {
346 size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i])
347 if err != nil {
348 return 0, err
349 }
350 i -= size
351 i = encodeVarintGenerated(dAtA, i, uint64(size))
352 }
353 i--
354 dAtA[i] = 0xa
355 return len(dAtA) - i, nil
356}
357
358func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
359 offset -= sovGenerated(v)
360 base := offset
361 for v >= 1<<7 {
362 dAtA[offset] = uint8(v&0x7f | 0x80)
363 v >>= 7
364 offset++
365 }
366 dAtA[offset] = uint8(v)
367 return base
368}
369func (m *PodPreset) Size() (n int) {
370 if m == nil {
371 return 0
372 }
373 var l int
374 _ = l
375 l = m.ObjectMeta.Size()
376 n += 1 + l + sovGenerated(uint64(l))
377 l = m.Spec.Size()
378 n += 1 + l + sovGenerated(uint64(l))
379 return n
380}
381
382func (m *PodPresetList) Size() (n int) {
383 if m == nil {
384 return 0
385 }
386 var l int
387 _ = l
388 l = m.ListMeta.Size()
389 n += 1 + l + sovGenerated(uint64(l))
390 if len(m.Items) > 0 {
391 for _, e := range m.Items {
392 l = e.Size()
393 n += 1 + l + sovGenerated(uint64(l))
394 }
395 }
396 return n
397}
398
399func (m *PodPresetSpec) Size() (n int) {
400 if m == nil {
401 return 0
402 }
403 var l int
404 _ = l
405 l = m.Selector.Size()
406 n += 1 + l + sovGenerated(uint64(l))
407 if len(m.Env) > 0 {
408 for _, e := range m.Env {
409 l = e.Size()
410 n += 1 + l + sovGenerated(uint64(l))
411 }
412 }
413 if len(m.EnvFrom) > 0 {
414 for _, e := range m.EnvFrom {
415 l = e.Size()
416 n += 1 + l + sovGenerated(uint64(l))
417 }
418 }
419 if len(m.Volumes) > 0 {
420 for _, e := range m.Volumes {
421 l = e.Size()
422 n += 1 + l + sovGenerated(uint64(l))
423 }
424 }
425 if len(m.VolumeMounts) > 0 {
426 for _, e := range m.VolumeMounts {
427 l = e.Size()
428 n += 1 + l + sovGenerated(uint64(l))
429 }
430 }
431 return n
432}
433
434func sovGenerated(x uint64) (n int) {
435 return (math_bits.Len64(x|1) + 6) / 7
436}
437func sozGenerated(x uint64) (n int) {
438 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
439}
440func (this *PodPreset) String() string {
441 if this == nil {
442 return "nil"
443 }
444 s := strings.Join([]string{`&PodPreset{`,
445 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
446 `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodPresetSpec", "PodPresetSpec", 1), `&`, ``, 1) + `,`,
447 `}`,
448 }, "")
449 return s
450}
451func (this *PodPresetList) String() string {
452 if this == nil {
453 return "nil"
454 }
455 repeatedStringForItems := "[]PodPreset{"
456 for _, f := range this.Items {
457 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PodPreset", "PodPreset", 1), `&`, ``, 1) + ","
458 }
459 repeatedStringForItems += "}"
460 s := strings.Join([]string{`&PodPresetList{`,
461 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
462 `Items:` + repeatedStringForItems + `,`,
463 `}`,
464 }, "")
465 return s
466}
467func (this *PodPresetSpec) String() string {
468 if this == nil {
469 return "nil"
470 }
471 repeatedStringForEnv := "[]EnvVar{"
472 for _, f := range this.Env {
473 repeatedStringForEnv += fmt.Sprintf("%v", f) + ","
474 }
475 repeatedStringForEnv += "}"
476 repeatedStringForEnvFrom := "[]EnvFromSource{"
477 for _, f := range this.EnvFrom {
478 repeatedStringForEnvFrom += fmt.Sprintf("%v", f) + ","
479 }
480 repeatedStringForEnvFrom += "}"
481 repeatedStringForVolumes := "[]Volume{"
482 for _, f := range this.Volumes {
483 repeatedStringForVolumes += fmt.Sprintf("%v", f) + ","
484 }
485 repeatedStringForVolumes += "}"
486 repeatedStringForVolumeMounts := "[]VolumeMount{"
487 for _, f := range this.VolumeMounts {
488 repeatedStringForVolumeMounts += fmt.Sprintf("%v", f) + ","
489 }
490 repeatedStringForVolumeMounts += "}"
491 s := strings.Join([]string{`&PodPresetSpec{`,
492 `Selector:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1), `&`, ``, 1) + `,`,
493 `Env:` + repeatedStringForEnv + `,`,
494 `EnvFrom:` + repeatedStringForEnvFrom + `,`,
495 `Volumes:` + repeatedStringForVolumes + `,`,
496 `VolumeMounts:` + repeatedStringForVolumeMounts + `,`,
497 `}`,
498 }, "")
499 return s
500}
501func valueToStringGenerated(v interface{}) string {
502 rv := reflect.ValueOf(v)
503 if rv.IsNil() {
504 return "nil"
505 }
506 pv := reflect.Indirect(rv).Interface()
507 return fmt.Sprintf("*%v", pv)
508}
509func (m *PodPreset) Unmarshal(dAtA []byte) error {
510 l := len(dAtA)
511 iNdEx := 0
512 for iNdEx < l {
513 preIndex := iNdEx
514 var wire uint64
515 for shift := uint(0); ; shift += 7 {
516 if shift >= 64 {
517 return ErrIntOverflowGenerated
518 }
519 if iNdEx >= l {
520 return io.ErrUnexpectedEOF
521 }
522 b := dAtA[iNdEx]
523 iNdEx++
524 wire |= uint64(b&0x7F) << shift
525 if b < 0x80 {
526 break
527 }
528 }
529 fieldNum := int32(wire >> 3)
530 wireType := int(wire & 0x7)
531 if wireType == 4 {
532 return fmt.Errorf("proto: PodPreset: wiretype end group for non-group")
533 }
534 if fieldNum <= 0 {
535 return fmt.Errorf("proto: PodPreset: illegal tag %d (wire type %d)", fieldNum, wire)
536 }
537 switch fieldNum {
538 case 1:
539 if wireType != 2 {
540 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
541 }
542 var msglen int
543 for shift := uint(0); ; shift += 7 {
544 if shift >= 64 {
545 return ErrIntOverflowGenerated
546 }
547 if iNdEx >= l {
548 return io.ErrUnexpectedEOF
549 }
550 b := dAtA[iNdEx]
551 iNdEx++
552 msglen |= int(b&0x7F) << shift
553 if b < 0x80 {
554 break
555 }
556 }
557 if msglen < 0 {
558 return ErrInvalidLengthGenerated
559 }
560 postIndex := iNdEx + msglen
561 if postIndex < 0 {
562 return ErrInvalidLengthGenerated
563 }
564 if postIndex > l {
565 return io.ErrUnexpectedEOF
566 }
567 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
568 return err
569 }
570 iNdEx = postIndex
571 case 2:
572 if wireType != 2 {
573 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
574 }
575 var msglen int
576 for shift := uint(0); ; shift += 7 {
577 if shift >= 64 {
578 return ErrIntOverflowGenerated
579 }
580 if iNdEx >= l {
581 return io.ErrUnexpectedEOF
582 }
583 b := dAtA[iNdEx]
584 iNdEx++
585 msglen |= int(b&0x7F) << shift
586 if b < 0x80 {
587 break
588 }
589 }
590 if msglen < 0 {
591 return ErrInvalidLengthGenerated
592 }
593 postIndex := iNdEx + msglen
594 if postIndex < 0 {
595 return ErrInvalidLengthGenerated
596 }
597 if postIndex > l {
598 return io.ErrUnexpectedEOF
599 }
600 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
601 return err
602 }
603 iNdEx = postIndex
604 default:
605 iNdEx = preIndex
606 skippy, err := skipGenerated(dAtA[iNdEx:])
607 if err != nil {
608 return err
609 }
610 if skippy < 0 {
611 return ErrInvalidLengthGenerated
612 }
613 if (iNdEx + skippy) < 0 {
614 return ErrInvalidLengthGenerated
615 }
616 if (iNdEx + skippy) > l {
617 return io.ErrUnexpectedEOF
618 }
619 iNdEx += skippy
620 }
621 }
622
623 if iNdEx > l {
624 return io.ErrUnexpectedEOF
625 }
626 return nil
627}
628func (m *PodPresetList) Unmarshal(dAtA []byte) error {
629 l := len(dAtA)
630 iNdEx := 0
631 for iNdEx < l {
632 preIndex := iNdEx
633 var wire uint64
634 for shift := uint(0); ; shift += 7 {
635 if shift >= 64 {
636 return ErrIntOverflowGenerated
637 }
638 if iNdEx >= l {
639 return io.ErrUnexpectedEOF
640 }
641 b := dAtA[iNdEx]
642 iNdEx++
643 wire |= uint64(b&0x7F) << shift
644 if b < 0x80 {
645 break
646 }
647 }
648 fieldNum := int32(wire >> 3)
649 wireType := int(wire & 0x7)
650 if wireType == 4 {
651 return fmt.Errorf("proto: PodPresetList: wiretype end group for non-group")
652 }
653 if fieldNum <= 0 {
654 return fmt.Errorf("proto: PodPresetList: illegal tag %d (wire type %d)", fieldNum, wire)
655 }
656 switch fieldNum {
657 case 1:
658 if wireType != 2 {
659 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
660 }
661 var msglen int
662 for shift := uint(0); ; shift += 7 {
663 if shift >= 64 {
664 return ErrIntOverflowGenerated
665 }
666 if iNdEx >= l {
667 return io.ErrUnexpectedEOF
668 }
669 b := dAtA[iNdEx]
670 iNdEx++
671 msglen |= int(b&0x7F) << shift
672 if b < 0x80 {
673 break
674 }
675 }
676 if msglen < 0 {
677 return ErrInvalidLengthGenerated
678 }
679 postIndex := iNdEx + msglen
680 if postIndex < 0 {
681 return ErrInvalidLengthGenerated
682 }
683 if postIndex > l {
684 return io.ErrUnexpectedEOF
685 }
686 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
687 return err
688 }
689 iNdEx = postIndex
690 case 2:
691 if wireType != 2 {
692 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
693 }
694 var msglen int
695 for shift := uint(0); ; shift += 7 {
696 if shift >= 64 {
697 return ErrIntOverflowGenerated
698 }
699 if iNdEx >= l {
700 return io.ErrUnexpectedEOF
701 }
702 b := dAtA[iNdEx]
703 iNdEx++
704 msglen |= int(b&0x7F) << shift
705 if b < 0x80 {
706 break
707 }
708 }
709 if msglen < 0 {
710 return ErrInvalidLengthGenerated
711 }
712 postIndex := iNdEx + msglen
713 if postIndex < 0 {
714 return ErrInvalidLengthGenerated
715 }
716 if postIndex > l {
717 return io.ErrUnexpectedEOF
718 }
719 m.Items = append(m.Items, PodPreset{})
720 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
721 return err
722 }
723 iNdEx = postIndex
724 default:
725 iNdEx = preIndex
726 skippy, err := skipGenerated(dAtA[iNdEx:])
727 if err != nil {
728 return err
729 }
730 if skippy < 0 {
731 return ErrInvalidLengthGenerated
732 }
733 if (iNdEx + skippy) < 0 {
734 return ErrInvalidLengthGenerated
735 }
736 if (iNdEx + skippy) > l {
737 return io.ErrUnexpectedEOF
738 }
739 iNdEx += skippy
740 }
741 }
742
743 if iNdEx > l {
744 return io.ErrUnexpectedEOF
745 }
746 return nil
747}
748func (m *PodPresetSpec) Unmarshal(dAtA []byte) error {
749 l := len(dAtA)
750 iNdEx := 0
751 for iNdEx < l {
752 preIndex := iNdEx
753 var wire uint64
754 for shift := uint(0); ; shift += 7 {
755 if shift >= 64 {
756 return ErrIntOverflowGenerated
757 }
758 if iNdEx >= l {
759 return io.ErrUnexpectedEOF
760 }
761 b := dAtA[iNdEx]
762 iNdEx++
763 wire |= uint64(b&0x7F) << shift
764 if b < 0x80 {
765 break
766 }
767 }
768 fieldNum := int32(wire >> 3)
769 wireType := int(wire & 0x7)
770 if wireType == 4 {
771 return fmt.Errorf("proto: PodPresetSpec: wiretype end group for non-group")
772 }
773 if fieldNum <= 0 {
774 return fmt.Errorf("proto: PodPresetSpec: illegal tag %d (wire type %d)", fieldNum, wire)
775 }
776 switch fieldNum {
777 case 1:
778 if wireType != 2 {
779 return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
780 }
781 var msglen int
782 for shift := uint(0); ; shift += 7 {
783 if shift >= 64 {
784 return ErrIntOverflowGenerated
785 }
786 if iNdEx >= l {
787 return io.ErrUnexpectedEOF
788 }
789 b := dAtA[iNdEx]
790 iNdEx++
791 msglen |= int(b&0x7F) << shift
792 if b < 0x80 {
793 break
794 }
795 }
796 if msglen < 0 {
797 return ErrInvalidLengthGenerated
798 }
799 postIndex := iNdEx + msglen
800 if postIndex < 0 {
801 return ErrInvalidLengthGenerated
802 }
803 if postIndex > l {
804 return io.ErrUnexpectedEOF
805 }
806 if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
807 return err
808 }
809 iNdEx = postIndex
810 case 2:
811 if wireType != 2 {
812 return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType)
813 }
814 var msglen int
815 for shift := uint(0); ; shift += 7 {
816 if shift >= 64 {
817 return ErrIntOverflowGenerated
818 }
819 if iNdEx >= l {
820 return io.ErrUnexpectedEOF
821 }
822 b := dAtA[iNdEx]
823 iNdEx++
824 msglen |= int(b&0x7F) << shift
825 if b < 0x80 {
826 break
827 }
828 }
829 if msglen < 0 {
830 return ErrInvalidLengthGenerated
831 }
832 postIndex := iNdEx + msglen
833 if postIndex < 0 {
834 return ErrInvalidLengthGenerated
835 }
836 if postIndex > l {
837 return io.ErrUnexpectedEOF
838 }
839 m.Env = append(m.Env, v11.EnvVar{})
840 if err := m.Env[len(m.Env)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
841 return err
842 }
843 iNdEx = postIndex
844 case 3:
845 if wireType != 2 {
846 return fmt.Errorf("proto: wrong wireType = %d for field EnvFrom", wireType)
847 }
848 var msglen int
849 for shift := uint(0); ; shift += 7 {
850 if shift >= 64 {
851 return ErrIntOverflowGenerated
852 }
853 if iNdEx >= l {
854 return io.ErrUnexpectedEOF
855 }
856 b := dAtA[iNdEx]
857 iNdEx++
858 msglen |= int(b&0x7F) << shift
859 if b < 0x80 {
860 break
861 }
862 }
863 if msglen < 0 {
864 return ErrInvalidLengthGenerated
865 }
866 postIndex := iNdEx + msglen
867 if postIndex < 0 {
868 return ErrInvalidLengthGenerated
869 }
870 if postIndex > l {
871 return io.ErrUnexpectedEOF
872 }
873 m.EnvFrom = append(m.EnvFrom, v11.EnvFromSource{})
874 if err := m.EnvFrom[len(m.EnvFrom)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
875 return err
876 }
877 iNdEx = postIndex
878 case 4:
879 if wireType != 2 {
880 return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType)
881 }
882 var msglen int
883 for shift := uint(0); ; shift += 7 {
884 if shift >= 64 {
885 return ErrIntOverflowGenerated
886 }
887 if iNdEx >= l {
888 return io.ErrUnexpectedEOF
889 }
890 b := dAtA[iNdEx]
891 iNdEx++
892 msglen |= int(b&0x7F) << shift
893 if b < 0x80 {
894 break
895 }
896 }
897 if msglen < 0 {
898 return ErrInvalidLengthGenerated
899 }
900 postIndex := iNdEx + msglen
901 if postIndex < 0 {
902 return ErrInvalidLengthGenerated
903 }
904 if postIndex > l {
905 return io.ErrUnexpectedEOF
906 }
907 m.Volumes = append(m.Volumes, v11.Volume{})
908 if err := m.Volumes[len(m.Volumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
909 return err
910 }
911 iNdEx = postIndex
912 case 5:
913 if wireType != 2 {
914 return fmt.Errorf("proto: wrong wireType = %d for field VolumeMounts", wireType)
915 }
916 var msglen int
917 for shift := uint(0); ; shift += 7 {
918 if shift >= 64 {
919 return ErrIntOverflowGenerated
920 }
921 if iNdEx >= l {
922 return io.ErrUnexpectedEOF
923 }
924 b := dAtA[iNdEx]
925 iNdEx++
926 msglen |= int(b&0x7F) << shift
927 if b < 0x80 {
928 break
929 }
930 }
931 if msglen < 0 {
932 return ErrInvalidLengthGenerated
933 }
934 postIndex := iNdEx + msglen
935 if postIndex < 0 {
936 return ErrInvalidLengthGenerated
937 }
938 if postIndex > l {
939 return io.ErrUnexpectedEOF
940 }
941 m.VolumeMounts = append(m.VolumeMounts, v11.VolumeMount{})
942 if err := m.VolumeMounts[len(m.VolumeMounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
943 return err
944 }
945 iNdEx = postIndex
946 default:
947 iNdEx = preIndex
948 skippy, err := skipGenerated(dAtA[iNdEx:])
949 if err != nil {
950 return err
951 }
952 if skippy < 0 {
953 return ErrInvalidLengthGenerated
954 }
955 if (iNdEx + skippy) < 0 {
956 return ErrInvalidLengthGenerated
957 }
958 if (iNdEx + skippy) > l {
959 return io.ErrUnexpectedEOF
960 }
961 iNdEx += skippy
962 }
963 }
964
965 if iNdEx > l {
966 return io.ErrUnexpectedEOF
967 }
968 return nil
969}
970func skipGenerated(dAtA []byte) (n int, err error) {
971 l := len(dAtA)
972 iNdEx := 0
973 depth := 0
974 for iNdEx < l {
975 var wire uint64
976 for shift := uint(0); ; shift += 7 {
977 if shift >= 64 {
978 return 0, ErrIntOverflowGenerated
979 }
980 if iNdEx >= l {
981 return 0, io.ErrUnexpectedEOF
982 }
983 b := dAtA[iNdEx]
984 iNdEx++
985 wire |= (uint64(b) & 0x7F) << shift
986 if b < 0x80 {
987 break
988 }
989 }
990 wireType := int(wire & 0x7)
991 switch wireType {
992 case 0:
993 for shift := uint(0); ; shift += 7 {
994 if shift >= 64 {
995 return 0, ErrIntOverflowGenerated
996 }
997 if iNdEx >= l {
998 return 0, io.ErrUnexpectedEOF
999 }
1000 iNdEx++
1001 if dAtA[iNdEx-1] < 0x80 {
1002 break
1003 }
1004 }
1005 case 1:
1006 iNdEx += 8
1007 case 2:
1008 var length int
1009 for shift := uint(0); ; shift += 7 {
1010 if shift >= 64 {
1011 return 0, ErrIntOverflowGenerated
1012 }
1013 if iNdEx >= l {
1014 return 0, io.ErrUnexpectedEOF
1015 }
1016 b := dAtA[iNdEx]
1017 iNdEx++
1018 length |= (int(b) & 0x7F) << shift
1019 if b < 0x80 {
1020 break
1021 }
1022 }
1023 if length < 0 {
1024 return 0, ErrInvalidLengthGenerated
1025 }
1026 iNdEx += length
1027 case 3:
1028 depth++
1029 case 4:
1030 if depth == 0 {
1031 return 0, ErrUnexpectedEndOfGroupGenerated
1032 }
1033 depth--
1034 case 5:
1035 iNdEx += 4
1036 default:
1037 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
1038 }
1039 if iNdEx < 0 {
1040 return 0, ErrInvalidLengthGenerated
1041 }
1042 if depth == 0 {
1043 return iNdEx, nil
1044 }
1045 }
1046 return 0, io.ErrUnexpectedEOF
1047}
1048
1049var (
1050 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
1051 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
1052 ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
1053)