Matteo Scandolo | a428586 | 2020-12-01 18:10:10 -0800 | [diff] [blame] | 1 | /* |
| 2 | Copyright The Kubernetes Authors. |
| 3 | |
| 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 |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 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. |
| 15 | */ |
| 16 | |
| 17 | // Code generated by protoc-gen-gogo. DO NOT EDIT. |
| 18 | // source: k8s.io/kubernetes/vendor/k8s.io/api/scheduling/v1beta1/generated.proto |
| 19 | |
| 20 | package v1beta1 |
| 21 | |
| 22 | import ( |
| 23 | fmt "fmt" |
| 24 | |
| 25 | io "io" |
| 26 | |
| 27 | proto "github.com/gogo/protobuf/proto" |
| 28 | |
| 29 | k8s_io_api_core_v1 "k8s.io/api/core/v1" |
| 30 | |
| 31 | math "math" |
| 32 | math_bits "math/bits" |
| 33 | reflect "reflect" |
| 34 | strings "strings" |
| 35 | ) |
| 36 | |
| 37 | // Reference imports to suppress errors if they are not otherwise used. |
| 38 | var _ = proto.Marshal |
| 39 | var _ = fmt.Errorf |
| 40 | var _ = math.Inf |
| 41 | |
| 42 | // This is a compile-time assertion to ensure that this generated file |
| 43 | // is compatible with the proto package it is being compiled against. |
| 44 | // A compilation error at this line likely means your copy of the |
| 45 | // proto package needs to be updated. |
| 46 | const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package |
| 47 | |
| 48 | func (m *PriorityClass) Reset() { *m = PriorityClass{} } |
| 49 | func (*PriorityClass) ProtoMessage() {} |
| 50 | func (*PriorityClass) Descriptor() ([]byte, []int) { |
| 51 | return fileDescriptor_6cd406dede2d3f42, []int{0} |
| 52 | } |
| 53 | func (m *PriorityClass) XXX_Unmarshal(b []byte) error { |
| 54 | return m.Unmarshal(b) |
| 55 | } |
| 56 | func (m *PriorityClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 57 | b = b[:cap(b)] |
| 58 | n, err := m.MarshalToSizedBuffer(b) |
| 59 | if err != nil { |
| 60 | return nil, err |
| 61 | } |
| 62 | return b[:n], nil |
| 63 | } |
| 64 | func (m *PriorityClass) XXX_Merge(src proto.Message) { |
| 65 | xxx_messageInfo_PriorityClass.Merge(m, src) |
| 66 | } |
| 67 | func (m *PriorityClass) XXX_Size() int { |
| 68 | return m.Size() |
| 69 | } |
| 70 | func (m *PriorityClass) XXX_DiscardUnknown() { |
| 71 | xxx_messageInfo_PriorityClass.DiscardUnknown(m) |
| 72 | } |
| 73 | |
| 74 | var xxx_messageInfo_PriorityClass proto.InternalMessageInfo |
| 75 | |
| 76 | func (m *PriorityClassList) Reset() { *m = PriorityClassList{} } |
| 77 | func (*PriorityClassList) ProtoMessage() {} |
| 78 | func (*PriorityClassList) Descriptor() ([]byte, []int) { |
| 79 | return fileDescriptor_6cd406dede2d3f42, []int{1} |
| 80 | } |
| 81 | func (m *PriorityClassList) XXX_Unmarshal(b []byte) error { |
| 82 | return m.Unmarshal(b) |
| 83 | } |
| 84 | func (m *PriorityClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 85 | b = b[:cap(b)] |
| 86 | n, err := m.MarshalToSizedBuffer(b) |
| 87 | if err != nil { |
| 88 | return nil, err |
| 89 | } |
| 90 | return b[:n], nil |
| 91 | } |
| 92 | func (m *PriorityClassList) XXX_Merge(src proto.Message) { |
| 93 | xxx_messageInfo_PriorityClassList.Merge(m, src) |
| 94 | } |
| 95 | func (m *PriorityClassList) XXX_Size() int { |
| 96 | return m.Size() |
| 97 | } |
| 98 | func (m *PriorityClassList) XXX_DiscardUnknown() { |
| 99 | xxx_messageInfo_PriorityClassList.DiscardUnknown(m) |
| 100 | } |
| 101 | |
| 102 | var xxx_messageInfo_PriorityClassList proto.InternalMessageInfo |
| 103 | |
| 104 | func init() { |
| 105 | proto.RegisterType((*PriorityClass)(nil), "k8s.io.api.scheduling.v1beta1.PriorityClass") |
| 106 | proto.RegisterType((*PriorityClassList)(nil), "k8s.io.api.scheduling.v1beta1.PriorityClassList") |
| 107 | } |
| 108 | |
| 109 | func init() { |
| 110 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/scheduling/v1beta1/generated.proto", fileDescriptor_6cd406dede2d3f42) |
| 111 | } |
| 112 | |
| 113 | var fileDescriptor_6cd406dede2d3f42 = []byte{ |
| 114 | // 494 bytes of a gzipped FileDescriptorProto |
| 115 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x3f, 0x8f, 0xd3, 0x30, |
| 116 | 0x18, 0xc6, 0xeb, 0x1e, 0x15, 0xc5, 0x55, 0xa5, 0x12, 0x84, 0x14, 0x55, 0x22, 0xad, 0x7a, 0x4b, |
| 117 | 0x07, 0xce, 0xa6, 0x27, 0x40, 0x48, 0xb7, 0x95, 0x13, 0x08, 0x09, 0x44, 0xc9, 0xc0, 0x80, 0x18, |
| 118 | 0x70, 0x92, 0xf7, 0x52, 0xd3, 0x24, 0x8e, 0x6c, 0x27, 0x52, 0x37, 0x3e, 0x02, 0x1f, 0x8a, 0xa1, |
| 119 | 0xe3, 0x8d, 0x37, 0x55, 0x34, 0x7c, 0x04, 0x36, 0x26, 0x94, 0x34, 0x5c, 0xda, 0x86, 0x7f, 0x5b, |
| 120 | 0xfc, 0x3e, 0xbf, 0xe7, 0xb1, 0xfd, 0x24, 0xc1, 0xcf, 0x16, 0x4f, 0x14, 0xe1, 0x82, 0x2e, 0x12, |
| 121 | 0x07, 0x64, 0x04, 0x1a, 0x14, 0x4d, 0x21, 0xf2, 0x84, 0xa4, 0xa5, 0xc0, 0x62, 0x4e, 0x95, 0x3b, |
| 122 | 0x07, 0x2f, 0x09, 0x78, 0xe4, 0xd3, 0x74, 0xe2, 0x80, 0x66, 0x13, 0xea, 0x43, 0x04, 0x92, 0x69, |
| 123 | 0xf0, 0x48, 0x2c, 0x85, 0x16, 0xc6, 0xbd, 0x2d, 0x4e, 0x58, 0xcc, 0x49, 0x85, 0x93, 0x12, 0xef, |
| 124 | 0x9f, 0xf8, 0x5c, 0xcf, 0x13, 0x87, 0xb8, 0x22, 0xa4, 0xbe, 0xf0, 0x05, 0x2d, 0x5c, 0x4e, 0x72, |
| 125 | 0x51, 0xac, 0x8a, 0x45, 0xf1, 0xb4, 0x4d, 0xeb, 0x8f, 0x76, 0x36, 0x77, 0x85, 0x04, 0x9a, 0xd6, |
| 126 | 0x76, 0xec, 0x3f, 0xac, 0x98, 0x90, 0xb9, 0x73, 0x1e, 0x81, 0x5c, 0xd2, 0x78, 0xe1, 0xe7, 0x03, |
| 127 | 0x45, 0x43, 0xd0, 0xec, 0x77, 0x2e, 0xfa, 0x27, 0x97, 0x4c, 0x22, 0xcd, 0x43, 0xa8, 0x19, 0x1e, |
| 128 | 0xff, 0xcb, 0x90, 0xdf, 0x36, 0x64, 0x87, 0xbe, 0xd1, 0xf7, 0x26, 0xee, 0xce, 0x24, 0x17, 0x92, |
| 129 | 0xeb, 0xe5, 0xd3, 0x80, 0x29, 0x65, 0x7c, 0xc0, 0xed, 0xfc, 0x54, 0x1e, 0xd3, 0xcc, 0x44, 0x43, |
| 130 | 0x34, 0xee, 0x9c, 0x3e, 0x20, 0x55, 0x6b, 0xd7, 0xe1, 0x24, 0x5e, 0xf8, 0xf9, 0x40, 0x91, 0x9c, |
| 131 | 0x26, 0xe9, 0x84, 0xbc, 0x76, 0x3e, 0x82, 0xab, 0x5f, 0x81, 0x66, 0x53, 0x63, 0xb5, 0x1e, 0x34, |
| 132 | 0xb2, 0xf5, 0x00, 0x57, 0x33, 0xfb, 0x3a, 0xd5, 0x38, 0xc6, 0xad, 0x94, 0x05, 0x09, 0x98, 0xcd, |
| 133 | 0x21, 0x1a, 0xb7, 0xa6, 0xdd, 0x12, 0x6e, 0xbd, 0xcd, 0x87, 0xf6, 0x56, 0x33, 0xce, 0x70, 0xd7, |
| 134 | 0x0f, 0x84, 0xc3, 0x82, 0x73, 0xb8, 0x60, 0x49, 0xa0, 0xcd, 0xa3, 0x21, 0x1a, 0xb7, 0xa7, 0x77, |
| 135 | 0x4b, 0xb8, 0xfb, 0x7c, 0x57, 0xb4, 0xf7, 0x59, 0xe3, 0x11, 0xee, 0x78, 0xa0, 0x5c, 0xc9, 0x63, |
| 136 | 0xcd, 0x45, 0x64, 0xde, 0x18, 0xa2, 0xf1, 0xad, 0xe9, 0x9d, 0xd2, 0xda, 0x39, 0xaf, 0x24, 0x7b, |
| 137 | 0x97, 0x33, 0x7c, 0xdc, 0x8b, 0x25, 0x40, 0x58, 0xac, 0x66, 0x22, 0xe0, 0xee, 0xd2, 0x6c, 0x15, |
| 138 | 0xde, 0xb3, 0x6c, 0x3d, 0xe8, 0xcd, 0x0e, 0xb4, 0x1f, 0xeb, 0xc1, 0x71, 0xfd, 0x0b, 0x20, 0x87, |
| 139 | 0x98, 0x5d, 0x0b, 0x1d, 0x7d, 0x41, 0xf8, 0xf6, 0x5e, 0xeb, 0x2f, 0xb9, 0xd2, 0xc6, 0xfb, 0x5a, |
| 140 | 0xf3, 0xe4, 0xff, 0x9a, 0xcf, 0xdd, 0x45, 0xef, 0xbd, 0xf2, 0x8a, 0xed, 0x5f, 0x93, 0x9d, 0xd6, |
| 141 | 0xdf, 0xe0, 0x16, 0xd7, 0x10, 0x2a, 0xb3, 0x39, 0x3c, 0x1a, 0x77, 0x4e, 0xef, 0x93, 0xbf, 0xfe, |
| 142 | 0x0a, 0x64, 0xef, 0x78, 0xd5, 0x3b, 0x7a, 0x91, 0x47, 0xd8, 0xdb, 0xa4, 0xe9, 0xc9, 0x6a, 0x63, |
| 143 | 0x35, 0x2e, 0x37, 0x56, 0xe3, 0x6a, 0x63, 0x35, 0x3e, 0x65, 0x16, 0x5a, 0x65, 0x16, 0xba, 0xcc, |
| 144 | 0x2c, 0x74, 0x95, 0x59, 0xe8, 0x6b, 0x66, 0xa1, 0xcf, 0xdf, 0xac, 0xc6, 0xbb, 0x9b, 0x65, 0xe4, |
| 145 | 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1a, 0xc2, 0xc0, 0x1f, 0xc5, 0x03, 0x00, 0x00, |
| 146 | } |
| 147 | |
| 148 | func (m *PriorityClass) Marshal() (dAtA []byte, err error) { |
| 149 | size := m.Size() |
| 150 | dAtA = make([]byte, size) |
| 151 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 152 | if err != nil { |
| 153 | return nil, err |
| 154 | } |
| 155 | return dAtA[:n], nil |
| 156 | } |
| 157 | |
| 158 | func (m *PriorityClass) MarshalTo(dAtA []byte) (int, error) { |
| 159 | size := m.Size() |
| 160 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 161 | } |
| 162 | |
| 163 | func (m *PriorityClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 164 | i := len(dAtA) |
| 165 | _ = i |
| 166 | var l int |
| 167 | _ = l |
| 168 | if m.PreemptionPolicy != nil { |
| 169 | i -= len(*m.PreemptionPolicy) |
| 170 | copy(dAtA[i:], *m.PreemptionPolicy) |
| 171 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PreemptionPolicy))) |
| 172 | i-- |
| 173 | dAtA[i] = 0x2a |
| 174 | } |
| 175 | i -= len(m.Description) |
| 176 | copy(dAtA[i:], m.Description) |
| 177 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Description))) |
| 178 | i-- |
| 179 | dAtA[i] = 0x22 |
| 180 | i-- |
| 181 | if m.GlobalDefault { |
| 182 | dAtA[i] = 1 |
| 183 | } else { |
| 184 | dAtA[i] = 0 |
| 185 | } |
| 186 | i-- |
| 187 | dAtA[i] = 0x18 |
| 188 | i = encodeVarintGenerated(dAtA, i, uint64(m.Value)) |
| 189 | i-- |
| 190 | dAtA[i] = 0x10 |
| 191 | { |
| 192 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 193 | if err != nil { |
| 194 | return 0, err |
| 195 | } |
| 196 | i -= size |
| 197 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 198 | } |
| 199 | i-- |
| 200 | dAtA[i] = 0xa |
| 201 | return len(dAtA) - i, nil |
| 202 | } |
| 203 | |
| 204 | func (m *PriorityClassList) Marshal() (dAtA []byte, err error) { |
| 205 | size := m.Size() |
| 206 | dAtA = make([]byte, size) |
| 207 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 208 | if err != nil { |
| 209 | return nil, err |
| 210 | } |
| 211 | return dAtA[:n], nil |
| 212 | } |
| 213 | |
| 214 | func (m *PriorityClassList) MarshalTo(dAtA []byte) (int, error) { |
| 215 | size := m.Size() |
| 216 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 217 | } |
| 218 | |
| 219 | func (m *PriorityClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 220 | i := len(dAtA) |
| 221 | _ = i |
| 222 | var l int |
| 223 | _ = l |
| 224 | if len(m.Items) > 0 { |
| 225 | for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 226 | { |
| 227 | size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 228 | if err != nil { |
| 229 | return 0, err |
| 230 | } |
| 231 | i -= size |
| 232 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 233 | } |
| 234 | i-- |
| 235 | dAtA[i] = 0x12 |
| 236 | } |
| 237 | } |
| 238 | { |
| 239 | size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 240 | if err != nil { |
| 241 | return 0, err |
| 242 | } |
| 243 | i -= size |
| 244 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 245 | } |
| 246 | i-- |
| 247 | dAtA[i] = 0xa |
| 248 | return len(dAtA) - i, nil |
| 249 | } |
| 250 | |
| 251 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 252 | offset -= sovGenerated(v) |
| 253 | base := offset |
| 254 | for v >= 1<<7 { |
| 255 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 256 | v >>= 7 |
| 257 | offset++ |
| 258 | } |
| 259 | dAtA[offset] = uint8(v) |
| 260 | return base |
| 261 | } |
| 262 | func (m *PriorityClass) Size() (n int) { |
| 263 | if m == nil { |
| 264 | return 0 |
| 265 | } |
| 266 | var l int |
| 267 | _ = l |
| 268 | l = m.ObjectMeta.Size() |
| 269 | n += 1 + l + sovGenerated(uint64(l)) |
| 270 | n += 1 + sovGenerated(uint64(m.Value)) |
| 271 | n += 2 |
| 272 | l = len(m.Description) |
| 273 | n += 1 + l + sovGenerated(uint64(l)) |
| 274 | if m.PreemptionPolicy != nil { |
| 275 | l = len(*m.PreemptionPolicy) |
| 276 | n += 1 + l + sovGenerated(uint64(l)) |
| 277 | } |
| 278 | return n |
| 279 | } |
| 280 | |
| 281 | func (m *PriorityClassList) Size() (n int) { |
| 282 | if m == nil { |
| 283 | return 0 |
| 284 | } |
| 285 | var l int |
| 286 | _ = l |
| 287 | l = m.ListMeta.Size() |
| 288 | n += 1 + l + sovGenerated(uint64(l)) |
| 289 | if len(m.Items) > 0 { |
| 290 | for _, e := range m.Items { |
| 291 | l = e.Size() |
| 292 | n += 1 + l + sovGenerated(uint64(l)) |
| 293 | } |
| 294 | } |
| 295 | return n |
| 296 | } |
| 297 | |
| 298 | func sovGenerated(x uint64) (n int) { |
| 299 | return (math_bits.Len64(x|1) + 6) / 7 |
| 300 | } |
| 301 | func sozGenerated(x uint64) (n int) { |
| 302 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 303 | } |
| 304 | func (this *PriorityClass) String() string { |
| 305 | if this == nil { |
| 306 | return "nil" |
| 307 | } |
| 308 | s := strings.Join([]string{`&PriorityClass{`, |
| 309 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 310 | `Value:` + fmt.Sprintf("%v", this.Value) + `,`, |
| 311 | `GlobalDefault:` + fmt.Sprintf("%v", this.GlobalDefault) + `,`, |
| 312 | `Description:` + fmt.Sprintf("%v", this.Description) + `,`, |
| 313 | `PreemptionPolicy:` + valueToStringGenerated(this.PreemptionPolicy) + `,`, |
| 314 | `}`, |
| 315 | }, "") |
| 316 | return s |
| 317 | } |
| 318 | func (this *PriorityClassList) String() string { |
| 319 | if this == nil { |
| 320 | return "nil" |
| 321 | } |
| 322 | repeatedStringForItems := "[]PriorityClass{" |
| 323 | for _, f := range this.Items { |
| 324 | repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PriorityClass", "PriorityClass", 1), `&`, ``, 1) + "," |
| 325 | } |
| 326 | repeatedStringForItems += "}" |
| 327 | s := strings.Join([]string{`&PriorityClassList{`, |
| 328 | `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 329 | `Items:` + repeatedStringForItems + `,`, |
| 330 | `}`, |
| 331 | }, "") |
| 332 | return s |
| 333 | } |
| 334 | func valueToStringGenerated(v interface{}) string { |
| 335 | rv := reflect.ValueOf(v) |
| 336 | if rv.IsNil() { |
| 337 | return "nil" |
| 338 | } |
| 339 | pv := reflect.Indirect(rv).Interface() |
| 340 | return fmt.Sprintf("*%v", pv) |
| 341 | } |
| 342 | func (m *PriorityClass) Unmarshal(dAtA []byte) error { |
| 343 | l := len(dAtA) |
| 344 | iNdEx := 0 |
| 345 | for iNdEx < l { |
| 346 | preIndex := iNdEx |
| 347 | var wire uint64 |
| 348 | for shift := uint(0); ; shift += 7 { |
| 349 | if shift >= 64 { |
| 350 | return ErrIntOverflowGenerated |
| 351 | } |
| 352 | if iNdEx >= l { |
| 353 | return io.ErrUnexpectedEOF |
| 354 | } |
| 355 | b := dAtA[iNdEx] |
| 356 | iNdEx++ |
| 357 | wire |= uint64(b&0x7F) << shift |
| 358 | if b < 0x80 { |
| 359 | break |
| 360 | } |
| 361 | } |
| 362 | fieldNum := int32(wire >> 3) |
| 363 | wireType := int(wire & 0x7) |
| 364 | if wireType == 4 { |
| 365 | return fmt.Errorf("proto: PriorityClass: wiretype end group for non-group") |
| 366 | } |
| 367 | if fieldNum <= 0 { |
| 368 | return fmt.Errorf("proto: PriorityClass: illegal tag %d (wire type %d)", fieldNum, wire) |
| 369 | } |
| 370 | switch fieldNum { |
| 371 | case 1: |
| 372 | if wireType != 2 { |
| 373 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 374 | } |
| 375 | var msglen int |
| 376 | for shift := uint(0); ; shift += 7 { |
| 377 | if shift >= 64 { |
| 378 | return ErrIntOverflowGenerated |
| 379 | } |
| 380 | if iNdEx >= l { |
| 381 | return io.ErrUnexpectedEOF |
| 382 | } |
| 383 | b := dAtA[iNdEx] |
| 384 | iNdEx++ |
| 385 | msglen |= int(b&0x7F) << shift |
| 386 | if b < 0x80 { |
| 387 | break |
| 388 | } |
| 389 | } |
| 390 | if msglen < 0 { |
| 391 | return ErrInvalidLengthGenerated |
| 392 | } |
| 393 | postIndex := iNdEx + msglen |
| 394 | if postIndex < 0 { |
| 395 | return ErrInvalidLengthGenerated |
| 396 | } |
| 397 | if postIndex > l { |
| 398 | return io.ErrUnexpectedEOF |
| 399 | } |
| 400 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 401 | return err |
| 402 | } |
| 403 | iNdEx = postIndex |
| 404 | case 2: |
| 405 | if wireType != 0 { |
| 406 | return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) |
| 407 | } |
| 408 | m.Value = 0 |
| 409 | for shift := uint(0); ; shift += 7 { |
| 410 | if shift >= 64 { |
| 411 | return ErrIntOverflowGenerated |
| 412 | } |
| 413 | if iNdEx >= l { |
| 414 | return io.ErrUnexpectedEOF |
| 415 | } |
| 416 | b := dAtA[iNdEx] |
| 417 | iNdEx++ |
| 418 | m.Value |= int32(b&0x7F) << shift |
| 419 | if b < 0x80 { |
| 420 | break |
| 421 | } |
| 422 | } |
| 423 | case 3: |
| 424 | if wireType != 0 { |
| 425 | return fmt.Errorf("proto: wrong wireType = %d for field GlobalDefault", wireType) |
| 426 | } |
| 427 | var v int |
| 428 | for shift := uint(0); ; shift += 7 { |
| 429 | if shift >= 64 { |
| 430 | return ErrIntOverflowGenerated |
| 431 | } |
| 432 | if iNdEx >= l { |
| 433 | return io.ErrUnexpectedEOF |
| 434 | } |
| 435 | b := dAtA[iNdEx] |
| 436 | iNdEx++ |
| 437 | v |= int(b&0x7F) << shift |
| 438 | if b < 0x80 { |
| 439 | break |
| 440 | } |
| 441 | } |
| 442 | m.GlobalDefault = bool(v != 0) |
| 443 | case 4: |
| 444 | if wireType != 2 { |
| 445 | return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) |
| 446 | } |
| 447 | var stringLen uint64 |
| 448 | for shift := uint(0); ; shift += 7 { |
| 449 | if shift >= 64 { |
| 450 | return ErrIntOverflowGenerated |
| 451 | } |
| 452 | if iNdEx >= l { |
| 453 | return io.ErrUnexpectedEOF |
| 454 | } |
| 455 | b := dAtA[iNdEx] |
| 456 | iNdEx++ |
| 457 | stringLen |= uint64(b&0x7F) << shift |
| 458 | if b < 0x80 { |
| 459 | break |
| 460 | } |
| 461 | } |
| 462 | intStringLen := int(stringLen) |
| 463 | if intStringLen < 0 { |
| 464 | return ErrInvalidLengthGenerated |
| 465 | } |
| 466 | postIndex := iNdEx + intStringLen |
| 467 | if postIndex < 0 { |
| 468 | return ErrInvalidLengthGenerated |
| 469 | } |
| 470 | if postIndex > l { |
| 471 | return io.ErrUnexpectedEOF |
| 472 | } |
| 473 | m.Description = string(dAtA[iNdEx:postIndex]) |
| 474 | iNdEx = postIndex |
| 475 | case 5: |
| 476 | if wireType != 2 { |
| 477 | return fmt.Errorf("proto: wrong wireType = %d for field PreemptionPolicy", wireType) |
| 478 | } |
| 479 | var stringLen uint64 |
| 480 | for shift := uint(0); ; shift += 7 { |
| 481 | if shift >= 64 { |
| 482 | return ErrIntOverflowGenerated |
| 483 | } |
| 484 | if iNdEx >= l { |
| 485 | return io.ErrUnexpectedEOF |
| 486 | } |
| 487 | b := dAtA[iNdEx] |
| 488 | iNdEx++ |
| 489 | stringLen |= uint64(b&0x7F) << shift |
| 490 | if b < 0x80 { |
| 491 | break |
| 492 | } |
| 493 | } |
| 494 | intStringLen := int(stringLen) |
| 495 | if intStringLen < 0 { |
| 496 | return ErrInvalidLengthGenerated |
| 497 | } |
| 498 | postIndex := iNdEx + intStringLen |
| 499 | if postIndex < 0 { |
| 500 | return ErrInvalidLengthGenerated |
| 501 | } |
| 502 | if postIndex > l { |
| 503 | return io.ErrUnexpectedEOF |
| 504 | } |
| 505 | s := k8s_io_api_core_v1.PreemptionPolicy(dAtA[iNdEx:postIndex]) |
| 506 | m.PreemptionPolicy = &s |
| 507 | iNdEx = postIndex |
| 508 | default: |
| 509 | iNdEx = preIndex |
| 510 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 511 | if err != nil { |
| 512 | return err |
| 513 | } |
| 514 | if skippy < 0 { |
| 515 | return ErrInvalidLengthGenerated |
| 516 | } |
| 517 | if (iNdEx + skippy) < 0 { |
| 518 | return ErrInvalidLengthGenerated |
| 519 | } |
| 520 | if (iNdEx + skippy) > l { |
| 521 | return io.ErrUnexpectedEOF |
| 522 | } |
| 523 | iNdEx += skippy |
| 524 | } |
| 525 | } |
| 526 | |
| 527 | if iNdEx > l { |
| 528 | return io.ErrUnexpectedEOF |
| 529 | } |
| 530 | return nil |
| 531 | } |
| 532 | func (m *PriorityClassList) Unmarshal(dAtA []byte) error { |
| 533 | l := len(dAtA) |
| 534 | iNdEx := 0 |
| 535 | for iNdEx < l { |
| 536 | preIndex := iNdEx |
| 537 | var wire uint64 |
| 538 | for shift := uint(0); ; shift += 7 { |
| 539 | if shift >= 64 { |
| 540 | return ErrIntOverflowGenerated |
| 541 | } |
| 542 | if iNdEx >= l { |
| 543 | return io.ErrUnexpectedEOF |
| 544 | } |
| 545 | b := dAtA[iNdEx] |
| 546 | iNdEx++ |
| 547 | wire |= uint64(b&0x7F) << shift |
| 548 | if b < 0x80 { |
| 549 | break |
| 550 | } |
| 551 | } |
| 552 | fieldNum := int32(wire >> 3) |
| 553 | wireType := int(wire & 0x7) |
| 554 | if wireType == 4 { |
| 555 | return fmt.Errorf("proto: PriorityClassList: wiretype end group for non-group") |
| 556 | } |
| 557 | if fieldNum <= 0 { |
| 558 | return fmt.Errorf("proto: PriorityClassList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 559 | } |
| 560 | switch fieldNum { |
| 561 | case 1: |
| 562 | if wireType != 2 { |
| 563 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 564 | } |
| 565 | var msglen int |
| 566 | for shift := uint(0); ; shift += 7 { |
| 567 | if shift >= 64 { |
| 568 | return ErrIntOverflowGenerated |
| 569 | } |
| 570 | if iNdEx >= l { |
| 571 | return io.ErrUnexpectedEOF |
| 572 | } |
| 573 | b := dAtA[iNdEx] |
| 574 | iNdEx++ |
| 575 | msglen |= int(b&0x7F) << shift |
| 576 | if b < 0x80 { |
| 577 | break |
| 578 | } |
| 579 | } |
| 580 | if msglen < 0 { |
| 581 | return ErrInvalidLengthGenerated |
| 582 | } |
| 583 | postIndex := iNdEx + msglen |
| 584 | if postIndex < 0 { |
| 585 | return ErrInvalidLengthGenerated |
| 586 | } |
| 587 | if postIndex > l { |
| 588 | return io.ErrUnexpectedEOF |
| 589 | } |
| 590 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 591 | return err |
| 592 | } |
| 593 | iNdEx = postIndex |
| 594 | case 2: |
| 595 | if wireType != 2 { |
| 596 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 597 | } |
| 598 | var msglen int |
| 599 | for shift := uint(0); ; shift += 7 { |
| 600 | if shift >= 64 { |
| 601 | return ErrIntOverflowGenerated |
| 602 | } |
| 603 | if iNdEx >= l { |
| 604 | return io.ErrUnexpectedEOF |
| 605 | } |
| 606 | b := dAtA[iNdEx] |
| 607 | iNdEx++ |
| 608 | msglen |= int(b&0x7F) << shift |
| 609 | if b < 0x80 { |
| 610 | break |
| 611 | } |
| 612 | } |
| 613 | if msglen < 0 { |
| 614 | return ErrInvalidLengthGenerated |
| 615 | } |
| 616 | postIndex := iNdEx + msglen |
| 617 | if postIndex < 0 { |
| 618 | return ErrInvalidLengthGenerated |
| 619 | } |
| 620 | if postIndex > l { |
| 621 | return io.ErrUnexpectedEOF |
| 622 | } |
| 623 | m.Items = append(m.Items, PriorityClass{}) |
| 624 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 625 | return err |
| 626 | } |
| 627 | iNdEx = postIndex |
| 628 | default: |
| 629 | iNdEx = preIndex |
| 630 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 631 | if err != nil { |
| 632 | return err |
| 633 | } |
| 634 | if skippy < 0 { |
| 635 | return ErrInvalidLengthGenerated |
| 636 | } |
| 637 | if (iNdEx + skippy) < 0 { |
| 638 | return ErrInvalidLengthGenerated |
| 639 | } |
| 640 | if (iNdEx + skippy) > l { |
| 641 | return io.ErrUnexpectedEOF |
| 642 | } |
| 643 | iNdEx += skippy |
| 644 | } |
| 645 | } |
| 646 | |
| 647 | if iNdEx > l { |
| 648 | return io.ErrUnexpectedEOF |
| 649 | } |
| 650 | return nil |
| 651 | } |
| 652 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 653 | l := len(dAtA) |
| 654 | iNdEx := 0 |
| 655 | depth := 0 |
| 656 | for iNdEx < l { |
| 657 | var wire uint64 |
| 658 | for shift := uint(0); ; shift += 7 { |
| 659 | if shift >= 64 { |
| 660 | return 0, ErrIntOverflowGenerated |
| 661 | } |
| 662 | if iNdEx >= l { |
| 663 | return 0, io.ErrUnexpectedEOF |
| 664 | } |
| 665 | b := dAtA[iNdEx] |
| 666 | iNdEx++ |
| 667 | wire |= (uint64(b) & 0x7F) << shift |
| 668 | if b < 0x80 { |
| 669 | break |
| 670 | } |
| 671 | } |
| 672 | wireType := int(wire & 0x7) |
| 673 | switch wireType { |
| 674 | case 0: |
| 675 | for shift := uint(0); ; shift += 7 { |
| 676 | if shift >= 64 { |
| 677 | return 0, ErrIntOverflowGenerated |
| 678 | } |
| 679 | if iNdEx >= l { |
| 680 | return 0, io.ErrUnexpectedEOF |
| 681 | } |
| 682 | iNdEx++ |
| 683 | if dAtA[iNdEx-1] < 0x80 { |
| 684 | break |
| 685 | } |
| 686 | } |
| 687 | case 1: |
| 688 | iNdEx += 8 |
| 689 | case 2: |
| 690 | var length int |
| 691 | for shift := uint(0); ; shift += 7 { |
| 692 | if shift >= 64 { |
| 693 | return 0, ErrIntOverflowGenerated |
| 694 | } |
| 695 | if iNdEx >= l { |
| 696 | return 0, io.ErrUnexpectedEOF |
| 697 | } |
| 698 | b := dAtA[iNdEx] |
| 699 | iNdEx++ |
| 700 | length |= (int(b) & 0x7F) << shift |
| 701 | if b < 0x80 { |
| 702 | break |
| 703 | } |
| 704 | } |
| 705 | if length < 0 { |
| 706 | return 0, ErrInvalidLengthGenerated |
| 707 | } |
| 708 | iNdEx += length |
| 709 | case 3: |
| 710 | depth++ |
| 711 | case 4: |
| 712 | if depth == 0 { |
| 713 | return 0, ErrUnexpectedEndOfGroupGenerated |
| 714 | } |
| 715 | depth-- |
| 716 | case 5: |
| 717 | iNdEx += 4 |
| 718 | default: |
| 719 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 720 | } |
| 721 | if iNdEx < 0 { |
| 722 | return 0, ErrInvalidLengthGenerated |
| 723 | } |
| 724 | if depth == 0 { |
| 725 | return iNdEx, nil |
| 726 | } |
| 727 | } |
| 728 | return 0, io.ErrUnexpectedEOF |
| 729 | } |
| 730 | |
| 731 | var ( |
| 732 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 733 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 734 | ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") |
| 735 | ) |