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