github.com/cosmos/cosmos-sdk@v0.50.10/x/group/events.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/group/v1/events.proto 3 4 package group 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 // EventCreateGroup is an event emitted when a group is created. 27 type EventCreateGroup struct { 28 // group_id is the unique ID of the group. 29 GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` 30 } 31 32 func (m *EventCreateGroup) Reset() { *m = EventCreateGroup{} } 33 func (m *EventCreateGroup) String() string { return proto.CompactTextString(m) } 34 func (*EventCreateGroup) ProtoMessage() {} 35 func (*EventCreateGroup) Descriptor() ([]byte, []int) { 36 return fileDescriptor_e8d753981546f032, []int{0} 37 } 38 func (m *EventCreateGroup) XXX_Unmarshal(b []byte) error { 39 return m.Unmarshal(b) 40 } 41 func (m *EventCreateGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 42 if deterministic { 43 return xxx_messageInfo_EventCreateGroup.Marshal(b, m, deterministic) 44 } else { 45 b = b[:cap(b)] 46 n, err := m.MarshalToSizedBuffer(b) 47 if err != nil { 48 return nil, err 49 } 50 return b[:n], nil 51 } 52 } 53 func (m *EventCreateGroup) XXX_Merge(src proto.Message) { 54 xxx_messageInfo_EventCreateGroup.Merge(m, src) 55 } 56 func (m *EventCreateGroup) XXX_Size() int { 57 return m.Size() 58 } 59 func (m *EventCreateGroup) XXX_DiscardUnknown() { 60 xxx_messageInfo_EventCreateGroup.DiscardUnknown(m) 61 } 62 63 var xxx_messageInfo_EventCreateGroup proto.InternalMessageInfo 64 65 func (m *EventCreateGroup) GetGroupId() uint64 { 66 if m != nil { 67 return m.GroupId 68 } 69 return 0 70 } 71 72 // EventUpdateGroup is an event emitted when a group is updated. 73 type EventUpdateGroup struct { 74 // group_id is the unique ID of the group. 75 GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` 76 } 77 78 func (m *EventUpdateGroup) Reset() { *m = EventUpdateGroup{} } 79 func (m *EventUpdateGroup) String() string { return proto.CompactTextString(m) } 80 func (*EventUpdateGroup) ProtoMessage() {} 81 func (*EventUpdateGroup) Descriptor() ([]byte, []int) { 82 return fileDescriptor_e8d753981546f032, []int{1} 83 } 84 func (m *EventUpdateGroup) XXX_Unmarshal(b []byte) error { 85 return m.Unmarshal(b) 86 } 87 func (m *EventUpdateGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 88 if deterministic { 89 return xxx_messageInfo_EventUpdateGroup.Marshal(b, m, deterministic) 90 } else { 91 b = b[:cap(b)] 92 n, err := m.MarshalToSizedBuffer(b) 93 if err != nil { 94 return nil, err 95 } 96 return b[:n], nil 97 } 98 } 99 func (m *EventUpdateGroup) XXX_Merge(src proto.Message) { 100 xxx_messageInfo_EventUpdateGroup.Merge(m, src) 101 } 102 func (m *EventUpdateGroup) XXX_Size() int { 103 return m.Size() 104 } 105 func (m *EventUpdateGroup) XXX_DiscardUnknown() { 106 xxx_messageInfo_EventUpdateGroup.DiscardUnknown(m) 107 } 108 109 var xxx_messageInfo_EventUpdateGroup proto.InternalMessageInfo 110 111 func (m *EventUpdateGroup) GetGroupId() uint64 { 112 if m != nil { 113 return m.GroupId 114 } 115 return 0 116 } 117 118 // EventCreateGroupPolicy is an event emitted when a group policy is created. 119 type EventCreateGroupPolicy struct { 120 // address is the account address of the group policy. 121 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 122 } 123 124 func (m *EventCreateGroupPolicy) Reset() { *m = EventCreateGroupPolicy{} } 125 func (m *EventCreateGroupPolicy) String() string { return proto.CompactTextString(m) } 126 func (*EventCreateGroupPolicy) ProtoMessage() {} 127 func (*EventCreateGroupPolicy) Descriptor() ([]byte, []int) { 128 return fileDescriptor_e8d753981546f032, []int{2} 129 } 130 func (m *EventCreateGroupPolicy) XXX_Unmarshal(b []byte) error { 131 return m.Unmarshal(b) 132 } 133 func (m *EventCreateGroupPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 134 if deterministic { 135 return xxx_messageInfo_EventCreateGroupPolicy.Marshal(b, m, deterministic) 136 } else { 137 b = b[:cap(b)] 138 n, err := m.MarshalToSizedBuffer(b) 139 if err != nil { 140 return nil, err 141 } 142 return b[:n], nil 143 } 144 } 145 func (m *EventCreateGroupPolicy) XXX_Merge(src proto.Message) { 146 xxx_messageInfo_EventCreateGroupPolicy.Merge(m, src) 147 } 148 func (m *EventCreateGroupPolicy) XXX_Size() int { 149 return m.Size() 150 } 151 func (m *EventCreateGroupPolicy) XXX_DiscardUnknown() { 152 xxx_messageInfo_EventCreateGroupPolicy.DiscardUnknown(m) 153 } 154 155 var xxx_messageInfo_EventCreateGroupPolicy proto.InternalMessageInfo 156 157 func (m *EventCreateGroupPolicy) GetAddress() string { 158 if m != nil { 159 return m.Address 160 } 161 return "" 162 } 163 164 // EventUpdateGroupPolicy is an event emitted when a group policy is updated. 165 type EventUpdateGroupPolicy struct { 166 // address is the account address of the group policy. 167 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 168 } 169 170 func (m *EventUpdateGroupPolicy) Reset() { *m = EventUpdateGroupPolicy{} } 171 func (m *EventUpdateGroupPolicy) String() string { return proto.CompactTextString(m) } 172 func (*EventUpdateGroupPolicy) ProtoMessage() {} 173 func (*EventUpdateGroupPolicy) Descriptor() ([]byte, []int) { 174 return fileDescriptor_e8d753981546f032, []int{3} 175 } 176 func (m *EventUpdateGroupPolicy) XXX_Unmarshal(b []byte) error { 177 return m.Unmarshal(b) 178 } 179 func (m *EventUpdateGroupPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 180 if deterministic { 181 return xxx_messageInfo_EventUpdateGroupPolicy.Marshal(b, m, deterministic) 182 } else { 183 b = b[:cap(b)] 184 n, err := m.MarshalToSizedBuffer(b) 185 if err != nil { 186 return nil, err 187 } 188 return b[:n], nil 189 } 190 } 191 func (m *EventUpdateGroupPolicy) XXX_Merge(src proto.Message) { 192 xxx_messageInfo_EventUpdateGroupPolicy.Merge(m, src) 193 } 194 func (m *EventUpdateGroupPolicy) XXX_Size() int { 195 return m.Size() 196 } 197 func (m *EventUpdateGroupPolicy) XXX_DiscardUnknown() { 198 xxx_messageInfo_EventUpdateGroupPolicy.DiscardUnknown(m) 199 } 200 201 var xxx_messageInfo_EventUpdateGroupPolicy proto.InternalMessageInfo 202 203 func (m *EventUpdateGroupPolicy) GetAddress() string { 204 if m != nil { 205 return m.Address 206 } 207 return "" 208 } 209 210 // EventSubmitProposal is an event emitted when a proposal is created. 211 type EventSubmitProposal struct { 212 // proposal_id is the unique ID of the proposal. 213 ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` 214 } 215 216 func (m *EventSubmitProposal) Reset() { *m = EventSubmitProposal{} } 217 func (m *EventSubmitProposal) String() string { return proto.CompactTextString(m) } 218 func (*EventSubmitProposal) ProtoMessage() {} 219 func (*EventSubmitProposal) Descriptor() ([]byte, []int) { 220 return fileDescriptor_e8d753981546f032, []int{4} 221 } 222 func (m *EventSubmitProposal) XXX_Unmarshal(b []byte) error { 223 return m.Unmarshal(b) 224 } 225 func (m *EventSubmitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 226 if deterministic { 227 return xxx_messageInfo_EventSubmitProposal.Marshal(b, m, deterministic) 228 } else { 229 b = b[:cap(b)] 230 n, err := m.MarshalToSizedBuffer(b) 231 if err != nil { 232 return nil, err 233 } 234 return b[:n], nil 235 } 236 } 237 func (m *EventSubmitProposal) XXX_Merge(src proto.Message) { 238 xxx_messageInfo_EventSubmitProposal.Merge(m, src) 239 } 240 func (m *EventSubmitProposal) XXX_Size() int { 241 return m.Size() 242 } 243 func (m *EventSubmitProposal) XXX_DiscardUnknown() { 244 xxx_messageInfo_EventSubmitProposal.DiscardUnknown(m) 245 } 246 247 var xxx_messageInfo_EventSubmitProposal proto.InternalMessageInfo 248 249 func (m *EventSubmitProposal) GetProposalId() uint64 { 250 if m != nil { 251 return m.ProposalId 252 } 253 return 0 254 } 255 256 // EventWithdrawProposal is an event emitted when a proposal is withdrawn. 257 type EventWithdrawProposal struct { 258 // proposal_id is the unique ID of the proposal. 259 ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` 260 } 261 262 func (m *EventWithdrawProposal) Reset() { *m = EventWithdrawProposal{} } 263 func (m *EventWithdrawProposal) String() string { return proto.CompactTextString(m) } 264 func (*EventWithdrawProposal) ProtoMessage() {} 265 func (*EventWithdrawProposal) Descriptor() ([]byte, []int) { 266 return fileDescriptor_e8d753981546f032, []int{5} 267 } 268 func (m *EventWithdrawProposal) XXX_Unmarshal(b []byte) error { 269 return m.Unmarshal(b) 270 } 271 func (m *EventWithdrawProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 272 if deterministic { 273 return xxx_messageInfo_EventWithdrawProposal.Marshal(b, m, deterministic) 274 } else { 275 b = b[:cap(b)] 276 n, err := m.MarshalToSizedBuffer(b) 277 if err != nil { 278 return nil, err 279 } 280 return b[:n], nil 281 } 282 } 283 func (m *EventWithdrawProposal) XXX_Merge(src proto.Message) { 284 xxx_messageInfo_EventWithdrawProposal.Merge(m, src) 285 } 286 func (m *EventWithdrawProposal) XXX_Size() int { 287 return m.Size() 288 } 289 func (m *EventWithdrawProposal) XXX_DiscardUnknown() { 290 xxx_messageInfo_EventWithdrawProposal.DiscardUnknown(m) 291 } 292 293 var xxx_messageInfo_EventWithdrawProposal proto.InternalMessageInfo 294 295 func (m *EventWithdrawProposal) GetProposalId() uint64 { 296 if m != nil { 297 return m.ProposalId 298 } 299 return 0 300 } 301 302 // EventVote is an event emitted when a voter votes on a proposal. 303 type EventVote struct { 304 // proposal_id is the unique ID of the proposal. 305 ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` 306 } 307 308 func (m *EventVote) Reset() { *m = EventVote{} } 309 func (m *EventVote) String() string { return proto.CompactTextString(m) } 310 func (*EventVote) ProtoMessage() {} 311 func (*EventVote) Descriptor() ([]byte, []int) { 312 return fileDescriptor_e8d753981546f032, []int{6} 313 } 314 func (m *EventVote) XXX_Unmarshal(b []byte) error { 315 return m.Unmarshal(b) 316 } 317 func (m *EventVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 318 if deterministic { 319 return xxx_messageInfo_EventVote.Marshal(b, m, deterministic) 320 } else { 321 b = b[:cap(b)] 322 n, err := m.MarshalToSizedBuffer(b) 323 if err != nil { 324 return nil, err 325 } 326 return b[:n], nil 327 } 328 } 329 func (m *EventVote) XXX_Merge(src proto.Message) { 330 xxx_messageInfo_EventVote.Merge(m, src) 331 } 332 func (m *EventVote) XXX_Size() int { 333 return m.Size() 334 } 335 func (m *EventVote) XXX_DiscardUnknown() { 336 xxx_messageInfo_EventVote.DiscardUnknown(m) 337 } 338 339 var xxx_messageInfo_EventVote proto.InternalMessageInfo 340 341 func (m *EventVote) GetProposalId() uint64 { 342 if m != nil { 343 return m.ProposalId 344 } 345 return 0 346 } 347 348 // EventExec is an event emitted when a proposal is executed. 349 type EventExec struct { 350 // proposal_id is the unique ID of the proposal. 351 ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` 352 // result is the proposal execution result. 353 Result ProposalExecutorResult `protobuf:"varint,2,opt,name=result,proto3,enum=cosmos.group.v1.ProposalExecutorResult" json:"result,omitempty"` 354 // logs contains error logs in case the execution result is FAILURE. 355 Logs string `protobuf:"bytes,3,opt,name=logs,proto3" json:"logs,omitempty"` 356 } 357 358 func (m *EventExec) Reset() { *m = EventExec{} } 359 func (m *EventExec) String() string { return proto.CompactTextString(m) } 360 func (*EventExec) ProtoMessage() {} 361 func (*EventExec) Descriptor() ([]byte, []int) { 362 return fileDescriptor_e8d753981546f032, []int{7} 363 } 364 func (m *EventExec) XXX_Unmarshal(b []byte) error { 365 return m.Unmarshal(b) 366 } 367 func (m *EventExec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 368 if deterministic { 369 return xxx_messageInfo_EventExec.Marshal(b, m, deterministic) 370 } else { 371 b = b[:cap(b)] 372 n, err := m.MarshalToSizedBuffer(b) 373 if err != nil { 374 return nil, err 375 } 376 return b[:n], nil 377 } 378 } 379 func (m *EventExec) XXX_Merge(src proto.Message) { 380 xxx_messageInfo_EventExec.Merge(m, src) 381 } 382 func (m *EventExec) XXX_Size() int { 383 return m.Size() 384 } 385 func (m *EventExec) XXX_DiscardUnknown() { 386 xxx_messageInfo_EventExec.DiscardUnknown(m) 387 } 388 389 var xxx_messageInfo_EventExec proto.InternalMessageInfo 390 391 func (m *EventExec) GetProposalId() uint64 { 392 if m != nil { 393 return m.ProposalId 394 } 395 return 0 396 } 397 398 func (m *EventExec) GetResult() ProposalExecutorResult { 399 if m != nil { 400 return m.Result 401 } 402 return PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED 403 } 404 405 func (m *EventExec) GetLogs() string { 406 if m != nil { 407 return m.Logs 408 } 409 return "" 410 } 411 412 // EventLeaveGroup is an event emitted when group member leaves the group. 413 type EventLeaveGroup struct { 414 // group_id is the unique ID of the group. 415 GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` 416 // address is the account address of the group member. 417 Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` 418 } 419 420 func (m *EventLeaveGroup) Reset() { *m = EventLeaveGroup{} } 421 func (m *EventLeaveGroup) String() string { return proto.CompactTextString(m) } 422 func (*EventLeaveGroup) ProtoMessage() {} 423 func (*EventLeaveGroup) Descriptor() ([]byte, []int) { 424 return fileDescriptor_e8d753981546f032, []int{8} 425 } 426 func (m *EventLeaveGroup) XXX_Unmarshal(b []byte) error { 427 return m.Unmarshal(b) 428 } 429 func (m *EventLeaveGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 430 if deterministic { 431 return xxx_messageInfo_EventLeaveGroup.Marshal(b, m, deterministic) 432 } else { 433 b = b[:cap(b)] 434 n, err := m.MarshalToSizedBuffer(b) 435 if err != nil { 436 return nil, err 437 } 438 return b[:n], nil 439 } 440 } 441 func (m *EventLeaveGroup) XXX_Merge(src proto.Message) { 442 xxx_messageInfo_EventLeaveGroup.Merge(m, src) 443 } 444 func (m *EventLeaveGroup) XXX_Size() int { 445 return m.Size() 446 } 447 func (m *EventLeaveGroup) XXX_DiscardUnknown() { 448 xxx_messageInfo_EventLeaveGroup.DiscardUnknown(m) 449 } 450 451 var xxx_messageInfo_EventLeaveGroup proto.InternalMessageInfo 452 453 func (m *EventLeaveGroup) GetGroupId() uint64 { 454 if m != nil { 455 return m.GroupId 456 } 457 return 0 458 } 459 460 func (m *EventLeaveGroup) GetAddress() string { 461 if m != nil { 462 return m.Address 463 } 464 return "" 465 } 466 467 // EventProposalPruned is an event emitted when a proposal is pruned. 468 type EventProposalPruned struct { 469 // proposal_id is the unique ID of the proposal. 470 ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` 471 // status is the proposal status (UNSPECIFIED, SUBMITTED, ACCEPTED, REJECTED, ABORTED, WITHDRAWN). 472 Status ProposalStatus `protobuf:"varint,2,opt,name=status,proto3,enum=cosmos.group.v1.ProposalStatus" json:"status,omitempty"` 473 // tally_result is the proposal tally result (when applicable). 474 TallyResult *TallyResult `protobuf:"bytes,3,opt,name=tally_result,json=tallyResult,proto3" json:"tally_result,omitempty"` 475 } 476 477 func (m *EventProposalPruned) Reset() { *m = EventProposalPruned{} } 478 func (m *EventProposalPruned) String() string { return proto.CompactTextString(m) } 479 func (*EventProposalPruned) ProtoMessage() {} 480 func (*EventProposalPruned) Descriptor() ([]byte, []int) { 481 return fileDescriptor_e8d753981546f032, []int{9} 482 } 483 func (m *EventProposalPruned) XXX_Unmarshal(b []byte) error { 484 return m.Unmarshal(b) 485 } 486 func (m *EventProposalPruned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 487 if deterministic { 488 return xxx_messageInfo_EventProposalPruned.Marshal(b, m, deterministic) 489 } else { 490 b = b[:cap(b)] 491 n, err := m.MarshalToSizedBuffer(b) 492 if err != nil { 493 return nil, err 494 } 495 return b[:n], nil 496 } 497 } 498 func (m *EventProposalPruned) XXX_Merge(src proto.Message) { 499 xxx_messageInfo_EventProposalPruned.Merge(m, src) 500 } 501 func (m *EventProposalPruned) XXX_Size() int { 502 return m.Size() 503 } 504 func (m *EventProposalPruned) XXX_DiscardUnknown() { 505 xxx_messageInfo_EventProposalPruned.DiscardUnknown(m) 506 } 507 508 var xxx_messageInfo_EventProposalPruned proto.InternalMessageInfo 509 510 func (m *EventProposalPruned) GetProposalId() uint64 { 511 if m != nil { 512 return m.ProposalId 513 } 514 return 0 515 } 516 517 func (m *EventProposalPruned) GetStatus() ProposalStatus { 518 if m != nil { 519 return m.Status 520 } 521 return PROPOSAL_STATUS_UNSPECIFIED 522 } 523 524 func (m *EventProposalPruned) GetTallyResult() *TallyResult { 525 if m != nil { 526 return m.TallyResult 527 } 528 return nil 529 } 530 531 func init() { 532 proto.RegisterType((*EventCreateGroup)(nil), "cosmos.group.v1.EventCreateGroup") 533 proto.RegisterType((*EventUpdateGroup)(nil), "cosmos.group.v1.EventUpdateGroup") 534 proto.RegisterType((*EventCreateGroupPolicy)(nil), "cosmos.group.v1.EventCreateGroupPolicy") 535 proto.RegisterType((*EventUpdateGroupPolicy)(nil), "cosmos.group.v1.EventUpdateGroupPolicy") 536 proto.RegisterType((*EventSubmitProposal)(nil), "cosmos.group.v1.EventSubmitProposal") 537 proto.RegisterType((*EventWithdrawProposal)(nil), "cosmos.group.v1.EventWithdrawProposal") 538 proto.RegisterType((*EventVote)(nil), "cosmos.group.v1.EventVote") 539 proto.RegisterType((*EventExec)(nil), "cosmos.group.v1.EventExec") 540 proto.RegisterType((*EventLeaveGroup)(nil), "cosmos.group.v1.EventLeaveGroup") 541 proto.RegisterType((*EventProposalPruned)(nil), "cosmos.group.v1.EventProposalPruned") 542 } 543 544 func init() { proto.RegisterFile("cosmos/group/v1/events.proto", fileDescriptor_e8d753981546f032) } 545 546 var fileDescriptor_e8d753981546f032 = []byte{ 547 // 442 bytes of a gzipped FileDescriptorProto 548 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0x4f, 0xef, 0xd2, 0x30, 549 0x18, 0xc7, 0xe9, 0x4f, 0x02, 0x52, 0x8c, 0x98, 0xfa, 0x27, 0x03, 0xc9, 0x20, 0xc4, 0x44, 0x0e, 550 0xb2, 0x05, 0x4c, 0xd4, 0x93, 0x44, 0x0c, 0x31, 0x24, 0x1c, 0xc8, 0xf0, 0x4f, 0xe2, 0x05, 0xc7, 551 0xda, 0x8c, 0xc5, 0x41, 0x97, 0xb6, 0x9b, 0x70, 0xf4, 0x1d, 0xf8, 0x52, 0x3c, 0xf8, 0x22, 0x3c, 552 0x12, 0x4f, 0x1e, 0x0d, 0xbc, 0x11, 0xb3, 0xae, 0x03, 0x82, 0x31, 0x23, 0xf9, 0x9d, 0x68, 0xfb, 553 0xfd, 0x7c, 0xbf, 0x3c, 0x4f, 0x9f, 0x15, 0xd6, 0x1d, 0xca, 0x97, 0x94, 0x9b, 0x2e, 0xa3, 0x61, 554 0x60, 0x46, 0x5d, 0x93, 0x44, 0x64, 0x25, 0xb8, 0x11, 0x30, 0x2a, 0x28, 0xaa, 0x24, 0xaa, 0x21, 555 0x55, 0x23, 0xea, 0xd6, 0xaa, 0xc9, 0xc1, 0x4c, 0xca, 0xa6, 0x52, 0xe5, 0xa6, 0xf6, 0xf0, 0x3c, 556 0x49, 0x6c, 0x02, 0xa2, 0xc4, 0x56, 0x07, 0xde, 0x19, 0xc6, 0xc1, 0xaf, 0x19, 0xb1, 0x05, 0x79, 557 0x13, 0x23, 0xa8, 0x0a, 0x6f, 0x4a, 0x76, 0xe6, 0x61, 0x0d, 0x34, 0x41, 0x3b, 0x6f, 0x15, 0xe5, 558 0x7e, 0x84, 0x0f, 0xf8, 0xbb, 0x00, 0x5f, 0x82, 0x8f, 0xe1, 0x83, 0xf3, 0xf4, 0x09, 0xf5, 0x3d, 559 0x67, 0x83, 0x7a, 0xb0, 0x68, 0x63, 0xcc, 0x08, 0xe7, 0xd2, 0x53, 0x1a, 0x68, 0xbf, 0x7e, 0x74, 560 0xee, 0xa9, 0xba, 0x5f, 0x25, 0xca, 0x54, 0x30, 0x6f, 0xe5, 0x5a, 0x29, 0x78, 0x48, 0x3b, 0xf9, 561 0xf3, 0x6b, 0xa4, 0x3d, 0x83, 0x77, 0x65, 0xda, 0x34, 0x9c, 0x2f, 0x3d, 0x31, 0x61, 0x34, 0xa0, 562 0xdc, 0xf6, 0x51, 0x03, 0x96, 0x03, 0xb5, 0x3e, 0x36, 0x04, 0xd3, 0xa3, 0x11, 0x6e, 0xbd, 0x80, 563 0xf7, 0xa5, 0xef, 0x83, 0x27, 0x16, 0x98, 0xd9, 0x5f, 0x2e, 0x77, 0x3e, 0x81, 0x25, 0xe9, 0x7c, 564 0x4f, 0x05, 0xc9, 0xa6, 0xbf, 0x02, 0x85, 0x0f, 0xd7, 0xc4, 0xc9, 0xc4, 0x51, 0x1f, 0x16, 0x18, 565 0xe1, 0xa1, 0x2f, 0xb4, 0xab, 0x26, 0x68, 0xdf, 0xee, 0x3d, 0x36, 0xce, 0x3e, 0x11, 0x23, 0x2d, 566 0x34, 0xce, 0x0b, 0x05, 0x65, 0x96, 0xc4, 0x2d, 0x65, 0x43, 0x08, 0xe6, 0x7d, 0xea, 0x72, 0xed, 567 0x46, 0x7c, 0x81, 0x96, 0x5c, 0xb7, 0x3e, 0xc1, 0x8a, 0x2c, 0x61, 0x4c, 0xec, 0x28, 0x73, 0xda, 568 0xa7, 0x53, 0xb8, 0xba, 0x74, 0x0a, 0xdf, 0x81, 0x1a, 0x43, 0x5a, 0xdd, 0x84, 0x85, 0x2b, 0x82, 569 0xb3, 0xfb, 0x7d, 0x0e, 0x0b, 0x5c, 0xd8, 0x22, 0xe4, 0xaa, 0xdf, 0xc6, 0x7f, 0xfb, 0x9d, 0x4a, 570 0xcc, 0x52, 0x38, 0xea, 0xc3, 0x5b, 0xc2, 0xf6, 0xfd, 0xcd, 0x4c, 0x5d, 0x57, 0xdc, 0x6f, 0xb9, 571 0x57, 0xff, 0xc7, 0xfe, 0x36, 0x86, 0xd4, 0x1d, 0x95, 0xc5, 0x71, 0x33, 0x78, 0xf9, 0x73, 0xa7, 572 0x83, 0xed, 0x4e, 0x07, 0x7f, 0x76, 0x3a, 0xf8, 0xb6, 0xd7, 0x73, 0xdb, 0xbd, 0x9e, 0xfb, 0xbd, 573 0xd7, 0x73, 0x1f, 0x1f, 0xb9, 0x9e, 0x58, 0x84, 0x73, 0xc3, 0xa1, 0x4b, 0xf5, 0x04, 0xd5, 0x4f, 574 0x87, 0xe3, 0xcf, 0xe6, 0x3a, 0x79, 0x81, 0xf3, 0x82, 0x7c, 0x79, 0x4f, 0xff, 0x06, 0x00, 0x00, 575 0xff, 0xff, 0xa5, 0x1a, 0x1c, 0xb9, 0xe2, 0x03, 0x00, 0x00, 576 } 577 578 func (m *EventCreateGroup) Marshal() (dAtA []byte, err error) { 579 size := m.Size() 580 dAtA = make([]byte, size) 581 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 582 if err != nil { 583 return nil, err 584 } 585 return dAtA[:n], nil 586 } 587 588 func (m *EventCreateGroup) MarshalTo(dAtA []byte) (int, error) { 589 size := m.Size() 590 return m.MarshalToSizedBuffer(dAtA[:size]) 591 } 592 593 func (m *EventCreateGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { 594 i := len(dAtA) 595 _ = i 596 var l int 597 _ = l 598 if m.GroupId != 0 { 599 i = encodeVarintEvents(dAtA, i, uint64(m.GroupId)) 600 i-- 601 dAtA[i] = 0x8 602 } 603 return len(dAtA) - i, nil 604 } 605 606 func (m *EventUpdateGroup) Marshal() (dAtA []byte, err error) { 607 size := m.Size() 608 dAtA = make([]byte, size) 609 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 610 if err != nil { 611 return nil, err 612 } 613 return dAtA[:n], nil 614 } 615 616 func (m *EventUpdateGroup) MarshalTo(dAtA []byte) (int, error) { 617 size := m.Size() 618 return m.MarshalToSizedBuffer(dAtA[:size]) 619 } 620 621 func (m *EventUpdateGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { 622 i := len(dAtA) 623 _ = i 624 var l int 625 _ = l 626 if m.GroupId != 0 { 627 i = encodeVarintEvents(dAtA, i, uint64(m.GroupId)) 628 i-- 629 dAtA[i] = 0x8 630 } 631 return len(dAtA) - i, nil 632 } 633 634 func (m *EventCreateGroupPolicy) Marshal() (dAtA []byte, err error) { 635 size := m.Size() 636 dAtA = make([]byte, size) 637 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 638 if err != nil { 639 return nil, err 640 } 641 return dAtA[:n], nil 642 } 643 644 func (m *EventCreateGroupPolicy) MarshalTo(dAtA []byte) (int, error) { 645 size := m.Size() 646 return m.MarshalToSizedBuffer(dAtA[:size]) 647 } 648 649 func (m *EventCreateGroupPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { 650 i := len(dAtA) 651 _ = i 652 var l int 653 _ = l 654 if len(m.Address) > 0 { 655 i -= len(m.Address) 656 copy(dAtA[i:], m.Address) 657 i = encodeVarintEvents(dAtA, i, uint64(len(m.Address))) 658 i-- 659 dAtA[i] = 0xa 660 } 661 return len(dAtA) - i, nil 662 } 663 664 func (m *EventUpdateGroupPolicy) Marshal() (dAtA []byte, err error) { 665 size := m.Size() 666 dAtA = make([]byte, size) 667 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 668 if err != nil { 669 return nil, err 670 } 671 return dAtA[:n], nil 672 } 673 674 func (m *EventUpdateGroupPolicy) MarshalTo(dAtA []byte) (int, error) { 675 size := m.Size() 676 return m.MarshalToSizedBuffer(dAtA[:size]) 677 } 678 679 func (m *EventUpdateGroupPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { 680 i := len(dAtA) 681 _ = i 682 var l int 683 _ = l 684 if len(m.Address) > 0 { 685 i -= len(m.Address) 686 copy(dAtA[i:], m.Address) 687 i = encodeVarintEvents(dAtA, i, uint64(len(m.Address))) 688 i-- 689 dAtA[i] = 0xa 690 } 691 return len(dAtA) - i, nil 692 } 693 694 func (m *EventSubmitProposal) Marshal() (dAtA []byte, err error) { 695 size := m.Size() 696 dAtA = make([]byte, size) 697 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 698 if err != nil { 699 return nil, err 700 } 701 return dAtA[:n], nil 702 } 703 704 func (m *EventSubmitProposal) MarshalTo(dAtA []byte) (int, error) { 705 size := m.Size() 706 return m.MarshalToSizedBuffer(dAtA[:size]) 707 } 708 709 func (m *EventSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { 710 i := len(dAtA) 711 _ = i 712 var l int 713 _ = l 714 if m.ProposalId != 0 { 715 i = encodeVarintEvents(dAtA, i, uint64(m.ProposalId)) 716 i-- 717 dAtA[i] = 0x8 718 } 719 return len(dAtA) - i, nil 720 } 721 722 func (m *EventWithdrawProposal) Marshal() (dAtA []byte, err error) { 723 size := m.Size() 724 dAtA = make([]byte, size) 725 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 726 if err != nil { 727 return nil, err 728 } 729 return dAtA[:n], nil 730 } 731 732 func (m *EventWithdrawProposal) MarshalTo(dAtA []byte) (int, error) { 733 size := m.Size() 734 return m.MarshalToSizedBuffer(dAtA[:size]) 735 } 736 737 func (m *EventWithdrawProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { 738 i := len(dAtA) 739 _ = i 740 var l int 741 _ = l 742 if m.ProposalId != 0 { 743 i = encodeVarintEvents(dAtA, i, uint64(m.ProposalId)) 744 i-- 745 dAtA[i] = 0x8 746 } 747 return len(dAtA) - i, nil 748 } 749 750 func (m *EventVote) Marshal() (dAtA []byte, err error) { 751 size := m.Size() 752 dAtA = make([]byte, size) 753 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 754 if err != nil { 755 return nil, err 756 } 757 return dAtA[:n], nil 758 } 759 760 func (m *EventVote) MarshalTo(dAtA []byte) (int, error) { 761 size := m.Size() 762 return m.MarshalToSizedBuffer(dAtA[:size]) 763 } 764 765 func (m *EventVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { 766 i := len(dAtA) 767 _ = i 768 var l int 769 _ = l 770 if m.ProposalId != 0 { 771 i = encodeVarintEvents(dAtA, i, uint64(m.ProposalId)) 772 i-- 773 dAtA[i] = 0x8 774 } 775 return len(dAtA) - i, nil 776 } 777 778 func (m *EventExec) Marshal() (dAtA []byte, err error) { 779 size := m.Size() 780 dAtA = make([]byte, size) 781 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 782 if err != nil { 783 return nil, err 784 } 785 return dAtA[:n], nil 786 } 787 788 func (m *EventExec) MarshalTo(dAtA []byte) (int, error) { 789 size := m.Size() 790 return m.MarshalToSizedBuffer(dAtA[:size]) 791 } 792 793 func (m *EventExec) MarshalToSizedBuffer(dAtA []byte) (int, error) { 794 i := len(dAtA) 795 _ = i 796 var l int 797 _ = l 798 if len(m.Logs) > 0 { 799 i -= len(m.Logs) 800 copy(dAtA[i:], m.Logs) 801 i = encodeVarintEvents(dAtA, i, uint64(len(m.Logs))) 802 i-- 803 dAtA[i] = 0x1a 804 } 805 if m.Result != 0 { 806 i = encodeVarintEvents(dAtA, i, uint64(m.Result)) 807 i-- 808 dAtA[i] = 0x10 809 } 810 if m.ProposalId != 0 { 811 i = encodeVarintEvents(dAtA, i, uint64(m.ProposalId)) 812 i-- 813 dAtA[i] = 0x8 814 } 815 return len(dAtA) - i, nil 816 } 817 818 func (m *EventLeaveGroup) Marshal() (dAtA []byte, err error) { 819 size := m.Size() 820 dAtA = make([]byte, size) 821 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 822 if err != nil { 823 return nil, err 824 } 825 return dAtA[:n], nil 826 } 827 828 func (m *EventLeaveGroup) MarshalTo(dAtA []byte) (int, error) { 829 size := m.Size() 830 return m.MarshalToSizedBuffer(dAtA[:size]) 831 } 832 833 func (m *EventLeaveGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { 834 i := len(dAtA) 835 _ = i 836 var l int 837 _ = l 838 if len(m.Address) > 0 { 839 i -= len(m.Address) 840 copy(dAtA[i:], m.Address) 841 i = encodeVarintEvents(dAtA, i, uint64(len(m.Address))) 842 i-- 843 dAtA[i] = 0x12 844 } 845 if m.GroupId != 0 { 846 i = encodeVarintEvents(dAtA, i, uint64(m.GroupId)) 847 i-- 848 dAtA[i] = 0x8 849 } 850 return len(dAtA) - i, nil 851 } 852 853 func (m *EventProposalPruned) Marshal() (dAtA []byte, err error) { 854 size := m.Size() 855 dAtA = make([]byte, size) 856 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 857 if err != nil { 858 return nil, err 859 } 860 return dAtA[:n], nil 861 } 862 863 func (m *EventProposalPruned) MarshalTo(dAtA []byte) (int, error) { 864 size := m.Size() 865 return m.MarshalToSizedBuffer(dAtA[:size]) 866 } 867 868 func (m *EventProposalPruned) MarshalToSizedBuffer(dAtA []byte) (int, error) { 869 i := len(dAtA) 870 _ = i 871 var l int 872 _ = l 873 if m.TallyResult != nil { 874 { 875 size, err := m.TallyResult.MarshalToSizedBuffer(dAtA[:i]) 876 if err != nil { 877 return 0, err 878 } 879 i -= size 880 i = encodeVarintEvents(dAtA, i, uint64(size)) 881 } 882 i-- 883 dAtA[i] = 0x1a 884 } 885 if m.Status != 0 { 886 i = encodeVarintEvents(dAtA, i, uint64(m.Status)) 887 i-- 888 dAtA[i] = 0x10 889 } 890 if m.ProposalId != 0 { 891 i = encodeVarintEvents(dAtA, i, uint64(m.ProposalId)) 892 i-- 893 dAtA[i] = 0x8 894 } 895 return len(dAtA) - i, nil 896 } 897 898 func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { 899 offset -= sovEvents(v) 900 base := offset 901 for v >= 1<<7 { 902 dAtA[offset] = uint8(v&0x7f | 0x80) 903 v >>= 7 904 offset++ 905 } 906 dAtA[offset] = uint8(v) 907 return base 908 } 909 func (m *EventCreateGroup) Size() (n int) { 910 if m == nil { 911 return 0 912 } 913 var l int 914 _ = l 915 if m.GroupId != 0 { 916 n += 1 + sovEvents(uint64(m.GroupId)) 917 } 918 return n 919 } 920 921 func (m *EventUpdateGroup) Size() (n int) { 922 if m == nil { 923 return 0 924 } 925 var l int 926 _ = l 927 if m.GroupId != 0 { 928 n += 1 + sovEvents(uint64(m.GroupId)) 929 } 930 return n 931 } 932 933 func (m *EventCreateGroupPolicy) Size() (n int) { 934 if m == nil { 935 return 0 936 } 937 var l int 938 _ = l 939 l = len(m.Address) 940 if l > 0 { 941 n += 1 + l + sovEvents(uint64(l)) 942 } 943 return n 944 } 945 946 func (m *EventUpdateGroupPolicy) Size() (n int) { 947 if m == nil { 948 return 0 949 } 950 var l int 951 _ = l 952 l = len(m.Address) 953 if l > 0 { 954 n += 1 + l + sovEvents(uint64(l)) 955 } 956 return n 957 } 958 959 func (m *EventSubmitProposal) Size() (n int) { 960 if m == nil { 961 return 0 962 } 963 var l int 964 _ = l 965 if m.ProposalId != 0 { 966 n += 1 + sovEvents(uint64(m.ProposalId)) 967 } 968 return n 969 } 970 971 func (m *EventWithdrawProposal) Size() (n int) { 972 if m == nil { 973 return 0 974 } 975 var l int 976 _ = l 977 if m.ProposalId != 0 { 978 n += 1 + sovEvents(uint64(m.ProposalId)) 979 } 980 return n 981 } 982 983 func (m *EventVote) Size() (n int) { 984 if m == nil { 985 return 0 986 } 987 var l int 988 _ = l 989 if m.ProposalId != 0 { 990 n += 1 + sovEvents(uint64(m.ProposalId)) 991 } 992 return n 993 } 994 995 func (m *EventExec) Size() (n int) { 996 if m == nil { 997 return 0 998 } 999 var l int 1000 _ = l 1001 if m.ProposalId != 0 { 1002 n += 1 + sovEvents(uint64(m.ProposalId)) 1003 } 1004 if m.Result != 0 { 1005 n += 1 + sovEvents(uint64(m.Result)) 1006 } 1007 l = len(m.Logs) 1008 if l > 0 { 1009 n += 1 + l + sovEvents(uint64(l)) 1010 } 1011 return n 1012 } 1013 1014 func (m *EventLeaveGroup) Size() (n int) { 1015 if m == nil { 1016 return 0 1017 } 1018 var l int 1019 _ = l 1020 if m.GroupId != 0 { 1021 n += 1 + sovEvents(uint64(m.GroupId)) 1022 } 1023 l = len(m.Address) 1024 if l > 0 { 1025 n += 1 + l + sovEvents(uint64(l)) 1026 } 1027 return n 1028 } 1029 1030 func (m *EventProposalPruned) Size() (n int) { 1031 if m == nil { 1032 return 0 1033 } 1034 var l int 1035 _ = l 1036 if m.ProposalId != 0 { 1037 n += 1 + sovEvents(uint64(m.ProposalId)) 1038 } 1039 if m.Status != 0 { 1040 n += 1 + sovEvents(uint64(m.Status)) 1041 } 1042 if m.TallyResult != nil { 1043 l = m.TallyResult.Size() 1044 n += 1 + l + sovEvents(uint64(l)) 1045 } 1046 return n 1047 } 1048 1049 func sovEvents(x uint64) (n int) { 1050 return (math_bits.Len64(x|1) + 6) / 7 1051 } 1052 func sozEvents(x uint64) (n int) { 1053 return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1054 } 1055 func (m *EventCreateGroup) Unmarshal(dAtA []byte) error { 1056 l := len(dAtA) 1057 iNdEx := 0 1058 for iNdEx < l { 1059 preIndex := iNdEx 1060 var wire uint64 1061 for shift := uint(0); ; shift += 7 { 1062 if shift >= 64 { 1063 return ErrIntOverflowEvents 1064 } 1065 if iNdEx >= l { 1066 return io.ErrUnexpectedEOF 1067 } 1068 b := dAtA[iNdEx] 1069 iNdEx++ 1070 wire |= uint64(b&0x7F) << shift 1071 if b < 0x80 { 1072 break 1073 } 1074 } 1075 fieldNum := int32(wire >> 3) 1076 wireType := int(wire & 0x7) 1077 if wireType == 4 { 1078 return fmt.Errorf("proto: EventCreateGroup: wiretype end group for non-group") 1079 } 1080 if fieldNum <= 0 { 1081 return fmt.Errorf("proto: EventCreateGroup: illegal tag %d (wire type %d)", fieldNum, wire) 1082 } 1083 switch fieldNum { 1084 case 1: 1085 if wireType != 0 { 1086 return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) 1087 } 1088 m.GroupId = 0 1089 for shift := uint(0); ; shift += 7 { 1090 if shift >= 64 { 1091 return ErrIntOverflowEvents 1092 } 1093 if iNdEx >= l { 1094 return io.ErrUnexpectedEOF 1095 } 1096 b := dAtA[iNdEx] 1097 iNdEx++ 1098 m.GroupId |= uint64(b&0x7F) << shift 1099 if b < 0x80 { 1100 break 1101 } 1102 } 1103 default: 1104 iNdEx = preIndex 1105 skippy, err := skipEvents(dAtA[iNdEx:]) 1106 if err != nil { 1107 return err 1108 } 1109 if (skippy < 0) || (iNdEx+skippy) < 0 { 1110 return ErrInvalidLengthEvents 1111 } 1112 if (iNdEx + skippy) > l { 1113 return io.ErrUnexpectedEOF 1114 } 1115 iNdEx += skippy 1116 } 1117 } 1118 1119 if iNdEx > l { 1120 return io.ErrUnexpectedEOF 1121 } 1122 return nil 1123 } 1124 func (m *EventUpdateGroup) Unmarshal(dAtA []byte) error { 1125 l := len(dAtA) 1126 iNdEx := 0 1127 for iNdEx < l { 1128 preIndex := iNdEx 1129 var wire uint64 1130 for shift := uint(0); ; shift += 7 { 1131 if shift >= 64 { 1132 return ErrIntOverflowEvents 1133 } 1134 if iNdEx >= l { 1135 return io.ErrUnexpectedEOF 1136 } 1137 b := dAtA[iNdEx] 1138 iNdEx++ 1139 wire |= uint64(b&0x7F) << shift 1140 if b < 0x80 { 1141 break 1142 } 1143 } 1144 fieldNum := int32(wire >> 3) 1145 wireType := int(wire & 0x7) 1146 if wireType == 4 { 1147 return fmt.Errorf("proto: EventUpdateGroup: wiretype end group for non-group") 1148 } 1149 if fieldNum <= 0 { 1150 return fmt.Errorf("proto: EventUpdateGroup: illegal tag %d (wire type %d)", fieldNum, wire) 1151 } 1152 switch fieldNum { 1153 case 1: 1154 if wireType != 0 { 1155 return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) 1156 } 1157 m.GroupId = 0 1158 for shift := uint(0); ; shift += 7 { 1159 if shift >= 64 { 1160 return ErrIntOverflowEvents 1161 } 1162 if iNdEx >= l { 1163 return io.ErrUnexpectedEOF 1164 } 1165 b := dAtA[iNdEx] 1166 iNdEx++ 1167 m.GroupId |= uint64(b&0x7F) << shift 1168 if b < 0x80 { 1169 break 1170 } 1171 } 1172 default: 1173 iNdEx = preIndex 1174 skippy, err := skipEvents(dAtA[iNdEx:]) 1175 if err != nil { 1176 return err 1177 } 1178 if (skippy < 0) || (iNdEx+skippy) < 0 { 1179 return ErrInvalidLengthEvents 1180 } 1181 if (iNdEx + skippy) > l { 1182 return io.ErrUnexpectedEOF 1183 } 1184 iNdEx += skippy 1185 } 1186 } 1187 1188 if iNdEx > l { 1189 return io.ErrUnexpectedEOF 1190 } 1191 return nil 1192 } 1193 func (m *EventCreateGroupPolicy) Unmarshal(dAtA []byte) error { 1194 l := len(dAtA) 1195 iNdEx := 0 1196 for iNdEx < l { 1197 preIndex := iNdEx 1198 var wire uint64 1199 for shift := uint(0); ; shift += 7 { 1200 if shift >= 64 { 1201 return ErrIntOverflowEvents 1202 } 1203 if iNdEx >= l { 1204 return io.ErrUnexpectedEOF 1205 } 1206 b := dAtA[iNdEx] 1207 iNdEx++ 1208 wire |= uint64(b&0x7F) << shift 1209 if b < 0x80 { 1210 break 1211 } 1212 } 1213 fieldNum := int32(wire >> 3) 1214 wireType := int(wire & 0x7) 1215 if wireType == 4 { 1216 return fmt.Errorf("proto: EventCreateGroupPolicy: wiretype end group for non-group") 1217 } 1218 if fieldNum <= 0 { 1219 return fmt.Errorf("proto: EventCreateGroupPolicy: illegal tag %d (wire type %d)", fieldNum, wire) 1220 } 1221 switch fieldNum { 1222 case 1: 1223 if wireType != 2 { 1224 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 1225 } 1226 var stringLen uint64 1227 for shift := uint(0); ; shift += 7 { 1228 if shift >= 64 { 1229 return ErrIntOverflowEvents 1230 } 1231 if iNdEx >= l { 1232 return io.ErrUnexpectedEOF 1233 } 1234 b := dAtA[iNdEx] 1235 iNdEx++ 1236 stringLen |= uint64(b&0x7F) << shift 1237 if b < 0x80 { 1238 break 1239 } 1240 } 1241 intStringLen := int(stringLen) 1242 if intStringLen < 0 { 1243 return ErrInvalidLengthEvents 1244 } 1245 postIndex := iNdEx + intStringLen 1246 if postIndex < 0 { 1247 return ErrInvalidLengthEvents 1248 } 1249 if postIndex > l { 1250 return io.ErrUnexpectedEOF 1251 } 1252 m.Address = string(dAtA[iNdEx:postIndex]) 1253 iNdEx = postIndex 1254 default: 1255 iNdEx = preIndex 1256 skippy, err := skipEvents(dAtA[iNdEx:]) 1257 if err != nil { 1258 return err 1259 } 1260 if (skippy < 0) || (iNdEx+skippy) < 0 { 1261 return ErrInvalidLengthEvents 1262 } 1263 if (iNdEx + skippy) > l { 1264 return io.ErrUnexpectedEOF 1265 } 1266 iNdEx += skippy 1267 } 1268 } 1269 1270 if iNdEx > l { 1271 return io.ErrUnexpectedEOF 1272 } 1273 return nil 1274 } 1275 func (m *EventUpdateGroupPolicy) Unmarshal(dAtA []byte) error { 1276 l := len(dAtA) 1277 iNdEx := 0 1278 for iNdEx < l { 1279 preIndex := iNdEx 1280 var wire uint64 1281 for shift := uint(0); ; shift += 7 { 1282 if shift >= 64 { 1283 return ErrIntOverflowEvents 1284 } 1285 if iNdEx >= l { 1286 return io.ErrUnexpectedEOF 1287 } 1288 b := dAtA[iNdEx] 1289 iNdEx++ 1290 wire |= uint64(b&0x7F) << shift 1291 if b < 0x80 { 1292 break 1293 } 1294 } 1295 fieldNum := int32(wire >> 3) 1296 wireType := int(wire & 0x7) 1297 if wireType == 4 { 1298 return fmt.Errorf("proto: EventUpdateGroupPolicy: wiretype end group for non-group") 1299 } 1300 if fieldNum <= 0 { 1301 return fmt.Errorf("proto: EventUpdateGroupPolicy: illegal tag %d (wire type %d)", fieldNum, wire) 1302 } 1303 switch fieldNum { 1304 case 1: 1305 if wireType != 2 { 1306 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 1307 } 1308 var stringLen uint64 1309 for shift := uint(0); ; shift += 7 { 1310 if shift >= 64 { 1311 return ErrIntOverflowEvents 1312 } 1313 if iNdEx >= l { 1314 return io.ErrUnexpectedEOF 1315 } 1316 b := dAtA[iNdEx] 1317 iNdEx++ 1318 stringLen |= uint64(b&0x7F) << shift 1319 if b < 0x80 { 1320 break 1321 } 1322 } 1323 intStringLen := int(stringLen) 1324 if intStringLen < 0 { 1325 return ErrInvalidLengthEvents 1326 } 1327 postIndex := iNdEx + intStringLen 1328 if postIndex < 0 { 1329 return ErrInvalidLengthEvents 1330 } 1331 if postIndex > l { 1332 return io.ErrUnexpectedEOF 1333 } 1334 m.Address = string(dAtA[iNdEx:postIndex]) 1335 iNdEx = postIndex 1336 default: 1337 iNdEx = preIndex 1338 skippy, err := skipEvents(dAtA[iNdEx:]) 1339 if err != nil { 1340 return err 1341 } 1342 if (skippy < 0) || (iNdEx+skippy) < 0 { 1343 return ErrInvalidLengthEvents 1344 } 1345 if (iNdEx + skippy) > l { 1346 return io.ErrUnexpectedEOF 1347 } 1348 iNdEx += skippy 1349 } 1350 } 1351 1352 if iNdEx > l { 1353 return io.ErrUnexpectedEOF 1354 } 1355 return nil 1356 } 1357 func (m *EventSubmitProposal) Unmarshal(dAtA []byte) error { 1358 l := len(dAtA) 1359 iNdEx := 0 1360 for iNdEx < l { 1361 preIndex := iNdEx 1362 var wire uint64 1363 for shift := uint(0); ; shift += 7 { 1364 if shift >= 64 { 1365 return ErrIntOverflowEvents 1366 } 1367 if iNdEx >= l { 1368 return io.ErrUnexpectedEOF 1369 } 1370 b := dAtA[iNdEx] 1371 iNdEx++ 1372 wire |= uint64(b&0x7F) << shift 1373 if b < 0x80 { 1374 break 1375 } 1376 } 1377 fieldNum := int32(wire >> 3) 1378 wireType := int(wire & 0x7) 1379 if wireType == 4 { 1380 return fmt.Errorf("proto: EventSubmitProposal: wiretype end group for non-group") 1381 } 1382 if fieldNum <= 0 { 1383 return fmt.Errorf("proto: EventSubmitProposal: illegal tag %d (wire type %d)", fieldNum, wire) 1384 } 1385 switch fieldNum { 1386 case 1: 1387 if wireType != 0 { 1388 return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) 1389 } 1390 m.ProposalId = 0 1391 for shift := uint(0); ; shift += 7 { 1392 if shift >= 64 { 1393 return ErrIntOverflowEvents 1394 } 1395 if iNdEx >= l { 1396 return io.ErrUnexpectedEOF 1397 } 1398 b := dAtA[iNdEx] 1399 iNdEx++ 1400 m.ProposalId |= uint64(b&0x7F) << shift 1401 if b < 0x80 { 1402 break 1403 } 1404 } 1405 default: 1406 iNdEx = preIndex 1407 skippy, err := skipEvents(dAtA[iNdEx:]) 1408 if err != nil { 1409 return err 1410 } 1411 if (skippy < 0) || (iNdEx+skippy) < 0 { 1412 return ErrInvalidLengthEvents 1413 } 1414 if (iNdEx + skippy) > l { 1415 return io.ErrUnexpectedEOF 1416 } 1417 iNdEx += skippy 1418 } 1419 } 1420 1421 if iNdEx > l { 1422 return io.ErrUnexpectedEOF 1423 } 1424 return nil 1425 } 1426 func (m *EventWithdrawProposal) Unmarshal(dAtA []byte) error { 1427 l := len(dAtA) 1428 iNdEx := 0 1429 for iNdEx < l { 1430 preIndex := iNdEx 1431 var wire uint64 1432 for shift := uint(0); ; shift += 7 { 1433 if shift >= 64 { 1434 return ErrIntOverflowEvents 1435 } 1436 if iNdEx >= l { 1437 return io.ErrUnexpectedEOF 1438 } 1439 b := dAtA[iNdEx] 1440 iNdEx++ 1441 wire |= uint64(b&0x7F) << shift 1442 if b < 0x80 { 1443 break 1444 } 1445 } 1446 fieldNum := int32(wire >> 3) 1447 wireType := int(wire & 0x7) 1448 if wireType == 4 { 1449 return fmt.Errorf("proto: EventWithdrawProposal: wiretype end group for non-group") 1450 } 1451 if fieldNum <= 0 { 1452 return fmt.Errorf("proto: EventWithdrawProposal: illegal tag %d (wire type %d)", fieldNum, wire) 1453 } 1454 switch fieldNum { 1455 case 1: 1456 if wireType != 0 { 1457 return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) 1458 } 1459 m.ProposalId = 0 1460 for shift := uint(0); ; shift += 7 { 1461 if shift >= 64 { 1462 return ErrIntOverflowEvents 1463 } 1464 if iNdEx >= l { 1465 return io.ErrUnexpectedEOF 1466 } 1467 b := dAtA[iNdEx] 1468 iNdEx++ 1469 m.ProposalId |= uint64(b&0x7F) << shift 1470 if b < 0x80 { 1471 break 1472 } 1473 } 1474 default: 1475 iNdEx = preIndex 1476 skippy, err := skipEvents(dAtA[iNdEx:]) 1477 if err != nil { 1478 return err 1479 } 1480 if (skippy < 0) || (iNdEx+skippy) < 0 { 1481 return ErrInvalidLengthEvents 1482 } 1483 if (iNdEx + skippy) > l { 1484 return io.ErrUnexpectedEOF 1485 } 1486 iNdEx += skippy 1487 } 1488 } 1489 1490 if iNdEx > l { 1491 return io.ErrUnexpectedEOF 1492 } 1493 return nil 1494 } 1495 func (m *EventVote) Unmarshal(dAtA []byte) error { 1496 l := len(dAtA) 1497 iNdEx := 0 1498 for iNdEx < l { 1499 preIndex := iNdEx 1500 var wire uint64 1501 for shift := uint(0); ; shift += 7 { 1502 if shift >= 64 { 1503 return ErrIntOverflowEvents 1504 } 1505 if iNdEx >= l { 1506 return io.ErrUnexpectedEOF 1507 } 1508 b := dAtA[iNdEx] 1509 iNdEx++ 1510 wire |= uint64(b&0x7F) << shift 1511 if b < 0x80 { 1512 break 1513 } 1514 } 1515 fieldNum := int32(wire >> 3) 1516 wireType := int(wire & 0x7) 1517 if wireType == 4 { 1518 return fmt.Errorf("proto: EventVote: wiretype end group for non-group") 1519 } 1520 if fieldNum <= 0 { 1521 return fmt.Errorf("proto: EventVote: illegal tag %d (wire type %d)", fieldNum, wire) 1522 } 1523 switch fieldNum { 1524 case 1: 1525 if wireType != 0 { 1526 return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) 1527 } 1528 m.ProposalId = 0 1529 for shift := uint(0); ; shift += 7 { 1530 if shift >= 64 { 1531 return ErrIntOverflowEvents 1532 } 1533 if iNdEx >= l { 1534 return io.ErrUnexpectedEOF 1535 } 1536 b := dAtA[iNdEx] 1537 iNdEx++ 1538 m.ProposalId |= uint64(b&0x7F) << shift 1539 if b < 0x80 { 1540 break 1541 } 1542 } 1543 default: 1544 iNdEx = preIndex 1545 skippy, err := skipEvents(dAtA[iNdEx:]) 1546 if err != nil { 1547 return err 1548 } 1549 if (skippy < 0) || (iNdEx+skippy) < 0 { 1550 return ErrInvalidLengthEvents 1551 } 1552 if (iNdEx + skippy) > l { 1553 return io.ErrUnexpectedEOF 1554 } 1555 iNdEx += skippy 1556 } 1557 } 1558 1559 if iNdEx > l { 1560 return io.ErrUnexpectedEOF 1561 } 1562 return nil 1563 } 1564 func (m *EventExec) Unmarshal(dAtA []byte) error { 1565 l := len(dAtA) 1566 iNdEx := 0 1567 for iNdEx < l { 1568 preIndex := iNdEx 1569 var wire uint64 1570 for shift := uint(0); ; shift += 7 { 1571 if shift >= 64 { 1572 return ErrIntOverflowEvents 1573 } 1574 if iNdEx >= l { 1575 return io.ErrUnexpectedEOF 1576 } 1577 b := dAtA[iNdEx] 1578 iNdEx++ 1579 wire |= uint64(b&0x7F) << shift 1580 if b < 0x80 { 1581 break 1582 } 1583 } 1584 fieldNum := int32(wire >> 3) 1585 wireType := int(wire & 0x7) 1586 if wireType == 4 { 1587 return fmt.Errorf("proto: EventExec: wiretype end group for non-group") 1588 } 1589 if fieldNum <= 0 { 1590 return fmt.Errorf("proto: EventExec: illegal tag %d (wire type %d)", fieldNum, wire) 1591 } 1592 switch fieldNum { 1593 case 1: 1594 if wireType != 0 { 1595 return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) 1596 } 1597 m.ProposalId = 0 1598 for shift := uint(0); ; shift += 7 { 1599 if shift >= 64 { 1600 return ErrIntOverflowEvents 1601 } 1602 if iNdEx >= l { 1603 return io.ErrUnexpectedEOF 1604 } 1605 b := dAtA[iNdEx] 1606 iNdEx++ 1607 m.ProposalId |= uint64(b&0x7F) << shift 1608 if b < 0x80 { 1609 break 1610 } 1611 } 1612 case 2: 1613 if wireType != 0 { 1614 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 1615 } 1616 m.Result = 0 1617 for shift := uint(0); ; shift += 7 { 1618 if shift >= 64 { 1619 return ErrIntOverflowEvents 1620 } 1621 if iNdEx >= l { 1622 return io.ErrUnexpectedEOF 1623 } 1624 b := dAtA[iNdEx] 1625 iNdEx++ 1626 m.Result |= ProposalExecutorResult(b&0x7F) << shift 1627 if b < 0x80 { 1628 break 1629 } 1630 } 1631 case 3: 1632 if wireType != 2 { 1633 return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType) 1634 } 1635 var stringLen uint64 1636 for shift := uint(0); ; shift += 7 { 1637 if shift >= 64 { 1638 return ErrIntOverflowEvents 1639 } 1640 if iNdEx >= l { 1641 return io.ErrUnexpectedEOF 1642 } 1643 b := dAtA[iNdEx] 1644 iNdEx++ 1645 stringLen |= uint64(b&0x7F) << shift 1646 if b < 0x80 { 1647 break 1648 } 1649 } 1650 intStringLen := int(stringLen) 1651 if intStringLen < 0 { 1652 return ErrInvalidLengthEvents 1653 } 1654 postIndex := iNdEx + intStringLen 1655 if postIndex < 0 { 1656 return ErrInvalidLengthEvents 1657 } 1658 if postIndex > l { 1659 return io.ErrUnexpectedEOF 1660 } 1661 m.Logs = string(dAtA[iNdEx:postIndex]) 1662 iNdEx = postIndex 1663 default: 1664 iNdEx = preIndex 1665 skippy, err := skipEvents(dAtA[iNdEx:]) 1666 if err != nil { 1667 return err 1668 } 1669 if (skippy < 0) || (iNdEx+skippy) < 0 { 1670 return ErrInvalidLengthEvents 1671 } 1672 if (iNdEx + skippy) > l { 1673 return io.ErrUnexpectedEOF 1674 } 1675 iNdEx += skippy 1676 } 1677 } 1678 1679 if iNdEx > l { 1680 return io.ErrUnexpectedEOF 1681 } 1682 return nil 1683 } 1684 func (m *EventLeaveGroup) Unmarshal(dAtA []byte) error { 1685 l := len(dAtA) 1686 iNdEx := 0 1687 for iNdEx < l { 1688 preIndex := iNdEx 1689 var wire uint64 1690 for shift := uint(0); ; shift += 7 { 1691 if shift >= 64 { 1692 return ErrIntOverflowEvents 1693 } 1694 if iNdEx >= l { 1695 return io.ErrUnexpectedEOF 1696 } 1697 b := dAtA[iNdEx] 1698 iNdEx++ 1699 wire |= uint64(b&0x7F) << shift 1700 if b < 0x80 { 1701 break 1702 } 1703 } 1704 fieldNum := int32(wire >> 3) 1705 wireType := int(wire & 0x7) 1706 if wireType == 4 { 1707 return fmt.Errorf("proto: EventLeaveGroup: wiretype end group for non-group") 1708 } 1709 if fieldNum <= 0 { 1710 return fmt.Errorf("proto: EventLeaveGroup: illegal tag %d (wire type %d)", fieldNum, wire) 1711 } 1712 switch fieldNum { 1713 case 1: 1714 if wireType != 0 { 1715 return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) 1716 } 1717 m.GroupId = 0 1718 for shift := uint(0); ; shift += 7 { 1719 if shift >= 64 { 1720 return ErrIntOverflowEvents 1721 } 1722 if iNdEx >= l { 1723 return io.ErrUnexpectedEOF 1724 } 1725 b := dAtA[iNdEx] 1726 iNdEx++ 1727 m.GroupId |= uint64(b&0x7F) << shift 1728 if b < 0x80 { 1729 break 1730 } 1731 } 1732 case 2: 1733 if wireType != 2 { 1734 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 1735 } 1736 var stringLen uint64 1737 for shift := uint(0); ; shift += 7 { 1738 if shift >= 64 { 1739 return ErrIntOverflowEvents 1740 } 1741 if iNdEx >= l { 1742 return io.ErrUnexpectedEOF 1743 } 1744 b := dAtA[iNdEx] 1745 iNdEx++ 1746 stringLen |= uint64(b&0x7F) << shift 1747 if b < 0x80 { 1748 break 1749 } 1750 } 1751 intStringLen := int(stringLen) 1752 if intStringLen < 0 { 1753 return ErrInvalidLengthEvents 1754 } 1755 postIndex := iNdEx + intStringLen 1756 if postIndex < 0 { 1757 return ErrInvalidLengthEvents 1758 } 1759 if postIndex > l { 1760 return io.ErrUnexpectedEOF 1761 } 1762 m.Address = string(dAtA[iNdEx:postIndex]) 1763 iNdEx = postIndex 1764 default: 1765 iNdEx = preIndex 1766 skippy, err := skipEvents(dAtA[iNdEx:]) 1767 if err != nil { 1768 return err 1769 } 1770 if (skippy < 0) || (iNdEx+skippy) < 0 { 1771 return ErrInvalidLengthEvents 1772 } 1773 if (iNdEx + skippy) > l { 1774 return io.ErrUnexpectedEOF 1775 } 1776 iNdEx += skippy 1777 } 1778 } 1779 1780 if iNdEx > l { 1781 return io.ErrUnexpectedEOF 1782 } 1783 return nil 1784 } 1785 func (m *EventProposalPruned) Unmarshal(dAtA []byte) error { 1786 l := len(dAtA) 1787 iNdEx := 0 1788 for iNdEx < l { 1789 preIndex := iNdEx 1790 var wire uint64 1791 for shift := uint(0); ; shift += 7 { 1792 if shift >= 64 { 1793 return ErrIntOverflowEvents 1794 } 1795 if iNdEx >= l { 1796 return io.ErrUnexpectedEOF 1797 } 1798 b := dAtA[iNdEx] 1799 iNdEx++ 1800 wire |= uint64(b&0x7F) << shift 1801 if b < 0x80 { 1802 break 1803 } 1804 } 1805 fieldNum := int32(wire >> 3) 1806 wireType := int(wire & 0x7) 1807 if wireType == 4 { 1808 return fmt.Errorf("proto: EventProposalPruned: wiretype end group for non-group") 1809 } 1810 if fieldNum <= 0 { 1811 return fmt.Errorf("proto: EventProposalPruned: illegal tag %d (wire type %d)", fieldNum, wire) 1812 } 1813 switch fieldNum { 1814 case 1: 1815 if wireType != 0 { 1816 return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) 1817 } 1818 m.ProposalId = 0 1819 for shift := uint(0); ; shift += 7 { 1820 if shift >= 64 { 1821 return ErrIntOverflowEvents 1822 } 1823 if iNdEx >= l { 1824 return io.ErrUnexpectedEOF 1825 } 1826 b := dAtA[iNdEx] 1827 iNdEx++ 1828 m.ProposalId |= uint64(b&0x7F) << shift 1829 if b < 0x80 { 1830 break 1831 } 1832 } 1833 case 2: 1834 if wireType != 0 { 1835 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 1836 } 1837 m.Status = 0 1838 for shift := uint(0); ; shift += 7 { 1839 if shift >= 64 { 1840 return ErrIntOverflowEvents 1841 } 1842 if iNdEx >= l { 1843 return io.ErrUnexpectedEOF 1844 } 1845 b := dAtA[iNdEx] 1846 iNdEx++ 1847 m.Status |= ProposalStatus(b&0x7F) << shift 1848 if b < 0x80 { 1849 break 1850 } 1851 } 1852 case 3: 1853 if wireType != 2 { 1854 return fmt.Errorf("proto: wrong wireType = %d for field TallyResult", wireType) 1855 } 1856 var msglen int 1857 for shift := uint(0); ; shift += 7 { 1858 if shift >= 64 { 1859 return ErrIntOverflowEvents 1860 } 1861 if iNdEx >= l { 1862 return io.ErrUnexpectedEOF 1863 } 1864 b := dAtA[iNdEx] 1865 iNdEx++ 1866 msglen |= int(b&0x7F) << shift 1867 if b < 0x80 { 1868 break 1869 } 1870 } 1871 if msglen < 0 { 1872 return ErrInvalidLengthEvents 1873 } 1874 postIndex := iNdEx + msglen 1875 if postIndex < 0 { 1876 return ErrInvalidLengthEvents 1877 } 1878 if postIndex > l { 1879 return io.ErrUnexpectedEOF 1880 } 1881 if m.TallyResult == nil { 1882 m.TallyResult = &TallyResult{} 1883 } 1884 if err := m.TallyResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1885 return err 1886 } 1887 iNdEx = postIndex 1888 default: 1889 iNdEx = preIndex 1890 skippy, err := skipEvents(dAtA[iNdEx:]) 1891 if err != nil { 1892 return err 1893 } 1894 if (skippy < 0) || (iNdEx+skippy) < 0 { 1895 return ErrInvalidLengthEvents 1896 } 1897 if (iNdEx + skippy) > l { 1898 return io.ErrUnexpectedEOF 1899 } 1900 iNdEx += skippy 1901 } 1902 } 1903 1904 if iNdEx > l { 1905 return io.ErrUnexpectedEOF 1906 } 1907 return nil 1908 } 1909 func skipEvents(dAtA []byte) (n int, err error) { 1910 l := len(dAtA) 1911 iNdEx := 0 1912 depth := 0 1913 for iNdEx < l { 1914 var wire uint64 1915 for shift := uint(0); ; shift += 7 { 1916 if shift >= 64 { 1917 return 0, ErrIntOverflowEvents 1918 } 1919 if iNdEx >= l { 1920 return 0, io.ErrUnexpectedEOF 1921 } 1922 b := dAtA[iNdEx] 1923 iNdEx++ 1924 wire |= (uint64(b) & 0x7F) << shift 1925 if b < 0x80 { 1926 break 1927 } 1928 } 1929 wireType := int(wire & 0x7) 1930 switch wireType { 1931 case 0: 1932 for shift := uint(0); ; shift += 7 { 1933 if shift >= 64 { 1934 return 0, ErrIntOverflowEvents 1935 } 1936 if iNdEx >= l { 1937 return 0, io.ErrUnexpectedEOF 1938 } 1939 iNdEx++ 1940 if dAtA[iNdEx-1] < 0x80 { 1941 break 1942 } 1943 } 1944 case 1: 1945 iNdEx += 8 1946 case 2: 1947 var length int 1948 for shift := uint(0); ; shift += 7 { 1949 if shift >= 64 { 1950 return 0, ErrIntOverflowEvents 1951 } 1952 if iNdEx >= l { 1953 return 0, io.ErrUnexpectedEOF 1954 } 1955 b := dAtA[iNdEx] 1956 iNdEx++ 1957 length |= (int(b) & 0x7F) << shift 1958 if b < 0x80 { 1959 break 1960 } 1961 } 1962 if length < 0 { 1963 return 0, ErrInvalidLengthEvents 1964 } 1965 iNdEx += length 1966 case 3: 1967 depth++ 1968 case 4: 1969 if depth == 0 { 1970 return 0, ErrUnexpectedEndOfGroupEvents 1971 } 1972 depth-- 1973 case 5: 1974 iNdEx += 4 1975 default: 1976 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1977 } 1978 if iNdEx < 0 { 1979 return 0, ErrInvalidLengthEvents 1980 } 1981 if depth == 0 { 1982 return iNdEx, nil 1983 } 1984 } 1985 return 0, io.ErrUnexpectedEOF 1986 } 1987 1988 var ( 1989 ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") 1990 ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") 1991 ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") 1992 )