2 Copyright The Kubernetes Authors.
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
17 // Code generated by protoc-gen-gogo. DO NOT EDIT.
18 // source: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime/generated.proto
21 Package runtime is a generated protocol buffer package.
23 It is generated from these files:
24 k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime/generated.proto
26 It has these top-level messages:
33 import proto "github.com/gogo/protobuf/proto"
37 import strings "strings"
38 import reflect "reflect"
42 // Reference imports to suppress errors if they are not otherwise used.
47 // This is a compile-time assertion to ensure that this generated file
48 // is compatible with the proto package it is being compiled against.
49 // A compilation error at this line likely means your copy of the
50 // proto package needs to be updated.
51 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
53 func (m *RawExtension) Reset() { *m = RawExtension{} }
54 func (*RawExtension) ProtoMessage() {}
55 func (*RawExtension) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
57 func (m *TypeMeta) Reset() { *m = TypeMeta{} }
58 func (*TypeMeta) ProtoMessage() {}
59 func (*TypeMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
61 func (m *Unknown) Reset() { *m = Unknown{} }
62 func (*Unknown) ProtoMessage() {}
63 func (*Unknown) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
66 proto.RegisterType((*RawExtension)(nil), "k8s.io.apimachinery.pkg.runtime.RawExtension")
67 proto.RegisterType((*TypeMeta)(nil), "k8s.io.apimachinery.pkg.runtime.TypeMeta")
68 proto.RegisterType((*Unknown)(nil), "k8s.io.apimachinery.pkg.runtime.Unknown")
70 func (m *RawExtension) Marshal() (dAtA []byte, err error) {
72 dAtA = make([]byte, size)
73 n, err := m.MarshalTo(dAtA)
80 func (m *RawExtension) MarshalTo(dAtA []byte) (int, error) {
88 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Raw)))
89 i += copy(dAtA[i:], m.Raw)
94 func (m *TypeMeta) Marshal() (dAtA []byte, err error) {
96 dAtA = make([]byte, size)
97 n, err := m.MarshalTo(dAtA)
104 func (m *TypeMeta) MarshalTo(dAtA []byte) (int, error) {
111 i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion)))
112 i += copy(dAtA[i:], m.APIVersion)
115 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
116 i += copy(dAtA[i:], m.Kind)
120 func (m *Unknown) Marshal() (dAtA []byte, err error) {
122 dAtA = make([]byte, size)
123 n, err := m.MarshalTo(dAtA)
130 func (m *Unknown) MarshalTo(dAtA []byte) (int, error) {
137 i = encodeVarintGenerated(dAtA, i, uint64(m.TypeMeta.Size()))
138 n1, err := m.TypeMeta.MarshalTo(dAtA[i:])
146 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Raw)))
147 i += copy(dAtA[i:], m.Raw)
151 i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContentEncoding)))
152 i += copy(dAtA[i:], m.ContentEncoding)
155 i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContentType)))
156 i += copy(dAtA[i:], m.ContentType)
160 func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
162 dAtA[offset] = uint8(v&0x7f | 0x80)
166 dAtA[offset] = uint8(v)
169 func (m *RawExtension) Size() (n int) {
174 n += 1 + l + sovGenerated(uint64(l))
179 func (m *TypeMeta) Size() (n int) {
182 l = len(m.APIVersion)
183 n += 1 + l + sovGenerated(uint64(l))
185 n += 1 + l + sovGenerated(uint64(l))
189 func (m *Unknown) Size() (n int) {
192 l = m.TypeMeta.Size()
193 n += 1 + l + sovGenerated(uint64(l))
196 n += 1 + l + sovGenerated(uint64(l))
198 l = len(m.ContentEncoding)
199 n += 1 + l + sovGenerated(uint64(l))
200 l = len(m.ContentType)
201 n += 1 + l + sovGenerated(uint64(l))
205 func sovGenerated(x uint64) (n int) {
215 func sozGenerated(x uint64) (n int) {
216 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
218 func (this *RawExtension) String() string {
222 s := strings.Join([]string{`&RawExtension{`,
223 `Raw:` + valueToStringGenerated(this.Raw) + `,`,
228 func (this *TypeMeta) String() string {
232 s := strings.Join([]string{`&TypeMeta{`,
233 `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`,
234 `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
239 func (this *Unknown) String() string {
243 s := strings.Join([]string{`&Unknown{`,
244 `TypeMeta:` + strings.Replace(strings.Replace(this.TypeMeta.String(), "TypeMeta", "TypeMeta", 1), `&`, ``, 1) + `,`,
245 `Raw:` + valueToStringGenerated(this.Raw) + `,`,
246 `ContentEncoding:` + fmt.Sprintf("%v", this.ContentEncoding) + `,`,
247 `ContentType:` + fmt.Sprintf("%v", this.ContentType) + `,`,
252 func valueToStringGenerated(v interface{}) string {
253 rv := reflect.ValueOf(v)
257 pv := reflect.Indirect(rv).Interface()
258 return fmt.Sprintf("*%v", pv)
260 func (m *RawExtension) Unmarshal(dAtA []byte) error {
266 for shift := uint(0); ; shift += 7 {
268 return ErrIntOverflowGenerated
271 return io.ErrUnexpectedEOF
275 wire |= (uint64(b) & 0x7F) << shift
280 fieldNum := int32(wire >> 3)
281 wireType := int(wire & 0x7)
283 return fmt.Errorf("proto: RawExtension: wiretype end group for non-group")
286 return fmt.Errorf("proto: RawExtension: illegal tag %d (wire type %d)", fieldNum, wire)
291 return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType)
294 for shift := uint(0); ; shift += 7 {
296 return ErrIntOverflowGenerated
299 return io.ErrUnexpectedEOF
303 byteLen |= (int(b) & 0x7F) << shift
309 return ErrInvalidLengthGenerated
311 postIndex := iNdEx + byteLen
313 return io.ErrUnexpectedEOF
315 m.Raw = append(m.Raw[:0], dAtA[iNdEx:postIndex]...)
322 skippy, err := skipGenerated(dAtA[iNdEx:])
327 return ErrInvalidLengthGenerated
329 if (iNdEx + skippy) > l {
330 return io.ErrUnexpectedEOF
337 return io.ErrUnexpectedEOF
341 func (m *TypeMeta) Unmarshal(dAtA []byte) error {
347 for shift := uint(0); ; shift += 7 {
349 return ErrIntOverflowGenerated
352 return io.ErrUnexpectedEOF
356 wire |= (uint64(b) & 0x7F) << shift
361 fieldNum := int32(wire >> 3)
362 wireType := int(wire & 0x7)
364 return fmt.Errorf("proto: TypeMeta: wiretype end group for non-group")
367 return fmt.Errorf("proto: TypeMeta: illegal tag %d (wire type %d)", fieldNum, wire)
372 return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType)
375 for shift := uint(0); ; shift += 7 {
377 return ErrIntOverflowGenerated
380 return io.ErrUnexpectedEOF
384 stringLen |= (uint64(b) & 0x7F) << shift
389 intStringLen := int(stringLen)
390 if intStringLen < 0 {
391 return ErrInvalidLengthGenerated
393 postIndex := iNdEx + intStringLen
395 return io.ErrUnexpectedEOF
397 m.APIVersion = string(dAtA[iNdEx:postIndex])
401 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
404 for shift := uint(0); ; shift += 7 {
406 return ErrIntOverflowGenerated
409 return io.ErrUnexpectedEOF
413 stringLen |= (uint64(b) & 0x7F) << shift
418 intStringLen := int(stringLen)
419 if intStringLen < 0 {
420 return ErrInvalidLengthGenerated
422 postIndex := iNdEx + intStringLen
424 return io.ErrUnexpectedEOF
426 m.Kind = string(dAtA[iNdEx:postIndex])
430 skippy, err := skipGenerated(dAtA[iNdEx:])
435 return ErrInvalidLengthGenerated
437 if (iNdEx + skippy) > l {
438 return io.ErrUnexpectedEOF
445 return io.ErrUnexpectedEOF
449 func (m *Unknown) Unmarshal(dAtA []byte) error {
455 for shift := uint(0); ; shift += 7 {
457 return ErrIntOverflowGenerated
460 return io.ErrUnexpectedEOF
464 wire |= (uint64(b) & 0x7F) << shift
469 fieldNum := int32(wire >> 3)
470 wireType := int(wire & 0x7)
472 return fmt.Errorf("proto: Unknown: wiretype end group for non-group")
475 return fmt.Errorf("proto: Unknown: illegal tag %d (wire type %d)", fieldNum, wire)
480 return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", wireType)
483 for shift := uint(0); ; shift += 7 {
485 return ErrIntOverflowGenerated
488 return io.ErrUnexpectedEOF
492 msglen |= (int(b) & 0x7F) << shift
498 return ErrInvalidLengthGenerated
500 postIndex := iNdEx + msglen
502 return io.ErrUnexpectedEOF
504 if err := m.TypeMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
510 return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType)
513 for shift := uint(0); ; shift += 7 {
515 return ErrIntOverflowGenerated
518 return io.ErrUnexpectedEOF
522 byteLen |= (int(b) & 0x7F) << shift
528 return ErrInvalidLengthGenerated
530 postIndex := iNdEx + byteLen
532 return io.ErrUnexpectedEOF
534 m.Raw = append(m.Raw[:0], dAtA[iNdEx:postIndex]...)
541 return fmt.Errorf("proto: wrong wireType = %d for field ContentEncoding", wireType)
544 for shift := uint(0); ; shift += 7 {
546 return ErrIntOverflowGenerated
549 return io.ErrUnexpectedEOF
553 stringLen |= (uint64(b) & 0x7F) << shift
558 intStringLen := int(stringLen)
559 if intStringLen < 0 {
560 return ErrInvalidLengthGenerated
562 postIndex := iNdEx + intStringLen
564 return io.ErrUnexpectedEOF
566 m.ContentEncoding = string(dAtA[iNdEx:postIndex])
570 return fmt.Errorf("proto: wrong wireType = %d for field ContentType", wireType)
573 for shift := uint(0); ; shift += 7 {
575 return ErrIntOverflowGenerated
578 return io.ErrUnexpectedEOF
582 stringLen |= (uint64(b) & 0x7F) << shift
587 intStringLen := int(stringLen)
588 if intStringLen < 0 {
589 return ErrInvalidLengthGenerated
591 postIndex := iNdEx + intStringLen
593 return io.ErrUnexpectedEOF
595 m.ContentType = string(dAtA[iNdEx:postIndex])
599 skippy, err := skipGenerated(dAtA[iNdEx:])
604 return ErrInvalidLengthGenerated
606 if (iNdEx + skippy) > l {
607 return io.ErrUnexpectedEOF
614 return io.ErrUnexpectedEOF
618 func skipGenerated(dAtA []byte) (n int, err error) {
623 for shift := uint(0); ; shift += 7 {
625 return 0, ErrIntOverflowGenerated
628 return 0, io.ErrUnexpectedEOF
632 wire |= (uint64(b) & 0x7F) << shift
637 wireType := int(wire & 0x7)
640 for shift := uint(0); ; shift += 7 {
642 return 0, ErrIntOverflowGenerated
645 return 0, io.ErrUnexpectedEOF
648 if dAtA[iNdEx-1] < 0x80 {
658 for shift := uint(0); ; shift += 7 {
660 return 0, ErrIntOverflowGenerated
663 return 0, io.ErrUnexpectedEOF
667 length |= (int(b) & 0x7F) << shift
674 return 0, ErrInvalidLengthGenerated
680 var start int = iNdEx
681 for shift := uint(0); ; shift += 7 {
683 return 0, ErrIntOverflowGenerated
686 return 0, io.ErrUnexpectedEOF
690 innerWire |= (uint64(b) & 0x7F) << shift
695 innerWireType := int(innerWire & 0x7)
696 if innerWireType == 4 {
699 next, err := skipGenerated(dAtA[start:])
712 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
719 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
720 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
724 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime/generated.proto", fileDescriptorGenerated)
727 var fileDescriptorGenerated = []byte{
728 // 378 bytes of a gzipped FileDescriptorProto
729 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x8f, 0x4f, 0xab, 0x13, 0x31,
730 0x14, 0xc5, 0x27, 0xaf, 0x85, 0x3e, 0xd3, 0xc2, 0x93, 0xb8, 0x70, 0x74, 0x91, 0x79, 0x74, 0xe5,
731 0x5b, 0xbc, 0x04, 0x1e, 0x08, 0x6e, 0x3b, 0xa5, 0xa0, 0x88, 0x20, 0xc1, 0x3f, 0xe0, 0xca, 0x74,
732 0x26, 0x4e, 0xc3, 0xd0, 0x9b, 0x21, 0xcd, 0x38, 0x76, 0xe7, 0x47, 0xf0, 0x63, 0x75, 0xd9, 0x65,
733 0x57, 0xc5, 0x8e, 0x1f, 0xc2, 0xad, 0x34, 0x4d, 0x6b, 0xd5, 0x85, 0xbb, 0xe4, 0x9e, 0xf3, 0x3b,
734 0xf7, 0x1e, 0xfc, 0xbc, 0x7c, 0xb6, 0x60, 0xda, 0xf0, 0xb2, 0x9e, 0x2a, 0x0b, 0xca, 0xa9, 0x05,
735 0xff, 0xac, 0x20, 0x37, 0x96, 0x07, 0x41, 0x56, 0x7a, 0x2e, 0xb3, 0x99, 0x06, 0x65, 0x97, 0xbc,
736 0x2a, 0x0b, 0x6e, 0x6b, 0x70, 0x7a, 0xae, 0x78, 0xa1, 0x40, 0x59, 0xe9, 0x54, 0xce, 0x2a, 0x6b,
737 0x9c, 0x21, 0xc9, 0x01, 0x60, 0xe7, 0x00, 0xab, 0xca, 0x82, 0x05, 0xe0, 0xf1, 0x6d, 0xa1, 0xdd,
738 0xac, 0x9e, 0xb2, 0xcc, 0xcc, 0x79, 0x61, 0x0a, 0xc3, 0x3d, 0x37, 0xad, 0x3f, 0xf9, 0x9f, 0xff,
739 0xf8, 0xd7, 0x21, 0x6f, 0x78, 0x83, 0x07, 0x42, 0x36, 0x93, 0x2f, 0x4e, 0xc1, 0x42, 0x1b, 0x20,
740 0x8f, 0x70, 0xc7, 0xca, 0x26, 0x46, 0xd7, 0xe8, 0xc9, 0x20, 0xed, 0xb5, 0xdb, 0xa4, 0x23, 0x64,
741 0x23, 0xf6, 0xb3, 0xe1, 0x47, 0x7c, 0xf9, 0x66, 0x59, 0xa9, 0x57, 0xca, 0x49, 0x72, 0x87, 0xb1,
742 0xac, 0xf4, 0x3b, 0x65, 0xf7, 0x90, 0x77, 0xdf, 0x4b, 0xc9, 0x6a, 0x9b, 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