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/api/scheduling/v1beta1/generated.proto
21 Package v1beta1 is a generated protocol buffer package.
23 It is generated from these files:
24 k8s.io/kubernetes/vendor/k8s.io/api/scheduling/v1beta1/generated.proto
26 It has these top-level messages:
32 import proto "github.com/gogo/protobuf/proto"
36 import strings "strings"
37 import reflect "reflect"
41 // Reference imports to suppress errors if they are not otherwise used.
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.
50 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
52 func (m *PriorityClass) Reset() { *m = PriorityClass{} }
53 func (*PriorityClass) ProtoMessage() {}
54 func (*PriorityClass) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
56 func (m *PriorityClassList) Reset() { *m = PriorityClassList{} }
57 func (*PriorityClassList) ProtoMessage() {}
58 func (*PriorityClassList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
61 proto.RegisterType((*PriorityClass)(nil), "k8s.io.api.scheduling.v1beta1.PriorityClass")
62 proto.RegisterType((*PriorityClassList)(nil), "k8s.io.api.scheduling.v1beta1.PriorityClassList")
64 func (m *PriorityClass) Marshal() (dAtA []byte, err error) {
66 dAtA = make([]byte, size)
67 n, err := m.MarshalTo(dAtA)
74 func (m *PriorityClass) MarshalTo(dAtA []byte) (int, error) {
81 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
82 n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
89 i = encodeVarintGenerated(dAtA, i, uint64(m.Value))
100 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Description)))
101 i += copy(dAtA[i:], m.Description)
105 func (m *PriorityClassList) Marshal() (dAtA []byte, err error) {
107 dAtA = make([]byte, size)
108 n, err := m.MarshalTo(dAtA)
115 func (m *PriorityClassList) MarshalTo(dAtA []byte) (int, error) {
122 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
123 n2, err := m.ListMeta.MarshalTo(dAtA[i:])
128 if len(m.Items) > 0 {
129 for _, msg := range m.Items {
132 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
133 n, err := msg.MarshalTo(dAtA[i:])
143 func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
145 dAtA[offset] = uint8(v&0x7f | 0x80)
149 dAtA[offset] = uint8(v)
152 func (m *PriorityClass) Size() (n int) {
155 l = m.ObjectMeta.Size()
156 n += 1 + l + sovGenerated(uint64(l))
157 n += 1 + sovGenerated(uint64(m.Value))
159 l = len(m.Description)
160 n += 1 + l + sovGenerated(uint64(l))
164 func (m *PriorityClassList) Size() (n int) {
167 l = m.ListMeta.Size()
168 n += 1 + l + sovGenerated(uint64(l))
169 if len(m.Items) > 0 {
170 for _, e := range m.Items {
172 n += 1 + l + sovGenerated(uint64(l))
178 func sovGenerated(x uint64) (n int) {
188 func sozGenerated(x uint64) (n int) {
189 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
191 func (this *PriorityClass) String() string {
195 s := strings.Join([]string{`&PriorityClass{`,
196 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
197 `Value:` + fmt.Sprintf("%v", this.Value) + `,`,
198 `GlobalDefault:` + fmt.Sprintf("%v", this.GlobalDefault) + `,`,
199 `Description:` + fmt.Sprintf("%v", this.Description) + `,`,
204 func (this *PriorityClassList) String() string {
208 s := strings.Join([]string{`&PriorityClassList{`,
209 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
210 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PriorityClass", "PriorityClass", 1), `&`, ``, 1) + `,`,
215 func valueToStringGenerated(v interface{}) string {
216 rv := reflect.ValueOf(v)
220 pv := reflect.Indirect(rv).Interface()
221 return fmt.Sprintf("*%v", pv)
223 func (m *PriorityClass) Unmarshal(dAtA []byte) error {
229 for shift := uint(0); ; shift += 7 {
231 return ErrIntOverflowGenerated
234 return io.ErrUnexpectedEOF
238 wire |= (uint64(b) & 0x7F) << shift
243 fieldNum := int32(wire >> 3)
244 wireType := int(wire & 0x7)
246 return fmt.Errorf("proto: PriorityClass: wiretype end group for non-group")
249 return fmt.Errorf("proto: PriorityClass: illegal tag %d (wire type %d)", fieldNum, wire)
254 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
257 for shift := uint(0); ; shift += 7 {
259 return ErrIntOverflowGenerated
262 return io.ErrUnexpectedEOF
266 msglen |= (int(b) & 0x7F) << shift
272 return ErrInvalidLengthGenerated
274 postIndex := iNdEx + msglen
276 return io.ErrUnexpectedEOF
278 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
284 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
287 for shift := uint(0); ; shift += 7 {
289 return ErrIntOverflowGenerated
292 return io.ErrUnexpectedEOF
296 m.Value |= (int32(b) & 0x7F) << shift
303 return fmt.Errorf("proto: wrong wireType = %d for field GlobalDefault", wireType)
306 for shift := uint(0); ; shift += 7 {
308 return ErrIntOverflowGenerated
311 return io.ErrUnexpectedEOF
315 v |= (int(b) & 0x7F) << shift
320 m.GlobalDefault = bool(v != 0)
323 return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
326 for shift := uint(0); ; shift += 7 {
328 return ErrIntOverflowGenerated
331 return io.ErrUnexpectedEOF
335 stringLen |= (uint64(b) & 0x7F) << shift
340 intStringLen := int(stringLen)
341 if intStringLen < 0 {
342 return ErrInvalidLengthGenerated
344 postIndex := iNdEx + intStringLen
346 return io.ErrUnexpectedEOF
348 m.Description = string(dAtA[iNdEx:postIndex])
352 skippy, err := skipGenerated(dAtA[iNdEx:])
357 return ErrInvalidLengthGenerated
359 if (iNdEx + skippy) > l {
360 return io.ErrUnexpectedEOF
367 return io.ErrUnexpectedEOF
371 func (m *PriorityClassList) Unmarshal(dAtA []byte) error {
377 for shift := uint(0); ; shift += 7 {
379 return ErrIntOverflowGenerated
382 return io.ErrUnexpectedEOF
386 wire |= (uint64(b) & 0x7F) << shift
391 fieldNum := int32(wire >> 3)
392 wireType := int(wire & 0x7)
394 return fmt.Errorf("proto: PriorityClassList: wiretype end group for non-group")
397 return fmt.Errorf("proto: PriorityClassList: illegal tag %d (wire type %d)", fieldNum, wire)
402 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
405 for shift := uint(0); ; shift += 7 {
407 return ErrIntOverflowGenerated
410 return io.ErrUnexpectedEOF
414 msglen |= (int(b) & 0x7F) << shift
420 return ErrInvalidLengthGenerated
422 postIndex := iNdEx + msglen
424 return io.ErrUnexpectedEOF
426 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
432 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
435 for shift := uint(0); ; shift += 7 {
437 return ErrIntOverflowGenerated
440 return io.ErrUnexpectedEOF
444 msglen |= (int(b) & 0x7F) << shift
450 return ErrInvalidLengthGenerated
452 postIndex := iNdEx + msglen
454 return io.ErrUnexpectedEOF
456 m.Items = append(m.Items, PriorityClass{})
457 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
463 skippy, err := skipGenerated(dAtA[iNdEx:])
468 return ErrInvalidLengthGenerated
470 if (iNdEx + skippy) > l {
471 return io.ErrUnexpectedEOF
478 return io.ErrUnexpectedEOF
482 func skipGenerated(dAtA []byte) (n int, err error) {
487 for shift := uint(0); ; shift += 7 {
489 return 0, ErrIntOverflowGenerated
492 return 0, io.ErrUnexpectedEOF
496 wire |= (uint64(b) & 0x7F) << shift
501 wireType := int(wire & 0x7)
504 for shift := uint(0); ; shift += 7 {
506 return 0, ErrIntOverflowGenerated
509 return 0, io.ErrUnexpectedEOF
512 if dAtA[iNdEx-1] < 0x80 {
522 for shift := uint(0); ; shift += 7 {
524 return 0, ErrIntOverflowGenerated
527 return 0, io.ErrUnexpectedEOF
531 length |= (int(b) & 0x7F) << shift
538 return 0, ErrInvalidLengthGenerated
544 var start int = iNdEx
545 for shift := uint(0); ; shift += 7 {
547 return 0, ErrIntOverflowGenerated
550 return 0, io.ErrUnexpectedEOF
554 innerWire |= (uint64(b) & 0x7F) << shift
559 innerWireType := int(innerWire & 0x7)
560 if innerWireType == 4 {
563 next, err := skipGenerated(dAtA[start:])
576 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
583 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
584 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
588 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/scheduling/v1beta1/generated.proto", fileDescriptorGenerated)
591 var fileDescriptorGenerated = []byte{
592 // 448 bytes of a gzipped FileDescriptorProto
593 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x8b, 0xd3, 0x40,
594 0x18, 0xc5, 0x33, 0x5d, 0x8b, 0x75, 0x4a, 0x41, 0x23, 0x42, 0x28, 0x38, 0x1b, 0xd6, 0x4b, 0x0e,
595 0xee, 0x8c, 0x5d, 0x54, 0x04, 0x6f, 0x71, 0x51, 0x04, 0x45, 0xcd, 0xc1, 0x83, 0x78, 0x70, 0x92,
596 0x7c, 0x9b, 0x8e, 0x4d, 0x32, 0x61, 0x66, 0x12, 0xd8, 0x9b, 0x67, 0x4f, 0xfe, 0x51, 0x1e, 0x7a,
597 0xdc, 0xe3, 0x9e, 0x16, 0x1b, 0xff, 0x11, 0x49, 0x1a, 0x37, 0xad, 0x45, 0xdd, 0x5b, 0xe6, 0x7d,
598 0xbf, 0xf7, 0xe6, 0xcb, 0x63, 0xf0, 0xf3, 0xc5, 0x13, 0x4d, 0x85, 0x64, 0x8b, 0x32, 0x04, 0x95,
599 0x83, 0x01, 0xcd, 0x2a, 0xc8, 0x63, 0xa9, 0x58, 0x37, 0xe0, 0x85, 0x60, 0x3a, 0x9a, 0x43, 0x5c,
600 0xa6, 0x22, 0x4f, 0x58, 0x35, 0x0b, 0xc1, 0xf0, 0x19, 0x4b, 0x20, 0x07, 0xc5, 0x0d, 0xc4, 0xb4,
601 0x50, 0xd2, 0x48, 0xfb, 0xee, 0x1a, 0xa7, 0xbc, 0x10, 0xb4, 0xc7, 0x69, 0x87, 0x4f, 0x0f, 0x13,
602 0x61, 0xe6, 0x65, 0x48, 0x23, 0x99, 0xb1, 0x44, 0x26, 0x92, 0xb5, 0xae, 0xb0, 0x3c, 0x69, 0x4f,
603 0xed, 0xa1, 0xfd, 0x5a, 0xa7, 0x4d, 0x1f, 0xf6, 0x97, 0x67, 0x3c, 0x9a, 0x8b, 0x1c, 0xd4, 0x29,
604 0x2b, 0x16, 0x49, 0x23, 0x68, 0x96, 0x81, 0xe1, 0xac, 0xda, 0xd9, 0x61, 0xca, 0xfe, 0xe6, 0x52,
605 0x65, 0x6e, 0x44, 0x06, 0x3b, 0x86, 0xc7, 0xff, 0x33, 0x34, 0x7f, 0x92, 0xf1, 0x3f, 0x7d, 0x07,
606 0x5f, 0x07, 0x78, 0xf2, 0x56, 0x09, 0xa9, 0x84, 0x39, 0x7d, 0x96, 0x72, 0xad, 0xed, 0x4f, 0x78,
607 0xd4, 0x6c, 0x15, 0x73, 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