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/events/v1beta1/generated.proto |
| 19 | // DO NOT EDIT! |
| 20 | |
| 21 | /* |
| 22 | Package v1beta1 is a generated protocol buffer package. |
| 23 | |
| 24 | It is generated from these files: |
| 25 | k8s.io/kubernetes/vendor/k8s.io/api/events/v1beta1/generated.proto |
| 26 | |
| 27 | It has these top-level messages: |
| 28 | Event |
| 29 | EventList |
| 30 | EventSeries |
| 31 | */ |
| 32 | package v1beta1 |
| 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 *Event) Reset() { *m = Event{} } |
| 57 | func (*Event) ProtoMessage() {} |
| 58 | func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } |
| 59 | |
| 60 | func (m *EventList) Reset() { *m = EventList{} } |
| 61 | func (*EventList) ProtoMessage() {} |
| 62 | func (*EventList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } |
| 63 | |
| 64 | func (m *EventSeries) Reset() { *m = EventSeries{} } |
| 65 | func (*EventSeries) ProtoMessage() {} |
| 66 | func (*EventSeries) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } |
| 67 | |
| 68 | func init() { |
| 69 | proto.RegisterType((*Event)(nil), "k8s.io.api.events.v1beta1.Event") |
| 70 | proto.RegisterType((*EventList)(nil), "k8s.io.api.events.v1beta1.EventList") |
| 71 | proto.RegisterType((*EventSeries)(nil), "k8s.io.api.events.v1beta1.EventSeries") |
| 72 | } |
| 73 | func (m *Event) 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 *Event) 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.EventTime.Size())) |
| 99 | n2, err := m.EventTime.MarshalTo(dAtA[i:]) |
| 100 | if err != nil { |
| 101 | return 0, err |
| 102 | } |
| 103 | i += n2 |
| 104 | if m.Series != nil { |
| 105 | dAtA[i] = 0x1a |
| 106 | i++ |
| 107 | i = encodeVarintGenerated(dAtA, i, uint64(m.Series.Size())) |
| 108 | n3, err := m.Series.MarshalTo(dAtA[i:]) |
| 109 | if err != nil { |
| 110 | return 0, err |
| 111 | } |
| 112 | i += n3 |
| 113 | } |
| 114 | dAtA[i] = 0x22 |
| 115 | i++ |
| 116 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.ReportingController))) |
| 117 | i += copy(dAtA[i:], m.ReportingController) |
| 118 | dAtA[i] = 0x2a |
| 119 | i++ |
| 120 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.ReportingInstance))) |
| 121 | i += copy(dAtA[i:], m.ReportingInstance) |
| 122 | dAtA[i] = 0x32 |
| 123 | i++ |
| 124 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Action))) |
| 125 | i += copy(dAtA[i:], m.Action) |
| 126 | dAtA[i] = 0x3a |
| 127 | i++ |
| 128 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) |
| 129 | i += copy(dAtA[i:], m.Reason) |
| 130 | dAtA[i] = 0x42 |
| 131 | i++ |
| 132 | i = encodeVarintGenerated(dAtA, i, uint64(m.Regarding.Size())) |
| 133 | n4, err := m.Regarding.MarshalTo(dAtA[i:]) |
| 134 | if err != nil { |
| 135 | return 0, err |
| 136 | } |
| 137 | i += n4 |
| 138 | if m.Related != nil { |
| 139 | dAtA[i] = 0x4a |
| 140 | i++ |
| 141 | i = encodeVarintGenerated(dAtA, i, uint64(m.Related.Size())) |
| 142 | n5, err := m.Related.MarshalTo(dAtA[i:]) |
| 143 | if err != nil { |
| 144 | return 0, err |
| 145 | } |
| 146 | i += n5 |
| 147 | } |
| 148 | dAtA[i] = 0x52 |
| 149 | i++ |
| 150 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Note))) |
| 151 | i += copy(dAtA[i:], m.Note) |
| 152 | dAtA[i] = 0x5a |
| 153 | i++ |
| 154 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) |
| 155 | i += copy(dAtA[i:], m.Type) |
| 156 | dAtA[i] = 0x62 |
| 157 | i++ |
| 158 | i = encodeVarintGenerated(dAtA, i, uint64(m.DeprecatedSource.Size())) |
| 159 | n6, err := m.DeprecatedSource.MarshalTo(dAtA[i:]) |
| 160 | if err != nil { |
| 161 | return 0, err |
| 162 | } |
| 163 | i += n6 |
| 164 | dAtA[i] = 0x6a |
| 165 | i++ |
| 166 | i = encodeVarintGenerated(dAtA, i, uint64(m.DeprecatedFirstTimestamp.Size())) |
| 167 | n7, err := m.DeprecatedFirstTimestamp.MarshalTo(dAtA[i:]) |
| 168 | if err != nil { |
| 169 | return 0, err |
| 170 | } |
| 171 | i += n7 |
| 172 | dAtA[i] = 0x72 |
| 173 | i++ |
| 174 | i = encodeVarintGenerated(dAtA, i, uint64(m.DeprecatedLastTimestamp.Size())) |
| 175 | n8, err := m.DeprecatedLastTimestamp.MarshalTo(dAtA[i:]) |
| 176 | if err != nil { |
| 177 | return 0, err |
| 178 | } |
| 179 | i += n8 |
| 180 | dAtA[i] = 0x78 |
| 181 | i++ |
| 182 | i = encodeVarintGenerated(dAtA, i, uint64(m.DeprecatedCount)) |
| 183 | return i, nil |
| 184 | } |
| 185 | |
| 186 | func (m *EventList) Marshal() (dAtA []byte, err error) { |
| 187 | size := m.Size() |
| 188 | dAtA = make([]byte, size) |
| 189 | n, err := m.MarshalTo(dAtA) |
| 190 | if err != nil { |
| 191 | return nil, err |
| 192 | } |
| 193 | return dAtA[:n], nil |
| 194 | } |
| 195 | |
| 196 | func (m *EventList) MarshalTo(dAtA []byte) (int, error) { |
| 197 | var i int |
| 198 | _ = i |
| 199 | var l int |
| 200 | _ = l |
| 201 | dAtA[i] = 0xa |
| 202 | i++ |
| 203 | i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) |
| 204 | n9, err := m.ListMeta.MarshalTo(dAtA[i:]) |
| 205 | if err != nil { |
| 206 | return 0, err |
| 207 | } |
| 208 | i += n9 |
| 209 | if len(m.Items) > 0 { |
| 210 | for _, msg := range m.Items { |
| 211 | dAtA[i] = 0x12 |
| 212 | i++ |
| 213 | i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| 214 | n, err := msg.MarshalTo(dAtA[i:]) |
| 215 | if err != nil { |
| 216 | return 0, err |
| 217 | } |
| 218 | i += n |
| 219 | } |
| 220 | } |
| 221 | return i, nil |
| 222 | } |
| 223 | |
| 224 | func (m *EventSeries) Marshal() (dAtA []byte, err error) { |
| 225 | size := m.Size() |
| 226 | dAtA = make([]byte, size) |
| 227 | n, err := m.MarshalTo(dAtA) |
| 228 | if err != nil { |
| 229 | return nil, err |
| 230 | } |
| 231 | return dAtA[:n], nil |
| 232 | } |
| 233 | |
| 234 | func (m *EventSeries) MarshalTo(dAtA []byte) (int, error) { |
| 235 | var i int |
| 236 | _ = i |
| 237 | var l int |
| 238 | _ = l |
| 239 | dAtA[i] = 0x8 |
| 240 | i++ |
| 241 | i = encodeVarintGenerated(dAtA, i, uint64(m.Count)) |
| 242 | dAtA[i] = 0x12 |
| 243 | i++ |
| 244 | i = encodeVarintGenerated(dAtA, i, uint64(m.LastObservedTime.Size())) |
| 245 | n10, err := m.LastObservedTime.MarshalTo(dAtA[i:]) |
| 246 | if err != nil { |
| 247 | return 0, err |
| 248 | } |
| 249 | i += n10 |
| 250 | dAtA[i] = 0x1a |
| 251 | i++ |
| 252 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.State))) |
| 253 | i += copy(dAtA[i:], m.State) |
| 254 | return i, nil |
| 255 | } |
| 256 | |
| 257 | func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { |
| 258 | dAtA[offset] = uint8(v) |
| 259 | dAtA[offset+1] = uint8(v >> 8) |
| 260 | dAtA[offset+2] = uint8(v >> 16) |
| 261 | dAtA[offset+3] = uint8(v >> 24) |
| 262 | dAtA[offset+4] = uint8(v >> 32) |
| 263 | dAtA[offset+5] = uint8(v >> 40) |
| 264 | dAtA[offset+6] = uint8(v >> 48) |
| 265 | dAtA[offset+7] = uint8(v >> 56) |
| 266 | return offset + 8 |
| 267 | } |
| 268 | func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { |
| 269 | dAtA[offset] = uint8(v) |
| 270 | dAtA[offset+1] = uint8(v >> 8) |
| 271 | dAtA[offset+2] = uint8(v >> 16) |
| 272 | dAtA[offset+3] = uint8(v >> 24) |
| 273 | return offset + 4 |
| 274 | } |
| 275 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 276 | for v >= 1<<7 { |
| 277 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 278 | v >>= 7 |
| 279 | offset++ |
| 280 | } |
| 281 | dAtA[offset] = uint8(v) |
| 282 | return offset + 1 |
| 283 | } |
| 284 | func (m *Event) Size() (n int) { |
| 285 | var l int |
| 286 | _ = l |
| 287 | l = m.ObjectMeta.Size() |
| 288 | n += 1 + l + sovGenerated(uint64(l)) |
| 289 | l = m.EventTime.Size() |
| 290 | n += 1 + l + sovGenerated(uint64(l)) |
| 291 | if m.Series != nil { |
| 292 | l = m.Series.Size() |
| 293 | n += 1 + l + sovGenerated(uint64(l)) |
| 294 | } |
| 295 | l = len(m.ReportingController) |
| 296 | n += 1 + l + sovGenerated(uint64(l)) |
| 297 | l = len(m.ReportingInstance) |
| 298 | n += 1 + l + sovGenerated(uint64(l)) |
| 299 | l = len(m.Action) |
| 300 | n += 1 + l + sovGenerated(uint64(l)) |
| 301 | l = len(m.Reason) |
| 302 | n += 1 + l + sovGenerated(uint64(l)) |
| 303 | l = m.Regarding.Size() |
| 304 | n += 1 + l + sovGenerated(uint64(l)) |
| 305 | if m.Related != nil { |
| 306 | l = m.Related.Size() |
| 307 | n += 1 + l + sovGenerated(uint64(l)) |
| 308 | } |
| 309 | l = len(m.Note) |
| 310 | n += 1 + l + sovGenerated(uint64(l)) |
| 311 | l = len(m.Type) |
| 312 | n += 1 + l + sovGenerated(uint64(l)) |
| 313 | l = m.DeprecatedSource.Size() |
| 314 | n += 1 + l + sovGenerated(uint64(l)) |
| 315 | l = m.DeprecatedFirstTimestamp.Size() |
| 316 | n += 1 + l + sovGenerated(uint64(l)) |
| 317 | l = m.DeprecatedLastTimestamp.Size() |
| 318 | n += 1 + l + sovGenerated(uint64(l)) |
| 319 | n += 1 + sovGenerated(uint64(m.DeprecatedCount)) |
| 320 | return n |
| 321 | } |
| 322 | |
| 323 | func (m *EventList) Size() (n int) { |
| 324 | var l int |
| 325 | _ = l |
| 326 | l = m.ListMeta.Size() |
| 327 | n += 1 + l + sovGenerated(uint64(l)) |
| 328 | if len(m.Items) > 0 { |
| 329 | for _, e := range m.Items { |
| 330 | l = e.Size() |
| 331 | n += 1 + l + sovGenerated(uint64(l)) |
| 332 | } |
| 333 | } |
| 334 | return n |
| 335 | } |
| 336 | |
| 337 | func (m *EventSeries) Size() (n int) { |
| 338 | var l int |
| 339 | _ = l |
| 340 | n += 1 + sovGenerated(uint64(m.Count)) |
| 341 | l = m.LastObservedTime.Size() |
| 342 | n += 1 + l + sovGenerated(uint64(l)) |
| 343 | l = len(m.State) |
| 344 | n += 1 + l + sovGenerated(uint64(l)) |
| 345 | return n |
| 346 | } |
| 347 | |
| 348 | func sovGenerated(x uint64) (n int) { |
| 349 | for { |
| 350 | n++ |
| 351 | x >>= 7 |
| 352 | if x == 0 { |
| 353 | break |
| 354 | } |
| 355 | } |
| 356 | return n |
| 357 | } |
| 358 | func sozGenerated(x uint64) (n int) { |
| 359 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 360 | } |
| 361 | func (this *Event) String() string { |
| 362 | if this == nil { |
| 363 | return "nil" |
| 364 | } |
| 365 | s := strings.Join([]string{`&Event{`, |
| 366 | `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 367 | `EventTime:` + strings.Replace(strings.Replace(this.EventTime.String(), "MicroTime", "k8s_io_apimachinery_pkg_apis_meta_v1.MicroTime", 1), `&`, ``, 1) + `,`, |
| 368 | `Series:` + strings.Replace(fmt.Sprintf("%v", this.Series), "EventSeries", "EventSeries", 1) + `,`, |
| 369 | `ReportingController:` + fmt.Sprintf("%v", this.ReportingController) + `,`, |
| 370 | `ReportingInstance:` + fmt.Sprintf("%v", this.ReportingInstance) + `,`, |
| 371 | `Action:` + fmt.Sprintf("%v", this.Action) + `,`, |
| 372 | `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, |
| 373 | `Regarding:` + strings.Replace(strings.Replace(this.Regarding.String(), "ObjectReference", "k8s_io_api_core_v1.ObjectReference", 1), `&`, ``, 1) + `,`, |
| 374 | `Related:` + strings.Replace(fmt.Sprintf("%v", this.Related), "ObjectReference", "k8s_io_api_core_v1.ObjectReference", 1) + `,`, |
| 375 | `Note:` + fmt.Sprintf("%v", this.Note) + `,`, |
| 376 | `Type:` + fmt.Sprintf("%v", this.Type) + `,`, |
| 377 | `DeprecatedSource:` + strings.Replace(strings.Replace(this.DeprecatedSource.String(), "EventSource", "k8s_io_api_core_v1.EventSource", 1), `&`, ``, 1) + `,`, |
| 378 | `DeprecatedFirstTimestamp:` + strings.Replace(strings.Replace(this.DeprecatedFirstTimestamp.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, |
| 379 | `DeprecatedLastTimestamp:` + strings.Replace(strings.Replace(this.DeprecatedLastTimestamp.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, |
| 380 | `DeprecatedCount:` + fmt.Sprintf("%v", this.DeprecatedCount) + `,`, |
| 381 | `}`, |
| 382 | }, "") |
| 383 | return s |
| 384 | } |
| 385 | func (this *EventList) String() string { |
| 386 | if this == nil { |
| 387 | return "nil" |
| 388 | } |
| 389 | s := strings.Join([]string{`&EventList{`, |
| 390 | `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 391 | `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Event", "Event", 1), `&`, ``, 1) + `,`, |
| 392 | `}`, |
| 393 | }, "") |
| 394 | return s |
| 395 | } |
| 396 | func (this *EventSeries) String() string { |
| 397 | if this == nil { |
| 398 | return "nil" |
| 399 | } |
| 400 | s := strings.Join([]string{`&EventSeries{`, |
| 401 | `Count:` + fmt.Sprintf("%v", this.Count) + `,`, |
| 402 | `LastObservedTime:` + strings.Replace(strings.Replace(this.LastObservedTime.String(), "MicroTime", "k8s_io_apimachinery_pkg_apis_meta_v1.MicroTime", 1), `&`, ``, 1) + `,`, |
| 403 | `State:` + fmt.Sprintf("%v", this.State) + `,`, |
| 404 | `}`, |
| 405 | }, "") |
| 406 | return s |
| 407 | } |
| 408 | func valueToStringGenerated(v interface{}) string { |
| 409 | rv := reflect.ValueOf(v) |
| 410 | if rv.IsNil() { |
| 411 | return "nil" |
| 412 | } |
| 413 | pv := reflect.Indirect(rv).Interface() |
| 414 | return fmt.Sprintf("*%v", pv) |
| 415 | } |
| 416 | func (m *Event) Unmarshal(dAtA []byte) error { |
| 417 | l := len(dAtA) |
| 418 | iNdEx := 0 |
| 419 | for iNdEx < l { |
| 420 | preIndex := iNdEx |
| 421 | var wire uint64 |
| 422 | for shift := uint(0); ; shift += 7 { |
| 423 | if shift >= 64 { |
| 424 | return ErrIntOverflowGenerated |
| 425 | } |
| 426 | if iNdEx >= l { |
| 427 | return io.ErrUnexpectedEOF |
| 428 | } |
| 429 | b := dAtA[iNdEx] |
| 430 | iNdEx++ |
| 431 | wire |= (uint64(b) & 0x7F) << shift |
| 432 | if b < 0x80 { |
| 433 | break |
| 434 | } |
| 435 | } |
| 436 | fieldNum := int32(wire >> 3) |
| 437 | wireType := int(wire & 0x7) |
| 438 | if wireType == 4 { |
| 439 | return fmt.Errorf("proto: Event: wiretype end group for non-group") |
| 440 | } |
| 441 | if fieldNum <= 0 { |
| 442 | return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) |
| 443 | } |
| 444 | switch fieldNum { |
| 445 | case 1: |
| 446 | if wireType != 2 { |
| 447 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 448 | } |
| 449 | var msglen int |
| 450 | for shift := uint(0); ; shift += 7 { |
| 451 | if shift >= 64 { |
| 452 | return ErrIntOverflowGenerated |
| 453 | } |
| 454 | if iNdEx >= l { |
| 455 | return io.ErrUnexpectedEOF |
| 456 | } |
| 457 | b := dAtA[iNdEx] |
| 458 | iNdEx++ |
| 459 | msglen |= (int(b) & 0x7F) << shift |
| 460 | if b < 0x80 { |
| 461 | break |
| 462 | } |
| 463 | } |
| 464 | if msglen < 0 { |
| 465 | return ErrInvalidLengthGenerated |
| 466 | } |
| 467 | postIndex := iNdEx + msglen |
| 468 | if postIndex > l { |
| 469 | return io.ErrUnexpectedEOF |
| 470 | } |
| 471 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 472 | return err |
| 473 | } |
| 474 | iNdEx = postIndex |
| 475 | case 2: |
| 476 | if wireType != 2 { |
| 477 | return fmt.Errorf("proto: wrong wireType = %d for field EventTime", wireType) |
| 478 | } |
| 479 | var msglen int |
| 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 | msglen |= (int(b) & 0x7F) << shift |
| 490 | if b < 0x80 { |
| 491 | break |
| 492 | } |
| 493 | } |
| 494 | if msglen < 0 { |
| 495 | return ErrInvalidLengthGenerated |
| 496 | } |
| 497 | postIndex := iNdEx + msglen |
| 498 | if postIndex > l { |
| 499 | return io.ErrUnexpectedEOF |
| 500 | } |
| 501 | if err := m.EventTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 502 | return err |
| 503 | } |
| 504 | iNdEx = postIndex |
| 505 | case 3: |
| 506 | if wireType != 2 { |
| 507 | return fmt.Errorf("proto: wrong wireType = %d for field Series", wireType) |
| 508 | } |
| 509 | var msglen int |
| 510 | for shift := uint(0); ; shift += 7 { |
| 511 | if shift >= 64 { |
| 512 | return ErrIntOverflowGenerated |
| 513 | } |
| 514 | if iNdEx >= l { |
| 515 | return io.ErrUnexpectedEOF |
| 516 | } |
| 517 | b := dAtA[iNdEx] |
| 518 | iNdEx++ |
| 519 | msglen |= (int(b) & 0x7F) << shift |
| 520 | if b < 0x80 { |
| 521 | break |
| 522 | } |
| 523 | } |
| 524 | if msglen < 0 { |
| 525 | return ErrInvalidLengthGenerated |
| 526 | } |
| 527 | postIndex := iNdEx + msglen |
| 528 | if postIndex > l { |
| 529 | return io.ErrUnexpectedEOF |
| 530 | } |
| 531 | if m.Series == nil { |
| 532 | m.Series = &EventSeries{} |
| 533 | } |
| 534 | if err := m.Series.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 535 | return err |
| 536 | } |
| 537 | iNdEx = postIndex |
| 538 | case 4: |
| 539 | if wireType != 2 { |
| 540 | return fmt.Errorf("proto: wrong wireType = %d for field ReportingController", wireType) |
| 541 | } |
| 542 | var stringLen uint64 |
| 543 | for shift := uint(0); ; shift += 7 { |
| 544 | if shift >= 64 { |
| 545 | return ErrIntOverflowGenerated |
| 546 | } |
| 547 | if iNdEx >= l { |
| 548 | return io.ErrUnexpectedEOF |
| 549 | } |
| 550 | b := dAtA[iNdEx] |
| 551 | iNdEx++ |
| 552 | stringLen |= (uint64(b) & 0x7F) << shift |
| 553 | if b < 0x80 { |
| 554 | break |
| 555 | } |
| 556 | } |
| 557 | intStringLen := int(stringLen) |
| 558 | if intStringLen < 0 { |
| 559 | return ErrInvalidLengthGenerated |
| 560 | } |
| 561 | postIndex := iNdEx + intStringLen |
| 562 | if postIndex > l { |
| 563 | return io.ErrUnexpectedEOF |
| 564 | } |
| 565 | m.ReportingController = string(dAtA[iNdEx:postIndex]) |
| 566 | iNdEx = postIndex |
| 567 | case 5: |
| 568 | if wireType != 2 { |
| 569 | return fmt.Errorf("proto: wrong wireType = %d for field ReportingInstance", wireType) |
| 570 | } |
| 571 | var stringLen uint64 |
| 572 | for shift := uint(0); ; shift += 7 { |
| 573 | if shift >= 64 { |
| 574 | return ErrIntOverflowGenerated |
| 575 | } |
| 576 | if iNdEx >= l { |
| 577 | return io.ErrUnexpectedEOF |
| 578 | } |
| 579 | b := dAtA[iNdEx] |
| 580 | iNdEx++ |
| 581 | stringLen |= (uint64(b) & 0x7F) << shift |
| 582 | if b < 0x80 { |
| 583 | break |
| 584 | } |
| 585 | } |
| 586 | intStringLen := int(stringLen) |
| 587 | if intStringLen < 0 { |
| 588 | return ErrInvalidLengthGenerated |
| 589 | } |
| 590 | postIndex := iNdEx + intStringLen |
| 591 | if postIndex > l { |
| 592 | return io.ErrUnexpectedEOF |
| 593 | } |
| 594 | m.ReportingInstance = string(dAtA[iNdEx:postIndex]) |
| 595 | iNdEx = postIndex |
| 596 | case 6: |
| 597 | if wireType != 2 { |
| 598 | return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) |
| 599 | } |
| 600 | var stringLen uint64 |
| 601 | for shift := uint(0); ; shift += 7 { |
| 602 | if shift >= 64 { |
| 603 | return ErrIntOverflowGenerated |
| 604 | } |
| 605 | if iNdEx >= l { |
| 606 | return io.ErrUnexpectedEOF |
| 607 | } |
| 608 | b := dAtA[iNdEx] |
| 609 | iNdEx++ |
| 610 | stringLen |= (uint64(b) & 0x7F) << shift |
| 611 | if b < 0x80 { |
| 612 | break |
| 613 | } |
| 614 | } |
| 615 | intStringLen := int(stringLen) |
| 616 | if intStringLen < 0 { |
| 617 | return ErrInvalidLengthGenerated |
| 618 | } |
| 619 | postIndex := iNdEx + intStringLen |
| 620 | if postIndex > l { |
| 621 | return io.ErrUnexpectedEOF |
| 622 | } |
| 623 | m.Action = string(dAtA[iNdEx:postIndex]) |
| 624 | iNdEx = postIndex |
| 625 | case 7: |
| 626 | if wireType != 2 { |
| 627 | return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) |
| 628 | } |
| 629 | var stringLen uint64 |
| 630 | for shift := uint(0); ; shift += 7 { |
| 631 | if shift >= 64 { |
| 632 | return ErrIntOverflowGenerated |
| 633 | } |
| 634 | if iNdEx >= l { |
| 635 | return io.ErrUnexpectedEOF |
| 636 | } |
| 637 | b := dAtA[iNdEx] |
| 638 | iNdEx++ |
| 639 | stringLen |= (uint64(b) & 0x7F) << shift |
| 640 | if b < 0x80 { |
| 641 | break |
| 642 | } |
| 643 | } |
| 644 | intStringLen := int(stringLen) |
| 645 | if intStringLen < 0 { |
| 646 | return ErrInvalidLengthGenerated |
| 647 | } |
| 648 | postIndex := iNdEx + intStringLen |
| 649 | if postIndex > l { |
| 650 | return io.ErrUnexpectedEOF |
| 651 | } |
| 652 | m.Reason = string(dAtA[iNdEx:postIndex]) |
| 653 | iNdEx = postIndex |
| 654 | case 8: |
| 655 | if wireType != 2 { |
| 656 | return fmt.Errorf("proto: wrong wireType = %d for field Regarding", wireType) |
| 657 | } |
| 658 | var msglen int |
| 659 | for shift := uint(0); ; shift += 7 { |
| 660 | if shift >= 64 { |
| 661 | return ErrIntOverflowGenerated |
| 662 | } |
| 663 | if iNdEx >= l { |
| 664 | return io.ErrUnexpectedEOF |
| 665 | } |
| 666 | b := dAtA[iNdEx] |
| 667 | iNdEx++ |
| 668 | msglen |= (int(b) & 0x7F) << shift |
| 669 | if b < 0x80 { |
| 670 | break |
| 671 | } |
| 672 | } |
| 673 | if msglen < 0 { |
| 674 | return ErrInvalidLengthGenerated |
| 675 | } |
| 676 | postIndex := iNdEx + msglen |
| 677 | if postIndex > l { |
| 678 | return io.ErrUnexpectedEOF |
| 679 | } |
| 680 | if err := m.Regarding.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 681 | return err |
| 682 | } |
| 683 | iNdEx = postIndex |
| 684 | case 9: |
| 685 | if wireType != 2 { |
| 686 | return fmt.Errorf("proto: wrong wireType = %d for field Related", wireType) |
| 687 | } |
| 688 | var msglen int |
| 689 | for shift := uint(0); ; shift += 7 { |
| 690 | if shift >= 64 { |
| 691 | return ErrIntOverflowGenerated |
| 692 | } |
| 693 | if iNdEx >= l { |
| 694 | return io.ErrUnexpectedEOF |
| 695 | } |
| 696 | b := dAtA[iNdEx] |
| 697 | iNdEx++ |
| 698 | msglen |= (int(b) & 0x7F) << shift |
| 699 | if b < 0x80 { |
| 700 | break |
| 701 | } |
| 702 | } |
| 703 | if msglen < 0 { |
| 704 | return ErrInvalidLengthGenerated |
| 705 | } |
| 706 | postIndex := iNdEx + msglen |
| 707 | if postIndex > l { |
| 708 | return io.ErrUnexpectedEOF |
| 709 | } |
| 710 | if m.Related == nil { |
| 711 | m.Related = &k8s_io_api_core_v1.ObjectReference{} |
| 712 | } |
| 713 | if err := m.Related.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 714 | return err |
| 715 | } |
| 716 | iNdEx = postIndex |
| 717 | case 10: |
| 718 | if wireType != 2 { |
| 719 | return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType) |
| 720 | } |
| 721 | var stringLen uint64 |
| 722 | for shift := uint(0); ; shift += 7 { |
| 723 | if shift >= 64 { |
| 724 | return ErrIntOverflowGenerated |
| 725 | } |
| 726 | if iNdEx >= l { |
| 727 | return io.ErrUnexpectedEOF |
| 728 | } |
| 729 | b := dAtA[iNdEx] |
| 730 | iNdEx++ |
| 731 | stringLen |= (uint64(b) & 0x7F) << shift |
| 732 | if b < 0x80 { |
| 733 | break |
| 734 | } |
| 735 | } |
| 736 | intStringLen := int(stringLen) |
| 737 | if intStringLen < 0 { |
| 738 | return ErrInvalidLengthGenerated |
| 739 | } |
| 740 | postIndex := iNdEx + intStringLen |
| 741 | if postIndex > l { |
| 742 | return io.ErrUnexpectedEOF |
| 743 | } |
| 744 | m.Note = string(dAtA[iNdEx:postIndex]) |
| 745 | iNdEx = postIndex |
| 746 | case 11: |
| 747 | if wireType != 2 { |
| 748 | return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) |
| 749 | } |
| 750 | var stringLen uint64 |
| 751 | for shift := uint(0); ; shift += 7 { |
| 752 | if shift >= 64 { |
| 753 | return ErrIntOverflowGenerated |
| 754 | } |
| 755 | if iNdEx >= l { |
| 756 | return io.ErrUnexpectedEOF |
| 757 | } |
| 758 | b := dAtA[iNdEx] |
| 759 | iNdEx++ |
| 760 | stringLen |= (uint64(b) & 0x7F) << shift |
| 761 | if b < 0x80 { |
| 762 | break |
| 763 | } |
| 764 | } |
| 765 | intStringLen := int(stringLen) |
| 766 | if intStringLen < 0 { |
| 767 | return ErrInvalidLengthGenerated |
| 768 | } |
| 769 | postIndex := iNdEx + intStringLen |
| 770 | if postIndex > l { |
| 771 | return io.ErrUnexpectedEOF |
| 772 | } |
| 773 | m.Type = string(dAtA[iNdEx:postIndex]) |
| 774 | iNdEx = postIndex |
| 775 | case 12: |
| 776 | if wireType != 2 { |
| 777 | return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedSource", wireType) |
| 778 | } |
| 779 | var msglen int |
| 780 | for shift := uint(0); ; shift += 7 { |
| 781 | if shift >= 64 { |
| 782 | return ErrIntOverflowGenerated |
| 783 | } |
| 784 | if iNdEx >= l { |
| 785 | return io.ErrUnexpectedEOF |
| 786 | } |
| 787 | b := dAtA[iNdEx] |
| 788 | iNdEx++ |
| 789 | msglen |= (int(b) & 0x7F) << shift |
| 790 | if b < 0x80 { |
| 791 | break |
| 792 | } |
| 793 | } |
| 794 | if msglen < 0 { |
| 795 | return ErrInvalidLengthGenerated |
| 796 | } |
| 797 | postIndex := iNdEx + msglen |
| 798 | if postIndex > l { |
| 799 | return io.ErrUnexpectedEOF |
| 800 | } |
| 801 | if err := m.DeprecatedSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 802 | return err |
| 803 | } |
| 804 | iNdEx = postIndex |
| 805 | case 13: |
| 806 | if wireType != 2 { |
| 807 | return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedFirstTimestamp", wireType) |
| 808 | } |
| 809 | var msglen int |
| 810 | for shift := uint(0); ; shift += 7 { |
| 811 | if shift >= 64 { |
| 812 | return ErrIntOverflowGenerated |
| 813 | } |
| 814 | if iNdEx >= l { |
| 815 | return io.ErrUnexpectedEOF |
| 816 | } |
| 817 | b := dAtA[iNdEx] |
| 818 | iNdEx++ |
| 819 | msglen |= (int(b) & 0x7F) << shift |
| 820 | if b < 0x80 { |
| 821 | break |
| 822 | } |
| 823 | } |
| 824 | if msglen < 0 { |
| 825 | return ErrInvalidLengthGenerated |
| 826 | } |
| 827 | postIndex := iNdEx + msglen |
| 828 | if postIndex > l { |
| 829 | return io.ErrUnexpectedEOF |
| 830 | } |
| 831 | if err := m.DeprecatedFirstTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 832 | return err |
| 833 | } |
| 834 | iNdEx = postIndex |
| 835 | case 14: |
| 836 | if wireType != 2 { |
| 837 | return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedLastTimestamp", wireType) |
| 838 | } |
| 839 | var msglen int |
| 840 | for shift := uint(0); ; shift += 7 { |
| 841 | if shift >= 64 { |
| 842 | return ErrIntOverflowGenerated |
| 843 | } |
| 844 | if iNdEx >= l { |
| 845 | return io.ErrUnexpectedEOF |
| 846 | } |
| 847 | b := dAtA[iNdEx] |
| 848 | iNdEx++ |
| 849 | msglen |= (int(b) & 0x7F) << shift |
| 850 | if b < 0x80 { |
| 851 | break |
| 852 | } |
| 853 | } |
| 854 | if msglen < 0 { |
| 855 | return ErrInvalidLengthGenerated |
| 856 | } |
| 857 | postIndex := iNdEx + msglen |
| 858 | if postIndex > l { |
| 859 | return io.ErrUnexpectedEOF |
| 860 | } |
| 861 | if err := m.DeprecatedLastTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 862 | return err |
| 863 | } |
| 864 | iNdEx = postIndex |
| 865 | case 15: |
| 866 | if wireType != 0 { |
| 867 | return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedCount", wireType) |
| 868 | } |
| 869 | m.DeprecatedCount = 0 |
| 870 | for shift := uint(0); ; shift += 7 { |
| 871 | if shift >= 64 { |
| 872 | return ErrIntOverflowGenerated |
| 873 | } |
| 874 | if iNdEx >= l { |
| 875 | return io.ErrUnexpectedEOF |
| 876 | } |
| 877 | b := dAtA[iNdEx] |
| 878 | iNdEx++ |
| 879 | m.DeprecatedCount |= (int32(b) & 0x7F) << shift |
| 880 | if b < 0x80 { |
| 881 | break |
| 882 | } |
| 883 | } |
| 884 | default: |
| 885 | iNdEx = preIndex |
| 886 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 887 | if err != nil { |
| 888 | return err |
| 889 | } |
| 890 | if skippy < 0 { |
| 891 | return ErrInvalidLengthGenerated |
| 892 | } |
| 893 | if (iNdEx + skippy) > l { |
| 894 | return io.ErrUnexpectedEOF |
| 895 | } |
| 896 | iNdEx += skippy |
| 897 | } |
| 898 | } |
| 899 | |
| 900 | if iNdEx > l { |
| 901 | return io.ErrUnexpectedEOF |
| 902 | } |
| 903 | return nil |
| 904 | } |
| 905 | func (m *EventList) Unmarshal(dAtA []byte) error { |
| 906 | l := len(dAtA) |
| 907 | iNdEx := 0 |
| 908 | for iNdEx < l { |
| 909 | preIndex := iNdEx |
| 910 | var wire uint64 |
| 911 | for shift := uint(0); ; shift += 7 { |
| 912 | if shift >= 64 { |
| 913 | return ErrIntOverflowGenerated |
| 914 | } |
| 915 | if iNdEx >= l { |
| 916 | return io.ErrUnexpectedEOF |
| 917 | } |
| 918 | b := dAtA[iNdEx] |
| 919 | iNdEx++ |
| 920 | wire |= (uint64(b) & 0x7F) << shift |
| 921 | if b < 0x80 { |
| 922 | break |
| 923 | } |
| 924 | } |
| 925 | fieldNum := int32(wire >> 3) |
| 926 | wireType := int(wire & 0x7) |
| 927 | if wireType == 4 { |
| 928 | return fmt.Errorf("proto: EventList: wiretype end group for non-group") |
| 929 | } |
| 930 | if fieldNum <= 0 { |
| 931 | return fmt.Errorf("proto: EventList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 932 | } |
| 933 | switch fieldNum { |
| 934 | case 1: |
| 935 | if wireType != 2 { |
| 936 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 937 | } |
| 938 | var msglen int |
| 939 | for shift := uint(0); ; shift += 7 { |
| 940 | if shift >= 64 { |
| 941 | return ErrIntOverflowGenerated |
| 942 | } |
| 943 | if iNdEx >= l { |
| 944 | return io.ErrUnexpectedEOF |
| 945 | } |
| 946 | b := dAtA[iNdEx] |
| 947 | iNdEx++ |
| 948 | msglen |= (int(b) & 0x7F) << shift |
| 949 | if b < 0x80 { |
| 950 | break |
| 951 | } |
| 952 | } |
| 953 | if msglen < 0 { |
| 954 | return ErrInvalidLengthGenerated |
| 955 | } |
| 956 | postIndex := iNdEx + msglen |
| 957 | if postIndex > l { |
| 958 | return io.ErrUnexpectedEOF |
| 959 | } |
| 960 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 961 | return err |
| 962 | } |
| 963 | iNdEx = postIndex |
| 964 | case 2: |
| 965 | if wireType != 2 { |
| 966 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 967 | } |
| 968 | var msglen int |
| 969 | for shift := uint(0); ; shift += 7 { |
| 970 | if shift >= 64 { |
| 971 | return ErrIntOverflowGenerated |
| 972 | } |
| 973 | if iNdEx >= l { |
| 974 | return io.ErrUnexpectedEOF |
| 975 | } |
| 976 | b := dAtA[iNdEx] |
| 977 | iNdEx++ |
| 978 | msglen |= (int(b) & 0x7F) << shift |
| 979 | if b < 0x80 { |
| 980 | break |
| 981 | } |
| 982 | } |
| 983 | if msglen < 0 { |
| 984 | return ErrInvalidLengthGenerated |
| 985 | } |
| 986 | postIndex := iNdEx + msglen |
| 987 | if postIndex > l { |
| 988 | return io.ErrUnexpectedEOF |
| 989 | } |
| 990 | m.Items = append(m.Items, Event{}) |
| 991 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 992 | return err |
| 993 | } |
| 994 | iNdEx = postIndex |
| 995 | default: |
| 996 | iNdEx = preIndex |
| 997 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 998 | if err != nil { |
| 999 | return err |
| 1000 | } |
| 1001 | if skippy < 0 { |
| 1002 | return ErrInvalidLengthGenerated |
| 1003 | } |
| 1004 | if (iNdEx + skippy) > l { |
| 1005 | return io.ErrUnexpectedEOF |
| 1006 | } |
| 1007 | iNdEx += skippy |
| 1008 | } |
| 1009 | } |
| 1010 | |
| 1011 | if iNdEx > l { |
| 1012 | return io.ErrUnexpectedEOF |
| 1013 | } |
| 1014 | return nil |
| 1015 | } |
| 1016 | func (m *EventSeries) Unmarshal(dAtA []byte) error { |
| 1017 | l := len(dAtA) |
| 1018 | iNdEx := 0 |
| 1019 | for iNdEx < l { |
| 1020 | preIndex := iNdEx |
| 1021 | var wire uint64 |
| 1022 | for shift := uint(0); ; shift += 7 { |
| 1023 | if shift >= 64 { |
| 1024 | return ErrIntOverflowGenerated |
| 1025 | } |
| 1026 | if iNdEx >= l { |
| 1027 | return io.ErrUnexpectedEOF |
| 1028 | } |
| 1029 | b := dAtA[iNdEx] |
| 1030 | iNdEx++ |
| 1031 | wire |= (uint64(b) & 0x7F) << shift |
| 1032 | if b < 0x80 { |
| 1033 | break |
| 1034 | } |
| 1035 | } |
| 1036 | fieldNum := int32(wire >> 3) |
| 1037 | wireType := int(wire & 0x7) |
| 1038 | if wireType == 4 { |
| 1039 | return fmt.Errorf("proto: EventSeries: wiretype end group for non-group") |
| 1040 | } |
| 1041 | if fieldNum <= 0 { |
| 1042 | return fmt.Errorf("proto: EventSeries: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1043 | } |
| 1044 | switch fieldNum { |
| 1045 | case 1: |
| 1046 | if wireType != 0 { |
| 1047 | return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) |
| 1048 | } |
| 1049 | m.Count = 0 |
| 1050 | for shift := uint(0); ; shift += 7 { |
| 1051 | if shift >= 64 { |
| 1052 | return ErrIntOverflowGenerated |
| 1053 | } |
| 1054 | if iNdEx >= l { |
| 1055 | return io.ErrUnexpectedEOF |
| 1056 | } |
| 1057 | b := dAtA[iNdEx] |
| 1058 | iNdEx++ |
| 1059 | m.Count |= (int32(b) & 0x7F) << shift |
| 1060 | if b < 0x80 { |
| 1061 | break |
| 1062 | } |
| 1063 | } |
| 1064 | case 2: |
| 1065 | if wireType != 2 { |
| 1066 | return fmt.Errorf("proto: wrong wireType = %d for field LastObservedTime", wireType) |
| 1067 | } |
| 1068 | var msglen int |
| 1069 | for shift := uint(0); ; shift += 7 { |
| 1070 | if shift >= 64 { |
| 1071 | return ErrIntOverflowGenerated |
| 1072 | } |
| 1073 | if iNdEx >= l { |
| 1074 | return io.ErrUnexpectedEOF |
| 1075 | } |
| 1076 | b := dAtA[iNdEx] |
| 1077 | iNdEx++ |
| 1078 | msglen |= (int(b) & 0x7F) << shift |
| 1079 | if b < 0x80 { |
| 1080 | break |
| 1081 | } |
| 1082 | } |
| 1083 | if msglen < 0 { |
| 1084 | return ErrInvalidLengthGenerated |
| 1085 | } |
| 1086 | postIndex := iNdEx + msglen |
| 1087 | if postIndex > l { |
| 1088 | return io.ErrUnexpectedEOF |
| 1089 | } |
| 1090 | if err := m.LastObservedTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1091 | return err |
| 1092 | } |
| 1093 | iNdEx = postIndex |
| 1094 | case 3: |
| 1095 | if wireType != 2 { |
| 1096 | return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) |
| 1097 | } |
| 1098 | var stringLen uint64 |
| 1099 | for shift := uint(0); ; shift += 7 { |
| 1100 | if shift >= 64 { |
| 1101 | return ErrIntOverflowGenerated |
| 1102 | } |
| 1103 | if iNdEx >= l { |
| 1104 | return io.ErrUnexpectedEOF |
| 1105 | } |
| 1106 | b := dAtA[iNdEx] |
| 1107 | iNdEx++ |
| 1108 | stringLen |= (uint64(b) & 0x7F) << shift |
| 1109 | if b < 0x80 { |
| 1110 | break |
| 1111 | } |
| 1112 | } |
| 1113 | intStringLen := int(stringLen) |
| 1114 | if intStringLen < 0 { |
| 1115 | return ErrInvalidLengthGenerated |
| 1116 | } |
| 1117 | postIndex := iNdEx + intStringLen |
| 1118 | if postIndex > l { |
| 1119 | return io.ErrUnexpectedEOF |
| 1120 | } |
| 1121 | m.State = EventSeriesState(dAtA[iNdEx:postIndex]) |
| 1122 | iNdEx = postIndex |
| 1123 | default: |
| 1124 | iNdEx = preIndex |
| 1125 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1126 | if err != nil { |
| 1127 | return err |
| 1128 | } |
| 1129 | if skippy < 0 { |
| 1130 | return ErrInvalidLengthGenerated |
| 1131 | } |
| 1132 | if (iNdEx + skippy) > l { |
| 1133 | return io.ErrUnexpectedEOF |
| 1134 | } |
| 1135 | iNdEx += skippy |
| 1136 | } |
| 1137 | } |
| 1138 | |
| 1139 | if iNdEx > l { |
| 1140 | return io.ErrUnexpectedEOF |
| 1141 | } |
| 1142 | return nil |
| 1143 | } |
| 1144 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 1145 | l := len(dAtA) |
| 1146 | iNdEx := 0 |
| 1147 | for iNdEx < l { |
| 1148 | var wire uint64 |
| 1149 | for shift := uint(0); ; shift += 7 { |
| 1150 | if shift >= 64 { |
| 1151 | return 0, ErrIntOverflowGenerated |
| 1152 | } |
| 1153 | if iNdEx >= l { |
| 1154 | return 0, io.ErrUnexpectedEOF |
| 1155 | } |
| 1156 | b := dAtA[iNdEx] |
| 1157 | iNdEx++ |
| 1158 | wire |= (uint64(b) & 0x7F) << shift |
| 1159 | if b < 0x80 { |
| 1160 | break |
| 1161 | } |
| 1162 | } |
| 1163 | wireType := int(wire & 0x7) |
| 1164 | switch wireType { |
| 1165 | case 0: |
| 1166 | for shift := uint(0); ; shift += 7 { |
| 1167 | if shift >= 64 { |
| 1168 | return 0, ErrIntOverflowGenerated |
| 1169 | } |
| 1170 | if iNdEx >= l { |
| 1171 | return 0, io.ErrUnexpectedEOF |
| 1172 | } |
| 1173 | iNdEx++ |
| 1174 | if dAtA[iNdEx-1] < 0x80 { |
| 1175 | break |
| 1176 | } |
| 1177 | } |
| 1178 | return iNdEx, nil |
| 1179 | case 1: |
| 1180 | iNdEx += 8 |
| 1181 | return iNdEx, nil |
| 1182 | case 2: |
| 1183 | var length int |
| 1184 | for shift := uint(0); ; shift += 7 { |
| 1185 | if shift >= 64 { |
| 1186 | return 0, ErrIntOverflowGenerated |
| 1187 | } |
| 1188 | if iNdEx >= l { |
| 1189 | return 0, io.ErrUnexpectedEOF |
| 1190 | } |
| 1191 | b := dAtA[iNdEx] |
| 1192 | iNdEx++ |
| 1193 | length |= (int(b) & 0x7F) << shift |
| 1194 | if b < 0x80 { |
| 1195 | break |
| 1196 | } |
| 1197 | } |
| 1198 | iNdEx += length |
| 1199 | if length < 0 { |
| 1200 | return 0, ErrInvalidLengthGenerated |
| 1201 | } |
| 1202 | return iNdEx, nil |
| 1203 | case 3: |
| 1204 | for { |
| 1205 | var innerWire uint64 |
| 1206 | var start int = iNdEx |
| 1207 | for shift := uint(0); ; shift += 7 { |
| 1208 | if shift >= 64 { |
| 1209 | return 0, ErrIntOverflowGenerated |
| 1210 | } |
| 1211 | if iNdEx >= l { |
| 1212 | return 0, io.ErrUnexpectedEOF |
| 1213 | } |
| 1214 | b := dAtA[iNdEx] |
| 1215 | iNdEx++ |
| 1216 | innerWire |= (uint64(b) & 0x7F) << shift |
| 1217 | if b < 0x80 { |
| 1218 | break |
| 1219 | } |
| 1220 | } |
| 1221 | innerWireType := int(innerWire & 0x7) |
| 1222 | if innerWireType == 4 { |
| 1223 | break |
| 1224 | } |
| 1225 | next, err := skipGenerated(dAtA[start:]) |
| 1226 | if err != nil { |
| 1227 | return 0, err |
| 1228 | } |
| 1229 | iNdEx = start + next |
| 1230 | } |
| 1231 | return iNdEx, nil |
| 1232 | case 4: |
| 1233 | return iNdEx, nil |
| 1234 | case 5: |
| 1235 | iNdEx += 4 |
| 1236 | return iNdEx, nil |
| 1237 | default: |
| 1238 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 1239 | } |
| 1240 | } |
| 1241 | panic("unreachable") |
| 1242 | } |
| 1243 | |
| 1244 | var ( |
| 1245 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 1246 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 1247 | ) |
| 1248 | |
| 1249 | func init() { |
| 1250 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/events/v1beta1/generated.proto", fileDescriptorGenerated) |
| 1251 | } |
| 1252 | |
| 1253 | var fileDescriptorGenerated = []byte{ |
| 1254 | // 814 bytes of a gzipped FileDescriptorProto |
| 1255 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xcd, 0x6e, 0xdb, 0x46, |
| 1256 | 0x10, 0x16, 0x13, 0x4b, 0xb6, 0x56, 0x49, 0x2c, 0x6f, 0x0e, 0xde, 0xb8, 0x00, 0xa5, 0x3a, 0x40, |
| 1257 | 0x60, 0x14, 0x08, 0x59, 0xa7, 0x45, 0xdb, 0x6b, 0x18, 0xbb, 0x45, 0x02, 0xbb, 0x01, 0xd6, 0x3e, |
| 1258 | 0x15, 0x3d, 0x64, 0x45, 0x4d, 0xe8, 0xad, 0xa5, 0x5d, 0x62, 0x77, 0x29, 0xc0, 0xb7, 0x5e, 0x0a, |
| 1259 | 0xf4, 0xd8, 0x67, 0xe8, 0x13, 0xf4, 0x31, 0x7c, 0xcc, 0x31, 0x27, 0xa1, 0x66, 0xdf, 0xa2, 0xa7, |
| 1260 | 0x82, 0xcb, 0x95, 0x28, 0x8b, 0x16, 0xec, 0x22, 0x37, 0x72, 0xe6, 0xfb, 0x99, 0x19, 0x0e, 0x07, |
| 1261 | 0x45, 0xe7, 0xdf, 0xe9, 0x80, 0xcb, 0xf0, 0x3c, 0x1b, 0x80, 0x12, 0x60, 0x40, 0x87, 0x13, 0x10, |
| 1262 | 0x43, 0xa9, 0x42, 0x97, 0x60, 0x29, 0x0f, 0x61, 0x02, 0xc2, 0xe8, 0x70, 0xb2, 0x3f, 0x00, 0xc3, |
| 1263 | 0xf6, 0xc3, 0x04, 0x04, 0x28, 0x66, 0x60, 0x18, 0xa4, 0x4a, 0x1a, 0x89, 0x9f, 0x94, 0xd0, 0x80, |
| 1264 | 0xa5, 0x3c, 0x28, 0xa1, 0x81, 0x83, 0xee, 0x3c, 0x4f, 0xb8, 0x39, 0xcb, 0x06, 0x41, 0x2c, 0xc7, |
| 1265 | 0x61, 0x22, 0x13, 0x19, 0x5a, 0xc6, 0x20, 0x7b, 0x6f, 0xdf, 0xec, 0x8b, 0x7d, 0x2a, 0x95, 0x76, |
| 1266 | 0x76, 0x17, 0x4c, 0x63, 0xa9, 0x20, 0x9c, 0xd4, 0xdc, 0x76, 0xbe, 0xae, 0x30, 0x63, 0x16, 0x9f, |
| 1267 | 0x71, 0x01, 0xea, 0x22, 0x4c, 0xcf, 0x93, 0x22, 0xa0, 0xc3, 0x31, 0x18, 0x76, 0x13, 0x2b, 0x5c, |
| 1268 | 0xc5, 0x52, 0x99, 0x30, 0x7c, 0x0c, 0x35, 0xc2, 0x37, 0xb7, 0x11, 0x74, 0x7c, 0x06, 0x63, 0x56, |
| 1269 | 0xe3, 0x7d, 0xb5, 0x8a, 0x97, 0x19, 0x3e, 0x0a, 0xb9, 0x30, 0xda, 0xa8, 0x65, 0xd2, 0xee, 0x9f, |
| 1270 | 0x6d, 0xd4, 0x3c, 0x2c, 0x26, 0x87, 0xdf, 0xa1, 0x8d, 0xa2, 0x85, 0x21, 0x33, 0x8c, 0x78, 0x7d, |
| 1271 | 0x6f, 0xaf, 0xf3, 0xe2, 0xcb, 0xa0, 0x1a, 0xef, 0x5c, 0x31, 0x48, 0xcf, 0x93, 0x22, 0xa0, 0x83, |
| 1272 | 0x02, 0x1d, 0x4c, 0xf6, 0x83, 0xb7, 0x83, 0x5f, 0x20, 0x36, 0xc7, 0x60, 0x58, 0x84, 0x2f, 0xa7, |
| 1273 | 0xbd, 0x46, 0x3e, 0xed, 0xa1, 0x2a, 0x46, 0xe7, 0xaa, 0xf8, 0x1d, 0x6a, 0xdb, 0x8f, 0x74, 0xca, |
| 1274 | 0xc7, 0x40, 0xee, 0x59, 0x8b, 0xf0, 0x6e, 0x16, 0xc7, 0x3c, 0x56, 0xb2, 0xa0, 0x45, 0x5b, 0xce, |
| 1275 | 0xa1, 0x7d, 0x38, 0x53, 0xa2, 0x95, 0x28, 0x7e, 0x83, 0x5a, 0x1a, 0x14, 0x07, 0x4d, 0xee, 0x5b, |
| 1276 | 0xf9, 0x67, 0xc1, 0xca, 0x05, 0x09, 0xac, 0xc0, 0x89, 0x45, 0x47, 0x28, 0x9f, 0xf6, 0x5a, 0xe5, |
| 1277 | 0x33, 0x75, 0x0a, 0xf8, 0x18, 0x3d, 0x56, 0x90, 0x4a, 0x65, 0xb8, 0x48, 0x5e, 0x49, 0x61, 0x94, |
| 1278 | 0x1c, 0x8d, 0x40, 0x91, 0xb5, 0xbe, 0xb7, 0xd7, 0x8e, 0x3e, 0x73, 0x65, 0x3c, 0xa6, 0x75, 0x08, |
| 1279 | 0xbd, 0x89, 0x87, 0x7f, 0x40, 0x5b, 0xf3, 0xf0, 0x6b, 0xa1, 0x0d, 0x13, 0x31, 0x90, 0xa6, 0x15, |
| 1280 | 0x7b, 0xe2, 0xc4, 0xb6, 0xe8, 0x32, 0x80, 0xd6, 0x39, 0xf8, 0x19, 0x6a, 0xb1, 0xd8, 0x70, 0x29, |
| 1281 | 0x48, 0xcb, 0xb2, 0x1f, 0x39, 0x76, 0xeb, 0xa5, 0x8d, 0x52, 0x97, 0x2d, 0x70, 0x0a, 0x98, 0x96, |
| 1282 | 0x82, 0xac, 0x5f, 0xc7, 0x51, 0x1b, 0xa5, 0x2e, 0x8b, 0x4f, 0x51, 0x5b, 0x41, 0xc2, 0xd4, 0x90, |
| 1283 | 0x8b, 0x84, 0x6c, 0xd8, 0xb1, 0x3d, 0x5d, 0x1c, 0x5b, 0xf1, 0x37, 0x54, 0x9f, 0x99, 0xc2, 0x7b, |
| 1284 | 0x50, 0x20, 0xe2, 0x85, 0x2f, 0x41, 0x67, 0x6c, 0x5a, 0x09, 0xe1, 0x37, 0x68, 0x5d, 0xc1, 0xa8, |
| 1285 | 0x58, 0x34, 0xd2, 0xbe, 0xbb, 0x66, 0x27, 0x9f, 0xf6, 0xd6, 0x69, 0xc9, 0xa3, 0x33, 0x01, 0xdc, |
| 1286 | 0x47, 0x6b, 0x42, 0x1a, 0x20, 0xc8, 0xf6, 0xf1, 0xc0, 0xf9, 0xae, 0xfd, 0x28, 0x0d, 0x50, 0x9b, |
| 1287 | 0x29, 0x10, 0xe6, 0x22, 0x05, 0xd2, 0xb9, 0x8e, 0x38, 0xbd, 0x48, 0x81, 0xda, 0x0c, 0x06, 0xd4, |
| 1288 | 0x1d, 0x42, 0xaa, 0x20, 0x2e, 0x14, 0x4f, 0x64, 0xa6, 0x62, 0x20, 0x0f, 0x6c, 0x61, 0xbd, 0x9b, |
| 1289 | 0x0a, 0x2b, 0x97, 0xc3, 0xc2, 0x22, 0xe2, 0xe4, 0xba, 0x07, 0x4b, 0x02, 0xb4, 0x26, 0x89, 0x7f, |
| 1290 | 0xf7, 0x10, 0xa9, 0x82, 0xdf, 0x73, 0xa5, 0xed, 0x62, 0x6a, 0xc3, 0xc6, 0x29, 0x79, 0x68, 0xfd, |
| 1291 | 0xbe, 0xb8, 0xdb, 0xca, 0xdb, 0x6d, 0xef, 0x3b, 0x6b, 0x72, 0xb0, 0x42, 0x93, 0xae, 0x74, 0xc3, |
| 1292 | 0xbf, 0x79, 0x68, 0xbb, 0x4a, 0x1e, 0xb1, 0xc5, 0x4a, 0x1e, 0xfd, 0xef, 0x4a, 0x7a, 0xae, 0x92, |
| 1293 | 0xed, 0x83, 0x9b, 0x25, 0xe9, 0x2a, 0x2f, 0xfc, 0x12, 0x6d, 0x56, 0xa9, 0x57, 0x32, 0x13, 0x86, |
| 1294 | 0x6c, 0xf6, 0xbd, 0xbd, 0x66, 0xb4, 0xed, 0x24, 0x37, 0x0f, 0xae, 0xa7, 0xe9, 0x32, 0x7e, 0xf7, |
| 1295 | 0x2f, 0x0f, 0x95, 0xff, 0xfb, 0x11, 0xd7, 0x06, 0xff, 0x5c, 0x3b, 0x54, 0xc1, 0xdd, 0x1a, 0x29, |
| 1296 | 0xd8, 0xf6, 0x4c, 0x75, 0x9d, 0xf3, 0xc6, 0x2c, 0xb2, 0x70, 0xa4, 0x0e, 0x51, 0x93, 0x1b, 0x18, |
| 1297 | 0x6b, 0x72, 0xaf, 0x7f, 0x7f, 0xaf, 0xf3, 0xa2, 0x7f, 0xdb, 0x05, 0x89, 0x1e, 0x3a, 0xb1, 0xe6, |
| 1298 | 0xeb, 0x82, 0x46, 0x4b, 0xf6, 0x6e, 0xee, 0xa1, 0xce, 0xc2, 0x85, 0xc1, 0x4f, 0x51, 0x33, 0xb6, |
| 1299 | 0xbd, 0x7b, 0xb6, 0xf7, 0x39, 0xa9, 0xec, 0xb8, 0xcc, 0xe1, 0x0c, 0x75, 0x47, 0x4c, 0x9b, 0xb7, |
| 1300 | 0x03, 0x0d, 0x6a, 0x02, 0xc3, 0x4f, 0xb9, 0x93, 0xf3, 0xa5, 0x3d, 0x5a, 0x12, 0xa4, 0x35, 0x0b, |
| 1301 | 0xfc, 0x2d, 0x6a, 0x6a, 0xc3, 0x0c, 0xd8, 0xa3, 0xd9, 0x8e, 0x3e, 0x9f, 0xd5, 0x76, 0x52, 0x04, |
| 1302 | 0xff, 0x9d, 0xf6, 0xba, 0x0b, 0x8d, 0xd8, 0x18, 0x2d, 0xf1, 0xd1, 0xf3, 0xcb, 0x2b, 0xbf, 0xf1, |
| 1303 | 0xe1, 0xca, 0x6f, 0x7c, 0xbc, 0xf2, 0x1b, 0xbf, 0xe6, 0xbe, 0x77, 0x99, 0xfb, 0xde, 0x87, 0xdc, |
| 1304 | 0xf7, 0x3e, 0xe6, 0xbe, 0xf7, 0x77, 0xee, 0x7b, 0x7f, 0xfc, 0xe3, 0x37, 0x7e, 0x5a, 0x77, 0xf3, |
| 1305 | 0xfa, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x69, 0xa9, 0x7b, 0x6e, 0xf2, 0x07, 0x00, 0x00, |
| 1306 | } |