Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [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. |
| 18 | // source: k8s.io/kubernetes/vendor/k8s.io/api/settings/v1alpha1/generated.proto |
| 19 | // DO NOT EDIT! |
| 20 | |
| 21 | /* |
| 22 | Package v1alpha1 is a generated protocol buffer package. |
| 23 | |
| 24 | It is generated from these files: |
| 25 | k8s.io/kubernetes/vendor/k8s.io/api/settings/v1alpha1/generated.proto |
| 26 | |
| 27 | It has these top-level messages: |
| 28 | PodPreset |
| 29 | PodPresetList |
| 30 | PodPresetSpec |
| 31 | */ |
| 32 | package v1alpha1 |
| 33 | |
| 34 | import proto "github.com/gogo/protobuf/proto" |
| 35 | import fmt "fmt" |
| 36 | import math "math" |
| 37 | |
| 38 | import k8s_io_api_core_v1 "k8s.io/api/core/v1" |
| 39 | |
| 40 | import strings "strings" |
| 41 | import reflect "reflect" |
| 42 | |
| 43 | import io "io" |
| 44 | |
| 45 | // Reference imports to suppress errors if they are not otherwise used. |
| 46 | var _ = proto.Marshal |
| 47 | var _ = fmt.Errorf |
| 48 | var _ = math.Inf |
| 49 | |
| 50 | // This is a compile-time assertion to ensure that this generated file |
| 51 | // is compatible with the proto package it is being compiled against. |
| 52 | // A compilation error at this line likely means your copy of the |
| 53 | // proto package needs to be updated. |
| 54 | const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package |
| 55 | |
| 56 | func (m *PodPreset) Reset() { *m = PodPreset{} } |
| 57 | func (*PodPreset) ProtoMessage() {} |
| 58 | func (*PodPreset) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } |
| 59 | |
| 60 | func (m *PodPresetList) Reset() { *m = PodPresetList{} } |
| 61 | func (*PodPresetList) ProtoMessage() {} |
| 62 | func (*PodPresetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } |
| 63 | |
| 64 | func (m *PodPresetSpec) Reset() { *m = PodPresetSpec{} } |
| 65 | func (*PodPresetSpec) ProtoMessage() {} |
| 66 | func (*PodPresetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } |
| 67 | |
| 68 | func init() { |
| 69 | proto.RegisterType((*PodPreset)(nil), "k8s.io.api.settings.v1alpha1.PodPreset") |
| 70 | proto.RegisterType((*PodPresetList)(nil), "k8s.io.api.settings.v1alpha1.PodPresetList") |
| 71 | proto.RegisterType((*PodPresetSpec)(nil), "k8s.io.api.settings.v1alpha1.PodPresetSpec") |
| 72 | } |
| 73 | func (m *PodPreset) Marshal() (dAtA []byte, err error) { |
| 74 | size := m.Size() |
| 75 | dAtA = make([]byte, size) |
| 76 | n, err := m.MarshalTo(dAtA) |
| 77 | if err != nil { |
| 78 | return nil, err |
| 79 | } |
| 80 | return dAtA[:n], nil |
| 81 | } |
| 82 | |
| 83 | func (m *PodPreset) MarshalTo(dAtA []byte) (int, error) { |
| 84 | var i int |
| 85 | _ = i |
| 86 | var l int |
| 87 | _ = l |
| 88 | dAtA[i] = 0xa |
| 89 | i++ |
| 90 | i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) |
| 91 | n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) |
| 92 | if err != nil { |
| 93 | return 0, err |
| 94 | } |
| 95 | i += n1 |
| 96 | dAtA[i] = 0x12 |
| 97 | i++ |
| 98 | i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) |
| 99 | n2, err := m.Spec.MarshalTo(dAtA[i:]) |
| 100 | if err != nil { |
| 101 | return 0, err |
| 102 | } |
| 103 | i += n2 |
| 104 | return i, nil |
| 105 | } |
| 106 | |
| 107 | func (m *PodPresetList) Marshal() (dAtA []byte, err error) { |
| 108 | size := m.Size() |
| 109 | dAtA = make([]byte, size) |
| 110 | n, err := m.MarshalTo(dAtA) |
| 111 | if err != nil { |
| 112 | return nil, err |
| 113 | } |
| 114 | return dAtA[:n], nil |
| 115 | } |
| 116 | |
| 117 | func (m *PodPresetList) MarshalTo(dAtA []byte) (int, error) { |
| 118 | var i int |
| 119 | _ = i |
| 120 | var l int |
| 121 | _ = l |
| 122 | dAtA[i] = 0xa |
| 123 | i++ |
| 124 | i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) |
| 125 | n3, err := m.ListMeta.MarshalTo(dAtA[i:]) |
| 126 | if err != nil { |
| 127 | return 0, err |
| 128 | } |
| 129 | i += n3 |
| 130 | if len(m.Items) > 0 { |
| 131 | for _, msg := range m.Items { |
| 132 | dAtA[i] = 0x12 |
| 133 | i++ |
| 134 | i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| 135 | n, err := msg.MarshalTo(dAtA[i:]) |
| 136 | if err != nil { |
| 137 | return 0, err |
| 138 | } |
| 139 | i += n |
| 140 | } |
| 141 | } |
| 142 | return i, nil |
| 143 | } |
| 144 | |
| 145 | func (m *PodPresetSpec) Marshal() (dAtA []byte, err error) { |
| 146 | size := m.Size() |
| 147 | dAtA = make([]byte, size) |
| 148 | n, err := m.MarshalTo(dAtA) |
| 149 | if err != nil { |
| 150 | return nil, err |
| 151 | } |
| 152 | return dAtA[:n], nil |
| 153 | } |
| 154 | |
| 155 | func (m *PodPresetSpec) MarshalTo(dAtA []byte) (int, error) { |
| 156 | var i int |
| 157 | _ = i |
| 158 | var l int |
| 159 | _ = l |
| 160 | dAtA[i] = 0xa |
| 161 | i++ |
| 162 | i = encodeVarintGenerated(dAtA, i, uint64(m.Selector.Size())) |
| 163 | n4, err := m.Selector.MarshalTo(dAtA[i:]) |
| 164 | if err != nil { |
| 165 | return 0, err |
| 166 | } |
| 167 | i += n4 |
| 168 | if len(m.Env) > 0 { |
| 169 | for _, msg := range m.Env { |
| 170 | dAtA[i] = 0x12 |
| 171 | i++ |
| 172 | i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| 173 | n, err := msg.MarshalTo(dAtA[i:]) |
| 174 | if err != nil { |
| 175 | return 0, err |
| 176 | } |
| 177 | i += n |
| 178 | } |
| 179 | } |
| 180 | if len(m.EnvFrom) > 0 { |
| 181 | for _, msg := range m.EnvFrom { |
| 182 | dAtA[i] = 0x1a |
| 183 | i++ |
| 184 | i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| 185 | n, err := msg.MarshalTo(dAtA[i:]) |
| 186 | if err != nil { |
| 187 | return 0, err |
| 188 | } |
| 189 | i += n |
| 190 | } |
| 191 | } |
| 192 | if len(m.Volumes) > 0 { |
| 193 | for _, msg := range m.Volumes { |
| 194 | dAtA[i] = 0x22 |
| 195 | i++ |
| 196 | i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| 197 | n, err := msg.MarshalTo(dAtA[i:]) |
| 198 | if err != nil { |
| 199 | return 0, err |
| 200 | } |
| 201 | i += n |
| 202 | } |
| 203 | } |
| 204 | if len(m.VolumeMounts) > 0 { |
| 205 | for _, msg := range m.VolumeMounts { |
| 206 | dAtA[i] = 0x2a |
| 207 | i++ |
| 208 | i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| 209 | n, err := msg.MarshalTo(dAtA[i:]) |
| 210 | if err != nil { |
| 211 | return 0, err |
| 212 | } |
| 213 | i += n |
| 214 | } |
| 215 | } |
| 216 | return i, nil |
| 217 | } |
| 218 | |
| 219 | func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { |
| 220 | dAtA[offset] = uint8(v) |
| 221 | dAtA[offset+1] = uint8(v >> 8) |
| 222 | dAtA[offset+2] = uint8(v >> 16) |
| 223 | dAtA[offset+3] = uint8(v >> 24) |
| 224 | dAtA[offset+4] = uint8(v >> 32) |
| 225 | dAtA[offset+5] = uint8(v >> 40) |
| 226 | dAtA[offset+6] = uint8(v >> 48) |
| 227 | dAtA[offset+7] = uint8(v >> 56) |
| 228 | return offset + 8 |
| 229 | } |
| 230 | func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { |
| 231 | dAtA[offset] = uint8(v) |
| 232 | dAtA[offset+1] = uint8(v >> 8) |
| 233 | dAtA[offset+2] = uint8(v >> 16) |
| 234 | dAtA[offset+3] = uint8(v >> 24) |
| 235 | return offset + 4 |
| 236 | } |
| 237 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 238 | for v >= 1<<7 { |
| 239 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 240 | v >>= 7 |
| 241 | offset++ |
| 242 | } |
| 243 | dAtA[offset] = uint8(v) |
| 244 | return offset + 1 |
| 245 | } |
| 246 | func (m *PodPreset) Size() (n int) { |
| 247 | var l int |
| 248 | _ = l |
| 249 | l = m.ObjectMeta.Size() |
| 250 | n += 1 + l + sovGenerated(uint64(l)) |
| 251 | l = m.Spec.Size() |
| 252 | n += 1 + l + sovGenerated(uint64(l)) |
| 253 | return n |
| 254 | } |
| 255 | |
| 256 | func (m *PodPresetList) Size() (n int) { |
| 257 | var l int |
| 258 | _ = l |
| 259 | l = m.ListMeta.Size() |
| 260 | n += 1 + l + sovGenerated(uint64(l)) |
| 261 | if len(m.Items) > 0 { |
| 262 | for _, e := range m.Items { |
| 263 | l = e.Size() |
| 264 | n += 1 + l + sovGenerated(uint64(l)) |
| 265 | } |
| 266 | } |
| 267 | return n |
| 268 | } |
| 269 | |
| 270 | func (m *PodPresetSpec) Size() (n int) { |
| 271 | var l int |
| 272 | _ = l |
| 273 | l = m.Selector.Size() |
| 274 | n += 1 + l + sovGenerated(uint64(l)) |
| 275 | if len(m.Env) > 0 { |
| 276 | for _, e := range m.Env { |
| 277 | l = e.Size() |
| 278 | n += 1 + l + sovGenerated(uint64(l)) |
| 279 | } |
| 280 | } |
| 281 | if len(m.EnvFrom) > 0 { |
| 282 | for _, e := range m.EnvFrom { |
| 283 | l = e.Size() |
| 284 | n += 1 + l + sovGenerated(uint64(l)) |
| 285 | } |
| 286 | } |
| 287 | if len(m.Volumes) > 0 { |
| 288 | for _, e := range m.Volumes { |
| 289 | l = e.Size() |
| 290 | n += 1 + l + sovGenerated(uint64(l)) |
| 291 | } |
| 292 | } |
| 293 | if len(m.VolumeMounts) > 0 { |
| 294 | for _, e := range m.VolumeMounts { |
| 295 | l = e.Size() |
| 296 | n += 1 + l + sovGenerated(uint64(l)) |
| 297 | } |
| 298 | } |
| 299 | return n |
| 300 | } |
| 301 | |
| 302 | func sovGenerated(x uint64) (n int) { |
| 303 | for { |
| 304 | n++ |
| 305 | x >>= 7 |
| 306 | if x == 0 { |
| 307 | break |
| 308 | } |
| 309 | } |
| 310 | return n |
| 311 | } |
| 312 | func sozGenerated(x uint64) (n int) { |
| 313 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 314 | } |
| 315 | func (this *PodPreset) String() string { |
| 316 | if this == nil { |
| 317 | return "nil" |
| 318 | } |
| 319 | s := strings.Join([]string{`&PodPreset{`, |
| 320 | `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 321 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodPresetSpec", "PodPresetSpec", 1), `&`, ``, 1) + `,`, |
| 322 | `}`, |
| 323 | }, "") |
| 324 | return s |
| 325 | } |
| 326 | func (this *PodPresetList) String() string { |
| 327 | if this == nil { |
| 328 | return "nil" |
| 329 | } |
| 330 | s := strings.Join([]string{`&PodPresetList{`, |
| 331 | `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 332 | `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PodPreset", "PodPreset", 1), `&`, ``, 1) + `,`, |
| 333 | `}`, |
| 334 | }, "") |
| 335 | return s |
| 336 | } |
| 337 | func (this *PodPresetSpec) String() string { |
| 338 | if this == nil { |
| 339 | return "nil" |
| 340 | } |
| 341 | s := strings.Join([]string{`&PodPresetSpec{`, |
| 342 | `Selector:` + strings.Replace(strings.Replace(this.Selector.String(), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1), `&`, ``, 1) + `,`, |
| 343 | `Env:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Env), "EnvVar", "k8s_io_api_core_v1.EnvVar", 1), `&`, ``, 1) + `,`, |
| 344 | `EnvFrom:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.EnvFrom), "EnvFromSource", "k8s_io_api_core_v1.EnvFromSource", 1), `&`, ``, 1) + `,`, |
| 345 | `Volumes:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Volumes), "Volume", "k8s_io_api_core_v1.Volume", 1), `&`, ``, 1) + `,`, |
| 346 | `VolumeMounts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VolumeMounts), "VolumeMount", "k8s_io_api_core_v1.VolumeMount", 1), `&`, ``, 1) + `,`, |
| 347 | `}`, |
| 348 | }, "") |
| 349 | return s |
| 350 | } |
| 351 | func valueToStringGenerated(v interface{}) string { |
| 352 | rv := reflect.ValueOf(v) |
| 353 | if rv.IsNil() { |
| 354 | return "nil" |
| 355 | } |
| 356 | pv := reflect.Indirect(rv).Interface() |
| 357 | return fmt.Sprintf("*%v", pv) |
| 358 | } |
| 359 | func (m *PodPreset) Unmarshal(dAtA []byte) error { |
| 360 | l := len(dAtA) |
| 361 | iNdEx := 0 |
| 362 | for iNdEx < l { |
| 363 | preIndex := iNdEx |
| 364 | var wire uint64 |
| 365 | for shift := uint(0); ; shift += 7 { |
| 366 | if shift >= 64 { |
| 367 | return ErrIntOverflowGenerated |
| 368 | } |
| 369 | if iNdEx >= l { |
| 370 | return io.ErrUnexpectedEOF |
| 371 | } |
| 372 | b := dAtA[iNdEx] |
| 373 | iNdEx++ |
| 374 | wire |= (uint64(b) & 0x7F) << shift |
| 375 | if b < 0x80 { |
| 376 | break |
| 377 | } |
| 378 | } |
| 379 | fieldNum := int32(wire >> 3) |
| 380 | wireType := int(wire & 0x7) |
| 381 | if wireType == 4 { |
| 382 | return fmt.Errorf("proto: PodPreset: wiretype end group for non-group") |
| 383 | } |
| 384 | if fieldNum <= 0 { |
| 385 | return fmt.Errorf("proto: PodPreset: illegal tag %d (wire type %d)", fieldNum, wire) |
| 386 | } |
| 387 | switch fieldNum { |
| 388 | case 1: |
| 389 | if wireType != 2 { |
| 390 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 391 | } |
| 392 | var msglen int |
| 393 | for shift := uint(0); ; shift += 7 { |
| 394 | if shift >= 64 { |
| 395 | return ErrIntOverflowGenerated |
| 396 | } |
| 397 | if iNdEx >= l { |
| 398 | return io.ErrUnexpectedEOF |
| 399 | } |
| 400 | b := dAtA[iNdEx] |
| 401 | iNdEx++ |
| 402 | msglen |= (int(b) & 0x7F) << shift |
| 403 | if b < 0x80 { |
| 404 | break |
| 405 | } |
| 406 | } |
| 407 | if msglen < 0 { |
| 408 | return ErrInvalidLengthGenerated |
| 409 | } |
| 410 | postIndex := iNdEx + msglen |
| 411 | if postIndex > l { |
| 412 | return io.ErrUnexpectedEOF |
| 413 | } |
| 414 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 415 | return err |
| 416 | } |
| 417 | iNdEx = postIndex |
| 418 | case 2: |
| 419 | if wireType != 2 { |
| 420 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 421 | } |
| 422 | var msglen int |
| 423 | for shift := uint(0); ; shift += 7 { |
| 424 | if shift >= 64 { |
| 425 | return ErrIntOverflowGenerated |
| 426 | } |
| 427 | if iNdEx >= l { |
| 428 | return io.ErrUnexpectedEOF |
| 429 | } |
| 430 | b := dAtA[iNdEx] |
| 431 | iNdEx++ |
| 432 | msglen |= (int(b) & 0x7F) << shift |
| 433 | if b < 0x80 { |
| 434 | break |
| 435 | } |
| 436 | } |
| 437 | if msglen < 0 { |
| 438 | return ErrInvalidLengthGenerated |
| 439 | } |
| 440 | postIndex := iNdEx + msglen |
| 441 | if postIndex > l { |
| 442 | return io.ErrUnexpectedEOF |
| 443 | } |
| 444 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 445 | return err |
| 446 | } |
| 447 | iNdEx = postIndex |
| 448 | default: |
| 449 | iNdEx = preIndex |
| 450 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 451 | if err != nil { |
| 452 | return err |
| 453 | } |
| 454 | if skippy < 0 { |
| 455 | return ErrInvalidLengthGenerated |
| 456 | } |
| 457 | if (iNdEx + skippy) > l { |
| 458 | return io.ErrUnexpectedEOF |
| 459 | } |
| 460 | iNdEx += skippy |
| 461 | } |
| 462 | } |
| 463 | |
| 464 | if iNdEx > l { |
| 465 | return io.ErrUnexpectedEOF |
| 466 | } |
| 467 | return nil |
| 468 | } |
| 469 | func (m *PodPresetList) Unmarshal(dAtA []byte) error { |
| 470 | l := len(dAtA) |
| 471 | iNdEx := 0 |
| 472 | for iNdEx < l { |
| 473 | preIndex := iNdEx |
| 474 | var wire uint64 |
| 475 | for shift := uint(0); ; shift += 7 { |
| 476 | if shift >= 64 { |
| 477 | return ErrIntOverflowGenerated |
| 478 | } |
| 479 | if iNdEx >= l { |
| 480 | return io.ErrUnexpectedEOF |
| 481 | } |
| 482 | b := dAtA[iNdEx] |
| 483 | iNdEx++ |
| 484 | wire |= (uint64(b) & 0x7F) << shift |
| 485 | if b < 0x80 { |
| 486 | break |
| 487 | } |
| 488 | } |
| 489 | fieldNum := int32(wire >> 3) |
| 490 | wireType := int(wire & 0x7) |
| 491 | if wireType == 4 { |
| 492 | return fmt.Errorf("proto: PodPresetList: wiretype end group for non-group") |
| 493 | } |
| 494 | if fieldNum <= 0 { |
| 495 | return fmt.Errorf("proto: PodPresetList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 496 | } |
| 497 | switch fieldNum { |
| 498 | case 1: |
| 499 | if wireType != 2 { |
| 500 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 501 | } |
| 502 | var msglen int |
| 503 | for shift := uint(0); ; shift += 7 { |
| 504 | if shift >= 64 { |
| 505 | return ErrIntOverflowGenerated |
| 506 | } |
| 507 | if iNdEx >= l { |
| 508 | return io.ErrUnexpectedEOF |
| 509 | } |
| 510 | b := dAtA[iNdEx] |
| 511 | iNdEx++ |
| 512 | msglen |= (int(b) & 0x7F) << shift |
| 513 | if b < 0x80 { |
| 514 | break |
| 515 | } |
| 516 | } |
| 517 | if msglen < 0 { |
| 518 | return ErrInvalidLengthGenerated |
| 519 | } |
| 520 | postIndex := iNdEx + msglen |
| 521 | if postIndex > l { |
| 522 | return io.ErrUnexpectedEOF |
| 523 | } |
| 524 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 525 | return err |
| 526 | } |
| 527 | iNdEx = postIndex |
| 528 | case 2: |
| 529 | if wireType != 2 { |
| 530 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 531 | } |
| 532 | var msglen int |
| 533 | for shift := uint(0); ; shift += 7 { |
| 534 | if shift >= 64 { |
| 535 | return ErrIntOverflowGenerated |
| 536 | } |
| 537 | if iNdEx >= l { |
| 538 | return io.ErrUnexpectedEOF |
| 539 | } |
| 540 | b := dAtA[iNdEx] |
| 541 | iNdEx++ |
| 542 | msglen |= (int(b) & 0x7F) << shift |
| 543 | if b < 0x80 { |
| 544 | break |
| 545 | } |
| 546 | } |
| 547 | if msglen < 0 { |
| 548 | return ErrInvalidLengthGenerated |
| 549 | } |
| 550 | postIndex := iNdEx + msglen |
| 551 | if postIndex > l { |
| 552 | return io.ErrUnexpectedEOF |
| 553 | } |
| 554 | m.Items = append(m.Items, PodPreset{}) |
| 555 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 556 | return err |
| 557 | } |
| 558 | iNdEx = postIndex |
| 559 | default: |
| 560 | iNdEx = preIndex |
| 561 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 562 | if err != nil { |
| 563 | return err |
| 564 | } |
| 565 | if skippy < 0 { |
| 566 | return ErrInvalidLengthGenerated |
| 567 | } |
| 568 | if (iNdEx + skippy) > l { |
| 569 | return io.ErrUnexpectedEOF |
| 570 | } |
| 571 | iNdEx += skippy |
| 572 | } |
| 573 | } |
| 574 | |
| 575 | if iNdEx > l { |
| 576 | return io.ErrUnexpectedEOF |
| 577 | } |
| 578 | return nil |
| 579 | } |
| 580 | func (m *PodPresetSpec) Unmarshal(dAtA []byte) error { |
| 581 | l := len(dAtA) |
| 582 | iNdEx := 0 |
| 583 | for iNdEx < l { |
| 584 | preIndex := iNdEx |
| 585 | var wire uint64 |
| 586 | for shift := uint(0); ; shift += 7 { |
| 587 | if shift >= 64 { |
| 588 | return ErrIntOverflowGenerated |
| 589 | } |
| 590 | if iNdEx >= l { |
| 591 | return io.ErrUnexpectedEOF |
| 592 | } |
| 593 | b := dAtA[iNdEx] |
| 594 | iNdEx++ |
| 595 | wire |= (uint64(b) & 0x7F) << shift |
| 596 | if b < 0x80 { |
| 597 | break |
| 598 | } |
| 599 | } |
| 600 | fieldNum := int32(wire >> 3) |
| 601 | wireType := int(wire & 0x7) |
| 602 | if wireType == 4 { |
| 603 | return fmt.Errorf("proto: PodPresetSpec: wiretype end group for non-group") |
| 604 | } |
| 605 | if fieldNum <= 0 { |
| 606 | return fmt.Errorf("proto: PodPresetSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 607 | } |
| 608 | switch fieldNum { |
| 609 | case 1: |
| 610 | if wireType != 2 { |
| 611 | return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) |
| 612 | } |
| 613 | var msglen int |
| 614 | for shift := uint(0); ; shift += 7 { |
| 615 | if shift >= 64 { |
| 616 | return ErrIntOverflowGenerated |
| 617 | } |
| 618 | if iNdEx >= l { |
| 619 | return io.ErrUnexpectedEOF |
| 620 | } |
| 621 | b := dAtA[iNdEx] |
| 622 | iNdEx++ |
| 623 | msglen |= (int(b) & 0x7F) << shift |
| 624 | if b < 0x80 { |
| 625 | break |
| 626 | } |
| 627 | } |
| 628 | if msglen < 0 { |
| 629 | return ErrInvalidLengthGenerated |
| 630 | } |
| 631 | postIndex := iNdEx + msglen |
| 632 | if postIndex > l { |
| 633 | return io.ErrUnexpectedEOF |
| 634 | } |
| 635 | if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 636 | return err |
| 637 | } |
| 638 | iNdEx = postIndex |
| 639 | case 2: |
| 640 | if wireType != 2 { |
| 641 | return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType) |
| 642 | } |
| 643 | var msglen int |
| 644 | for shift := uint(0); ; shift += 7 { |
| 645 | if shift >= 64 { |
| 646 | return ErrIntOverflowGenerated |
| 647 | } |
| 648 | if iNdEx >= l { |
| 649 | return io.ErrUnexpectedEOF |
| 650 | } |
| 651 | b := dAtA[iNdEx] |
| 652 | iNdEx++ |
| 653 | msglen |= (int(b) & 0x7F) << shift |
| 654 | if b < 0x80 { |
| 655 | break |
| 656 | } |
| 657 | } |
| 658 | if msglen < 0 { |
| 659 | return ErrInvalidLengthGenerated |
| 660 | } |
| 661 | postIndex := iNdEx + msglen |
| 662 | if postIndex > l { |
| 663 | return io.ErrUnexpectedEOF |
| 664 | } |
| 665 | m.Env = append(m.Env, k8s_io_api_core_v1.EnvVar{}) |
| 666 | if err := m.Env[len(m.Env)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 667 | return err |
| 668 | } |
| 669 | iNdEx = postIndex |
| 670 | case 3: |
| 671 | if wireType != 2 { |
| 672 | return fmt.Errorf("proto: wrong wireType = %d for field EnvFrom", wireType) |
| 673 | } |
| 674 | var msglen int |
| 675 | for shift := uint(0); ; shift += 7 { |
| 676 | if shift >= 64 { |
| 677 | return ErrIntOverflowGenerated |
| 678 | } |
| 679 | if iNdEx >= l { |
| 680 | return io.ErrUnexpectedEOF |
| 681 | } |
| 682 | b := dAtA[iNdEx] |
| 683 | iNdEx++ |
| 684 | msglen |= (int(b) & 0x7F) << shift |
| 685 | if b < 0x80 { |
| 686 | break |
| 687 | } |
| 688 | } |
| 689 | if msglen < 0 { |
| 690 | return ErrInvalidLengthGenerated |
| 691 | } |
| 692 | postIndex := iNdEx + msglen |
| 693 | if postIndex > l { |
| 694 | return io.ErrUnexpectedEOF |
| 695 | } |
| 696 | m.EnvFrom = append(m.EnvFrom, k8s_io_api_core_v1.EnvFromSource{}) |
| 697 | if err := m.EnvFrom[len(m.EnvFrom)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 698 | return err |
| 699 | } |
| 700 | iNdEx = postIndex |
| 701 | case 4: |
| 702 | if wireType != 2 { |
| 703 | return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) |
| 704 | } |
| 705 | var msglen int |
| 706 | for shift := uint(0); ; shift += 7 { |
| 707 | if shift >= 64 { |
| 708 | return ErrIntOverflowGenerated |
| 709 | } |
| 710 | if iNdEx >= l { |
| 711 | return io.ErrUnexpectedEOF |
| 712 | } |
| 713 | b := dAtA[iNdEx] |
| 714 | iNdEx++ |
| 715 | msglen |= (int(b) & 0x7F) << shift |
| 716 | if b < 0x80 { |
| 717 | break |
| 718 | } |
| 719 | } |
| 720 | if msglen < 0 { |
| 721 | return ErrInvalidLengthGenerated |
| 722 | } |
| 723 | postIndex := iNdEx + msglen |
| 724 | if postIndex > l { |
| 725 | return io.ErrUnexpectedEOF |
| 726 | } |
| 727 | m.Volumes = append(m.Volumes, k8s_io_api_core_v1.Volume{}) |
| 728 | if err := m.Volumes[len(m.Volumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 729 | return err |
| 730 | } |
| 731 | iNdEx = postIndex |
| 732 | case 5: |
| 733 | if wireType != 2 { |
| 734 | return fmt.Errorf("proto: wrong wireType = %d for field VolumeMounts", wireType) |
| 735 | } |
| 736 | var msglen int |
| 737 | for shift := uint(0); ; shift += 7 { |
| 738 | if shift >= 64 { |
| 739 | return ErrIntOverflowGenerated |
| 740 | } |
| 741 | if iNdEx >= l { |
| 742 | return io.ErrUnexpectedEOF |
| 743 | } |
| 744 | b := dAtA[iNdEx] |
| 745 | iNdEx++ |
| 746 | msglen |= (int(b) & 0x7F) << shift |
| 747 | if b < 0x80 { |
| 748 | break |
| 749 | } |
| 750 | } |
| 751 | if msglen < 0 { |
| 752 | return ErrInvalidLengthGenerated |
| 753 | } |
| 754 | postIndex := iNdEx + msglen |
| 755 | if postIndex > l { |
| 756 | return io.ErrUnexpectedEOF |
| 757 | } |
| 758 | m.VolumeMounts = append(m.VolumeMounts, k8s_io_api_core_v1.VolumeMount{}) |
| 759 | if err := m.VolumeMounts[len(m.VolumeMounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 760 | return err |
| 761 | } |
| 762 | iNdEx = postIndex |
| 763 | default: |
| 764 | iNdEx = preIndex |
| 765 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 766 | if err != nil { |
| 767 | return err |
| 768 | } |
| 769 | if skippy < 0 { |
| 770 | return ErrInvalidLengthGenerated |
| 771 | } |
| 772 | if (iNdEx + skippy) > l { |
| 773 | return io.ErrUnexpectedEOF |
| 774 | } |
| 775 | iNdEx += skippy |
| 776 | } |
| 777 | } |
| 778 | |
| 779 | if iNdEx > l { |
| 780 | return io.ErrUnexpectedEOF |
| 781 | } |
| 782 | return nil |
| 783 | } |
| 784 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 785 | l := len(dAtA) |
| 786 | iNdEx := 0 |
| 787 | for iNdEx < l { |
| 788 | var wire uint64 |
| 789 | for shift := uint(0); ; shift += 7 { |
| 790 | if shift >= 64 { |
| 791 | return 0, ErrIntOverflowGenerated |
| 792 | } |
| 793 | if iNdEx >= l { |
| 794 | return 0, io.ErrUnexpectedEOF |
| 795 | } |
| 796 | b := dAtA[iNdEx] |
| 797 | iNdEx++ |
| 798 | wire |= (uint64(b) & 0x7F) << shift |
| 799 | if b < 0x80 { |
| 800 | break |
| 801 | } |
| 802 | } |
| 803 | wireType := int(wire & 0x7) |
| 804 | switch wireType { |
| 805 | case 0: |
| 806 | for shift := uint(0); ; shift += 7 { |
| 807 | if shift >= 64 { |
| 808 | return 0, ErrIntOverflowGenerated |
| 809 | } |
| 810 | if iNdEx >= l { |
| 811 | return 0, io.ErrUnexpectedEOF |
| 812 | } |
| 813 | iNdEx++ |
| 814 | if dAtA[iNdEx-1] < 0x80 { |
| 815 | break |
| 816 | } |
| 817 | } |
| 818 | return iNdEx, nil |
| 819 | case 1: |
| 820 | iNdEx += 8 |
| 821 | return iNdEx, nil |
| 822 | case 2: |
| 823 | var length int |
| 824 | for shift := uint(0); ; shift += 7 { |
| 825 | if shift >= 64 { |
| 826 | return 0, ErrIntOverflowGenerated |
| 827 | } |
| 828 | if iNdEx >= l { |
| 829 | return 0, io.ErrUnexpectedEOF |
| 830 | } |
| 831 | b := dAtA[iNdEx] |
| 832 | iNdEx++ |
| 833 | length |= (int(b) & 0x7F) << shift |
| 834 | if b < 0x80 { |
| 835 | break |
| 836 | } |
| 837 | } |
| 838 | iNdEx += length |
| 839 | if length < 0 { |
| 840 | return 0, ErrInvalidLengthGenerated |
| 841 | } |
| 842 | return iNdEx, nil |
| 843 | case 3: |
| 844 | for { |
| 845 | var innerWire uint64 |
| 846 | var start int = iNdEx |
| 847 | for shift := uint(0); ; shift += 7 { |
| 848 | if shift >= 64 { |
| 849 | return 0, ErrIntOverflowGenerated |
| 850 | } |
| 851 | if iNdEx >= l { |
| 852 | return 0, io.ErrUnexpectedEOF |
| 853 | } |
| 854 | b := dAtA[iNdEx] |
| 855 | iNdEx++ |
| 856 | innerWire |= (uint64(b) & 0x7F) << shift |
| 857 | if b < 0x80 { |
| 858 | break |
| 859 | } |
| 860 | } |
| 861 | innerWireType := int(innerWire & 0x7) |
| 862 | if innerWireType == 4 { |
| 863 | break |
| 864 | } |
| 865 | next, err := skipGenerated(dAtA[start:]) |
| 866 | if err != nil { |
| 867 | return 0, err |
| 868 | } |
| 869 | iNdEx = start + next |
| 870 | } |
| 871 | return iNdEx, nil |
| 872 | case 4: |
| 873 | return iNdEx, nil |
| 874 | case 5: |
| 875 | iNdEx += 4 |
| 876 | return iNdEx, nil |
| 877 | default: |
| 878 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 879 | } |
| 880 | } |
| 881 | panic("unreachable") |
| 882 | } |
| 883 | |
| 884 | var ( |
| 885 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 886 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 887 | ) |
| 888 | |
| 889 | func init() { |
| 890 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/settings/v1alpha1/generated.proto", fileDescriptorGenerated) |
| 891 | } |
| 892 | |
| 893 | var fileDescriptorGenerated = []byte{ |
| 894 | // 556 bytes of a gzipped FileDescriptorProto |
| 895 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x8e, 0xd2, 0x4e, |
| 896 | 0x1c, 0xc7, 0xe9, 0xb2, 0x04, 0xfe, 0x03, 0x9b, 0xbf, 0x69, 0x3c, 0x34, 0xc4, 0x94, 0x95, 0x8b, |
| 897 | 0x9b, 0x18, 0x67, 0x64, 0xd7, 0x18, 0xbd, 0x36, 0xc1, 0xc4, 0x04, 0xe2, 0xa6, 0x24, 0x9b, 0x68, |
| 898 | 0x3c, 0x38, 0x94, 0x9f, 0xa5, 0x42, 0x67, 0x9a, 0x99, 0x69, 0x13, 0x6f, 0x3e, 0x82, 0x2f, 0xe0, |
| 899 | 0x93, 0xe8, 0x03, 0x70, 0xdc, 0xe3, 0x9e, 0x36, 0x52, 0x5f, 0xc4, 0x4c, 0x99, 0x02, 0x8a, 0x28, |
| 900 | 0xb7, 0xce, 0x8f, 0xef, 0xe7, 0x33, 0xbf, 0x2f, 0x2d, 0xea, 0xcf, 0x9e, 0x49, 0x1c, 0x71, 0x32, |
| 901 | 0x4b, 0xc7, 0x20, 0x18, 0x28, 0x90, 0x24, 0x03, 0x36, 0xe1, 0x82, 0x98, 0x1f, 0x68, 0x12, 0x11, |
| 902 | 0x09, 0x4a, 0x45, 0x2c, 0x94, 0x24, 0xeb, 0xd1, 0x79, 0x32, 0xa5, 0x3d, 0x12, 0x02, 0x03, 0x41, |
| 903 | 0x15, 0x4c, 0x70, 0x22, 0xb8, 0xe2, 0xf6, 0xbd, 0x55, 0x1a, 0xd3, 0x24, 0xc2, 0x65, 0x1a, 0x97, |
| 904 | 0xe9, 0xf6, 0xa3, 0x30, 0x52, 0xd3, 0x74, 0x8c, 0x03, 0x1e, 0x93, 0x90, 0x87, 0x9c, 0x14, 0xd0, |
| 905 | 0x38, 0x7d, 0x5f, 0x9c, 0x8a, 0x43, 0xf1, 0xb4, 0x92, 0xb5, 0xbb, 0x5b, 0x57, 0x07, 0x5c, 0x00, |
| 906 | 0xc9, 0x76, 0x2e, 0x6c, 0x3f, 0xd9, 0x64, 0x62, 0x1a, 0x4c, 0x23, 0x06, 0xe2, 0x23, 0x49, 0x66, |
| 907 | 0xa1, 0x1e, 0x48, 0x12, 0x83, 0xa2, 0x7f, 0xa2, 0xc8, 0x3e, 0x4a, 0xa4, 0x4c, 0x45, 0x31, 0xec, |
| 908 | 0x00, 0x4f, 0xff, 0x05, 0xc8, 0x60, 0x0a, 0x31, 0xdd, 0xe1, 0x2e, 0xf6, 0x71, 0xa9, 0x8a, 0xe6, |
| 909 | 0x24, 0x62, 0x4a, 0x2a, 0xf1, 0x3b, 0xd4, 0xfd, 0x66, 0xa1, 0xff, 0x2e, 0xf9, 0xe4, 0x52, 0x80, |
| 910 | 0x04, 0x65, 0xbf, 0x43, 0x0d, 0x5d, 0x63, 0x42, 0x15, 0x75, 0xac, 0x53, 0xeb, 0xac, 0x79, 0xfe, |
| 911 | 0x18, 0x6f, 0xfe, 0xe5, 0xb5, 0x15, 0x27, 0xb3, 0x50, 0x0f, 0x24, 0xd6, 0x69, 0x9c, 0xf5, 0xf0, |
| 912 | 0xab, 0xf1, 0x07, 0x08, 0xd4, 0x10, 0x14, 0xf5, 0xec, 0xc5, 0x6d, 0xa7, 0x92, 0xdf, 0x76, 0xd0, |
| 913 | 0x66, 0xe6, 0xaf, 0xad, 0xf6, 0x10, 0x1d, 0xcb, 0x04, 0x02, 0xe7, 0xa8, 0xb0, 0x3f, 0xc4, 0x7f, |
| 914 | 0x7b, 0x87, 0x78, 0xbd, 0xd8, 0x28, 0x81, 0xc0, 0x6b, 0x19, 0xf1, 0xb1, 0x3e, 0xf9, 0x85, 0xa6, |
| 915 | 0xfb, 0xd5, 0x42, 0x27, 0xeb, 0xd4, 0x20, 0x92, 0xca, 0x7e, 0xbb, 0x53, 0x01, 0x1f, 0x56, 0x41, |
| 916 | 0xd3, 0x45, 0x81, 0x3b, 0xe6, 0x9e, 0x46, 0x39, 0xd9, 0x5a, 0x7f, 0x80, 0x6a, 0x91, 0x82, 0x58, |
| 917 | 0x3a, 0x47, 0xa7, 0xd5, 0xb3, 0xe6, 0xf9, 0x83, 0x03, 0xf7, 0xf7, 0x4e, 0x8c, 0xb3, 0xf6, 0x52, |
| 918 | 0xd3, 0xfe, 0x4a, 0xd2, 0xfd, 0x52, 0xdd, 0xda, 0x5e, 0xb7, 0xb2, 0x29, 0x6a, 0x48, 0x98, 0x43, |
| 919 | 0xa0, 0xb8, 0x30, 0xdb, 0x5f, 0x1c, 0xb8, 0x3d, 0x1d, 0xc3, 0x7c, 0x64, 0xd0, 0x4d, 0x85, 0x72, |
| 920 | 0xe2, 0xaf, 0xb5, 0xf6, 0x73, 0x54, 0x05, 0x96, 0x99, 0x02, 0xed, 0xed, 0x02, 0xfa, 0xbb, 0xd7, |
| 921 | 0xae, 0x3e, 0xcb, 0xae, 0xa8, 0xf0, 0x9a, 0x46, 0x52, 0xed, 0xb3, 0xcc, 0xd7, 0x8c, 0x3d, 0x40, |
| 922 | 0x75, 0x60, 0xd9, 0x0b, 0xc1, 0x63, 0xa7, 0x5a, 0xe0, 0xf7, 0xf7, 0xe0, 0x3a, 0x32, 0xe2, 0xa9, |
| 923 | 0x08, 0xc0, 0xfb, 0xdf, 0x58, 0xea, 0x66, 0xec, 0x97, 0x0a, 0xbb, 0x8f, 0xea, 0x19, 0x9f, 0xa7, |
| 924 | 0x31, 0x48, 0xe7, 0x78, 0xff, 0x32, 0x57, 0x45, 0x64, 0xa3, 0x59, 0x9d, 0xa5, 0x5f, 0xb2, 0xf6, |
| 925 | 0x6b, 0xd4, 0x5a, 0x3d, 0x0e, 0x79, 0xca, 0x94, 0x74, 0x6a, 0x85, 0xab, 0xb3, 0xdf, 0x55, 0xe4, |
| 926 | 0xbc, 0xbb, 0x46, 0xd8, 0xda, 0x1a, 0x4a, 0xff, 0x17, 0x95, 0x87, 0x17, 0x4b, 0xb7, 0x72, 0xbd, |
| 927 | 0x74, 0x2b, 0x37, 0x4b, 0xb7, 0xf2, 0x29, 0x77, 0xad, 0x45, 0xee, 0x5a, 0xd7, 0xb9, 0x6b, 0xdd, |
| 928 | 0xe4, 0xae, 0xf5, 0x3d, 0x77, 0xad, 0xcf, 0x3f, 0xdc, 0xca, 0x9b, 0x46, 0xf9, 0xbe, 0x7f, 0x06, |
| 929 | 0x00, 0x00, 0xff, 0xff, 0x0e, 0x35, 0x98, 0xb5, 0xd9, 0x04, 0x00, 0x00, |
| 930 | } |