github.com/cosmos/cosmos-sdk@v0.50.10/x/authz/event.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/authz/v1beta1/event.proto 3 4 package authz 5 6 import ( 7 fmt "fmt" 8 _ "github.com/cosmos/cosmos-proto" 9 proto "github.com/cosmos/gogoproto/proto" 10 io "io" 11 math "math" 12 math_bits "math/bits" 13 ) 14 15 // Reference imports to suppress errors if they are not otherwise used. 16 var _ = proto.Marshal 17 var _ = fmt.Errorf 18 var _ = math.Inf 19 20 // This is a compile-time assertion to ensure that this generated file 21 // is compatible with the proto package it is being compiled against. 22 // A compilation error at this line likely means your copy of the 23 // proto package needs to be updated. 24 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 25 26 // EventGrant is emitted on Msg/Grant 27 type EventGrant struct { 28 // Msg type URL for which an autorization is granted 29 MsgTypeUrl string `protobuf:"bytes,2,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"` 30 // Granter account address 31 Granter string `protobuf:"bytes,3,opt,name=granter,proto3" json:"granter,omitempty"` 32 // Grantee account address 33 Grantee string `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"` 34 } 35 36 func (m *EventGrant) Reset() { *m = EventGrant{} } 37 func (m *EventGrant) String() string { return proto.CompactTextString(m) } 38 func (*EventGrant) ProtoMessage() {} 39 func (*EventGrant) Descriptor() ([]byte, []int) { 40 return fileDescriptor_1f88cbc71a8baf1f, []int{0} 41 } 42 func (m *EventGrant) XXX_Unmarshal(b []byte) error { 43 return m.Unmarshal(b) 44 } 45 func (m *EventGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 46 if deterministic { 47 return xxx_messageInfo_EventGrant.Marshal(b, m, deterministic) 48 } else { 49 b = b[:cap(b)] 50 n, err := m.MarshalToSizedBuffer(b) 51 if err != nil { 52 return nil, err 53 } 54 return b[:n], nil 55 } 56 } 57 func (m *EventGrant) XXX_Merge(src proto.Message) { 58 xxx_messageInfo_EventGrant.Merge(m, src) 59 } 60 func (m *EventGrant) XXX_Size() int { 61 return m.Size() 62 } 63 func (m *EventGrant) XXX_DiscardUnknown() { 64 xxx_messageInfo_EventGrant.DiscardUnknown(m) 65 } 66 67 var xxx_messageInfo_EventGrant proto.InternalMessageInfo 68 69 func (m *EventGrant) GetMsgTypeUrl() string { 70 if m != nil { 71 return m.MsgTypeUrl 72 } 73 return "" 74 } 75 76 func (m *EventGrant) GetGranter() string { 77 if m != nil { 78 return m.Granter 79 } 80 return "" 81 } 82 83 func (m *EventGrant) GetGrantee() string { 84 if m != nil { 85 return m.Grantee 86 } 87 return "" 88 } 89 90 // EventRevoke is emitted on Msg/Revoke 91 type EventRevoke struct { 92 // Msg type URL for which an autorization is revoked 93 MsgTypeUrl string `protobuf:"bytes,2,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"` 94 // Granter account address 95 Granter string `protobuf:"bytes,3,opt,name=granter,proto3" json:"granter,omitempty"` 96 // Grantee account address 97 Grantee string `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"` 98 } 99 100 func (m *EventRevoke) Reset() { *m = EventRevoke{} } 101 func (m *EventRevoke) String() string { return proto.CompactTextString(m) } 102 func (*EventRevoke) ProtoMessage() {} 103 func (*EventRevoke) Descriptor() ([]byte, []int) { 104 return fileDescriptor_1f88cbc71a8baf1f, []int{1} 105 } 106 func (m *EventRevoke) XXX_Unmarshal(b []byte) error { 107 return m.Unmarshal(b) 108 } 109 func (m *EventRevoke) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 110 if deterministic { 111 return xxx_messageInfo_EventRevoke.Marshal(b, m, deterministic) 112 } else { 113 b = b[:cap(b)] 114 n, err := m.MarshalToSizedBuffer(b) 115 if err != nil { 116 return nil, err 117 } 118 return b[:n], nil 119 } 120 } 121 func (m *EventRevoke) XXX_Merge(src proto.Message) { 122 xxx_messageInfo_EventRevoke.Merge(m, src) 123 } 124 func (m *EventRevoke) XXX_Size() int { 125 return m.Size() 126 } 127 func (m *EventRevoke) XXX_DiscardUnknown() { 128 xxx_messageInfo_EventRevoke.DiscardUnknown(m) 129 } 130 131 var xxx_messageInfo_EventRevoke proto.InternalMessageInfo 132 133 func (m *EventRevoke) GetMsgTypeUrl() string { 134 if m != nil { 135 return m.MsgTypeUrl 136 } 137 return "" 138 } 139 140 func (m *EventRevoke) GetGranter() string { 141 if m != nil { 142 return m.Granter 143 } 144 return "" 145 } 146 147 func (m *EventRevoke) GetGrantee() string { 148 if m != nil { 149 return m.Grantee 150 } 151 return "" 152 } 153 154 func init() { 155 proto.RegisterType((*EventGrant)(nil), "cosmos.authz.v1beta1.EventGrant") 156 proto.RegisterType((*EventRevoke)(nil), "cosmos.authz.v1beta1.EventRevoke") 157 } 158 159 func init() { proto.RegisterFile("cosmos/authz/v1beta1/event.proto", fileDescriptor_1f88cbc71a8baf1f) } 160 161 var fileDescriptor_1f88cbc71a8baf1f = []byte{ 162 // 245 bytes of a gzipped FileDescriptorProto 163 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0xce, 0x2f, 0xce, 164 0xcd, 0x2f, 0xd6, 0x4f, 0x2c, 0x2d, 0xc9, 0xa8, 0xd2, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 165 0xd4, 0x4f, 0x2d, 0x4b, 0xcd, 0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x81, 0xa8, 166 0xd0, 0x03, 0xab, 0xd0, 0x83, 0xaa, 0x90, 0x92, 0x84, 0x88, 0xc6, 0x83, 0xd5, 0xe8, 0x43, 0x95, 167 0x80, 0x39, 0x4a, 0xd3, 0x18, 0xb9, 0xb8, 0x5c, 0x41, 0x06, 0xb8, 0x17, 0x25, 0xe6, 0x95, 0x08, 168 0x29, 0x70, 0xf1, 0xe4, 0x16, 0xa7, 0xc7, 0x97, 0x54, 0x16, 0xa4, 0xc6, 0x97, 0x16, 0xe5, 0x48, 169 0x30, 0x29, 0x30, 0x6a, 0x70, 0x06, 0x71, 0xe5, 0x16, 0xa7, 0x87, 0x54, 0x16, 0xa4, 0x86, 0x16, 170 0xe5, 0x08, 0x19, 0x71, 0xb1, 0xa7, 0x83, 0x94, 0xa6, 0x16, 0x49, 0x30, 0x83, 0x24, 0x9d, 0x24, 171 0x2e, 0x6d, 0xd1, 0x85, 0x59, 0xeb, 0x98, 0x92, 0x52, 0x94, 0x5a, 0x5c, 0x1c, 0x5c, 0x52, 0x94, 172 0x99, 0x97, 0x1e, 0x04, 0x53, 0x88, 0xd0, 0x93, 0x2a, 0xc1, 0x42, 0x9c, 0x9e, 0x54, 0xa5, 0xe9, 173 0x8c, 0x5c, 0xdc, 0x60, 0x87, 0x05, 0xa5, 0x96, 0xe5, 0x67, 0xa7, 0x0e, 0x1e, 0x97, 0x39, 0xd9, 174 0x9d, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 175 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x4a, 0x7a, 0x66, 0x49, 0x46, 176 0x69, 0x92, 0x5e, 0x72, 0x7e, 0x2e, 0x34, 0x94, 0xa1, 0x94, 0x6e, 0x71, 0x4a, 0xb6, 0x7e, 0x05, 177 0x24, 0xde, 0x92, 0xd8, 0xc0, 0x21, 0x6f, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x5b, 0x74, 0xc2, 178 0x29, 0xce, 0x01, 0x00, 0x00, 179 } 180 181 func (m *EventGrant) Marshal() (dAtA []byte, err error) { 182 size := m.Size() 183 dAtA = make([]byte, size) 184 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 185 if err != nil { 186 return nil, err 187 } 188 return dAtA[:n], nil 189 } 190 191 func (m *EventGrant) MarshalTo(dAtA []byte) (int, error) { 192 size := m.Size() 193 return m.MarshalToSizedBuffer(dAtA[:size]) 194 } 195 196 func (m *EventGrant) MarshalToSizedBuffer(dAtA []byte) (int, error) { 197 i := len(dAtA) 198 _ = i 199 var l int 200 _ = l 201 if len(m.Grantee) > 0 { 202 i -= len(m.Grantee) 203 copy(dAtA[i:], m.Grantee) 204 i = encodeVarintEvent(dAtA, i, uint64(len(m.Grantee))) 205 i-- 206 dAtA[i] = 0x22 207 } 208 if len(m.Granter) > 0 { 209 i -= len(m.Granter) 210 copy(dAtA[i:], m.Granter) 211 i = encodeVarintEvent(dAtA, i, uint64(len(m.Granter))) 212 i-- 213 dAtA[i] = 0x1a 214 } 215 if len(m.MsgTypeUrl) > 0 { 216 i -= len(m.MsgTypeUrl) 217 copy(dAtA[i:], m.MsgTypeUrl) 218 i = encodeVarintEvent(dAtA, i, uint64(len(m.MsgTypeUrl))) 219 i-- 220 dAtA[i] = 0x12 221 } 222 return len(dAtA) - i, nil 223 } 224 225 func (m *EventRevoke) Marshal() (dAtA []byte, err error) { 226 size := m.Size() 227 dAtA = make([]byte, size) 228 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 229 if err != nil { 230 return nil, err 231 } 232 return dAtA[:n], nil 233 } 234 235 func (m *EventRevoke) MarshalTo(dAtA []byte) (int, error) { 236 size := m.Size() 237 return m.MarshalToSizedBuffer(dAtA[:size]) 238 } 239 240 func (m *EventRevoke) MarshalToSizedBuffer(dAtA []byte) (int, error) { 241 i := len(dAtA) 242 _ = i 243 var l int 244 _ = l 245 if len(m.Grantee) > 0 { 246 i -= len(m.Grantee) 247 copy(dAtA[i:], m.Grantee) 248 i = encodeVarintEvent(dAtA, i, uint64(len(m.Grantee))) 249 i-- 250 dAtA[i] = 0x22 251 } 252 if len(m.Granter) > 0 { 253 i -= len(m.Granter) 254 copy(dAtA[i:], m.Granter) 255 i = encodeVarintEvent(dAtA, i, uint64(len(m.Granter))) 256 i-- 257 dAtA[i] = 0x1a 258 } 259 if len(m.MsgTypeUrl) > 0 { 260 i -= len(m.MsgTypeUrl) 261 copy(dAtA[i:], m.MsgTypeUrl) 262 i = encodeVarintEvent(dAtA, i, uint64(len(m.MsgTypeUrl))) 263 i-- 264 dAtA[i] = 0x12 265 } 266 return len(dAtA) - i, nil 267 } 268 269 func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { 270 offset -= sovEvent(v) 271 base := offset 272 for v >= 1<<7 { 273 dAtA[offset] = uint8(v&0x7f | 0x80) 274 v >>= 7 275 offset++ 276 } 277 dAtA[offset] = uint8(v) 278 return base 279 } 280 func (m *EventGrant) Size() (n int) { 281 if m == nil { 282 return 0 283 } 284 var l int 285 _ = l 286 l = len(m.MsgTypeUrl) 287 if l > 0 { 288 n += 1 + l + sovEvent(uint64(l)) 289 } 290 l = len(m.Granter) 291 if l > 0 { 292 n += 1 + l + sovEvent(uint64(l)) 293 } 294 l = len(m.Grantee) 295 if l > 0 { 296 n += 1 + l + sovEvent(uint64(l)) 297 } 298 return n 299 } 300 301 func (m *EventRevoke) Size() (n int) { 302 if m == nil { 303 return 0 304 } 305 var l int 306 _ = l 307 l = len(m.MsgTypeUrl) 308 if l > 0 { 309 n += 1 + l + sovEvent(uint64(l)) 310 } 311 l = len(m.Granter) 312 if l > 0 { 313 n += 1 + l + sovEvent(uint64(l)) 314 } 315 l = len(m.Grantee) 316 if l > 0 { 317 n += 1 + l + sovEvent(uint64(l)) 318 } 319 return n 320 } 321 322 func sovEvent(x uint64) (n int) { 323 return (math_bits.Len64(x|1) + 6) / 7 324 } 325 func sozEvent(x uint64) (n int) { 326 return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 327 } 328 func (m *EventGrant) Unmarshal(dAtA []byte) error { 329 l := len(dAtA) 330 iNdEx := 0 331 for iNdEx < l { 332 preIndex := iNdEx 333 var wire uint64 334 for shift := uint(0); ; shift += 7 { 335 if shift >= 64 { 336 return ErrIntOverflowEvent 337 } 338 if iNdEx >= l { 339 return io.ErrUnexpectedEOF 340 } 341 b := dAtA[iNdEx] 342 iNdEx++ 343 wire |= uint64(b&0x7F) << shift 344 if b < 0x80 { 345 break 346 } 347 } 348 fieldNum := int32(wire >> 3) 349 wireType := int(wire & 0x7) 350 if wireType == 4 { 351 return fmt.Errorf("proto: EventGrant: wiretype end group for non-group") 352 } 353 if fieldNum <= 0 { 354 return fmt.Errorf("proto: EventGrant: illegal tag %d (wire type %d)", fieldNum, wire) 355 } 356 switch fieldNum { 357 case 2: 358 if wireType != 2 { 359 return fmt.Errorf("proto: wrong wireType = %d for field MsgTypeUrl", wireType) 360 } 361 var stringLen uint64 362 for shift := uint(0); ; shift += 7 { 363 if shift >= 64 { 364 return ErrIntOverflowEvent 365 } 366 if iNdEx >= l { 367 return io.ErrUnexpectedEOF 368 } 369 b := dAtA[iNdEx] 370 iNdEx++ 371 stringLen |= uint64(b&0x7F) << shift 372 if b < 0x80 { 373 break 374 } 375 } 376 intStringLen := int(stringLen) 377 if intStringLen < 0 { 378 return ErrInvalidLengthEvent 379 } 380 postIndex := iNdEx + intStringLen 381 if postIndex < 0 { 382 return ErrInvalidLengthEvent 383 } 384 if postIndex > l { 385 return io.ErrUnexpectedEOF 386 } 387 m.MsgTypeUrl = string(dAtA[iNdEx:postIndex]) 388 iNdEx = postIndex 389 case 3: 390 if wireType != 2 { 391 return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType) 392 } 393 var stringLen uint64 394 for shift := uint(0); ; shift += 7 { 395 if shift >= 64 { 396 return ErrIntOverflowEvent 397 } 398 if iNdEx >= l { 399 return io.ErrUnexpectedEOF 400 } 401 b := dAtA[iNdEx] 402 iNdEx++ 403 stringLen |= uint64(b&0x7F) << shift 404 if b < 0x80 { 405 break 406 } 407 } 408 intStringLen := int(stringLen) 409 if intStringLen < 0 { 410 return ErrInvalidLengthEvent 411 } 412 postIndex := iNdEx + intStringLen 413 if postIndex < 0 { 414 return ErrInvalidLengthEvent 415 } 416 if postIndex > l { 417 return io.ErrUnexpectedEOF 418 } 419 m.Granter = string(dAtA[iNdEx:postIndex]) 420 iNdEx = postIndex 421 case 4: 422 if wireType != 2 { 423 return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) 424 } 425 var stringLen uint64 426 for shift := uint(0); ; shift += 7 { 427 if shift >= 64 { 428 return ErrIntOverflowEvent 429 } 430 if iNdEx >= l { 431 return io.ErrUnexpectedEOF 432 } 433 b := dAtA[iNdEx] 434 iNdEx++ 435 stringLen |= uint64(b&0x7F) << shift 436 if b < 0x80 { 437 break 438 } 439 } 440 intStringLen := int(stringLen) 441 if intStringLen < 0 { 442 return ErrInvalidLengthEvent 443 } 444 postIndex := iNdEx + intStringLen 445 if postIndex < 0 { 446 return ErrInvalidLengthEvent 447 } 448 if postIndex > l { 449 return io.ErrUnexpectedEOF 450 } 451 m.Grantee = string(dAtA[iNdEx:postIndex]) 452 iNdEx = postIndex 453 default: 454 iNdEx = preIndex 455 skippy, err := skipEvent(dAtA[iNdEx:]) 456 if err != nil { 457 return err 458 } 459 if (skippy < 0) || (iNdEx+skippy) < 0 { 460 return ErrInvalidLengthEvent 461 } 462 if (iNdEx + skippy) > l { 463 return io.ErrUnexpectedEOF 464 } 465 iNdEx += skippy 466 } 467 } 468 469 if iNdEx > l { 470 return io.ErrUnexpectedEOF 471 } 472 return nil 473 } 474 func (m *EventRevoke) Unmarshal(dAtA []byte) error { 475 l := len(dAtA) 476 iNdEx := 0 477 for iNdEx < l { 478 preIndex := iNdEx 479 var wire uint64 480 for shift := uint(0); ; shift += 7 { 481 if shift >= 64 { 482 return ErrIntOverflowEvent 483 } 484 if iNdEx >= l { 485 return io.ErrUnexpectedEOF 486 } 487 b := dAtA[iNdEx] 488 iNdEx++ 489 wire |= uint64(b&0x7F) << shift 490 if b < 0x80 { 491 break 492 } 493 } 494 fieldNum := int32(wire >> 3) 495 wireType := int(wire & 0x7) 496 if wireType == 4 { 497 return fmt.Errorf("proto: EventRevoke: wiretype end group for non-group") 498 } 499 if fieldNum <= 0 { 500 return fmt.Errorf("proto: EventRevoke: illegal tag %d (wire type %d)", fieldNum, wire) 501 } 502 switch fieldNum { 503 case 2: 504 if wireType != 2 { 505 return fmt.Errorf("proto: wrong wireType = %d for field MsgTypeUrl", wireType) 506 } 507 var stringLen uint64 508 for shift := uint(0); ; shift += 7 { 509 if shift >= 64 { 510 return ErrIntOverflowEvent 511 } 512 if iNdEx >= l { 513 return io.ErrUnexpectedEOF 514 } 515 b := dAtA[iNdEx] 516 iNdEx++ 517 stringLen |= uint64(b&0x7F) << shift 518 if b < 0x80 { 519 break 520 } 521 } 522 intStringLen := int(stringLen) 523 if intStringLen < 0 { 524 return ErrInvalidLengthEvent 525 } 526 postIndex := iNdEx + intStringLen 527 if postIndex < 0 { 528 return ErrInvalidLengthEvent 529 } 530 if postIndex > l { 531 return io.ErrUnexpectedEOF 532 } 533 m.MsgTypeUrl = string(dAtA[iNdEx:postIndex]) 534 iNdEx = postIndex 535 case 3: 536 if wireType != 2 { 537 return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType) 538 } 539 var stringLen uint64 540 for shift := uint(0); ; shift += 7 { 541 if shift >= 64 { 542 return ErrIntOverflowEvent 543 } 544 if iNdEx >= l { 545 return io.ErrUnexpectedEOF 546 } 547 b := dAtA[iNdEx] 548 iNdEx++ 549 stringLen |= uint64(b&0x7F) << shift 550 if b < 0x80 { 551 break 552 } 553 } 554 intStringLen := int(stringLen) 555 if intStringLen < 0 { 556 return ErrInvalidLengthEvent 557 } 558 postIndex := iNdEx + intStringLen 559 if postIndex < 0 { 560 return ErrInvalidLengthEvent 561 } 562 if postIndex > l { 563 return io.ErrUnexpectedEOF 564 } 565 m.Granter = string(dAtA[iNdEx:postIndex]) 566 iNdEx = postIndex 567 case 4: 568 if wireType != 2 { 569 return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) 570 } 571 var stringLen uint64 572 for shift := uint(0); ; shift += 7 { 573 if shift >= 64 { 574 return ErrIntOverflowEvent 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 ErrInvalidLengthEvent 589 } 590 postIndex := iNdEx + intStringLen 591 if postIndex < 0 { 592 return ErrInvalidLengthEvent 593 } 594 if postIndex > l { 595 return io.ErrUnexpectedEOF 596 } 597 m.Grantee = string(dAtA[iNdEx:postIndex]) 598 iNdEx = postIndex 599 default: 600 iNdEx = preIndex 601 skippy, err := skipEvent(dAtA[iNdEx:]) 602 if err != nil { 603 return err 604 } 605 if (skippy < 0) || (iNdEx+skippy) < 0 { 606 return ErrInvalidLengthEvent 607 } 608 if (iNdEx + skippy) > l { 609 return io.ErrUnexpectedEOF 610 } 611 iNdEx += skippy 612 } 613 } 614 615 if iNdEx > l { 616 return io.ErrUnexpectedEOF 617 } 618 return nil 619 } 620 func skipEvent(dAtA []byte) (n int, err error) { 621 l := len(dAtA) 622 iNdEx := 0 623 depth := 0 624 for iNdEx < l { 625 var wire uint64 626 for shift := uint(0); ; shift += 7 { 627 if shift >= 64 { 628 return 0, ErrIntOverflowEvent 629 } 630 if iNdEx >= l { 631 return 0, io.ErrUnexpectedEOF 632 } 633 b := dAtA[iNdEx] 634 iNdEx++ 635 wire |= (uint64(b) & 0x7F) << shift 636 if b < 0x80 { 637 break 638 } 639 } 640 wireType := int(wire & 0x7) 641 switch wireType { 642 case 0: 643 for shift := uint(0); ; shift += 7 { 644 if shift >= 64 { 645 return 0, ErrIntOverflowEvent 646 } 647 if iNdEx >= l { 648 return 0, io.ErrUnexpectedEOF 649 } 650 iNdEx++ 651 if dAtA[iNdEx-1] < 0x80 { 652 break 653 } 654 } 655 case 1: 656 iNdEx += 8 657 case 2: 658 var length int 659 for shift := uint(0); ; shift += 7 { 660 if shift >= 64 { 661 return 0, ErrIntOverflowEvent 662 } 663 if iNdEx >= l { 664 return 0, io.ErrUnexpectedEOF 665 } 666 b := dAtA[iNdEx] 667 iNdEx++ 668 length |= (int(b) & 0x7F) << shift 669 if b < 0x80 { 670 break 671 } 672 } 673 if length < 0 { 674 return 0, ErrInvalidLengthEvent 675 } 676 iNdEx += length 677 case 3: 678 depth++ 679 case 4: 680 if depth == 0 { 681 return 0, ErrUnexpectedEndOfGroupEvent 682 } 683 depth-- 684 case 5: 685 iNdEx += 4 686 default: 687 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 688 } 689 if iNdEx < 0 { 690 return 0, ErrInvalidLengthEvent 691 } 692 if depth == 0 { 693 return iNdEx, nil 694 } 695 } 696 return 0, io.ErrUnexpectedEOF 697 } 698 699 var ( 700 ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") 701 ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") 702 ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") 703 )