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