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