github.com/pingcap/ticdc@v0.0.0-20220526033649-485a10ef2652/proto/canal/EntryProtocol.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: EntryProtocol.proto 3 4 package com_alibaba_otter_canal_protocol 5 6 import ( 7 fmt "fmt" 8 io "io" 9 math "math" 10 math_bits "math/bits" 11 12 proto "github.com/golang/protobuf/proto" 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.ProtoPackageIsVersion3 // please upgrade the proto package 25 26 //*打散后的事件类型,主要用于标识事务的开始,变更数据,结束* 27 type EntryType int32 28 29 const ( 30 EntryType_ENTRYTYPECOMPATIBLEPROTO2 EntryType = 0 31 EntryType_TRANSACTIONBEGIN EntryType = 1 32 EntryType_ROWDATA EntryType = 2 33 EntryType_TRANSACTIONEND EntryType = 3 34 //* 心跳类型,内部使用,外部暂不可见,可忽略 * 35 EntryType_HEARTBEAT EntryType = 4 36 EntryType_GTIDLOG EntryType = 5 37 ) 38 39 var EntryType_name = map[int32]string{ 40 0: "ENTRYTYPECOMPATIBLEPROTO2", 41 1: "TRANSACTIONBEGIN", 42 2: "ROWDATA", 43 3: "TRANSACTIONEND", 44 4: "HEARTBEAT", 45 5: "GTIDLOG", 46 } 47 48 var EntryType_value = map[string]int32{ 49 "ENTRYTYPECOMPATIBLEPROTO2": 0, 50 "TRANSACTIONBEGIN": 1, 51 "ROWDATA": 2, 52 "TRANSACTIONEND": 3, 53 "HEARTBEAT": 4, 54 "GTIDLOG": 5, 55 } 56 57 func (x EntryType) String() string { 58 return proto.EnumName(EntryType_name, int32(x)) 59 } 60 61 func (EntryType) EnumDescriptor() ([]byte, []int) { 62 return fileDescriptor_237ce6ff565bd62b, []int{0} 63 } 64 65 //* 事件类型 * 66 type EventType int32 67 68 const ( 69 EventType_EVENTTYPECOMPATIBLEPROTO2 EventType = 0 70 EventType_INSERT EventType = 1 71 EventType_UPDATE EventType = 2 72 EventType_DELETE EventType = 3 73 EventType_CREATE EventType = 4 74 EventType_ALTER EventType = 5 75 EventType_ERASE EventType = 6 76 EventType_QUERY EventType = 7 77 EventType_TRUNCATE EventType = 8 78 EventType_RENAME EventType = 9 79 //*CREATE INDEX* 80 EventType_CINDEX EventType = 10 81 EventType_DINDEX EventType = 11 82 EventType_GTID EventType = 12 83 //* XA * 84 EventType_XACOMMIT EventType = 13 85 EventType_XAROLLBACK EventType = 14 86 //* MASTER HEARTBEAT * 87 EventType_MHEARTBEAT EventType = 15 88 ) 89 90 var EventType_name = map[int32]string{ 91 0: "EVENTTYPECOMPATIBLEPROTO2", 92 1: "INSERT", 93 2: "UPDATE", 94 3: "DELETE", 95 4: "CREATE", 96 5: "ALTER", 97 6: "ERASE", 98 7: "QUERY", 99 8: "TRUNCATE", 100 9: "RENAME", 101 10: "CINDEX", 102 11: "DINDEX", 103 12: "GTID", 104 13: "XACOMMIT", 105 14: "XAROLLBACK", 106 15: "MHEARTBEAT", 107 } 108 109 var EventType_value = map[string]int32{ 110 "EVENTTYPECOMPATIBLEPROTO2": 0, 111 "INSERT": 1, 112 "UPDATE": 2, 113 "DELETE": 3, 114 "CREATE": 4, 115 "ALTER": 5, 116 "ERASE": 6, 117 "QUERY": 7, 118 "TRUNCATE": 8, 119 "RENAME": 9, 120 "CINDEX": 10, 121 "DINDEX": 11, 122 "GTID": 12, 123 "XACOMMIT": 13, 124 "XAROLLBACK": 14, 125 "MHEARTBEAT": 15, 126 } 127 128 func (x EventType) String() string { 129 return proto.EnumName(EventType_name, int32(x)) 130 } 131 132 func (EventType) EnumDescriptor() ([]byte, []int) { 133 return fileDescriptor_237ce6ff565bd62b, []int{1} 134 } 135 136 //*数据库类型* 137 type Type int32 138 139 const ( 140 Type_TYPECOMPATIBLEPROTO2 Type = 0 141 Type_ORACLE Type = 1 142 Type_MYSQL Type = 2 143 Type_PGSQL Type = 3 144 ) 145 146 var Type_name = map[int32]string{ 147 0: "TYPECOMPATIBLEPROTO2", 148 1: "ORACLE", 149 2: "MYSQL", 150 3: "PGSQL", 151 } 152 153 var Type_value = map[string]int32{ 154 "TYPECOMPATIBLEPROTO2": 0, 155 "ORACLE": 1, 156 "MYSQL": 2, 157 "PGSQL": 3, 158 } 159 160 func (x Type) String() string { 161 return proto.EnumName(Type_name, int32(x)) 162 } 163 164 func (Type) EnumDescriptor() ([]byte, []int) { 165 return fileDescriptor_237ce6ff565bd62b, []int{2} 166 } 167 168 //*************************************************************** 169 // message model 170 //如果要在Enum中新增类型,确保以前的类型的下标值不变. 171 //************************************************************** 172 type Entry struct { 173 //*协议头部信息* 174 Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` 175 ///**打散后的事件类型**/ [default = ROWDATA] 176 // 177 // Types that are valid to be assigned to EntryTypePresent: 178 // *Entry_EntryType 179 EntryTypePresent isEntry_EntryTypePresent `protobuf_oneof:"entryType_present"` 180 //*传输的二进制数组* 181 StoreValue []byte `protobuf:"bytes,3,opt,name=storeValue,proto3" json:"storeValue,omitempty"` 182 XXX_NoUnkeyedLiteral struct{} `json:"-"` 183 XXX_unrecognized []byte `json:"-"` 184 XXX_sizecache int32 `json:"-"` 185 } 186 187 func (m *Entry) Reset() { *m = Entry{} } 188 func (m *Entry) String() string { return proto.CompactTextString(m) } 189 func (*Entry) ProtoMessage() {} 190 func (*Entry) Descriptor() ([]byte, []int) { 191 return fileDescriptor_237ce6ff565bd62b, []int{0} 192 } 193 func (m *Entry) XXX_Unmarshal(b []byte) error { 194 return m.Unmarshal(b) 195 } 196 func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 197 if deterministic { 198 return xxx_messageInfo_Entry.Marshal(b, m, deterministic) 199 } else { 200 b = b[:cap(b)] 201 n, err := m.MarshalToSizedBuffer(b) 202 if err != nil { 203 return nil, err 204 } 205 return b[:n], nil 206 } 207 } 208 func (m *Entry) XXX_Merge(src proto.Message) { 209 xxx_messageInfo_Entry.Merge(m, src) 210 } 211 func (m *Entry) XXX_Size() int { 212 return m.Size() 213 } 214 func (m *Entry) XXX_DiscardUnknown() { 215 xxx_messageInfo_Entry.DiscardUnknown(m) 216 } 217 218 var xxx_messageInfo_Entry proto.InternalMessageInfo 219 220 type isEntry_EntryTypePresent interface { 221 isEntry_EntryTypePresent() 222 MarshalTo([]byte) (int, error) 223 Size() int 224 } 225 226 type Entry_EntryType struct { 227 EntryType EntryType `protobuf:"varint,2,opt,name=entryType,proto3,enum=com.alibaba.otter.canal.protocol.EntryType,oneof" json:"entryType,omitempty"` 228 } 229 230 func (*Entry_EntryType) isEntry_EntryTypePresent() {} 231 232 func (m *Entry) GetEntryTypePresent() isEntry_EntryTypePresent { 233 if m != nil { 234 return m.EntryTypePresent 235 } 236 return nil 237 } 238 239 func (m *Entry) GetHeader() *Header { 240 if m != nil { 241 return m.Header 242 } 243 return nil 244 } 245 246 func (m *Entry) GetEntryType() EntryType { 247 if x, ok := m.GetEntryTypePresent().(*Entry_EntryType); ok { 248 return x.EntryType 249 } 250 return EntryType_ENTRYTYPECOMPATIBLEPROTO2 251 } 252 253 func (m *Entry) GetStoreValue() []byte { 254 if m != nil { 255 return m.StoreValue 256 } 257 return nil 258 } 259 260 // XXX_OneofWrappers is for the internal use of the proto package. 261 func (*Entry) XXX_OneofWrappers() []interface{} { 262 return []interface{}{ 263 (*Entry_EntryType)(nil), 264 } 265 } 266 267 //*message Header* 268 type Header struct { 269 //[default = 1] 270 // 271 // Types that are valid to be assigned to VersionPresent: 272 // *Header_Version 273 VersionPresent isHeader_VersionPresent `protobuf_oneof:"version_present"` 274 //*binlog/redolog 文件名* 275 LogfileName string `protobuf:"bytes,2,opt,name=logfileName,proto3" json:"logfileName,omitempty"` 276 //*binlog/redolog 文件的偏移位置* 277 LogfileOffset int64 `protobuf:"varint,3,opt,name=logfileOffset,proto3" json:"logfileOffset,omitempty"` 278 //*服务端serverId* 279 ServerId int64 `protobuf:"varint,4,opt,name=serverId,proto3" json:"serverId,omitempty"` 280 //* 变更数据的编码 * 281 ServerenCode string `protobuf:"bytes,5,opt,name=serverenCode,proto3" json:"serverenCode,omitempty"` 282 //*变更数据的执行时间 * 283 ExecuteTime int64 `protobuf:"varint,6,opt,name=executeTime,proto3" json:"executeTime,omitempty"` 284 //[default = MYSQL] 285 // 286 // Types that are valid to be assigned to SourceTypePresent: 287 // *Header_SourceType 288 SourceTypePresent isHeader_SourceTypePresent `protobuf_oneof:"sourceType_present"` 289 //* 变更数据的schemaname* 290 SchemaName string `protobuf:"bytes,8,opt,name=schemaName,proto3" json:"schemaName,omitempty"` 291 //*变更数据的tablename* 292 TableName string `protobuf:"bytes,9,opt,name=tableName,proto3" json:"tableName,omitempty"` 293 //*每个event的长度* 294 EventLength int64 `protobuf:"varint,10,opt,name=eventLength,proto3" json:"eventLength,omitempty"` 295 // [default = UPDATE] 296 // 297 // Types that are valid to be assigned to EventTypePresent: 298 // *Header_EventType 299 EventTypePresent isHeader_EventTypePresent `protobuf_oneof:"eventType_present"` 300 //*预留扩展* 301 Props []*Pair `protobuf:"bytes,12,rep,name=props,proto3" json:"props,omitempty"` 302 //*当前事务的gitd* 303 Gtid string `protobuf:"bytes,13,opt,name=gtid,proto3" json:"gtid,omitempty"` 304 XXX_NoUnkeyedLiteral struct{} `json:"-"` 305 XXX_unrecognized []byte `json:"-"` 306 XXX_sizecache int32 `json:"-"` 307 } 308 309 func (m *Header) Reset() { *m = Header{} } 310 func (m *Header) String() string { return proto.CompactTextString(m) } 311 func (*Header) ProtoMessage() {} 312 func (*Header) Descriptor() ([]byte, []int) { 313 return fileDescriptor_237ce6ff565bd62b, []int{1} 314 } 315 func (m *Header) XXX_Unmarshal(b []byte) error { 316 return m.Unmarshal(b) 317 } 318 func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 319 if deterministic { 320 return xxx_messageInfo_Header.Marshal(b, m, deterministic) 321 } else { 322 b = b[:cap(b)] 323 n, err := m.MarshalToSizedBuffer(b) 324 if err != nil { 325 return nil, err 326 } 327 return b[:n], nil 328 } 329 } 330 func (m *Header) XXX_Merge(src proto.Message) { 331 xxx_messageInfo_Header.Merge(m, src) 332 } 333 func (m *Header) XXX_Size() int { 334 return m.Size() 335 } 336 func (m *Header) XXX_DiscardUnknown() { 337 xxx_messageInfo_Header.DiscardUnknown(m) 338 } 339 340 var xxx_messageInfo_Header proto.InternalMessageInfo 341 342 type isHeader_VersionPresent interface { 343 isHeader_VersionPresent() 344 MarshalTo([]byte) (int, error) 345 Size() int 346 } 347 type isHeader_SourceTypePresent interface { 348 isHeader_SourceTypePresent() 349 MarshalTo([]byte) (int, error) 350 Size() int 351 } 352 type isHeader_EventTypePresent interface { 353 isHeader_EventTypePresent() 354 MarshalTo([]byte) (int, error) 355 Size() int 356 } 357 358 type Header_Version struct { 359 Version int32 `protobuf:"varint,1,opt,name=version,proto3,oneof" json:"version,omitempty"` 360 } 361 type Header_SourceType struct { 362 SourceType Type `protobuf:"varint,7,opt,name=sourceType,proto3,enum=com.alibaba.otter.canal.protocol.Type,oneof" json:"sourceType,omitempty"` 363 } 364 type Header_EventType struct { 365 EventType EventType `protobuf:"varint,11,opt,name=eventType,proto3,enum=com.alibaba.otter.canal.protocol.EventType,oneof" json:"eventType,omitempty"` 366 } 367 368 func (*Header_Version) isHeader_VersionPresent() {} 369 func (*Header_SourceType) isHeader_SourceTypePresent() {} 370 func (*Header_EventType) isHeader_EventTypePresent() {} 371 372 func (m *Header) GetVersionPresent() isHeader_VersionPresent { 373 if m != nil { 374 return m.VersionPresent 375 } 376 return nil 377 } 378 func (m *Header) GetSourceTypePresent() isHeader_SourceTypePresent { 379 if m != nil { 380 return m.SourceTypePresent 381 } 382 return nil 383 } 384 func (m *Header) GetEventTypePresent() isHeader_EventTypePresent { 385 if m != nil { 386 return m.EventTypePresent 387 } 388 return nil 389 } 390 391 func (m *Header) GetVersion() int32 { 392 if x, ok := m.GetVersionPresent().(*Header_Version); ok { 393 return x.Version 394 } 395 return 0 396 } 397 398 func (m *Header) GetLogfileName() string { 399 if m != nil { 400 return m.LogfileName 401 } 402 return "" 403 } 404 405 func (m *Header) GetLogfileOffset() int64 { 406 if m != nil { 407 return m.LogfileOffset 408 } 409 return 0 410 } 411 412 func (m *Header) GetServerId() int64 { 413 if m != nil { 414 return m.ServerId 415 } 416 return 0 417 } 418 419 func (m *Header) GetServerenCode() string { 420 if m != nil { 421 return m.ServerenCode 422 } 423 return "" 424 } 425 426 func (m *Header) GetExecuteTime() int64 { 427 if m != nil { 428 return m.ExecuteTime 429 } 430 return 0 431 } 432 433 func (m *Header) GetSourceType() Type { 434 if x, ok := m.GetSourceTypePresent().(*Header_SourceType); ok { 435 return x.SourceType 436 } 437 return Type_TYPECOMPATIBLEPROTO2 438 } 439 440 func (m *Header) GetSchemaName() string { 441 if m != nil { 442 return m.SchemaName 443 } 444 return "" 445 } 446 447 func (m *Header) GetTableName() string { 448 if m != nil { 449 return m.TableName 450 } 451 return "" 452 } 453 454 func (m *Header) GetEventLength() int64 { 455 if m != nil { 456 return m.EventLength 457 } 458 return 0 459 } 460 461 func (m *Header) GetEventType() EventType { 462 if x, ok := m.GetEventTypePresent().(*Header_EventType); ok { 463 return x.EventType 464 } 465 return EventType_EVENTTYPECOMPATIBLEPROTO2 466 } 467 468 func (m *Header) GetProps() []*Pair { 469 if m != nil { 470 return m.Props 471 } 472 return nil 473 } 474 475 func (m *Header) GetGtid() string { 476 if m != nil { 477 return m.Gtid 478 } 479 return "" 480 } 481 482 // XXX_OneofWrappers is for the internal use of the proto package. 483 func (*Header) XXX_OneofWrappers() []interface{} { 484 return []interface{}{ 485 (*Header_Version)(nil), 486 (*Header_SourceType)(nil), 487 (*Header_EventType)(nil), 488 } 489 } 490 491 //*每个字段的数据结构* 492 type Column struct { 493 //*字段下标* 494 Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` 495 //*字段java中类型* 496 SqlType int32 `protobuf:"varint,2,opt,name=sqlType,proto3" json:"sqlType,omitempty"` 497 //*字段名称(忽略大小写),在mysql中是没有的* 498 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` 499 //*是否是主键* 500 IsKey bool `protobuf:"varint,4,opt,name=isKey,proto3" json:"isKey,omitempty"` 501 //*如果EventType=UPDATE,用于标识这个字段值是否有修改* 502 Updated bool `protobuf:"varint,5,opt,name=updated,proto3" json:"updated,omitempty"` 503 //[default = false] 504 // 505 // Types that are valid to be assigned to IsNullPresent: 506 // *Column_IsNull 507 IsNullPresent isColumn_IsNullPresent `protobuf_oneof:"isNull_present"` 508 //*预留扩展* 509 Props []*Pair `protobuf:"bytes,7,rep,name=props,proto3" json:"props,omitempty"` 510 //* 字段值,timestamp,Datetime是一个时间格式的文本 * 511 Value string `protobuf:"bytes,8,opt,name=value,proto3" json:"value,omitempty"` 512 //* 对应数据对象原始长度 * 513 Length int32 `protobuf:"varint,9,opt,name=length,proto3" json:"length,omitempty"` 514 //*字段mysql类型* 515 MysqlType string `protobuf:"bytes,10,opt,name=mysqlType,proto3" json:"mysqlType,omitempty"` 516 XXX_NoUnkeyedLiteral struct{} `json:"-"` 517 XXX_unrecognized []byte `json:"-"` 518 XXX_sizecache int32 `json:"-"` 519 } 520 521 func (m *Column) Reset() { *m = Column{} } 522 func (m *Column) String() string { return proto.CompactTextString(m) } 523 func (*Column) ProtoMessage() {} 524 func (*Column) Descriptor() ([]byte, []int) { 525 return fileDescriptor_237ce6ff565bd62b, []int{2} 526 } 527 func (m *Column) XXX_Unmarshal(b []byte) error { 528 return m.Unmarshal(b) 529 } 530 func (m *Column) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 531 if deterministic { 532 return xxx_messageInfo_Column.Marshal(b, m, deterministic) 533 } else { 534 b = b[:cap(b)] 535 n, err := m.MarshalToSizedBuffer(b) 536 if err != nil { 537 return nil, err 538 } 539 return b[:n], nil 540 } 541 } 542 func (m *Column) XXX_Merge(src proto.Message) { 543 xxx_messageInfo_Column.Merge(m, src) 544 } 545 func (m *Column) XXX_Size() int { 546 return m.Size() 547 } 548 func (m *Column) XXX_DiscardUnknown() { 549 xxx_messageInfo_Column.DiscardUnknown(m) 550 } 551 552 var xxx_messageInfo_Column proto.InternalMessageInfo 553 554 type isColumn_IsNullPresent interface { 555 isColumn_IsNullPresent() 556 MarshalTo([]byte) (int, error) 557 Size() int 558 } 559 560 type Column_IsNull struct { 561 IsNull bool `protobuf:"varint,6,opt,name=isNull,proto3,oneof" json:"isNull,omitempty"` 562 } 563 564 func (*Column_IsNull) isColumn_IsNullPresent() {} 565 566 func (m *Column) GetIsNullPresent() isColumn_IsNullPresent { 567 if m != nil { 568 return m.IsNullPresent 569 } 570 return nil 571 } 572 573 func (m *Column) GetIndex() int32 { 574 if m != nil { 575 return m.Index 576 } 577 return 0 578 } 579 580 func (m *Column) GetSqlType() int32 { 581 if m != nil { 582 return m.SqlType 583 } 584 return 0 585 } 586 587 func (m *Column) GetName() string { 588 if m != nil { 589 return m.Name 590 } 591 return "" 592 } 593 594 func (m *Column) GetIsKey() bool { 595 if m != nil { 596 return m.IsKey 597 } 598 return false 599 } 600 601 func (m *Column) GetUpdated() bool { 602 if m != nil { 603 return m.Updated 604 } 605 return false 606 } 607 608 func (m *Column) GetIsNull() bool { 609 if x, ok := m.GetIsNullPresent().(*Column_IsNull); ok { 610 return x.IsNull 611 } 612 return false 613 } 614 615 func (m *Column) GetProps() []*Pair { 616 if m != nil { 617 return m.Props 618 } 619 return nil 620 } 621 622 func (m *Column) GetValue() string { 623 if m != nil { 624 return m.Value 625 } 626 return "" 627 } 628 629 func (m *Column) GetLength() int32 { 630 if m != nil { 631 return m.Length 632 } 633 return 0 634 } 635 636 func (m *Column) GetMysqlType() string { 637 if m != nil { 638 return m.MysqlType 639 } 640 return "" 641 } 642 643 // XXX_OneofWrappers is for the internal use of the proto package. 644 func (*Column) XXX_OneofWrappers() []interface{} { 645 return []interface{}{ 646 (*Column_IsNull)(nil), 647 } 648 } 649 650 type RowData struct { 651 //* 字段信息,增量数据(修改前,删除前) * 652 BeforeColumns []*Column `protobuf:"bytes,1,rep,name=beforeColumns,proto3" json:"beforeColumns,omitempty"` 653 //* 字段信息,增量数据(修改后,新增后) * 654 AfterColumns []*Column `protobuf:"bytes,2,rep,name=afterColumns,proto3" json:"afterColumns,omitempty"` 655 //*预留扩展* 656 Props []*Pair `protobuf:"bytes,3,rep,name=props,proto3" json:"props,omitempty"` 657 XXX_NoUnkeyedLiteral struct{} `json:"-"` 658 XXX_unrecognized []byte `json:"-"` 659 XXX_sizecache int32 `json:"-"` 660 } 661 662 func (m *RowData) Reset() { *m = RowData{} } 663 func (m *RowData) String() string { return proto.CompactTextString(m) } 664 func (*RowData) ProtoMessage() {} 665 func (*RowData) Descriptor() ([]byte, []int) { 666 return fileDescriptor_237ce6ff565bd62b, []int{3} 667 } 668 func (m *RowData) XXX_Unmarshal(b []byte) error { 669 return m.Unmarshal(b) 670 } 671 func (m *RowData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 672 if deterministic { 673 return xxx_messageInfo_RowData.Marshal(b, m, deterministic) 674 } else { 675 b = b[:cap(b)] 676 n, err := m.MarshalToSizedBuffer(b) 677 if err != nil { 678 return nil, err 679 } 680 return b[:n], nil 681 } 682 } 683 func (m *RowData) XXX_Merge(src proto.Message) { 684 xxx_messageInfo_RowData.Merge(m, src) 685 } 686 func (m *RowData) XXX_Size() int { 687 return m.Size() 688 } 689 func (m *RowData) XXX_DiscardUnknown() { 690 xxx_messageInfo_RowData.DiscardUnknown(m) 691 } 692 693 var xxx_messageInfo_RowData proto.InternalMessageInfo 694 695 func (m *RowData) GetBeforeColumns() []*Column { 696 if m != nil { 697 return m.BeforeColumns 698 } 699 return nil 700 } 701 702 func (m *RowData) GetAfterColumns() []*Column { 703 if m != nil { 704 return m.AfterColumns 705 } 706 return nil 707 } 708 709 func (m *RowData) GetProps() []*Pair { 710 if m != nil { 711 return m.Props 712 } 713 return nil 714 } 715 716 //*message row 每行变更数据的数据结构* 717 type RowChange struct { 718 //*tableId,由数据库产生* 719 TableId int64 `protobuf:"varint,1,opt,name=tableId,proto3" json:"tableId,omitempty"` 720 //[default = UPDATE] 721 // 722 // Types that are valid to be assigned to EventTypePresent: 723 // *RowChange_EventType 724 EventTypePresent isRowChange_EventTypePresent `protobuf_oneof:"eventType_present"` 725 // [default = false] 726 // 727 // Types that are valid to be assigned to IsDdlPresent: 728 // *RowChange_IsDdl 729 IsDdlPresent isRowChange_IsDdlPresent `protobuf_oneof:"isDdl_present"` 730 //* ddl/query的sql语句 * 731 Sql string `protobuf:"bytes,11,opt,name=sql,proto3" json:"sql,omitempty"` 732 //* 一次数据库变更可能存在多行 * 733 RowDatas []*RowData `protobuf:"bytes,12,rep,name=rowDatas,proto3" json:"rowDatas,omitempty"` 734 //*预留扩展* 735 Props []*Pair `protobuf:"bytes,13,rep,name=props,proto3" json:"props,omitempty"` 736 //* ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName * 737 DdlSchemaName string `protobuf:"bytes,14,opt,name=ddlSchemaName,proto3" json:"ddlSchemaName,omitempty"` 738 XXX_NoUnkeyedLiteral struct{} `json:"-"` 739 XXX_unrecognized []byte `json:"-"` 740 XXX_sizecache int32 `json:"-"` 741 } 742 743 func (m *RowChange) Reset() { *m = RowChange{} } 744 func (m *RowChange) String() string { return proto.CompactTextString(m) } 745 func (*RowChange) ProtoMessage() {} 746 func (*RowChange) Descriptor() ([]byte, []int) { 747 return fileDescriptor_237ce6ff565bd62b, []int{4} 748 } 749 func (m *RowChange) XXX_Unmarshal(b []byte) error { 750 return m.Unmarshal(b) 751 } 752 func (m *RowChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 753 if deterministic { 754 return xxx_messageInfo_RowChange.Marshal(b, m, deterministic) 755 } else { 756 b = b[:cap(b)] 757 n, err := m.MarshalToSizedBuffer(b) 758 if err != nil { 759 return nil, err 760 } 761 return b[:n], nil 762 } 763 } 764 func (m *RowChange) XXX_Merge(src proto.Message) { 765 xxx_messageInfo_RowChange.Merge(m, src) 766 } 767 func (m *RowChange) XXX_Size() int { 768 return m.Size() 769 } 770 func (m *RowChange) XXX_DiscardUnknown() { 771 xxx_messageInfo_RowChange.DiscardUnknown(m) 772 } 773 774 var xxx_messageInfo_RowChange proto.InternalMessageInfo 775 776 type isRowChange_EventTypePresent interface { 777 isRowChange_EventTypePresent() 778 MarshalTo([]byte) (int, error) 779 Size() int 780 } 781 type isRowChange_IsDdlPresent interface { 782 isRowChange_IsDdlPresent() 783 MarshalTo([]byte) (int, error) 784 Size() int 785 } 786 787 type RowChange_EventType struct { 788 EventType EventType `protobuf:"varint,2,opt,name=eventType,proto3,enum=com.alibaba.otter.canal.protocol.EventType,oneof" json:"eventType,omitempty"` 789 } 790 type RowChange_IsDdl struct { 791 IsDdl bool `protobuf:"varint,10,opt,name=isDdl,proto3,oneof" json:"isDdl,omitempty"` 792 } 793 794 func (*RowChange_EventType) isRowChange_EventTypePresent() {} 795 func (*RowChange_IsDdl) isRowChange_IsDdlPresent() {} 796 797 func (m *RowChange) GetEventTypePresent() isRowChange_EventTypePresent { 798 if m != nil { 799 return m.EventTypePresent 800 } 801 return nil 802 } 803 func (m *RowChange) GetIsDdlPresent() isRowChange_IsDdlPresent { 804 if m != nil { 805 return m.IsDdlPresent 806 } 807 return nil 808 } 809 810 func (m *RowChange) GetTableId() int64 { 811 if m != nil { 812 return m.TableId 813 } 814 return 0 815 } 816 817 func (m *RowChange) GetEventType() EventType { 818 if x, ok := m.GetEventTypePresent().(*RowChange_EventType); ok { 819 return x.EventType 820 } 821 return EventType_EVENTTYPECOMPATIBLEPROTO2 822 } 823 824 func (m *RowChange) GetIsDdl() bool { 825 if x, ok := m.GetIsDdlPresent().(*RowChange_IsDdl); ok { 826 return x.IsDdl 827 } 828 return false 829 } 830 831 func (m *RowChange) GetSql() string { 832 if m != nil { 833 return m.Sql 834 } 835 return "" 836 } 837 838 func (m *RowChange) GetRowDatas() []*RowData { 839 if m != nil { 840 return m.RowDatas 841 } 842 return nil 843 } 844 845 func (m *RowChange) GetProps() []*Pair { 846 if m != nil { 847 return m.Props 848 } 849 return nil 850 } 851 852 func (m *RowChange) GetDdlSchemaName() string { 853 if m != nil { 854 return m.DdlSchemaName 855 } 856 return "" 857 } 858 859 // XXX_OneofWrappers is for the internal use of the proto package. 860 func (*RowChange) XXX_OneofWrappers() []interface{} { 861 return []interface{}{ 862 (*RowChange_EventType)(nil), 863 (*RowChange_IsDdl)(nil), 864 } 865 } 866 867 //*开始事务的一些信息* 868 type TransactionBegin struct { 869 //*已废弃,请使用header里的executeTime* 870 ExecuteTime int64 `protobuf:"varint,1,opt,name=executeTime,proto3" json:"executeTime,omitempty"` 871 //*已废弃,Begin里不提供事务id* 872 TransactionId string `protobuf:"bytes,2,opt,name=transactionId,proto3" json:"transactionId,omitempty"` 873 //*预留扩展* 874 Props []*Pair `protobuf:"bytes,3,rep,name=props,proto3" json:"props,omitempty"` 875 //*执行的thread ID* 876 ThreadId int64 `protobuf:"varint,4,opt,name=threadId,proto3" json:"threadId,omitempty"` 877 XXX_NoUnkeyedLiteral struct{} `json:"-"` 878 XXX_unrecognized []byte `json:"-"` 879 XXX_sizecache int32 `json:"-"` 880 } 881 882 func (m *TransactionBegin) Reset() { *m = TransactionBegin{} } 883 func (m *TransactionBegin) String() string { return proto.CompactTextString(m) } 884 func (*TransactionBegin) ProtoMessage() {} 885 func (*TransactionBegin) Descriptor() ([]byte, []int) { 886 return fileDescriptor_237ce6ff565bd62b, []int{5} 887 } 888 func (m *TransactionBegin) XXX_Unmarshal(b []byte) error { 889 return m.Unmarshal(b) 890 } 891 func (m *TransactionBegin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 892 if deterministic { 893 return xxx_messageInfo_TransactionBegin.Marshal(b, m, deterministic) 894 } else { 895 b = b[:cap(b)] 896 n, err := m.MarshalToSizedBuffer(b) 897 if err != nil { 898 return nil, err 899 } 900 return b[:n], nil 901 } 902 } 903 func (m *TransactionBegin) XXX_Merge(src proto.Message) { 904 xxx_messageInfo_TransactionBegin.Merge(m, src) 905 } 906 func (m *TransactionBegin) XXX_Size() int { 907 return m.Size() 908 } 909 func (m *TransactionBegin) XXX_DiscardUnknown() { 910 xxx_messageInfo_TransactionBegin.DiscardUnknown(m) 911 } 912 913 var xxx_messageInfo_TransactionBegin proto.InternalMessageInfo 914 915 func (m *TransactionBegin) GetExecuteTime() int64 { 916 if m != nil { 917 return m.ExecuteTime 918 } 919 return 0 920 } 921 922 func (m *TransactionBegin) GetTransactionId() string { 923 if m != nil { 924 return m.TransactionId 925 } 926 return "" 927 } 928 929 func (m *TransactionBegin) GetProps() []*Pair { 930 if m != nil { 931 return m.Props 932 } 933 return nil 934 } 935 936 func (m *TransactionBegin) GetThreadId() int64 { 937 if m != nil { 938 return m.ThreadId 939 } 940 return 0 941 } 942 943 //*结束事务的一些信息* 944 type TransactionEnd struct { 945 //*已废弃,请使用header里的executeTime* 946 ExecuteTime int64 `protobuf:"varint,1,opt,name=executeTime,proto3" json:"executeTime,omitempty"` 947 //*事务号* 948 TransactionId string `protobuf:"bytes,2,opt,name=transactionId,proto3" json:"transactionId,omitempty"` 949 //*预留扩展* 950 Props []*Pair `protobuf:"bytes,3,rep,name=props,proto3" json:"props,omitempty"` 951 XXX_NoUnkeyedLiteral struct{} `json:"-"` 952 XXX_unrecognized []byte `json:"-"` 953 XXX_sizecache int32 `json:"-"` 954 } 955 956 func (m *TransactionEnd) Reset() { *m = TransactionEnd{} } 957 func (m *TransactionEnd) String() string { return proto.CompactTextString(m) } 958 func (*TransactionEnd) ProtoMessage() {} 959 func (*TransactionEnd) Descriptor() ([]byte, []int) { 960 return fileDescriptor_237ce6ff565bd62b, []int{6} 961 } 962 func (m *TransactionEnd) XXX_Unmarshal(b []byte) error { 963 return m.Unmarshal(b) 964 } 965 func (m *TransactionEnd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 966 if deterministic { 967 return xxx_messageInfo_TransactionEnd.Marshal(b, m, deterministic) 968 } else { 969 b = b[:cap(b)] 970 n, err := m.MarshalToSizedBuffer(b) 971 if err != nil { 972 return nil, err 973 } 974 return b[:n], nil 975 } 976 } 977 func (m *TransactionEnd) XXX_Merge(src proto.Message) { 978 xxx_messageInfo_TransactionEnd.Merge(m, src) 979 } 980 func (m *TransactionEnd) XXX_Size() int { 981 return m.Size() 982 } 983 func (m *TransactionEnd) XXX_DiscardUnknown() { 984 xxx_messageInfo_TransactionEnd.DiscardUnknown(m) 985 } 986 987 var xxx_messageInfo_TransactionEnd proto.InternalMessageInfo 988 989 func (m *TransactionEnd) GetExecuteTime() int64 { 990 if m != nil { 991 return m.ExecuteTime 992 } 993 return 0 994 } 995 996 func (m *TransactionEnd) GetTransactionId() string { 997 if m != nil { 998 return m.TransactionId 999 } 1000 return "" 1001 } 1002 1003 func (m *TransactionEnd) GetProps() []*Pair { 1004 if m != nil { 1005 return m.Props 1006 } 1007 return nil 1008 } 1009 1010 //*预留扩展* 1011 type Pair struct { 1012 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 1013 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 1014 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1015 XXX_unrecognized []byte `json:"-"` 1016 XXX_sizecache int32 `json:"-"` 1017 } 1018 1019 func (m *Pair) Reset() { *m = Pair{} } 1020 func (m *Pair) String() string { return proto.CompactTextString(m) } 1021 func (*Pair) ProtoMessage() {} 1022 func (*Pair) Descriptor() ([]byte, []int) { 1023 return fileDescriptor_237ce6ff565bd62b, []int{7} 1024 } 1025 func (m *Pair) XXX_Unmarshal(b []byte) error { 1026 return m.Unmarshal(b) 1027 } 1028 func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1029 if deterministic { 1030 return xxx_messageInfo_Pair.Marshal(b, m, deterministic) 1031 } else { 1032 b = b[:cap(b)] 1033 n, err := m.MarshalToSizedBuffer(b) 1034 if err != nil { 1035 return nil, err 1036 } 1037 return b[:n], nil 1038 } 1039 } 1040 func (m *Pair) XXX_Merge(src proto.Message) { 1041 xxx_messageInfo_Pair.Merge(m, src) 1042 } 1043 func (m *Pair) XXX_Size() int { 1044 return m.Size() 1045 } 1046 func (m *Pair) XXX_DiscardUnknown() { 1047 xxx_messageInfo_Pair.DiscardUnknown(m) 1048 } 1049 1050 var xxx_messageInfo_Pair proto.InternalMessageInfo 1051 1052 func (m *Pair) GetKey() string { 1053 if m != nil { 1054 return m.Key 1055 } 1056 return "" 1057 } 1058 1059 func (m *Pair) GetValue() string { 1060 if m != nil { 1061 return m.Value 1062 } 1063 return "" 1064 } 1065 1066 func init() { 1067 proto.RegisterEnum("com.alibaba.otter.canal.protocol.EntryType", EntryType_name, EntryType_value) 1068 proto.RegisterEnum("com.alibaba.otter.canal.protocol.EventType", EventType_name, EventType_value) 1069 proto.RegisterEnum("com.alibaba.otter.canal.protocol.Type", Type_name, Type_value) 1070 proto.RegisterType((*Entry)(nil), "com.alibaba.otter.canal.protocol.Entry") 1071 proto.RegisterType((*Header)(nil), "com.alibaba.otter.canal.protocol.Header") 1072 proto.RegisterType((*Column)(nil), "com.alibaba.otter.canal.protocol.Column") 1073 proto.RegisterType((*RowData)(nil), "com.alibaba.otter.canal.protocol.RowData") 1074 proto.RegisterType((*RowChange)(nil), "com.alibaba.otter.canal.protocol.RowChange") 1075 proto.RegisterType((*TransactionBegin)(nil), "com.alibaba.otter.canal.protocol.TransactionBegin") 1076 proto.RegisterType((*TransactionEnd)(nil), "com.alibaba.otter.canal.protocol.TransactionEnd") 1077 proto.RegisterType((*Pair)(nil), "com.alibaba.otter.canal.protocol.Pair") 1078 } 1079 1080 func init() { proto.RegisterFile("EntryProtocol.proto", fileDescriptor_237ce6ff565bd62b) } 1081 1082 var fileDescriptor_237ce6ff565bd62b = []byte{ 1083 // 1071 bytes of a gzipped FileDescriptorProto 1084 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcd, 0x6e, 0xdb, 0x46, 1085 0x10, 0x16, 0xf5, 0xcf, 0xd1, 0x8f, 0x37, 0x1b, 0x23, 0x60, 0x83, 0xd6, 0x10, 0x04, 0xa3, 0x70, 1086 0x5d, 0x40, 0x07, 0xf7, 0xda, 0x43, 0x48, 0x6a, 0x61, 0x09, 0x96, 0x28, 0x65, 0xbd, 0x4e, 0xed, 1087 0x53, 0x41, 0x8b, 0x6b, 0x5b, 0x28, 0x45, 0x2a, 0x24, 0xe5, 0xc4, 0x87, 0xbe, 0x46, 0xd1, 0xe7, 1088 0x28, 0xfa, 0x10, 0x05, 0x7a, 0xe9, 0xa5, 0xf7, 0xc2, 0x45, 0x8e, 0x7d, 0x87, 0x62, 0x97, 0x7f, 1089 0x52, 0xdb, 0x40, 0x8e, 0x7b, 0xc9, 0x6d, 0x66, 0xb4, 0xdf, 0xec, 0x37, 0x33, 0xdf, 0x2c, 0x05, 1090 0x4f, 0x89, 0x17, 0x05, 0x77, 0xd3, 0xc0, 0x8f, 0xfc, 0x99, 0xef, 0xf6, 0x96, 0xc2, 0xc0, 0x9d, 1091 0x99, 0xbf, 0xe8, 0xd9, 0xee, 0xfc, 0xd2, 0xbe, 0xb4, 0x7b, 0x7e, 0x14, 0xf1, 0xa0, 0x37, 0xb3, 1092 0x3d, 0x3b, 0xf9, 0x79, 0xe6, 0xbb, 0xdd, 0x5f, 0x15, 0xa8, 0x48, 0x24, 0x7e, 0x01, 0xd5, 0x1b, 1093 0x6e, 0x3b, 0x3c, 0xd0, 0x94, 0x8e, 0x72, 0xd0, 0x38, 0x3a, 0xe8, 0x6d, 0x03, 0xf7, 0x06, 0xf2, 1094 0x3c, 0x4d, 0x70, 0xf8, 0x04, 0x54, 0x2e, 0x52, 0xb1, 0xbb, 0x25, 0xd7, 0x8a, 0x1d, 0xe5, 0xa0, 1095 0x7d, 0xf4, 0xe5, 0xf6, 0x24, 0x24, 0x85, 0x0c, 0x0a, 0x34, 0xc7, 0xe3, 0x3d, 0x80, 0x30, 0xf2, 1096 0x03, 0xfe, 0xca, 0x76, 0x57, 0x5c, 0x2b, 0x75, 0x94, 0x83, 0x26, 0x5d, 0x8b, 0x18, 0x4f, 0xe1, 1097 0x49, 0x76, 0xf8, 0xdb, 0x65, 0xc0, 0x43, 0xee, 0x45, 0xdd, 0xdf, 0xcb, 0x50, 0x8d, 0x49, 0xe1, 1098 0xe7, 0x50, 0xbb, 0xe5, 0x41, 0x38, 0xf7, 0x3d, 0x59, 0x4f, 0x65, 0x50, 0xa0, 0x69, 0x00, 0x77, 1099 0xa0, 0xe1, 0xfa, 0xd7, 0x57, 0x73, 0x97, 0x5b, 0xf6, 0x22, 0xa6, 0xaa, 0xd2, 0xf5, 0x10, 0xde, 1100 0x87, 0x56, 0xe2, 0x4e, 0xae, 0xae, 0x42, 0x1e, 0x49, 0x02, 0x25, 0xba, 0x19, 0xc4, 0xcf, 0xa1, 1101 0x1e, 0xf2, 0xe0, 0x96, 0x07, 0x43, 0x47, 0x2b, 0xcb, 0x03, 0x99, 0x8f, 0xbb, 0xd0, 0x8c, 0x6d, 1102 0xee, 0x99, 0xbe, 0xc3, 0xb5, 0x8a, 0xbc, 0x64, 0x23, 0x26, 0x78, 0xf0, 0xb7, 0x7c, 0xb6, 0x8a, 1103 0x38, 0x9b, 0x2f, 0xb8, 0x56, 0x95, 0x29, 0xd6, 0x43, 0x78, 0x00, 0x10, 0xfa, 0xab, 0x60, 0xc6, 1104 0x65, 0x4f, 0x6b, 0xb2, 0xa7, 0x9f, 0x6f, 0xef, 0xa9, 0x6c, 0xa7, 0x42, 0xd7, 0xb0, 0xb2, 0x9f, 1105 0xb3, 0x1b, 0xbe, 0xb0, 0x65, 0xc9, 0x75, 0xc9, 0x66, 0x2d, 0x82, 0x3f, 0x05, 0x35, 0xb2, 0x2f, 1106 0x93, 0x8e, 0xa8, 0xf2, 0xe7, 0x3c, 0x20, 0x99, 0xde, 0x72, 0x2f, 0x1a, 0x71, 0xef, 0x3a, 0xba, 1107 0xd1, 0x20, 0x61, 0x9a, 0x87, 0xe4, 0xf0, 0x85, 0x2b, 0x89, 0x36, 0x1e, 0x3c, 0xfc, 0x14, 0x32, 1108 0x28, 0xd2, 0x1c, 0x8f, 0xbf, 0x86, 0xca, 0x32, 0xf0, 0x97, 0xa1, 0xd6, 0xec, 0x94, 0x0e, 0x1a, 1109 0x0f, 0xa9, 0x78, 0x6a, 0xcf, 0x03, 0x1a, 0x83, 0x30, 0x86, 0xf2, 0x75, 0x34, 0x77, 0xb4, 0x96, 1110 0xac, 0x42, 0xda, 0xc6, 0x13, 0xd8, 0x49, 0xa6, 0x9f, 0x8a, 0xc5, 0xd8, 0x05, 0x9c, 0xf7, 0x27, 1111 0x8b, 0x0a, 0x5d, 0xa5, 0x3c, 0x32, 0x5d, 0xfd, 0x54, 0x84, 0xaa, 0xe9, 0xbb, 0xab, 0x85, 0x87, 1112 0x77, 0xa1, 0x32, 0xf7, 0x1c, 0xfe, 0x36, 0x56, 0x15, 0x8d, 0x1d, 0xac, 0x41, 0x2d, 0x7c, 0xed, 1113 0x66, 0xc2, 0xaf, 0xd0, 0xd4, 0x15, 0x64, 0x3c, 0xd1, 0xd2, 0x52, 0x4c, 0x46, 0xd8, 0x32, 0x47, 1114 0x78, 0xc2, 0xef, 0xa4, 0x68, 0xea, 0x34, 0x76, 0x44, 0x8e, 0xd5, 0xd2, 0xb1, 0x23, 0xee, 0x48, 1115 0xb1, 0xd4, 0x69, 0xea, 0x62, 0x0d, 0xaa, 0xf3, 0xd0, 0x5a, 0xb9, 0xae, 0x94, 0x48, 0x7d, 0x50, 1116 0xa0, 0x89, 0x9f, 0x37, 0xaa, 0xf6, 0x98, 0x46, 0xed, 0x42, 0xe5, 0x56, 0xae, 0x57, 0x2c, 0x87, 1117 0xd8, 0xc1, 0xcf, 0xa0, 0xea, 0xc6, 0x63, 0x56, 0x65, 0x29, 0x89, 0x27, 0x14, 0xb2, 0xb8, 0x4b, 1118 0xab, 0x84, 0x58, 0x21, 0x59, 0xc0, 0x40, 0xd0, 0x8e, 0x39, 0x65, 0x4d, 0x7b, 0xa7, 0x40, 0x8d, 1119 0xfa, 0x6f, 0xfa, 0x76, 0x64, 0x63, 0x0b, 0x5a, 0x97, 0xfc, 0xca, 0x0f, 0x78, 0xdc, 0xc5, 0x50, 1120 0x53, 0x24, 0xdf, 0x07, 0xbc, 0x31, 0x31, 0x80, 0x6e, 0xc2, 0xf1, 0x08, 0x9a, 0xf6, 0x55, 0xc4, 1121 0x83, 0x34, 0x5d, 0xf1, 0x03, 0xd3, 0x6d, 0xa0, 0xf3, 0x2e, 0x96, 0x1e, 0xd1, 0xc5, 0xee, 0x5f, 1122 0x45, 0x50, 0xa9, 0xff, 0xc6, 0xbc, 0xb1, 0xbd, 0x6b, 0x2e, 0xa6, 0x28, 0xd7, 0x66, 0xe8, 0x48, 1123 0x85, 0x94, 0x68, 0xea, 0x6e, 0x6e, 0x48, 0xf1, 0xc3, 0x37, 0xa4, 0xb0, 0xbe, 0x21, 0xcf, 0x84, 1124 0x84, 0xfa, 0x8e, 0x2b, 0x07, 0x51, 0x1f, 0x28, 0x34, 0x76, 0x31, 0x82, 0x52, 0xf8, 0xda, 0x95, 1125 0x0b, 0xa8, 0x52, 0x61, 0x62, 0x02, 0xf5, 0x20, 0x9e, 0x42, 0xba, 0x4e, 0x5f, 0x6c, 0xbf, 0x35, 1126 0x99, 0x1b, 0xcd, 0xa0, 0x79, 0x8f, 0x5a, 0x8f, 0x51, 0xda, 0x3e, 0xb4, 0x1c, 0xc7, 0x3d, 0xcd, 1127 0x1f, 0xa0, 0xb6, 0x24, 0xb8, 0x19, 0xfc, 0xcf, 0xdd, 0x33, 0x76, 0xa0, 0x25, 0x4b, 0xcb, 0x74, 1128 0xf5, 0xb3, 0x02, 0x88, 0x05, 0xb6, 0x17, 0xda, 0xb3, 0x68, 0xee, 0x7b, 0x06, 0xbf, 0x9e, 0x7b, 1129 0xff, 0x7c, 0x4a, 0x95, 0x7f, 0x3f, 0xa5, 0xfb, 0xd0, 0x8a, 0x72, 0xd4, 0xd0, 0x49, 0x9e, 0xfd, 1130 0xcd, 0xe0, 0xff, 0x93, 0x82, 0xf8, 0x20, 0x44, 0x37, 0x01, 0xb7, 0x9d, 0xfc, 0x83, 0x90, 0xfa, 1131 0xdd, 0x1f, 0x14, 0x68, 0xaf, 0xd1, 0x26, 0x9e, 0xf3, 0x71, 0x90, 0xee, 0xf6, 0xa0, 0x2c, 0x5c, 1132 0x21, 0x9d, 0xef, 0xf8, 0x9d, 0x64, 0xa1, 0x52, 0x61, 0xe6, 0xef, 0x43, 0x71, 0xed, 0x7d, 0x38, 1133 0xfc, 0x1e, 0xd4, 0xec, 0x9b, 0x8d, 0x3f, 0x83, 0x4f, 0x88, 0xc5, 0xe8, 0x05, 0xbb, 0x98, 0x12, 1134 0x73, 0x32, 0x9e, 0xea, 0x6c, 0x68, 0x8c, 0xc8, 0x94, 0x4e, 0xd8, 0xe4, 0x08, 0x15, 0xf0, 0x2e, 1135 0x20, 0x46, 0x75, 0xeb, 0x54, 0x37, 0xd9, 0x70, 0x62, 0x19, 0xe4, 0x78, 0x68, 0x21, 0x05, 0x37, 1136 0xa0, 0x46, 0x27, 0xdf, 0xf4, 0x75, 0xa6, 0xa3, 0x22, 0xc6, 0xd0, 0x5e, 0x3b, 0x42, 0xac, 0x3e, 1137 0x2a, 0xe1, 0x16, 0xa8, 0x03, 0xa2, 0x53, 0x66, 0x10, 0x9d, 0xa1, 0xb2, 0x38, 0x7f, 0xcc, 0x86, 1138 0xfd, 0xd1, 0xe4, 0x18, 0x55, 0x0e, 0xdf, 0x29, 0xa0, 0x66, 0x4b, 0x21, 0xef, 0x7f, 0x45, 0x2c, 1139 0xf6, 0x9e, 0xfb, 0x01, 0xaa, 0x43, 0xeb, 0x94, 0x50, 0x86, 0x14, 0x61, 0x9f, 0x4d, 0xfb, 0x3a, 1140 0x23, 0xa8, 0x28, 0xec, 0x3e, 0x19, 0x11, 0x46, 0x50, 0x49, 0xd8, 0x26, 0x25, 0x22, 0x5e, 0xc6, 1141 0x2a, 0x54, 0xf4, 0x11, 0x23, 0x14, 0x55, 0x84, 0x49, 0xa8, 0x7e, 0x4a, 0x50, 0x55, 0x98, 0x2f, 1142 0xcf, 0x08, 0xbd, 0x40, 0x35, 0xdc, 0x84, 0x3a, 0xa3, 0x67, 0x96, 0x29, 0x8e, 0xd7, 0x05, 0x94, 1143 0x12, 0x4b, 0x1f, 0x13, 0xa4, 0xca, 0x34, 0x43, 0xab, 0x4f, 0xce, 0x11, 0xc8, 0xf4, 0xb1, 0xdd, 1144 0xc0, 0x75, 0x28, 0x0b, 0xf2, 0xa8, 0x29, 0xb0, 0xe7, 0xba, 0x39, 0x19, 0x8f, 0x87, 0x0c, 0xb5, 1145 0x70, 0x1b, 0xe0, 0x5c, 0xa7, 0x93, 0xd1, 0xc8, 0xd0, 0xcd, 0x13, 0xd4, 0x16, 0xfe, 0x38, 0x2f, 1146 0x7a, 0xe7, 0xd0, 0x80, 0xb2, 0xac, 0x50, 0x83, 0xdd, 0xf7, 0x17, 0x37, 0xa1, 0xba, 0x39, 0x22, 1147 0x48, 0x11, 0x14, 0xc7, 0x17, 0xa7, 0x2f, 0x47, 0xa8, 0x28, 0xcc, 0xe9, 0xb1, 0x30, 0x4b, 0xc6, 1148 0x8b, 0x5f, 0xee, 0xf7, 0x94, 0xdf, 0xee, 0xf7, 0x94, 0x3f, 0xee, 0xf7, 0x94, 0x1f, 0xff, 0xdc, 1149 0x2b, 0xc0, 0xd6, 0x7f, 0x84, 0x06, 0x98, 0xc2, 0x97, 0x13, 0x1e, 0x28, 0x97, 0x55, 0x19, 0xff, 1150 0xea, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x2a, 0xd4, 0xa2, 0x5f, 0x0a, 0x00, 0x00, 1151 } 1152 1153 func (m *Entry) Marshal() (dAtA []byte, err error) { 1154 size := m.Size() 1155 dAtA = make([]byte, size) 1156 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1157 if err != nil { 1158 return nil, err 1159 } 1160 return dAtA[:n], nil 1161 } 1162 1163 func (m *Entry) MarshalTo(dAtA []byte) (int, error) { 1164 size := m.Size() 1165 return m.MarshalToSizedBuffer(dAtA[:size]) 1166 } 1167 1168 func (m *Entry) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1169 i := len(dAtA) 1170 _ = i 1171 var l int 1172 _ = l 1173 if m.XXX_unrecognized != nil { 1174 i -= len(m.XXX_unrecognized) 1175 copy(dAtA[i:], m.XXX_unrecognized) 1176 } 1177 if len(m.StoreValue) > 0 { 1178 i -= len(m.StoreValue) 1179 copy(dAtA[i:], m.StoreValue) 1180 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.StoreValue))) 1181 i-- 1182 dAtA[i] = 0x1a 1183 } 1184 if m.EntryTypePresent != nil { 1185 { 1186 size := m.EntryTypePresent.Size() 1187 i -= size 1188 if _, err := m.EntryTypePresent.MarshalTo(dAtA[i:]); err != nil { 1189 return 0, err 1190 } 1191 } 1192 } 1193 if m.Header != nil { 1194 { 1195 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) 1196 if err != nil { 1197 return 0, err 1198 } 1199 i -= size 1200 i = encodeVarintEntryProtocol(dAtA, i, uint64(size)) 1201 } 1202 i-- 1203 dAtA[i] = 0xa 1204 } 1205 return len(dAtA) - i, nil 1206 } 1207 1208 func (m *Entry_EntryType) MarshalTo(dAtA []byte) (int, error) { 1209 size := m.Size() 1210 return m.MarshalToSizedBuffer(dAtA[:size]) 1211 } 1212 1213 func (m *Entry_EntryType) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1214 i := len(dAtA) 1215 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.EntryType)) 1216 i-- 1217 dAtA[i] = 0x10 1218 return len(dAtA) - i, nil 1219 } 1220 func (m *Header) Marshal() (dAtA []byte, err error) { 1221 size := m.Size() 1222 dAtA = make([]byte, size) 1223 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1224 if err != nil { 1225 return nil, err 1226 } 1227 return dAtA[:n], nil 1228 } 1229 1230 func (m *Header) MarshalTo(dAtA []byte) (int, error) { 1231 size := m.Size() 1232 return m.MarshalToSizedBuffer(dAtA[:size]) 1233 } 1234 1235 func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1236 i := len(dAtA) 1237 _ = i 1238 var l int 1239 _ = l 1240 if m.XXX_unrecognized != nil { 1241 i -= len(m.XXX_unrecognized) 1242 copy(dAtA[i:], m.XXX_unrecognized) 1243 } 1244 if len(m.Gtid) > 0 { 1245 i -= len(m.Gtid) 1246 copy(dAtA[i:], m.Gtid) 1247 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.Gtid))) 1248 i-- 1249 dAtA[i] = 0x6a 1250 } 1251 if len(m.Props) > 0 { 1252 for iNdEx := len(m.Props) - 1; iNdEx >= 0; iNdEx-- { 1253 { 1254 size, err := m.Props[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1255 if err != nil { 1256 return 0, err 1257 } 1258 i -= size 1259 i = encodeVarintEntryProtocol(dAtA, i, uint64(size)) 1260 } 1261 i-- 1262 dAtA[i] = 0x62 1263 } 1264 } 1265 if m.EventTypePresent != nil { 1266 { 1267 size := m.EventTypePresent.Size() 1268 i -= size 1269 if _, err := m.EventTypePresent.MarshalTo(dAtA[i:]); err != nil { 1270 return 0, err 1271 } 1272 } 1273 } 1274 if m.EventLength != 0 { 1275 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.EventLength)) 1276 i-- 1277 dAtA[i] = 0x50 1278 } 1279 if len(m.TableName) > 0 { 1280 i -= len(m.TableName) 1281 copy(dAtA[i:], m.TableName) 1282 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.TableName))) 1283 i-- 1284 dAtA[i] = 0x4a 1285 } 1286 if len(m.SchemaName) > 0 { 1287 i -= len(m.SchemaName) 1288 copy(dAtA[i:], m.SchemaName) 1289 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.SchemaName))) 1290 i-- 1291 dAtA[i] = 0x42 1292 } 1293 if m.SourceTypePresent != nil { 1294 { 1295 size := m.SourceTypePresent.Size() 1296 i -= size 1297 if _, err := m.SourceTypePresent.MarshalTo(dAtA[i:]); err != nil { 1298 return 0, err 1299 } 1300 } 1301 } 1302 if m.ExecuteTime != 0 { 1303 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.ExecuteTime)) 1304 i-- 1305 dAtA[i] = 0x30 1306 } 1307 if len(m.ServerenCode) > 0 { 1308 i -= len(m.ServerenCode) 1309 copy(dAtA[i:], m.ServerenCode) 1310 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.ServerenCode))) 1311 i-- 1312 dAtA[i] = 0x2a 1313 } 1314 if m.ServerId != 0 { 1315 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.ServerId)) 1316 i-- 1317 dAtA[i] = 0x20 1318 } 1319 if m.LogfileOffset != 0 { 1320 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.LogfileOffset)) 1321 i-- 1322 dAtA[i] = 0x18 1323 } 1324 if len(m.LogfileName) > 0 { 1325 i -= len(m.LogfileName) 1326 copy(dAtA[i:], m.LogfileName) 1327 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.LogfileName))) 1328 i-- 1329 dAtA[i] = 0x12 1330 } 1331 if m.VersionPresent != nil { 1332 { 1333 size := m.VersionPresent.Size() 1334 i -= size 1335 if _, err := m.VersionPresent.MarshalTo(dAtA[i:]); err != nil { 1336 return 0, err 1337 } 1338 } 1339 } 1340 return len(dAtA) - i, nil 1341 } 1342 1343 func (m *Header_Version) MarshalTo(dAtA []byte) (int, error) { 1344 size := m.Size() 1345 return m.MarshalToSizedBuffer(dAtA[:size]) 1346 } 1347 1348 func (m *Header_Version) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1349 i := len(dAtA) 1350 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.Version)) 1351 i-- 1352 dAtA[i] = 0x8 1353 return len(dAtA) - i, nil 1354 } 1355 func (m *Header_SourceType) MarshalTo(dAtA []byte) (int, error) { 1356 size := m.Size() 1357 return m.MarshalToSizedBuffer(dAtA[:size]) 1358 } 1359 1360 func (m *Header_SourceType) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1361 i := len(dAtA) 1362 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.SourceType)) 1363 i-- 1364 dAtA[i] = 0x38 1365 return len(dAtA) - i, nil 1366 } 1367 func (m *Header_EventType) MarshalTo(dAtA []byte) (int, error) { 1368 size := m.Size() 1369 return m.MarshalToSizedBuffer(dAtA[:size]) 1370 } 1371 1372 func (m *Header_EventType) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1373 i := len(dAtA) 1374 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.EventType)) 1375 i-- 1376 dAtA[i] = 0x58 1377 return len(dAtA) - i, nil 1378 } 1379 func (m *Column) Marshal() (dAtA []byte, err error) { 1380 size := m.Size() 1381 dAtA = make([]byte, size) 1382 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1383 if err != nil { 1384 return nil, err 1385 } 1386 return dAtA[:n], nil 1387 } 1388 1389 func (m *Column) MarshalTo(dAtA []byte) (int, error) { 1390 size := m.Size() 1391 return m.MarshalToSizedBuffer(dAtA[:size]) 1392 } 1393 1394 func (m *Column) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1395 i := len(dAtA) 1396 _ = i 1397 var l int 1398 _ = l 1399 if m.XXX_unrecognized != nil { 1400 i -= len(m.XXX_unrecognized) 1401 copy(dAtA[i:], m.XXX_unrecognized) 1402 } 1403 if len(m.MysqlType) > 0 { 1404 i -= len(m.MysqlType) 1405 copy(dAtA[i:], m.MysqlType) 1406 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.MysqlType))) 1407 i-- 1408 dAtA[i] = 0x52 1409 } 1410 if m.Length != 0 { 1411 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.Length)) 1412 i-- 1413 dAtA[i] = 0x48 1414 } 1415 if len(m.Value) > 0 { 1416 i -= len(m.Value) 1417 copy(dAtA[i:], m.Value) 1418 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.Value))) 1419 i-- 1420 dAtA[i] = 0x42 1421 } 1422 if len(m.Props) > 0 { 1423 for iNdEx := len(m.Props) - 1; iNdEx >= 0; iNdEx-- { 1424 { 1425 size, err := m.Props[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1426 if err != nil { 1427 return 0, err 1428 } 1429 i -= size 1430 i = encodeVarintEntryProtocol(dAtA, i, uint64(size)) 1431 } 1432 i-- 1433 dAtA[i] = 0x3a 1434 } 1435 } 1436 if m.IsNullPresent != nil { 1437 { 1438 size := m.IsNullPresent.Size() 1439 i -= size 1440 if _, err := m.IsNullPresent.MarshalTo(dAtA[i:]); err != nil { 1441 return 0, err 1442 } 1443 } 1444 } 1445 if m.Updated { 1446 i-- 1447 if m.Updated { 1448 dAtA[i] = 1 1449 } else { 1450 dAtA[i] = 0 1451 } 1452 i-- 1453 dAtA[i] = 0x28 1454 } 1455 if m.IsKey { 1456 i-- 1457 if m.IsKey { 1458 dAtA[i] = 1 1459 } else { 1460 dAtA[i] = 0 1461 } 1462 i-- 1463 dAtA[i] = 0x20 1464 } 1465 if len(m.Name) > 0 { 1466 i -= len(m.Name) 1467 copy(dAtA[i:], m.Name) 1468 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.Name))) 1469 i-- 1470 dAtA[i] = 0x1a 1471 } 1472 if m.SqlType != 0 { 1473 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.SqlType)) 1474 i-- 1475 dAtA[i] = 0x10 1476 } 1477 if m.Index != 0 { 1478 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.Index)) 1479 i-- 1480 dAtA[i] = 0x8 1481 } 1482 return len(dAtA) - i, nil 1483 } 1484 1485 func (m *Column_IsNull) MarshalTo(dAtA []byte) (int, error) { 1486 size := m.Size() 1487 return m.MarshalToSizedBuffer(dAtA[:size]) 1488 } 1489 1490 func (m *Column_IsNull) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1491 i := len(dAtA) 1492 i-- 1493 if m.IsNull { 1494 dAtA[i] = 1 1495 } else { 1496 dAtA[i] = 0 1497 } 1498 i-- 1499 dAtA[i] = 0x30 1500 return len(dAtA) - i, nil 1501 } 1502 func (m *RowData) Marshal() (dAtA []byte, err error) { 1503 size := m.Size() 1504 dAtA = make([]byte, size) 1505 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1506 if err != nil { 1507 return nil, err 1508 } 1509 return dAtA[:n], nil 1510 } 1511 1512 func (m *RowData) MarshalTo(dAtA []byte) (int, error) { 1513 size := m.Size() 1514 return m.MarshalToSizedBuffer(dAtA[:size]) 1515 } 1516 1517 func (m *RowData) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1518 i := len(dAtA) 1519 _ = i 1520 var l int 1521 _ = l 1522 if m.XXX_unrecognized != nil { 1523 i -= len(m.XXX_unrecognized) 1524 copy(dAtA[i:], m.XXX_unrecognized) 1525 } 1526 if len(m.Props) > 0 { 1527 for iNdEx := len(m.Props) - 1; iNdEx >= 0; iNdEx-- { 1528 { 1529 size, err := m.Props[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1530 if err != nil { 1531 return 0, err 1532 } 1533 i -= size 1534 i = encodeVarintEntryProtocol(dAtA, i, uint64(size)) 1535 } 1536 i-- 1537 dAtA[i] = 0x1a 1538 } 1539 } 1540 if len(m.AfterColumns) > 0 { 1541 for iNdEx := len(m.AfterColumns) - 1; iNdEx >= 0; iNdEx-- { 1542 { 1543 size, err := m.AfterColumns[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1544 if err != nil { 1545 return 0, err 1546 } 1547 i -= size 1548 i = encodeVarintEntryProtocol(dAtA, i, uint64(size)) 1549 } 1550 i-- 1551 dAtA[i] = 0x12 1552 } 1553 } 1554 if len(m.BeforeColumns) > 0 { 1555 for iNdEx := len(m.BeforeColumns) - 1; iNdEx >= 0; iNdEx-- { 1556 { 1557 size, err := m.BeforeColumns[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1558 if err != nil { 1559 return 0, err 1560 } 1561 i -= size 1562 i = encodeVarintEntryProtocol(dAtA, i, uint64(size)) 1563 } 1564 i-- 1565 dAtA[i] = 0xa 1566 } 1567 } 1568 return len(dAtA) - i, nil 1569 } 1570 1571 func (m *RowChange) Marshal() (dAtA []byte, err error) { 1572 size := m.Size() 1573 dAtA = make([]byte, size) 1574 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1575 if err != nil { 1576 return nil, err 1577 } 1578 return dAtA[:n], nil 1579 } 1580 1581 func (m *RowChange) MarshalTo(dAtA []byte) (int, error) { 1582 size := m.Size() 1583 return m.MarshalToSizedBuffer(dAtA[:size]) 1584 } 1585 1586 func (m *RowChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1587 i := len(dAtA) 1588 _ = i 1589 var l int 1590 _ = l 1591 if m.XXX_unrecognized != nil { 1592 i -= len(m.XXX_unrecognized) 1593 copy(dAtA[i:], m.XXX_unrecognized) 1594 } 1595 if len(m.DdlSchemaName) > 0 { 1596 i -= len(m.DdlSchemaName) 1597 copy(dAtA[i:], m.DdlSchemaName) 1598 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.DdlSchemaName))) 1599 i-- 1600 dAtA[i] = 0x72 1601 } 1602 if len(m.Props) > 0 { 1603 for iNdEx := len(m.Props) - 1; iNdEx >= 0; iNdEx-- { 1604 { 1605 size, err := m.Props[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1606 if err != nil { 1607 return 0, err 1608 } 1609 i -= size 1610 i = encodeVarintEntryProtocol(dAtA, i, uint64(size)) 1611 } 1612 i-- 1613 dAtA[i] = 0x6a 1614 } 1615 } 1616 if len(m.RowDatas) > 0 { 1617 for iNdEx := len(m.RowDatas) - 1; iNdEx >= 0; iNdEx-- { 1618 { 1619 size, err := m.RowDatas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1620 if err != nil { 1621 return 0, err 1622 } 1623 i -= size 1624 i = encodeVarintEntryProtocol(dAtA, i, uint64(size)) 1625 } 1626 i-- 1627 dAtA[i] = 0x62 1628 } 1629 } 1630 if len(m.Sql) > 0 { 1631 i -= len(m.Sql) 1632 copy(dAtA[i:], m.Sql) 1633 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.Sql))) 1634 i-- 1635 dAtA[i] = 0x5a 1636 } 1637 if m.IsDdlPresent != nil { 1638 { 1639 size := m.IsDdlPresent.Size() 1640 i -= size 1641 if _, err := m.IsDdlPresent.MarshalTo(dAtA[i:]); err != nil { 1642 return 0, err 1643 } 1644 } 1645 } 1646 if m.EventTypePresent != nil { 1647 { 1648 size := m.EventTypePresent.Size() 1649 i -= size 1650 if _, err := m.EventTypePresent.MarshalTo(dAtA[i:]); err != nil { 1651 return 0, err 1652 } 1653 } 1654 } 1655 if m.TableId != 0 { 1656 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.TableId)) 1657 i-- 1658 dAtA[i] = 0x8 1659 } 1660 return len(dAtA) - i, nil 1661 } 1662 1663 func (m *RowChange_EventType) MarshalTo(dAtA []byte) (int, error) { 1664 size := m.Size() 1665 return m.MarshalToSizedBuffer(dAtA[:size]) 1666 } 1667 1668 func (m *RowChange_EventType) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1669 i := len(dAtA) 1670 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.EventType)) 1671 i-- 1672 dAtA[i] = 0x10 1673 return len(dAtA) - i, nil 1674 } 1675 func (m *RowChange_IsDdl) MarshalTo(dAtA []byte) (int, error) { 1676 size := m.Size() 1677 return m.MarshalToSizedBuffer(dAtA[:size]) 1678 } 1679 1680 func (m *RowChange_IsDdl) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1681 i := len(dAtA) 1682 i-- 1683 if m.IsDdl { 1684 dAtA[i] = 1 1685 } else { 1686 dAtA[i] = 0 1687 } 1688 i-- 1689 dAtA[i] = 0x50 1690 return len(dAtA) - i, nil 1691 } 1692 func (m *TransactionBegin) Marshal() (dAtA []byte, err error) { 1693 size := m.Size() 1694 dAtA = make([]byte, size) 1695 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1696 if err != nil { 1697 return nil, err 1698 } 1699 return dAtA[:n], nil 1700 } 1701 1702 func (m *TransactionBegin) MarshalTo(dAtA []byte) (int, error) { 1703 size := m.Size() 1704 return m.MarshalToSizedBuffer(dAtA[:size]) 1705 } 1706 1707 func (m *TransactionBegin) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1708 i := len(dAtA) 1709 _ = i 1710 var l int 1711 _ = l 1712 if m.XXX_unrecognized != nil { 1713 i -= len(m.XXX_unrecognized) 1714 copy(dAtA[i:], m.XXX_unrecognized) 1715 } 1716 if m.ThreadId != 0 { 1717 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.ThreadId)) 1718 i-- 1719 dAtA[i] = 0x20 1720 } 1721 if len(m.Props) > 0 { 1722 for iNdEx := len(m.Props) - 1; iNdEx >= 0; iNdEx-- { 1723 { 1724 size, err := m.Props[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1725 if err != nil { 1726 return 0, err 1727 } 1728 i -= size 1729 i = encodeVarintEntryProtocol(dAtA, i, uint64(size)) 1730 } 1731 i-- 1732 dAtA[i] = 0x1a 1733 } 1734 } 1735 if len(m.TransactionId) > 0 { 1736 i -= len(m.TransactionId) 1737 copy(dAtA[i:], m.TransactionId) 1738 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.TransactionId))) 1739 i-- 1740 dAtA[i] = 0x12 1741 } 1742 if m.ExecuteTime != 0 { 1743 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.ExecuteTime)) 1744 i-- 1745 dAtA[i] = 0x8 1746 } 1747 return len(dAtA) - i, nil 1748 } 1749 1750 func (m *TransactionEnd) Marshal() (dAtA []byte, err error) { 1751 size := m.Size() 1752 dAtA = make([]byte, size) 1753 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1754 if err != nil { 1755 return nil, err 1756 } 1757 return dAtA[:n], nil 1758 } 1759 1760 func (m *TransactionEnd) MarshalTo(dAtA []byte) (int, error) { 1761 size := m.Size() 1762 return m.MarshalToSizedBuffer(dAtA[:size]) 1763 } 1764 1765 func (m *TransactionEnd) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1766 i := len(dAtA) 1767 _ = i 1768 var l int 1769 _ = l 1770 if m.XXX_unrecognized != nil { 1771 i -= len(m.XXX_unrecognized) 1772 copy(dAtA[i:], m.XXX_unrecognized) 1773 } 1774 if len(m.Props) > 0 { 1775 for iNdEx := len(m.Props) - 1; iNdEx >= 0; iNdEx-- { 1776 { 1777 size, err := m.Props[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1778 if err != nil { 1779 return 0, err 1780 } 1781 i -= size 1782 i = encodeVarintEntryProtocol(dAtA, i, uint64(size)) 1783 } 1784 i-- 1785 dAtA[i] = 0x1a 1786 } 1787 } 1788 if len(m.TransactionId) > 0 { 1789 i -= len(m.TransactionId) 1790 copy(dAtA[i:], m.TransactionId) 1791 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.TransactionId))) 1792 i-- 1793 dAtA[i] = 0x12 1794 } 1795 if m.ExecuteTime != 0 { 1796 i = encodeVarintEntryProtocol(dAtA, i, uint64(m.ExecuteTime)) 1797 i-- 1798 dAtA[i] = 0x8 1799 } 1800 return len(dAtA) - i, nil 1801 } 1802 1803 func (m *Pair) Marshal() (dAtA []byte, err error) { 1804 size := m.Size() 1805 dAtA = make([]byte, size) 1806 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1807 if err != nil { 1808 return nil, err 1809 } 1810 return dAtA[:n], nil 1811 } 1812 1813 func (m *Pair) MarshalTo(dAtA []byte) (int, error) { 1814 size := m.Size() 1815 return m.MarshalToSizedBuffer(dAtA[:size]) 1816 } 1817 1818 func (m *Pair) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1819 i := len(dAtA) 1820 _ = i 1821 var l int 1822 _ = l 1823 if m.XXX_unrecognized != nil { 1824 i -= len(m.XXX_unrecognized) 1825 copy(dAtA[i:], m.XXX_unrecognized) 1826 } 1827 if len(m.Value) > 0 { 1828 i -= len(m.Value) 1829 copy(dAtA[i:], m.Value) 1830 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.Value))) 1831 i-- 1832 dAtA[i] = 0x12 1833 } 1834 if len(m.Key) > 0 { 1835 i -= len(m.Key) 1836 copy(dAtA[i:], m.Key) 1837 i = encodeVarintEntryProtocol(dAtA, i, uint64(len(m.Key))) 1838 i-- 1839 dAtA[i] = 0xa 1840 } 1841 return len(dAtA) - i, nil 1842 } 1843 1844 func encodeVarintEntryProtocol(dAtA []byte, offset int, v uint64) int { 1845 offset -= sovEntryProtocol(v) 1846 base := offset 1847 for v >= 1<<7 { 1848 dAtA[offset] = uint8(v&0x7f | 0x80) 1849 v >>= 7 1850 offset++ 1851 } 1852 dAtA[offset] = uint8(v) 1853 return base 1854 } 1855 func (m *Entry) Size() (n int) { 1856 if m == nil { 1857 return 0 1858 } 1859 var l int 1860 _ = l 1861 if m.Header != nil { 1862 l = m.Header.Size() 1863 n += 1 + l + sovEntryProtocol(uint64(l)) 1864 } 1865 if m.EntryTypePresent != nil { 1866 n += m.EntryTypePresent.Size() 1867 } 1868 l = len(m.StoreValue) 1869 if l > 0 { 1870 n += 1 + l + sovEntryProtocol(uint64(l)) 1871 } 1872 if m.XXX_unrecognized != nil { 1873 n += len(m.XXX_unrecognized) 1874 } 1875 return n 1876 } 1877 1878 func (m *Entry_EntryType) Size() (n int) { 1879 if m == nil { 1880 return 0 1881 } 1882 var l int 1883 _ = l 1884 n += 1 + sovEntryProtocol(uint64(m.EntryType)) 1885 return n 1886 } 1887 func (m *Header) Size() (n int) { 1888 if m == nil { 1889 return 0 1890 } 1891 var l int 1892 _ = l 1893 if m.VersionPresent != nil { 1894 n += m.VersionPresent.Size() 1895 } 1896 l = len(m.LogfileName) 1897 if l > 0 { 1898 n += 1 + l + sovEntryProtocol(uint64(l)) 1899 } 1900 if m.LogfileOffset != 0 { 1901 n += 1 + sovEntryProtocol(uint64(m.LogfileOffset)) 1902 } 1903 if m.ServerId != 0 { 1904 n += 1 + sovEntryProtocol(uint64(m.ServerId)) 1905 } 1906 l = len(m.ServerenCode) 1907 if l > 0 { 1908 n += 1 + l + sovEntryProtocol(uint64(l)) 1909 } 1910 if m.ExecuteTime != 0 { 1911 n += 1 + sovEntryProtocol(uint64(m.ExecuteTime)) 1912 } 1913 if m.SourceTypePresent != nil { 1914 n += m.SourceTypePresent.Size() 1915 } 1916 l = len(m.SchemaName) 1917 if l > 0 { 1918 n += 1 + l + sovEntryProtocol(uint64(l)) 1919 } 1920 l = len(m.TableName) 1921 if l > 0 { 1922 n += 1 + l + sovEntryProtocol(uint64(l)) 1923 } 1924 if m.EventLength != 0 { 1925 n += 1 + sovEntryProtocol(uint64(m.EventLength)) 1926 } 1927 if m.EventTypePresent != nil { 1928 n += m.EventTypePresent.Size() 1929 } 1930 if len(m.Props) > 0 { 1931 for _, e := range m.Props { 1932 l = e.Size() 1933 n += 1 + l + sovEntryProtocol(uint64(l)) 1934 } 1935 } 1936 l = len(m.Gtid) 1937 if l > 0 { 1938 n += 1 + l + sovEntryProtocol(uint64(l)) 1939 } 1940 if m.XXX_unrecognized != nil { 1941 n += len(m.XXX_unrecognized) 1942 } 1943 return n 1944 } 1945 1946 func (m *Header_Version) Size() (n int) { 1947 if m == nil { 1948 return 0 1949 } 1950 var l int 1951 _ = l 1952 n += 1 + sovEntryProtocol(uint64(m.Version)) 1953 return n 1954 } 1955 func (m *Header_SourceType) Size() (n int) { 1956 if m == nil { 1957 return 0 1958 } 1959 var l int 1960 _ = l 1961 n += 1 + sovEntryProtocol(uint64(m.SourceType)) 1962 return n 1963 } 1964 func (m *Header_EventType) Size() (n int) { 1965 if m == nil { 1966 return 0 1967 } 1968 var l int 1969 _ = l 1970 n += 1 + sovEntryProtocol(uint64(m.EventType)) 1971 return n 1972 } 1973 func (m *Column) Size() (n int) { 1974 if m == nil { 1975 return 0 1976 } 1977 var l int 1978 _ = l 1979 if m.Index != 0 { 1980 n += 1 + sovEntryProtocol(uint64(m.Index)) 1981 } 1982 if m.SqlType != 0 { 1983 n += 1 + sovEntryProtocol(uint64(m.SqlType)) 1984 } 1985 l = len(m.Name) 1986 if l > 0 { 1987 n += 1 + l + sovEntryProtocol(uint64(l)) 1988 } 1989 if m.IsKey { 1990 n += 2 1991 } 1992 if m.Updated { 1993 n += 2 1994 } 1995 if m.IsNullPresent != nil { 1996 n += m.IsNullPresent.Size() 1997 } 1998 if len(m.Props) > 0 { 1999 for _, e := range m.Props { 2000 l = e.Size() 2001 n += 1 + l + sovEntryProtocol(uint64(l)) 2002 } 2003 } 2004 l = len(m.Value) 2005 if l > 0 { 2006 n += 1 + l + sovEntryProtocol(uint64(l)) 2007 } 2008 if m.Length != 0 { 2009 n += 1 + sovEntryProtocol(uint64(m.Length)) 2010 } 2011 l = len(m.MysqlType) 2012 if l > 0 { 2013 n += 1 + l + sovEntryProtocol(uint64(l)) 2014 } 2015 if m.XXX_unrecognized != nil { 2016 n += len(m.XXX_unrecognized) 2017 } 2018 return n 2019 } 2020 2021 func (m *Column_IsNull) Size() (n int) { 2022 if m == nil { 2023 return 0 2024 } 2025 var l int 2026 _ = l 2027 n += 2 2028 return n 2029 } 2030 func (m *RowData) Size() (n int) { 2031 if m == nil { 2032 return 0 2033 } 2034 var l int 2035 _ = l 2036 if len(m.BeforeColumns) > 0 { 2037 for _, e := range m.BeforeColumns { 2038 l = e.Size() 2039 n += 1 + l + sovEntryProtocol(uint64(l)) 2040 } 2041 } 2042 if len(m.AfterColumns) > 0 { 2043 for _, e := range m.AfterColumns { 2044 l = e.Size() 2045 n += 1 + l + sovEntryProtocol(uint64(l)) 2046 } 2047 } 2048 if len(m.Props) > 0 { 2049 for _, e := range m.Props { 2050 l = e.Size() 2051 n += 1 + l + sovEntryProtocol(uint64(l)) 2052 } 2053 } 2054 if m.XXX_unrecognized != nil { 2055 n += len(m.XXX_unrecognized) 2056 } 2057 return n 2058 } 2059 2060 func (m *RowChange) Size() (n int) { 2061 if m == nil { 2062 return 0 2063 } 2064 var l int 2065 _ = l 2066 if m.TableId != 0 { 2067 n += 1 + sovEntryProtocol(uint64(m.TableId)) 2068 } 2069 if m.EventTypePresent != nil { 2070 n += m.EventTypePresent.Size() 2071 } 2072 if m.IsDdlPresent != nil { 2073 n += m.IsDdlPresent.Size() 2074 } 2075 l = len(m.Sql) 2076 if l > 0 { 2077 n += 1 + l + sovEntryProtocol(uint64(l)) 2078 } 2079 if len(m.RowDatas) > 0 { 2080 for _, e := range m.RowDatas { 2081 l = e.Size() 2082 n += 1 + l + sovEntryProtocol(uint64(l)) 2083 } 2084 } 2085 if len(m.Props) > 0 { 2086 for _, e := range m.Props { 2087 l = e.Size() 2088 n += 1 + l + sovEntryProtocol(uint64(l)) 2089 } 2090 } 2091 l = len(m.DdlSchemaName) 2092 if l > 0 { 2093 n += 1 + l + sovEntryProtocol(uint64(l)) 2094 } 2095 if m.XXX_unrecognized != nil { 2096 n += len(m.XXX_unrecognized) 2097 } 2098 return n 2099 } 2100 2101 func (m *RowChange_EventType) Size() (n int) { 2102 if m == nil { 2103 return 0 2104 } 2105 var l int 2106 _ = l 2107 n += 1 + sovEntryProtocol(uint64(m.EventType)) 2108 return n 2109 } 2110 func (m *RowChange_IsDdl) Size() (n int) { 2111 if m == nil { 2112 return 0 2113 } 2114 var l int 2115 _ = l 2116 n += 2 2117 return n 2118 } 2119 func (m *TransactionBegin) Size() (n int) { 2120 if m == nil { 2121 return 0 2122 } 2123 var l int 2124 _ = l 2125 if m.ExecuteTime != 0 { 2126 n += 1 + sovEntryProtocol(uint64(m.ExecuteTime)) 2127 } 2128 l = len(m.TransactionId) 2129 if l > 0 { 2130 n += 1 + l + sovEntryProtocol(uint64(l)) 2131 } 2132 if len(m.Props) > 0 { 2133 for _, e := range m.Props { 2134 l = e.Size() 2135 n += 1 + l + sovEntryProtocol(uint64(l)) 2136 } 2137 } 2138 if m.ThreadId != 0 { 2139 n += 1 + sovEntryProtocol(uint64(m.ThreadId)) 2140 } 2141 if m.XXX_unrecognized != nil { 2142 n += len(m.XXX_unrecognized) 2143 } 2144 return n 2145 } 2146 2147 func (m *TransactionEnd) Size() (n int) { 2148 if m == nil { 2149 return 0 2150 } 2151 var l int 2152 _ = l 2153 if m.ExecuteTime != 0 { 2154 n += 1 + sovEntryProtocol(uint64(m.ExecuteTime)) 2155 } 2156 l = len(m.TransactionId) 2157 if l > 0 { 2158 n += 1 + l + sovEntryProtocol(uint64(l)) 2159 } 2160 if len(m.Props) > 0 { 2161 for _, e := range m.Props { 2162 l = e.Size() 2163 n += 1 + l + sovEntryProtocol(uint64(l)) 2164 } 2165 } 2166 if m.XXX_unrecognized != nil { 2167 n += len(m.XXX_unrecognized) 2168 } 2169 return n 2170 } 2171 2172 func (m *Pair) Size() (n int) { 2173 if m == nil { 2174 return 0 2175 } 2176 var l int 2177 _ = l 2178 l = len(m.Key) 2179 if l > 0 { 2180 n += 1 + l + sovEntryProtocol(uint64(l)) 2181 } 2182 l = len(m.Value) 2183 if l > 0 { 2184 n += 1 + l + sovEntryProtocol(uint64(l)) 2185 } 2186 if m.XXX_unrecognized != nil { 2187 n += len(m.XXX_unrecognized) 2188 } 2189 return n 2190 } 2191 2192 func sovEntryProtocol(x uint64) (n int) { 2193 return (math_bits.Len64(x|1) + 6) / 7 2194 } 2195 func sozEntryProtocol(x uint64) (n int) { 2196 return sovEntryProtocol(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 2197 } 2198 func (m *Entry) Unmarshal(dAtA []byte) error { 2199 l := len(dAtA) 2200 iNdEx := 0 2201 for iNdEx < l { 2202 preIndex := iNdEx 2203 var wire uint64 2204 for shift := uint(0); ; shift += 7 { 2205 if shift >= 64 { 2206 return ErrIntOverflowEntryProtocol 2207 } 2208 if iNdEx >= l { 2209 return io.ErrUnexpectedEOF 2210 } 2211 b := dAtA[iNdEx] 2212 iNdEx++ 2213 wire |= uint64(b&0x7F) << shift 2214 if b < 0x80 { 2215 break 2216 } 2217 } 2218 fieldNum := int32(wire >> 3) 2219 wireType := int(wire & 0x7) 2220 if wireType == 4 { 2221 return fmt.Errorf("proto: Entry: wiretype end group for non-group") 2222 } 2223 if fieldNum <= 0 { 2224 return fmt.Errorf("proto: Entry: illegal tag %d (wire type %d)", fieldNum, wire) 2225 } 2226 switch fieldNum { 2227 case 1: 2228 if wireType != 2 { 2229 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) 2230 } 2231 var msglen int 2232 for shift := uint(0); ; shift += 7 { 2233 if shift >= 64 { 2234 return ErrIntOverflowEntryProtocol 2235 } 2236 if iNdEx >= l { 2237 return io.ErrUnexpectedEOF 2238 } 2239 b := dAtA[iNdEx] 2240 iNdEx++ 2241 msglen |= int(b&0x7F) << shift 2242 if b < 0x80 { 2243 break 2244 } 2245 } 2246 if msglen < 0 { 2247 return ErrInvalidLengthEntryProtocol 2248 } 2249 postIndex := iNdEx + msglen 2250 if postIndex < 0 { 2251 return ErrInvalidLengthEntryProtocol 2252 } 2253 if postIndex > l { 2254 return io.ErrUnexpectedEOF 2255 } 2256 if m.Header == nil { 2257 m.Header = &Header{} 2258 } 2259 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2260 return err 2261 } 2262 iNdEx = postIndex 2263 case 2: 2264 if wireType != 0 { 2265 return fmt.Errorf("proto: wrong wireType = %d for field EntryType", wireType) 2266 } 2267 var v EntryType 2268 for shift := uint(0); ; shift += 7 { 2269 if shift >= 64 { 2270 return ErrIntOverflowEntryProtocol 2271 } 2272 if iNdEx >= l { 2273 return io.ErrUnexpectedEOF 2274 } 2275 b := dAtA[iNdEx] 2276 iNdEx++ 2277 v |= EntryType(b&0x7F) << shift 2278 if b < 0x80 { 2279 break 2280 } 2281 } 2282 m.EntryTypePresent = &Entry_EntryType{v} 2283 case 3: 2284 if wireType != 2 { 2285 return fmt.Errorf("proto: wrong wireType = %d for field StoreValue", wireType) 2286 } 2287 var byteLen int 2288 for shift := uint(0); ; shift += 7 { 2289 if shift >= 64 { 2290 return ErrIntOverflowEntryProtocol 2291 } 2292 if iNdEx >= l { 2293 return io.ErrUnexpectedEOF 2294 } 2295 b := dAtA[iNdEx] 2296 iNdEx++ 2297 byteLen |= int(b&0x7F) << shift 2298 if b < 0x80 { 2299 break 2300 } 2301 } 2302 if byteLen < 0 { 2303 return ErrInvalidLengthEntryProtocol 2304 } 2305 postIndex := iNdEx + byteLen 2306 if postIndex < 0 { 2307 return ErrInvalidLengthEntryProtocol 2308 } 2309 if postIndex > l { 2310 return io.ErrUnexpectedEOF 2311 } 2312 m.StoreValue = append(m.StoreValue[:0], dAtA[iNdEx:postIndex]...) 2313 if m.StoreValue == nil { 2314 m.StoreValue = []byte{} 2315 } 2316 iNdEx = postIndex 2317 default: 2318 iNdEx = preIndex 2319 skippy, err := skipEntryProtocol(dAtA[iNdEx:]) 2320 if err != nil { 2321 return err 2322 } 2323 if skippy < 0 { 2324 return ErrInvalidLengthEntryProtocol 2325 } 2326 if (iNdEx + skippy) < 0 { 2327 return ErrInvalidLengthEntryProtocol 2328 } 2329 if (iNdEx + skippy) > l { 2330 return io.ErrUnexpectedEOF 2331 } 2332 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2333 iNdEx += skippy 2334 } 2335 } 2336 2337 if iNdEx > l { 2338 return io.ErrUnexpectedEOF 2339 } 2340 return nil 2341 } 2342 func (m *Header) Unmarshal(dAtA []byte) error { 2343 l := len(dAtA) 2344 iNdEx := 0 2345 for iNdEx < l { 2346 preIndex := iNdEx 2347 var wire uint64 2348 for shift := uint(0); ; shift += 7 { 2349 if shift >= 64 { 2350 return ErrIntOverflowEntryProtocol 2351 } 2352 if iNdEx >= l { 2353 return io.ErrUnexpectedEOF 2354 } 2355 b := dAtA[iNdEx] 2356 iNdEx++ 2357 wire |= uint64(b&0x7F) << shift 2358 if b < 0x80 { 2359 break 2360 } 2361 } 2362 fieldNum := int32(wire >> 3) 2363 wireType := int(wire & 0x7) 2364 if wireType == 4 { 2365 return fmt.Errorf("proto: Header: wiretype end group for non-group") 2366 } 2367 if fieldNum <= 0 { 2368 return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire) 2369 } 2370 switch fieldNum { 2371 case 1: 2372 if wireType != 0 { 2373 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 2374 } 2375 var v int32 2376 for shift := uint(0); ; shift += 7 { 2377 if shift >= 64 { 2378 return ErrIntOverflowEntryProtocol 2379 } 2380 if iNdEx >= l { 2381 return io.ErrUnexpectedEOF 2382 } 2383 b := dAtA[iNdEx] 2384 iNdEx++ 2385 v |= int32(b&0x7F) << shift 2386 if b < 0x80 { 2387 break 2388 } 2389 } 2390 m.VersionPresent = &Header_Version{v} 2391 case 2: 2392 if wireType != 2 { 2393 return fmt.Errorf("proto: wrong wireType = %d for field LogfileName", wireType) 2394 } 2395 var stringLen uint64 2396 for shift := uint(0); ; shift += 7 { 2397 if shift >= 64 { 2398 return ErrIntOverflowEntryProtocol 2399 } 2400 if iNdEx >= l { 2401 return io.ErrUnexpectedEOF 2402 } 2403 b := dAtA[iNdEx] 2404 iNdEx++ 2405 stringLen |= uint64(b&0x7F) << shift 2406 if b < 0x80 { 2407 break 2408 } 2409 } 2410 intStringLen := int(stringLen) 2411 if intStringLen < 0 { 2412 return ErrInvalidLengthEntryProtocol 2413 } 2414 postIndex := iNdEx + intStringLen 2415 if postIndex < 0 { 2416 return ErrInvalidLengthEntryProtocol 2417 } 2418 if postIndex > l { 2419 return io.ErrUnexpectedEOF 2420 } 2421 m.LogfileName = string(dAtA[iNdEx:postIndex]) 2422 iNdEx = postIndex 2423 case 3: 2424 if wireType != 0 { 2425 return fmt.Errorf("proto: wrong wireType = %d for field LogfileOffset", wireType) 2426 } 2427 m.LogfileOffset = 0 2428 for shift := uint(0); ; shift += 7 { 2429 if shift >= 64 { 2430 return ErrIntOverflowEntryProtocol 2431 } 2432 if iNdEx >= l { 2433 return io.ErrUnexpectedEOF 2434 } 2435 b := dAtA[iNdEx] 2436 iNdEx++ 2437 m.LogfileOffset |= int64(b&0x7F) << shift 2438 if b < 0x80 { 2439 break 2440 } 2441 } 2442 case 4: 2443 if wireType != 0 { 2444 return fmt.Errorf("proto: wrong wireType = %d for field ServerId", wireType) 2445 } 2446 m.ServerId = 0 2447 for shift := uint(0); ; shift += 7 { 2448 if shift >= 64 { 2449 return ErrIntOverflowEntryProtocol 2450 } 2451 if iNdEx >= l { 2452 return io.ErrUnexpectedEOF 2453 } 2454 b := dAtA[iNdEx] 2455 iNdEx++ 2456 m.ServerId |= int64(b&0x7F) << shift 2457 if b < 0x80 { 2458 break 2459 } 2460 } 2461 case 5: 2462 if wireType != 2 { 2463 return fmt.Errorf("proto: wrong wireType = %d for field ServerenCode", wireType) 2464 } 2465 var stringLen uint64 2466 for shift := uint(0); ; shift += 7 { 2467 if shift >= 64 { 2468 return ErrIntOverflowEntryProtocol 2469 } 2470 if iNdEx >= l { 2471 return io.ErrUnexpectedEOF 2472 } 2473 b := dAtA[iNdEx] 2474 iNdEx++ 2475 stringLen |= uint64(b&0x7F) << shift 2476 if b < 0x80 { 2477 break 2478 } 2479 } 2480 intStringLen := int(stringLen) 2481 if intStringLen < 0 { 2482 return ErrInvalidLengthEntryProtocol 2483 } 2484 postIndex := iNdEx + intStringLen 2485 if postIndex < 0 { 2486 return ErrInvalidLengthEntryProtocol 2487 } 2488 if postIndex > l { 2489 return io.ErrUnexpectedEOF 2490 } 2491 m.ServerenCode = string(dAtA[iNdEx:postIndex]) 2492 iNdEx = postIndex 2493 case 6: 2494 if wireType != 0 { 2495 return fmt.Errorf("proto: wrong wireType = %d for field ExecuteTime", wireType) 2496 } 2497 m.ExecuteTime = 0 2498 for shift := uint(0); ; shift += 7 { 2499 if shift >= 64 { 2500 return ErrIntOverflowEntryProtocol 2501 } 2502 if iNdEx >= l { 2503 return io.ErrUnexpectedEOF 2504 } 2505 b := dAtA[iNdEx] 2506 iNdEx++ 2507 m.ExecuteTime |= int64(b&0x7F) << shift 2508 if b < 0x80 { 2509 break 2510 } 2511 } 2512 case 7: 2513 if wireType != 0 { 2514 return fmt.Errorf("proto: wrong wireType = %d for field SourceType", wireType) 2515 } 2516 var v Type 2517 for shift := uint(0); ; shift += 7 { 2518 if shift >= 64 { 2519 return ErrIntOverflowEntryProtocol 2520 } 2521 if iNdEx >= l { 2522 return io.ErrUnexpectedEOF 2523 } 2524 b := dAtA[iNdEx] 2525 iNdEx++ 2526 v |= Type(b&0x7F) << shift 2527 if b < 0x80 { 2528 break 2529 } 2530 } 2531 m.SourceTypePresent = &Header_SourceType{v} 2532 case 8: 2533 if wireType != 2 { 2534 return fmt.Errorf("proto: wrong wireType = %d for field SchemaName", wireType) 2535 } 2536 var stringLen uint64 2537 for shift := uint(0); ; shift += 7 { 2538 if shift >= 64 { 2539 return ErrIntOverflowEntryProtocol 2540 } 2541 if iNdEx >= l { 2542 return io.ErrUnexpectedEOF 2543 } 2544 b := dAtA[iNdEx] 2545 iNdEx++ 2546 stringLen |= uint64(b&0x7F) << shift 2547 if b < 0x80 { 2548 break 2549 } 2550 } 2551 intStringLen := int(stringLen) 2552 if intStringLen < 0 { 2553 return ErrInvalidLengthEntryProtocol 2554 } 2555 postIndex := iNdEx + intStringLen 2556 if postIndex < 0 { 2557 return ErrInvalidLengthEntryProtocol 2558 } 2559 if postIndex > l { 2560 return io.ErrUnexpectedEOF 2561 } 2562 m.SchemaName = string(dAtA[iNdEx:postIndex]) 2563 iNdEx = postIndex 2564 case 9: 2565 if wireType != 2 { 2566 return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) 2567 } 2568 var stringLen uint64 2569 for shift := uint(0); ; shift += 7 { 2570 if shift >= 64 { 2571 return ErrIntOverflowEntryProtocol 2572 } 2573 if iNdEx >= l { 2574 return io.ErrUnexpectedEOF 2575 } 2576 b := dAtA[iNdEx] 2577 iNdEx++ 2578 stringLen |= uint64(b&0x7F) << shift 2579 if b < 0x80 { 2580 break 2581 } 2582 } 2583 intStringLen := int(stringLen) 2584 if intStringLen < 0 { 2585 return ErrInvalidLengthEntryProtocol 2586 } 2587 postIndex := iNdEx + intStringLen 2588 if postIndex < 0 { 2589 return ErrInvalidLengthEntryProtocol 2590 } 2591 if postIndex > l { 2592 return io.ErrUnexpectedEOF 2593 } 2594 m.TableName = string(dAtA[iNdEx:postIndex]) 2595 iNdEx = postIndex 2596 case 10: 2597 if wireType != 0 { 2598 return fmt.Errorf("proto: wrong wireType = %d for field EventLength", wireType) 2599 } 2600 m.EventLength = 0 2601 for shift := uint(0); ; shift += 7 { 2602 if shift >= 64 { 2603 return ErrIntOverflowEntryProtocol 2604 } 2605 if iNdEx >= l { 2606 return io.ErrUnexpectedEOF 2607 } 2608 b := dAtA[iNdEx] 2609 iNdEx++ 2610 m.EventLength |= int64(b&0x7F) << shift 2611 if b < 0x80 { 2612 break 2613 } 2614 } 2615 case 11: 2616 if wireType != 0 { 2617 return fmt.Errorf("proto: wrong wireType = %d for field EventType", wireType) 2618 } 2619 var v EventType 2620 for shift := uint(0); ; shift += 7 { 2621 if shift >= 64 { 2622 return ErrIntOverflowEntryProtocol 2623 } 2624 if iNdEx >= l { 2625 return io.ErrUnexpectedEOF 2626 } 2627 b := dAtA[iNdEx] 2628 iNdEx++ 2629 v |= EventType(b&0x7F) << shift 2630 if b < 0x80 { 2631 break 2632 } 2633 } 2634 m.EventTypePresent = &Header_EventType{v} 2635 case 12: 2636 if wireType != 2 { 2637 return fmt.Errorf("proto: wrong wireType = %d for field Props", wireType) 2638 } 2639 var msglen int 2640 for shift := uint(0); ; shift += 7 { 2641 if shift >= 64 { 2642 return ErrIntOverflowEntryProtocol 2643 } 2644 if iNdEx >= l { 2645 return io.ErrUnexpectedEOF 2646 } 2647 b := dAtA[iNdEx] 2648 iNdEx++ 2649 msglen |= int(b&0x7F) << shift 2650 if b < 0x80 { 2651 break 2652 } 2653 } 2654 if msglen < 0 { 2655 return ErrInvalidLengthEntryProtocol 2656 } 2657 postIndex := iNdEx + msglen 2658 if postIndex < 0 { 2659 return ErrInvalidLengthEntryProtocol 2660 } 2661 if postIndex > l { 2662 return io.ErrUnexpectedEOF 2663 } 2664 m.Props = append(m.Props, &Pair{}) 2665 if err := m.Props[len(m.Props)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2666 return err 2667 } 2668 iNdEx = postIndex 2669 case 13: 2670 if wireType != 2 { 2671 return fmt.Errorf("proto: wrong wireType = %d for field Gtid", wireType) 2672 } 2673 var stringLen uint64 2674 for shift := uint(0); ; shift += 7 { 2675 if shift >= 64 { 2676 return ErrIntOverflowEntryProtocol 2677 } 2678 if iNdEx >= l { 2679 return io.ErrUnexpectedEOF 2680 } 2681 b := dAtA[iNdEx] 2682 iNdEx++ 2683 stringLen |= uint64(b&0x7F) << shift 2684 if b < 0x80 { 2685 break 2686 } 2687 } 2688 intStringLen := int(stringLen) 2689 if intStringLen < 0 { 2690 return ErrInvalidLengthEntryProtocol 2691 } 2692 postIndex := iNdEx + intStringLen 2693 if postIndex < 0 { 2694 return ErrInvalidLengthEntryProtocol 2695 } 2696 if postIndex > l { 2697 return io.ErrUnexpectedEOF 2698 } 2699 m.Gtid = string(dAtA[iNdEx:postIndex]) 2700 iNdEx = postIndex 2701 default: 2702 iNdEx = preIndex 2703 skippy, err := skipEntryProtocol(dAtA[iNdEx:]) 2704 if err != nil { 2705 return err 2706 } 2707 if skippy < 0 { 2708 return ErrInvalidLengthEntryProtocol 2709 } 2710 if (iNdEx + skippy) < 0 { 2711 return ErrInvalidLengthEntryProtocol 2712 } 2713 if (iNdEx + skippy) > l { 2714 return io.ErrUnexpectedEOF 2715 } 2716 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2717 iNdEx += skippy 2718 } 2719 } 2720 2721 if iNdEx > l { 2722 return io.ErrUnexpectedEOF 2723 } 2724 return nil 2725 } 2726 func (m *Column) Unmarshal(dAtA []byte) error { 2727 l := len(dAtA) 2728 iNdEx := 0 2729 for iNdEx < l { 2730 preIndex := iNdEx 2731 var wire uint64 2732 for shift := uint(0); ; shift += 7 { 2733 if shift >= 64 { 2734 return ErrIntOverflowEntryProtocol 2735 } 2736 if iNdEx >= l { 2737 return io.ErrUnexpectedEOF 2738 } 2739 b := dAtA[iNdEx] 2740 iNdEx++ 2741 wire |= uint64(b&0x7F) << shift 2742 if b < 0x80 { 2743 break 2744 } 2745 } 2746 fieldNum := int32(wire >> 3) 2747 wireType := int(wire & 0x7) 2748 if wireType == 4 { 2749 return fmt.Errorf("proto: Column: wiretype end group for non-group") 2750 } 2751 if fieldNum <= 0 { 2752 return fmt.Errorf("proto: Column: illegal tag %d (wire type %d)", fieldNum, wire) 2753 } 2754 switch fieldNum { 2755 case 1: 2756 if wireType != 0 { 2757 return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) 2758 } 2759 m.Index = 0 2760 for shift := uint(0); ; shift += 7 { 2761 if shift >= 64 { 2762 return ErrIntOverflowEntryProtocol 2763 } 2764 if iNdEx >= l { 2765 return io.ErrUnexpectedEOF 2766 } 2767 b := dAtA[iNdEx] 2768 iNdEx++ 2769 m.Index |= int32(b&0x7F) << shift 2770 if b < 0x80 { 2771 break 2772 } 2773 } 2774 case 2: 2775 if wireType != 0 { 2776 return fmt.Errorf("proto: wrong wireType = %d for field SqlType", wireType) 2777 } 2778 m.SqlType = 0 2779 for shift := uint(0); ; shift += 7 { 2780 if shift >= 64 { 2781 return ErrIntOverflowEntryProtocol 2782 } 2783 if iNdEx >= l { 2784 return io.ErrUnexpectedEOF 2785 } 2786 b := dAtA[iNdEx] 2787 iNdEx++ 2788 m.SqlType |= int32(b&0x7F) << shift 2789 if b < 0x80 { 2790 break 2791 } 2792 } 2793 case 3: 2794 if wireType != 2 { 2795 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 2796 } 2797 var stringLen uint64 2798 for shift := uint(0); ; shift += 7 { 2799 if shift >= 64 { 2800 return ErrIntOverflowEntryProtocol 2801 } 2802 if iNdEx >= l { 2803 return io.ErrUnexpectedEOF 2804 } 2805 b := dAtA[iNdEx] 2806 iNdEx++ 2807 stringLen |= uint64(b&0x7F) << shift 2808 if b < 0x80 { 2809 break 2810 } 2811 } 2812 intStringLen := int(stringLen) 2813 if intStringLen < 0 { 2814 return ErrInvalidLengthEntryProtocol 2815 } 2816 postIndex := iNdEx + intStringLen 2817 if postIndex < 0 { 2818 return ErrInvalidLengthEntryProtocol 2819 } 2820 if postIndex > l { 2821 return io.ErrUnexpectedEOF 2822 } 2823 m.Name = string(dAtA[iNdEx:postIndex]) 2824 iNdEx = postIndex 2825 case 4: 2826 if wireType != 0 { 2827 return fmt.Errorf("proto: wrong wireType = %d for field IsKey", wireType) 2828 } 2829 var v int 2830 for shift := uint(0); ; shift += 7 { 2831 if shift >= 64 { 2832 return ErrIntOverflowEntryProtocol 2833 } 2834 if iNdEx >= l { 2835 return io.ErrUnexpectedEOF 2836 } 2837 b := dAtA[iNdEx] 2838 iNdEx++ 2839 v |= int(b&0x7F) << shift 2840 if b < 0x80 { 2841 break 2842 } 2843 } 2844 m.IsKey = bool(v != 0) 2845 case 5: 2846 if wireType != 0 { 2847 return fmt.Errorf("proto: wrong wireType = %d for field Updated", wireType) 2848 } 2849 var v int 2850 for shift := uint(0); ; shift += 7 { 2851 if shift >= 64 { 2852 return ErrIntOverflowEntryProtocol 2853 } 2854 if iNdEx >= l { 2855 return io.ErrUnexpectedEOF 2856 } 2857 b := dAtA[iNdEx] 2858 iNdEx++ 2859 v |= int(b&0x7F) << shift 2860 if b < 0x80 { 2861 break 2862 } 2863 } 2864 m.Updated = bool(v != 0) 2865 case 6: 2866 if wireType != 0 { 2867 return fmt.Errorf("proto: wrong wireType = %d for field IsNull", wireType) 2868 } 2869 var v int 2870 for shift := uint(0); ; shift += 7 { 2871 if shift >= 64 { 2872 return ErrIntOverflowEntryProtocol 2873 } 2874 if iNdEx >= l { 2875 return io.ErrUnexpectedEOF 2876 } 2877 b := dAtA[iNdEx] 2878 iNdEx++ 2879 v |= int(b&0x7F) << shift 2880 if b < 0x80 { 2881 break 2882 } 2883 } 2884 b := bool(v != 0) 2885 m.IsNullPresent = &Column_IsNull{b} 2886 case 7: 2887 if wireType != 2 { 2888 return fmt.Errorf("proto: wrong wireType = %d for field Props", wireType) 2889 } 2890 var msglen int 2891 for shift := uint(0); ; shift += 7 { 2892 if shift >= 64 { 2893 return ErrIntOverflowEntryProtocol 2894 } 2895 if iNdEx >= l { 2896 return io.ErrUnexpectedEOF 2897 } 2898 b := dAtA[iNdEx] 2899 iNdEx++ 2900 msglen |= int(b&0x7F) << shift 2901 if b < 0x80 { 2902 break 2903 } 2904 } 2905 if msglen < 0 { 2906 return ErrInvalidLengthEntryProtocol 2907 } 2908 postIndex := iNdEx + msglen 2909 if postIndex < 0 { 2910 return ErrInvalidLengthEntryProtocol 2911 } 2912 if postIndex > l { 2913 return io.ErrUnexpectedEOF 2914 } 2915 m.Props = append(m.Props, &Pair{}) 2916 if err := m.Props[len(m.Props)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2917 return err 2918 } 2919 iNdEx = postIndex 2920 case 8: 2921 if wireType != 2 { 2922 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 2923 } 2924 var stringLen uint64 2925 for shift := uint(0); ; shift += 7 { 2926 if shift >= 64 { 2927 return ErrIntOverflowEntryProtocol 2928 } 2929 if iNdEx >= l { 2930 return io.ErrUnexpectedEOF 2931 } 2932 b := dAtA[iNdEx] 2933 iNdEx++ 2934 stringLen |= uint64(b&0x7F) << shift 2935 if b < 0x80 { 2936 break 2937 } 2938 } 2939 intStringLen := int(stringLen) 2940 if intStringLen < 0 { 2941 return ErrInvalidLengthEntryProtocol 2942 } 2943 postIndex := iNdEx + intStringLen 2944 if postIndex < 0 { 2945 return ErrInvalidLengthEntryProtocol 2946 } 2947 if postIndex > l { 2948 return io.ErrUnexpectedEOF 2949 } 2950 m.Value = string(dAtA[iNdEx:postIndex]) 2951 iNdEx = postIndex 2952 case 9: 2953 if wireType != 0 { 2954 return fmt.Errorf("proto: wrong wireType = %d for field Length", wireType) 2955 } 2956 m.Length = 0 2957 for shift := uint(0); ; shift += 7 { 2958 if shift >= 64 { 2959 return ErrIntOverflowEntryProtocol 2960 } 2961 if iNdEx >= l { 2962 return io.ErrUnexpectedEOF 2963 } 2964 b := dAtA[iNdEx] 2965 iNdEx++ 2966 m.Length |= int32(b&0x7F) << shift 2967 if b < 0x80 { 2968 break 2969 } 2970 } 2971 case 10: 2972 if wireType != 2 { 2973 return fmt.Errorf("proto: wrong wireType = %d for field MysqlType", wireType) 2974 } 2975 var stringLen uint64 2976 for shift := uint(0); ; shift += 7 { 2977 if shift >= 64 { 2978 return ErrIntOverflowEntryProtocol 2979 } 2980 if iNdEx >= l { 2981 return io.ErrUnexpectedEOF 2982 } 2983 b := dAtA[iNdEx] 2984 iNdEx++ 2985 stringLen |= uint64(b&0x7F) << shift 2986 if b < 0x80 { 2987 break 2988 } 2989 } 2990 intStringLen := int(stringLen) 2991 if intStringLen < 0 { 2992 return ErrInvalidLengthEntryProtocol 2993 } 2994 postIndex := iNdEx + intStringLen 2995 if postIndex < 0 { 2996 return ErrInvalidLengthEntryProtocol 2997 } 2998 if postIndex > l { 2999 return io.ErrUnexpectedEOF 3000 } 3001 m.MysqlType = string(dAtA[iNdEx:postIndex]) 3002 iNdEx = postIndex 3003 default: 3004 iNdEx = preIndex 3005 skippy, err := skipEntryProtocol(dAtA[iNdEx:]) 3006 if err != nil { 3007 return err 3008 } 3009 if skippy < 0 { 3010 return ErrInvalidLengthEntryProtocol 3011 } 3012 if (iNdEx + skippy) < 0 { 3013 return ErrInvalidLengthEntryProtocol 3014 } 3015 if (iNdEx + skippy) > l { 3016 return io.ErrUnexpectedEOF 3017 } 3018 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3019 iNdEx += skippy 3020 } 3021 } 3022 3023 if iNdEx > l { 3024 return io.ErrUnexpectedEOF 3025 } 3026 return nil 3027 } 3028 func (m *RowData) Unmarshal(dAtA []byte) error { 3029 l := len(dAtA) 3030 iNdEx := 0 3031 for iNdEx < l { 3032 preIndex := iNdEx 3033 var wire uint64 3034 for shift := uint(0); ; shift += 7 { 3035 if shift >= 64 { 3036 return ErrIntOverflowEntryProtocol 3037 } 3038 if iNdEx >= l { 3039 return io.ErrUnexpectedEOF 3040 } 3041 b := dAtA[iNdEx] 3042 iNdEx++ 3043 wire |= uint64(b&0x7F) << shift 3044 if b < 0x80 { 3045 break 3046 } 3047 } 3048 fieldNum := int32(wire >> 3) 3049 wireType := int(wire & 0x7) 3050 if wireType == 4 { 3051 return fmt.Errorf("proto: RowData: wiretype end group for non-group") 3052 } 3053 if fieldNum <= 0 { 3054 return fmt.Errorf("proto: RowData: illegal tag %d (wire type %d)", fieldNum, wire) 3055 } 3056 switch fieldNum { 3057 case 1: 3058 if wireType != 2 { 3059 return fmt.Errorf("proto: wrong wireType = %d for field BeforeColumns", wireType) 3060 } 3061 var msglen int 3062 for shift := uint(0); ; shift += 7 { 3063 if shift >= 64 { 3064 return ErrIntOverflowEntryProtocol 3065 } 3066 if iNdEx >= l { 3067 return io.ErrUnexpectedEOF 3068 } 3069 b := dAtA[iNdEx] 3070 iNdEx++ 3071 msglen |= int(b&0x7F) << shift 3072 if b < 0x80 { 3073 break 3074 } 3075 } 3076 if msglen < 0 { 3077 return ErrInvalidLengthEntryProtocol 3078 } 3079 postIndex := iNdEx + msglen 3080 if postIndex < 0 { 3081 return ErrInvalidLengthEntryProtocol 3082 } 3083 if postIndex > l { 3084 return io.ErrUnexpectedEOF 3085 } 3086 m.BeforeColumns = append(m.BeforeColumns, &Column{}) 3087 if err := m.BeforeColumns[len(m.BeforeColumns)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3088 return err 3089 } 3090 iNdEx = postIndex 3091 case 2: 3092 if wireType != 2 { 3093 return fmt.Errorf("proto: wrong wireType = %d for field AfterColumns", wireType) 3094 } 3095 var msglen int 3096 for shift := uint(0); ; shift += 7 { 3097 if shift >= 64 { 3098 return ErrIntOverflowEntryProtocol 3099 } 3100 if iNdEx >= l { 3101 return io.ErrUnexpectedEOF 3102 } 3103 b := dAtA[iNdEx] 3104 iNdEx++ 3105 msglen |= int(b&0x7F) << shift 3106 if b < 0x80 { 3107 break 3108 } 3109 } 3110 if msglen < 0 { 3111 return ErrInvalidLengthEntryProtocol 3112 } 3113 postIndex := iNdEx + msglen 3114 if postIndex < 0 { 3115 return ErrInvalidLengthEntryProtocol 3116 } 3117 if postIndex > l { 3118 return io.ErrUnexpectedEOF 3119 } 3120 m.AfterColumns = append(m.AfterColumns, &Column{}) 3121 if err := m.AfterColumns[len(m.AfterColumns)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3122 return err 3123 } 3124 iNdEx = postIndex 3125 case 3: 3126 if wireType != 2 { 3127 return fmt.Errorf("proto: wrong wireType = %d for field Props", wireType) 3128 } 3129 var msglen int 3130 for shift := uint(0); ; shift += 7 { 3131 if shift >= 64 { 3132 return ErrIntOverflowEntryProtocol 3133 } 3134 if iNdEx >= l { 3135 return io.ErrUnexpectedEOF 3136 } 3137 b := dAtA[iNdEx] 3138 iNdEx++ 3139 msglen |= int(b&0x7F) << shift 3140 if b < 0x80 { 3141 break 3142 } 3143 } 3144 if msglen < 0 { 3145 return ErrInvalidLengthEntryProtocol 3146 } 3147 postIndex := iNdEx + msglen 3148 if postIndex < 0 { 3149 return ErrInvalidLengthEntryProtocol 3150 } 3151 if postIndex > l { 3152 return io.ErrUnexpectedEOF 3153 } 3154 m.Props = append(m.Props, &Pair{}) 3155 if err := m.Props[len(m.Props)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3156 return err 3157 } 3158 iNdEx = postIndex 3159 default: 3160 iNdEx = preIndex 3161 skippy, err := skipEntryProtocol(dAtA[iNdEx:]) 3162 if err != nil { 3163 return err 3164 } 3165 if skippy < 0 { 3166 return ErrInvalidLengthEntryProtocol 3167 } 3168 if (iNdEx + skippy) < 0 { 3169 return ErrInvalidLengthEntryProtocol 3170 } 3171 if (iNdEx + skippy) > l { 3172 return io.ErrUnexpectedEOF 3173 } 3174 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3175 iNdEx += skippy 3176 } 3177 } 3178 3179 if iNdEx > l { 3180 return io.ErrUnexpectedEOF 3181 } 3182 return nil 3183 } 3184 func (m *RowChange) Unmarshal(dAtA []byte) error { 3185 l := len(dAtA) 3186 iNdEx := 0 3187 for iNdEx < l { 3188 preIndex := iNdEx 3189 var wire uint64 3190 for shift := uint(0); ; shift += 7 { 3191 if shift >= 64 { 3192 return ErrIntOverflowEntryProtocol 3193 } 3194 if iNdEx >= l { 3195 return io.ErrUnexpectedEOF 3196 } 3197 b := dAtA[iNdEx] 3198 iNdEx++ 3199 wire |= uint64(b&0x7F) << shift 3200 if b < 0x80 { 3201 break 3202 } 3203 } 3204 fieldNum := int32(wire >> 3) 3205 wireType := int(wire & 0x7) 3206 if wireType == 4 { 3207 return fmt.Errorf("proto: RowChange: wiretype end group for non-group") 3208 } 3209 if fieldNum <= 0 { 3210 return fmt.Errorf("proto: RowChange: illegal tag %d (wire type %d)", fieldNum, wire) 3211 } 3212 switch fieldNum { 3213 case 1: 3214 if wireType != 0 { 3215 return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType) 3216 } 3217 m.TableId = 0 3218 for shift := uint(0); ; shift += 7 { 3219 if shift >= 64 { 3220 return ErrIntOverflowEntryProtocol 3221 } 3222 if iNdEx >= l { 3223 return io.ErrUnexpectedEOF 3224 } 3225 b := dAtA[iNdEx] 3226 iNdEx++ 3227 m.TableId |= int64(b&0x7F) << shift 3228 if b < 0x80 { 3229 break 3230 } 3231 } 3232 case 2: 3233 if wireType != 0 { 3234 return fmt.Errorf("proto: wrong wireType = %d for field EventType", wireType) 3235 } 3236 var v EventType 3237 for shift := uint(0); ; shift += 7 { 3238 if shift >= 64 { 3239 return ErrIntOverflowEntryProtocol 3240 } 3241 if iNdEx >= l { 3242 return io.ErrUnexpectedEOF 3243 } 3244 b := dAtA[iNdEx] 3245 iNdEx++ 3246 v |= EventType(b&0x7F) << shift 3247 if b < 0x80 { 3248 break 3249 } 3250 } 3251 m.EventTypePresent = &RowChange_EventType{v} 3252 case 10: 3253 if wireType != 0 { 3254 return fmt.Errorf("proto: wrong wireType = %d for field IsDdl", wireType) 3255 } 3256 var v int 3257 for shift := uint(0); ; shift += 7 { 3258 if shift >= 64 { 3259 return ErrIntOverflowEntryProtocol 3260 } 3261 if iNdEx >= l { 3262 return io.ErrUnexpectedEOF 3263 } 3264 b := dAtA[iNdEx] 3265 iNdEx++ 3266 v |= int(b&0x7F) << shift 3267 if b < 0x80 { 3268 break 3269 } 3270 } 3271 b := bool(v != 0) 3272 m.IsDdlPresent = &RowChange_IsDdl{b} 3273 case 11: 3274 if wireType != 2 { 3275 return fmt.Errorf("proto: wrong wireType = %d for field SQL", wireType) 3276 } 3277 var stringLen uint64 3278 for shift := uint(0); ; shift += 7 { 3279 if shift >= 64 { 3280 return ErrIntOverflowEntryProtocol 3281 } 3282 if iNdEx >= l { 3283 return io.ErrUnexpectedEOF 3284 } 3285 b := dAtA[iNdEx] 3286 iNdEx++ 3287 stringLen |= uint64(b&0x7F) << shift 3288 if b < 0x80 { 3289 break 3290 } 3291 } 3292 intStringLen := int(stringLen) 3293 if intStringLen < 0 { 3294 return ErrInvalidLengthEntryProtocol 3295 } 3296 postIndex := iNdEx + intStringLen 3297 if postIndex < 0 { 3298 return ErrInvalidLengthEntryProtocol 3299 } 3300 if postIndex > l { 3301 return io.ErrUnexpectedEOF 3302 } 3303 m.Sql = string(dAtA[iNdEx:postIndex]) 3304 iNdEx = postIndex 3305 case 12: 3306 if wireType != 2 { 3307 return fmt.Errorf("proto: wrong wireType = %d for field RowDatas", wireType) 3308 } 3309 var msglen int 3310 for shift := uint(0); ; shift += 7 { 3311 if shift >= 64 { 3312 return ErrIntOverflowEntryProtocol 3313 } 3314 if iNdEx >= l { 3315 return io.ErrUnexpectedEOF 3316 } 3317 b := dAtA[iNdEx] 3318 iNdEx++ 3319 msglen |= int(b&0x7F) << shift 3320 if b < 0x80 { 3321 break 3322 } 3323 } 3324 if msglen < 0 { 3325 return ErrInvalidLengthEntryProtocol 3326 } 3327 postIndex := iNdEx + msglen 3328 if postIndex < 0 { 3329 return ErrInvalidLengthEntryProtocol 3330 } 3331 if postIndex > l { 3332 return io.ErrUnexpectedEOF 3333 } 3334 m.RowDatas = append(m.RowDatas, &RowData{}) 3335 if err := m.RowDatas[len(m.RowDatas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3336 return err 3337 } 3338 iNdEx = postIndex 3339 case 13: 3340 if wireType != 2 { 3341 return fmt.Errorf("proto: wrong wireType = %d for field Props", wireType) 3342 } 3343 var msglen int 3344 for shift := uint(0); ; shift += 7 { 3345 if shift >= 64 { 3346 return ErrIntOverflowEntryProtocol 3347 } 3348 if iNdEx >= l { 3349 return io.ErrUnexpectedEOF 3350 } 3351 b := dAtA[iNdEx] 3352 iNdEx++ 3353 msglen |= int(b&0x7F) << shift 3354 if b < 0x80 { 3355 break 3356 } 3357 } 3358 if msglen < 0 { 3359 return ErrInvalidLengthEntryProtocol 3360 } 3361 postIndex := iNdEx + msglen 3362 if postIndex < 0 { 3363 return ErrInvalidLengthEntryProtocol 3364 } 3365 if postIndex > l { 3366 return io.ErrUnexpectedEOF 3367 } 3368 m.Props = append(m.Props, &Pair{}) 3369 if err := m.Props[len(m.Props)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3370 return err 3371 } 3372 iNdEx = postIndex 3373 case 14: 3374 if wireType != 2 { 3375 return fmt.Errorf("proto: wrong wireType = %d for field DdlSchemaName", wireType) 3376 } 3377 var stringLen uint64 3378 for shift := uint(0); ; shift += 7 { 3379 if shift >= 64 { 3380 return ErrIntOverflowEntryProtocol 3381 } 3382 if iNdEx >= l { 3383 return io.ErrUnexpectedEOF 3384 } 3385 b := dAtA[iNdEx] 3386 iNdEx++ 3387 stringLen |= uint64(b&0x7F) << shift 3388 if b < 0x80 { 3389 break 3390 } 3391 } 3392 intStringLen := int(stringLen) 3393 if intStringLen < 0 { 3394 return ErrInvalidLengthEntryProtocol 3395 } 3396 postIndex := iNdEx + intStringLen 3397 if postIndex < 0 { 3398 return ErrInvalidLengthEntryProtocol 3399 } 3400 if postIndex > l { 3401 return io.ErrUnexpectedEOF 3402 } 3403 m.DdlSchemaName = string(dAtA[iNdEx:postIndex]) 3404 iNdEx = postIndex 3405 default: 3406 iNdEx = preIndex 3407 skippy, err := skipEntryProtocol(dAtA[iNdEx:]) 3408 if err != nil { 3409 return err 3410 } 3411 if skippy < 0 { 3412 return ErrInvalidLengthEntryProtocol 3413 } 3414 if (iNdEx + skippy) < 0 { 3415 return ErrInvalidLengthEntryProtocol 3416 } 3417 if (iNdEx + skippy) > l { 3418 return io.ErrUnexpectedEOF 3419 } 3420 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3421 iNdEx += skippy 3422 } 3423 } 3424 3425 if iNdEx > l { 3426 return io.ErrUnexpectedEOF 3427 } 3428 return nil 3429 } 3430 func (m *TransactionBegin) Unmarshal(dAtA []byte) error { 3431 l := len(dAtA) 3432 iNdEx := 0 3433 for iNdEx < l { 3434 preIndex := iNdEx 3435 var wire uint64 3436 for shift := uint(0); ; shift += 7 { 3437 if shift >= 64 { 3438 return ErrIntOverflowEntryProtocol 3439 } 3440 if iNdEx >= l { 3441 return io.ErrUnexpectedEOF 3442 } 3443 b := dAtA[iNdEx] 3444 iNdEx++ 3445 wire |= uint64(b&0x7F) << shift 3446 if b < 0x80 { 3447 break 3448 } 3449 } 3450 fieldNum := int32(wire >> 3) 3451 wireType := int(wire & 0x7) 3452 if wireType == 4 { 3453 return fmt.Errorf("proto: TransactionBegin: wiretype end group for non-group") 3454 } 3455 if fieldNum <= 0 { 3456 return fmt.Errorf("proto: TransactionBegin: illegal tag %d (wire type %d)", fieldNum, wire) 3457 } 3458 switch fieldNum { 3459 case 1: 3460 if wireType != 0 { 3461 return fmt.Errorf("proto: wrong wireType = %d for field ExecuteTime", wireType) 3462 } 3463 m.ExecuteTime = 0 3464 for shift := uint(0); ; shift += 7 { 3465 if shift >= 64 { 3466 return ErrIntOverflowEntryProtocol 3467 } 3468 if iNdEx >= l { 3469 return io.ErrUnexpectedEOF 3470 } 3471 b := dAtA[iNdEx] 3472 iNdEx++ 3473 m.ExecuteTime |= int64(b&0x7F) << shift 3474 if b < 0x80 { 3475 break 3476 } 3477 } 3478 case 2: 3479 if wireType != 2 { 3480 return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType) 3481 } 3482 var stringLen uint64 3483 for shift := uint(0); ; shift += 7 { 3484 if shift >= 64 { 3485 return ErrIntOverflowEntryProtocol 3486 } 3487 if iNdEx >= l { 3488 return io.ErrUnexpectedEOF 3489 } 3490 b := dAtA[iNdEx] 3491 iNdEx++ 3492 stringLen |= uint64(b&0x7F) << shift 3493 if b < 0x80 { 3494 break 3495 } 3496 } 3497 intStringLen := int(stringLen) 3498 if intStringLen < 0 { 3499 return ErrInvalidLengthEntryProtocol 3500 } 3501 postIndex := iNdEx + intStringLen 3502 if postIndex < 0 { 3503 return ErrInvalidLengthEntryProtocol 3504 } 3505 if postIndex > l { 3506 return io.ErrUnexpectedEOF 3507 } 3508 m.TransactionId = string(dAtA[iNdEx:postIndex]) 3509 iNdEx = postIndex 3510 case 3: 3511 if wireType != 2 { 3512 return fmt.Errorf("proto: wrong wireType = %d for field Props", wireType) 3513 } 3514 var msglen int 3515 for shift := uint(0); ; shift += 7 { 3516 if shift >= 64 { 3517 return ErrIntOverflowEntryProtocol 3518 } 3519 if iNdEx >= l { 3520 return io.ErrUnexpectedEOF 3521 } 3522 b := dAtA[iNdEx] 3523 iNdEx++ 3524 msglen |= int(b&0x7F) << shift 3525 if b < 0x80 { 3526 break 3527 } 3528 } 3529 if msglen < 0 { 3530 return ErrInvalidLengthEntryProtocol 3531 } 3532 postIndex := iNdEx + msglen 3533 if postIndex < 0 { 3534 return ErrInvalidLengthEntryProtocol 3535 } 3536 if postIndex > l { 3537 return io.ErrUnexpectedEOF 3538 } 3539 m.Props = append(m.Props, &Pair{}) 3540 if err := m.Props[len(m.Props)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3541 return err 3542 } 3543 iNdEx = postIndex 3544 case 4: 3545 if wireType != 0 { 3546 return fmt.Errorf("proto: wrong wireType = %d for field ThreadId", wireType) 3547 } 3548 m.ThreadId = 0 3549 for shift := uint(0); ; shift += 7 { 3550 if shift >= 64 { 3551 return ErrIntOverflowEntryProtocol 3552 } 3553 if iNdEx >= l { 3554 return io.ErrUnexpectedEOF 3555 } 3556 b := dAtA[iNdEx] 3557 iNdEx++ 3558 m.ThreadId |= int64(b&0x7F) << shift 3559 if b < 0x80 { 3560 break 3561 } 3562 } 3563 default: 3564 iNdEx = preIndex 3565 skippy, err := skipEntryProtocol(dAtA[iNdEx:]) 3566 if err != nil { 3567 return err 3568 } 3569 if skippy < 0 { 3570 return ErrInvalidLengthEntryProtocol 3571 } 3572 if (iNdEx + skippy) < 0 { 3573 return ErrInvalidLengthEntryProtocol 3574 } 3575 if (iNdEx + skippy) > l { 3576 return io.ErrUnexpectedEOF 3577 } 3578 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3579 iNdEx += skippy 3580 } 3581 } 3582 3583 if iNdEx > l { 3584 return io.ErrUnexpectedEOF 3585 } 3586 return nil 3587 } 3588 func (m *TransactionEnd) Unmarshal(dAtA []byte) error { 3589 l := len(dAtA) 3590 iNdEx := 0 3591 for iNdEx < l { 3592 preIndex := iNdEx 3593 var wire uint64 3594 for shift := uint(0); ; shift += 7 { 3595 if shift >= 64 { 3596 return ErrIntOverflowEntryProtocol 3597 } 3598 if iNdEx >= l { 3599 return io.ErrUnexpectedEOF 3600 } 3601 b := dAtA[iNdEx] 3602 iNdEx++ 3603 wire |= uint64(b&0x7F) << shift 3604 if b < 0x80 { 3605 break 3606 } 3607 } 3608 fieldNum := int32(wire >> 3) 3609 wireType := int(wire & 0x7) 3610 if wireType == 4 { 3611 return fmt.Errorf("proto: TransactionEnd: wiretype end group for non-group") 3612 } 3613 if fieldNum <= 0 { 3614 return fmt.Errorf("proto: TransactionEnd: illegal tag %d (wire type %d)", fieldNum, wire) 3615 } 3616 switch fieldNum { 3617 case 1: 3618 if wireType != 0 { 3619 return fmt.Errorf("proto: wrong wireType = %d for field ExecuteTime", wireType) 3620 } 3621 m.ExecuteTime = 0 3622 for shift := uint(0); ; shift += 7 { 3623 if shift >= 64 { 3624 return ErrIntOverflowEntryProtocol 3625 } 3626 if iNdEx >= l { 3627 return io.ErrUnexpectedEOF 3628 } 3629 b := dAtA[iNdEx] 3630 iNdEx++ 3631 m.ExecuteTime |= int64(b&0x7F) << shift 3632 if b < 0x80 { 3633 break 3634 } 3635 } 3636 case 2: 3637 if wireType != 2 { 3638 return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType) 3639 } 3640 var stringLen uint64 3641 for shift := uint(0); ; shift += 7 { 3642 if shift >= 64 { 3643 return ErrIntOverflowEntryProtocol 3644 } 3645 if iNdEx >= l { 3646 return io.ErrUnexpectedEOF 3647 } 3648 b := dAtA[iNdEx] 3649 iNdEx++ 3650 stringLen |= uint64(b&0x7F) << shift 3651 if b < 0x80 { 3652 break 3653 } 3654 } 3655 intStringLen := int(stringLen) 3656 if intStringLen < 0 { 3657 return ErrInvalidLengthEntryProtocol 3658 } 3659 postIndex := iNdEx + intStringLen 3660 if postIndex < 0 { 3661 return ErrInvalidLengthEntryProtocol 3662 } 3663 if postIndex > l { 3664 return io.ErrUnexpectedEOF 3665 } 3666 m.TransactionId = string(dAtA[iNdEx:postIndex]) 3667 iNdEx = postIndex 3668 case 3: 3669 if wireType != 2 { 3670 return fmt.Errorf("proto: wrong wireType = %d for field Props", wireType) 3671 } 3672 var msglen int 3673 for shift := uint(0); ; shift += 7 { 3674 if shift >= 64 { 3675 return ErrIntOverflowEntryProtocol 3676 } 3677 if iNdEx >= l { 3678 return io.ErrUnexpectedEOF 3679 } 3680 b := dAtA[iNdEx] 3681 iNdEx++ 3682 msglen |= int(b&0x7F) << shift 3683 if b < 0x80 { 3684 break 3685 } 3686 } 3687 if msglen < 0 { 3688 return ErrInvalidLengthEntryProtocol 3689 } 3690 postIndex := iNdEx + msglen 3691 if postIndex < 0 { 3692 return ErrInvalidLengthEntryProtocol 3693 } 3694 if postIndex > l { 3695 return io.ErrUnexpectedEOF 3696 } 3697 m.Props = append(m.Props, &Pair{}) 3698 if err := m.Props[len(m.Props)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3699 return err 3700 } 3701 iNdEx = postIndex 3702 default: 3703 iNdEx = preIndex 3704 skippy, err := skipEntryProtocol(dAtA[iNdEx:]) 3705 if err != nil { 3706 return err 3707 } 3708 if skippy < 0 { 3709 return ErrInvalidLengthEntryProtocol 3710 } 3711 if (iNdEx + skippy) < 0 { 3712 return ErrInvalidLengthEntryProtocol 3713 } 3714 if (iNdEx + skippy) > l { 3715 return io.ErrUnexpectedEOF 3716 } 3717 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3718 iNdEx += skippy 3719 } 3720 } 3721 3722 if iNdEx > l { 3723 return io.ErrUnexpectedEOF 3724 } 3725 return nil 3726 } 3727 func (m *Pair) Unmarshal(dAtA []byte) error { 3728 l := len(dAtA) 3729 iNdEx := 0 3730 for iNdEx < l { 3731 preIndex := iNdEx 3732 var wire uint64 3733 for shift := uint(0); ; shift += 7 { 3734 if shift >= 64 { 3735 return ErrIntOverflowEntryProtocol 3736 } 3737 if iNdEx >= l { 3738 return io.ErrUnexpectedEOF 3739 } 3740 b := dAtA[iNdEx] 3741 iNdEx++ 3742 wire |= uint64(b&0x7F) << shift 3743 if b < 0x80 { 3744 break 3745 } 3746 } 3747 fieldNum := int32(wire >> 3) 3748 wireType := int(wire & 0x7) 3749 if wireType == 4 { 3750 return fmt.Errorf("proto: Pair: wiretype end group for non-group") 3751 } 3752 if fieldNum <= 0 { 3753 return fmt.Errorf("proto: Pair: illegal tag %d (wire type %d)", fieldNum, wire) 3754 } 3755 switch fieldNum { 3756 case 1: 3757 if wireType != 2 { 3758 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 3759 } 3760 var stringLen uint64 3761 for shift := uint(0); ; shift += 7 { 3762 if shift >= 64 { 3763 return ErrIntOverflowEntryProtocol 3764 } 3765 if iNdEx >= l { 3766 return io.ErrUnexpectedEOF 3767 } 3768 b := dAtA[iNdEx] 3769 iNdEx++ 3770 stringLen |= uint64(b&0x7F) << shift 3771 if b < 0x80 { 3772 break 3773 } 3774 } 3775 intStringLen := int(stringLen) 3776 if intStringLen < 0 { 3777 return ErrInvalidLengthEntryProtocol 3778 } 3779 postIndex := iNdEx + intStringLen 3780 if postIndex < 0 { 3781 return ErrInvalidLengthEntryProtocol 3782 } 3783 if postIndex > l { 3784 return io.ErrUnexpectedEOF 3785 } 3786 m.Key = string(dAtA[iNdEx:postIndex]) 3787 iNdEx = postIndex 3788 case 2: 3789 if wireType != 2 { 3790 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 3791 } 3792 var stringLen uint64 3793 for shift := uint(0); ; shift += 7 { 3794 if shift >= 64 { 3795 return ErrIntOverflowEntryProtocol 3796 } 3797 if iNdEx >= l { 3798 return io.ErrUnexpectedEOF 3799 } 3800 b := dAtA[iNdEx] 3801 iNdEx++ 3802 stringLen |= uint64(b&0x7F) << shift 3803 if b < 0x80 { 3804 break 3805 } 3806 } 3807 intStringLen := int(stringLen) 3808 if intStringLen < 0 { 3809 return ErrInvalidLengthEntryProtocol 3810 } 3811 postIndex := iNdEx + intStringLen 3812 if postIndex < 0 { 3813 return ErrInvalidLengthEntryProtocol 3814 } 3815 if postIndex > l { 3816 return io.ErrUnexpectedEOF 3817 } 3818 m.Value = string(dAtA[iNdEx:postIndex]) 3819 iNdEx = postIndex 3820 default: 3821 iNdEx = preIndex 3822 skippy, err := skipEntryProtocol(dAtA[iNdEx:]) 3823 if err != nil { 3824 return err 3825 } 3826 if skippy < 0 { 3827 return ErrInvalidLengthEntryProtocol 3828 } 3829 if (iNdEx + skippy) < 0 { 3830 return ErrInvalidLengthEntryProtocol 3831 } 3832 if (iNdEx + skippy) > l { 3833 return io.ErrUnexpectedEOF 3834 } 3835 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3836 iNdEx += skippy 3837 } 3838 } 3839 3840 if iNdEx > l { 3841 return io.ErrUnexpectedEOF 3842 } 3843 return nil 3844 } 3845 func skipEntryProtocol(dAtA []byte) (n int, err error) { 3846 l := len(dAtA) 3847 iNdEx := 0 3848 depth := 0 3849 for iNdEx < l { 3850 var wire uint64 3851 for shift := uint(0); ; shift += 7 { 3852 if shift >= 64 { 3853 return 0, ErrIntOverflowEntryProtocol 3854 } 3855 if iNdEx >= l { 3856 return 0, io.ErrUnexpectedEOF 3857 } 3858 b := dAtA[iNdEx] 3859 iNdEx++ 3860 wire |= (uint64(b) & 0x7F) << shift 3861 if b < 0x80 { 3862 break 3863 } 3864 } 3865 wireType := int(wire & 0x7) 3866 switch wireType { 3867 case 0: 3868 for shift := uint(0); ; shift += 7 { 3869 if shift >= 64 { 3870 return 0, ErrIntOverflowEntryProtocol 3871 } 3872 if iNdEx >= l { 3873 return 0, io.ErrUnexpectedEOF 3874 } 3875 iNdEx++ 3876 if dAtA[iNdEx-1] < 0x80 { 3877 break 3878 } 3879 } 3880 case 1: 3881 iNdEx += 8 3882 case 2: 3883 var length int 3884 for shift := uint(0); ; shift += 7 { 3885 if shift >= 64 { 3886 return 0, ErrIntOverflowEntryProtocol 3887 } 3888 if iNdEx >= l { 3889 return 0, io.ErrUnexpectedEOF 3890 } 3891 b := dAtA[iNdEx] 3892 iNdEx++ 3893 length |= (int(b) & 0x7F) << shift 3894 if b < 0x80 { 3895 break 3896 } 3897 } 3898 if length < 0 { 3899 return 0, ErrInvalidLengthEntryProtocol 3900 } 3901 iNdEx += length 3902 case 3: 3903 depth++ 3904 case 4: 3905 if depth == 0 { 3906 return 0, ErrUnexpectedEndOfGroupEntryProtocol 3907 } 3908 depth-- 3909 case 5: 3910 iNdEx += 4 3911 default: 3912 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 3913 } 3914 if iNdEx < 0 { 3915 return 0, ErrInvalidLengthEntryProtocol 3916 } 3917 if depth == 0 { 3918 return iNdEx, nil 3919 } 3920 } 3921 return 0, io.ErrUnexpectedEOF 3922 } 3923 3924 var ( 3925 ErrInvalidLengthEntryProtocol = fmt.Errorf("proto: negative length found during unmarshaling") 3926 ErrIntOverflowEntryProtocol = fmt.Errorf("proto: integer overflow") 3927 ErrUnexpectedEndOfGroupEntryProtocol = fmt.Errorf("proto: unexpected end of group") 3928 )