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