blob: a2f213be26bb3f0f9ee5628d07c6d00c433d3d48 [file] [log] [blame]
Zack Williamse940c7a2019-08-21 14:25:39 -07001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Code generated by protoc-gen-gogo. DO NOT EDIT.
18// source: k8s.io/kubernetes/vendor/k8s.io/api/node/v1beta1/generated.proto
19
20/*
21 Package v1beta1 is a generated protocol buffer package.
22
23 It is generated from these files:
24 k8s.io/kubernetes/vendor/k8s.io/api/node/v1beta1/generated.proto
25
26 It has these top-level messages:
Zack Williamse940c7a2019-08-21 14:25:39 -070027 RuntimeClass
28 RuntimeClassList
29*/
30package v1beta1
31
Scott Baker4a35a702019-11-26 08:17:33 -080032import (
33 fmt "fmt"
Zack Williamse940c7a2019-08-21 14:25:39 -070034
Scott Baker4a35a702019-11-26 08:17:33 -080035 proto "github.com/gogo/protobuf/proto"
Zack Williamse940c7a2019-08-21 14:25:39 -070036
Scott Baker4a35a702019-11-26 08:17:33 -080037 math "math"
38
39 strings "strings"
40
41 reflect "reflect"
42
43 io "io"
44)
Zack Williamse940c7a2019-08-21 14:25:39 -070045
46// Reference imports to suppress errors if they are not otherwise used.
47var _ = proto.Marshal
48var _ = fmt.Errorf
49var _ = math.Inf
50
51// This is a compile-time assertion to ensure that this generated file
52// is compatible with the proto package it is being compiled against.
53// A compilation error at this line likely means your copy of the
54// proto package needs to be updated.
55const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
56
Zack Williamse940c7a2019-08-21 14:25:39 -070057func (m *RuntimeClass) Reset() { *m = RuntimeClass{} }
58func (*RuntimeClass) ProtoMessage() {}
David Bainbridge86971522019-09-26 22:09:39 +000059func (*RuntimeClass) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
Zack Williamse940c7a2019-08-21 14:25:39 -070060
61func (m *RuntimeClassList) Reset() { *m = RuntimeClassList{} }
62func (*RuntimeClassList) ProtoMessage() {}
David Bainbridge86971522019-09-26 22:09:39 +000063func (*RuntimeClassList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
Zack Williamse940c7a2019-08-21 14:25:39 -070064
65func init() {
Zack Williamse940c7a2019-08-21 14:25:39 -070066 proto.RegisterType((*RuntimeClass)(nil), "k8s.io.api.node.v1beta1.RuntimeClass")
67 proto.RegisterType((*RuntimeClassList)(nil), "k8s.io.api.node.v1beta1.RuntimeClassList")
68}
Zack Williamse940c7a2019-08-21 14:25:39 -070069func (m *RuntimeClass) Marshal() (dAtA []byte, err error) {
70 size := m.Size()
71 dAtA = make([]byte, size)
72 n, err := m.MarshalTo(dAtA)
73 if err != nil {
74 return nil, err
75 }
76 return dAtA[:n], nil
77}
78
79func (m *RuntimeClass) MarshalTo(dAtA []byte) (int, error) {
80 var i int
81 _ = i
82 var l int
83 _ = l
84 dAtA[i] = 0xa
85 i++
86 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
David Bainbridge86971522019-09-26 22:09:39 +000087 n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
Zack Williamse940c7a2019-08-21 14:25:39 -070088 if err != nil {
89 return 0, err
90 }
David Bainbridge86971522019-09-26 22:09:39 +000091 i += n1
Zack Williamse940c7a2019-08-21 14:25:39 -070092 dAtA[i] = 0x12
93 i++
94 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Handler)))
95 i += copy(dAtA[i:], m.Handler)
Zack Williamse940c7a2019-08-21 14:25:39 -070096 return i, nil
97}
98
99func (m *RuntimeClassList) Marshal() (dAtA []byte, err error) {
100 size := m.Size()
101 dAtA = make([]byte, size)
102 n, err := m.MarshalTo(dAtA)
103 if err != nil {
104 return nil, err
105 }
106 return dAtA[:n], nil
107}
108
109func (m *RuntimeClassList) MarshalTo(dAtA []byte) (int, error) {
110 var i int
111 _ = i
112 var l int
113 _ = l
114 dAtA[i] = 0xa
115 i++
116 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
David Bainbridge86971522019-09-26 22:09:39 +0000117 n2, err := m.ListMeta.MarshalTo(dAtA[i:])
Zack Williamse940c7a2019-08-21 14:25:39 -0700118 if err != nil {
119 return 0, err
120 }
David Bainbridge86971522019-09-26 22:09:39 +0000121 i += n2
Zack Williamse940c7a2019-08-21 14:25:39 -0700122 if len(m.Items) > 0 {
123 for _, msg := range m.Items {
124 dAtA[i] = 0x12
125 i++
126 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
127 n, err := msg.MarshalTo(dAtA[i:])
128 if err != nil {
129 return 0, err
130 }
131 i += n
132 }
133 }
134 return i, nil
135}
136
137func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
138 for v >= 1<<7 {
139 dAtA[offset] = uint8(v&0x7f | 0x80)
140 v >>= 7
141 offset++
142 }
143 dAtA[offset] = uint8(v)
144 return offset + 1
145}
Zack Williamse940c7a2019-08-21 14:25:39 -0700146func (m *RuntimeClass) Size() (n int) {
147 var l int
148 _ = l
149 l = m.ObjectMeta.Size()
150 n += 1 + l + sovGenerated(uint64(l))
151 l = len(m.Handler)
152 n += 1 + l + sovGenerated(uint64(l))
Zack Williamse940c7a2019-08-21 14:25:39 -0700153 return n
154}
155
156func (m *RuntimeClassList) Size() (n int) {
157 var l int
158 _ = l
159 l = m.ListMeta.Size()
160 n += 1 + l + sovGenerated(uint64(l))
161 if len(m.Items) > 0 {
162 for _, e := range m.Items {
163 l = e.Size()
164 n += 1 + l + sovGenerated(uint64(l))
165 }
166 }
167 return n
168}
169
170func sovGenerated(x uint64) (n int) {
171 for {
172 n++
173 x >>= 7
174 if x == 0 {
175 break
176 }
177 }
178 return n
179}
180func sozGenerated(x uint64) (n int) {
181 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
182}
Zack Williamse940c7a2019-08-21 14:25:39 -0700183func (this *RuntimeClass) String() string {
184 if this == nil {
185 return "nil"
186 }
187 s := strings.Join([]string{`&RuntimeClass{`,
188 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
189 `Handler:` + fmt.Sprintf("%v", this.Handler) + `,`,
Zack Williamse940c7a2019-08-21 14:25:39 -0700190 `}`,
191 }, "")
192 return s
193}
194func (this *RuntimeClassList) String() string {
195 if this == nil {
196 return "nil"
197 }
198 s := strings.Join([]string{`&RuntimeClassList{`,
199 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
200 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "RuntimeClass", "RuntimeClass", 1), `&`, ``, 1) + `,`,
201 `}`,
202 }, "")
203 return s
204}
205func valueToStringGenerated(v interface{}) string {
206 rv := reflect.ValueOf(v)
207 if rv.IsNil() {
208 return "nil"
209 }
210 pv := reflect.Indirect(rv).Interface()
211 return fmt.Sprintf("*%v", pv)
212}
Zack Williamse940c7a2019-08-21 14:25:39 -0700213func (m *RuntimeClass) Unmarshal(dAtA []byte) error {
214 l := len(dAtA)
215 iNdEx := 0
216 for iNdEx < l {
217 preIndex := iNdEx
218 var wire uint64
219 for shift := uint(0); ; shift += 7 {
220 if shift >= 64 {
221 return ErrIntOverflowGenerated
222 }
223 if iNdEx >= l {
224 return io.ErrUnexpectedEOF
225 }
226 b := dAtA[iNdEx]
227 iNdEx++
228 wire |= (uint64(b) & 0x7F) << shift
229 if b < 0x80 {
230 break
231 }
232 }
233 fieldNum := int32(wire >> 3)
234 wireType := int(wire & 0x7)
235 if wireType == 4 {
236 return fmt.Errorf("proto: RuntimeClass: wiretype end group for non-group")
237 }
238 if fieldNum <= 0 {
239 return fmt.Errorf("proto: RuntimeClass: illegal tag %d (wire type %d)", fieldNum, wire)
240 }
241 switch fieldNum {
242 case 1:
243 if wireType != 2 {
244 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
245 }
246 var msglen int
247 for shift := uint(0); ; shift += 7 {
248 if shift >= 64 {
249 return ErrIntOverflowGenerated
250 }
251 if iNdEx >= l {
252 return io.ErrUnexpectedEOF
253 }
254 b := dAtA[iNdEx]
255 iNdEx++
256 msglen |= (int(b) & 0x7F) << shift
257 if b < 0x80 {
258 break
259 }
260 }
261 if msglen < 0 {
262 return ErrInvalidLengthGenerated
263 }
264 postIndex := iNdEx + msglen
265 if postIndex > l {
266 return io.ErrUnexpectedEOF
267 }
268 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
269 return err
270 }
271 iNdEx = postIndex
272 case 2:
273 if wireType != 2 {
274 return fmt.Errorf("proto: wrong wireType = %d for field Handler", wireType)
275 }
276 var stringLen uint64
277 for shift := uint(0); ; shift += 7 {
278 if shift >= 64 {
279 return ErrIntOverflowGenerated
280 }
281 if iNdEx >= l {
282 return io.ErrUnexpectedEOF
283 }
284 b := dAtA[iNdEx]
285 iNdEx++
286 stringLen |= (uint64(b) & 0x7F) << shift
287 if b < 0x80 {
288 break
289 }
290 }
291 intStringLen := int(stringLen)
292 if intStringLen < 0 {
293 return ErrInvalidLengthGenerated
294 }
295 postIndex := iNdEx + intStringLen
296 if postIndex > l {
297 return io.ErrUnexpectedEOF
298 }
299 m.Handler = string(dAtA[iNdEx:postIndex])
300 iNdEx = postIndex
Zack Williamse940c7a2019-08-21 14:25:39 -0700301 default:
302 iNdEx = preIndex
303 skippy, err := skipGenerated(dAtA[iNdEx:])
304 if err != nil {
305 return err
306 }
307 if skippy < 0 {
308 return ErrInvalidLengthGenerated
309 }
310 if (iNdEx + skippy) > l {
311 return io.ErrUnexpectedEOF
312 }
313 iNdEx += skippy
314 }
315 }
316
317 if iNdEx > l {
318 return io.ErrUnexpectedEOF
319 }
320 return nil
321}
322func (m *RuntimeClassList) Unmarshal(dAtA []byte) error {
323 l := len(dAtA)
324 iNdEx := 0
325 for iNdEx < l {
326 preIndex := iNdEx
327 var wire uint64
328 for shift := uint(0); ; shift += 7 {
329 if shift >= 64 {
330 return ErrIntOverflowGenerated
331 }
332 if iNdEx >= l {
333 return io.ErrUnexpectedEOF
334 }
335 b := dAtA[iNdEx]
336 iNdEx++
337 wire |= (uint64(b) & 0x7F) << shift
338 if b < 0x80 {
339 break
340 }
341 }
342 fieldNum := int32(wire >> 3)
343 wireType := int(wire & 0x7)
344 if wireType == 4 {
345 return fmt.Errorf("proto: RuntimeClassList: wiretype end group for non-group")
346 }
347 if fieldNum <= 0 {
348 return fmt.Errorf("proto: RuntimeClassList: illegal tag %d (wire type %d)", fieldNum, wire)
349 }
350 switch fieldNum {
351 case 1:
352 if wireType != 2 {
353 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
354 }
355 var msglen int
356 for shift := uint(0); ; shift += 7 {
357 if shift >= 64 {
358 return ErrIntOverflowGenerated
359 }
360 if iNdEx >= l {
361 return io.ErrUnexpectedEOF
362 }
363 b := dAtA[iNdEx]
364 iNdEx++
365 msglen |= (int(b) & 0x7F) << shift
366 if b < 0x80 {
367 break
368 }
369 }
370 if msglen < 0 {
371 return ErrInvalidLengthGenerated
372 }
373 postIndex := iNdEx + msglen
374 if postIndex > l {
375 return io.ErrUnexpectedEOF
376 }
377 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
378 return err
379 }
380 iNdEx = postIndex
381 case 2:
382 if wireType != 2 {
383 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
384 }
385 var msglen int
386 for shift := uint(0); ; shift += 7 {
387 if shift >= 64 {
388 return ErrIntOverflowGenerated
389 }
390 if iNdEx >= l {
391 return io.ErrUnexpectedEOF
392 }
393 b := dAtA[iNdEx]
394 iNdEx++
395 msglen |= (int(b) & 0x7F) << shift
396 if b < 0x80 {
397 break
398 }
399 }
400 if msglen < 0 {
401 return ErrInvalidLengthGenerated
402 }
403 postIndex := iNdEx + msglen
404 if postIndex > l {
405 return io.ErrUnexpectedEOF
406 }
407 m.Items = append(m.Items, RuntimeClass{})
408 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
409 return err
410 }
411 iNdEx = postIndex
412 default:
413 iNdEx = preIndex
414 skippy, err := skipGenerated(dAtA[iNdEx:])
415 if err != nil {
416 return err
417 }
418 if skippy < 0 {
419 return ErrInvalidLengthGenerated
420 }
421 if (iNdEx + skippy) > l {
422 return io.ErrUnexpectedEOF
423 }
424 iNdEx += skippy
425 }
426 }
427
428 if iNdEx > l {
429 return io.ErrUnexpectedEOF
430 }
431 return nil
432}
433func skipGenerated(dAtA []byte) (n int, err error) {
434 l := len(dAtA)
435 iNdEx := 0
436 for iNdEx < l {
437 var wire uint64
438 for shift := uint(0); ; shift += 7 {
439 if shift >= 64 {
440 return 0, ErrIntOverflowGenerated
441 }
442 if iNdEx >= l {
443 return 0, io.ErrUnexpectedEOF
444 }
445 b := dAtA[iNdEx]
446 iNdEx++
447 wire |= (uint64(b) & 0x7F) << shift
448 if b < 0x80 {
449 break
450 }
451 }
452 wireType := int(wire & 0x7)
453 switch wireType {
454 case 0:
455 for shift := uint(0); ; shift += 7 {
456 if shift >= 64 {
457 return 0, ErrIntOverflowGenerated
458 }
459 if iNdEx >= l {
460 return 0, io.ErrUnexpectedEOF
461 }
462 iNdEx++
463 if dAtA[iNdEx-1] < 0x80 {
464 break
465 }
466 }
467 return iNdEx, nil
468 case 1:
469 iNdEx += 8
470 return iNdEx, nil
471 case 2:
472 var length int
473 for shift := uint(0); ; shift += 7 {
474 if shift >= 64 {
475 return 0, ErrIntOverflowGenerated
476 }
477 if iNdEx >= l {
478 return 0, io.ErrUnexpectedEOF
479 }
480 b := dAtA[iNdEx]
481 iNdEx++
482 length |= (int(b) & 0x7F) << shift
483 if b < 0x80 {
484 break
485 }
486 }
487 iNdEx += length
488 if length < 0 {
489 return 0, ErrInvalidLengthGenerated
490 }
491 return iNdEx, nil
492 case 3:
493 for {
494 var innerWire uint64
495 var start int = iNdEx
496 for shift := uint(0); ; shift += 7 {
497 if shift >= 64 {
498 return 0, ErrIntOverflowGenerated
499 }
500 if iNdEx >= l {
501 return 0, io.ErrUnexpectedEOF
502 }
503 b := dAtA[iNdEx]
504 iNdEx++
505 innerWire |= (uint64(b) & 0x7F) << shift
506 if b < 0x80 {
507 break
508 }
509 }
510 innerWireType := int(innerWire & 0x7)
511 if innerWireType == 4 {
512 break
513 }
514 next, err := skipGenerated(dAtA[start:])
515 if err != nil {
516 return 0, err
517 }
518 iNdEx = start + next
519 }
520 return iNdEx, nil
521 case 4:
522 return iNdEx, nil
523 case 5:
524 iNdEx += 4
525 return iNdEx, nil
526 default:
527 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
528 }
529 }
530 panic("unreachable")
531}
532
533var (
534 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
535 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
536)
537
538func init() {
539 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/node/v1beta1/generated.proto", fileDescriptorGenerated)
540}
541
542var fileDescriptorGenerated = []byte{
David Bainbridge86971522019-09-26 22:09:39 +0000543 // 389 bytes of a gzipped FileDescriptorProto
544 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcd, 0x6a, 0xdb, 0x40,
545 0x14, 0x85, 0x35, 0x2e, 0xc6, 0xae, 0xdc, 0x52, 0xa3, 0x4d, 0x8d, 0x17, 0x63, 0x63, 0x28, 0xb8,
546 0x0b, 0xcf, 0xd4, 0xa6, 0x94, 0x2e, 0x8b, 0xba, 0x69, 0x4b, 0x4b, 0x41, 0xcb, 0x90, 0x45, 0x46,
547 0xd2, 0x8d, 0x34, 0x91, 0xa5, 0x11, 0x9a, 0x91, 0x20, 0xbb, 0x3c, 0x42, 0xf6, 0x79, 0x95, 0x3c,
548 0x80, 0x97, 0x5e, 0x7a, 0x65, 0x62, 0xe5, 0x45, 0x82, 0x7e, 0xfc, 0x43, 0x8c, 0x49, 0x76, 0xba,
549 0xe7, 0x9e, 0x73, 0xee, 0x87, 0x18, 0xfd, 0x47, 0xf0, 0x5d, 0x12, 0x2e, 0x68, 0x90, 0xda, 0x90,
550 0x44, 0xa0, 0x40, 0xd2, 0x0c, 0x22, 0x57, 0x24, 0xb4, 0x5e, 0xb0, 0x98, 0xd3, 0x48, 0xb8, 0x40,
551 0xb3, 0xa9, 0x0d, 0x8a, 0x4d, 0xa9, 0x07, 0x11, 0x24, 0x4c, 0x81, 0x4b, 0xe2, 0x44, 0x28, 0x61,
552 0x7c, 0xac, 0x8c, 0x84, 0xc5, 0x9c, 0x14, 0x46, 0x52, 0x1b, 0xfb, 0x13, 0x8f, 0x2b, 0x3f, 0xb5,
553 0x89, 0x23, 0x42, 0xea, 0x09, 0x4f, 0xd0, 0xd2, 0x6f, 0xa7, 0x97, 0xe5, 0x54, 0x0e, 0xe5, 0x57,
554 0xd5, 0xd3, 0xff, 0xba, 0x3f, 0x18, 0x32, 0xc7, 0xe7, 0x11, 0x24, 0xd7, 0x34, 0x0e, 0xbc, 0x42,
555 0x90, 0x34, 0x04, 0xc5, 0x68, 0x76, 0x74, 0xbd, 0x4f, 0x4f, 0xa5, 0x92, 0x34, 0x52, 0x3c, 0x84,
556 0xa3, 0xc0, 0xb7, 0x97, 0x02, 0xd2, 0xf1, 0x21, 0x64, 0xcf, 0x73, 0xa3, 0x3b, 0xa4, 0xbf, 0xb3,
557 0x2a, 0xcb, 0xcf, 0x39, 0x93, 0xd2, 0xb8, 0xd0, 0xdb, 0x05, 0x94, 0xcb, 0x14, 0xeb, 0xa1, 0x21,
558 0x1a, 0x77, 0x66, 0x5f, 0xc8, 0xfe, 0x57, 0xec, 0xba, 0x49, 0x1c, 0x78, 0x85, 0x20, 0x49, 0xe1,
559 0x26, 0xd9, 0x94, 0xfc, 0xb7, 0xaf, 0xc0, 0x51, 0xff, 0x40, 0x31, 0xd3, 0x58, 0xac, 0x07, 0x5a,
560 0xbe, 0x1e, 0xe8, 0x7b, 0xcd, 0xda, 0xb5, 0x1a, 0x9f, 0xf5, 0x96, 0xcf, 0x22, 0x77, 0x0e, 0x49,
561 0xaf, 0x31, 0x44, 0xe3, 0xb7, 0xe6, 0x87, 0xda, 0xde, 0xfa, 0x55, 0xc9, 0xd6, 0x76, 0x3f, 0xba,
562 0x47, 0x7a, 0xf7, 0x90, 0xee, 0x2f, 0x97, 0xca, 0x38, 0x3f, 0x22, 0x24, 0xaf, 0x23, 0x2c, 0xd2,
563 0x25, 0x5f, 0xb7, 0x3e, 0xd8, 0xde, 0x2a, 0x07, 0x74, 0x7f, 0xf4, 0x26, 0x57, 0x10, 0xca, 0x5e,
564 0x63, 0xf8, 0x66, 0xdc, 0x99, 0x7d, 0x22, 0x27, 0xde, 0x01, 0x39, 0xe4, 0x32, 0xdf, 0xd7, 0x8d,
565 0xcd, 0xdf, 0x45, 0xd6, 0xaa, 0x2a, 0xcc, 0xc9, 0x62, 0x83, 0xb5, 0xe5, 0x06, 0x6b, 0xab, 0x0d,
566 0xd6, 0x6e, 0x72, 0x8c, 0x16, 0x39, 0x46, 0xcb, 0x1c, 0xa3, 0x55, 0x8e, 0xd1, 0x43, 0x8e, 0xd1,
567 0xed, 0x23, 0xd6, 0xce, 0x5a, 0x75, 0xe3, 0x53, 0x00, 0x00, 0x00, 0xff, 0xff, 0x93, 0x68, 0xe5,
568 0x0d, 0xb5, 0x02, 0x00, 0x00,
Zack Williamse940c7a2019-08-21 14:25:39 -0700569}