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