github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/dm/pb/dmworker.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: dmworker.proto 3 4 package pb 5 6 import ( 7 context "context" 8 encoding_binary "encoding/binary" 9 fmt "fmt" 10 proto "github.com/gogo/protobuf/proto" 11 grpc "google.golang.org/grpc" 12 codes "google.golang.org/grpc/codes" 13 status "google.golang.org/grpc/status" 14 io "io" 15 math "math" 16 math_bits "math/bits" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var _ = proto.Marshal 21 var _ = fmt.Errorf 22 var _ = math.Inf 23 24 // This is a compile-time assertion to ensure that this generated file 25 // is compatible with the proto package it is being compiled against. 26 // A compilation error at this line likely means your copy of the 27 // proto package needs to be updated. 28 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 29 30 type TaskOp int32 31 32 const ( 33 TaskOp_InvalidOp TaskOp = 0 34 TaskOp_Stop TaskOp = 1 35 TaskOp_Pause TaskOp = 2 36 TaskOp_Resume TaskOp = 3 37 TaskOp_Start TaskOp = 4 38 TaskOp_Update TaskOp = 5 39 TaskOp_AutoResume TaskOp = 6 40 TaskOp_Delete TaskOp = 7 41 ) 42 43 var TaskOp_name = map[int32]string{ 44 0: "InvalidOp", 45 1: "Stop", 46 2: "Pause", 47 3: "Resume", 48 4: "Start", 49 5: "Update", 50 6: "AutoResume", 51 7: "Delete", 52 } 53 54 var TaskOp_value = map[string]int32{ 55 "InvalidOp": 0, 56 "Stop": 1, 57 "Pause": 2, 58 "Resume": 3, 59 "Start": 4, 60 "Update": 5, 61 "AutoResume": 6, 62 "Delete": 7, 63 } 64 65 func (x TaskOp) String() string { 66 return proto.EnumName(TaskOp_name, int32(x)) 67 } 68 69 func (TaskOp) EnumDescriptor() ([]byte, []int) { 70 return fileDescriptor_51a1b9e17fd67b10, []int{0} 71 } 72 73 // Stage represents current stage for a (sub) task 74 // a (sub) task should be always in one stage of the following stages 75 // (sub) task can transfer from on stage to some special other stages 76 // New: initial stage when a sub task is created 77 // 78 // can not be transferred from other stages 79 // transfers to Running when initialize with no error 80 // 81 // Running: indicates the sub task is processing 82 // 83 // is transferred from New when created successfully 84 // is transferred from Paused when resuming is requested 85 // transfers to Paused when error occurred or requested from external 86 // transfers to Stopped when requested from external 87 // transfers to Finished when sub task processing completed (no Syncer used) 88 // 89 // Paused: indicates the processing is paused, and can be resume from external request 90 // 91 // is transferred from Running when error occurred or requested from external 92 // transfers to Running when resuming is requested from external 93 // transfers to Stopped when requested from external 94 // 95 // Stopped: indicates the processing is stopped, and can not be resume (or re-run) again 96 // 97 // is transferred from Running / Paused when requested from external 98 // can not transfer to any stages 99 // 100 // Finished: indicates the processing is finished, and no need to re-run 101 // 102 // is transferred from Running when processing completed 103 // should not transfer to any stages 104 type Stage int32 105 106 const ( 107 Stage_InvalidStage Stage = 0 108 Stage_New Stage = 1 109 Stage_Running Stage = 2 110 Stage_Paused Stage = 3 111 Stage_Stopped Stage = 4 112 Stage_Finished Stage = 5 113 Stage_Pausing Stage = 6 114 Stage_Resuming Stage = 7 115 Stage_Stopping Stage = 8 116 ) 117 118 var Stage_name = map[int32]string{ 119 0: "InvalidStage", 120 1: "New", 121 2: "Running", 122 3: "Paused", 123 4: "Stopped", 124 5: "Finished", 125 6: "Pausing", 126 7: "Resuming", 127 8: "Stopping", 128 } 129 130 var Stage_value = map[string]int32{ 131 "InvalidStage": 0, 132 "New": 1, 133 "Running": 2, 134 "Paused": 3, 135 "Stopped": 4, 136 "Finished": 5, 137 "Pausing": 6, 138 "Resuming": 7, 139 "Stopping": 8, 140 } 141 142 func (x Stage) String() string { 143 return proto.EnumName(Stage_name, int32(x)) 144 } 145 146 func (Stage) EnumDescriptor() ([]byte, []int) { 147 return fileDescriptor_51a1b9e17fd67b10, []int{1} 148 } 149 150 // UnitType represents the dm unit's type 151 type UnitType int32 152 153 const ( 154 UnitType_InvalidUnit UnitType = 0 155 UnitType_Check UnitType = 1 156 UnitType_Dump UnitType = 2 157 UnitType_Load UnitType = 3 158 UnitType_Sync UnitType = 4 159 UnitType_Relay UnitType = 100 160 ) 161 162 var UnitType_name = map[int32]string{ 163 0: "InvalidUnit", 164 1: "Check", 165 2: "Dump", 166 3: "Load", 167 4: "Sync", 168 100: "Relay", 169 } 170 171 var UnitType_value = map[string]int32{ 172 "InvalidUnit": 0, 173 "Check": 1, 174 "Dump": 2, 175 "Load": 3, 176 "Sync": 4, 177 "Relay": 100, 178 } 179 180 func (x UnitType) String() string { 181 return proto.EnumName(UnitType_name, int32(x)) 182 } 183 184 func (UnitType) EnumDescriptor() ([]byte, []int) { 185 return fileDescriptor_51a1b9e17fd67b10, []int{2} 186 } 187 188 // RelayOp differs from TaskOp 189 type RelayOp int32 190 191 const ( 192 RelayOp_InvalidRelayOp RelayOp = 0 193 RelayOp_StopRelay RelayOp = 1 194 RelayOp_PauseRelay RelayOp = 2 195 RelayOp_ResumeRelay RelayOp = 3 196 ) 197 198 var RelayOp_name = map[int32]string{ 199 0: "InvalidRelayOp", 200 1: "StopRelay", 201 2: "PauseRelay", 202 3: "ResumeRelay", 203 } 204 205 var RelayOp_value = map[string]int32{ 206 "InvalidRelayOp": 0, 207 "StopRelay": 1, 208 "PauseRelay": 2, 209 "ResumeRelay": 3, 210 } 211 212 func (x RelayOp) String() string { 213 return proto.EnumName(RelayOp_name, int32(x)) 214 } 215 216 func (RelayOp) EnumDescriptor() ([]byte, []int) { 217 return fileDescriptor_51a1b9e17fd67b10, []int{3} 218 } 219 220 type SchemaOp int32 221 222 const ( 223 SchemaOp_InvalidSchemaOp SchemaOp = 0 224 SchemaOp_GetSchema SchemaOp = 1 225 SchemaOp_SetSchema SchemaOp = 2 226 SchemaOp_RemoveSchema SchemaOp = 3 227 SchemaOp_ListSchema SchemaOp = 4 228 SchemaOp_ListTable SchemaOp = 5 229 SchemaOp_ListMigrateTargets SchemaOp = 6 230 ) 231 232 var SchemaOp_name = map[int32]string{ 233 0: "InvalidSchemaOp", 234 1: "GetSchema", 235 2: "SetSchema", 236 3: "RemoveSchema", 237 4: "ListSchema", 238 5: "ListTable", 239 6: "ListMigrateTargets", 240 } 241 242 var SchemaOp_value = map[string]int32{ 243 "InvalidSchemaOp": 0, 244 "GetSchema": 1, 245 "SetSchema": 2, 246 "RemoveSchema": 3, 247 "ListSchema": 4, 248 "ListTable": 5, 249 "ListMigrateTargets": 6, 250 } 251 252 func (x SchemaOp) String() string { 253 return proto.EnumName(SchemaOp_name, int32(x)) 254 } 255 256 func (SchemaOp) EnumDescriptor() ([]byte, []int) { 257 return fileDescriptor_51a1b9e17fd67b10, []int{4} 258 } 259 260 type V1MetaOp int32 261 262 const ( 263 V1MetaOp_InvalidV1MetaOp V1MetaOp = 0 264 V1MetaOp_GetV1Meta V1MetaOp = 1 265 V1MetaOp_RemoveV1Meta V1MetaOp = 2 266 ) 267 268 var V1MetaOp_name = map[int32]string{ 269 0: "InvalidV1MetaOp", 270 1: "GetV1Meta", 271 2: "RemoveV1Meta", 272 } 273 274 var V1MetaOp_value = map[string]int32{ 275 "InvalidV1MetaOp": 0, 276 "GetV1Meta": 1, 277 "RemoveV1Meta": 2, 278 } 279 280 func (x V1MetaOp) String() string { 281 return proto.EnumName(V1MetaOp_name, int32(x)) 282 } 283 284 func (V1MetaOp) EnumDescriptor() ([]byte, []int) { 285 return fileDescriptor_51a1b9e17fd67b10, []int{5} 286 } 287 288 type ErrorOp int32 289 290 const ( 291 ErrorOp_InvalidErrorOp ErrorOp = 0 292 ErrorOp_Skip ErrorOp = 1 293 ErrorOp_Replace ErrorOp = 2 294 ErrorOp_Revert ErrorOp = 3 295 ErrorOp_Inject ErrorOp = 4 296 ErrorOp_List ErrorOp = 5 297 ) 298 299 var ErrorOp_name = map[int32]string{ 300 0: "InvalidErrorOp", 301 1: "Skip", 302 2: "Replace", 303 3: "Revert", 304 4: "Inject", 305 5: "List", 306 } 307 308 var ErrorOp_value = map[string]int32{ 309 "InvalidErrorOp": 0, 310 "Skip": 1, 311 "Replace": 2, 312 "Revert": 3, 313 "Inject": 4, 314 "List": 5, 315 } 316 317 func (x ErrorOp) String() string { 318 return proto.EnumName(ErrorOp_name, int32(x)) 319 } 320 321 func (ErrorOp) EnumDescriptor() ([]byte, []int) { 322 return fileDescriptor_51a1b9e17fd67b10, []int{6} 323 } 324 325 type ValidatorOp int32 326 327 const ( 328 ValidatorOp_InvalidValidatorOp ValidatorOp = 0 329 ValidatorOp_StartValidator ValidatorOp = 1 330 ValidatorOp_StopValidator ValidatorOp = 2 331 ) 332 333 var ValidatorOp_name = map[int32]string{ 334 0: "InvalidValidatorOp", 335 1: "StartValidator", 336 2: "StopValidator", 337 } 338 339 var ValidatorOp_value = map[string]int32{ 340 "InvalidValidatorOp": 0, 341 "StartValidator": 1, 342 "StopValidator": 2, 343 } 344 345 func (x ValidatorOp) String() string { 346 return proto.EnumName(ValidatorOp_name, int32(x)) 347 } 348 349 func (ValidatorOp) EnumDescriptor() ([]byte, []int) { 350 return fileDescriptor_51a1b9e17fd67b10, []int{7} 351 } 352 353 type ValidateErrorState int32 354 355 const ( 356 ValidateErrorState_InvalidErr ValidateErrorState = 0 357 ValidateErrorState_NewErr ValidateErrorState = 1 358 ValidateErrorState_IgnoredErr ValidateErrorState = 2 359 ValidateErrorState_ResolvedErr ValidateErrorState = 3 360 ) 361 362 var ValidateErrorState_name = map[int32]string{ 363 0: "InvalidErr", 364 1: "NewErr", 365 2: "IgnoredErr", 366 3: "ResolvedErr", 367 } 368 369 var ValidateErrorState_value = map[string]int32{ 370 "InvalidErr": 0, 371 "NewErr": 1, 372 "IgnoredErr": 2, 373 "ResolvedErr": 3, 374 } 375 376 func (x ValidateErrorState) String() string { 377 return proto.EnumName(ValidateErrorState_name, int32(x)) 378 } 379 380 func (ValidateErrorState) EnumDescriptor() ([]byte, []int) { 381 return fileDescriptor_51a1b9e17fd67b10, []int{8} 382 } 383 384 type ValidationErrOp int32 385 386 const ( 387 ValidationErrOp_InvalidErrOp ValidationErrOp = 0 388 ValidationErrOp_IgnoreErrOp ValidationErrOp = 1 389 ValidationErrOp_ResolveErrOp ValidationErrOp = 2 390 ValidationErrOp_ClearErrOp ValidationErrOp = 3 391 ) 392 393 var ValidationErrOp_name = map[int32]string{ 394 0: "InvalidErrOp", 395 1: "IgnoreErrOp", 396 2: "ResolveErrOp", 397 3: "ClearErrOp", 398 } 399 400 var ValidationErrOp_value = map[string]int32{ 401 "InvalidErrOp": 0, 402 "IgnoreErrOp": 1, 403 "ResolveErrOp": 2, 404 "ClearErrOp": 3, 405 } 406 407 func (x ValidationErrOp) String() string { 408 return proto.EnumName(ValidationErrOp_name, int32(x)) 409 } 410 411 func (ValidationErrOp) EnumDescriptor() ([]byte, []int) { 412 return fileDescriptor_51a1b9e17fd67b10, []int{9} 413 } 414 415 type QueryStatusRequest struct { 416 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 417 } 418 419 func (m *QueryStatusRequest) Reset() { *m = QueryStatusRequest{} } 420 func (m *QueryStatusRequest) String() string { return proto.CompactTextString(m) } 421 func (*QueryStatusRequest) ProtoMessage() {} 422 func (*QueryStatusRequest) Descriptor() ([]byte, []int) { 423 return fileDescriptor_51a1b9e17fd67b10, []int{0} 424 } 425 func (m *QueryStatusRequest) XXX_Unmarshal(b []byte) error { 426 return m.Unmarshal(b) 427 } 428 func (m *QueryStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 429 if deterministic { 430 return xxx_messageInfo_QueryStatusRequest.Marshal(b, m, deterministic) 431 } else { 432 b = b[:cap(b)] 433 n, err := m.MarshalToSizedBuffer(b) 434 if err != nil { 435 return nil, err 436 } 437 return b[:n], nil 438 } 439 } 440 func (m *QueryStatusRequest) XXX_Merge(src proto.Message) { 441 xxx_messageInfo_QueryStatusRequest.Merge(m, src) 442 } 443 func (m *QueryStatusRequest) XXX_Size() int { 444 return m.Size() 445 } 446 func (m *QueryStatusRequest) XXX_DiscardUnknown() { 447 xxx_messageInfo_QueryStatusRequest.DiscardUnknown(m) 448 } 449 450 var xxx_messageInfo_QueryStatusRequest proto.InternalMessageInfo 451 452 func (m *QueryStatusRequest) GetName() string { 453 if m != nil { 454 return m.Name 455 } 456 return "" 457 } 458 459 type CommonWorkerResponse struct { 460 Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` 461 Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` 462 Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` 463 Worker string `protobuf:"bytes,4,opt,name=worker,proto3" json:"worker,omitempty"` 464 } 465 466 func (m *CommonWorkerResponse) Reset() { *m = CommonWorkerResponse{} } 467 func (m *CommonWorkerResponse) String() string { return proto.CompactTextString(m) } 468 func (*CommonWorkerResponse) ProtoMessage() {} 469 func (*CommonWorkerResponse) Descriptor() ([]byte, []int) { 470 return fileDescriptor_51a1b9e17fd67b10, []int{1} 471 } 472 func (m *CommonWorkerResponse) XXX_Unmarshal(b []byte) error { 473 return m.Unmarshal(b) 474 } 475 func (m *CommonWorkerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 476 if deterministic { 477 return xxx_messageInfo_CommonWorkerResponse.Marshal(b, m, deterministic) 478 } else { 479 b = b[:cap(b)] 480 n, err := m.MarshalToSizedBuffer(b) 481 if err != nil { 482 return nil, err 483 } 484 return b[:n], nil 485 } 486 } 487 func (m *CommonWorkerResponse) XXX_Merge(src proto.Message) { 488 xxx_messageInfo_CommonWorkerResponse.Merge(m, src) 489 } 490 func (m *CommonWorkerResponse) XXX_Size() int { 491 return m.Size() 492 } 493 func (m *CommonWorkerResponse) XXX_DiscardUnknown() { 494 xxx_messageInfo_CommonWorkerResponse.DiscardUnknown(m) 495 } 496 497 var xxx_messageInfo_CommonWorkerResponse proto.InternalMessageInfo 498 499 func (m *CommonWorkerResponse) GetResult() bool { 500 if m != nil { 501 return m.Result 502 } 503 return false 504 } 505 506 func (m *CommonWorkerResponse) GetMsg() string { 507 if m != nil { 508 return m.Msg 509 } 510 return "" 511 } 512 513 func (m *CommonWorkerResponse) GetSource() string { 514 if m != nil { 515 return m.Source 516 } 517 return "" 518 } 519 520 func (m *CommonWorkerResponse) GetWorker() string { 521 if m != nil { 522 return m.Worker 523 } 524 return "" 525 } 526 527 // QueryStatusResponse represents status response for query on a dm-worker 528 // status: dm-worker's current sub tasks' status 529 type QueryStatusResponse struct { 530 Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` 531 Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` 532 SourceStatus *SourceStatus `protobuf:"bytes,3,opt,name=sourceStatus,proto3" json:"sourceStatus,omitempty"` 533 SubTaskStatus []*SubTaskStatus `protobuf:"bytes,4,rep,name=subTaskStatus,proto3" json:"subTaskStatus,omitempty"` 534 } 535 536 func (m *QueryStatusResponse) Reset() { *m = QueryStatusResponse{} } 537 func (m *QueryStatusResponse) String() string { return proto.CompactTextString(m) } 538 func (*QueryStatusResponse) ProtoMessage() {} 539 func (*QueryStatusResponse) Descriptor() ([]byte, []int) { 540 return fileDescriptor_51a1b9e17fd67b10, []int{2} 541 } 542 func (m *QueryStatusResponse) XXX_Unmarshal(b []byte) error { 543 return m.Unmarshal(b) 544 } 545 func (m *QueryStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 546 if deterministic { 547 return xxx_messageInfo_QueryStatusResponse.Marshal(b, m, deterministic) 548 } else { 549 b = b[:cap(b)] 550 n, err := m.MarshalToSizedBuffer(b) 551 if err != nil { 552 return nil, err 553 } 554 return b[:n], nil 555 } 556 } 557 func (m *QueryStatusResponse) XXX_Merge(src proto.Message) { 558 xxx_messageInfo_QueryStatusResponse.Merge(m, src) 559 } 560 func (m *QueryStatusResponse) XXX_Size() int { 561 return m.Size() 562 } 563 func (m *QueryStatusResponse) XXX_DiscardUnknown() { 564 xxx_messageInfo_QueryStatusResponse.DiscardUnknown(m) 565 } 566 567 var xxx_messageInfo_QueryStatusResponse proto.InternalMessageInfo 568 569 func (m *QueryStatusResponse) GetResult() bool { 570 if m != nil { 571 return m.Result 572 } 573 return false 574 } 575 576 func (m *QueryStatusResponse) GetMsg() string { 577 if m != nil { 578 return m.Msg 579 } 580 return "" 581 } 582 583 func (m *QueryStatusResponse) GetSourceStatus() *SourceStatus { 584 if m != nil { 585 return m.SourceStatus 586 } 587 return nil 588 } 589 590 func (m *QueryStatusResponse) GetSubTaskStatus() []*SubTaskStatus { 591 if m != nil { 592 return m.SubTaskStatus 593 } 594 return nil 595 } 596 597 // CheckStatus represents status for check unit 598 // adds fields later 599 type CheckStatus struct { 600 Passed bool `protobuf:"varint,1,opt,name=passed,proto3" json:"passed,omitempty"` 601 Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` 602 Successful int32 `protobuf:"varint,3,opt,name=successful,proto3" json:"successful,omitempty"` 603 Failed int32 `protobuf:"varint,4,opt,name=failed,proto3" json:"failed,omitempty"` 604 Warning int32 `protobuf:"varint,5,opt,name=warning,proto3" json:"warning,omitempty"` 605 Detail []byte `protobuf:"bytes,6,opt,name=detail,proto3" json:"detail,omitempty"` 606 } 607 608 func (m *CheckStatus) Reset() { *m = CheckStatus{} } 609 func (m *CheckStatus) String() string { return proto.CompactTextString(m) } 610 func (*CheckStatus) ProtoMessage() {} 611 func (*CheckStatus) Descriptor() ([]byte, []int) { 612 return fileDescriptor_51a1b9e17fd67b10, []int{3} 613 } 614 func (m *CheckStatus) XXX_Unmarshal(b []byte) error { 615 return m.Unmarshal(b) 616 } 617 func (m *CheckStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 618 if deterministic { 619 return xxx_messageInfo_CheckStatus.Marshal(b, m, deterministic) 620 } else { 621 b = b[:cap(b)] 622 n, err := m.MarshalToSizedBuffer(b) 623 if err != nil { 624 return nil, err 625 } 626 return b[:n], nil 627 } 628 } 629 func (m *CheckStatus) XXX_Merge(src proto.Message) { 630 xxx_messageInfo_CheckStatus.Merge(m, src) 631 } 632 func (m *CheckStatus) XXX_Size() int { 633 return m.Size() 634 } 635 func (m *CheckStatus) XXX_DiscardUnknown() { 636 xxx_messageInfo_CheckStatus.DiscardUnknown(m) 637 } 638 639 var xxx_messageInfo_CheckStatus proto.InternalMessageInfo 640 641 func (m *CheckStatus) GetPassed() bool { 642 if m != nil { 643 return m.Passed 644 } 645 return false 646 } 647 648 func (m *CheckStatus) GetTotal() int32 { 649 if m != nil { 650 return m.Total 651 } 652 return 0 653 } 654 655 func (m *CheckStatus) GetSuccessful() int32 { 656 if m != nil { 657 return m.Successful 658 } 659 return 0 660 } 661 662 func (m *CheckStatus) GetFailed() int32 { 663 if m != nil { 664 return m.Failed 665 } 666 return 0 667 } 668 669 func (m *CheckStatus) GetWarning() int32 { 670 if m != nil { 671 return m.Warning 672 } 673 return 0 674 } 675 676 func (m *CheckStatus) GetDetail() []byte { 677 if m != nil { 678 return m.Detail 679 } 680 return nil 681 } 682 683 // DumpStatus represents status for dump unit 684 // add fields later 685 type DumpStatus struct { 686 TotalTables int64 `protobuf:"varint,1,opt,name=totalTables,proto3" json:"totalTables,omitempty"` 687 CompletedTables float64 `protobuf:"fixed64,2,opt,name=completedTables,proto3" json:"completedTables,omitempty"` 688 FinishedBytes float64 `protobuf:"fixed64,3,opt,name=finishedBytes,proto3" json:"finishedBytes,omitempty"` 689 FinishedRows float64 `protobuf:"fixed64,4,opt,name=finishedRows,proto3" json:"finishedRows,omitempty"` 690 EstimateTotalRows float64 `protobuf:"fixed64,5,opt,name=estimateTotalRows,proto3" json:"estimateTotalRows,omitempty"` 691 Bps int64 `protobuf:"varint,6,opt,name=bps,proto3" json:"bps,omitempty"` 692 Progress string `protobuf:"bytes,7,opt,name=progress,proto3" json:"progress,omitempty"` 693 } 694 695 func (m *DumpStatus) Reset() { *m = DumpStatus{} } 696 func (m *DumpStatus) String() string { return proto.CompactTextString(m) } 697 func (*DumpStatus) ProtoMessage() {} 698 func (*DumpStatus) Descriptor() ([]byte, []int) { 699 return fileDescriptor_51a1b9e17fd67b10, []int{4} 700 } 701 func (m *DumpStatus) XXX_Unmarshal(b []byte) error { 702 return m.Unmarshal(b) 703 } 704 func (m *DumpStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 705 if deterministic { 706 return xxx_messageInfo_DumpStatus.Marshal(b, m, deterministic) 707 } else { 708 b = b[:cap(b)] 709 n, err := m.MarshalToSizedBuffer(b) 710 if err != nil { 711 return nil, err 712 } 713 return b[:n], nil 714 } 715 } 716 func (m *DumpStatus) XXX_Merge(src proto.Message) { 717 xxx_messageInfo_DumpStatus.Merge(m, src) 718 } 719 func (m *DumpStatus) XXX_Size() int { 720 return m.Size() 721 } 722 func (m *DumpStatus) XXX_DiscardUnknown() { 723 xxx_messageInfo_DumpStatus.DiscardUnknown(m) 724 } 725 726 var xxx_messageInfo_DumpStatus proto.InternalMessageInfo 727 728 func (m *DumpStatus) GetTotalTables() int64 { 729 if m != nil { 730 return m.TotalTables 731 } 732 return 0 733 } 734 735 func (m *DumpStatus) GetCompletedTables() float64 { 736 if m != nil { 737 return m.CompletedTables 738 } 739 return 0 740 } 741 742 func (m *DumpStatus) GetFinishedBytes() float64 { 743 if m != nil { 744 return m.FinishedBytes 745 } 746 return 0 747 } 748 749 func (m *DumpStatus) GetFinishedRows() float64 { 750 if m != nil { 751 return m.FinishedRows 752 } 753 return 0 754 } 755 756 func (m *DumpStatus) GetEstimateTotalRows() float64 { 757 if m != nil { 758 return m.EstimateTotalRows 759 } 760 return 0 761 } 762 763 func (m *DumpStatus) GetBps() int64 { 764 if m != nil { 765 return m.Bps 766 } 767 return 0 768 } 769 770 func (m *DumpStatus) GetProgress() string { 771 if m != nil { 772 return m.Progress 773 } 774 return "" 775 } 776 777 // LoadStatus represents status for load unit 778 type LoadStatus struct { 779 FinishedBytes int64 `protobuf:"varint,1,opt,name=finishedBytes,proto3" json:"finishedBytes,omitempty"` 780 TotalBytes int64 `protobuf:"varint,2,opt,name=totalBytes,proto3" json:"totalBytes,omitempty"` 781 Progress string `protobuf:"bytes,3,opt,name=progress,proto3" json:"progress,omitempty"` 782 MetaBinlog string `protobuf:"bytes,4,opt,name=metaBinlog,proto3" json:"metaBinlog,omitempty"` 783 MetaBinlogGTID string `protobuf:"bytes,5,opt,name=metaBinlogGTID,proto3" json:"metaBinlogGTID,omitempty"` 784 Bps int64 `protobuf:"varint,6,opt,name=bps,proto3" json:"bps,omitempty"` 785 } 786 787 func (m *LoadStatus) Reset() { *m = LoadStatus{} } 788 func (m *LoadStatus) String() string { return proto.CompactTextString(m) } 789 func (*LoadStatus) ProtoMessage() {} 790 func (*LoadStatus) Descriptor() ([]byte, []int) { 791 return fileDescriptor_51a1b9e17fd67b10, []int{5} 792 } 793 func (m *LoadStatus) XXX_Unmarshal(b []byte) error { 794 return m.Unmarshal(b) 795 } 796 func (m *LoadStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 797 if deterministic { 798 return xxx_messageInfo_LoadStatus.Marshal(b, m, deterministic) 799 } else { 800 b = b[:cap(b)] 801 n, err := m.MarshalToSizedBuffer(b) 802 if err != nil { 803 return nil, err 804 } 805 return b[:n], nil 806 } 807 } 808 func (m *LoadStatus) XXX_Merge(src proto.Message) { 809 xxx_messageInfo_LoadStatus.Merge(m, src) 810 } 811 func (m *LoadStatus) XXX_Size() int { 812 return m.Size() 813 } 814 func (m *LoadStatus) XXX_DiscardUnknown() { 815 xxx_messageInfo_LoadStatus.DiscardUnknown(m) 816 } 817 818 var xxx_messageInfo_LoadStatus proto.InternalMessageInfo 819 820 func (m *LoadStatus) GetFinishedBytes() int64 { 821 if m != nil { 822 return m.FinishedBytes 823 } 824 return 0 825 } 826 827 func (m *LoadStatus) GetTotalBytes() int64 { 828 if m != nil { 829 return m.TotalBytes 830 } 831 return 0 832 } 833 834 func (m *LoadStatus) GetProgress() string { 835 if m != nil { 836 return m.Progress 837 } 838 return "" 839 } 840 841 func (m *LoadStatus) GetMetaBinlog() string { 842 if m != nil { 843 return m.MetaBinlog 844 } 845 return "" 846 } 847 848 func (m *LoadStatus) GetMetaBinlogGTID() string { 849 if m != nil { 850 return m.MetaBinlogGTID 851 } 852 return "" 853 } 854 855 func (m *LoadStatus) GetBps() int64 { 856 if m != nil { 857 return m.Bps 858 } 859 return 0 860 } 861 862 // ShardingGroup represents a DDL sharding group, this is used by SyncStatus, and is differ from ShardingGroup in syncer pkg 863 // target: target table name 864 // DDL: in syncing DDL 865 // firstPos: first DDL binlog pos for this group 866 // synced: synced source tables 867 // unsynced: unsynced source tables 868 type ShardingGroup struct { 869 Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` 870 DDLs []string `protobuf:"bytes,2,rep,name=DDLs,proto3" json:"DDLs,omitempty"` 871 FirstLocation string `protobuf:"bytes,3,opt,name=firstLocation,proto3" json:"firstLocation,omitempty"` 872 Synced []string `protobuf:"bytes,4,rep,name=synced,proto3" json:"synced,omitempty"` 873 Unsynced []string `protobuf:"bytes,5,rep,name=unsynced,proto3" json:"unsynced,omitempty"` 874 } 875 876 func (m *ShardingGroup) Reset() { *m = ShardingGroup{} } 877 func (m *ShardingGroup) String() string { return proto.CompactTextString(m) } 878 func (*ShardingGroup) ProtoMessage() {} 879 func (*ShardingGroup) Descriptor() ([]byte, []int) { 880 return fileDescriptor_51a1b9e17fd67b10, []int{6} 881 } 882 func (m *ShardingGroup) XXX_Unmarshal(b []byte) error { 883 return m.Unmarshal(b) 884 } 885 func (m *ShardingGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 886 if deterministic { 887 return xxx_messageInfo_ShardingGroup.Marshal(b, m, deterministic) 888 } else { 889 b = b[:cap(b)] 890 n, err := m.MarshalToSizedBuffer(b) 891 if err != nil { 892 return nil, err 893 } 894 return b[:n], nil 895 } 896 } 897 func (m *ShardingGroup) XXX_Merge(src proto.Message) { 898 xxx_messageInfo_ShardingGroup.Merge(m, src) 899 } 900 func (m *ShardingGroup) XXX_Size() int { 901 return m.Size() 902 } 903 func (m *ShardingGroup) XXX_DiscardUnknown() { 904 xxx_messageInfo_ShardingGroup.DiscardUnknown(m) 905 } 906 907 var xxx_messageInfo_ShardingGroup proto.InternalMessageInfo 908 909 func (m *ShardingGroup) GetTarget() string { 910 if m != nil { 911 return m.Target 912 } 913 return "" 914 } 915 916 func (m *ShardingGroup) GetDDLs() []string { 917 if m != nil { 918 return m.DDLs 919 } 920 return nil 921 } 922 923 func (m *ShardingGroup) GetFirstLocation() string { 924 if m != nil { 925 return m.FirstLocation 926 } 927 return "" 928 } 929 930 func (m *ShardingGroup) GetSynced() []string { 931 if m != nil { 932 return m.Synced 933 } 934 return nil 935 } 936 937 func (m *ShardingGroup) GetUnsynced() []string { 938 if m != nil { 939 return m.Unsynced 940 } 941 return nil 942 } 943 944 // SyncStatus represents status for sync unit 945 type SyncStatus struct { 946 // totalEvents/totalTps/recentTps has been deprecated now 947 TotalEvents int64 `protobuf:"varint,1,opt,name=totalEvents,proto3" json:"totalEvents,omitempty"` 948 TotalTps int64 `protobuf:"varint,2,opt,name=totalTps,proto3" json:"totalTps,omitempty"` 949 RecentTps int64 `protobuf:"varint,3,opt,name=recentTps,proto3" json:"recentTps,omitempty"` 950 MasterBinlog string `protobuf:"bytes,4,opt,name=masterBinlog,proto3" json:"masterBinlog,omitempty"` 951 MasterBinlogGtid string `protobuf:"bytes,5,opt,name=masterBinlogGtid,proto3" json:"masterBinlogGtid,omitempty"` 952 SyncerBinlog string `protobuf:"bytes,6,opt,name=syncerBinlog,proto3" json:"syncerBinlog,omitempty"` 953 SyncerBinlogGtid string `protobuf:"bytes,7,opt,name=syncerBinlogGtid,proto3" json:"syncerBinlogGtid,omitempty"` 954 BlockingDDLs []string `protobuf:"bytes,8,rep,name=blockingDDLs,proto3" json:"blockingDDLs,omitempty"` 955 UnresolvedGroups []*ShardingGroup `protobuf:"bytes,9,rep,name=unresolvedGroups,proto3" json:"unresolvedGroups,omitempty"` 956 Synced bool `protobuf:"varint,10,opt,name=synced,proto3" json:"synced,omitempty"` 957 BinlogType string `protobuf:"bytes,11,opt,name=binlogType,proto3" json:"binlogType,omitempty"` 958 SecondsBehindMaster int64 `protobuf:"varint,12,opt,name=secondsBehindMaster,proto3" json:"secondsBehindMaster,omitempty"` 959 BlockDDLOwner string `protobuf:"bytes,13,opt,name=blockDDLOwner,proto3" json:"blockDDLOwner,omitempty"` 960 ConflictMsg string `protobuf:"bytes,14,opt,name=conflictMsg,proto3" json:"conflictMsg,omitempty"` 961 TotalRows int64 `protobuf:"varint,15,opt,name=totalRows,proto3" json:"totalRows,omitempty"` 962 TotalRps int64 `protobuf:"varint,16,opt,name=totalRps,proto3" json:"totalRps,omitempty"` 963 RecentRps int64 `protobuf:"varint,17,opt,name=recentRps,proto3" json:"recentRps,omitempty"` 964 } 965 966 func (m *SyncStatus) Reset() { *m = SyncStatus{} } 967 func (m *SyncStatus) String() string { return proto.CompactTextString(m) } 968 func (*SyncStatus) ProtoMessage() {} 969 func (*SyncStatus) Descriptor() ([]byte, []int) { 970 return fileDescriptor_51a1b9e17fd67b10, []int{7} 971 } 972 func (m *SyncStatus) XXX_Unmarshal(b []byte) error { 973 return m.Unmarshal(b) 974 } 975 func (m *SyncStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 976 if deterministic { 977 return xxx_messageInfo_SyncStatus.Marshal(b, m, deterministic) 978 } else { 979 b = b[:cap(b)] 980 n, err := m.MarshalToSizedBuffer(b) 981 if err != nil { 982 return nil, err 983 } 984 return b[:n], nil 985 } 986 } 987 func (m *SyncStatus) XXX_Merge(src proto.Message) { 988 xxx_messageInfo_SyncStatus.Merge(m, src) 989 } 990 func (m *SyncStatus) XXX_Size() int { 991 return m.Size() 992 } 993 func (m *SyncStatus) XXX_DiscardUnknown() { 994 xxx_messageInfo_SyncStatus.DiscardUnknown(m) 995 } 996 997 var xxx_messageInfo_SyncStatus proto.InternalMessageInfo 998 999 func (m *SyncStatus) GetTotalEvents() int64 { 1000 if m != nil { 1001 return m.TotalEvents 1002 } 1003 return 0 1004 } 1005 1006 func (m *SyncStatus) GetTotalTps() int64 { 1007 if m != nil { 1008 return m.TotalTps 1009 } 1010 return 0 1011 } 1012 1013 func (m *SyncStatus) GetRecentTps() int64 { 1014 if m != nil { 1015 return m.RecentTps 1016 } 1017 return 0 1018 } 1019 1020 func (m *SyncStatus) GetMasterBinlog() string { 1021 if m != nil { 1022 return m.MasterBinlog 1023 } 1024 return "" 1025 } 1026 1027 func (m *SyncStatus) GetMasterBinlogGtid() string { 1028 if m != nil { 1029 return m.MasterBinlogGtid 1030 } 1031 return "" 1032 } 1033 1034 func (m *SyncStatus) GetSyncerBinlog() string { 1035 if m != nil { 1036 return m.SyncerBinlog 1037 } 1038 return "" 1039 } 1040 1041 func (m *SyncStatus) GetSyncerBinlogGtid() string { 1042 if m != nil { 1043 return m.SyncerBinlogGtid 1044 } 1045 return "" 1046 } 1047 1048 func (m *SyncStatus) GetBlockingDDLs() []string { 1049 if m != nil { 1050 return m.BlockingDDLs 1051 } 1052 return nil 1053 } 1054 1055 func (m *SyncStatus) GetUnresolvedGroups() []*ShardingGroup { 1056 if m != nil { 1057 return m.UnresolvedGroups 1058 } 1059 return nil 1060 } 1061 1062 func (m *SyncStatus) GetSynced() bool { 1063 if m != nil { 1064 return m.Synced 1065 } 1066 return false 1067 } 1068 1069 func (m *SyncStatus) GetBinlogType() string { 1070 if m != nil { 1071 return m.BinlogType 1072 } 1073 return "" 1074 } 1075 1076 func (m *SyncStatus) GetSecondsBehindMaster() int64 { 1077 if m != nil { 1078 return m.SecondsBehindMaster 1079 } 1080 return 0 1081 } 1082 1083 func (m *SyncStatus) GetBlockDDLOwner() string { 1084 if m != nil { 1085 return m.BlockDDLOwner 1086 } 1087 return "" 1088 } 1089 1090 func (m *SyncStatus) GetConflictMsg() string { 1091 if m != nil { 1092 return m.ConflictMsg 1093 } 1094 return "" 1095 } 1096 1097 func (m *SyncStatus) GetTotalRows() int64 { 1098 if m != nil { 1099 return m.TotalRows 1100 } 1101 return 0 1102 } 1103 1104 func (m *SyncStatus) GetTotalRps() int64 { 1105 if m != nil { 1106 return m.TotalRps 1107 } 1108 return 0 1109 } 1110 1111 func (m *SyncStatus) GetRecentRps() int64 { 1112 if m != nil { 1113 return m.RecentRps 1114 } 1115 return 0 1116 } 1117 1118 // SourceStatus represents status for source runing on dm-worker 1119 type SourceStatus struct { 1120 Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` 1121 Worker string `protobuf:"bytes,2,opt,name=worker,proto3" json:"worker,omitempty"` 1122 Result *ProcessResult `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` 1123 RelayStatus *RelayStatus `protobuf:"bytes,4,opt,name=relayStatus,proto3" json:"relayStatus,omitempty"` 1124 } 1125 1126 func (m *SourceStatus) Reset() { *m = SourceStatus{} } 1127 func (m *SourceStatus) String() string { return proto.CompactTextString(m) } 1128 func (*SourceStatus) ProtoMessage() {} 1129 func (*SourceStatus) Descriptor() ([]byte, []int) { 1130 return fileDescriptor_51a1b9e17fd67b10, []int{8} 1131 } 1132 func (m *SourceStatus) XXX_Unmarshal(b []byte) error { 1133 return m.Unmarshal(b) 1134 } 1135 func (m *SourceStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1136 if deterministic { 1137 return xxx_messageInfo_SourceStatus.Marshal(b, m, deterministic) 1138 } else { 1139 b = b[:cap(b)] 1140 n, err := m.MarshalToSizedBuffer(b) 1141 if err != nil { 1142 return nil, err 1143 } 1144 return b[:n], nil 1145 } 1146 } 1147 func (m *SourceStatus) XXX_Merge(src proto.Message) { 1148 xxx_messageInfo_SourceStatus.Merge(m, src) 1149 } 1150 func (m *SourceStatus) XXX_Size() int { 1151 return m.Size() 1152 } 1153 func (m *SourceStatus) XXX_DiscardUnknown() { 1154 xxx_messageInfo_SourceStatus.DiscardUnknown(m) 1155 } 1156 1157 var xxx_messageInfo_SourceStatus proto.InternalMessageInfo 1158 1159 func (m *SourceStatus) GetSource() string { 1160 if m != nil { 1161 return m.Source 1162 } 1163 return "" 1164 } 1165 1166 func (m *SourceStatus) GetWorker() string { 1167 if m != nil { 1168 return m.Worker 1169 } 1170 return "" 1171 } 1172 1173 func (m *SourceStatus) GetResult() *ProcessResult { 1174 if m != nil { 1175 return m.Result 1176 } 1177 return nil 1178 } 1179 1180 func (m *SourceStatus) GetRelayStatus() *RelayStatus { 1181 if m != nil { 1182 return m.RelayStatus 1183 } 1184 return nil 1185 } 1186 1187 // RelayStatus represents status for relay unit. 1188 type RelayStatus struct { 1189 MasterBinlog string `protobuf:"bytes,1,opt,name=masterBinlog,proto3" json:"masterBinlog,omitempty"` 1190 MasterBinlogGtid string `protobuf:"bytes,2,opt,name=masterBinlogGtid,proto3" json:"masterBinlogGtid,omitempty"` 1191 RelaySubDir string `protobuf:"bytes,3,opt,name=relaySubDir,proto3" json:"relaySubDir,omitempty"` 1192 RelayBinlog string `protobuf:"bytes,4,opt,name=relayBinlog,proto3" json:"relayBinlog,omitempty"` 1193 RelayBinlogGtid string `protobuf:"bytes,5,opt,name=relayBinlogGtid,proto3" json:"relayBinlogGtid,omitempty"` 1194 RelayCatchUpMaster bool `protobuf:"varint,6,opt,name=relayCatchUpMaster,proto3" json:"relayCatchUpMaster,omitempty"` 1195 Stage Stage `protobuf:"varint,7,opt,name=stage,proto3,enum=pb.Stage" json:"stage,omitempty"` 1196 Result *ProcessResult `protobuf:"bytes,8,opt,name=result,proto3" json:"result,omitempty"` 1197 } 1198 1199 func (m *RelayStatus) Reset() { *m = RelayStatus{} } 1200 func (m *RelayStatus) String() string { return proto.CompactTextString(m) } 1201 func (*RelayStatus) ProtoMessage() {} 1202 func (*RelayStatus) Descriptor() ([]byte, []int) { 1203 return fileDescriptor_51a1b9e17fd67b10, []int{9} 1204 } 1205 func (m *RelayStatus) XXX_Unmarshal(b []byte) error { 1206 return m.Unmarshal(b) 1207 } 1208 func (m *RelayStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1209 if deterministic { 1210 return xxx_messageInfo_RelayStatus.Marshal(b, m, deterministic) 1211 } else { 1212 b = b[:cap(b)] 1213 n, err := m.MarshalToSizedBuffer(b) 1214 if err != nil { 1215 return nil, err 1216 } 1217 return b[:n], nil 1218 } 1219 } 1220 func (m *RelayStatus) XXX_Merge(src proto.Message) { 1221 xxx_messageInfo_RelayStatus.Merge(m, src) 1222 } 1223 func (m *RelayStatus) XXX_Size() int { 1224 return m.Size() 1225 } 1226 func (m *RelayStatus) XXX_DiscardUnknown() { 1227 xxx_messageInfo_RelayStatus.DiscardUnknown(m) 1228 } 1229 1230 var xxx_messageInfo_RelayStatus proto.InternalMessageInfo 1231 1232 func (m *RelayStatus) GetMasterBinlog() string { 1233 if m != nil { 1234 return m.MasterBinlog 1235 } 1236 return "" 1237 } 1238 1239 func (m *RelayStatus) GetMasterBinlogGtid() string { 1240 if m != nil { 1241 return m.MasterBinlogGtid 1242 } 1243 return "" 1244 } 1245 1246 func (m *RelayStatus) GetRelaySubDir() string { 1247 if m != nil { 1248 return m.RelaySubDir 1249 } 1250 return "" 1251 } 1252 1253 func (m *RelayStatus) GetRelayBinlog() string { 1254 if m != nil { 1255 return m.RelayBinlog 1256 } 1257 return "" 1258 } 1259 1260 func (m *RelayStatus) GetRelayBinlogGtid() string { 1261 if m != nil { 1262 return m.RelayBinlogGtid 1263 } 1264 return "" 1265 } 1266 1267 func (m *RelayStatus) GetRelayCatchUpMaster() bool { 1268 if m != nil { 1269 return m.RelayCatchUpMaster 1270 } 1271 return false 1272 } 1273 1274 func (m *RelayStatus) GetStage() Stage { 1275 if m != nil { 1276 return m.Stage 1277 } 1278 return Stage_InvalidStage 1279 } 1280 1281 func (m *RelayStatus) GetResult() *ProcessResult { 1282 if m != nil { 1283 return m.Result 1284 } 1285 return nil 1286 } 1287 1288 // SubTaskStatus represents status for a sub task 1289 // name: sub task'name, when starting a sub task the name should be unique 1290 // stage: sub task's current stage 1291 // unit: sub task's current dm unit's UnitType 1292 // result: current unit's process result, when the stage is Running, no result 1293 // unresolvedDDLLockID: un-resolved sharding DDL lock ID (ref DDLLockInfo) 1294 // 1295 // if needed, we can put this to SyncStatus 1296 // 1297 // status: current unit's statistics 1298 // 1299 // for Load, includes total bytes, progress, etc. 1300 // for Sync, includes TPS, binlog meta, etc. 1301 type SubTaskStatus struct { 1302 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 1303 Stage Stage `protobuf:"varint,2,opt,name=stage,proto3,enum=pb.Stage" json:"stage,omitempty"` 1304 Unit UnitType `protobuf:"varint,3,opt,name=unit,proto3,enum=pb.UnitType" json:"unit,omitempty"` 1305 Result *ProcessResult `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"` 1306 UnresolvedDDLLockID string `protobuf:"bytes,5,opt,name=unresolvedDDLLockID,proto3" json:"unresolvedDDLLockID,omitempty"` 1307 // Types that are valid to be assigned to Status: 1308 // 1309 // *SubTaskStatus_Msg 1310 // *SubTaskStatus_Check 1311 // *SubTaskStatus_Dump 1312 // *SubTaskStatus_Load 1313 // *SubTaskStatus_Sync 1314 Status isSubTaskStatus_Status `protobuf_oneof:"status"` 1315 Validation *ValidationStatus `protobuf:"bytes,11,opt,name=validation,proto3" json:"validation,omitempty"` 1316 } 1317 1318 func (m *SubTaskStatus) Reset() { *m = SubTaskStatus{} } 1319 func (m *SubTaskStatus) String() string { return proto.CompactTextString(m) } 1320 func (*SubTaskStatus) ProtoMessage() {} 1321 func (*SubTaskStatus) Descriptor() ([]byte, []int) { 1322 return fileDescriptor_51a1b9e17fd67b10, []int{10} 1323 } 1324 func (m *SubTaskStatus) XXX_Unmarshal(b []byte) error { 1325 return m.Unmarshal(b) 1326 } 1327 func (m *SubTaskStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1328 if deterministic { 1329 return xxx_messageInfo_SubTaskStatus.Marshal(b, m, deterministic) 1330 } else { 1331 b = b[:cap(b)] 1332 n, err := m.MarshalToSizedBuffer(b) 1333 if err != nil { 1334 return nil, err 1335 } 1336 return b[:n], nil 1337 } 1338 } 1339 func (m *SubTaskStatus) XXX_Merge(src proto.Message) { 1340 xxx_messageInfo_SubTaskStatus.Merge(m, src) 1341 } 1342 func (m *SubTaskStatus) XXX_Size() int { 1343 return m.Size() 1344 } 1345 func (m *SubTaskStatus) XXX_DiscardUnknown() { 1346 xxx_messageInfo_SubTaskStatus.DiscardUnknown(m) 1347 } 1348 1349 var xxx_messageInfo_SubTaskStatus proto.InternalMessageInfo 1350 1351 type isSubTaskStatus_Status interface { 1352 isSubTaskStatus_Status() 1353 MarshalTo([]byte) (int, error) 1354 Size() int 1355 } 1356 1357 type SubTaskStatus_Msg struct { 1358 Msg string `protobuf:"bytes,6,opt,name=msg,proto3,oneof" json:"msg,omitempty"` 1359 } 1360 type SubTaskStatus_Check struct { 1361 Check *CheckStatus `protobuf:"bytes,7,opt,name=check,proto3,oneof" json:"check,omitempty"` 1362 } 1363 type SubTaskStatus_Dump struct { 1364 Dump *DumpStatus `protobuf:"bytes,8,opt,name=dump,proto3,oneof" json:"dump,omitempty"` 1365 } 1366 type SubTaskStatus_Load struct { 1367 Load *LoadStatus `protobuf:"bytes,9,opt,name=load,proto3,oneof" json:"load,omitempty"` 1368 } 1369 type SubTaskStatus_Sync struct { 1370 Sync *SyncStatus `protobuf:"bytes,10,opt,name=sync,proto3,oneof" json:"sync,omitempty"` 1371 } 1372 1373 func (*SubTaskStatus_Msg) isSubTaskStatus_Status() {} 1374 func (*SubTaskStatus_Check) isSubTaskStatus_Status() {} 1375 func (*SubTaskStatus_Dump) isSubTaskStatus_Status() {} 1376 func (*SubTaskStatus_Load) isSubTaskStatus_Status() {} 1377 func (*SubTaskStatus_Sync) isSubTaskStatus_Status() {} 1378 1379 func (m *SubTaskStatus) GetStatus() isSubTaskStatus_Status { 1380 if m != nil { 1381 return m.Status 1382 } 1383 return nil 1384 } 1385 1386 func (m *SubTaskStatus) GetName() string { 1387 if m != nil { 1388 return m.Name 1389 } 1390 return "" 1391 } 1392 1393 func (m *SubTaskStatus) GetStage() Stage { 1394 if m != nil { 1395 return m.Stage 1396 } 1397 return Stage_InvalidStage 1398 } 1399 1400 func (m *SubTaskStatus) GetUnit() UnitType { 1401 if m != nil { 1402 return m.Unit 1403 } 1404 return UnitType_InvalidUnit 1405 } 1406 1407 func (m *SubTaskStatus) GetResult() *ProcessResult { 1408 if m != nil { 1409 return m.Result 1410 } 1411 return nil 1412 } 1413 1414 func (m *SubTaskStatus) GetUnresolvedDDLLockID() string { 1415 if m != nil { 1416 return m.UnresolvedDDLLockID 1417 } 1418 return "" 1419 } 1420 1421 func (m *SubTaskStatus) GetMsg() string { 1422 if x, ok := m.GetStatus().(*SubTaskStatus_Msg); ok { 1423 return x.Msg 1424 } 1425 return "" 1426 } 1427 1428 func (m *SubTaskStatus) GetCheck() *CheckStatus { 1429 if x, ok := m.GetStatus().(*SubTaskStatus_Check); ok { 1430 return x.Check 1431 } 1432 return nil 1433 } 1434 1435 func (m *SubTaskStatus) GetDump() *DumpStatus { 1436 if x, ok := m.GetStatus().(*SubTaskStatus_Dump); ok { 1437 return x.Dump 1438 } 1439 return nil 1440 } 1441 1442 func (m *SubTaskStatus) GetLoad() *LoadStatus { 1443 if x, ok := m.GetStatus().(*SubTaskStatus_Load); ok { 1444 return x.Load 1445 } 1446 return nil 1447 } 1448 1449 func (m *SubTaskStatus) GetSync() *SyncStatus { 1450 if x, ok := m.GetStatus().(*SubTaskStatus_Sync); ok { 1451 return x.Sync 1452 } 1453 return nil 1454 } 1455 1456 func (m *SubTaskStatus) GetValidation() *ValidationStatus { 1457 if m != nil { 1458 return m.Validation 1459 } 1460 return nil 1461 } 1462 1463 // XXX_OneofWrappers is for the internal use of the proto package. 1464 func (*SubTaskStatus) XXX_OneofWrappers() []interface{} { 1465 return []interface{}{ 1466 (*SubTaskStatus_Msg)(nil), 1467 (*SubTaskStatus_Check)(nil), 1468 (*SubTaskStatus_Dump)(nil), 1469 (*SubTaskStatus_Load)(nil), 1470 (*SubTaskStatus_Sync)(nil), 1471 } 1472 } 1473 1474 // SubTaskStatusList used for internal jsonpb marshal 1475 type SubTaskStatusList struct { 1476 Status []*SubTaskStatus `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty"` 1477 } 1478 1479 func (m *SubTaskStatusList) Reset() { *m = SubTaskStatusList{} } 1480 func (m *SubTaskStatusList) String() string { return proto.CompactTextString(m) } 1481 func (*SubTaskStatusList) ProtoMessage() {} 1482 func (*SubTaskStatusList) Descriptor() ([]byte, []int) { 1483 return fileDescriptor_51a1b9e17fd67b10, []int{11} 1484 } 1485 func (m *SubTaskStatusList) XXX_Unmarshal(b []byte) error { 1486 return m.Unmarshal(b) 1487 } 1488 func (m *SubTaskStatusList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1489 if deterministic { 1490 return xxx_messageInfo_SubTaskStatusList.Marshal(b, m, deterministic) 1491 } else { 1492 b = b[:cap(b)] 1493 n, err := m.MarshalToSizedBuffer(b) 1494 if err != nil { 1495 return nil, err 1496 } 1497 return b[:n], nil 1498 } 1499 } 1500 func (m *SubTaskStatusList) XXX_Merge(src proto.Message) { 1501 xxx_messageInfo_SubTaskStatusList.Merge(m, src) 1502 } 1503 func (m *SubTaskStatusList) XXX_Size() int { 1504 return m.Size() 1505 } 1506 func (m *SubTaskStatusList) XXX_DiscardUnknown() { 1507 xxx_messageInfo_SubTaskStatusList.DiscardUnknown(m) 1508 } 1509 1510 var xxx_messageInfo_SubTaskStatusList proto.InternalMessageInfo 1511 1512 func (m *SubTaskStatusList) GetStatus() []*SubTaskStatus { 1513 if m != nil { 1514 return m.Status 1515 } 1516 return nil 1517 } 1518 1519 // CheckError represents error for check unit 1520 // adds fields later 1521 type CheckError struct { 1522 Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` 1523 } 1524 1525 func (m *CheckError) Reset() { *m = CheckError{} } 1526 func (m *CheckError) String() string { return proto.CompactTextString(m) } 1527 func (*CheckError) ProtoMessage() {} 1528 func (*CheckError) Descriptor() ([]byte, []int) { 1529 return fileDescriptor_51a1b9e17fd67b10, []int{12} 1530 } 1531 func (m *CheckError) XXX_Unmarshal(b []byte) error { 1532 return m.Unmarshal(b) 1533 } 1534 func (m *CheckError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1535 if deterministic { 1536 return xxx_messageInfo_CheckError.Marshal(b, m, deterministic) 1537 } else { 1538 b = b[:cap(b)] 1539 n, err := m.MarshalToSizedBuffer(b) 1540 if err != nil { 1541 return nil, err 1542 } 1543 return b[:n], nil 1544 } 1545 } 1546 func (m *CheckError) XXX_Merge(src proto.Message) { 1547 xxx_messageInfo_CheckError.Merge(m, src) 1548 } 1549 func (m *CheckError) XXX_Size() int { 1550 return m.Size() 1551 } 1552 func (m *CheckError) XXX_DiscardUnknown() { 1553 xxx_messageInfo_CheckError.DiscardUnknown(m) 1554 } 1555 1556 var xxx_messageInfo_CheckError proto.InternalMessageInfo 1557 1558 func (m *CheckError) GetMsg() string { 1559 if m != nil { 1560 return m.Msg 1561 } 1562 return "" 1563 } 1564 1565 // DumpError represents error for dump unit 1566 // add fields later 1567 type DumpError struct { 1568 Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` 1569 } 1570 1571 func (m *DumpError) Reset() { *m = DumpError{} } 1572 func (m *DumpError) String() string { return proto.CompactTextString(m) } 1573 func (*DumpError) ProtoMessage() {} 1574 func (*DumpError) Descriptor() ([]byte, []int) { 1575 return fileDescriptor_51a1b9e17fd67b10, []int{13} 1576 } 1577 func (m *DumpError) XXX_Unmarshal(b []byte) error { 1578 return m.Unmarshal(b) 1579 } 1580 func (m *DumpError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1581 if deterministic { 1582 return xxx_messageInfo_DumpError.Marshal(b, m, deterministic) 1583 } else { 1584 b = b[:cap(b)] 1585 n, err := m.MarshalToSizedBuffer(b) 1586 if err != nil { 1587 return nil, err 1588 } 1589 return b[:n], nil 1590 } 1591 } 1592 func (m *DumpError) XXX_Merge(src proto.Message) { 1593 xxx_messageInfo_DumpError.Merge(m, src) 1594 } 1595 func (m *DumpError) XXX_Size() int { 1596 return m.Size() 1597 } 1598 func (m *DumpError) XXX_DiscardUnknown() { 1599 xxx_messageInfo_DumpError.DiscardUnknown(m) 1600 } 1601 1602 var xxx_messageInfo_DumpError proto.InternalMessageInfo 1603 1604 func (m *DumpError) GetMsg() string { 1605 if m != nil { 1606 return m.Msg 1607 } 1608 return "" 1609 } 1610 1611 // LoadError represents error for load unit 1612 type LoadError struct { 1613 Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` 1614 } 1615 1616 func (m *LoadError) Reset() { *m = LoadError{} } 1617 func (m *LoadError) String() string { return proto.CompactTextString(m) } 1618 func (*LoadError) ProtoMessage() {} 1619 func (*LoadError) Descriptor() ([]byte, []int) { 1620 return fileDescriptor_51a1b9e17fd67b10, []int{14} 1621 } 1622 func (m *LoadError) XXX_Unmarshal(b []byte) error { 1623 return m.Unmarshal(b) 1624 } 1625 func (m *LoadError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1626 if deterministic { 1627 return xxx_messageInfo_LoadError.Marshal(b, m, deterministic) 1628 } else { 1629 b = b[:cap(b)] 1630 n, err := m.MarshalToSizedBuffer(b) 1631 if err != nil { 1632 return nil, err 1633 } 1634 return b[:n], nil 1635 } 1636 } 1637 func (m *LoadError) XXX_Merge(src proto.Message) { 1638 xxx_messageInfo_LoadError.Merge(m, src) 1639 } 1640 func (m *LoadError) XXX_Size() int { 1641 return m.Size() 1642 } 1643 func (m *LoadError) XXX_DiscardUnknown() { 1644 xxx_messageInfo_LoadError.DiscardUnknown(m) 1645 } 1646 1647 var xxx_messageInfo_LoadError proto.InternalMessageInfo 1648 1649 func (m *LoadError) GetMsg() string { 1650 if m != nil { 1651 return m.Msg 1652 } 1653 return "" 1654 } 1655 1656 // SyncSQLError represents a sql error in sync unit 1657 type SyncSQLError struct { 1658 Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` 1659 FailedBinlogPosition string `protobuf:"bytes,2,opt,name=failedBinlogPosition,proto3" json:"failedBinlogPosition,omitempty"` 1660 ErrorSQL string `protobuf:"bytes,3,opt,name=errorSQL,proto3" json:"errorSQL,omitempty"` 1661 } 1662 1663 func (m *SyncSQLError) Reset() { *m = SyncSQLError{} } 1664 func (m *SyncSQLError) String() string { return proto.CompactTextString(m) } 1665 func (*SyncSQLError) ProtoMessage() {} 1666 func (*SyncSQLError) Descriptor() ([]byte, []int) { 1667 return fileDescriptor_51a1b9e17fd67b10, []int{15} 1668 } 1669 func (m *SyncSQLError) XXX_Unmarshal(b []byte) error { 1670 return m.Unmarshal(b) 1671 } 1672 func (m *SyncSQLError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1673 if deterministic { 1674 return xxx_messageInfo_SyncSQLError.Marshal(b, m, deterministic) 1675 } else { 1676 b = b[:cap(b)] 1677 n, err := m.MarshalToSizedBuffer(b) 1678 if err != nil { 1679 return nil, err 1680 } 1681 return b[:n], nil 1682 } 1683 } 1684 func (m *SyncSQLError) XXX_Merge(src proto.Message) { 1685 xxx_messageInfo_SyncSQLError.Merge(m, src) 1686 } 1687 func (m *SyncSQLError) XXX_Size() int { 1688 return m.Size() 1689 } 1690 func (m *SyncSQLError) XXX_DiscardUnknown() { 1691 xxx_messageInfo_SyncSQLError.DiscardUnknown(m) 1692 } 1693 1694 var xxx_messageInfo_SyncSQLError proto.InternalMessageInfo 1695 1696 func (m *SyncSQLError) GetMsg() string { 1697 if m != nil { 1698 return m.Msg 1699 } 1700 return "" 1701 } 1702 1703 func (m *SyncSQLError) GetFailedBinlogPosition() string { 1704 if m != nil { 1705 return m.FailedBinlogPosition 1706 } 1707 return "" 1708 } 1709 1710 func (m *SyncSQLError) GetErrorSQL() string { 1711 if m != nil { 1712 return m.ErrorSQL 1713 } 1714 return "" 1715 } 1716 1717 // SyncError represents error list for sync unit 1718 type SyncError struct { 1719 Errors []*SyncSQLError `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"` 1720 } 1721 1722 func (m *SyncError) Reset() { *m = SyncError{} } 1723 func (m *SyncError) String() string { return proto.CompactTextString(m) } 1724 func (*SyncError) ProtoMessage() {} 1725 func (*SyncError) Descriptor() ([]byte, []int) { 1726 return fileDescriptor_51a1b9e17fd67b10, []int{16} 1727 } 1728 func (m *SyncError) XXX_Unmarshal(b []byte) error { 1729 return m.Unmarshal(b) 1730 } 1731 func (m *SyncError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1732 if deterministic { 1733 return xxx_messageInfo_SyncError.Marshal(b, m, deterministic) 1734 } else { 1735 b = b[:cap(b)] 1736 n, err := m.MarshalToSizedBuffer(b) 1737 if err != nil { 1738 return nil, err 1739 } 1740 return b[:n], nil 1741 } 1742 } 1743 func (m *SyncError) XXX_Merge(src proto.Message) { 1744 xxx_messageInfo_SyncError.Merge(m, src) 1745 } 1746 func (m *SyncError) XXX_Size() int { 1747 return m.Size() 1748 } 1749 func (m *SyncError) XXX_DiscardUnknown() { 1750 xxx_messageInfo_SyncError.DiscardUnknown(m) 1751 } 1752 1753 var xxx_messageInfo_SyncError proto.InternalMessageInfo 1754 1755 func (m *SyncError) GetErrors() []*SyncSQLError { 1756 if m != nil { 1757 return m.Errors 1758 } 1759 return nil 1760 } 1761 1762 // SourceError represents error for start/stop source on dm-worker 1763 type SourceError struct { 1764 Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` 1765 Worker string `protobuf:"bytes,2,opt,name=worker,proto3" json:"worker,omitempty"` 1766 SourceError string `protobuf:"bytes,3,opt,name=SourceError,proto3" json:"SourceError,omitempty"` 1767 RelayError *RelayError `protobuf:"bytes,4,opt,name=RelayError,proto3" json:"RelayError,omitempty"` 1768 } 1769 1770 func (m *SourceError) Reset() { *m = SourceError{} } 1771 func (m *SourceError) String() string { return proto.CompactTextString(m) } 1772 func (*SourceError) ProtoMessage() {} 1773 func (*SourceError) Descriptor() ([]byte, []int) { 1774 return fileDescriptor_51a1b9e17fd67b10, []int{17} 1775 } 1776 func (m *SourceError) XXX_Unmarshal(b []byte) error { 1777 return m.Unmarshal(b) 1778 } 1779 func (m *SourceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1780 if deterministic { 1781 return xxx_messageInfo_SourceError.Marshal(b, m, deterministic) 1782 } else { 1783 b = b[:cap(b)] 1784 n, err := m.MarshalToSizedBuffer(b) 1785 if err != nil { 1786 return nil, err 1787 } 1788 return b[:n], nil 1789 } 1790 } 1791 func (m *SourceError) XXX_Merge(src proto.Message) { 1792 xxx_messageInfo_SourceError.Merge(m, src) 1793 } 1794 func (m *SourceError) XXX_Size() int { 1795 return m.Size() 1796 } 1797 func (m *SourceError) XXX_DiscardUnknown() { 1798 xxx_messageInfo_SourceError.DiscardUnknown(m) 1799 } 1800 1801 var xxx_messageInfo_SourceError proto.InternalMessageInfo 1802 1803 func (m *SourceError) GetSource() string { 1804 if m != nil { 1805 return m.Source 1806 } 1807 return "" 1808 } 1809 1810 func (m *SourceError) GetWorker() string { 1811 if m != nil { 1812 return m.Worker 1813 } 1814 return "" 1815 } 1816 1817 func (m *SourceError) GetSourceError() string { 1818 if m != nil { 1819 return m.SourceError 1820 } 1821 return "" 1822 } 1823 1824 func (m *SourceError) GetRelayError() *RelayError { 1825 if m != nil { 1826 return m.RelayError 1827 } 1828 return nil 1829 } 1830 1831 // RelayError represents error for relay unit. 1832 type RelayError struct { 1833 Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` 1834 } 1835 1836 func (m *RelayError) Reset() { *m = RelayError{} } 1837 func (m *RelayError) String() string { return proto.CompactTextString(m) } 1838 func (*RelayError) ProtoMessage() {} 1839 func (*RelayError) Descriptor() ([]byte, []int) { 1840 return fileDescriptor_51a1b9e17fd67b10, []int{18} 1841 } 1842 func (m *RelayError) XXX_Unmarshal(b []byte) error { 1843 return m.Unmarshal(b) 1844 } 1845 func (m *RelayError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1846 if deterministic { 1847 return xxx_messageInfo_RelayError.Marshal(b, m, deterministic) 1848 } else { 1849 b = b[:cap(b)] 1850 n, err := m.MarshalToSizedBuffer(b) 1851 if err != nil { 1852 return nil, err 1853 } 1854 return b[:n], nil 1855 } 1856 } 1857 func (m *RelayError) XXX_Merge(src proto.Message) { 1858 xxx_messageInfo_RelayError.Merge(m, src) 1859 } 1860 func (m *RelayError) XXX_Size() int { 1861 return m.Size() 1862 } 1863 func (m *RelayError) XXX_DiscardUnknown() { 1864 xxx_messageInfo_RelayError.DiscardUnknown(m) 1865 } 1866 1867 var xxx_messageInfo_RelayError proto.InternalMessageInfo 1868 1869 func (m *RelayError) GetMsg() string { 1870 if m != nil { 1871 return m.Msg 1872 } 1873 return "" 1874 } 1875 1876 // SubTaskError represents error for a sub task during running 1877 // name: sub task'name, when starting a sub task the name should be unique 1878 // stage: sub task's current stage 1879 // unit: sub task's current dm unit's UnitType 1880 // error: current unit's error information 1881 // 1882 // for Sync, includes failed sql, failed sql pos in binlog, etc. 1883 type SubTaskError struct { 1884 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 1885 Stage Stage `protobuf:"varint,2,opt,name=stage,proto3,enum=pb.Stage" json:"stage,omitempty"` 1886 Unit UnitType `protobuf:"varint,3,opt,name=unit,proto3,enum=pb.UnitType" json:"unit,omitempty"` 1887 // Types that are valid to be assigned to Error: 1888 // 1889 // *SubTaskError_Msg 1890 // *SubTaskError_Check 1891 // *SubTaskError_Dump 1892 // *SubTaskError_Load 1893 // *SubTaskError_Sync 1894 Error isSubTaskError_Error `protobuf_oneof:"error"` 1895 } 1896 1897 func (m *SubTaskError) Reset() { *m = SubTaskError{} } 1898 func (m *SubTaskError) String() string { return proto.CompactTextString(m) } 1899 func (*SubTaskError) ProtoMessage() {} 1900 func (*SubTaskError) Descriptor() ([]byte, []int) { 1901 return fileDescriptor_51a1b9e17fd67b10, []int{19} 1902 } 1903 func (m *SubTaskError) XXX_Unmarshal(b []byte) error { 1904 return m.Unmarshal(b) 1905 } 1906 func (m *SubTaskError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1907 if deterministic { 1908 return xxx_messageInfo_SubTaskError.Marshal(b, m, deterministic) 1909 } else { 1910 b = b[:cap(b)] 1911 n, err := m.MarshalToSizedBuffer(b) 1912 if err != nil { 1913 return nil, err 1914 } 1915 return b[:n], nil 1916 } 1917 } 1918 func (m *SubTaskError) XXX_Merge(src proto.Message) { 1919 xxx_messageInfo_SubTaskError.Merge(m, src) 1920 } 1921 func (m *SubTaskError) XXX_Size() int { 1922 return m.Size() 1923 } 1924 func (m *SubTaskError) XXX_DiscardUnknown() { 1925 xxx_messageInfo_SubTaskError.DiscardUnknown(m) 1926 } 1927 1928 var xxx_messageInfo_SubTaskError proto.InternalMessageInfo 1929 1930 type isSubTaskError_Error interface { 1931 isSubTaskError_Error() 1932 MarshalTo([]byte) (int, error) 1933 Size() int 1934 } 1935 1936 type SubTaskError_Msg struct { 1937 Msg string `protobuf:"bytes,4,opt,name=msg,proto3,oneof" json:"msg,omitempty"` 1938 } 1939 type SubTaskError_Check struct { 1940 Check *CheckError `protobuf:"bytes,5,opt,name=check,proto3,oneof" json:"check,omitempty"` 1941 } 1942 type SubTaskError_Dump struct { 1943 Dump *DumpError `protobuf:"bytes,6,opt,name=dump,proto3,oneof" json:"dump,omitempty"` 1944 } 1945 type SubTaskError_Load struct { 1946 Load *LoadError `protobuf:"bytes,7,opt,name=load,proto3,oneof" json:"load,omitempty"` 1947 } 1948 type SubTaskError_Sync struct { 1949 Sync *SyncError `protobuf:"bytes,8,opt,name=sync,proto3,oneof" json:"sync,omitempty"` 1950 } 1951 1952 func (*SubTaskError_Msg) isSubTaskError_Error() {} 1953 func (*SubTaskError_Check) isSubTaskError_Error() {} 1954 func (*SubTaskError_Dump) isSubTaskError_Error() {} 1955 func (*SubTaskError_Load) isSubTaskError_Error() {} 1956 func (*SubTaskError_Sync) isSubTaskError_Error() {} 1957 1958 func (m *SubTaskError) GetError() isSubTaskError_Error { 1959 if m != nil { 1960 return m.Error 1961 } 1962 return nil 1963 } 1964 1965 func (m *SubTaskError) GetName() string { 1966 if m != nil { 1967 return m.Name 1968 } 1969 return "" 1970 } 1971 1972 func (m *SubTaskError) GetStage() Stage { 1973 if m != nil { 1974 return m.Stage 1975 } 1976 return Stage_InvalidStage 1977 } 1978 1979 func (m *SubTaskError) GetUnit() UnitType { 1980 if m != nil { 1981 return m.Unit 1982 } 1983 return UnitType_InvalidUnit 1984 } 1985 1986 func (m *SubTaskError) GetMsg() string { 1987 if x, ok := m.GetError().(*SubTaskError_Msg); ok { 1988 return x.Msg 1989 } 1990 return "" 1991 } 1992 1993 func (m *SubTaskError) GetCheck() *CheckError { 1994 if x, ok := m.GetError().(*SubTaskError_Check); ok { 1995 return x.Check 1996 } 1997 return nil 1998 } 1999 2000 func (m *SubTaskError) GetDump() *DumpError { 2001 if x, ok := m.GetError().(*SubTaskError_Dump); ok { 2002 return x.Dump 2003 } 2004 return nil 2005 } 2006 2007 func (m *SubTaskError) GetLoad() *LoadError { 2008 if x, ok := m.GetError().(*SubTaskError_Load); ok { 2009 return x.Load 2010 } 2011 return nil 2012 } 2013 2014 func (m *SubTaskError) GetSync() *SyncError { 2015 if x, ok := m.GetError().(*SubTaskError_Sync); ok { 2016 return x.Sync 2017 } 2018 return nil 2019 } 2020 2021 // XXX_OneofWrappers is for the internal use of the proto package. 2022 func (*SubTaskError) XXX_OneofWrappers() []interface{} { 2023 return []interface{}{ 2024 (*SubTaskError_Msg)(nil), 2025 (*SubTaskError_Check)(nil), 2026 (*SubTaskError_Dump)(nil), 2027 (*SubTaskError_Load)(nil), 2028 (*SubTaskError_Sync)(nil), 2029 } 2030 } 2031 2032 // SubTaskErrorList used for internal jsonpb marshal 2033 type SubTaskErrorList struct { 2034 Error []*SubTaskError `protobuf:"bytes,1,rep,name=error,proto3" json:"error,omitempty"` 2035 } 2036 2037 func (m *SubTaskErrorList) Reset() { *m = SubTaskErrorList{} } 2038 func (m *SubTaskErrorList) String() string { return proto.CompactTextString(m) } 2039 func (*SubTaskErrorList) ProtoMessage() {} 2040 func (*SubTaskErrorList) Descriptor() ([]byte, []int) { 2041 return fileDescriptor_51a1b9e17fd67b10, []int{20} 2042 } 2043 func (m *SubTaskErrorList) XXX_Unmarshal(b []byte) error { 2044 return m.Unmarshal(b) 2045 } 2046 func (m *SubTaskErrorList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2047 if deterministic { 2048 return xxx_messageInfo_SubTaskErrorList.Marshal(b, m, deterministic) 2049 } else { 2050 b = b[:cap(b)] 2051 n, err := m.MarshalToSizedBuffer(b) 2052 if err != nil { 2053 return nil, err 2054 } 2055 return b[:n], nil 2056 } 2057 } 2058 func (m *SubTaskErrorList) XXX_Merge(src proto.Message) { 2059 xxx_messageInfo_SubTaskErrorList.Merge(m, src) 2060 } 2061 func (m *SubTaskErrorList) XXX_Size() int { 2062 return m.Size() 2063 } 2064 func (m *SubTaskErrorList) XXX_DiscardUnknown() { 2065 xxx_messageInfo_SubTaskErrorList.DiscardUnknown(m) 2066 } 2067 2068 var xxx_messageInfo_SubTaskErrorList proto.InternalMessageInfo 2069 2070 func (m *SubTaskErrorList) GetError() []*SubTaskError { 2071 if m != nil { 2072 return m.Error 2073 } 2074 return nil 2075 } 2076 2077 // ProcessResult represents results produced by a dm unit 2078 // isCanceled: indicates whether the process is canceled from external 2079 // 2080 // when Stop or Pause is requested from external, isCanceled will be true 2081 // 2082 // errors: includes all (potential) errors occured when processing 2083 type ProcessResult struct { 2084 IsCanceled bool `protobuf:"varint,1,opt,name=isCanceled,proto3" json:"isCanceled,omitempty"` 2085 Errors []*ProcessError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` 2086 Detail []byte `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"` 2087 } 2088 2089 func (m *ProcessResult) Reset() { *m = ProcessResult{} } 2090 func (m *ProcessResult) String() string { return proto.CompactTextString(m) } 2091 func (*ProcessResult) ProtoMessage() {} 2092 func (*ProcessResult) Descriptor() ([]byte, []int) { 2093 return fileDescriptor_51a1b9e17fd67b10, []int{21} 2094 } 2095 func (m *ProcessResult) XXX_Unmarshal(b []byte) error { 2096 return m.Unmarshal(b) 2097 } 2098 func (m *ProcessResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2099 if deterministic { 2100 return xxx_messageInfo_ProcessResult.Marshal(b, m, deterministic) 2101 } else { 2102 b = b[:cap(b)] 2103 n, err := m.MarshalToSizedBuffer(b) 2104 if err != nil { 2105 return nil, err 2106 } 2107 return b[:n], nil 2108 } 2109 } 2110 func (m *ProcessResult) XXX_Merge(src proto.Message) { 2111 xxx_messageInfo_ProcessResult.Merge(m, src) 2112 } 2113 func (m *ProcessResult) XXX_Size() int { 2114 return m.Size() 2115 } 2116 func (m *ProcessResult) XXX_DiscardUnknown() { 2117 xxx_messageInfo_ProcessResult.DiscardUnknown(m) 2118 } 2119 2120 var xxx_messageInfo_ProcessResult proto.InternalMessageInfo 2121 2122 func (m *ProcessResult) GetIsCanceled() bool { 2123 if m != nil { 2124 return m.IsCanceled 2125 } 2126 return false 2127 } 2128 2129 func (m *ProcessResult) GetErrors() []*ProcessError { 2130 if m != nil { 2131 return m.Errors 2132 } 2133 return nil 2134 } 2135 2136 func (m *ProcessResult) GetDetail() []byte { 2137 if m != nil { 2138 return m.Detail 2139 } 2140 return nil 2141 } 2142 2143 // ProcessError is same as terror used in dm 2144 // NOTE: currently stack trace is not supported, `Message` is the `terror.Error.getMsg` result 2145 // and `RawCause` is the `Error` result of error from `terror.Error.Cause()`. 2146 type ProcessError struct { 2147 ErrCode int32 `protobuf:"varint,1,opt,name=ErrCode,proto3" json:"ErrCode,omitempty"` 2148 ErrClass string `protobuf:"bytes,2,opt,name=ErrClass,proto3" json:"ErrClass,omitempty"` 2149 ErrScope string `protobuf:"bytes,3,opt,name=ErrScope,proto3" json:"ErrScope,omitempty"` 2150 ErrLevel string `protobuf:"bytes,4,opt,name=ErrLevel,proto3" json:"ErrLevel,omitempty"` 2151 Message string `protobuf:"bytes,5,opt,name=Message,proto3" json:"Message,omitempty"` 2152 RawCause string `protobuf:"bytes,6,opt,name=RawCause,proto3" json:"RawCause,omitempty"` 2153 Workaround string `protobuf:"bytes,7,opt,name=Workaround,proto3" json:"Workaround,omitempty"` 2154 } 2155 2156 func (m *ProcessError) Reset() { *m = ProcessError{} } 2157 func (m *ProcessError) String() string { return proto.CompactTextString(m) } 2158 func (*ProcessError) ProtoMessage() {} 2159 func (*ProcessError) Descriptor() ([]byte, []int) { 2160 return fileDescriptor_51a1b9e17fd67b10, []int{22} 2161 } 2162 func (m *ProcessError) XXX_Unmarshal(b []byte) error { 2163 return m.Unmarshal(b) 2164 } 2165 func (m *ProcessError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2166 if deterministic { 2167 return xxx_messageInfo_ProcessError.Marshal(b, m, deterministic) 2168 } else { 2169 b = b[:cap(b)] 2170 n, err := m.MarshalToSizedBuffer(b) 2171 if err != nil { 2172 return nil, err 2173 } 2174 return b[:n], nil 2175 } 2176 } 2177 func (m *ProcessError) XXX_Merge(src proto.Message) { 2178 xxx_messageInfo_ProcessError.Merge(m, src) 2179 } 2180 func (m *ProcessError) XXX_Size() int { 2181 return m.Size() 2182 } 2183 func (m *ProcessError) XXX_DiscardUnknown() { 2184 xxx_messageInfo_ProcessError.DiscardUnknown(m) 2185 } 2186 2187 var xxx_messageInfo_ProcessError proto.InternalMessageInfo 2188 2189 func (m *ProcessError) GetErrCode() int32 { 2190 if m != nil { 2191 return m.ErrCode 2192 } 2193 return 0 2194 } 2195 2196 func (m *ProcessError) GetErrClass() string { 2197 if m != nil { 2198 return m.ErrClass 2199 } 2200 return "" 2201 } 2202 2203 func (m *ProcessError) GetErrScope() string { 2204 if m != nil { 2205 return m.ErrScope 2206 } 2207 return "" 2208 } 2209 2210 func (m *ProcessError) GetErrLevel() string { 2211 if m != nil { 2212 return m.ErrLevel 2213 } 2214 return "" 2215 } 2216 2217 func (m *ProcessError) GetMessage() string { 2218 if m != nil { 2219 return m.Message 2220 } 2221 return "" 2222 } 2223 2224 func (m *ProcessError) GetRawCause() string { 2225 if m != nil { 2226 return m.RawCause 2227 } 2228 return "" 2229 } 2230 2231 func (m *ProcessError) GetWorkaround() string { 2232 if m != nil { 2233 return m.Workaround 2234 } 2235 return "" 2236 } 2237 2238 // PurgeRelayRequest represents a request to purge relay log files for this dm-worker 2239 // inactive: whether purge inactive relay log files 2240 // time: whether purge relay log files before this time, the number of seconds elapsed since January 1, 1970 UTC 2241 // filename: whether purge relay log files before this filename 2242 // subDir: specify relay sub directory for @filename 2243 type PurgeRelayRequest struct { 2244 Inactive bool `protobuf:"varint,1,opt,name=inactive,proto3" json:"inactive,omitempty"` 2245 Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` 2246 Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` 2247 SubDir string `protobuf:"bytes,4,opt,name=subDir,proto3" json:"subDir,omitempty"` 2248 } 2249 2250 func (m *PurgeRelayRequest) Reset() { *m = PurgeRelayRequest{} } 2251 func (m *PurgeRelayRequest) String() string { return proto.CompactTextString(m) } 2252 func (*PurgeRelayRequest) ProtoMessage() {} 2253 func (*PurgeRelayRequest) Descriptor() ([]byte, []int) { 2254 return fileDescriptor_51a1b9e17fd67b10, []int{23} 2255 } 2256 func (m *PurgeRelayRequest) XXX_Unmarshal(b []byte) error { 2257 return m.Unmarshal(b) 2258 } 2259 func (m *PurgeRelayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2260 if deterministic { 2261 return xxx_messageInfo_PurgeRelayRequest.Marshal(b, m, deterministic) 2262 } else { 2263 b = b[:cap(b)] 2264 n, err := m.MarshalToSizedBuffer(b) 2265 if err != nil { 2266 return nil, err 2267 } 2268 return b[:n], nil 2269 } 2270 } 2271 func (m *PurgeRelayRequest) XXX_Merge(src proto.Message) { 2272 xxx_messageInfo_PurgeRelayRequest.Merge(m, src) 2273 } 2274 func (m *PurgeRelayRequest) XXX_Size() int { 2275 return m.Size() 2276 } 2277 func (m *PurgeRelayRequest) XXX_DiscardUnknown() { 2278 xxx_messageInfo_PurgeRelayRequest.DiscardUnknown(m) 2279 } 2280 2281 var xxx_messageInfo_PurgeRelayRequest proto.InternalMessageInfo 2282 2283 func (m *PurgeRelayRequest) GetInactive() bool { 2284 if m != nil { 2285 return m.Inactive 2286 } 2287 return false 2288 } 2289 2290 func (m *PurgeRelayRequest) GetTime() int64 { 2291 if m != nil { 2292 return m.Time 2293 } 2294 return 0 2295 } 2296 2297 func (m *PurgeRelayRequest) GetFilename() string { 2298 if m != nil { 2299 return m.Filename 2300 } 2301 return "" 2302 } 2303 2304 func (m *PurgeRelayRequest) GetSubDir() string { 2305 if m != nil { 2306 return m.SubDir 2307 } 2308 return "" 2309 } 2310 2311 type OperateWorkerSchemaRequest struct { 2312 Op SchemaOp `protobuf:"varint,1,opt,name=op,proto3,enum=pb.SchemaOp" json:"op,omitempty"` 2313 Task string `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"` 2314 Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` 2315 Database string `protobuf:"bytes,4,opt,name=database,proto3" json:"database,omitempty"` 2316 Table string `protobuf:"bytes,5,opt,name=table,proto3" json:"table,omitempty"` 2317 Schema string `protobuf:"bytes,6,opt,name=schema,proto3" json:"schema,omitempty"` 2318 Flush bool `protobuf:"varint,7,opt,name=flush,proto3" json:"flush,omitempty"` 2319 Sync bool `protobuf:"varint,8,opt,name=sync,proto3" json:"sync,omitempty"` 2320 FromSource bool `protobuf:"varint,9,opt,name=fromSource,proto3" json:"fromSource,omitempty"` 2321 FromTarget bool `protobuf:"varint,10,opt,name=fromTarget,proto3" json:"fromTarget,omitempty"` 2322 } 2323 2324 func (m *OperateWorkerSchemaRequest) Reset() { *m = OperateWorkerSchemaRequest{} } 2325 func (m *OperateWorkerSchemaRequest) String() string { return proto.CompactTextString(m) } 2326 func (*OperateWorkerSchemaRequest) ProtoMessage() {} 2327 func (*OperateWorkerSchemaRequest) Descriptor() ([]byte, []int) { 2328 return fileDescriptor_51a1b9e17fd67b10, []int{24} 2329 } 2330 func (m *OperateWorkerSchemaRequest) XXX_Unmarshal(b []byte) error { 2331 return m.Unmarshal(b) 2332 } 2333 func (m *OperateWorkerSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2334 if deterministic { 2335 return xxx_messageInfo_OperateWorkerSchemaRequest.Marshal(b, m, deterministic) 2336 } else { 2337 b = b[:cap(b)] 2338 n, err := m.MarshalToSizedBuffer(b) 2339 if err != nil { 2340 return nil, err 2341 } 2342 return b[:n], nil 2343 } 2344 } 2345 func (m *OperateWorkerSchemaRequest) XXX_Merge(src proto.Message) { 2346 xxx_messageInfo_OperateWorkerSchemaRequest.Merge(m, src) 2347 } 2348 func (m *OperateWorkerSchemaRequest) XXX_Size() int { 2349 return m.Size() 2350 } 2351 func (m *OperateWorkerSchemaRequest) XXX_DiscardUnknown() { 2352 xxx_messageInfo_OperateWorkerSchemaRequest.DiscardUnknown(m) 2353 } 2354 2355 var xxx_messageInfo_OperateWorkerSchemaRequest proto.InternalMessageInfo 2356 2357 func (m *OperateWorkerSchemaRequest) GetOp() SchemaOp { 2358 if m != nil { 2359 return m.Op 2360 } 2361 return SchemaOp_InvalidSchemaOp 2362 } 2363 2364 func (m *OperateWorkerSchemaRequest) GetTask() string { 2365 if m != nil { 2366 return m.Task 2367 } 2368 return "" 2369 } 2370 2371 func (m *OperateWorkerSchemaRequest) GetSource() string { 2372 if m != nil { 2373 return m.Source 2374 } 2375 return "" 2376 } 2377 2378 func (m *OperateWorkerSchemaRequest) GetDatabase() string { 2379 if m != nil { 2380 return m.Database 2381 } 2382 return "" 2383 } 2384 2385 func (m *OperateWorkerSchemaRequest) GetTable() string { 2386 if m != nil { 2387 return m.Table 2388 } 2389 return "" 2390 } 2391 2392 func (m *OperateWorkerSchemaRequest) GetSchema() string { 2393 if m != nil { 2394 return m.Schema 2395 } 2396 return "" 2397 } 2398 2399 func (m *OperateWorkerSchemaRequest) GetFlush() bool { 2400 if m != nil { 2401 return m.Flush 2402 } 2403 return false 2404 } 2405 2406 func (m *OperateWorkerSchemaRequest) GetSync() bool { 2407 if m != nil { 2408 return m.Sync 2409 } 2410 return false 2411 } 2412 2413 func (m *OperateWorkerSchemaRequest) GetFromSource() bool { 2414 if m != nil { 2415 return m.FromSource 2416 } 2417 return false 2418 } 2419 2420 func (m *OperateWorkerSchemaRequest) GetFromTarget() bool { 2421 if m != nil { 2422 return m.FromTarget 2423 } 2424 return false 2425 } 2426 2427 // copied `TaskMeta` from release-1.0 branch. 2428 type V1SubTaskMeta struct { 2429 Op TaskOp `protobuf:"varint,1,opt,name=op,proto3,enum=pb.TaskOp" json:"op,omitempty"` 2430 Stage Stage `protobuf:"varint,2,opt,name=stage,proto3,enum=pb.Stage" json:"stage,omitempty"` 2431 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` 2432 Task []byte `protobuf:"bytes,4,opt,name=task,proto3" json:"task,omitempty"` 2433 } 2434 2435 func (m *V1SubTaskMeta) Reset() { *m = V1SubTaskMeta{} } 2436 func (m *V1SubTaskMeta) String() string { return proto.CompactTextString(m) } 2437 func (*V1SubTaskMeta) ProtoMessage() {} 2438 func (*V1SubTaskMeta) Descriptor() ([]byte, []int) { 2439 return fileDescriptor_51a1b9e17fd67b10, []int{25} 2440 } 2441 func (m *V1SubTaskMeta) XXX_Unmarshal(b []byte) error { 2442 return m.Unmarshal(b) 2443 } 2444 func (m *V1SubTaskMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2445 if deterministic { 2446 return xxx_messageInfo_V1SubTaskMeta.Marshal(b, m, deterministic) 2447 } else { 2448 b = b[:cap(b)] 2449 n, err := m.MarshalToSizedBuffer(b) 2450 if err != nil { 2451 return nil, err 2452 } 2453 return b[:n], nil 2454 } 2455 } 2456 func (m *V1SubTaskMeta) XXX_Merge(src proto.Message) { 2457 xxx_messageInfo_V1SubTaskMeta.Merge(m, src) 2458 } 2459 func (m *V1SubTaskMeta) XXX_Size() int { 2460 return m.Size() 2461 } 2462 func (m *V1SubTaskMeta) XXX_DiscardUnknown() { 2463 xxx_messageInfo_V1SubTaskMeta.DiscardUnknown(m) 2464 } 2465 2466 var xxx_messageInfo_V1SubTaskMeta proto.InternalMessageInfo 2467 2468 func (m *V1SubTaskMeta) GetOp() TaskOp { 2469 if m != nil { 2470 return m.Op 2471 } 2472 return TaskOp_InvalidOp 2473 } 2474 2475 func (m *V1SubTaskMeta) GetStage() Stage { 2476 if m != nil { 2477 return m.Stage 2478 } 2479 return Stage_InvalidStage 2480 } 2481 2482 func (m *V1SubTaskMeta) GetName() string { 2483 if m != nil { 2484 return m.Name 2485 } 2486 return "" 2487 } 2488 2489 func (m *V1SubTaskMeta) GetTask() []byte { 2490 if m != nil { 2491 return m.Task 2492 } 2493 return nil 2494 } 2495 2496 type OperateV1MetaRequest struct { 2497 Op V1MetaOp `protobuf:"varint,1,opt,name=op,proto3,enum=pb.V1MetaOp" json:"op,omitempty"` 2498 } 2499 2500 func (m *OperateV1MetaRequest) Reset() { *m = OperateV1MetaRequest{} } 2501 func (m *OperateV1MetaRequest) String() string { return proto.CompactTextString(m) } 2502 func (*OperateV1MetaRequest) ProtoMessage() {} 2503 func (*OperateV1MetaRequest) Descriptor() ([]byte, []int) { 2504 return fileDescriptor_51a1b9e17fd67b10, []int{26} 2505 } 2506 func (m *OperateV1MetaRequest) XXX_Unmarshal(b []byte) error { 2507 return m.Unmarshal(b) 2508 } 2509 func (m *OperateV1MetaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2510 if deterministic { 2511 return xxx_messageInfo_OperateV1MetaRequest.Marshal(b, m, deterministic) 2512 } else { 2513 b = b[:cap(b)] 2514 n, err := m.MarshalToSizedBuffer(b) 2515 if err != nil { 2516 return nil, err 2517 } 2518 return b[:n], nil 2519 } 2520 } 2521 func (m *OperateV1MetaRequest) XXX_Merge(src proto.Message) { 2522 xxx_messageInfo_OperateV1MetaRequest.Merge(m, src) 2523 } 2524 func (m *OperateV1MetaRequest) XXX_Size() int { 2525 return m.Size() 2526 } 2527 func (m *OperateV1MetaRequest) XXX_DiscardUnknown() { 2528 xxx_messageInfo_OperateV1MetaRequest.DiscardUnknown(m) 2529 } 2530 2531 var xxx_messageInfo_OperateV1MetaRequest proto.InternalMessageInfo 2532 2533 func (m *OperateV1MetaRequest) GetOp() V1MetaOp { 2534 if m != nil { 2535 return m.Op 2536 } 2537 return V1MetaOp_InvalidV1MetaOp 2538 } 2539 2540 type OperateV1MetaResponse struct { 2541 Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` 2542 Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` 2543 Meta map[string]*V1SubTaskMeta `protobuf:"bytes,3,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 2544 } 2545 2546 func (m *OperateV1MetaResponse) Reset() { *m = OperateV1MetaResponse{} } 2547 func (m *OperateV1MetaResponse) String() string { return proto.CompactTextString(m) } 2548 func (*OperateV1MetaResponse) ProtoMessage() {} 2549 func (*OperateV1MetaResponse) Descriptor() ([]byte, []int) { 2550 return fileDescriptor_51a1b9e17fd67b10, []int{27} 2551 } 2552 func (m *OperateV1MetaResponse) XXX_Unmarshal(b []byte) error { 2553 return m.Unmarshal(b) 2554 } 2555 func (m *OperateV1MetaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2556 if deterministic { 2557 return xxx_messageInfo_OperateV1MetaResponse.Marshal(b, m, deterministic) 2558 } else { 2559 b = b[:cap(b)] 2560 n, err := m.MarshalToSizedBuffer(b) 2561 if err != nil { 2562 return nil, err 2563 } 2564 return b[:n], nil 2565 } 2566 } 2567 func (m *OperateV1MetaResponse) XXX_Merge(src proto.Message) { 2568 xxx_messageInfo_OperateV1MetaResponse.Merge(m, src) 2569 } 2570 func (m *OperateV1MetaResponse) XXX_Size() int { 2571 return m.Size() 2572 } 2573 func (m *OperateV1MetaResponse) XXX_DiscardUnknown() { 2574 xxx_messageInfo_OperateV1MetaResponse.DiscardUnknown(m) 2575 } 2576 2577 var xxx_messageInfo_OperateV1MetaResponse proto.InternalMessageInfo 2578 2579 func (m *OperateV1MetaResponse) GetResult() bool { 2580 if m != nil { 2581 return m.Result 2582 } 2583 return false 2584 } 2585 2586 func (m *OperateV1MetaResponse) GetMsg() string { 2587 if m != nil { 2588 return m.Msg 2589 } 2590 return "" 2591 } 2592 2593 func (m *OperateV1MetaResponse) GetMeta() map[string]*V1SubTaskMeta { 2594 if m != nil { 2595 return m.Meta 2596 } 2597 return nil 2598 } 2599 2600 type HandleWorkerErrorRequest struct { 2601 Op ErrorOp `protobuf:"varint,1,opt,name=op,proto3,enum=pb.ErrorOp" json:"op,omitempty"` 2602 Task string `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"` 2603 BinlogPos string `protobuf:"bytes,3,opt,name=binlogPos,proto3" json:"binlogPos,omitempty"` 2604 Sqls []string `protobuf:"bytes,4,rep,name=sqls,proto3" json:"sqls,omitempty"` 2605 } 2606 2607 func (m *HandleWorkerErrorRequest) Reset() { *m = HandleWorkerErrorRequest{} } 2608 func (m *HandleWorkerErrorRequest) String() string { return proto.CompactTextString(m) } 2609 func (*HandleWorkerErrorRequest) ProtoMessage() {} 2610 func (*HandleWorkerErrorRequest) Descriptor() ([]byte, []int) { 2611 return fileDescriptor_51a1b9e17fd67b10, []int{28} 2612 } 2613 func (m *HandleWorkerErrorRequest) XXX_Unmarshal(b []byte) error { 2614 return m.Unmarshal(b) 2615 } 2616 func (m *HandleWorkerErrorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2617 if deterministic { 2618 return xxx_messageInfo_HandleWorkerErrorRequest.Marshal(b, m, deterministic) 2619 } else { 2620 b = b[:cap(b)] 2621 n, err := m.MarshalToSizedBuffer(b) 2622 if err != nil { 2623 return nil, err 2624 } 2625 return b[:n], nil 2626 } 2627 } 2628 func (m *HandleWorkerErrorRequest) XXX_Merge(src proto.Message) { 2629 xxx_messageInfo_HandleWorkerErrorRequest.Merge(m, src) 2630 } 2631 func (m *HandleWorkerErrorRequest) XXX_Size() int { 2632 return m.Size() 2633 } 2634 func (m *HandleWorkerErrorRequest) XXX_DiscardUnknown() { 2635 xxx_messageInfo_HandleWorkerErrorRequest.DiscardUnknown(m) 2636 } 2637 2638 var xxx_messageInfo_HandleWorkerErrorRequest proto.InternalMessageInfo 2639 2640 func (m *HandleWorkerErrorRequest) GetOp() ErrorOp { 2641 if m != nil { 2642 return m.Op 2643 } 2644 return ErrorOp_InvalidErrorOp 2645 } 2646 2647 func (m *HandleWorkerErrorRequest) GetTask() string { 2648 if m != nil { 2649 return m.Task 2650 } 2651 return "" 2652 } 2653 2654 func (m *HandleWorkerErrorRequest) GetBinlogPos() string { 2655 if m != nil { 2656 return m.BinlogPos 2657 } 2658 return "" 2659 } 2660 2661 func (m *HandleWorkerErrorRequest) GetSqls() []string { 2662 if m != nil { 2663 return m.Sqls 2664 } 2665 return nil 2666 } 2667 2668 type GetWorkerCfgRequest struct { 2669 } 2670 2671 func (m *GetWorkerCfgRequest) Reset() { *m = GetWorkerCfgRequest{} } 2672 func (m *GetWorkerCfgRequest) String() string { return proto.CompactTextString(m) } 2673 func (*GetWorkerCfgRequest) ProtoMessage() {} 2674 func (*GetWorkerCfgRequest) Descriptor() ([]byte, []int) { 2675 return fileDescriptor_51a1b9e17fd67b10, []int{29} 2676 } 2677 func (m *GetWorkerCfgRequest) XXX_Unmarshal(b []byte) error { 2678 return m.Unmarshal(b) 2679 } 2680 func (m *GetWorkerCfgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2681 if deterministic { 2682 return xxx_messageInfo_GetWorkerCfgRequest.Marshal(b, m, deterministic) 2683 } else { 2684 b = b[:cap(b)] 2685 n, err := m.MarshalToSizedBuffer(b) 2686 if err != nil { 2687 return nil, err 2688 } 2689 return b[:n], nil 2690 } 2691 } 2692 func (m *GetWorkerCfgRequest) XXX_Merge(src proto.Message) { 2693 xxx_messageInfo_GetWorkerCfgRequest.Merge(m, src) 2694 } 2695 func (m *GetWorkerCfgRequest) XXX_Size() int { 2696 return m.Size() 2697 } 2698 func (m *GetWorkerCfgRequest) XXX_DiscardUnknown() { 2699 xxx_messageInfo_GetWorkerCfgRequest.DiscardUnknown(m) 2700 } 2701 2702 var xxx_messageInfo_GetWorkerCfgRequest proto.InternalMessageInfo 2703 2704 type GetWorkerCfgResponse struct { 2705 Cfg string `protobuf:"bytes,1,opt,name=cfg,proto3" json:"cfg,omitempty"` 2706 } 2707 2708 func (m *GetWorkerCfgResponse) Reset() { *m = GetWorkerCfgResponse{} } 2709 func (m *GetWorkerCfgResponse) String() string { return proto.CompactTextString(m) } 2710 func (*GetWorkerCfgResponse) ProtoMessage() {} 2711 func (*GetWorkerCfgResponse) Descriptor() ([]byte, []int) { 2712 return fileDescriptor_51a1b9e17fd67b10, []int{30} 2713 } 2714 func (m *GetWorkerCfgResponse) XXX_Unmarshal(b []byte) error { 2715 return m.Unmarshal(b) 2716 } 2717 func (m *GetWorkerCfgResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2718 if deterministic { 2719 return xxx_messageInfo_GetWorkerCfgResponse.Marshal(b, m, deterministic) 2720 } else { 2721 b = b[:cap(b)] 2722 n, err := m.MarshalToSizedBuffer(b) 2723 if err != nil { 2724 return nil, err 2725 } 2726 return b[:n], nil 2727 } 2728 } 2729 func (m *GetWorkerCfgResponse) XXX_Merge(src proto.Message) { 2730 xxx_messageInfo_GetWorkerCfgResponse.Merge(m, src) 2731 } 2732 func (m *GetWorkerCfgResponse) XXX_Size() int { 2733 return m.Size() 2734 } 2735 func (m *GetWorkerCfgResponse) XXX_DiscardUnknown() { 2736 xxx_messageInfo_GetWorkerCfgResponse.DiscardUnknown(m) 2737 } 2738 2739 var xxx_messageInfo_GetWorkerCfgResponse proto.InternalMessageInfo 2740 2741 func (m *GetWorkerCfgResponse) GetCfg() string { 2742 if m != nil { 2743 return m.Cfg 2744 } 2745 return "" 2746 } 2747 2748 type CheckSubtasksCanUpdateRequest struct { 2749 SubtaskCfgTomlString string `protobuf:"bytes,1,opt,name=subtaskCfgTomlString,proto3" json:"subtaskCfgTomlString,omitempty"` 2750 } 2751 2752 func (m *CheckSubtasksCanUpdateRequest) Reset() { *m = CheckSubtasksCanUpdateRequest{} } 2753 func (m *CheckSubtasksCanUpdateRequest) String() string { return proto.CompactTextString(m) } 2754 func (*CheckSubtasksCanUpdateRequest) ProtoMessage() {} 2755 func (*CheckSubtasksCanUpdateRequest) Descriptor() ([]byte, []int) { 2756 return fileDescriptor_51a1b9e17fd67b10, []int{31} 2757 } 2758 func (m *CheckSubtasksCanUpdateRequest) XXX_Unmarshal(b []byte) error { 2759 return m.Unmarshal(b) 2760 } 2761 func (m *CheckSubtasksCanUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2762 if deterministic { 2763 return xxx_messageInfo_CheckSubtasksCanUpdateRequest.Marshal(b, m, deterministic) 2764 } else { 2765 b = b[:cap(b)] 2766 n, err := m.MarshalToSizedBuffer(b) 2767 if err != nil { 2768 return nil, err 2769 } 2770 return b[:n], nil 2771 } 2772 } 2773 func (m *CheckSubtasksCanUpdateRequest) XXX_Merge(src proto.Message) { 2774 xxx_messageInfo_CheckSubtasksCanUpdateRequest.Merge(m, src) 2775 } 2776 func (m *CheckSubtasksCanUpdateRequest) XXX_Size() int { 2777 return m.Size() 2778 } 2779 func (m *CheckSubtasksCanUpdateRequest) XXX_DiscardUnknown() { 2780 xxx_messageInfo_CheckSubtasksCanUpdateRequest.DiscardUnknown(m) 2781 } 2782 2783 var xxx_messageInfo_CheckSubtasksCanUpdateRequest proto.InternalMessageInfo 2784 2785 func (m *CheckSubtasksCanUpdateRequest) GetSubtaskCfgTomlString() string { 2786 if m != nil { 2787 return m.SubtaskCfgTomlString 2788 } 2789 return "" 2790 } 2791 2792 type CheckSubtasksCanUpdateResponse struct { 2793 Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` 2794 Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` 2795 } 2796 2797 func (m *CheckSubtasksCanUpdateResponse) Reset() { *m = CheckSubtasksCanUpdateResponse{} } 2798 func (m *CheckSubtasksCanUpdateResponse) String() string { return proto.CompactTextString(m) } 2799 func (*CheckSubtasksCanUpdateResponse) ProtoMessage() {} 2800 func (*CheckSubtasksCanUpdateResponse) Descriptor() ([]byte, []int) { 2801 return fileDescriptor_51a1b9e17fd67b10, []int{32} 2802 } 2803 func (m *CheckSubtasksCanUpdateResponse) XXX_Unmarshal(b []byte) error { 2804 return m.Unmarshal(b) 2805 } 2806 func (m *CheckSubtasksCanUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2807 if deterministic { 2808 return xxx_messageInfo_CheckSubtasksCanUpdateResponse.Marshal(b, m, deterministic) 2809 } else { 2810 b = b[:cap(b)] 2811 n, err := m.MarshalToSizedBuffer(b) 2812 if err != nil { 2813 return nil, err 2814 } 2815 return b[:n], nil 2816 } 2817 } 2818 func (m *CheckSubtasksCanUpdateResponse) XXX_Merge(src proto.Message) { 2819 xxx_messageInfo_CheckSubtasksCanUpdateResponse.Merge(m, src) 2820 } 2821 func (m *CheckSubtasksCanUpdateResponse) XXX_Size() int { 2822 return m.Size() 2823 } 2824 func (m *CheckSubtasksCanUpdateResponse) XXX_DiscardUnknown() { 2825 xxx_messageInfo_CheckSubtasksCanUpdateResponse.DiscardUnknown(m) 2826 } 2827 2828 var xxx_messageInfo_CheckSubtasksCanUpdateResponse proto.InternalMessageInfo 2829 2830 func (m *CheckSubtasksCanUpdateResponse) GetSuccess() bool { 2831 if m != nil { 2832 return m.Success 2833 } 2834 return false 2835 } 2836 2837 func (m *CheckSubtasksCanUpdateResponse) GetMsg() string { 2838 if m != nil { 2839 return m.Msg 2840 } 2841 return "" 2842 } 2843 2844 type GetValidationStatusRequest struct { 2845 TaskName string `protobuf:"bytes,1,opt,name=taskName,proto3" json:"taskName,omitempty"` 2846 FilterStatus Stage `protobuf:"varint,2,opt,name=filterStatus,proto3,enum=pb.Stage" json:"filterStatus,omitempty"` 2847 } 2848 2849 func (m *GetValidationStatusRequest) Reset() { *m = GetValidationStatusRequest{} } 2850 func (m *GetValidationStatusRequest) String() string { return proto.CompactTextString(m) } 2851 func (*GetValidationStatusRequest) ProtoMessage() {} 2852 func (*GetValidationStatusRequest) Descriptor() ([]byte, []int) { 2853 return fileDescriptor_51a1b9e17fd67b10, []int{33} 2854 } 2855 func (m *GetValidationStatusRequest) XXX_Unmarshal(b []byte) error { 2856 return m.Unmarshal(b) 2857 } 2858 func (m *GetValidationStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2859 if deterministic { 2860 return xxx_messageInfo_GetValidationStatusRequest.Marshal(b, m, deterministic) 2861 } else { 2862 b = b[:cap(b)] 2863 n, err := m.MarshalToSizedBuffer(b) 2864 if err != nil { 2865 return nil, err 2866 } 2867 return b[:n], nil 2868 } 2869 } 2870 func (m *GetValidationStatusRequest) XXX_Merge(src proto.Message) { 2871 xxx_messageInfo_GetValidationStatusRequest.Merge(m, src) 2872 } 2873 func (m *GetValidationStatusRequest) XXX_Size() int { 2874 return m.Size() 2875 } 2876 func (m *GetValidationStatusRequest) XXX_DiscardUnknown() { 2877 xxx_messageInfo_GetValidationStatusRequest.DiscardUnknown(m) 2878 } 2879 2880 var xxx_messageInfo_GetValidationStatusRequest proto.InternalMessageInfo 2881 2882 func (m *GetValidationStatusRequest) GetTaskName() string { 2883 if m != nil { 2884 return m.TaskName 2885 } 2886 return "" 2887 } 2888 2889 func (m *GetValidationStatusRequest) GetFilterStatus() Stage { 2890 if m != nil { 2891 return m.FilterStatus 2892 } 2893 return Stage_InvalidStage 2894 } 2895 2896 type ValidationStatus struct { 2897 Task string `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` 2898 Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` 2899 Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"` 2900 Stage Stage `protobuf:"varint,4,opt,name=stage,proto3,enum=pb.Stage" json:"stage,omitempty"` 2901 ValidatorBinlog string `protobuf:"bytes,5,opt,name=validatorBinlog,proto3" json:"validatorBinlog,omitempty"` 2902 ValidatorBinlogGtid string `protobuf:"bytes,6,opt,name=validatorBinlogGtid,proto3" json:"validatorBinlogGtid,omitempty"` 2903 Result *ProcessResult `protobuf:"bytes,7,opt,name=result,proto3" json:"result,omitempty"` 2904 ProcessedRowsStatus string `protobuf:"bytes,8,opt,name=processedRowsStatus,proto3" json:"processedRowsStatus,omitempty"` 2905 PendingRowsStatus string `protobuf:"bytes,9,opt,name=pendingRowsStatus,proto3" json:"pendingRowsStatus,omitempty"` 2906 ErrorRowsStatus string `protobuf:"bytes,10,opt,name=errorRowsStatus,proto3" json:"errorRowsStatus,omitempty"` 2907 CutoverBinlogPos string `protobuf:"bytes,11,opt,name=cutoverBinlogPos,proto3" json:"cutoverBinlogPos,omitempty"` 2908 CutoverBinlogGtid string `protobuf:"bytes,12,opt,name=cutoverBinlogGtid,proto3" json:"cutoverBinlogGtid,omitempty"` 2909 } 2910 2911 func (m *ValidationStatus) Reset() { *m = ValidationStatus{} } 2912 func (m *ValidationStatus) String() string { return proto.CompactTextString(m) } 2913 func (*ValidationStatus) ProtoMessage() {} 2914 func (*ValidationStatus) Descriptor() ([]byte, []int) { 2915 return fileDescriptor_51a1b9e17fd67b10, []int{34} 2916 } 2917 func (m *ValidationStatus) XXX_Unmarshal(b []byte) error { 2918 return m.Unmarshal(b) 2919 } 2920 func (m *ValidationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2921 if deterministic { 2922 return xxx_messageInfo_ValidationStatus.Marshal(b, m, deterministic) 2923 } else { 2924 b = b[:cap(b)] 2925 n, err := m.MarshalToSizedBuffer(b) 2926 if err != nil { 2927 return nil, err 2928 } 2929 return b[:n], nil 2930 } 2931 } 2932 func (m *ValidationStatus) XXX_Merge(src proto.Message) { 2933 xxx_messageInfo_ValidationStatus.Merge(m, src) 2934 } 2935 func (m *ValidationStatus) XXX_Size() int { 2936 return m.Size() 2937 } 2938 func (m *ValidationStatus) XXX_DiscardUnknown() { 2939 xxx_messageInfo_ValidationStatus.DiscardUnknown(m) 2940 } 2941 2942 var xxx_messageInfo_ValidationStatus proto.InternalMessageInfo 2943 2944 func (m *ValidationStatus) GetTask() string { 2945 if m != nil { 2946 return m.Task 2947 } 2948 return "" 2949 } 2950 2951 func (m *ValidationStatus) GetSource() string { 2952 if m != nil { 2953 return m.Source 2954 } 2955 return "" 2956 } 2957 2958 func (m *ValidationStatus) GetMode() string { 2959 if m != nil { 2960 return m.Mode 2961 } 2962 return "" 2963 } 2964 2965 func (m *ValidationStatus) GetStage() Stage { 2966 if m != nil { 2967 return m.Stage 2968 } 2969 return Stage_InvalidStage 2970 } 2971 2972 func (m *ValidationStatus) GetValidatorBinlog() string { 2973 if m != nil { 2974 return m.ValidatorBinlog 2975 } 2976 return "" 2977 } 2978 2979 func (m *ValidationStatus) GetValidatorBinlogGtid() string { 2980 if m != nil { 2981 return m.ValidatorBinlogGtid 2982 } 2983 return "" 2984 } 2985 2986 func (m *ValidationStatus) GetResult() *ProcessResult { 2987 if m != nil { 2988 return m.Result 2989 } 2990 return nil 2991 } 2992 2993 func (m *ValidationStatus) GetProcessedRowsStatus() string { 2994 if m != nil { 2995 return m.ProcessedRowsStatus 2996 } 2997 return "" 2998 } 2999 3000 func (m *ValidationStatus) GetPendingRowsStatus() string { 3001 if m != nil { 3002 return m.PendingRowsStatus 3003 } 3004 return "" 3005 } 3006 3007 func (m *ValidationStatus) GetErrorRowsStatus() string { 3008 if m != nil { 3009 return m.ErrorRowsStatus 3010 } 3011 return "" 3012 } 3013 3014 func (m *ValidationStatus) GetCutoverBinlogPos() string { 3015 if m != nil { 3016 return m.CutoverBinlogPos 3017 } 3018 return "" 3019 } 3020 3021 func (m *ValidationStatus) GetCutoverBinlogGtid() string { 3022 if m != nil { 3023 return m.CutoverBinlogGtid 3024 } 3025 return "" 3026 } 3027 3028 type ValidationTableStatus struct { 3029 Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` 3030 SrcTable string `protobuf:"bytes,2,opt,name=srcTable,proto3" json:"srcTable,omitempty"` 3031 DstTable string `protobuf:"bytes,3,opt,name=dstTable,proto3" json:"dstTable,omitempty"` 3032 Stage Stage `protobuf:"varint,4,opt,name=stage,proto3,enum=pb.Stage" json:"stage,omitempty"` 3033 Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` 3034 } 3035 3036 func (m *ValidationTableStatus) Reset() { *m = ValidationTableStatus{} } 3037 func (m *ValidationTableStatus) String() string { return proto.CompactTextString(m) } 3038 func (*ValidationTableStatus) ProtoMessage() {} 3039 func (*ValidationTableStatus) Descriptor() ([]byte, []int) { 3040 return fileDescriptor_51a1b9e17fd67b10, []int{35} 3041 } 3042 func (m *ValidationTableStatus) XXX_Unmarshal(b []byte) error { 3043 return m.Unmarshal(b) 3044 } 3045 func (m *ValidationTableStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3046 if deterministic { 3047 return xxx_messageInfo_ValidationTableStatus.Marshal(b, m, deterministic) 3048 } else { 3049 b = b[:cap(b)] 3050 n, err := m.MarshalToSizedBuffer(b) 3051 if err != nil { 3052 return nil, err 3053 } 3054 return b[:n], nil 3055 } 3056 } 3057 func (m *ValidationTableStatus) XXX_Merge(src proto.Message) { 3058 xxx_messageInfo_ValidationTableStatus.Merge(m, src) 3059 } 3060 func (m *ValidationTableStatus) XXX_Size() int { 3061 return m.Size() 3062 } 3063 func (m *ValidationTableStatus) XXX_DiscardUnknown() { 3064 xxx_messageInfo_ValidationTableStatus.DiscardUnknown(m) 3065 } 3066 3067 var xxx_messageInfo_ValidationTableStatus proto.InternalMessageInfo 3068 3069 func (m *ValidationTableStatus) GetSource() string { 3070 if m != nil { 3071 return m.Source 3072 } 3073 return "" 3074 } 3075 3076 func (m *ValidationTableStatus) GetSrcTable() string { 3077 if m != nil { 3078 return m.SrcTable 3079 } 3080 return "" 3081 } 3082 3083 func (m *ValidationTableStatus) GetDstTable() string { 3084 if m != nil { 3085 return m.DstTable 3086 } 3087 return "" 3088 } 3089 3090 func (m *ValidationTableStatus) GetStage() Stage { 3091 if m != nil { 3092 return m.Stage 3093 } 3094 return Stage_InvalidStage 3095 } 3096 3097 func (m *ValidationTableStatus) GetMessage() string { 3098 if m != nil { 3099 return m.Message 3100 } 3101 return "" 3102 } 3103 3104 type GetValidationStatusResponse struct { 3105 Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` 3106 Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` 3107 Validators []*ValidationStatus `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators,omitempty"` 3108 TableStatuses []*ValidationTableStatus `protobuf:"bytes,4,rep,name=tableStatuses,proto3" json:"tableStatuses,omitempty"` 3109 } 3110 3111 func (m *GetValidationStatusResponse) Reset() { *m = GetValidationStatusResponse{} } 3112 func (m *GetValidationStatusResponse) String() string { return proto.CompactTextString(m) } 3113 func (*GetValidationStatusResponse) ProtoMessage() {} 3114 func (*GetValidationStatusResponse) Descriptor() ([]byte, []int) { 3115 return fileDescriptor_51a1b9e17fd67b10, []int{36} 3116 } 3117 func (m *GetValidationStatusResponse) XXX_Unmarshal(b []byte) error { 3118 return m.Unmarshal(b) 3119 } 3120 func (m *GetValidationStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3121 if deterministic { 3122 return xxx_messageInfo_GetValidationStatusResponse.Marshal(b, m, deterministic) 3123 } else { 3124 b = b[:cap(b)] 3125 n, err := m.MarshalToSizedBuffer(b) 3126 if err != nil { 3127 return nil, err 3128 } 3129 return b[:n], nil 3130 } 3131 } 3132 func (m *GetValidationStatusResponse) XXX_Merge(src proto.Message) { 3133 xxx_messageInfo_GetValidationStatusResponse.Merge(m, src) 3134 } 3135 func (m *GetValidationStatusResponse) XXX_Size() int { 3136 return m.Size() 3137 } 3138 func (m *GetValidationStatusResponse) XXX_DiscardUnknown() { 3139 xxx_messageInfo_GetValidationStatusResponse.DiscardUnknown(m) 3140 } 3141 3142 var xxx_messageInfo_GetValidationStatusResponse proto.InternalMessageInfo 3143 3144 func (m *GetValidationStatusResponse) GetResult() bool { 3145 if m != nil { 3146 return m.Result 3147 } 3148 return false 3149 } 3150 3151 func (m *GetValidationStatusResponse) GetMsg() string { 3152 if m != nil { 3153 return m.Msg 3154 } 3155 return "" 3156 } 3157 3158 func (m *GetValidationStatusResponse) GetValidators() []*ValidationStatus { 3159 if m != nil { 3160 return m.Validators 3161 } 3162 return nil 3163 } 3164 3165 func (m *GetValidationStatusResponse) GetTableStatuses() []*ValidationTableStatus { 3166 if m != nil { 3167 return m.TableStatuses 3168 } 3169 return nil 3170 } 3171 3172 type GetValidationErrorRequest struct { 3173 ErrState ValidateErrorState `protobuf:"varint,1,opt,name=errState,proto3,enum=pb.ValidateErrorState" json:"errState,omitempty"` 3174 TaskName string `protobuf:"bytes,2,opt,name=taskName,proto3" json:"taskName,omitempty"` 3175 } 3176 3177 func (m *GetValidationErrorRequest) Reset() { *m = GetValidationErrorRequest{} } 3178 func (m *GetValidationErrorRequest) String() string { return proto.CompactTextString(m) } 3179 func (*GetValidationErrorRequest) ProtoMessage() {} 3180 func (*GetValidationErrorRequest) Descriptor() ([]byte, []int) { 3181 return fileDescriptor_51a1b9e17fd67b10, []int{37} 3182 } 3183 func (m *GetValidationErrorRequest) XXX_Unmarshal(b []byte) error { 3184 return m.Unmarshal(b) 3185 } 3186 func (m *GetValidationErrorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3187 if deterministic { 3188 return xxx_messageInfo_GetValidationErrorRequest.Marshal(b, m, deterministic) 3189 } else { 3190 b = b[:cap(b)] 3191 n, err := m.MarshalToSizedBuffer(b) 3192 if err != nil { 3193 return nil, err 3194 } 3195 return b[:n], nil 3196 } 3197 } 3198 func (m *GetValidationErrorRequest) XXX_Merge(src proto.Message) { 3199 xxx_messageInfo_GetValidationErrorRequest.Merge(m, src) 3200 } 3201 func (m *GetValidationErrorRequest) XXX_Size() int { 3202 return m.Size() 3203 } 3204 func (m *GetValidationErrorRequest) XXX_DiscardUnknown() { 3205 xxx_messageInfo_GetValidationErrorRequest.DiscardUnknown(m) 3206 } 3207 3208 var xxx_messageInfo_GetValidationErrorRequest proto.InternalMessageInfo 3209 3210 func (m *GetValidationErrorRequest) GetErrState() ValidateErrorState { 3211 if m != nil { 3212 return m.ErrState 3213 } 3214 return ValidateErrorState_InvalidErr 3215 } 3216 3217 func (m *GetValidationErrorRequest) GetTaskName() string { 3218 if m != nil { 3219 return m.TaskName 3220 } 3221 return "" 3222 } 3223 3224 type ValidationError struct { 3225 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 3226 Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` 3227 SrcTable string `protobuf:"bytes,3,opt,name=srcTable,proto3" json:"srcTable,omitempty"` 3228 SrcData string `protobuf:"bytes,4,opt,name=srcData,proto3" json:"srcData,omitempty"` 3229 DstTable string `protobuf:"bytes,5,opt,name=dstTable,proto3" json:"dstTable,omitempty"` 3230 DstData string `protobuf:"bytes,6,opt,name=dstData,proto3" json:"dstData,omitempty"` 3231 ErrorType string `protobuf:"bytes,7,opt,name=errorType,proto3" json:"errorType,omitempty"` 3232 Status ValidateErrorState `protobuf:"varint,8,opt,name=status,proto3,enum=pb.ValidateErrorState" json:"status,omitempty"` 3233 Time string `protobuf:"bytes,9,opt,name=time,proto3" json:"time,omitempty"` 3234 Message string `protobuf:"bytes,10,opt,name=message,proto3" json:"message,omitempty"` 3235 } 3236 3237 func (m *ValidationError) Reset() { *m = ValidationError{} } 3238 func (m *ValidationError) String() string { return proto.CompactTextString(m) } 3239 func (*ValidationError) ProtoMessage() {} 3240 func (*ValidationError) Descriptor() ([]byte, []int) { 3241 return fileDescriptor_51a1b9e17fd67b10, []int{38} 3242 } 3243 func (m *ValidationError) XXX_Unmarshal(b []byte) error { 3244 return m.Unmarshal(b) 3245 } 3246 func (m *ValidationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3247 if deterministic { 3248 return xxx_messageInfo_ValidationError.Marshal(b, m, deterministic) 3249 } else { 3250 b = b[:cap(b)] 3251 n, err := m.MarshalToSizedBuffer(b) 3252 if err != nil { 3253 return nil, err 3254 } 3255 return b[:n], nil 3256 } 3257 } 3258 func (m *ValidationError) XXX_Merge(src proto.Message) { 3259 xxx_messageInfo_ValidationError.Merge(m, src) 3260 } 3261 func (m *ValidationError) XXX_Size() int { 3262 return m.Size() 3263 } 3264 func (m *ValidationError) XXX_DiscardUnknown() { 3265 xxx_messageInfo_ValidationError.DiscardUnknown(m) 3266 } 3267 3268 var xxx_messageInfo_ValidationError proto.InternalMessageInfo 3269 3270 func (m *ValidationError) GetId() string { 3271 if m != nil { 3272 return m.Id 3273 } 3274 return "" 3275 } 3276 3277 func (m *ValidationError) GetSource() string { 3278 if m != nil { 3279 return m.Source 3280 } 3281 return "" 3282 } 3283 3284 func (m *ValidationError) GetSrcTable() string { 3285 if m != nil { 3286 return m.SrcTable 3287 } 3288 return "" 3289 } 3290 3291 func (m *ValidationError) GetSrcData() string { 3292 if m != nil { 3293 return m.SrcData 3294 } 3295 return "" 3296 } 3297 3298 func (m *ValidationError) GetDstTable() string { 3299 if m != nil { 3300 return m.DstTable 3301 } 3302 return "" 3303 } 3304 3305 func (m *ValidationError) GetDstData() string { 3306 if m != nil { 3307 return m.DstData 3308 } 3309 return "" 3310 } 3311 3312 func (m *ValidationError) GetErrorType() string { 3313 if m != nil { 3314 return m.ErrorType 3315 } 3316 return "" 3317 } 3318 3319 func (m *ValidationError) GetStatus() ValidateErrorState { 3320 if m != nil { 3321 return m.Status 3322 } 3323 return ValidateErrorState_InvalidErr 3324 } 3325 3326 func (m *ValidationError) GetTime() string { 3327 if m != nil { 3328 return m.Time 3329 } 3330 return "" 3331 } 3332 3333 func (m *ValidationError) GetMessage() string { 3334 if m != nil { 3335 return m.Message 3336 } 3337 return "" 3338 } 3339 3340 type GetValidationErrorResponse struct { 3341 Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` 3342 Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` 3343 Error []*ValidationError `protobuf:"bytes,3,rep,name=error,proto3" json:"error,omitempty"` 3344 } 3345 3346 func (m *GetValidationErrorResponse) Reset() { *m = GetValidationErrorResponse{} } 3347 func (m *GetValidationErrorResponse) String() string { return proto.CompactTextString(m) } 3348 func (*GetValidationErrorResponse) ProtoMessage() {} 3349 func (*GetValidationErrorResponse) Descriptor() ([]byte, []int) { 3350 return fileDescriptor_51a1b9e17fd67b10, []int{39} 3351 } 3352 func (m *GetValidationErrorResponse) XXX_Unmarshal(b []byte) error { 3353 return m.Unmarshal(b) 3354 } 3355 func (m *GetValidationErrorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3356 if deterministic { 3357 return xxx_messageInfo_GetValidationErrorResponse.Marshal(b, m, deterministic) 3358 } else { 3359 b = b[:cap(b)] 3360 n, err := m.MarshalToSizedBuffer(b) 3361 if err != nil { 3362 return nil, err 3363 } 3364 return b[:n], nil 3365 } 3366 } 3367 func (m *GetValidationErrorResponse) XXX_Merge(src proto.Message) { 3368 xxx_messageInfo_GetValidationErrorResponse.Merge(m, src) 3369 } 3370 func (m *GetValidationErrorResponse) XXX_Size() int { 3371 return m.Size() 3372 } 3373 func (m *GetValidationErrorResponse) XXX_DiscardUnknown() { 3374 xxx_messageInfo_GetValidationErrorResponse.DiscardUnknown(m) 3375 } 3376 3377 var xxx_messageInfo_GetValidationErrorResponse proto.InternalMessageInfo 3378 3379 func (m *GetValidationErrorResponse) GetResult() bool { 3380 if m != nil { 3381 return m.Result 3382 } 3383 return false 3384 } 3385 3386 func (m *GetValidationErrorResponse) GetMsg() string { 3387 if m != nil { 3388 return m.Msg 3389 } 3390 return "" 3391 } 3392 3393 func (m *GetValidationErrorResponse) GetError() []*ValidationError { 3394 if m != nil { 3395 return m.Error 3396 } 3397 return nil 3398 } 3399 3400 type OperateValidationErrorRequest struct { 3401 Op ValidationErrOp `protobuf:"varint,1,opt,name=op,proto3,enum=pb.ValidationErrOp" json:"op,omitempty"` 3402 IsAllError bool `protobuf:"varint,2,opt,name=isAllError,proto3" json:"isAllError,omitempty"` 3403 TaskName string `protobuf:"bytes,3,opt,name=taskName,proto3" json:"taskName,omitempty"` 3404 ErrId uint64 `protobuf:"varint,4,opt,name=errId,proto3" json:"errId,omitempty"` 3405 } 3406 3407 func (m *OperateValidationErrorRequest) Reset() { *m = OperateValidationErrorRequest{} } 3408 func (m *OperateValidationErrorRequest) String() string { return proto.CompactTextString(m) } 3409 func (*OperateValidationErrorRequest) ProtoMessage() {} 3410 func (*OperateValidationErrorRequest) Descriptor() ([]byte, []int) { 3411 return fileDescriptor_51a1b9e17fd67b10, []int{40} 3412 } 3413 func (m *OperateValidationErrorRequest) XXX_Unmarshal(b []byte) error { 3414 return m.Unmarshal(b) 3415 } 3416 func (m *OperateValidationErrorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3417 if deterministic { 3418 return xxx_messageInfo_OperateValidationErrorRequest.Marshal(b, m, deterministic) 3419 } else { 3420 b = b[:cap(b)] 3421 n, err := m.MarshalToSizedBuffer(b) 3422 if err != nil { 3423 return nil, err 3424 } 3425 return b[:n], nil 3426 } 3427 } 3428 func (m *OperateValidationErrorRequest) XXX_Merge(src proto.Message) { 3429 xxx_messageInfo_OperateValidationErrorRequest.Merge(m, src) 3430 } 3431 func (m *OperateValidationErrorRequest) XXX_Size() int { 3432 return m.Size() 3433 } 3434 func (m *OperateValidationErrorRequest) XXX_DiscardUnknown() { 3435 xxx_messageInfo_OperateValidationErrorRequest.DiscardUnknown(m) 3436 } 3437 3438 var xxx_messageInfo_OperateValidationErrorRequest proto.InternalMessageInfo 3439 3440 func (m *OperateValidationErrorRequest) GetOp() ValidationErrOp { 3441 if m != nil { 3442 return m.Op 3443 } 3444 return ValidationErrOp_InvalidErrOp 3445 } 3446 3447 func (m *OperateValidationErrorRequest) GetIsAllError() bool { 3448 if m != nil { 3449 return m.IsAllError 3450 } 3451 return false 3452 } 3453 3454 func (m *OperateValidationErrorRequest) GetTaskName() string { 3455 if m != nil { 3456 return m.TaskName 3457 } 3458 return "" 3459 } 3460 3461 func (m *OperateValidationErrorRequest) GetErrId() uint64 { 3462 if m != nil { 3463 return m.ErrId 3464 } 3465 return 0 3466 } 3467 3468 type OperateValidationErrorResponse struct { 3469 Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` 3470 Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` 3471 } 3472 3473 func (m *OperateValidationErrorResponse) Reset() { *m = OperateValidationErrorResponse{} } 3474 func (m *OperateValidationErrorResponse) String() string { return proto.CompactTextString(m) } 3475 func (*OperateValidationErrorResponse) ProtoMessage() {} 3476 func (*OperateValidationErrorResponse) Descriptor() ([]byte, []int) { 3477 return fileDescriptor_51a1b9e17fd67b10, []int{41} 3478 } 3479 func (m *OperateValidationErrorResponse) XXX_Unmarshal(b []byte) error { 3480 return m.Unmarshal(b) 3481 } 3482 func (m *OperateValidationErrorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3483 if deterministic { 3484 return xxx_messageInfo_OperateValidationErrorResponse.Marshal(b, m, deterministic) 3485 } else { 3486 b = b[:cap(b)] 3487 n, err := m.MarshalToSizedBuffer(b) 3488 if err != nil { 3489 return nil, err 3490 } 3491 return b[:n], nil 3492 } 3493 } 3494 func (m *OperateValidationErrorResponse) XXX_Merge(src proto.Message) { 3495 xxx_messageInfo_OperateValidationErrorResponse.Merge(m, src) 3496 } 3497 func (m *OperateValidationErrorResponse) XXX_Size() int { 3498 return m.Size() 3499 } 3500 func (m *OperateValidationErrorResponse) XXX_DiscardUnknown() { 3501 xxx_messageInfo_OperateValidationErrorResponse.DiscardUnknown(m) 3502 } 3503 3504 var xxx_messageInfo_OperateValidationErrorResponse proto.InternalMessageInfo 3505 3506 func (m *OperateValidationErrorResponse) GetResult() bool { 3507 if m != nil { 3508 return m.Result 3509 } 3510 return false 3511 } 3512 3513 func (m *OperateValidationErrorResponse) GetMsg() string { 3514 if m != nil { 3515 return m.Msg 3516 } 3517 return "" 3518 } 3519 3520 type UpdateValidationWorkerRequest struct { 3521 TaskName string `protobuf:"bytes,1,opt,name=taskName,proto3" json:"taskName,omitempty"` 3522 BinlogPos string `protobuf:"bytes,2,opt,name=binlogPos,proto3" json:"binlogPos,omitempty"` 3523 BinlogGTID string `protobuf:"bytes,3,opt,name=binlogGTID,proto3" json:"binlogGTID,omitempty"` 3524 } 3525 3526 func (m *UpdateValidationWorkerRequest) Reset() { *m = UpdateValidationWorkerRequest{} } 3527 func (m *UpdateValidationWorkerRequest) String() string { return proto.CompactTextString(m) } 3528 func (*UpdateValidationWorkerRequest) ProtoMessage() {} 3529 func (*UpdateValidationWorkerRequest) Descriptor() ([]byte, []int) { 3530 return fileDescriptor_51a1b9e17fd67b10, []int{42} 3531 } 3532 func (m *UpdateValidationWorkerRequest) XXX_Unmarshal(b []byte) error { 3533 return m.Unmarshal(b) 3534 } 3535 func (m *UpdateValidationWorkerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3536 if deterministic { 3537 return xxx_messageInfo_UpdateValidationWorkerRequest.Marshal(b, m, deterministic) 3538 } else { 3539 b = b[:cap(b)] 3540 n, err := m.MarshalToSizedBuffer(b) 3541 if err != nil { 3542 return nil, err 3543 } 3544 return b[:n], nil 3545 } 3546 } 3547 func (m *UpdateValidationWorkerRequest) XXX_Merge(src proto.Message) { 3548 xxx_messageInfo_UpdateValidationWorkerRequest.Merge(m, src) 3549 } 3550 func (m *UpdateValidationWorkerRequest) XXX_Size() int { 3551 return m.Size() 3552 } 3553 func (m *UpdateValidationWorkerRequest) XXX_DiscardUnknown() { 3554 xxx_messageInfo_UpdateValidationWorkerRequest.DiscardUnknown(m) 3555 } 3556 3557 var xxx_messageInfo_UpdateValidationWorkerRequest proto.InternalMessageInfo 3558 3559 func (m *UpdateValidationWorkerRequest) GetTaskName() string { 3560 if m != nil { 3561 return m.TaskName 3562 } 3563 return "" 3564 } 3565 3566 func (m *UpdateValidationWorkerRequest) GetBinlogPos() string { 3567 if m != nil { 3568 return m.BinlogPos 3569 } 3570 return "" 3571 } 3572 3573 func (m *UpdateValidationWorkerRequest) GetBinlogGTID() string { 3574 if m != nil { 3575 return m.BinlogGTID 3576 } 3577 return "" 3578 } 3579 3580 func init() { 3581 proto.RegisterEnum("pb.TaskOp", TaskOp_name, TaskOp_value) 3582 proto.RegisterEnum("pb.Stage", Stage_name, Stage_value) 3583 proto.RegisterEnum("pb.UnitType", UnitType_name, UnitType_value) 3584 proto.RegisterEnum("pb.RelayOp", RelayOp_name, RelayOp_value) 3585 proto.RegisterEnum("pb.SchemaOp", SchemaOp_name, SchemaOp_value) 3586 proto.RegisterEnum("pb.V1MetaOp", V1MetaOp_name, V1MetaOp_value) 3587 proto.RegisterEnum("pb.ErrorOp", ErrorOp_name, ErrorOp_value) 3588 proto.RegisterEnum("pb.ValidatorOp", ValidatorOp_name, ValidatorOp_value) 3589 proto.RegisterEnum("pb.ValidateErrorState", ValidateErrorState_name, ValidateErrorState_value) 3590 proto.RegisterEnum("pb.ValidationErrOp", ValidationErrOp_name, ValidationErrOp_value) 3591 proto.RegisterType((*QueryStatusRequest)(nil), "pb.QueryStatusRequest") 3592 proto.RegisterType((*CommonWorkerResponse)(nil), "pb.CommonWorkerResponse") 3593 proto.RegisterType((*QueryStatusResponse)(nil), "pb.QueryStatusResponse") 3594 proto.RegisterType((*CheckStatus)(nil), "pb.CheckStatus") 3595 proto.RegisterType((*DumpStatus)(nil), "pb.DumpStatus") 3596 proto.RegisterType((*LoadStatus)(nil), "pb.LoadStatus") 3597 proto.RegisterType((*ShardingGroup)(nil), "pb.ShardingGroup") 3598 proto.RegisterType((*SyncStatus)(nil), "pb.SyncStatus") 3599 proto.RegisterType((*SourceStatus)(nil), "pb.SourceStatus") 3600 proto.RegisterType((*RelayStatus)(nil), "pb.RelayStatus") 3601 proto.RegisterType((*SubTaskStatus)(nil), "pb.SubTaskStatus") 3602 proto.RegisterType((*SubTaskStatusList)(nil), "pb.SubTaskStatusList") 3603 proto.RegisterType((*CheckError)(nil), "pb.CheckError") 3604 proto.RegisterType((*DumpError)(nil), "pb.DumpError") 3605 proto.RegisterType((*LoadError)(nil), "pb.LoadError") 3606 proto.RegisterType((*SyncSQLError)(nil), "pb.SyncSQLError") 3607 proto.RegisterType((*SyncError)(nil), "pb.SyncError") 3608 proto.RegisterType((*SourceError)(nil), "pb.SourceError") 3609 proto.RegisterType((*RelayError)(nil), "pb.RelayError") 3610 proto.RegisterType((*SubTaskError)(nil), "pb.SubTaskError") 3611 proto.RegisterType((*SubTaskErrorList)(nil), "pb.SubTaskErrorList") 3612 proto.RegisterType((*ProcessResult)(nil), "pb.ProcessResult") 3613 proto.RegisterType((*ProcessError)(nil), "pb.ProcessError") 3614 proto.RegisterType((*PurgeRelayRequest)(nil), "pb.PurgeRelayRequest") 3615 proto.RegisterType((*OperateWorkerSchemaRequest)(nil), "pb.OperateWorkerSchemaRequest") 3616 proto.RegisterType((*V1SubTaskMeta)(nil), "pb.V1SubTaskMeta") 3617 proto.RegisterType((*OperateV1MetaRequest)(nil), "pb.OperateV1MetaRequest") 3618 proto.RegisterType((*OperateV1MetaResponse)(nil), "pb.OperateV1MetaResponse") 3619 proto.RegisterMapType((map[string]*V1SubTaskMeta)(nil), "pb.OperateV1MetaResponse.MetaEntry") 3620 proto.RegisterType((*HandleWorkerErrorRequest)(nil), "pb.HandleWorkerErrorRequest") 3621 proto.RegisterType((*GetWorkerCfgRequest)(nil), "pb.GetWorkerCfgRequest") 3622 proto.RegisterType((*GetWorkerCfgResponse)(nil), "pb.GetWorkerCfgResponse") 3623 proto.RegisterType((*CheckSubtasksCanUpdateRequest)(nil), "pb.CheckSubtasksCanUpdateRequest") 3624 proto.RegisterType((*CheckSubtasksCanUpdateResponse)(nil), "pb.CheckSubtasksCanUpdateResponse") 3625 proto.RegisterType((*GetValidationStatusRequest)(nil), "pb.GetValidationStatusRequest") 3626 proto.RegisterType((*ValidationStatus)(nil), "pb.ValidationStatus") 3627 proto.RegisterType((*ValidationTableStatus)(nil), "pb.ValidationTableStatus") 3628 proto.RegisterType((*GetValidationStatusResponse)(nil), "pb.GetValidationStatusResponse") 3629 proto.RegisterType((*GetValidationErrorRequest)(nil), "pb.GetValidationErrorRequest") 3630 proto.RegisterType((*ValidationError)(nil), "pb.ValidationError") 3631 proto.RegisterType((*GetValidationErrorResponse)(nil), "pb.GetValidationErrorResponse") 3632 proto.RegisterType((*OperateValidationErrorRequest)(nil), "pb.OperateValidationErrorRequest") 3633 proto.RegisterType((*OperateValidationErrorResponse)(nil), "pb.OperateValidationErrorResponse") 3634 proto.RegisterType((*UpdateValidationWorkerRequest)(nil), "pb.UpdateValidationWorkerRequest") 3635 } 3636 3637 func init() { proto.RegisterFile("dmworker.proto", fileDescriptor_51a1b9e17fd67b10) } 3638 3639 var fileDescriptor_51a1b9e17fd67b10 = []byte{ 3640 // 2947 bytes of a gzipped FileDescriptorProto 3641 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x3a, 0xcd, 0x6f, 0xe5, 0x56, 3642 0xf5, 0xcf, 0xf6, 0xfb, 0x3c, 0xef, 0x25, 0x71, 0xee, 0x64, 0xe6, 0xf7, 0x9a, 0xce, 0xbc, 0xa6, 3643 0x9e, 0xaa, 0xbf, 0x34, 0x2a, 0x51, 0x1b, 0x8a, 0x8a, 0x2a, 0x41, 0xdb, 0x49, 0xa6, 0x99, 0x29, 3644 0x99, 0x66, 0xc6, 0x49, 0x87, 0x15, 0x12, 0x8e, 0xdf, 0xcd, 0x8b, 0x89, 0x9f, 0xed, 0xb1, 0xfd, 3645 0x12, 0x65, 0x81, 0xd8, 0xb1, 0x85, 0x0d, 0x48, 0x20, 0x36, 0x20, 0xb1, 0x65, 0xc1, 0x1f, 0xc0, 3646 0x12, 0xba, 0xac, 0x58, 0xb1, 0x42, 0xa8, 0xf3, 0x37, 0xb0, 0x61, 0x81, 0xd0, 0x39, 0xf7, 0x5e, 3647 0xfb, 0xfa, 0x7d, 0x64, 0x3a, 0x48, 0xec, 0x7c, 0x3e, 0xee, 0xb9, 0xc7, 0xe7, 0xfb, 0xf8, 0x3d, 3648 0x58, 0x1e, 0x8e, 0x2f, 0xe3, 0xf4, 0x9c, 0xa7, 0xdb, 0x49, 0x1a, 0xe7, 0x31, 0x33, 0x93, 0x13, 3649 0x67, 0x13, 0xd8, 0x93, 0x09, 0x4f, 0xaf, 0x8e, 0x72, 0x2f, 0x9f, 0x64, 0x2e, 0x7f, 0x36, 0xe1, 3650 0x59, 0xce, 0x18, 0xd4, 0x23, 0x6f, 0xcc, 0xfb, 0xc6, 0x86, 0xb1, 0xd9, 0x71, 0xe9, 0xd9, 0x49, 3651 0x60, 0x6d, 0x37, 0x1e, 0x8f, 0xe3, 0xe8, 0xfb, 0x24, 0xc3, 0xe5, 0x59, 0x12, 0x47, 0x19, 0x67, 3652 0xb7, 0xa0, 0x99, 0xf2, 0x6c, 0x12, 0xe6, 0xc4, 0xdd, 0x76, 0x25, 0xc4, 0x6c, 0xb0, 0xc6, 0xd9, 3653 0xa8, 0x6f, 0x92, 0x08, 0x7c, 0x44, 0xce, 0x2c, 0x9e, 0xa4, 0x3e, 0xef, 0x5b, 0x84, 0x94, 0x10, 3654 0xe2, 0x85, 0x5e, 0xfd, 0xba, 0xc0, 0x0b, 0xc8, 0xf9, 0x83, 0x01, 0x37, 0x2a, 0xca, 0xbd, 0xf4, 3655 0x8d, 0xef, 0x41, 0x4f, 0xdc, 0x21, 0x24, 0xd0, 0xbd, 0xdd, 0x1d, 0x7b, 0x3b, 0x39, 0xd9, 0x3e, 3656 0xd2, 0xf0, 0x6e, 0x85, 0x8b, 0xbd, 0x0f, 0x4b, 0xd9, 0xe4, 0xe4, 0xd8, 0xcb, 0xce, 0xe5, 0xb1, 3657 0xfa, 0x86, 0xb5, 0xd9, 0xdd, 0x59, 0xa5, 0x63, 0x3a, 0xc1, 0xad, 0xf2, 0x39, 0xbf, 0x37, 0xa0, 3658 0xbb, 0x7b, 0xc6, 0x7d, 0x09, 0xa3, 0xa2, 0x89, 0x97, 0x65, 0x7c, 0xa8, 0x14, 0x15, 0x10, 0x5b, 3659 0x83, 0x46, 0x1e, 0xe7, 0x5e, 0x48, 0xaa, 0x36, 0x5c, 0x01, 0xb0, 0x01, 0x40, 0x36, 0xf1, 0x7d, 3660 0x9e, 0x65, 0xa7, 0x93, 0x90, 0x54, 0x6d, 0xb8, 0x1a, 0x06, 0xa5, 0x9d, 0x7a, 0x41, 0xc8, 0x87, 3661 0x64, 0xa6, 0x86, 0x2b, 0x21, 0xd6, 0x87, 0xd6, 0xa5, 0x97, 0x46, 0x41, 0x34, 0xea, 0x37, 0x88, 3662 0xa0, 0x40, 0x3c, 0x31, 0xe4, 0xb9, 0x17, 0x84, 0xfd, 0xe6, 0x86, 0xb1, 0xd9, 0x73, 0x25, 0xe4, 3663 0xfc, 0xdb, 0x00, 0xd8, 0x9b, 0x8c, 0x13, 0xa9, 0xe6, 0x06, 0x74, 0x49, 0x83, 0x63, 0xef, 0x24, 3664 0xe4, 0x19, 0xe9, 0x6a, 0xb9, 0x3a, 0x8a, 0x6d, 0xc2, 0x8a, 0x1f, 0x8f, 0x93, 0x90, 0xe7, 0x7c, 3665 0x28, 0xb9, 0x50, 0x75, 0xc3, 0x9d, 0x46, 0xb3, 0x37, 0x60, 0xe9, 0x34, 0x88, 0x82, 0xec, 0x8c, 3666 0x0f, 0xef, 0x5d, 0xe5, 0x5c, 0x98, 0xdc, 0x70, 0xab, 0x48, 0xe6, 0x40, 0x4f, 0x21, 0xdc, 0xf8, 3667 0x32, 0xa3, 0x17, 0x32, 0xdc, 0x0a, 0x8e, 0xbd, 0x0d, 0xab, 0x3c, 0xcb, 0x83, 0xb1, 0x97, 0xf3, 3668 0x63, 0x54, 0x85, 0x18, 0x1b, 0xc4, 0x38, 0x4b, 0x40, 0xdf, 0x9f, 0x24, 0x19, 0xbd, 0xa7, 0xe5, 3669 0xe2, 0x23, 0x5b, 0x87, 0x76, 0x92, 0xc6, 0xa3, 0x94, 0x67, 0x59, 0xbf, 0x45, 0x21, 0x51, 0xc0, 3670 0xce, 0x17, 0x06, 0xc0, 0x41, 0xec, 0x0d, 0xa5, 0x01, 0x66, 0x94, 0x16, 0x26, 0x98, 0x52, 0x7a, 3671 0x00, 0x40, 0x36, 0x11, 0x2c, 0x26, 0xb1, 0x68, 0x98, 0xca, 0x85, 0x56, 0xf5, 0x42, 0x3c, 0x3b, 3672 0xe6, 0xb9, 0x77, 0x2f, 0x88, 0xc2, 0x78, 0x24, 0xc3, 0x5c, 0xc3, 0xb0, 0x37, 0x61, 0xb9, 0x84, 3673 0xf6, 0x8f, 0x1f, 0xee, 0xd1, 0x9b, 0x76, 0xdc, 0x29, 0xec, 0xec, 0x6b, 0x3a, 0xbf, 0x30, 0x60, 3674 0xe9, 0xe8, 0xcc, 0x4b, 0x87, 0x41, 0x34, 0xda, 0x4f, 0xe3, 0x49, 0x82, 0x5e, 0xcf, 0xbd, 0x74, 3675 0xc4, 0x73, 0x99, 0xbe, 0x12, 0xc2, 0xa4, 0xde, 0xdb, 0x3b, 0x40, 0xcd, 0x2d, 0x4c, 0x6a, 0x7c, 3676 0x16, 0x6f, 0x9e, 0x66, 0xf9, 0x41, 0xec, 0x7b, 0x79, 0x10, 0x47, 0x52, 0xf1, 0x2a, 0x92, 0x12, 3677 0xf7, 0x2a, 0xf2, 0x29, 0xf2, 0x2c, 0x4a, 0x5c, 0x82, 0xf0, 0x8d, 0x27, 0x91, 0xa4, 0x34, 0x88, 3678 0x52, 0xc0, 0xce, 0x3f, 0xeb, 0x00, 0x47, 0x57, 0x91, 0x3f, 0x15, 0x63, 0xf7, 0x2f, 0x78, 0x94, 3679 0x57, 0x63, 0x4c, 0xa0, 0x50, 0x98, 0x08, 0xb9, 0x44, 0x19, 0xb7, 0x80, 0xd9, 0x6d, 0xe8, 0xa4, 3680 0xdc, 0xe7, 0x51, 0x8e, 0x44, 0x8b, 0x88, 0x25, 0x02, 0xa3, 0x69, 0xec, 0x65, 0x39, 0x4f, 0x2b, 3681 0xe6, 0xad, 0xe0, 0xd8, 0x16, 0xd8, 0x3a, 0xbc, 0x9f, 0x07, 0x43, 0x69, 0xe2, 0x19, 0x3c, 0xca, 3682 0xa3, 0x97, 0x50, 0xf2, 0x9a, 0x42, 0x9e, 0x8e, 0x43, 0x79, 0x3a, 0x4c, 0xf2, 0x44, 0x94, 0xcd, 3683 0xe0, 0x51, 0xde, 0x49, 0x18, 0xfb, 0xe7, 0x41, 0x34, 0x22, 0x07, 0xb4, 0xc9, 0x54, 0x15, 0x1c, 3684 0xfb, 0x0e, 0xd8, 0x93, 0x28, 0xe5, 0x59, 0x1c, 0x5e, 0xf0, 0x21, 0xf9, 0x31, 0xeb, 0x77, 0xb4, 3685 0xb2, 0xa3, 0x7b, 0xd8, 0x9d, 0x61, 0xd5, 0x3c, 0x04, 0xa2, 0xd2, 0x48, 0x0f, 0x0d, 0x00, 0x4e, 3686 0x48, 0x91, 0xe3, 0xab, 0x84, 0xf7, 0xbb, 0x22, 0xee, 0x4a, 0x0c, 0x7b, 0x07, 0x6e, 0x64, 0xdc, 3687 0x8f, 0xa3, 0x61, 0x76, 0x8f, 0x9f, 0x05, 0xd1, 0xf0, 0x11, 0xd9, 0xa2, 0xdf, 0x23, 0x13, 0xcf, 3688 0x23, 0x61, 0xc4, 0x90, 0xe2, 0x7b, 0x7b, 0x07, 0x87, 0x97, 0x11, 0x4f, 0xfb, 0x4b, 0x22, 0x62, 3689 0x2a, 0x48, 0x74, 0xb7, 0x1f, 0x47, 0xa7, 0x61, 0xe0, 0xe7, 0x8f, 0xb2, 0x51, 0x7f, 0x99, 0x78, 3690 0x74, 0x14, 0xba, 0x34, 0x2f, 0xd2, 0x7a, 0x45, 0xb8, 0xb4, 0x40, 0x14, 0xc1, 0xe0, 0x26, 0x59, 3691 0xdf, 0xd6, 0x82, 0xc1, 0xd5, 0x83, 0x01, 0x89, 0xab, 0x7a, 0x30, 0xb8, 0x49, 0xe6, 0xfc, 0xc6, 3692 0x80, 0x9e, 0x5e, 0xdb, 0xb5, 0xae, 0x63, 0x2c, 0xe8, 0x3a, 0xa6, 0xde, 0x75, 0xd8, 0x5b, 0x45, 3693 0x77, 0x11, 0xdd, 0x82, 0xec, 0xff, 0x38, 0x8d, 0xb1, 0x0c, 0xbb, 0x44, 0x28, 0x1a, 0xce, 0xbb, 3694 0xd0, 0x4d, 0x79, 0xe8, 0x5d, 0x15, 0x6d, 0x02, 0xf9, 0x57, 0x90, 0xdf, 0x2d, 0xd1, 0xae, 0xce, 3695 0xe3, 0xfc, 0xc5, 0x84, 0xae, 0x46, 0x9c, 0x89, 0x5d, 0xe3, 0x6b, 0xc6, 0xae, 0xb9, 0x20, 0x76, 3696 0x37, 0x94, 0x4a, 0x93, 0x93, 0xbd, 0x20, 0x95, 0xe9, 0xac, 0xa3, 0x0a, 0x8e, 0x4a, 0xb2, 0xe8, 3697 0x28, 0xac, 0xf6, 0x1a, 0xa8, 0xa5, 0xca, 0x34, 0x9a, 0x6d, 0x03, 0x23, 0xd4, 0xae, 0x97, 0xfb, 3698 0x67, 0x9f, 0x27, 0x32, 0x7a, 0x9a, 0x14, 0x82, 0x73, 0x28, 0xec, 0x35, 0x68, 0x64, 0xb9, 0x37, 3699 0xe2, 0x94, 0x2a, 0xcb, 0x3b, 0x1d, 0x0a, 0x6d, 0x44, 0xb8, 0x02, 0xaf, 0x19, 0xbf, 0xfd, 0x02, 3700 0xe3, 0x3b, 0x7f, 0xb4, 0x60, 0xa9, 0xd2, 0x8d, 0xe7, 0x4d, 0x2d, 0xe5, 0x8d, 0xe6, 0x82, 0x1b, 3701 0x37, 0xa0, 0x3e, 0x89, 0x02, 0xe1, 0xec, 0xe5, 0x9d, 0x1e, 0xd2, 0x3f, 0x8f, 0x82, 0x1c, 0xb3, 3702 0xc3, 0x25, 0x8a, 0xa6, 0x53, 0xfd, 0x45, 0x01, 0xf1, 0x0e, 0xdc, 0x28, 0x53, 0x73, 0x6f, 0xef, 3703 0xe0, 0x20, 0xf6, 0xcf, 0x8b, 0x5a, 0x3e, 0x8f, 0xc4, 0x98, 0x98, 0x59, 0xa8, 0xc4, 0x3c, 0xa8, 3704 0x89, 0xa9, 0xe5, 0xff, 0xa1, 0xe1, 0xe3, 0x14, 0x41, 0x56, 0x92, 0x01, 0xa5, 0x8d, 0x15, 0x0f, 3705 0x6a, 0xae, 0xa0, 0xb3, 0x37, 0xa0, 0x3e, 0x9c, 0x8c, 0x13, 0x69, 0xab, 0x65, 0xe4, 0x2b, 0xdb, 3706 0xfa, 0x83, 0x9a, 0x4b, 0x54, 0xe4, 0x0a, 0x63, 0x6f, 0xd8, 0xef, 0x94, 0x5c, 0x65, 0xef, 0x43, 3707 0x2e, 0xa4, 0x22, 0x17, 0xd6, 0x0c, 0xaa, 0x1f, 0x92, 0xab, 0x2c, 0xdf, 0xc8, 0x85, 0x54, 0xf6, 3708 0x1e, 0xc0, 0x85, 0x17, 0x06, 0x43, 0xd1, 0x2c, 0xba, 0xc4, 0xbb, 0x86, 0xbc, 0x4f, 0x0b, 0xac, 3709 0x8c, 0x7a, 0x8d, 0xef, 0x5e, 0x1b, 0x9a, 0x99, 0x08, 0xff, 0xef, 0xc2, 0x6a, 0xc5, 0x67, 0x07, 3710 0x41, 0x46, 0x06, 0x16, 0xe4, 0xbe, 0xb1, 0x68, 0xd0, 0x52, 0xe7, 0x07, 0x00, 0x64, 0x89, 0xfb, 3711 0x69, 0x1a, 0xa7, 0x6a, 0xe0, 0x33, 0x8a, 0x81, 0xcf, 0xb9, 0x03, 0x1d, 0xb4, 0xc0, 0x35, 0x64, 3712 0x7c, 0xf5, 0x45, 0xe4, 0x04, 0x7a, 0xf4, 0xce, 0x4f, 0x0e, 0x16, 0x70, 0xb0, 0x1d, 0x58, 0x13, 3713 0x53, 0x97, 0x48, 0x82, 0xc7, 0x71, 0x16, 0x90, 0x25, 0x44, 0x3a, 0xce, 0xa5, 0x61, 0x2d, 0xe3, 3714 0x28, 0xee, 0xe8, 0xc9, 0x81, 0x9a, 0x0b, 0x14, 0xec, 0x7c, 0x0b, 0x3a, 0x78, 0xa3, 0xb8, 0x6e, 3715 0x13, 0x9a, 0x44, 0x50, 0x76, 0xb0, 0x0b, 0x27, 0x48, 0x85, 0x5c, 0x49, 0x77, 0x7e, 0x66, 0x40, 3716 0x57, 0x14, 0x39, 0x71, 0xf2, 0x65, 0x6b, 0xdc, 0x46, 0xe5, 0xb8, 0xaa, 0x12, 0xba, 0xc4, 0x6d, 3717 0x00, 0x2a, 0x53, 0x82, 0xa1, 0x5e, 0x06, 0x45, 0x89, 0x75, 0x35, 0x0e, 0x74, 0x4c, 0x09, 0xcd, 3718 0x31, 0xed, 0xaf, 0x4c, 0xe8, 0x49, 0x97, 0x0a, 0x96, 0xff, 0x51, 0xb2, 0xca, 0x7c, 0xaa, 0xeb, 3719 0xf9, 0xf4, 0xa6, 0xca, 0xa7, 0x46, 0xf9, 0x1a, 0x65, 0x14, 0x95, 0xe9, 0x74, 0x57, 0xa6, 0x53, 3720 0x93, 0xd8, 0x96, 0x54, 0x3a, 0x29, 0x2e, 0x91, 0x4d, 0x77, 0x65, 0x36, 0xb5, 0x4a, 0xa6, 0x22, 3721 0xa4, 0x8a, 0x64, 0xba, 0x2b, 0x93, 0xa9, 0x5d, 0x32, 0x15, 0x6e, 0x56, 0xb9, 0x74, 0xaf, 0x05, 3722 0x0d, 0x72, 0xa7, 0xf3, 0x01, 0xd8, 0xba, 0x69, 0x28, 0x27, 0xde, 0x94, 0xc4, 0x4a, 0x28, 0x68, 3723 0x4c, 0xae, 0x3c, 0xfb, 0x0c, 0x96, 0x2a, 0xa5, 0x08, 0x3b, 0x7e, 0x90, 0xed, 0x7a, 0x91, 0xcf, 3724 0xc3, 0x62, 0xef, 0xd0, 0x30, 0x5a, 0x90, 0x99, 0xa5, 0x64, 0x29, 0xa2, 0x12, 0x64, 0xda, 0xf6, 3725 0x60, 0x55, 0xb6, 0x87, 0xbf, 0x1a, 0xd0, 0xd3, 0x0f, 0xe0, 0x02, 0x72, 0x3f, 0x4d, 0x77, 0xe3, 3726 0xa1, 0xf0, 0x66, 0xc3, 0x55, 0x20, 0x86, 0x3e, 0x3e, 0x86, 0x5e, 0x96, 0xc9, 0x08, 0x2c, 0x60, 3727 0x49, 0x3b, 0xf2, 0xe3, 0x44, 0xed, 0x83, 0x05, 0x2c, 0x69, 0x07, 0xfc, 0x82, 0x87, 0xb2, 0x41, 3728 0x15, 0x30, 0xde, 0xf6, 0x88, 0x67, 0x19, 0x86, 0x89, 0xa8, 0xab, 0x0a, 0xc4, 0x53, 0xae, 0x77, 3729 0xb9, 0xeb, 0x4d, 0x32, 0x2e, 0x67, 0xb6, 0x02, 0x46, 0xb3, 0xe0, 0xde, 0xea, 0xa5, 0xf1, 0x24, 3730 0x52, 0x93, 0x9a, 0x86, 0x71, 0x2e, 0x61, 0xf5, 0xf1, 0x24, 0x1d, 0x71, 0x0a, 0x62, 0xb5, 0x06, 3731 0xaf, 0x43, 0x3b, 0x88, 0x3c, 0x3f, 0x0f, 0x2e, 0xb8, 0xb4, 0x64, 0x01, 0x63, 0xfc, 0xe6, 0xc1, 3732 0x98, 0xcb, 0x51, 0x95, 0x9e, 0x91, 0xff, 0x34, 0x08, 0x39, 0xc5, 0xb5, 0x7c, 0x25, 0x05, 0x53, 3733 0x8a, 0x8a, 0x9e, 0x2c, 0x97, 0x5c, 0x01, 0x39, 0xbf, 0x36, 0x61, 0xfd, 0x30, 0xe1, 0xa9, 0x97, 3734 0x73, 0xb1, 0x58, 0x1f, 0xf9, 0x67, 0x7c, 0xec, 0x29, 0x15, 0x6e, 0x83, 0x19, 0x27, 0x74, 0xb9, 3735 0x8c, 0x77, 0x41, 0x3e, 0x4c, 0x5c, 0x33, 0x4e, 0x48, 0x09, 0x2f, 0x3b, 0x97, 0xb6, 0xa5, 0xe7, 3736 0x85, 0x5b, 0xf6, 0x3a, 0xb4, 0x87, 0x5e, 0xee, 0x9d, 0x78, 0x19, 0x57, 0x36, 0x55, 0x30, 0x2d, 3737 0xa4, 0xb8, 0xbf, 0x49, 0x8b, 0x0a, 0x80, 0x24, 0xd1, 0x6d, 0xd2, 0x9a, 0x12, 0x42, 0xee, 0xd3, 3738 0x70, 0x92, 0x9d, 0x91, 0x19, 0xdb, 0xae, 0x00, 0x50, 0x97, 0x22, 0xe6, 0xdb, 0xb2, 0x5d, 0x0c, 3739 0x00, 0x4e, 0xd3, 0x78, 0x2c, 0x0a, 0x0b, 0x35, 0xa0, 0xb6, 0xab, 0x61, 0x14, 0xfd, 0x58, 0xac, 3740 0x2b, 0x50, 0xd2, 0x05, 0xc6, 0xc9, 0x61, 0xe9, 0xe9, 0xbb, 0x32, 0xec, 0x1f, 0xf1, 0xdc, 0x63, 3741 0xeb, 0x9a, 0x39, 0x00, 0xcd, 0x81, 0x14, 0x69, 0x8c, 0x17, 0x56, 0x0f, 0x55, 0x72, 0x2c, 0xad, 3742 0xe4, 0x28, 0x0b, 0xd6, 0x29, 0xc4, 0xe9, 0xd9, 0x79, 0x0f, 0xd6, 0xa4, 0x47, 0x9e, 0xbe, 0x8b, 3743 0xb7, 0x2e, 0xf4, 0x85, 0x20, 0x8b, 0xeb, 0x9d, 0x3f, 0x1b, 0x70, 0x73, 0xea, 0xd8, 0x4b, 0x7f, 3744 0xaf, 0x78, 0x1f, 0xea, 0xb8, 0xf0, 0xf5, 0x2d, 0x4a, 0xcd, 0xbb, 0x78, 0xc7, 0x5c, 0x91, 0xdb, 3745 0x08, 0xdc, 0x8f, 0xf2, 0xf4, 0xca, 0xa5, 0x03, 0xeb, 0x9f, 0x42, 0xa7, 0x40, 0xa1, 0xdc, 0x73, 3746 0x7e, 0xa5, 0xaa, 0xef, 0x39, 0xbf, 0xc2, 0x89, 0xe2, 0xc2, 0x0b, 0x27, 0xc2, 0x34, 0xb2, 0xc1, 3747 0x56, 0x0c, 0xeb, 0x0a, 0xfa, 0x07, 0xe6, 0xb7, 0x0d, 0xe7, 0xc7, 0xd0, 0x7f, 0xe0, 0x45, 0xc3, 3748 0x50, 0xc6, 0xa3, 0x28, 0x0a, 0xd2, 0x04, 0xaf, 0x6a, 0x26, 0xe8, 0xa2, 0x14, 0xa2, 0x5e, 0x13, 3749 0x8d, 0xb7, 0xa1, 0x73, 0xa2, 0xda, 0xa1, 0x34, 0x7c, 0x89, 0xa0, 0x98, 0x79, 0x16, 0x66, 0x72, 3750 0xad, 0xa4, 0x67, 0xe7, 0x26, 0xdc, 0xd8, 0xe7, 0xb9, 0xb8, 0x7b, 0xf7, 0x74, 0x24, 0x6f, 0x76, 3751 0x36, 0x61, 0xad, 0x8a, 0x96, 0xc6, 0xb5, 0xc1, 0xf2, 0x4f, 0x8b, 0x56, 0xe3, 0x9f, 0x8e, 0x9c, 3752 0x23, 0xb8, 0x23, 0xa6, 0xa5, 0xc9, 0x09, 0xaa, 0x80, 0xa5, 0xef, 0xf3, 0x64, 0xe8, 0xe5, 0x5c, 3753 0xbd, 0xc4, 0x0e, 0xac, 0x65, 0x82, 0xb6, 0x7b, 0x3a, 0x3a, 0x8e, 0xc7, 0xe1, 0x51, 0x9e, 0x06, 3754 0x91, 0x92, 0x31, 0x97, 0xe6, 0x1c, 0xc0, 0x60, 0x91, 0x50, 0xa9, 0x48, 0x1f, 0x5a, 0xf2, 0x63, 3755 0x8d, 0x74, 0xb3, 0x02, 0x67, 0xfd, 0xec, 0x8c, 0x60, 0x7d, 0x9f, 0xe7, 0x33, 0x33, 0x53, 0x59, 3756 0x76, 0xf0, 0x8e, 0xcf, 0xca, 0xf6, 0x58, 0xc0, 0xec, 0x1b, 0xd0, 0x3b, 0x0d, 0xc2, 0x9c, 0xa7, 3757 0x72, 0xe7, 0x98, 0x89, 0xf5, 0x0a, 0xd9, 0xf9, 0xbb, 0x05, 0xf6, 0xf4, 0x35, 0x85, 0x9f, 0x8c, 3758 0xb9, 0x55, 0xc3, 0xac, 0x54, 0x0d, 0x06, 0xf5, 0x31, 0x16, 0x76, 0x99, 0x33, 0xf8, 0x5c, 0x26, 3759 0x5a, 0x7d, 0x41, 0xa2, 0x6d, 0xc2, 0x8a, 0x9c, 0xfe, 0x62, 0xb5, 0xd7, 0xc8, 0x05, 0x62, 0x0a, 3760 0x8d, 0x03, 0xf3, 0x14, 0x8a, 0xd6, 0x0d, 0x51, 0x6f, 0xe6, 0x91, 0xb4, 0x69, 0xbc, 0xf5, 0x35, 3761 0xa6, 0xf1, 0x44, 0x10, 0xc4, 0x27, 0x25, 0x69, 0xb2, 0xb6, 0x10, 0x3e, 0x87, 0xc4, 0xde, 0x86, 3762 0xd5, 0x84, 0x47, 0xb8, 0x68, 0x6b, 0xfc, 0x1d, 0xe2, 0x9f, 0x25, 0xe0, 0x6b, 0x52, 0xab, 0xd4, 3763 0x78, 0x41, 0xbc, 0xe6, 0x14, 0x1a, 0x37, 0x38, 0x7f, 0x92, 0xc7, 0x17, 0x6a, 0x55, 0xc3, 0x64, 3764 0x10, 0xcb, 0xf8, 0x0c, 0x1e, 0x75, 0xa8, 0xe0, 0xc8, 0x20, 0x3d, 0xa1, 0xc3, 0x0c, 0xc1, 0xf9, 3765 0x9d, 0x01, 0x37, 0x4b, 0x07, 0xd3, 0x47, 0xb8, 0x17, 0xec, 0xbd, 0xeb, 0xd0, 0xce, 0x52, 0x9f, 3766 0x38, 0x55, 0x4f, 0x56, 0x30, 0xf5, 0x88, 0x2c, 0x17, 0x34, 0xd9, 0xc0, 0x14, 0xfc, 0x62, 0xaf, 3767 0xf7, 0xa1, 0x35, 0xae, 0x36, 0x66, 0x09, 0x3a, 0x7f, 0x32, 0xe0, 0xd5, 0xb9, 0xf1, 0xfe, 0x5f, 3768 0x7c, 0xd0, 0x85, 0x22, 0x28, 0x32, 0x59, 0x26, 0xaf, 0xdf, 0x3f, 0x70, 0x92, 0xf9, 0x10, 0x96, 3769 0xf2, 0xd2, 0x32, 0x5c, 0x7d, 0xd0, 0x7d, 0xa5, 0x7a, 0x50, 0x33, 0x9e, 0x5b, 0xe5, 0x77, 0xce, 3770 0xe1, 0x95, 0x8a, 0xfe, 0x95, 0x9a, 0xb8, 0x43, 0xf3, 0x3d, 0xf2, 0x72, 0x59, 0x19, 0x6f, 0x69, 3771 0x82, 0xc5, 0x3c, 0x4d, 0x54, 0xb7, 0xe0, 0xab, 0xa4, 0xb8, 0x59, 0x4d, 0x71, 0xe7, 0xb7, 0x26, 3772 0xac, 0x4c, 0x5d, 0xc5, 0x96, 0xc1, 0x0c, 0x86, 0xd2, 0x91, 0x66, 0x30, 0x5c, 0x98, 0xae, 0xba, 3773 0x73, 0xad, 0x29, 0xe7, 0x62, 0x81, 0x4a, 0xfd, 0x3d, 0x2f, 0xf7, 0x64, 0xff, 0x57, 0x60, 0xc5, 3774 0xed, 0x8d, 0x29, 0xb7, 0xf7, 0xa1, 0x35, 0xcc, 0x72, 0x3a, 0x25, 0xb2, 0x52, 0x81, 0x58, 0xda, 3775 0x29, 0xce, 0xe9, 0xd3, 0x92, 0x98, 0xa8, 0x4a, 0x04, 0xdb, 0x2e, 0x96, 0xba, 0xf6, 0xb5, 0x36, 3776 0x91, 0x5c, 0xc5, 0x3c, 0xd5, 0x91, 0x45, 0x09, 0xe7, 0x29, 0x2d, 0xa2, 0xa0, 0x1a, 0x51, 0xcf, 3777 0xa6, 0x0a, 0xa8, 0x74, 0xc8, 0x4b, 0xc7, 0xd3, 0x5b, 0x6a, 0xcc, 0x16, 0xa1, 0x74, 0xa3, 0x1a, 3778 0x11, 0x95, 0x49, 0xfb, 0x97, 0x06, 0xdc, 0x51, 0xcd, 0x78, 0x7e, 0x20, 0xdc, 0xd5, 0x9a, 0xe3, 3779 0xac, 0x24, 0xd9, 0x24, 0x69, 0x3e, 0xff, 0x38, 0x0c, 0xc5, 0x62, 0x65, 0xaa, 0xf9, 0x5c, 0x61, 3780 0x2a, 0x91, 0x61, 0x4d, 0x15, 0xff, 0x35, 0xd2, 0xf6, 0xa1, 0xf8, 0x01, 0xa0, 0xee, 0x0a, 0xc0, 3781 0xf9, 0x14, 0x06, 0x8b, 0xf4, 0x7a, 0x59, 0x7b, 0x38, 0x57, 0x70, 0x47, 0xb4, 0xb5, 0x52, 0x94, 3782 0xfa, 0xb9, 0xe7, 0xc5, 0xbd, 0xa9, 0xd2, 0xeb, 0xcd, 0xe9, 0x5e, 0x5f, 0x7c, 0x8a, 0xa4, 0xcf, 3783 0xdb, 0x96, 0xfe, 0x29, 0x12, 0x31, 0x5b, 0xe7, 0xd0, 0x14, 0xc3, 0x1c, 0x5b, 0x82, 0xce, 0xc3, 3784 0x88, 0xd2, 0xf7, 0x30, 0xb1, 0x6b, 0xac, 0x0d, 0xf5, 0xa3, 0x3c, 0x4e, 0x6c, 0x83, 0x75, 0xa0, 3785 0xf1, 0x18, 0xa7, 0x79, 0xdb, 0x64, 0x00, 0x4d, 0xac, 0xf6, 0x63, 0x6e, 0x5b, 0x88, 0x3e, 0xca, 3786 0xbd, 0x34, 0xb7, 0xeb, 0x88, 0x16, 0xfa, 0xdb, 0x0d, 0xb6, 0x0c, 0xf0, 0xf1, 0x24, 0x8f, 0x25, 3787 0x5b, 0x13, 0x69, 0x7b, 0x3c, 0xe4, 0x39, 0xb7, 0x5b, 0x5b, 0x3f, 0xa1, 0x23, 0x23, 0x1c, 0x1f, 3788 0x7a, 0xf2, 0x2e, 0x82, 0xed, 0x1a, 0x6b, 0x81, 0xf5, 0x19, 0xbf, 0xb4, 0x0d, 0xd6, 0x85, 0x96, 3789 0x3b, 0x89, 0xa2, 0x20, 0x1a, 0x89, 0xfb, 0xe8, 0xea, 0xa1, 0x6d, 0x21, 0x01, 0x15, 0x4a, 0xf8, 3790 0xd0, 0xae, 0xb3, 0x1e, 0xb4, 0x3f, 0x91, 0x3f, 0x13, 0xd8, 0x0d, 0x24, 0x21, 0x1b, 0x9e, 0x69, 3791 0x22, 0x89, 0x2e, 0x47, 0xa8, 0x85, 0x10, 0x9d, 0x42, 0xa8, 0xbd, 0x75, 0x08, 0x6d, 0xb5, 0xb9, 3792 0xb2, 0x15, 0xe8, 0x4a, 0x1d, 0x10, 0x65, 0xd7, 0xf0, 0x85, 0x68, 0xd8, 0xb0, 0x0d, 0x7c, 0x79, 3793 0xdc, 0x41, 0x6d, 0x13, 0x9f, 0x70, 0xd1, 0xb4, 0x2d, 0x32, 0xc8, 0x55, 0xe4, 0xdb, 0x75, 0x64, 3794 0xa4, 0x85, 0xc5, 0x1e, 0x6e, 0x3d, 0x82, 0x16, 0x3d, 0x1e, 0xe2, 0x1c, 0xb6, 0x2c, 0xe5, 0x49, 3795 0x8c, 0x5d, 0x43, 0x9b, 0xe2, 0xed, 0x82, 0xdb, 0x40, 0xdb, 0xd0, 0xeb, 0x08, 0xd8, 0x44, 0x15, 3796 0x84, 0x9d, 0x04, 0xc2, 0xda, 0xfa, 0xa9, 0x01, 0x6d, 0xb5, 0x6a, 0xb0, 0x1b, 0xb0, 0xa2, 0x8c, 3797 0x24, 0x51, 0x42, 0xe2, 0x3e, 0xcf, 0x05, 0xc2, 0x36, 0xe8, 0x82, 0x02, 0x34, 0xd1, 0xae, 0x2e, 3798 0x1f, 0xc7, 0x17, 0x5c, 0x62, 0x2c, 0xbc, 0x12, 0x37, 0x5b, 0x09, 0xd7, 0xf1, 0x00, 0xc2, 0x54, 3799 0x65, 0xec, 0x06, 0xbb, 0x05, 0x0c, 0xc1, 0x47, 0xc1, 0x08, 0x23, 0x59, 0xcc, 0xff, 0x99, 0xdd, 3800 0xdc, 0xfa, 0x08, 0xda, 0x6a, 0xcc, 0xd6, 0xf4, 0x50, 0xa8, 0x42, 0x0f, 0x81, 0xb0, 0x8d, 0xf2, 3801 0x62, 0x89, 0x31, 0xb7, 0x9e, 0xd2, 0x7a, 0x8a, 0x53, 0xaa, 0x66, 0x19, 0x89, 0x91, 0xe1, 0x75, 3802 0x1e, 0x24, 0xd2, 0xe1, 0x3c, 0x09, 0x3d, 0xbf, 0x08, 0xb0, 0x0b, 0x9e, 0xe6, 0xb6, 0x85, 0xcf, 3803 0x0f, 0xa3, 0x1f, 0x71, 0x1f, 0x23, 0x0c, 0xdd, 0x10, 0x64, 0xb9, 0xdd, 0xd8, 0x3a, 0x80, 0xee, 3804 0x53, 0xd5, 0x63, 0x0e, 0x13, 0x7c, 0x01, 0xa5, 0x5c, 0x89, 0xb5, 0x6b, 0x78, 0x27, 0x45, 0x67, 3805 0x81, 0xb5, 0x0d, 0xb6, 0x0a, 0x4b, 0xe8, 0x8d, 0x12, 0x65, 0x6e, 0x3d, 0x01, 0x36, 0x5b, 0x1d, 3806 0xd1, 0x68, 0xa5, 0xc2, 0x76, 0x0d, 0x35, 0xf9, 0x8c, 0x5f, 0xe2, 0x33, 0xf9, 0xf0, 0xe1, 0x28, 3807 0x8a, 0x53, 0x4e, 0x34, 0xe5, 0x43, 0xfa, 0xbe, 0x88, 0x08, 0x6b, 0xeb, 0xe9, 0x54, 0x1f, 0x39, 3808 0x4c, 0xb4, 0x70, 0x27, 0xd8, 0xae, 0x51, 0xf0, 0x91, 0x14, 0x81, 0x90, 0x06, 0x24, 0x31, 0x02, 3809 0x63, 0xe2, 0x45, 0xbb, 0x21, 0xf7, 0x52, 0x01, 0x5b, 0x3b, 0xff, 0x6a, 0x42, 0x53, 0x54, 0x05, 3810 0xf6, 0x11, 0x74, 0xb5, 0x5f, 0x68, 0x19, 0x15, 0xf9, 0xd9, 0xdf, 0x93, 0xd7, 0xff, 0x6f, 0x06, 3811 0x2f, 0x2a, 0x93, 0x53, 0x63, 0x1f, 0x02, 0x94, 0x8b, 0x37, 0xbb, 0x49, 0xd3, 0xdc, 0xf4, 0x22, 3812 0xbe, 0xde, 0xa7, 0x4f, 0x36, 0x73, 0x7e, 0x7d, 0x76, 0x6a, 0xec, 0x7b, 0xb0, 0x24, 0xcb, 0x9f, 3813 0x08, 0x2d, 0x36, 0xd0, 0xd6, 0xa6, 0x39, 0x2b, 0xf5, 0xb5, 0xc2, 0x3e, 0x29, 0x84, 0x89, 0xf0, 3814 0x61, 0xfd, 0x39, 0x3b, 0x98, 0x10, 0xf3, 0xca, 0xc2, 0xed, 0xcc, 0xa9, 0xb1, 0x7d, 0xe8, 0x8a, 3815 0x1d, 0x4a, 0x14, 0xf5, 0xdb, 0xc8, 0xbb, 0x68, 0xa9, 0xba, 0x56, 0xa1, 0x5d, 0xe8, 0xe9, 0x6b, 3816 0x0f, 0x23, 0x4b, 0xce, 0xd9, 0x8f, 0x84, 0x90, 0x79, 0x1b, 0x92, 0x53, 0x63, 0x1e, 0xdc, 0x9a, 3817 0xbf, 0xbc, 0xb0, 0xd7, 0xcb, 0x6f, 0xcb, 0x0b, 0xb6, 0xa5, 0x75, 0xe7, 0x3a, 0x96, 0xe2, 0x8a, 3818 0x1f, 0x40, 0xbf, 0xb8, 0xbc, 0x08, 0x6b, 0x19, 0x15, 0x03, 0xa9, 0xda, 0x82, 0x7d, 0x67, 0xfd, 3819 0xb5, 0x85, 0xf4, 0x42, 0xfc, 0x31, 0xac, 0x96, 0x0c, 0xb1, 0x30, 0x1f, 0xbb, 0x33, 0x73, 0xae, 3820 0x62, 0xd6, 0xc1, 0x22, 0x72, 0x21, 0xf5, 0x87, 0xe5, 0xc6, 0x5e, 0x95, 0xfc, 0xba, 0xee, 0xdb, 3821 0xf9, 0xd2, 0x9d, 0xeb, 0x58, 0x8a, 0x1b, 0x1e, 0xc3, 0x4a, 0xa5, 0x9f, 0x2a, 0xd9, 0xd7, 0x36, 3822 0xd9, 0xeb, 0x02, 0xe2, 0x5e, 0xff, 0x8b, 0xaf, 0x06, 0xc6, 0x97, 0x5f, 0x0d, 0x8c, 0x7f, 0x7c, 3823 0x35, 0x30, 0x7e, 0xfe, 0x7c, 0x50, 0xfb, 0xf2, 0xf9, 0xa0, 0xf6, 0xb7, 0xe7, 0x83, 0xda, 0x49, 3824 0x93, 0xfe, 0xd5, 0xf1, 0xcd, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x31, 0xe0, 0x21, 0xb2, 0xe7, 3825 0x21, 0x00, 0x00, 3826 } 3827 3828 // Reference imports to suppress errors if they are not otherwise used. 3829 var _ context.Context 3830 var _ grpc.ClientConn 3831 3832 // This is a compile-time assertion to ensure that this generated file 3833 // is compatible with the grpc package it is being compiled against. 3834 const _ = grpc.SupportPackageIsVersion4 3835 3836 // WorkerClient is the client API for Worker service. 3837 // 3838 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 3839 type WorkerClient interface { 3840 QueryStatus(ctx context.Context, in *QueryStatusRequest, opts ...grpc.CallOption) (*QueryStatusResponse, error) 3841 // PurgeRelay purges relay log files for this dm-worker 3842 PurgeRelay(ctx context.Context, in *PurgeRelayRequest, opts ...grpc.CallOption) (*CommonWorkerResponse, error) 3843 // Operate (get/set/remove) schema for a specified table in tracker. 3844 // a `set`/`remove` operation should be an one-time operation (only take effect once), 3845 // so we use a gRPC method rather than a etcd operation now (no persistent operation state). 3846 OperateSchema(ctx context.Context, in *OperateWorkerSchemaRequest, opts ...grpc.CallOption) (*CommonWorkerResponse, error) 3847 OperateV1Meta(ctx context.Context, in *OperateV1MetaRequest, opts ...grpc.CallOption) (*OperateV1MetaResponse, error) 3848 HandleError(ctx context.Context, in *HandleWorkerErrorRequest, opts ...grpc.CallOption) (*CommonWorkerResponse, error) 3849 GetWorkerCfg(ctx context.Context, in *GetWorkerCfgRequest, opts ...grpc.CallOption) (*GetWorkerCfgResponse, error) 3850 // only some fields of the configuration of the subtask in the sync phase can be updated 3851 CheckSubtasksCanUpdate(ctx context.Context, in *CheckSubtasksCanUpdateRequest, opts ...grpc.CallOption) (*CheckSubtasksCanUpdateResponse, error) 3852 GetWorkerValidatorStatus(ctx context.Context, in *GetValidationStatusRequest, opts ...grpc.CallOption) (*GetValidationStatusResponse, error) 3853 GetValidatorError(ctx context.Context, in *GetValidationErrorRequest, opts ...grpc.CallOption) (*GetValidationErrorResponse, error) 3854 OperateValidatorError(ctx context.Context, in *OperateValidationErrorRequest, opts ...grpc.CallOption) (*OperateValidationErrorResponse, error) 3855 UpdateValidator(ctx context.Context, in *UpdateValidationWorkerRequest, opts ...grpc.CallOption) (*CommonWorkerResponse, error) 3856 } 3857 3858 type workerClient struct { 3859 cc *grpc.ClientConn 3860 } 3861 3862 func NewWorkerClient(cc *grpc.ClientConn) WorkerClient { 3863 return &workerClient{cc} 3864 } 3865 3866 func (c *workerClient) QueryStatus(ctx context.Context, in *QueryStatusRequest, opts ...grpc.CallOption) (*QueryStatusResponse, error) { 3867 out := new(QueryStatusResponse) 3868 err := c.cc.Invoke(ctx, "/pb.Worker/QueryStatus", in, out, opts...) 3869 if err != nil { 3870 return nil, err 3871 } 3872 return out, nil 3873 } 3874 3875 func (c *workerClient) PurgeRelay(ctx context.Context, in *PurgeRelayRequest, opts ...grpc.CallOption) (*CommonWorkerResponse, error) { 3876 out := new(CommonWorkerResponse) 3877 err := c.cc.Invoke(ctx, "/pb.Worker/PurgeRelay", in, out, opts...) 3878 if err != nil { 3879 return nil, err 3880 } 3881 return out, nil 3882 } 3883 3884 func (c *workerClient) OperateSchema(ctx context.Context, in *OperateWorkerSchemaRequest, opts ...grpc.CallOption) (*CommonWorkerResponse, error) { 3885 out := new(CommonWorkerResponse) 3886 err := c.cc.Invoke(ctx, "/pb.Worker/OperateSchema", in, out, opts...) 3887 if err != nil { 3888 return nil, err 3889 } 3890 return out, nil 3891 } 3892 3893 func (c *workerClient) OperateV1Meta(ctx context.Context, in *OperateV1MetaRequest, opts ...grpc.CallOption) (*OperateV1MetaResponse, error) { 3894 out := new(OperateV1MetaResponse) 3895 err := c.cc.Invoke(ctx, "/pb.Worker/OperateV1Meta", in, out, opts...) 3896 if err != nil { 3897 return nil, err 3898 } 3899 return out, nil 3900 } 3901 3902 func (c *workerClient) HandleError(ctx context.Context, in *HandleWorkerErrorRequest, opts ...grpc.CallOption) (*CommonWorkerResponse, error) { 3903 out := new(CommonWorkerResponse) 3904 err := c.cc.Invoke(ctx, "/pb.Worker/HandleError", in, out, opts...) 3905 if err != nil { 3906 return nil, err 3907 } 3908 return out, nil 3909 } 3910 3911 func (c *workerClient) GetWorkerCfg(ctx context.Context, in *GetWorkerCfgRequest, opts ...grpc.CallOption) (*GetWorkerCfgResponse, error) { 3912 out := new(GetWorkerCfgResponse) 3913 err := c.cc.Invoke(ctx, "/pb.Worker/GetWorkerCfg", in, out, opts...) 3914 if err != nil { 3915 return nil, err 3916 } 3917 return out, nil 3918 } 3919 3920 func (c *workerClient) CheckSubtasksCanUpdate(ctx context.Context, in *CheckSubtasksCanUpdateRequest, opts ...grpc.CallOption) (*CheckSubtasksCanUpdateResponse, error) { 3921 out := new(CheckSubtasksCanUpdateResponse) 3922 err := c.cc.Invoke(ctx, "/pb.Worker/CheckSubtasksCanUpdate", in, out, opts...) 3923 if err != nil { 3924 return nil, err 3925 } 3926 return out, nil 3927 } 3928 3929 func (c *workerClient) GetWorkerValidatorStatus(ctx context.Context, in *GetValidationStatusRequest, opts ...grpc.CallOption) (*GetValidationStatusResponse, error) { 3930 out := new(GetValidationStatusResponse) 3931 err := c.cc.Invoke(ctx, "/pb.Worker/GetWorkerValidatorStatus", in, out, opts...) 3932 if err != nil { 3933 return nil, err 3934 } 3935 return out, nil 3936 } 3937 3938 func (c *workerClient) GetValidatorError(ctx context.Context, in *GetValidationErrorRequest, opts ...grpc.CallOption) (*GetValidationErrorResponse, error) { 3939 out := new(GetValidationErrorResponse) 3940 err := c.cc.Invoke(ctx, "/pb.Worker/GetValidatorError", in, out, opts...) 3941 if err != nil { 3942 return nil, err 3943 } 3944 return out, nil 3945 } 3946 3947 func (c *workerClient) OperateValidatorError(ctx context.Context, in *OperateValidationErrorRequest, opts ...grpc.CallOption) (*OperateValidationErrorResponse, error) { 3948 out := new(OperateValidationErrorResponse) 3949 err := c.cc.Invoke(ctx, "/pb.Worker/OperateValidatorError", in, out, opts...) 3950 if err != nil { 3951 return nil, err 3952 } 3953 return out, nil 3954 } 3955 3956 func (c *workerClient) UpdateValidator(ctx context.Context, in *UpdateValidationWorkerRequest, opts ...grpc.CallOption) (*CommonWorkerResponse, error) { 3957 out := new(CommonWorkerResponse) 3958 err := c.cc.Invoke(ctx, "/pb.Worker/UpdateValidator", in, out, opts...) 3959 if err != nil { 3960 return nil, err 3961 } 3962 return out, nil 3963 } 3964 3965 // WorkerServer is the server API for Worker service. 3966 type WorkerServer interface { 3967 QueryStatus(context.Context, *QueryStatusRequest) (*QueryStatusResponse, error) 3968 // PurgeRelay purges relay log files for this dm-worker 3969 PurgeRelay(context.Context, *PurgeRelayRequest) (*CommonWorkerResponse, error) 3970 // Operate (get/set/remove) schema for a specified table in tracker. 3971 // a `set`/`remove` operation should be an one-time operation (only take effect once), 3972 // so we use a gRPC method rather than a etcd operation now (no persistent operation state). 3973 OperateSchema(context.Context, *OperateWorkerSchemaRequest) (*CommonWorkerResponse, error) 3974 OperateV1Meta(context.Context, *OperateV1MetaRequest) (*OperateV1MetaResponse, error) 3975 HandleError(context.Context, *HandleWorkerErrorRequest) (*CommonWorkerResponse, error) 3976 GetWorkerCfg(context.Context, *GetWorkerCfgRequest) (*GetWorkerCfgResponse, error) 3977 // only some fields of the configuration of the subtask in the sync phase can be updated 3978 CheckSubtasksCanUpdate(context.Context, *CheckSubtasksCanUpdateRequest) (*CheckSubtasksCanUpdateResponse, error) 3979 GetWorkerValidatorStatus(context.Context, *GetValidationStatusRequest) (*GetValidationStatusResponse, error) 3980 GetValidatorError(context.Context, *GetValidationErrorRequest) (*GetValidationErrorResponse, error) 3981 OperateValidatorError(context.Context, *OperateValidationErrorRequest) (*OperateValidationErrorResponse, error) 3982 UpdateValidator(context.Context, *UpdateValidationWorkerRequest) (*CommonWorkerResponse, error) 3983 } 3984 3985 // UnimplementedWorkerServer can be embedded to have forward compatible implementations. 3986 type UnimplementedWorkerServer struct { 3987 } 3988 3989 func (*UnimplementedWorkerServer) QueryStatus(ctx context.Context, req *QueryStatusRequest) (*QueryStatusResponse, error) { 3990 return nil, status.Errorf(codes.Unimplemented, "method QueryStatus not implemented") 3991 } 3992 func (*UnimplementedWorkerServer) PurgeRelay(ctx context.Context, req *PurgeRelayRequest) (*CommonWorkerResponse, error) { 3993 return nil, status.Errorf(codes.Unimplemented, "method PurgeRelay not implemented") 3994 } 3995 func (*UnimplementedWorkerServer) OperateSchema(ctx context.Context, req *OperateWorkerSchemaRequest) (*CommonWorkerResponse, error) { 3996 return nil, status.Errorf(codes.Unimplemented, "method OperateSchema not implemented") 3997 } 3998 func (*UnimplementedWorkerServer) OperateV1Meta(ctx context.Context, req *OperateV1MetaRequest) (*OperateV1MetaResponse, error) { 3999 return nil, status.Errorf(codes.Unimplemented, "method OperateV1Meta not implemented") 4000 } 4001 func (*UnimplementedWorkerServer) HandleError(ctx context.Context, req *HandleWorkerErrorRequest) (*CommonWorkerResponse, error) { 4002 return nil, status.Errorf(codes.Unimplemented, "method HandleError not implemented") 4003 } 4004 func (*UnimplementedWorkerServer) GetWorkerCfg(ctx context.Context, req *GetWorkerCfgRequest) (*GetWorkerCfgResponse, error) { 4005 return nil, status.Errorf(codes.Unimplemented, "method GetWorkerCfg not implemented") 4006 } 4007 func (*UnimplementedWorkerServer) CheckSubtasksCanUpdate(ctx context.Context, req *CheckSubtasksCanUpdateRequest) (*CheckSubtasksCanUpdateResponse, error) { 4008 return nil, status.Errorf(codes.Unimplemented, "method CheckSubtasksCanUpdate not implemented") 4009 } 4010 func (*UnimplementedWorkerServer) GetWorkerValidatorStatus(ctx context.Context, req *GetValidationStatusRequest) (*GetValidationStatusResponse, error) { 4011 return nil, status.Errorf(codes.Unimplemented, "method GetWorkerValidatorStatus not implemented") 4012 } 4013 func (*UnimplementedWorkerServer) GetValidatorError(ctx context.Context, req *GetValidationErrorRequest) (*GetValidationErrorResponse, error) { 4014 return nil, status.Errorf(codes.Unimplemented, "method GetValidatorError not implemented") 4015 } 4016 func (*UnimplementedWorkerServer) OperateValidatorError(ctx context.Context, req *OperateValidationErrorRequest) (*OperateValidationErrorResponse, error) { 4017 return nil, status.Errorf(codes.Unimplemented, "method OperateValidatorError not implemented") 4018 } 4019 func (*UnimplementedWorkerServer) UpdateValidator(ctx context.Context, req *UpdateValidationWorkerRequest) (*CommonWorkerResponse, error) { 4020 return nil, status.Errorf(codes.Unimplemented, "method UpdateValidator not implemented") 4021 } 4022 4023 func RegisterWorkerServer(s *grpc.Server, srv WorkerServer) { 4024 s.RegisterService(&_Worker_serviceDesc, srv) 4025 } 4026 4027 func _Worker_QueryStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4028 in := new(QueryStatusRequest) 4029 if err := dec(in); err != nil { 4030 return nil, err 4031 } 4032 if interceptor == nil { 4033 return srv.(WorkerServer).QueryStatus(ctx, in) 4034 } 4035 info := &grpc.UnaryServerInfo{ 4036 Server: srv, 4037 FullMethod: "/pb.Worker/QueryStatus", 4038 } 4039 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4040 return srv.(WorkerServer).QueryStatus(ctx, req.(*QueryStatusRequest)) 4041 } 4042 return interceptor(ctx, in, info, handler) 4043 } 4044 4045 func _Worker_PurgeRelay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4046 in := new(PurgeRelayRequest) 4047 if err := dec(in); err != nil { 4048 return nil, err 4049 } 4050 if interceptor == nil { 4051 return srv.(WorkerServer).PurgeRelay(ctx, in) 4052 } 4053 info := &grpc.UnaryServerInfo{ 4054 Server: srv, 4055 FullMethod: "/pb.Worker/PurgeRelay", 4056 } 4057 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4058 return srv.(WorkerServer).PurgeRelay(ctx, req.(*PurgeRelayRequest)) 4059 } 4060 return interceptor(ctx, in, info, handler) 4061 } 4062 4063 func _Worker_OperateSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4064 in := new(OperateWorkerSchemaRequest) 4065 if err := dec(in); err != nil { 4066 return nil, err 4067 } 4068 if interceptor == nil { 4069 return srv.(WorkerServer).OperateSchema(ctx, in) 4070 } 4071 info := &grpc.UnaryServerInfo{ 4072 Server: srv, 4073 FullMethod: "/pb.Worker/OperateSchema", 4074 } 4075 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4076 return srv.(WorkerServer).OperateSchema(ctx, req.(*OperateWorkerSchemaRequest)) 4077 } 4078 return interceptor(ctx, in, info, handler) 4079 } 4080 4081 func _Worker_OperateV1Meta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4082 in := new(OperateV1MetaRequest) 4083 if err := dec(in); err != nil { 4084 return nil, err 4085 } 4086 if interceptor == nil { 4087 return srv.(WorkerServer).OperateV1Meta(ctx, in) 4088 } 4089 info := &grpc.UnaryServerInfo{ 4090 Server: srv, 4091 FullMethod: "/pb.Worker/OperateV1Meta", 4092 } 4093 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4094 return srv.(WorkerServer).OperateV1Meta(ctx, req.(*OperateV1MetaRequest)) 4095 } 4096 return interceptor(ctx, in, info, handler) 4097 } 4098 4099 func _Worker_HandleError_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4100 in := new(HandleWorkerErrorRequest) 4101 if err := dec(in); err != nil { 4102 return nil, err 4103 } 4104 if interceptor == nil { 4105 return srv.(WorkerServer).HandleError(ctx, in) 4106 } 4107 info := &grpc.UnaryServerInfo{ 4108 Server: srv, 4109 FullMethod: "/pb.Worker/HandleError", 4110 } 4111 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4112 return srv.(WorkerServer).HandleError(ctx, req.(*HandleWorkerErrorRequest)) 4113 } 4114 return interceptor(ctx, in, info, handler) 4115 } 4116 4117 func _Worker_GetWorkerCfg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4118 in := new(GetWorkerCfgRequest) 4119 if err := dec(in); err != nil { 4120 return nil, err 4121 } 4122 if interceptor == nil { 4123 return srv.(WorkerServer).GetWorkerCfg(ctx, in) 4124 } 4125 info := &grpc.UnaryServerInfo{ 4126 Server: srv, 4127 FullMethod: "/pb.Worker/GetWorkerCfg", 4128 } 4129 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4130 return srv.(WorkerServer).GetWorkerCfg(ctx, req.(*GetWorkerCfgRequest)) 4131 } 4132 return interceptor(ctx, in, info, handler) 4133 } 4134 4135 func _Worker_CheckSubtasksCanUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4136 in := new(CheckSubtasksCanUpdateRequest) 4137 if err := dec(in); err != nil { 4138 return nil, err 4139 } 4140 if interceptor == nil { 4141 return srv.(WorkerServer).CheckSubtasksCanUpdate(ctx, in) 4142 } 4143 info := &grpc.UnaryServerInfo{ 4144 Server: srv, 4145 FullMethod: "/pb.Worker/CheckSubtasksCanUpdate", 4146 } 4147 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4148 return srv.(WorkerServer).CheckSubtasksCanUpdate(ctx, req.(*CheckSubtasksCanUpdateRequest)) 4149 } 4150 return interceptor(ctx, in, info, handler) 4151 } 4152 4153 func _Worker_GetWorkerValidatorStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4154 in := new(GetValidationStatusRequest) 4155 if err := dec(in); err != nil { 4156 return nil, err 4157 } 4158 if interceptor == nil { 4159 return srv.(WorkerServer).GetWorkerValidatorStatus(ctx, in) 4160 } 4161 info := &grpc.UnaryServerInfo{ 4162 Server: srv, 4163 FullMethod: "/pb.Worker/GetWorkerValidatorStatus", 4164 } 4165 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4166 return srv.(WorkerServer).GetWorkerValidatorStatus(ctx, req.(*GetValidationStatusRequest)) 4167 } 4168 return interceptor(ctx, in, info, handler) 4169 } 4170 4171 func _Worker_GetValidatorError_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4172 in := new(GetValidationErrorRequest) 4173 if err := dec(in); err != nil { 4174 return nil, err 4175 } 4176 if interceptor == nil { 4177 return srv.(WorkerServer).GetValidatorError(ctx, in) 4178 } 4179 info := &grpc.UnaryServerInfo{ 4180 Server: srv, 4181 FullMethod: "/pb.Worker/GetValidatorError", 4182 } 4183 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4184 return srv.(WorkerServer).GetValidatorError(ctx, req.(*GetValidationErrorRequest)) 4185 } 4186 return interceptor(ctx, in, info, handler) 4187 } 4188 4189 func _Worker_OperateValidatorError_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4190 in := new(OperateValidationErrorRequest) 4191 if err := dec(in); err != nil { 4192 return nil, err 4193 } 4194 if interceptor == nil { 4195 return srv.(WorkerServer).OperateValidatorError(ctx, in) 4196 } 4197 info := &grpc.UnaryServerInfo{ 4198 Server: srv, 4199 FullMethod: "/pb.Worker/OperateValidatorError", 4200 } 4201 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4202 return srv.(WorkerServer).OperateValidatorError(ctx, req.(*OperateValidationErrorRequest)) 4203 } 4204 return interceptor(ctx, in, info, handler) 4205 } 4206 4207 func _Worker_UpdateValidator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4208 in := new(UpdateValidationWorkerRequest) 4209 if err := dec(in); err != nil { 4210 return nil, err 4211 } 4212 if interceptor == nil { 4213 return srv.(WorkerServer).UpdateValidator(ctx, in) 4214 } 4215 info := &grpc.UnaryServerInfo{ 4216 Server: srv, 4217 FullMethod: "/pb.Worker/UpdateValidator", 4218 } 4219 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4220 return srv.(WorkerServer).UpdateValidator(ctx, req.(*UpdateValidationWorkerRequest)) 4221 } 4222 return interceptor(ctx, in, info, handler) 4223 } 4224 4225 var _Worker_serviceDesc = grpc.ServiceDesc{ 4226 ServiceName: "pb.Worker", 4227 HandlerType: (*WorkerServer)(nil), 4228 Methods: []grpc.MethodDesc{ 4229 { 4230 MethodName: "QueryStatus", 4231 Handler: _Worker_QueryStatus_Handler, 4232 }, 4233 { 4234 MethodName: "PurgeRelay", 4235 Handler: _Worker_PurgeRelay_Handler, 4236 }, 4237 { 4238 MethodName: "OperateSchema", 4239 Handler: _Worker_OperateSchema_Handler, 4240 }, 4241 { 4242 MethodName: "OperateV1Meta", 4243 Handler: _Worker_OperateV1Meta_Handler, 4244 }, 4245 { 4246 MethodName: "HandleError", 4247 Handler: _Worker_HandleError_Handler, 4248 }, 4249 { 4250 MethodName: "GetWorkerCfg", 4251 Handler: _Worker_GetWorkerCfg_Handler, 4252 }, 4253 { 4254 MethodName: "CheckSubtasksCanUpdate", 4255 Handler: _Worker_CheckSubtasksCanUpdate_Handler, 4256 }, 4257 { 4258 MethodName: "GetWorkerValidatorStatus", 4259 Handler: _Worker_GetWorkerValidatorStatus_Handler, 4260 }, 4261 { 4262 MethodName: "GetValidatorError", 4263 Handler: _Worker_GetValidatorError_Handler, 4264 }, 4265 { 4266 MethodName: "OperateValidatorError", 4267 Handler: _Worker_OperateValidatorError_Handler, 4268 }, 4269 { 4270 MethodName: "UpdateValidator", 4271 Handler: _Worker_UpdateValidator_Handler, 4272 }, 4273 }, 4274 Streams: []grpc.StreamDesc{}, 4275 Metadata: "dmworker.proto", 4276 } 4277 4278 func (m *QueryStatusRequest) Marshal() (dAtA []byte, err error) { 4279 size := m.Size() 4280 dAtA = make([]byte, size) 4281 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4282 if err != nil { 4283 return nil, err 4284 } 4285 return dAtA[:n], nil 4286 } 4287 4288 func (m *QueryStatusRequest) MarshalTo(dAtA []byte) (int, error) { 4289 size := m.Size() 4290 return m.MarshalToSizedBuffer(dAtA[:size]) 4291 } 4292 4293 func (m *QueryStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4294 i := len(dAtA) 4295 _ = i 4296 var l int 4297 _ = l 4298 if len(m.Name) > 0 { 4299 i -= len(m.Name) 4300 copy(dAtA[i:], m.Name) 4301 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) 4302 i-- 4303 dAtA[i] = 0xa 4304 } 4305 return len(dAtA) - i, nil 4306 } 4307 4308 func (m *CommonWorkerResponse) Marshal() (dAtA []byte, err error) { 4309 size := m.Size() 4310 dAtA = make([]byte, size) 4311 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4312 if err != nil { 4313 return nil, err 4314 } 4315 return dAtA[:n], nil 4316 } 4317 4318 func (m *CommonWorkerResponse) MarshalTo(dAtA []byte) (int, error) { 4319 size := m.Size() 4320 return m.MarshalToSizedBuffer(dAtA[:size]) 4321 } 4322 4323 func (m *CommonWorkerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4324 i := len(dAtA) 4325 _ = i 4326 var l int 4327 _ = l 4328 if len(m.Worker) > 0 { 4329 i -= len(m.Worker) 4330 copy(dAtA[i:], m.Worker) 4331 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Worker))) 4332 i-- 4333 dAtA[i] = 0x22 4334 } 4335 if len(m.Source) > 0 { 4336 i -= len(m.Source) 4337 copy(dAtA[i:], m.Source) 4338 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Source))) 4339 i-- 4340 dAtA[i] = 0x1a 4341 } 4342 if len(m.Msg) > 0 { 4343 i -= len(m.Msg) 4344 copy(dAtA[i:], m.Msg) 4345 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) 4346 i-- 4347 dAtA[i] = 0x12 4348 } 4349 if m.Result { 4350 i-- 4351 if m.Result { 4352 dAtA[i] = 1 4353 } else { 4354 dAtA[i] = 0 4355 } 4356 i-- 4357 dAtA[i] = 0x8 4358 } 4359 return len(dAtA) - i, nil 4360 } 4361 4362 func (m *QueryStatusResponse) Marshal() (dAtA []byte, err error) { 4363 size := m.Size() 4364 dAtA = make([]byte, size) 4365 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4366 if err != nil { 4367 return nil, err 4368 } 4369 return dAtA[:n], nil 4370 } 4371 4372 func (m *QueryStatusResponse) MarshalTo(dAtA []byte) (int, error) { 4373 size := m.Size() 4374 return m.MarshalToSizedBuffer(dAtA[:size]) 4375 } 4376 4377 func (m *QueryStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4378 i := len(dAtA) 4379 _ = i 4380 var l int 4381 _ = l 4382 if len(m.SubTaskStatus) > 0 { 4383 for iNdEx := len(m.SubTaskStatus) - 1; iNdEx >= 0; iNdEx-- { 4384 { 4385 size, err := m.SubTaskStatus[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4386 if err != nil { 4387 return 0, err 4388 } 4389 i -= size 4390 i = encodeVarintDmworker(dAtA, i, uint64(size)) 4391 } 4392 i-- 4393 dAtA[i] = 0x22 4394 } 4395 } 4396 if m.SourceStatus != nil { 4397 { 4398 size, err := m.SourceStatus.MarshalToSizedBuffer(dAtA[:i]) 4399 if err != nil { 4400 return 0, err 4401 } 4402 i -= size 4403 i = encodeVarintDmworker(dAtA, i, uint64(size)) 4404 } 4405 i-- 4406 dAtA[i] = 0x1a 4407 } 4408 if len(m.Msg) > 0 { 4409 i -= len(m.Msg) 4410 copy(dAtA[i:], m.Msg) 4411 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) 4412 i-- 4413 dAtA[i] = 0x12 4414 } 4415 if m.Result { 4416 i-- 4417 if m.Result { 4418 dAtA[i] = 1 4419 } else { 4420 dAtA[i] = 0 4421 } 4422 i-- 4423 dAtA[i] = 0x8 4424 } 4425 return len(dAtA) - i, nil 4426 } 4427 4428 func (m *CheckStatus) Marshal() (dAtA []byte, err error) { 4429 size := m.Size() 4430 dAtA = make([]byte, size) 4431 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4432 if err != nil { 4433 return nil, err 4434 } 4435 return dAtA[:n], nil 4436 } 4437 4438 func (m *CheckStatus) MarshalTo(dAtA []byte) (int, error) { 4439 size := m.Size() 4440 return m.MarshalToSizedBuffer(dAtA[:size]) 4441 } 4442 4443 func (m *CheckStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4444 i := len(dAtA) 4445 _ = i 4446 var l int 4447 _ = l 4448 if len(m.Detail) > 0 { 4449 i -= len(m.Detail) 4450 copy(dAtA[i:], m.Detail) 4451 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Detail))) 4452 i-- 4453 dAtA[i] = 0x32 4454 } 4455 if m.Warning != 0 { 4456 i = encodeVarintDmworker(dAtA, i, uint64(m.Warning)) 4457 i-- 4458 dAtA[i] = 0x28 4459 } 4460 if m.Failed != 0 { 4461 i = encodeVarintDmworker(dAtA, i, uint64(m.Failed)) 4462 i-- 4463 dAtA[i] = 0x20 4464 } 4465 if m.Successful != 0 { 4466 i = encodeVarintDmworker(dAtA, i, uint64(m.Successful)) 4467 i-- 4468 dAtA[i] = 0x18 4469 } 4470 if m.Total != 0 { 4471 i = encodeVarintDmworker(dAtA, i, uint64(m.Total)) 4472 i-- 4473 dAtA[i] = 0x10 4474 } 4475 if m.Passed { 4476 i-- 4477 if m.Passed { 4478 dAtA[i] = 1 4479 } else { 4480 dAtA[i] = 0 4481 } 4482 i-- 4483 dAtA[i] = 0x8 4484 } 4485 return len(dAtA) - i, nil 4486 } 4487 4488 func (m *DumpStatus) Marshal() (dAtA []byte, err error) { 4489 size := m.Size() 4490 dAtA = make([]byte, size) 4491 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4492 if err != nil { 4493 return nil, err 4494 } 4495 return dAtA[:n], nil 4496 } 4497 4498 func (m *DumpStatus) MarshalTo(dAtA []byte) (int, error) { 4499 size := m.Size() 4500 return m.MarshalToSizedBuffer(dAtA[:size]) 4501 } 4502 4503 func (m *DumpStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4504 i := len(dAtA) 4505 _ = i 4506 var l int 4507 _ = l 4508 if len(m.Progress) > 0 { 4509 i -= len(m.Progress) 4510 copy(dAtA[i:], m.Progress) 4511 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Progress))) 4512 i-- 4513 dAtA[i] = 0x3a 4514 } 4515 if m.Bps != 0 { 4516 i = encodeVarintDmworker(dAtA, i, uint64(m.Bps)) 4517 i-- 4518 dAtA[i] = 0x30 4519 } 4520 if m.EstimateTotalRows != 0 { 4521 i -= 8 4522 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.EstimateTotalRows)))) 4523 i-- 4524 dAtA[i] = 0x29 4525 } 4526 if m.FinishedRows != 0 { 4527 i -= 8 4528 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.FinishedRows)))) 4529 i-- 4530 dAtA[i] = 0x21 4531 } 4532 if m.FinishedBytes != 0 { 4533 i -= 8 4534 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.FinishedBytes)))) 4535 i-- 4536 dAtA[i] = 0x19 4537 } 4538 if m.CompletedTables != 0 { 4539 i -= 8 4540 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CompletedTables)))) 4541 i-- 4542 dAtA[i] = 0x11 4543 } 4544 if m.TotalTables != 0 { 4545 i = encodeVarintDmworker(dAtA, i, uint64(m.TotalTables)) 4546 i-- 4547 dAtA[i] = 0x8 4548 } 4549 return len(dAtA) - i, nil 4550 } 4551 4552 func (m *LoadStatus) Marshal() (dAtA []byte, err error) { 4553 size := m.Size() 4554 dAtA = make([]byte, size) 4555 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4556 if err != nil { 4557 return nil, err 4558 } 4559 return dAtA[:n], nil 4560 } 4561 4562 func (m *LoadStatus) MarshalTo(dAtA []byte) (int, error) { 4563 size := m.Size() 4564 return m.MarshalToSizedBuffer(dAtA[:size]) 4565 } 4566 4567 func (m *LoadStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4568 i := len(dAtA) 4569 _ = i 4570 var l int 4571 _ = l 4572 if m.Bps != 0 { 4573 i = encodeVarintDmworker(dAtA, i, uint64(m.Bps)) 4574 i-- 4575 dAtA[i] = 0x30 4576 } 4577 if len(m.MetaBinlogGTID) > 0 { 4578 i -= len(m.MetaBinlogGTID) 4579 copy(dAtA[i:], m.MetaBinlogGTID) 4580 i = encodeVarintDmworker(dAtA, i, uint64(len(m.MetaBinlogGTID))) 4581 i-- 4582 dAtA[i] = 0x2a 4583 } 4584 if len(m.MetaBinlog) > 0 { 4585 i -= len(m.MetaBinlog) 4586 copy(dAtA[i:], m.MetaBinlog) 4587 i = encodeVarintDmworker(dAtA, i, uint64(len(m.MetaBinlog))) 4588 i-- 4589 dAtA[i] = 0x22 4590 } 4591 if len(m.Progress) > 0 { 4592 i -= len(m.Progress) 4593 copy(dAtA[i:], m.Progress) 4594 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Progress))) 4595 i-- 4596 dAtA[i] = 0x1a 4597 } 4598 if m.TotalBytes != 0 { 4599 i = encodeVarintDmworker(dAtA, i, uint64(m.TotalBytes)) 4600 i-- 4601 dAtA[i] = 0x10 4602 } 4603 if m.FinishedBytes != 0 { 4604 i = encodeVarintDmworker(dAtA, i, uint64(m.FinishedBytes)) 4605 i-- 4606 dAtA[i] = 0x8 4607 } 4608 return len(dAtA) - i, nil 4609 } 4610 4611 func (m *ShardingGroup) Marshal() (dAtA []byte, err error) { 4612 size := m.Size() 4613 dAtA = make([]byte, size) 4614 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4615 if err != nil { 4616 return nil, err 4617 } 4618 return dAtA[:n], nil 4619 } 4620 4621 func (m *ShardingGroup) MarshalTo(dAtA []byte) (int, error) { 4622 size := m.Size() 4623 return m.MarshalToSizedBuffer(dAtA[:size]) 4624 } 4625 4626 func (m *ShardingGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4627 i := len(dAtA) 4628 _ = i 4629 var l int 4630 _ = l 4631 if len(m.Unsynced) > 0 { 4632 for iNdEx := len(m.Unsynced) - 1; iNdEx >= 0; iNdEx-- { 4633 i -= len(m.Unsynced[iNdEx]) 4634 copy(dAtA[i:], m.Unsynced[iNdEx]) 4635 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Unsynced[iNdEx]))) 4636 i-- 4637 dAtA[i] = 0x2a 4638 } 4639 } 4640 if len(m.Synced) > 0 { 4641 for iNdEx := len(m.Synced) - 1; iNdEx >= 0; iNdEx-- { 4642 i -= len(m.Synced[iNdEx]) 4643 copy(dAtA[i:], m.Synced[iNdEx]) 4644 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Synced[iNdEx]))) 4645 i-- 4646 dAtA[i] = 0x22 4647 } 4648 } 4649 if len(m.FirstLocation) > 0 { 4650 i -= len(m.FirstLocation) 4651 copy(dAtA[i:], m.FirstLocation) 4652 i = encodeVarintDmworker(dAtA, i, uint64(len(m.FirstLocation))) 4653 i-- 4654 dAtA[i] = 0x1a 4655 } 4656 if len(m.DDLs) > 0 { 4657 for iNdEx := len(m.DDLs) - 1; iNdEx >= 0; iNdEx-- { 4658 i -= len(m.DDLs[iNdEx]) 4659 copy(dAtA[i:], m.DDLs[iNdEx]) 4660 i = encodeVarintDmworker(dAtA, i, uint64(len(m.DDLs[iNdEx]))) 4661 i-- 4662 dAtA[i] = 0x12 4663 } 4664 } 4665 if len(m.Target) > 0 { 4666 i -= len(m.Target) 4667 copy(dAtA[i:], m.Target) 4668 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Target))) 4669 i-- 4670 dAtA[i] = 0xa 4671 } 4672 return len(dAtA) - i, nil 4673 } 4674 4675 func (m *SyncStatus) Marshal() (dAtA []byte, err error) { 4676 size := m.Size() 4677 dAtA = make([]byte, size) 4678 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4679 if err != nil { 4680 return nil, err 4681 } 4682 return dAtA[:n], nil 4683 } 4684 4685 func (m *SyncStatus) MarshalTo(dAtA []byte) (int, error) { 4686 size := m.Size() 4687 return m.MarshalToSizedBuffer(dAtA[:size]) 4688 } 4689 4690 func (m *SyncStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4691 i := len(dAtA) 4692 _ = i 4693 var l int 4694 _ = l 4695 if m.RecentRps != 0 { 4696 i = encodeVarintDmworker(dAtA, i, uint64(m.RecentRps)) 4697 i-- 4698 dAtA[i] = 0x1 4699 i-- 4700 dAtA[i] = 0x88 4701 } 4702 if m.TotalRps != 0 { 4703 i = encodeVarintDmworker(dAtA, i, uint64(m.TotalRps)) 4704 i-- 4705 dAtA[i] = 0x1 4706 i-- 4707 dAtA[i] = 0x80 4708 } 4709 if m.TotalRows != 0 { 4710 i = encodeVarintDmworker(dAtA, i, uint64(m.TotalRows)) 4711 i-- 4712 dAtA[i] = 0x78 4713 } 4714 if len(m.ConflictMsg) > 0 { 4715 i -= len(m.ConflictMsg) 4716 copy(dAtA[i:], m.ConflictMsg) 4717 i = encodeVarintDmworker(dAtA, i, uint64(len(m.ConflictMsg))) 4718 i-- 4719 dAtA[i] = 0x72 4720 } 4721 if len(m.BlockDDLOwner) > 0 { 4722 i -= len(m.BlockDDLOwner) 4723 copy(dAtA[i:], m.BlockDDLOwner) 4724 i = encodeVarintDmworker(dAtA, i, uint64(len(m.BlockDDLOwner))) 4725 i-- 4726 dAtA[i] = 0x6a 4727 } 4728 if m.SecondsBehindMaster != 0 { 4729 i = encodeVarintDmworker(dAtA, i, uint64(m.SecondsBehindMaster)) 4730 i-- 4731 dAtA[i] = 0x60 4732 } 4733 if len(m.BinlogType) > 0 { 4734 i -= len(m.BinlogType) 4735 copy(dAtA[i:], m.BinlogType) 4736 i = encodeVarintDmworker(dAtA, i, uint64(len(m.BinlogType))) 4737 i-- 4738 dAtA[i] = 0x5a 4739 } 4740 if m.Synced { 4741 i-- 4742 if m.Synced { 4743 dAtA[i] = 1 4744 } else { 4745 dAtA[i] = 0 4746 } 4747 i-- 4748 dAtA[i] = 0x50 4749 } 4750 if len(m.UnresolvedGroups) > 0 { 4751 for iNdEx := len(m.UnresolvedGroups) - 1; iNdEx >= 0; iNdEx-- { 4752 { 4753 size, err := m.UnresolvedGroups[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4754 if err != nil { 4755 return 0, err 4756 } 4757 i -= size 4758 i = encodeVarintDmworker(dAtA, i, uint64(size)) 4759 } 4760 i-- 4761 dAtA[i] = 0x4a 4762 } 4763 } 4764 if len(m.BlockingDDLs) > 0 { 4765 for iNdEx := len(m.BlockingDDLs) - 1; iNdEx >= 0; iNdEx-- { 4766 i -= len(m.BlockingDDLs[iNdEx]) 4767 copy(dAtA[i:], m.BlockingDDLs[iNdEx]) 4768 i = encodeVarintDmworker(dAtA, i, uint64(len(m.BlockingDDLs[iNdEx]))) 4769 i-- 4770 dAtA[i] = 0x42 4771 } 4772 } 4773 if len(m.SyncerBinlogGtid) > 0 { 4774 i -= len(m.SyncerBinlogGtid) 4775 copy(dAtA[i:], m.SyncerBinlogGtid) 4776 i = encodeVarintDmworker(dAtA, i, uint64(len(m.SyncerBinlogGtid))) 4777 i-- 4778 dAtA[i] = 0x3a 4779 } 4780 if len(m.SyncerBinlog) > 0 { 4781 i -= len(m.SyncerBinlog) 4782 copy(dAtA[i:], m.SyncerBinlog) 4783 i = encodeVarintDmworker(dAtA, i, uint64(len(m.SyncerBinlog))) 4784 i-- 4785 dAtA[i] = 0x32 4786 } 4787 if len(m.MasterBinlogGtid) > 0 { 4788 i -= len(m.MasterBinlogGtid) 4789 copy(dAtA[i:], m.MasterBinlogGtid) 4790 i = encodeVarintDmworker(dAtA, i, uint64(len(m.MasterBinlogGtid))) 4791 i-- 4792 dAtA[i] = 0x2a 4793 } 4794 if len(m.MasterBinlog) > 0 { 4795 i -= len(m.MasterBinlog) 4796 copy(dAtA[i:], m.MasterBinlog) 4797 i = encodeVarintDmworker(dAtA, i, uint64(len(m.MasterBinlog))) 4798 i-- 4799 dAtA[i] = 0x22 4800 } 4801 if m.RecentTps != 0 { 4802 i = encodeVarintDmworker(dAtA, i, uint64(m.RecentTps)) 4803 i-- 4804 dAtA[i] = 0x18 4805 } 4806 if m.TotalTps != 0 { 4807 i = encodeVarintDmworker(dAtA, i, uint64(m.TotalTps)) 4808 i-- 4809 dAtA[i] = 0x10 4810 } 4811 if m.TotalEvents != 0 { 4812 i = encodeVarintDmworker(dAtA, i, uint64(m.TotalEvents)) 4813 i-- 4814 dAtA[i] = 0x8 4815 } 4816 return len(dAtA) - i, nil 4817 } 4818 4819 func (m *SourceStatus) Marshal() (dAtA []byte, err error) { 4820 size := m.Size() 4821 dAtA = make([]byte, size) 4822 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4823 if err != nil { 4824 return nil, err 4825 } 4826 return dAtA[:n], nil 4827 } 4828 4829 func (m *SourceStatus) MarshalTo(dAtA []byte) (int, error) { 4830 size := m.Size() 4831 return m.MarshalToSizedBuffer(dAtA[:size]) 4832 } 4833 4834 func (m *SourceStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4835 i := len(dAtA) 4836 _ = i 4837 var l int 4838 _ = l 4839 if m.RelayStatus != nil { 4840 { 4841 size, err := m.RelayStatus.MarshalToSizedBuffer(dAtA[:i]) 4842 if err != nil { 4843 return 0, err 4844 } 4845 i -= size 4846 i = encodeVarintDmworker(dAtA, i, uint64(size)) 4847 } 4848 i-- 4849 dAtA[i] = 0x22 4850 } 4851 if m.Result != nil { 4852 { 4853 size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) 4854 if err != nil { 4855 return 0, err 4856 } 4857 i -= size 4858 i = encodeVarintDmworker(dAtA, i, uint64(size)) 4859 } 4860 i-- 4861 dAtA[i] = 0x1a 4862 } 4863 if len(m.Worker) > 0 { 4864 i -= len(m.Worker) 4865 copy(dAtA[i:], m.Worker) 4866 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Worker))) 4867 i-- 4868 dAtA[i] = 0x12 4869 } 4870 if len(m.Source) > 0 { 4871 i -= len(m.Source) 4872 copy(dAtA[i:], m.Source) 4873 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Source))) 4874 i-- 4875 dAtA[i] = 0xa 4876 } 4877 return len(dAtA) - i, nil 4878 } 4879 4880 func (m *RelayStatus) Marshal() (dAtA []byte, err error) { 4881 size := m.Size() 4882 dAtA = make([]byte, size) 4883 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4884 if err != nil { 4885 return nil, err 4886 } 4887 return dAtA[:n], nil 4888 } 4889 4890 func (m *RelayStatus) MarshalTo(dAtA []byte) (int, error) { 4891 size := m.Size() 4892 return m.MarshalToSizedBuffer(dAtA[:size]) 4893 } 4894 4895 func (m *RelayStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4896 i := len(dAtA) 4897 _ = i 4898 var l int 4899 _ = l 4900 if m.Result != nil { 4901 { 4902 size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) 4903 if err != nil { 4904 return 0, err 4905 } 4906 i -= size 4907 i = encodeVarintDmworker(dAtA, i, uint64(size)) 4908 } 4909 i-- 4910 dAtA[i] = 0x42 4911 } 4912 if m.Stage != 0 { 4913 i = encodeVarintDmworker(dAtA, i, uint64(m.Stage)) 4914 i-- 4915 dAtA[i] = 0x38 4916 } 4917 if m.RelayCatchUpMaster { 4918 i-- 4919 if m.RelayCatchUpMaster { 4920 dAtA[i] = 1 4921 } else { 4922 dAtA[i] = 0 4923 } 4924 i-- 4925 dAtA[i] = 0x30 4926 } 4927 if len(m.RelayBinlogGtid) > 0 { 4928 i -= len(m.RelayBinlogGtid) 4929 copy(dAtA[i:], m.RelayBinlogGtid) 4930 i = encodeVarintDmworker(dAtA, i, uint64(len(m.RelayBinlogGtid))) 4931 i-- 4932 dAtA[i] = 0x2a 4933 } 4934 if len(m.RelayBinlog) > 0 { 4935 i -= len(m.RelayBinlog) 4936 copy(dAtA[i:], m.RelayBinlog) 4937 i = encodeVarintDmworker(dAtA, i, uint64(len(m.RelayBinlog))) 4938 i-- 4939 dAtA[i] = 0x22 4940 } 4941 if len(m.RelaySubDir) > 0 { 4942 i -= len(m.RelaySubDir) 4943 copy(dAtA[i:], m.RelaySubDir) 4944 i = encodeVarintDmworker(dAtA, i, uint64(len(m.RelaySubDir))) 4945 i-- 4946 dAtA[i] = 0x1a 4947 } 4948 if len(m.MasterBinlogGtid) > 0 { 4949 i -= len(m.MasterBinlogGtid) 4950 copy(dAtA[i:], m.MasterBinlogGtid) 4951 i = encodeVarintDmworker(dAtA, i, uint64(len(m.MasterBinlogGtid))) 4952 i-- 4953 dAtA[i] = 0x12 4954 } 4955 if len(m.MasterBinlog) > 0 { 4956 i -= len(m.MasterBinlog) 4957 copy(dAtA[i:], m.MasterBinlog) 4958 i = encodeVarintDmworker(dAtA, i, uint64(len(m.MasterBinlog))) 4959 i-- 4960 dAtA[i] = 0xa 4961 } 4962 return len(dAtA) - i, nil 4963 } 4964 4965 func (m *SubTaskStatus) Marshal() (dAtA []byte, err error) { 4966 size := m.Size() 4967 dAtA = make([]byte, size) 4968 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4969 if err != nil { 4970 return nil, err 4971 } 4972 return dAtA[:n], nil 4973 } 4974 4975 func (m *SubTaskStatus) MarshalTo(dAtA []byte) (int, error) { 4976 size := m.Size() 4977 return m.MarshalToSizedBuffer(dAtA[:size]) 4978 } 4979 4980 func (m *SubTaskStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4981 i := len(dAtA) 4982 _ = i 4983 var l int 4984 _ = l 4985 if m.Validation != nil { 4986 { 4987 size, err := m.Validation.MarshalToSizedBuffer(dAtA[:i]) 4988 if err != nil { 4989 return 0, err 4990 } 4991 i -= size 4992 i = encodeVarintDmworker(dAtA, i, uint64(size)) 4993 } 4994 i-- 4995 dAtA[i] = 0x5a 4996 } 4997 if m.Status != nil { 4998 { 4999 size := m.Status.Size() 5000 i -= size 5001 if _, err := m.Status.MarshalTo(dAtA[i:]); err != nil { 5002 return 0, err 5003 } 5004 } 5005 } 5006 if len(m.UnresolvedDDLLockID) > 0 { 5007 i -= len(m.UnresolvedDDLLockID) 5008 copy(dAtA[i:], m.UnresolvedDDLLockID) 5009 i = encodeVarintDmworker(dAtA, i, uint64(len(m.UnresolvedDDLLockID))) 5010 i-- 5011 dAtA[i] = 0x2a 5012 } 5013 if m.Result != nil { 5014 { 5015 size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) 5016 if err != nil { 5017 return 0, err 5018 } 5019 i -= size 5020 i = encodeVarintDmworker(dAtA, i, uint64(size)) 5021 } 5022 i-- 5023 dAtA[i] = 0x22 5024 } 5025 if m.Unit != 0 { 5026 i = encodeVarintDmworker(dAtA, i, uint64(m.Unit)) 5027 i-- 5028 dAtA[i] = 0x18 5029 } 5030 if m.Stage != 0 { 5031 i = encodeVarintDmworker(dAtA, i, uint64(m.Stage)) 5032 i-- 5033 dAtA[i] = 0x10 5034 } 5035 if len(m.Name) > 0 { 5036 i -= len(m.Name) 5037 copy(dAtA[i:], m.Name) 5038 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) 5039 i-- 5040 dAtA[i] = 0xa 5041 } 5042 return len(dAtA) - i, nil 5043 } 5044 5045 func (m *SubTaskStatus_Msg) MarshalTo(dAtA []byte) (int, error) { 5046 size := m.Size() 5047 return m.MarshalToSizedBuffer(dAtA[:size]) 5048 } 5049 5050 func (m *SubTaskStatus_Msg) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5051 i := len(dAtA) 5052 i -= len(m.Msg) 5053 copy(dAtA[i:], m.Msg) 5054 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) 5055 i-- 5056 dAtA[i] = 0x32 5057 return len(dAtA) - i, nil 5058 } 5059 func (m *SubTaskStatus_Check) MarshalTo(dAtA []byte) (int, error) { 5060 size := m.Size() 5061 return m.MarshalToSizedBuffer(dAtA[:size]) 5062 } 5063 5064 func (m *SubTaskStatus_Check) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5065 i := len(dAtA) 5066 if m.Check != nil { 5067 { 5068 size, err := m.Check.MarshalToSizedBuffer(dAtA[:i]) 5069 if err != nil { 5070 return 0, err 5071 } 5072 i -= size 5073 i = encodeVarintDmworker(dAtA, i, uint64(size)) 5074 } 5075 i-- 5076 dAtA[i] = 0x3a 5077 } 5078 return len(dAtA) - i, nil 5079 } 5080 func (m *SubTaskStatus_Dump) MarshalTo(dAtA []byte) (int, error) { 5081 size := m.Size() 5082 return m.MarshalToSizedBuffer(dAtA[:size]) 5083 } 5084 5085 func (m *SubTaskStatus_Dump) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5086 i := len(dAtA) 5087 if m.Dump != nil { 5088 { 5089 size, err := m.Dump.MarshalToSizedBuffer(dAtA[:i]) 5090 if err != nil { 5091 return 0, err 5092 } 5093 i -= size 5094 i = encodeVarintDmworker(dAtA, i, uint64(size)) 5095 } 5096 i-- 5097 dAtA[i] = 0x42 5098 } 5099 return len(dAtA) - i, nil 5100 } 5101 func (m *SubTaskStatus_Load) MarshalTo(dAtA []byte) (int, error) { 5102 size := m.Size() 5103 return m.MarshalToSizedBuffer(dAtA[:size]) 5104 } 5105 5106 func (m *SubTaskStatus_Load) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5107 i := len(dAtA) 5108 if m.Load != nil { 5109 { 5110 size, err := m.Load.MarshalToSizedBuffer(dAtA[:i]) 5111 if err != nil { 5112 return 0, err 5113 } 5114 i -= size 5115 i = encodeVarintDmworker(dAtA, i, uint64(size)) 5116 } 5117 i-- 5118 dAtA[i] = 0x4a 5119 } 5120 return len(dAtA) - i, nil 5121 } 5122 func (m *SubTaskStatus_Sync) MarshalTo(dAtA []byte) (int, error) { 5123 size := m.Size() 5124 return m.MarshalToSizedBuffer(dAtA[:size]) 5125 } 5126 5127 func (m *SubTaskStatus_Sync) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5128 i := len(dAtA) 5129 if m.Sync != nil { 5130 { 5131 size, err := m.Sync.MarshalToSizedBuffer(dAtA[:i]) 5132 if err != nil { 5133 return 0, err 5134 } 5135 i -= size 5136 i = encodeVarintDmworker(dAtA, i, uint64(size)) 5137 } 5138 i-- 5139 dAtA[i] = 0x52 5140 } 5141 return len(dAtA) - i, nil 5142 } 5143 func (m *SubTaskStatusList) Marshal() (dAtA []byte, err error) { 5144 size := m.Size() 5145 dAtA = make([]byte, size) 5146 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5147 if err != nil { 5148 return nil, err 5149 } 5150 return dAtA[:n], nil 5151 } 5152 5153 func (m *SubTaskStatusList) MarshalTo(dAtA []byte) (int, error) { 5154 size := m.Size() 5155 return m.MarshalToSizedBuffer(dAtA[:size]) 5156 } 5157 5158 func (m *SubTaskStatusList) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5159 i := len(dAtA) 5160 _ = i 5161 var l int 5162 _ = l 5163 if len(m.Status) > 0 { 5164 for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { 5165 { 5166 size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5167 if err != nil { 5168 return 0, err 5169 } 5170 i -= size 5171 i = encodeVarintDmworker(dAtA, i, uint64(size)) 5172 } 5173 i-- 5174 dAtA[i] = 0xa 5175 } 5176 } 5177 return len(dAtA) - i, nil 5178 } 5179 5180 func (m *CheckError) Marshal() (dAtA []byte, err error) { 5181 size := m.Size() 5182 dAtA = make([]byte, size) 5183 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5184 if err != nil { 5185 return nil, err 5186 } 5187 return dAtA[:n], nil 5188 } 5189 5190 func (m *CheckError) MarshalTo(dAtA []byte) (int, error) { 5191 size := m.Size() 5192 return m.MarshalToSizedBuffer(dAtA[:size]) 5193 } 5194 5195 func (m *CheckError) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5196 i := len(dAtA) 5197 _ = i 5198 var l int 5199 _ = l 5200 if len(m.Msg) > 0 { 5201 i -= len(m.Msg) 5202 copy(dAtA[i:], m.Msg) 5203 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) 5204 i-- 5205 dAtA[i] = 0xa 5206 } 5207 return len(dAtA) - i, nil 5208 } 5209 5210 func (m *DumpError) Marshal() (dAtA []byte, err error) { 5211 size := m.Size() 5212 dAtA = make([]byte, size) 5213 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5214 if err != nil { 5215 return nil, err 5216 } 5217 return dAtA[:n], nil 5218 } 5219 5220 func (m *DumpError) MarshalTo(dAtA []byte) (int, error) { 5221 size := m.Size() 5222 return m.MarshalToSizedBuffer(dAtA[:size]) 5223 } 5224 5225 func (m *DumpError) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5226 i := len(dAtA) 5227 _ = i 5228 var l int 5229 _ = l 5230 if len(m.Msg) > 0 { 5231 i -= len(m.Msg) 5232 copy(dAtA[i:], m.Msg) 5233 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) 5234 i-- 5235 dAtA[i] = 0xa 5236 } 5237 return len(dAtA) - i, nil 5238 } 5239 5240 func (m *LoadError) Marshal() (dAtA []byte, err error) { 5241 size := m.Size() 5242 dAtA = make([]byte, size) 5243 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5244 if err != nil { 5245 return nil, err 5246 } 5247 return dAtA[:n], nil 5248 } 5249 5250 func (m *LoadError) MarshalTo(dAtA []byte) (int, error) { 5251 size := m.Size() 5252 return m.MarshalToSizedBuffer(dAtA[:size]) 5253 } 5254 5255 func (m *LoadError) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5256 i := len(dAtA) 5257 _ = i 5258 var l int 5259 _ = l 5260 if len(m.Msg) > 0 { 5261 i -= len(m.Msg) 5262 copy(dAtA[i:], m.Msg) 5263 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) 5264 i-- 5265 dAtA[i] = 0xa 5266 } 5267 return len(dAtA) - i, nil 5268 } 5269 5270 func (m *SyncSQLError) Marshal() (dAtA []byte, err error) { 5271 size := m.Size() 5272 dAtA = make([]byte, size) 5273 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5274 if err != nil { 5275 return nil, err 5276 } 5277 return dAtA[:n], nil 5278 } 5279 5280 func (m *SyncSQLError) MarshalTo(dAtA []byte) (int, error) { 5281 size := m.Size() 5282 return m.MarshalToSizedBuffer(dAtA[:size]) 5283 } 5284 5285 func (m *SyncSQLError) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5286 i := len(dAtA) 5287 _ = i 5288 var l int 5289 _ = l 5290 if len(m.ErrorSQL) > 0 { 5291 i -= len(m.ErrorSQL) 5292 copy(dAtA[i:], m.ErrorSQL) 5293 i = encodeVarintDmworker(dAtA, i, uint64(len(m.ErrorSQL))) 5294 i-- 5295 dAtA[i] = 0x1a 5296 } 5297 if len(m.FailedBinlogPosition) > 0 { 5298 i -= len(m.FailedBinlogPosition) 5299 copy(dAtA[i:], m.FailedBinlogPosition) 5300 i = encodeVarintDmworker(dAtA, i, uint64(len(m.FailedBinlogPosition))) 5301 i-- 5302 dAtA[i] = 0x12 5303 } 5304 if len(m.Msg) > 0 { 5305 i -= len(m.Msg) 5306 copy(dAtA[i:], m.Msg) 5307 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) 5308 i-- 5309 dAtA[i] = 0xa 5310 } 5311 return len(dAtA) - i, nil 5312 } 5313 5314 func (m *SyncError) Marshal() (dAtA []byte, err error) { 5315 size := m.Size() 5316 dAtA = make([]byte, size) 5317 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5318 if err != nil { 5319 return nil, err 5320 } 5321 return dAtA[:n], nil 5322 } 5323 5324 func (m *SyncError) MarshalTo(dAtA []byte) (int, error) { 5325 size := m.Size() 5326 return m.MarshalToSizedBuffer(dAtA[:size]) 5327 } 5328 5329 func (m *SyncError) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5330 i := len(dAtA) 5331 _ = i 5332 var l int 5333 _ = l 5334 if len(m.Errors) > 0 { 5335 for iNdEx := len(m.Errors) - 1; iNdEx >= 0; iNdEx-- { 5336 { 5337 size, err := m.Errors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5338 if err != nil { 5339 return 0, err 5340 } 5341 i -= size 5342 i = encodeVarintDmworker(dAtA, i, uint64(size)) 5343 } 5344 i-- 5345 dAtA[i] = 0xa 5346 } 5347 } 5348 return len(dAtA) - i, nil 5349 } 5350 5351 func (m *SourceError) Marshal() (dAtA []byte, err error) { 5352 size := m.Size() 5353 dAtA = make([]byte, size) 5354 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5355 if err != nil { 5356 return nil, err 5357 } 5358 return dAtA[:n], nil 5359 } 5360 5361 func (m *SourceError) MarshalTo(dAtA []byte) (int, error) { 5362 size := m.Size() 5363 return m.MarshalToSizedBuffer(dAtA[:size]) 5364 } 5365 5366 func (m *SourceError) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5367 i := len(dAtA) 5368 _ = i 5369 var l int 5370 _ = l 5371 if m.RelayError != nil { 5372 { 5373 size, err := m.RelayError.MarshalToSizedBuffer(dAtA[:i]) 5374 if err != nil { 5375 return 0, err 5376 } 5377 i -= size 5378 i = encodeVarintDmworker(dAtA, i, uint64(size)) 5379 } 5380 i-- 5381 dAtA[i] = 0x22 5382 } 5383 if len(m.SourceError) > 0 { 5384 i -= len(m.SourceError) 5385 copy(dAtA[i:], m.SourceError) 5386 i = encodeVarintDmworker(dAtA, i, uint64(len(m.SourceError))) 5387 i-- 5388 dAtA[i] = 0x1a 5389 } 5390 if len(m.Worker) > 0 { 5391 i -= len(m.Worker) 5392 copy(dAtA[i:], m.Worker) 5393 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Worker))) 5394 i-- 5395 dAtA[i] = 0x12 5396 } 5397 if len(m.Source) > 0 { 5398 i -= len(m.Source) 5399 copy(dAtA[i:], m.Source) 5400 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Source))) 5401 i-- 5402 dAtA[i] = 0xa 5403 } 5404 return len(dAtA) - i, nil 5405 } 5406 5407 func (m *RelayError) Marshal() (dAtA []byte, err error) { 5408 size := m.Size() 5409 dAtA = make([]byte, size) 5410 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5411 if err != nil { 5412 return nil, err 5413 } 5414 return dAtA[:n], nil 5415 } 5416 5417 func (m *RelayError) MarshalTo(dAtA []byte) (int, error) { 5418 size := m.Size() 5419 return m.MarshalToSizedBuffer(dAtA[:size]) 5420 } 5421 5422 func (m *RelayError) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5423 i := len(dAtA) 5424 _ = i 5425 var l int 5426 _ = l 5427 if len(m.Msg) > 0 { 5428 i -= len(m.Msg) 5429 copy(dAtA[i:], m.Msg) 5430 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) 5431 i-- 5432 dAtA[i] = 0xa 5433 } 5434 return len(dAtA) - i, nil 5435 } 5436 5437 func (m *SubTaskError) Marshal() (dAtA []byte, err error) { 5438 size := m.Size() 5439 dAtA = make([]byte, size) 5440 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5441 if err != nil { 5442 return nil, err 5443 } 5444 return dAtA[:n], nil 5445 } 5446 5447 func (m *SubTaskError) MarshalTo(dAtA []byte) (int, error) { 5448 size := m.Size() 5449 return m.MarshalToSizedBuffer(dAtA[:size]) 5450 } 5451 5452 func (m *SubTaskError) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5453 i := len(dAtA) 5454 _ = i 5455 var l int 5456 _ = l 5457 if m.Error != nil { 5458 { 5459 size := m.Error.Size() 5460 i -= size 5461 if _, err := m.Error.MarshalTo(dAtA[i:]); err != nil { 5462 return 0, err 5463 } 5464 } 5465 } 5466 if m.Unit != 0 { 5467 i = encodeVarintDmworker(dAtA, i, uint64(m.Unit)) 5468 i-- 5469 dAtA[i] = 0x18 5470 } 5471 if m.Stage != 0 { 5472 i = encodeVarintDmworker(dAtA, i, uint64(m.Stage)) 5473 i-- 5474 dAtA[i] = 0x10 5475 } 5476 if len(m.Name) > 0 { 5477 i -= len(m.Name) 5478 copy(dAtA[i:], m.Name) 5479 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) 5480 i-- 5481 dAtA[i] = 0xa 5482 } 5483 return len(dAtA) - i, nil 5484 } 5485 5486 func (m *SubTaskError_Msg) MarshalTo(dAtA []byte) (int, error) { 5487 size := m.Size() 5488 return m.MarshalToSizedBuffer(dAtA[:size]) 5489 } 5490 5491 func (m *SubTaskError_Msg) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5492 i := len(dAtA) 5493 i -= len(m.Msg) 5494 copy(dAtA[i:], m.Msg) 5495 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) 5496 i-- 5497 dAtA[i] = 0x22 5498 return len(dAtA) - i, nil 5499 } 5500 func (m *SubTaskError_Check) MarshalTo(dAtA []byte) (int, error) { 5501 size := m.Size() 5502 return m.MarshalToSizedBuffer(dAtA[:size]) 5503 } 5504 5505 func (m *SubTaskError_Check) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5506 i := len(dAtA) 5507 if m.Check != nil { 5508 { 5509 size, err := m.Check.MarshalToSizedBuffer(dAtA[:i]) 5510 if err != nil { 5511 return 0, err 5512 } 5513 i -= size 5514 i = encodeVarintDmworker(dAtA, i, uint64(size)) 5515 } 5516 i-- 5517 dAtA[i] = 0x2a 5518 } 5519 return len(dAtA) - i, nil 5520 } 5521 func (m *SubTaskError_Dump) MarshalTo(dAtA []byte) (int, error) { 5522 size := m.Size() 5523 return m.MarshalToSizedBuffer(dAtA[:size]) 5524 } 5525 5526 func (m *SubTaskError_Dump) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5527 i := len(dAtA) 5528 if m.Dump != nil { 5529 { 5530 size, err := m.Dump.MarshalToSizedBuffer(dAtA[:i]) 5531 if err != nil { 5532 return 0, err 5533 } 5534 i -= size 5535 i = encodeVarintDmworker(dAtA, i, uint64(size)) 5536 } 5537 i-- 5538 dAtA[i] = 0x32 5539 } 5540 return len(dAtA) - i, nil 5541 } 5542 func (m *SubTaskError_Load) MarshalTo(dAtA []byte) (int, error) { 5543 size := m.Size() 5544 return m.MarshalToSizedBuffer(dAtA[:size]) 5545 } 5546 5547 func (m *SubTaskError_Load) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5548 i := len(dAtA) 5549 if m.Load != nil { 5550 { 5551 size, err := m.Load.MarshalToSizedBuffer(dAtA[:i]) 5552 if err != nil { 5553 return 0, err 5554 } 5555 i -= size 5556 i = encodeVarintDmworker(dAtA, i, uint64(size)) 5557 } 5558 i-- 5559 dAtA[i] = 0x3a 5560 } 5561 return len(dAtA) - i, nil 5562 } 5563 func (m *SubTaskError_Sync) MarshalTo(dAtA []byte) (int, error) { 5564 size := m.Size() 5565 return m.MarshalToSizedBuffer(dAtA[:size]) 5566 } 5567 5568 func (m *SubTaskError_Sync) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5569 i := len(dAtA) 5570 if m.Sync != nil { 5571 { 5572 size, err := m.Sync.MarshalToSizedBuffer(dAtA[:i]) 5573 if err != nil { 5574 return 0, err 5575 } 5576 i -= size 5577 i = encodeVarintDmworker(dAtA, i, uint64(size)) 5578 } 5579 i-- 5580 dAtA[i] = 0x42 5581 } 5582 return len(dAtA) - i, nil 5583 } 5584 func (m *SubTaskErrorList) Marshal() (dAtA []byte, err error) { 5585 size := m.Size() 5586 dAtA = make([]byte, size) 5587 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5588 if err != nil { 5589 return nil, err 5590 } 5591 return dAtA[:n], nil 5592 } 5593 5594 func (m *SubTaskErrorList) MarshalTo(dAtA []byte) (int, error) { 5595 size := m.Size() 5596 return m.MarshalToSizedBuffer(dAtA[:size]) 5597 } 5598 5599 func (m *SubTaskErrorList) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5600 i := len(dAtA) 5601 _ = i 5602 var l int 5603 _ = l 5604 if len(m.Error) > 0 { 5605 for iNdEx := len(m.Error) - 1; iNdEx >= 0; iNdEx-- { 5606 { 5607 size, err := m.Error[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5608 if err != nil { 5609 return 0, err 5610 } 5611 i -= size 5612 i = encodeVarintDmworker(dAtA, i, uint64(size)) 5613 } 5614 i-- 5615 dAtA[i] = 0xa 5616 } 5617 } 5618 return len(dAtA) - i, nil 5619 } 5620 5621 func (m *ProcessResult) Marshal() (dAtA []byte, err error) { 5622 size := m.Size() 5623 dAtA = make([]byte, size) 5624 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5625 if err != nil { 5626 return nil, err 5627 } 5628 return dAtA[:n], nil 5629 } 5630 5631 func (m *ProcessResult) MarshalTo(dAtA []byte) (int, error) { 5632 size := m.Size() 5633 return m.MarshalToSizedBuffer(dAtA[:size]) 5634 } 5635 5636 func (m *ProcessResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5637 i := len(dAtA) 5638 _ = i 5639 var l int 5640 _ = l 5641 if len(m.Detail) > 0 { 5642 i -= len(m.Detail) 5643 copy(dAtA[i:], m.Detail) 5644 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Detail))) 5645 i-- 5646 dAtA[i] = 0x1a 5647 } 5648 if len(m.Errors) > 0 { 5649 for iNdEx := len(m.Errors) - 1; iNdEx >= 0; iNdEx-- { 5650 { 5651 size, err := m.Errors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5652 if err != nil { 5653 return 0, err 5654 } 5655 i -= size 5656 i = encodeVarintDmworker(dAtA, i, uint64(size)) 5657 } 5658 i-- 5659 dAtA[i] = 0x12 5660 } 5661 } 5662 if m.IsCanceled { 5663 i-- 5664 if m.IsCanceled { 5665 dAtA[i] = 1 5666 } else { 5667 dAtA[i] = 0 5668 } 5669 i-- 5670 dAtA[i] = 0x8 5671 } 5672 return len(dAtA) - i, nil 5673 } 5674 5675 func (m *ProcessError) Marshal() (dAtA []byte, err error) { 5676 size := m.Size() 5677 dAtA = make([]byte, size) 5678 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5679 if err != nil { 5680 return nil, err 5681 } 5682 return dAtA[:n], nil 5683 } 5684 5685 func (m *ProcessError) MarshalTo(dAtA []byte) (int, error) { 5686 size := m.Size() 5687 return m.MarshalToSizedBuffer(dAtA[:size]) 5688 } 5689 5690 func (m *ProcessError) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5691 i := len(dAtA) 5692 _ = i 5693 var l int 5694 _ = l 5695 if len(m.Workaround) > 0 { 5696 i -= len(m.Workaround) 5697 copy(dAtA[i:], m.Workaround) 5698 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Workaround))) 5699 i-- 5700 dAtA[i] = 0x3a 5701 } 5702 if len(m.RawCause) > 0 { 5703 i -= len(m.RawCause) 5704 copy(dAtA[i:], m.RawCause) 5705 i = encodeVarintDmworker(dAtA, i, uint64(len(m.RawCause))) 5706 i-- 5707 dAtA[i] = 0x32 5708 } 5709 if len(m.Message) > 0 { 5710 i -= len(m.Message) 5711 copy(dAtA[i:], m.Message) 5712 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Message))) 5713 i-- 5714 dAtA[i] = 0x2a 5715 } 5716 if len(m.ErrLevel) > 0 { 5717 i -= len(m.ErrLevel) 5718 copy(dAtA[i:], m.ErrLevel) 5719 i = encodeVarintDmworker(dAtA, i, uint64(len(m.ErrLevel))) 5720 i-- 5721 dAtA[i] = 0x22 5722 } 5723 if len(m.ErrScope) > 0 { 5724 i -= len(m.ErrScope) 5725 copy(dAtA[i:], m.ErrScope) 5726 i = encodeVarintDmworker(dAtA, i, uint64(len(m.ErrScope))) 5727 i-- 5728 dAtA[i] = 0x1a 5729 } 5730 if len(m.ErrClass) > 0 { 5731 i -= len(m.ErrClass) 5732 copy(dAtA[i:], m.ErrClass) 5733 i = encodeVarintDmworker(dAtA, i, uint64(len(m.ErrClass))) 5734 i-- 5735 dAtA[i] = 0x12 5736 } 5737 if m.ErrCode != 0 { 5738 i = encodeVarintDmworker(dAtA, i, uint64(m.ErrCode)) 5739 i-- 5740 dAtA[i] = 0x8 5741 } 5742 return len(dAtA) - i, nil 5743 } 5744 5745 func (m *PurgeRelayRequest) Marshal() (dAtA []byte, err error) { 5746 size := m.Size() 5747 dAtA = make([]byte, size) 5748 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5749 if err != nil { 5750 return nil, err 5751 } 5752 return dAtA[:n], nil 5753 } 5754 5755 func (m *PurgeRelayRequest) MarshalTo(dAtA []byte) (int, error) { 5756 size := m.Size() 5757 return m.MarshalToSizedBuffer(dAtA[:size]) 5758 } 5759 5760 func (m *PurgeRelayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5761 i := len(dAtA) 5762 _ = i 5763 var l int 5764 _ = l 5765 if len(m.SubDir) > 0 { 5766 i -= len(m.SubDir) 5767 copy(dAtA[i:], m.SubDir) 5768 i = encodeVarintDmworker(dAtA, i, uint64(len(m.SubDir))) 5769 i-- 5770 dAtA[i] = 0x22 5771 } 5772 if len(m.Filename) > 0 { 5773 i -= len(m.Filename) 5774 copy(dAtA[i:], m.Filename) 5775 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Filename))) 5776 i-- 5777 dAtA[i] = 0x1a 5778 } 5779 if m.Time != 0 { 5780 i = encodeVarintDmworker(dAtA, i, uint64(m.Time)) 5781 i-- 5782 dAtA[i] = 0x10 5783 } 5784 if m.Inactive { 5785 i-- 5786 if m.Inactive { 5787 dAtA[i] = 1 5788 } else { 5789 dAtA[i] = 0 5790 } 5791 i-- 5792 dAtA[i] = 0x8 5793 } 5794 return len(dAtA) - i, nil 5795 } 5796 5797 func (m *OperateWorkerSchemaRequest) Marshal() (dAtA []byte, err error) { 5798 size := m.Size() 5799 dAtA = make([]byte, size) 5800 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5801 if err != nil { 5802 return nil, err 5803 } 5804 return dAtA[:n], nil 5805 } 5806 5807 func (m *OperateWorkerSchemaRequest) MarshalTo(dAtA []byte) (int, error) { 5808 size := m.Size() 5809 return m.MarshalToSizedBuffer(dAtA[:size]) 5810 } 5811 5812 func (m *OperateWorkerSchemaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5813 i := len(dAtA) 5814 _ = i 5815 var l int 5816 _ = l 5817 if m.FromTarget { 5818 i-- 5819 if m.FromTarget { 5820 dAtA[i] = 1 5821 } else { 5822 dAtA[i] = 0 5823 } 5824 i-- 5825 dAtA[i] = 0x50 5826 } 5827 if m.FromSource { 5828 i-- 5829 if m.FromSource { 5830 dAtA[i] = 1 5831 } else { 5832 dAtA[i] = 0 5833 } 5834 i-- 5835 dAtA[i] = 0x48 5836 } 5837 if m.Sync { 5838 i-- 5839 if m.Sync { 5840 dAtA[i] = 1 5841 } else { 5842 dAtA[i] = 0 5843 } 5844 i-- 5845 dAtA[i] = 0x40 5846 } 5847 if m.Flush { 5848 i-- 5849 if m.Flush { 5850 dAtA[i] = 1 5851 } else { 5852 dAtA[i] = 0 5853 } 5854 i-- 5855 dAtA[i] = 0x38 5856 } 5857 if len(m.Schema) > 0 { 5858 i -= len(m.Schema) 5859 copy(dAtA[i:], m.Schema) 5860 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Schema))) 5861 i-- 5862 dAtA[i] = 0x32 5863 } 5864 if len(m.Table) > 0 { 5865 i -= len(m.Table) 5866 copy(dAtA[i:], m.Table) 5867 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Table))) 5868 i-- 5869 dAtA[i] = 0x2a 5870 } 5871 if len(m.Database) > 0 { 5872 i -= len(m.Database) 5873 copy(dAtA[i:], m.Database) 5874 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Database))) 5875 i-- 5876 dAtA[i] = 0x22 5877 } 5878 if len(m.Source) > 0 { 5879 i -= len(m.Source) 5880 copy(dAtA[i:], m.Source) 5881 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Source))) 5882 i-- 5883 dAtA[i] = 0x1a 5884 } 5885 if len(m.Task) > 0 { 5886 i -= len(m.Task) 5887 copy(dAtA[i:], m.Task) 5888 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) 5889 i-- 5890 dAtA[i] = 0x12 5891 } 5892 if m.Op != 0 { 5893 i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) 5894 i-- 5895 dAtA[i] = 0x8 5896 } 5897 return len(dAtA) - i, nil 5898 } 5899 5900 func (m *V1SubTaskMeta) Marshal() (dAtA []byte, err error) { 5901 size := m.Size() 5902 dAtA = make([]byte, size) 5903 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5904 if err != nil { 5905 return nil, err 5906 } 5907 return dAtA[:n], nil 5908 } 5909 5910 func (m *V1SubTaskMeta) MarshalTo(dAtA []byte) (int, error) { 5911 size := m.Size() 5912 return m.MarshalToSizedBuffer(dAtA[:size]) 5913 } 5914 5915 func (m *V1SubTaskMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5916 i := len(dAtA) 5917 _ = i 5918 var l int 5919 _ = l 5920 if len(m.Task) > 0 { 5921 i -= len(m.Task) 5922 copy(dAtA[i:], m.Task) 5923 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) 5924 i-- 5925 dAtA[i] = 0x22 5926 } 5927 if len(m.Name) > 0 { 5928 i -= len(m.Name) 5929 copy(dAtA[i:], m.Name) 5930 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) 5931 i-- 5932 dAtA[i] = 0x1a 5933 } 5934 if m.Stage != 0 { 5935 i = encodeVarintDmworker(dAtA, i, uint64(m.Stage)) 5936 i-- 5937 dAtA[i] = 0x10 5938 } 5939 if m.Op != 0 { 5940 i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) 5941 i-- 5942 dAtA[i] = 0x8 5943 } 5944 return len(dAtA) - i, nil 5945 } 5946 5947 func (m *OperateV1MetaRequest) Marshal() (dAtA []byte, err error) { 5948 size := m.Size() 5949 dAtA = make([]byte, size) 5950 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5951 if err != nil { 5952 return nil, err 5953 } 5954 return dAtA[:n], nil 5955 } 5956 5957 func (m *OperateV1MetaRequest) MarshalTo(dAtA []byte) (int, error) { 5958 size := m.Size() 5959 return m.MarshalToSizedBuffer(dAtA[:size]) 5960 } 5961 5962 func (m *OperateV1MetaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5963 i := len(dAtA) 5964 _ = i 5965 var l int 5966 _ = l 5967 if m.Op != 0 { 5968 i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) 5969 i-- 5970 dAtA[i] = 0x8 5971 } 5972 return len(dAtA) - i, nil 5973 } 5974 5975 func (m *OperateV1MetaResponse) Marshal() (dAtA []byte, err error) { 5976 size := m.Size() 5977 dAtA = make([]byte, size) 5978 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5979 if err != nil { 5980 return nil, err 5981 } 5982 return dAtA[:n], nil 5983 } 5984 5985 func (m *OperateV1MetaResponse) MarshalTo(dAtA []byte) (int, error) { 5986 size := m.Size() 5987 return m.MarshalToSizedBuffer(dAtA[:size]) 5988 } 5989 5990 func (m *OperateV1MetaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5991 i := len(dAtA) 5992 _ = i 5993 var l int 5994 _ = l 5995 if len(m.Meta) > 0 { 5996 for k := range m.Meta { 5997 v := m.Meta[k] 5998 baseI := i 5999 if v != nil { 6000 { 6001 size, err := v.MarshalToSizedBuffer(dAtA[:i]) 6002 if err != nil { 6003 return 0, err 6004 } 6005 i -= size 6006 i = encodeVarintDmworker(dAtA, i, uint64(size)) 6007 } 6008 i-- 6009 dAtA[i] = 0x12 6010 } 6011 i -= len(k) 6012 copy(dAtA[i:], k) 6013 i = encodeVarintDmworker(dAtA, i, uint64(len(k))) 6014 i-- 6015 dAtA[i] = 0xa 6016 i = encodeVarintDmworker(dAtA, i, uint64(baseI-i)) 6017 i-- 6018 dAtA[i] = 0x1a 6019 } 6020 } 6021 if len(m.Msg) > 0 { 6022 i -= len(m.Msg) 6023 copy(dAtA[i:], m.Msg) 6024 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) 6025 i-- 6026 dAtA[i] = 0x12 6027 } 6028 if m.Result { 6029 i-- 6030 if m.Result { 6031 dAtA[i] = 1 6032 } else { 6033 dAtA[i] = 0 6034 } 6035 i-- 6036 dAtA[i] = 0x8 6037 } 6038 return len(dAtA) - i, nil 6039 } 6040 6041 func (m *HandleWorkerErrorRequest) Marshal() (dAtA []byte, err error) { 6042 size := m.Size() 6043 dAtA = make([]byte, size) 6044 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6045 if err != nil { 6046 return nil, err 6047 } 6048 return dAtA[:n], nil 6049 } 6050 6051 func (m *HandleWorkerErrorRequest) MarshalTo(dAtA []byte) (int, error) { 6052 size := m.Size() 6053 return m.MarshalToSizedBuffer(dAtA[:size]) 6054 } 6055 6056 func (m *HandleWorkerErrorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6057 i := len(dAtA) 6058 _ = i 6059 var l int 6060 _ = l 6061 if len(m.Sqls) > 0 { 6062 for iNdEx := len(m.Sqls) - 1; iNdEx >= 0; iNdEx-- { 6063 i -= len(m.Sqls[iNdEx]) 6064 copy(dAtA[i:], m.Sqls[iNdEx]) 6065 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Sqls[iNdEx]))) 6066 i-- 6067 dAtA[i] = 0x22 6068 } 6069 } 6070 if len(m.BinlogPos) > 0 { 6071 i -= len(m.BinlogPos) 6072 copy(dAtA[i:], m.BinlogPos) 6073 i = encodeVarintDmworker(dAtA, i, uint64(len(m.BinlogPos))) 6074 i-- 6075 dAtA[i] = 0x1a 6076 } 6077 if len(m.Task) > 0 { 6078 i -= len(m.Task) 6079 copy(dAtA[i:], m.Task) 6080 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) 6081 i-- 6082 dAtA[i] = 0x12 6083 } 6084 if m.Op != 0 { 6085 i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) 6086 i-- 6087 dAtA[i] = 0x8 6088 } 6089 return len(dAtA) - i, nil 6090 } 6091 6092 func (m *GetWorkerCfgRequest) Marshal() (dAtA []byte, err error) { 6093 size := m.Size() 6094 dAtA = make([]byte, size) 6095 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6096 if err != nil { 6097 return nil, err 6098 } 6099 return dAtA[:n], nil 6100 } 6101 6102 func (m *GetWorkerCfgRequest) MarshalTo(dAtA []byte) (int, error) { 6103 size := m.Size() 6104 return m.MarshalToSizedBuffer(dAtA[:size]) 6105 } 6106 6107 func (m *GetWorkerCfgRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6108 i := len(dAtA) 6109 _ = i 6110 var l int 6111 _ = l 6112 return len(dAtA) - i, nil 6113 } 6114 6115 func (m *GetWorkerCfgResponse) Marshal() (dAtA []byte, err error) { 6116 size := m.Size() 6117 dAtA = make([]byte, size) 6118 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6119 if err != nil { 6120 return nil, err 6121 } 6122 return dAtA[:n], nil 6123 } 6124 6125 func (m *GetWorkerCfgResponse) MarshalTo(dAtA []byte) (int, error) { 6126 size := m.Size() 6127 return m.MarshalToSizedBuffer(dAtA[:size]) 6128 } 6129 6130 func (m *GetWorkerCfgResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6131 i := len(dAtA) 6132 _ = i 6133 var l int 6134 _ = l 6135 if len(m.Cfg) > 0 { 6136 i -= len(m.Cfg) 6137 copy(dAtA[i:], m.Cfg) 6138 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Cfg))) 6139 i-- 6140 dAtA[i] = 0xa 6141 } 6142 return len(dAtA) - i, nil 6143 } 6144 6145 func (m *CheckSubtasksCanUpdateRequest) Marshal() (dAtA []byte, err error) { 6146 size := m.Size() 6147 dAtA = make([]byte, size) 6148 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6149 if err != nil { 6150 return nil, err 6151 } 6152 return dAtA[:n], nil 6153 } 6154 6155 func (m *CheckSubtasksCanUpdateRequest) MarshalTo(dAtA []byte) (int, error) { 6156 size := m.Size() 6157 return m.MarshalToSizedBuffer(dAtA[:size]) 6158 } 6159 6160 func (m *CheckSubtasksCanUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6161 i := len(dAtA) 6162 _ = i 6163 var l int 6164 _ = l 6165 if len(m.SubtaskCfgTomlString) > 0 { 6166 i -= len(m.SubtaskCfgTomlString) 6167 copy(dAtA[i:], m.SubtaskCfgTomlString) 6168 i = encodeVarintDmworker(dAtA, i, uint64(len(m.SubtaskCfgTomlString))) 6169 i-- 6170 dAtA[i] = 0xa 6171 } 6172 return len(dAtA) - i, nil 6173 } 6174 6175 func (m *CheckSubtasksCanUpdateResponse) Marshal() (dAtA []byte, err error) { 6176 size := m.Size() 6177 dAtA = make([]byte, size) 6178 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6179 if err != nil { 6180 return nil, err 6181 } 6182 return dAtA[:n], nil 6183 } 6184 6185 func (m *CheckSubtasksCanUpdateResponse) MarshalTo(dAtA []byte) (int, error) { 6186 size := m.Size() 6187 return m.MarshalToSizedBuffer(dAtA[:size]) 6188 } 6189 6190 func (m *CheckSubtasksCanUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6191 i := len(dAtA) 6192 _ = i 6193 var l int 6194 _ = l 6195 if len(m.Msg) > 0 { 6196 i -= len(m.Msg) 6197 copy(dAtA[i:], m.Msg) 6198 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) 6199 i-- 6200 dAtA[i] = 0x12 6201 } 6202 if m.Success { 6203 i-- 6204 if m.Success { 6205 dAtA[i] = 1 6206 } else { 6207 dAtA[i] = 0 6208 } 6209 i-- 6210 dAtA[i] = 0x8 6211 } 6212 return len(dAtA) - i, nil 6213 } 6214 6215 func (m *GetValidationStatusRequest) Marshal() (dAtA []byte, err error) { 6216 size := m.Size() 6217 dAtA = make([]byte, size) 6218 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6219 if err != nil { 6220 return nil, err 6221 } 6222 return dAtA[:n], nil 6223 } 6224 6225 func (m *GetValidationStatusRequest) MarshalTo(dAtA []byte) (int, error) { 6226 size := m.Size() 6227 return m.MarshalToSizedBuffer(dAtA[:size]) 6228 } 6229 6230 func (m *GetValidationStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6231 i := len(dAtA) 6232 _ = i 6233 var l int 6234 _ = l 6235 if m.FilterStatus != 0 { 6236 i = encodeVarintDmworker(dAtA, i, uint64(m.FilterStatus)) 6237 i-- 6238 dAtA[i] = 0x10 6239 } 6240 if len(m.TaskName) > 0 { 6241 i -= len(m.TaskName) 6242 copy(dAtA[i:], m.TaskName) 6243 i = encodeVarintDmworker(dAtA, i, uint64(len(m.TaskName))) 6244 i-- 6245 dAtA[i] = 0xa 6246 } 6247 return len(dAtA) - i, nil 6248 } 6249 6250 func (m *ValidationStatus) Marshal() (dAtA []byte, err error) { 6251 size := m.Size() 6252 dAtA = make([]byte, size) 6253 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6254 if err != nil { 6255 return nil, err 6256 } 6257 return dAtA[:n], nil 6258 } 6259 6260 func (m *ValidationStatus) MarshalTo(dAtA []byte) (int, error) { 6261 size := m.Size() 6262 return m.MarshalToSizedBuffer(dAtA[:size]) 6263 } 6264 6265 func (m *ValidationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6266 i := len(dAtA) 6267 _ = i 6268 var l int 6269 _ = l 6270 if len(m.CutoverBinlogGtid) > 0 { 6271 i -= len(m.CutoverBinlogGtid) 6272 copy(dAtA[i:], m.CutoverBinlogGtid) 6273 i = encodeVarintDmworker(dAtA, i, uint64(len(m.CutoverBinlogGtid))) 6274 i-- 6275 dAtA[i] = 0x62 6276 } 6277 if len(m.CutoverBinlogPos) > 0 { 6278 i -= len(m.CutoverBinlogPos) 6279 copy(dAtA[i:], m.CutoverBinlogPos) 6280 i = encodeVarintDmworker(dAtA, i, uint64(len(m.CutoverBinlogPos))) 6281 i-- 6282 dAtA[i] = 0x5a 6283 } 6284 if len(m.ErrorRowsStatus) > 0 { 6285 i -= len(m.ErrorRowsStatus) 6286 copy(dAtA[i:], m.ErrorRowsStatus) 6287 i = encodeVarintDmworker(dAtA, i, uint64(len(m.ErrorRowsStatus))) 6288 i-- 6289 dAtA[i] = 0x52 6290 } 6291 if len(m.PendingRowsStatus) > 0 { 6292 i -= len(m.PendingRowsStatus) 6293 copy(dAtA[i:], m.PendingRowsStatus) 6294 i = encodeVarintDmworker(dAtA, i, uint64(len(m.PendingRowsStatus))) 6295 i-- 6296 dAtA[i] = 0x4a 6297 } 6298 if len(m.ProcessedRowsStatus) > 0 { 6299 i -= len(m.ProcessedRowsStatus) 6300 copy(dAtA[i:], m.ProcessedRowsStatus) 6301 i = encodeVarintDmworker(dAtA, i, uint64(len(m.ProcessedRowsStatus))) 6302 i-- 6303 dAtA[i] = 0x42 6304 } 6305 if m.Result != nil { 6306 { 6307 size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) 6308 if err != nil { 6309 return 0, err 6310 } 6311 i -= size 6312 i = encodeVarintDmworker(dAtA, i, uint64(size)) 6313 } 6314 i-- 6315 dAtA[i] = 0x3a 6316 } 6317 if len(m.ValidatorBinlogGtid) > 0 { 6318 i -= len(m.ValidatorBinlogGtid) 6319 copy(dAtA[i:], m.ValidatorBinlogGtid) 6320 i = encodeVarintDmworker(dAtA, i, uint64(len(m.ValidatorBinlogGtid))) 6321 i-- 6322 dAtA[i] = 0x32 6323 } 6324 if len(m.ValidatorBinlog) > 0 { 6325 i -= len(m.ValidatorBinlog) 6326 copy(dAtA[i:], m.ValidatorBinlog) 6327 i = encodeVarintDmworker(dAtA, i, uint64(len(m.ValidatorBinlog))) 6328 i-- 6329 dAtA[i] = 0x2a 6330 } 6331 if m.Stage != 0 { 6332 i = encodeVarintDmworker(dAtA, i, uint64(m.Stage)) 6333 i-- 6334 dAtA[i] = 0x20 6335 } 6336 if len(m.Mode) > 0 { 6337 i -= len(m.Mode) 6338 copy(dAtA[i:], m.Mode) 6339 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Mode))) 6340 i-- 6341 dAtA[i] = 0x1a 6342 } 6343 if len(m.Source) > 0 { 6344 i -= len(m.Source) 6345 copy(dAtA[i:], m.Source) 6346 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Source))) 6347 i-- 6348 dAtA[i] = 0x12 6349 } 6350 if len(m.Task) > 0 { 6351 i -= len(m.Task) 6352 copy(dAtA[i:], m.Task) 6353 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) 6354 i-- 6355 dAtA[i] = 0xa 6356 } 6357 return len(dAtA) - i, nil 6358 } 6359 6360 func (m *ValidationTableStatus) Marshal() (dAtA []byte, err error) { 6361 size := m.Size() 6362 dAtA = make([]byte, size) 6363 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6364 if err != nil { 6365 return nil, err 6366 } 6367 return dAtA[:n], nil 6368 } 6369 6370 func (m *ValidationTableStatus) MarshalTo(dAtA []byte) (int, error) { 6371 size := m.Size() 6372 return m.MarshalToSizedBuffer(dAtA[:size]) 6373 } 6374 6375 func (m *ValidationTableStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6376 i := len(dAtA) 6377 _ = i 6378 var l int 6379 _ = l 6380 if len(m.Message) > 0 { 6381 i -= len(m.Message) 6382 copy(dAtA[i:], m.Message) 6383 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Message))) 6384 i-- 6385 dAtA[i] = 0x2a 6386 } 6387 if m.Stage != 0 { 6388 i = encodeVarintDmworker(dAtA, i, uint64(m.Stage)) 6389 i-- 6390 dAtA[i] = 0x20 6391 } 6392 if len(m.DstTable) > 0 { 6393 i -= len(m.DstTable) 6394 copy(dAtA[i:], m.DstTable) 6395 i = encodeVarintDmworker(dAtA, i, uint64(len(m.DstTable))) 6396 i-- 6397 dAtA[i] = 0x1a 6398 } 6399 if len(m.SrcTable) > 0 { 6400 i -= len(m.SrcTable) 6401 copy(dAtA[i:], m.SrcTable) 6402 i = encodeVarintDmworker(dAtA, i, uint64(len(m.SrcTable))) 6403 i-- 6404 dAtA[i] = 0x12 6405 } 6406 if len(m.Source) > 0 { 6407 i -= len(m.Source) 6408 copy(dAtA[i:], m.Source) 6409 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Source))) 6410 i-- 6411 dAtA[i] = 0xa 6412 } 6413 return len(dAtA) - i, nil 6414 } 6415 6416 func (m *GetValidationStatusResponse) Marshal() (dAtA []byte, err error) { 6417 size := m.Size() 6418 dAtA = make([]byte, size) 6419 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6420 if err != nil { 6421 return nil, err 6422 } 6423 return dAtA[:n], nil 6424 } 6425 6426 func (m *GetValidationStatusResponse) MarshalTo(dAtA []byte) (int, error) { 6427 size := m.Size() 6428 return m.MarshalToSizedBuffer(dAtA[:size]) 6429 } 6430 6431 func (m *GetValidationStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6432 i := len(dAtA) 6433 _ = i 6434 var l int 6435 _ = l 6436 if len(m.TableStatuses) > 0 { 6437 for iNdEx := len(m.TableStatuses) - 1; iNdEx >= 0; iNdEx-- { 6438 { 6439 size, err := m.TableStatuses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6440 if err != nil { 6441 return 0, err 6442 } 6443 i -= size 6444 i = encodeVarintDmworker(dAtA, i, uint64(size)) 6445 } 6446 i-- 6447 dAtA[i] = 0x22 6448 } 6449 } 6450 if len(m.Validators) > 0 { 6451 for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { 6452 { 6453 size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6454 if err != nil { 6455 return 0, err 6456 } 6457 i -= size 6458 i = encodeVarintDmworker(dAtA, i, uint64(size)) 6459 } 6460 i-- 6461 dAtA[i] = 0x1a 6462 } 6463 } 6464 if len(m.Msg) > 0 { 6465 i -= len(m.Msg) 6466 copy(dAtA[i:], m.Msg) 6467 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) 6468 i-- 6469 dAtA[i] = 0x12 6470 } 6471 if m.Result { 6472 i-- 6473 if m.Result { 6474 dAtA[i] = 1 6475 } else { 6476 dAtA[i] = 0 6477 } 6478 i-- 6479 dAtA[i] = 0x8 6480 } 6481 return len(dAtA) - i, nil 6482 } 6483 6484 func (m *GetValidationErrorRequest) Marshal() (dAtA []byte, err error) { 6485 size := m.Size() 6486 dAtA = make([]byte, size) 6487 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6488 if err != nil { 6489 return nil, err 6490 } 6491 return dAtA[:n], nil 6492 } 6493 6494 func (m *GetValidationErrorRequest) MarshalTo(dAtA []byte) (int, error) { 6495 size := m.Size() 6496 return m.MarshalToSizedBuffer(dAtA[:size]) 6497 } 6498 6499 func (m *GetValidationErrorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6500 i := len(dAtA) 6501 _ = i 6502 var l int 6503 _ = l 6504 if len(m.TaskName) > 0 { 6505 i -= len(m.TaskName) 6506 copy(dAtA[i:], m.TaskName) 6507 i = encodeVarintDmworker(dAtA, i, uint64(len(m.TaskName))) 6508 i-- 6509 dAtA[i] = 0x12 6510 } 6511 if m.ErrState != 0 { 6512 i = encodeVarintDmworker(dAtA, i, uint64(m.ErrState)) 6513 i-- 6514 dAtA[i] = 0x8 6515 } 6516 return len(dAtA) - i, nil 6517 } 6518 6519 func (m *ValidationError) Marshal() (dAtA []byte, err error) { 6520 size := m.Size() 6521 dAtA = make([]byte, size) 6522 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6523 if err != nil { 6524 return nil, err 6525 } 6526 return dAtA[:n], nil 6527 } 6528 6529 func (m *ValidationError) MarshalTo(dAtA []byte) (int, error) { 6530 size := m.Size() 6531 return m.MarshalToSizedBuffer(dAtA[:size]) 6532 } 6533 6534 func (m *ValidationError) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6535 i := len(dAtA) 6536 _ = i 6537 var l int 6538 _ = l 6539 if len(m.Message) > 0 { 6540 i -= len(m.Message) 6541 copy(dAtA[i:], m.Message) 6542 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Message))) 6543 i-- 6544 dAtA[i] = 0x52 6545 } 6546 if len(m.Time) > 0 { 6547 i -= len(m.Time) 6548 copy(dAtA[i:], m.Time) 6549 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Time))) 6550 i-- 6551 dAtA[i] = 0x4a 6552 } 6553 if m.Status != 0 { 6554 i = encodeVarintDmworker(dAtA, i, uint64(m.Status)) 6555 i-- 6556 dAtA[i] = 0x40 6557 } 6558 if len(m.ErrorType) > 0 { 6559 i -= len(m.ErrorType) 6560 copy(dAtA[i:], m.ErrorType) 6561 i = encodeVarintDmworker(dAtA, i, uint64(len(m.ErrorType))) 6562 i-- 6563 dAtA[i] = 0x3a 6564 } 6565 if len(m.DstData) > 0 { 6566 i -= len(m.DstData) 6567 copy(dAtA[i:], m.DstData) 6568 i = encodeVarintDmworker(dAtA, i, uint64(len(m.DstData))) 6569 i-- 6570 dAtA[i] = 0x32 6571 } 6572 if len(m.DstTable) > 0 { 6573 i -= len(m.DstTable) 6574 copy(dAtA[i:], m.DstTable) 6575 i = encodeVarintDmworker(dAtA, i, uint64(len(m.DstTable))) 6576 i-- 6577 dAtA[i] = 0x2a 6578 } 6579 if len(m.SrcData) > 0 { 6580 i -= len(m.SrcData) 6581 copy(dAtA[i:], m.SrcData) 6582 i = encodeVarintDmworker(dAtA, i, uint64(len(m.SrcData))) 6583 i-- 6584 dAtA[i] = 0x22 6585 } 6586 if len(m.SrcTable) > 0 { 6587 i -= len(m.SrcTable) 6588 copy(dAtA[i:], m.SrcTable) 6589 i = encodeVarintDmworker(dAtA, i, uint64(len(m.SrcTable))) 6590 i-- 6591 dAtA[i] = 0x1a 6592 } 6593 if len(m.Source) > 0 { 6594 i -= len(m.Source) 6595 copy(dAtA[i:], m.Source) 6596 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Source))) 6597 i-- 6598 dAtA[i] = 0x12 6599 } 6600 if len(m.Id) > 0 { 6601 i -= len(m.Id) 6602 copy(dAtA[i:], m.Id) 6603 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Id))) 6604 i-- 6605 dAtA[i] = 0xa 6606 } 6607 return len(dAtA) - i, nil 6608 } 6609 6610 func (m *GetValidationErrorResponse) Marshal() (dAtA []byte, err error) { 6611 size := m.Size() 6612 dAtA = make([]byte, size) 6613 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6614 if err != nil { 6615 return nil, err 6616 } 6617 return dAtA[:n], nil 6618 } 6619 6620 func (m *GetValidationErrorResponse) MarshalTo(dAtA []byte) (int, error) { 6621 size := m.Size() 6622 return m.MarshalToSizedBuffer(dAtA[:size]) 6623 } 6624 6625 func (m *GetValidationErrorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6626 i := len(dAtA) 6627 _ = i 6628 var l int 6629 _ = l 6630 if len(m.Error) > 0 { 6631 for iNdEx := len(m.Error) - 1; iNdEx >= 0; iNdEx-- { 6632 { 6633 size, err := m.Error[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6634 if err != nil { 6635 return 0, err 6636 } 6637 i -= size 6638 i = encodeVarintDmworker(dAtA, i, uint64(size)) 6639 } 6640 i-- 6641 dAtA[i] = 0x1a 6642 } 6643 } 6644 if len(m.Msg) > 0 { 6645 i -= len(m.Msg) 6646 copy(dAtA[i:], m.Msg) 6647 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) 6648 i-- 6649 dAtA[i] = 0x12 6650 } 6651 if m.Result { 6652 i-- 6653 if m.Result { 6654 dAtA[i] = 1 6655 } else { 6656 dAtA[i] = 0 6657 } 6658 i-- 6659 dAtA[i] = 0x8 6660 } 6661 return len(dAtA) - i, nil 6662 } 6663 6664 func (m *OperateValidationErrorRequest) Marshal() (dAtA []byte, err error) { 6665 size := m.Size() 6666 dAtA = make([]byte, size) 6667 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6668 if err != nil { 6669 return nil, err 6670 } 6671 return dAtA[:n], nil 6672 } 6673 6674 func (m *OperateValidationErrorRequest) MarshalTo(dAtA []byte) (int, error) { 6675 size := m.Size() 6676 return m.MarshalToSizedBuffer(dAtA[:size]) 6677 } 6678 6679 func (m *OperateValidationErrorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6680 i := len(dAtA) 6681 _ = i 6682 var l int 6683 _ = l 6684 if m.ErrId != 0 { 6685 i = encodeVarintDmworker(dAtA, i, uint64(m.ErrId)) 6686 i-- 6687 dAtA[i] = 0x20 6688 } 6689 if len(m.TaskName) > 0 { 6690 i -= len(m.TaskName) 6691 copy(dAtA[i:], m.TaskName) 6692 i = encodeVarintDmworker(dAtA, i, uint64(len(m.TaskName))) 6693 i-- 6694 dAtA[i] = 0x1a 6695 } 6696 if m.IsAllError { 6697 i-- 6698 if m.IsAllError { 6699 dAtA[i] = 1 6700 } else { 6701 dAtA[i] = 0 6702 } 6703 i-- 6704 dAtA[i] = 0x10 6705 } 6706 if m.Op != 0 { 6707 i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) 6708 i-- 6709 dAtA[i] = 0x8 6710 } 6711 return len(dAtA) - i, nil 6712 } 6713 6714 func (m *OperateValidationErrorResponse) Marshal() (dAtA []byte, err error) { 6715 size := m.Size() 6716 dAtA = make([]byte, size) 6717 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6718 if err != nil { 6719 return nil, err 6720 } 6721 return dAtA[:n], nil 6722 } 6723 6724 func (m *OperateValidationErrorResponse) MarshalTo(dAtA []byte) (int, error) { 6725 size := m.Size() 6726 return m.MarshalToSizedBuffer(dAtA[:size]) 6727 } 6728 6729 func (m *OperateValidationErrorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6730 i := len(dAtA) 6731 _ = i 6732 var l int 6733 _ = l 6734 if len(m.Msg) > 0 { 6735 i -= len(m.Msg) 6736 copy(dAtA[i:], m.Msg) 6737 i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) 6738 i-- 6739 dAtA[i] = 0x12 6740 } 6741 if m.Result { 6742 i-- 6743 if m.Result { 6744 dAtA[i] = 1 6745 } else { 6746 dAtA[i] = 0 6747 } 6748 i-- 6749 dAtA[i] = 0x8 6750 } 6751 return len(dAtA) - i, nil 6752 } 6753 6754 func (m *UpdateValidationWorkerRequest) Marshal() (dAtA []byte, err error) { 6755 size := m.Size() 6756 dAtA = make([]byte, size) 6757 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6758 if err != nil { 6759 return nil, err 6760 } 6761 return dAtA[:n], nil 6762 } 6763 6764 func (m *UpdateValidationWorkerRequest) MarshalTo(dAtA []byte) (int, error) { 6765 size := m.Size() 6766 return m.MarshalToSizedBuffer(dAtA[:size]) 6767 } 6768 6769 func (m *UpdateValidationWorkerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6770 i := len(dAtA) 6771 _ = i 6772 var l int 6773 _ = l 6774 if len(m.BinlogGTID) > 0 { 6775 i -= len(m.BinlogGTID) 6776 copy(dAtA[i:], m.BinlogGTID) 6777 i = encodeVarintDmworker(dAtA, i, uint64(len(m.BinlogGTID))) 6778 i-- 6779 dAtA[i] = 0x1a 6780 } 6781 if len(m.BinlogPos) > 0 { 6782 i -= len(m.BinlogPos) 6783 copy(dAtA[i:], m.BinlogPos) 6784 i = encodeVarintDmworker(dAtA, i, uint64(len(m.BinlogPos))) 6785 i-- 6786 dAtA[i] = 0x12 6787 } 6788 if len(m.TaskName) > 0 { 6789 i -= len(m.TaskName) 6790 copy(dAtA[i:], m.TaskName) 6791 i = encodeVarintDmworker(dAtA, i, uint64(len(m.TaskName))) 6792 i-- 6793 dAtA[i] = 0xa 6794 } 6795 return len(dAtA) - i, nil 6796 } 6797 6798 func encodeVarintDmworker(dAtA []byte, offset int, v uint64) int { 6799 offset -= sovDmworker(v) 6800 base := offset 6801 for v >= 1<<7 { 6802 dAtA[offset] = uint8(v&0x7f | 0x80) 6803 v >>= 7 6804 offset++ 6805 } 6806 dAtA[offset] = uint8(v) 6807 return base 6808 } 6809 func (m *QueryStatusRequest) Size() (n int) { 6810 if m == nil { 6811 return 0 6812 } 6813 var l int 6814 _ = l 6815 l = len(m.Name) 6816 if l > 0 { 6817 n += 1 + l + sovDmworker(uint64(l)) 6818 } 6819 return n 6820 } 6821 6822 func (m *CommonWorkerResponse) Size() (n int) { 6823 if m == nil { 6824 return 0 6825 } 6826 var l int 6827 _ = l 6828 if m.Result { 6829 n += 2 6830 } 6831 l = len(m.Msg) 6832 if l > 0 { 6833 n += 1 + l + sovDmworker(uint64(l)) 6834 } 6835 l = len(m.Source) 6836 if l > 0 { 6837 n += 1 + l + sovDmworker(uint64(l)) 6838 } 6839 l = len(m.Worker) 6840 if l > 0 { 6841 n += 1 + l + sovDmworker(uint64(l)) 6842 } 6843 return n 6844 } 6845 6846 func (m *QueryStatusResponse) Size() (n int) { 6847 if m == nil { 6848 return 0 6849 } 6850 var l int 6851 _ = l 6852 if m.Result { 6853 n += 2 6854 } 6855 l = len(m.Msg) 6856 if l > 0 { 6857 n += 1 + l + sovDmworker(uint64(l)) 6858 } 6859 if m.SourceStatus != nil { 6860 l = m.SourceStatus.Size() 6861 n += 1 + l + sovDmworker(uint64(l)) 6862 } 6863 if len(m.SubTaskStatus) > 0 { 6864 for _, e := range m.SubTaskStatus { 6865 l = e.Size() 6866 n += 1 + l + sovDmworker(uint64(l)) 6867 } 6868 } 6869 return n 6870 } 6871 6872 func (m *CheckStatus) Size() (n int) { 6873 if m == nil { 6874 return 0 6875 } 6876 var l int 6877 _ = l 6878 if m.Passed { 6879 n += 2 6880 } 6881 if m.Total != 0 { 6882 n += 1 + sovDmworker(uint64(m.Total)) 6883 } 6884 if m.Successful != 0 { 6885 n += 1 + sovDmworker(uint64(m.Successful)) 6886 } 6887 if m.Failed != 0 { 6888 n += 1 + sovDmworker(uint64(m.Failed)) 6889 } 6890 if m.Warning != 0 { 6891 n += 1 + sovDmworker(uint64(m.Warning)) 6892 } 6893 l = len(m.Detail) 6894 if l > 0 { 6895 n += 1 + l + sovDmworker(uint64(l)) 6896 } 6897 return n 6898 } 6899 6900 func (m *DumpStatus) Size() (n int) { 6901 if m == nil { 6902 return 0 6903 } 6904 var l int 6905 _ = l 6906 if m.TotalTables != 0 { 6907 n += 1 + sovDmworker(uint64(m.TotalTables)) 6908 } 6909 if m.CompletedTables != 0 { 6910 n += 9 6911 } 6912 if m.FinishedBytes != 0 { 6913 n += 9 6914 } 6915 if m.FinishedRows != 0 { 6916 n += 9 6917 } 6918 if m.EstimateTotalRows != 0 { 6919 n += 9 6920 } 6921 if m.Bps != 0 { 6922 n += 1 + sovDmworker(uint64(m.Bps)) 6923 } 6924 l = len(m.Progress) 6925 if l > 0 { 6926 n += 1 + l + sovDmworker(uint64(l)) 6927 } 6928 return n 6929 } 6930 6931 func (m *LoadStatus) Size() (n int) { 6932 if m == nil { 6933 return 0 6934 } 6935 var l int 6936 _ = l 6937 if m.FinishedBytes != 0 { 6938 n += 1 + sovDmworker(uint64(m.FinishedBytes)) 6939 } 6940 if m.TotalBytes != 0 { 6941 n += 1 + sovDmworker(uint64(m.TotalBytes)) 6942 } 6943 l = len(m.Progress) 6944 if l > 0 { 6945 n += 1 + l + sovDmworker(uint64(l)) 6946 } 6947 l = len(m.MetaBinlog) 6948 if l > 0 { 6949 n += 1 + l + sovDmworker(uint64(l)) 6950 } 6951 l = len(m.MetaBinlogGTID) 6952 if l > 0 { 6953 n += 1 + l + sovDmworker(uint64(l)) 6954 } 6955 if m.Bps != 0 { 6956 n += 1 + sovDmworker(uint64(m.Bps)) 6957 } 6958 return n 6959 } 6960 6961 func (m *ShardingGroup) Size() (n int) { 6962 if m == nil { 6963 return 0 6964 } 6965 var l int 6966 _ = l 6967 l = len(m.Target) 6968 if l > 0 { 6969 n += 1 + l + sovDmworker(uint64(l)) 6970 } 6971 if len(m.DDLs) > 0 { 6972 for _, s := range m.DDLs { 6973 l = len(s) 6974 n += 1 + l + sovDmworker(uint64(l)) 6975 } 6976 } 6977 l = len(m.FirstLocation) 6978 if l > 0 { 6979 n += 1 + l + sovDmworker(uint64(l)) 6980 } 6981 if len(m.Synced) > 0 { 6982 for _, s := range m.Synced { 6983 l = len(s) 6984 n += 1 + l + sovDmworker(uint64(l)) 6985 } 6986 } 6987 if len(m.Unsynced) > 0 { 6988 for _, s := range m.Unsynced { 6989 l = len(s) 6990 n += 1 + l + sovDmworker(uint64(l)) 6991 } 6992 } 6993 return n 6994 } 6995 6996 func (m *SyncStatus) Size() (n int) { 6997 if m == nil { 6998 return 0 6999 } 7000 var l int 7001 _ = l 7002 if m.TotalEvents != 0 { 7003 n += 1 + sovDmworker(uint64(m.TotalEvents)) 7004 } 7005 if m.TotalTps != 0 { 7006 n += 1 + sovDmworker(uint64(m.TotalTps)) 7007 } 7008 if m.RecentTps != 0 { 7009 n += 1 + sovDmworker(uint64(m.RecentTps)) 7010 } 7011 l = len(m.MasterBinlog) 7012 if l > 0 { 7013 n += 1 + l + sovDmworker(uint64(l)) 7014 } 7015 l = len(m.MasterBinlogGtid) 7016 if l > 0 { 7017 n += 1 + l + sovDmworker(uint64(l)) 7018 } 7019 l = len(m.SyncerBinlog) 7020 if l > 0 { 7021 n += 1 + l + sovDmworker(uint64(l)) 7022 } 7023 l = len(m.SyncerBinlogGtid) 7024 if l > 0 { 7025 n += 1 + l + sovDmworker(uint64(l)) 7026 } 7027 if len(m.BlockingDDLs) > 0 { 7028 for _, s := range m.BlockingDDLs { 7029 l = len(s) 7030 n += 1 + l + sovDmworker(uint64(l)) 7031 } 7032 } 7033 if len(m.UnresolvedGroups) > 0 { 7034 for _, e := range m.UnresolvedGroups { 7035 l = e.Size() 7036 n += 1 + l + sovDmworker(uint64(l)) 7037 } 7038 } 7039 if m.Synced { 7040 n += 2 7041 } 7042 l = len(m.BinlogType) 7043 if l > 0 { 7044 n += 1 + l + sovDmworker(uint64(l)) 7045 } 7046 if m.SecondsBehindMaster != 0 { 7047 n += 1 + sovDmworker(uint64(m.SecondsBehindMaster)) 7048 } 7049 l = len(m.BlockDDLOwner) 7050 if l > 0 { 7051 n += 1 + l + sovDmworker(uint64(l)) 7052 } 7053 l = len(m.ConflictMsg) 7054 if l > 0 { 7055 n += 1 + l + sovDmworker(uint64(l)) 7056 } 7057 if m.TotalRows != 0 { 7058 n += 1 + sovDmworker(uint64(m.TotalRows)) 7059 } 7060 if m.TotalRps != 0 { 7061 n += 2 + sovDmworker(uint64(m.TotalRps)) 7062 } 7063 if m.RecentRps != 0 { 7064 n += 2 + sovDmworker(uint64(m.RecentRps)) 7065 } 7066 return n 7067 } 7068 7069 func (m *SourceStatus) Size() (n int) { 7070 if m == nil { 7071 return 0 7072 } 7073 var l int 7074 _ = l 7075 l = len(m.Source) 7076 if l > 0 { 7077 n += 1 + l + sovDmworker(uint64(l)) 7078 } 7079 l = len(m.Worker) 7080 if l > 0 { 7081 n += 1 + l + sovDmworker(uint64(l)) 7082 } 7083 if m.Result != nil { 7084 l = m.Result.Size() 7085 n += 1 + l + sovDmworker(uint64(l)) 7086 } 7087 if m.RelayStatus != nil { 7088 l = m.RelayStatus.Size() 7089 n += 1 + l + sovDmworker(uint64(l)) 7090 } 7091 return n 7092 } 7093 7094 func (m *RelayStatus) Size() (n int) { 7095 if m == nil { 7096 return 0 7097 } 7098 var l int 7099 _ = l 7100 l = len(m.MasterBinlog) 7101 if l > 0 { 7102 n += 1 + l + sovDmworker(uint64(l)) 7103 } 7104 l = len(m.MasterBinlogGtid) 7105 if l > 0 { 7106 n += 1 + l + sovDmworker(uint64(l)) 7107 } 7108 l = len(m.RelaySubDir) 7109 if l > 0 { 7110 n += 1 + l + sovDmworker(uint64(l)) 7111 } 7112 l = len(m.RelayBinlog) 7113 if l > 0 { 7114 n += 1 + l + sovDmworker(uint64(l)) 7115 } 7116 l = len(m.RelayBinlogGtid) 7117 if l > 0 { 7118 n += 1 + l + sovDmworker(uint64(l)) 7119 } 7120 if m.RelayCatchUpMaster { 7121 n += 2 7122 } 7123 if m.Stage != 0 { 7124 n += 1 + sovDmworker(uint64(m.Stage)) 7125 } 7126 if m.Result != nil { 7127 l = m.Result.Size() 7128 n += 1 + l + sovDmworker(uint64(l)) 7129 } 7130 return n 7131 } 7132 7133 func (m *SubTaskStatus) Size() (n int) { 7134 if m == nil { 7135 return 0 7136 } 7137 var l int 7138 _ = l 7139 l = len(m.Name) 7140 if l > 0 { 7141 n += 1 + l + sovDmworker(uint64(l)) 7142 } 7143 if m.Stage != 0 { 7144 n += 1 + sovDmworker(uint64(m.Stage)) 7145 } 7146 if m.Unit != 0 { 7147 n += 1 + sovDmworker(uint64(m.Unit)) 7148 } 7149 if m.Result != nil { 7150 l = m.Result.Size() 7151 n += 1 + l + sovDmworker(uint64(l)) 7152 } 7153 l = len(m.UnresolvedDDLLockID) 7154 if l > 0 { 7155 n += 1 + l + sovDmworker(uint64(l)) 7156 } 7157 if m.Status != nil { 7158 n += m.Status.Size() 7159 } 7160 if m.Validation != nil { 7161 l = m.Validation.Size() 7162 n += 1 + l + sovDmworker(uint64(l)) 7163 } 7164 return n 7165 } 7166 7167 func (m *SubTaskStatus_Msg) Size() (n int) { 7168 if m == nil { 7169 return 0 7170 } 7171 var l int 7172 _ = l 7173 l = len(m.Msg) 7174 n += 1 + l + sovDmworker(uint64(l)) 7175 return n 7176 } 7177 func (m *SubTaskStatus_Check) Size() (n int) { 7178 if m == nil { 7179 return 0 7180 } 7181 var l int 7182 _ = l 7183 if m.Check != nil { 7184 l = m.Check.Size() 7185 n += 1 + l + sovDmworker(uint64(l)) 7186 } 7187 return n 7188 } 7189 func (m *SubTaskStatus_Dump) Size() (n int) { 7190 if m == nil { 7191 return 0 7192 } 7193 var l int 7194 _ = l 7195 if m.Dump != nil { 7196 l = m.Dump.Size() 7197 n += 1 + l + sovDmworker(uint64(l)) 7198 } 7199 return n 7200 } 7201 func (m *SubTaskStatus_Load) Size() (n int) { 7202 if m == nil { 7203 return 0 7204 } 7205 var l int 7206 _ = l 7207 if m.Load != nil { 7208 l = m.Load.Size() 7209 n += 1 + l + sovDmworker(uint64(l)) 7210 } 7211 return n 7212 } 7213 func (m *SubTaskStatus_Sync) Size() (n int) { 7214 if m == nil { 7215 return 0 7216 } 7217 var l int 7218 _ = l 7219 if m.Sync != nil { 7220 l = m.Sync.Size() 7221 n += 1 + l + sovDmworker(uint64(l)) 7222 } 7223 return n 7224 } 7225 func (m *SubTaskStatusList) Size() (n int) { 7226 if m == nil { 7227 return 0 7228 } 7229 var l int 7230 _ = l 7231 if len(m.Status) > 0 { 7232 for _, e := range m.Status { 7233 l = e.Size() 7234 n += 1 + l + sovDmworker(uint64(l)) 7235 } 7236 } 7237 return n 7238 } 7239 7240 func (m *CheckError) Size() (n int) { 7241 if m == nil { 7242 return 0 7243 } 7244 var l int 7245 _ = l 7246 l = len(m.Msg) 7247 if l > 0 { 7248 n += 1 + l + sovDmworker(uint64(l)) 7249 } 7250 return n 7251 } 7252 7253 func (m *DumpError) Size() (n int) { 7254 if m == nil { 7255 return 0 7256 } 7257 var l int 7258 _ = l 7259 l = len(m.Msg) 7260 if l > 0 { 7261 n += 1 + l + sovDmworker(uint64(l)) 7262 } 7263 return n 7264 } 7265 7266 func (m *LoadError) Size() (n int) { 7267 if m == nil { 7268 return 0 7269 } 7270 var l int 7271 _ = l 7272 l = len(m.Msg) 7273 if l > 0 { 7274 n += 1 + l + sovDmworker(uint64(l)) 7275 } 7276 return n 7277 } 7278 7279 func (m *SyncSQLError) Size() (n int) { 7280 if m == nil { 7281 return 0 7282 } 7283 var l int 7284 _ = l 7285 l = len(m.Msg) 7286 if l > 0 { 7287 n += 1 + l + sovDmworker(uint64(l)) 7288 } 7289 l = len(m.FailedBinlogPosition) 7290 if l > 0 { 7291 n += 1 + l + sovDmworker(uint64(l)) 7292 } 7293 l = len(m.ErrorSQL) 7294 if l > 0 { 7295 n += 1 + l + sovDmworker(uint64(l)) 7296 } 7297 return n 7298 } 7299 7300 func (m *SyncError) Size() (n int) { 7301 if m == nil { 7302 return 0 7303 } 7304 var l int 7305 _ = l 7306 if len(m.Errors) > 0 { 7307 for _, e := range m.Errors { 7308 l = e.Size() 7309 n += 1 + l + sovDmworker(uint64(l)) 7310 } 7311 } 7312 return n 7313 } 7314 7315 func (m *SourceError) Size() (n int) { 7316 if m == nil { 7317 return 0 7318 } 7319 var l int 7320 _ = l 7321 l = len(m.Source) 7322 if l > 0 { 7323 n += 1 + l + sovDmworker(uint64(l)) 7324 } 7325 l = len(m.Worker) 7326 if l > 0 { 7327 n += 1 + l + sovDmworker(uint64(l)) 7328 } 7329 l = len(m.SourceError) 7330 if l > 0 { 7331 n += 1 + l + sovDmworker(uint64(l)) 7332 } 7333 if m.RelayError != nil { 7334 l = m.RelayError.Size() 7335 n += 1 + l + sovDmworker(uint64(l)) 7336 } 7337 return n 7338 } 7339 7340 func (m *RelayError) Size() (n int) { 7341 if m == nil { 7342 return 0 7343 } 7344 var l int 7345 _ = l 7346 l = len(m.Msg) 7347 if l > 0 { 7348 n += 1 + l + sovDmworker(uint64(l)) 7349 } 7350 return n 7351 } 7352 7353 func (m *SubTaskError) Size() (n int) { 7354 if m == nil { 7355 return 0 7356 } 7357 var l int 7358 _ = l 7359 l = len(m.Name) 7360 if l > 0 { 7361 n += 1 + l + sovDmworker(uint64(l)) 7362 } 7363 if m.Stage != 0 { 7364 n += 1 + sovDmworker(uint64(m.Stage)) 7365 } 7366 if m.Unit != 0 { 7367 n += 1 + sovDmworker(uint64(m.Unit)) 7368 } 7369 if m.Error != nil { 7370 n += m.Error.Size() 7371 } 7372 return n 7373 } 7374 7375 func (m *SubTaskError_Msg) Size() (n int) { 7376 if m == nil { 7377 return 0 7378 } 7379 var l int 7380 _ = l 7381 l = len(m.Msg) 7382 n += 1 + l + sovDmworker(uint64(l)) 7383 return n 7384 } 7385 func (m *SubTaskError_Check) Size() (n int) { 7386 if m == nil { 7387 return 0 7388 } 7389 var l int 7390 _ = l 7391 if m.Check != nil { 7392 l = m.Check.Size() 7393 n += 1 + l + sovDmworker(uint64(l)) 7394 } 7395 return n 7396 } 7397 func (m *SubTaskError_Dump) Size() (n int) { 7398 if m == nil { 7399 return 0 7400 } 7401 var l int 7402 _ = l 7403 if m.Dump != nil { 7404 l = m.Dump.Size() 7405 n += 1 + l + sovDmworker(uint64(l)) 7406 } 7407 return n 7408 } 7409 func (m *SubTaskError_Load) Size() (n int) { 7410 if m == nil { 7411 return 0 7412 } 7413 var l int 7414 _ = l 7415 if m.Load != nil { 7416 l = m.Load.Size() 7417 n += 1 + l + sovDmworker(uint64(l)) 7418 } 7419 return n 7420 } 7421 func (m *SubTaskError_Sync) Size() (n int) { 7422 if m == nil { 7423 return 0 7424 } 7425 var l int 7426 _ = l 7427 if m.Sync != nil { 7428 l = m.Sync.Size() 7429 n += 1 + l + sovDmworker(uint64(l)) 7430 } 7431 return n 7432 } 7433 func (m *SubTaskErrorList) Size() (n int) { 7434 if m == nil { 7435 return 0 7436 } 7437 var l int 7438 _ = l 7439 if len(m.Error) > 0 { 7440 for _, e := range m.Error { 7441 l = e.Size() 7442 n += 1 + l + sovDmworker(uint64(l)) 7443 } 7444 } 7445 return n 7446 } 7447 7448 func (m *ProcessResult) Size() (n int) { 7449 if m == nil { 7450 return 0 7451 } 7452 var l int 7453 _ = l 7454 if m.IsCanceled { 7455 n += 2 7456 } 7457 if len(m.Errors) > 0 { 7458 for _, e := range m.Errors { 7459 l = e.Size() 7460 n += 1 + l + sovDmworker(uint64(l)) 7461 } 7462 } 7463 l = len(m.Detail) 7464 if l > 0 { 7465 n += 1 + l + sovDmworker(uint64(l)) 7466 } 7467 return n 7468 } 7469 7470 func (m *ProcessError) Size() (n int) { 7471 if m == nil { 7472 return 0 7473 } 7474 var l int 7475 _ = l 7476 if m.ErrCode != 0 { 7477 n += 1 + sovDmworker(uint64(m.ErrCode)) 7478 } 7479 l = len(m.ErrClass) 7480 if l > 0 { 7481 n += 1 + l + sovDmworker(uint64(l)) 7482 } 7483 l = len(m.ErrScope) 7484 if l > 0 { 7485 n += 1 + l + sovDmworker(uint64(l)) 7486 } 7487 l = len(m.ErrLevel) 7488 if l > 0 { 7489 n += 1 + l + sovDmworker(uint64(l)) 7490 } 7491 l = len(m.Message) 7492 if l > 0 { 7493 n += 1 + l + sovDmworker(uint64(l)) 7494 } 7495 l = len(m.RawCause) 7496 if l > 0 { 7497 n += 1 + l + sovDmworker(uint64(l)) 7498 } 7499 l = len(m.Workaround) 7500 if l > 0 { 7501 n += 1 + l + sovDmworker(uint64(l)) 7502 } 7503 return n 7504 } 7505 7506 func (m *PurgeRelayRequest) Size() (n int) { 7507 if m == nil { 7508 return 0 7509 } 7510 var l int 7511 _ = l 7512 if m.Inactive { 7513 n += 2 7514 } 7515 if m.Time != 0 { 7516 n += 1 + sovDmworker(uint64(m.Time)) 7517 } 7518 l = len(m.Filename) 7519 if l > 0 { 7520 n += 1 + l + sovDmworker(uint64(l)) 7521 } 7522 l = len(m.SubDir) 7523 if l > 0 { 7524 n += 1 + l + sovDmworker(uint64(l)) 7525 } 7526 return n 7527 } 7528 7529 func (m *OperateWorkerSchemaRequest) Size() (n int) { 7530 if m == nil { 7531 return 0 7532 } 7533 var l int 7534 _ = l 7535 if m.Op != 0 { 7536 n += 1 + sovDmworker(uint64(m.Op)) 7537 } 7538 l = len(m.Task) 7539 if l > 0 { 7540 n += 1 + l + sovDmworker(uint64(l)) 7541 } 7542 l = len(m.Source) 7543 if l > 0 { 7544 n += 1 + l + sovDmworker(uint64(l)) 7545 } 7546 l = len(m.Database) 7547 if l > 0 { 7548 n += 1 + l + sovDmworker(uint64(l)) 7549 } 7550 l = len(m.Table) 7551 if l > 0 { 7552 n += 1 + l + sovDmworker(uint64(l)) 7553 } 7554 l = len(m.Schema) 7555 if l > 0 { 7556 n += 1 + l + sovDmworker(uint64(l)) 7557 } 7558 if m.Flush { 7559 n += 2 7560 } 7561 if m.Sync { 7562 n += 2 7563 } 7564 if m.FromSource { 7565 n += 2 7566 } 7567 if m.FromTarget { 7568 n += 2 7569 } 7570 return n 7571 } 7572 7573 func (m *V1SubTaskMeta) Size() (n int) { 7574 if m == nil { 7575 return 0 7576 } 7577 var l int 7578 _ = l 7579 if m.Op != 0 { 7580 n += 1 + sovDmworker(uint64(m.Op)) 7581 } 7582 if m.Stage != 0 { 7583 n += 1 + sovDmworker(uint64(m.Stage)) 7584 } 7585 l = len(m.Name) 7586 if l > 0 { 7587 n += 1 + l + sovDmworker(uint64(l)) 7588 } 7589 l = len(m.Task) 7590 if l > 0 { 7591 n += 1 + l + sovDmworker(uint64(l)) 7592 } 7593 return n 7594 } 7595 7596 func (m *OperateV1MetaRequest) Size() (n int) { 7597 if m == nil { 7598 return 0 7599 } 7600 var l int 7601 _ = l 7602 if m.Op != 0 { 7603 n += 1 + sovDmworker(uint64(m.Op)) 7604 } 7605 return n 7606 } 7607 7608 func (m *OperateV1MetaResponse) Size() (n int) { 7609 if m == nil { 7610 return 0 7611 } 7612 var l int 7613 _ = l 7614 if m.Result { 7615 n += 2 7616 } 7617 l = len(m.Msg) 7618 if l > 0 { 7619 n += 1 + l + sovDmworker(uint64(l)) 7620 } 7621 if len(m.Meta) > 0 { 7622 for k, v := range m.Meta { 7623 _ = k 7624 _ = v 7625 l = 0 7626 if v != nil { 7627 l = v.Size() 7628 l += 1 + sovDmworker(uint64(l)) 7629 } 7630 mapEntrySize := 1 + len(k) + sovDmworker(uint64(len(k))) + l 7631 n += mapEntrySize + 1 + sovDmworker(uint64(mapEntrySize)) 7632 } 7633 } 7634 return n 7635 } 7636 7637 func (m *HandleWorkerErrorRequest) Size() (n int) { 7638 if m == nil { 7639 return 0 7640 } 7641 var l int 7642 _ = l 7643 if m.Op != 0 { 7644 n += 1 + sovDmworker(uint64(m.Op)) 7645 } 7646 l = len(m.Task) 7647 if l > 0 { 7648 n += 1 + l + sovDmworker(uint64(l)) 7649 } 7650 l = len(m.BinlogPos) 7651 if l > 0 { 7652 n += 1 + l + sovDmworker(uint64(l)) 7653 } 7654 if len(m.Sqls) > 0 { 7655 for _, s := range m.Sqls { 7656 l = len(s) 7657 n += 1 + l + sovDmworker(uint64(l)) 7658 } 7659 } 7660 return n 7661 } 7662 7663 func (m *GetWorkerCfgRequest) Size() (n int) { 7664 if m == nil { 7665 return 0 7666 } 7667 var l int 7668 _ = l 7669 return n 7670 } 7671 7672 func (m *GetWorkerCfgResponse) Size() (n int) { 7673 if m == nil { 7674 return 0 7675 } 7676 var l int 7677 _ = l 7678 l = len(m.Cfg) 7679 if l > 0 { 7680 n += 1 + l + sovDmworker(uint64(l)) 7681 } 7682 return n 7683 } 7684 7685 func (m *CheckSubtasksCanUpdateRequest) Size() (n int) { 7686 if m == nil { 7687 return 0 7688 } 7689 var l int 7690 _ = l 7691 l = len(m.SubtaskCfgTomlString) 7692 if l > 0 { 7693 n += 1 + l + sovDmworker(uint64(l)) 7694 } 7695 return n 7696 } 7697 7698 func (m *CheckSubtasksCanUpdateResponse) Size() (n int) { 7699 if m == nil { 7700 return 0 7701 } 7702 var l int 7703 _ = l 7704 if m.Success { 7705 n += 2 7706 } 7707 l = len(m.Msg) 7708 if l > 0 { 7709 n += 1 + l + sovDmworker(uint64(l)) 7710 } 7711 return n 7712 } 7713 7714 func (m *GetValidationStatusRequest) Size() (n int) { 7715 if m == nil { 7716 return 0 7717 } 7718 var l int 7719 _ = l 7720 l = len(m.TaskName) 7721 if l > 0 { 7722 n += 1 + l + sovDmworker(uint64(l)) 7723 } 7724 if m.FilterStatus != 0 { 7725 n += 1 + sovDmworker(uint64(m.FilterStatus)) 7726 } 7727 return n 7728 } 7729 7730 func (m *ValidationStatus) Size() (n int) { 7731 if m == nil { 7732 return 0 7733 } 7734 var l int 7735 _ = l 7736 l = len(m.Task) 7737 if l > 0 { 7738 n += 1 + l + sovDmworker(uint64(l)) 7739 } 7740 l = len(m.Source) 7741 if l > 0 { 7742 n += 1 + l + sovDmworker(uint64(l)) 7743 } 7744 l = len(m.Mode) 7745 if l > 0 { 7746 n += 1 + l + sovDmworker(uint64(l)) 7747 } 7748 if m.Stage != 0 { 7749 n += 1 + sovDmworker(uint64(m.Stage)) 7750 } 7751 l = len(m.ValidatorBinlog) 7752 if l > 0 { 7753 n += 1 + l + sovDmworker(uint64(l)) 7754 } 7755 l = len(m.ValidatorBinlogGtid) 7756 if l > 0 { 7757 n += 1 + l + sovDmworker(uint64(l)) 7758 } 7759 if m.Result != nil { 7760 l = m.Result.Size() 7761 n += 1 + l + sovDmworker(uint64(l)) 7762 } 7763 l = len(m.ProcessedRowsStatus) 7764 if l > 0 { 7765 n += 1 + l + sovDmworker(uint64(l)) 7766 } 7767 l = len(m.PendingRowsStatus) 7768 if l > 0 { 7769 n += 1 + l + sovDmworker(uint64(l)) 7770 } 7771 l = len(m.ErrorRowsStatus) 7772 if l > 0 { 7773 n += 1 + l + sovDmworker(uint64(l)) 7774 } 7775 l = len(m.CutoverBinlogPos) 7776 if l > 0 { 7777 n += 1 + l + sovDmworker(uint64(l)) 7778 } 7779 l = len(m.CutoverBinlogGtid) 7780 if l > 0 { 7781 n += 1 + l + sovDmworker(uint64(l)) 7782 } 7783 return n 7784 } 7785 7786 func (m *ValidationTableStatus) Size() (n int) { 7787 if m == nil { 7788 return 0 7789 } 7790 var l int 7791 _ = l 7792 l = len(m.Source) 7793 if l > 0 { 7794 n += 1 + l + sovDmworker(uint64(l)) 7795 } 7796 l = len(m.SrcTable) 7797 if l > 0 { 7798 n += 1 + l + sovDmworker(uint64(l)) 7799 } 7800 l = len(m.DstTable) 7801 if l > 0 { 7802 n += 1 + l + sovDmworker(uint64(l)) 7803 } 7804 if m.Stage != 0 { 7805 n += 1 + sovDmworker(uint64(m.Stage)) 7806 } 7807 l = len(m.Message) 7808 if l > 0 { 7809 n += 1 + l + sovDmworker(uint64(l)) 7810 } 7811 return n 7812 } 7813 7814 func (m *GetValidationStatusResponse) Size() (n int) { 7815 if m == nil { 7816 return 0 7817 } 7818 var l int 7819 _ = l 7820 if m.Result { 7821 n += 2 7822 } 7823 l = len(m.Msg) 7824 if l > 0 { 7825 n += 1 + l + sovDmworker(uint64(l)) 7826 } 7827 if len(m.Validators) > 0 { 7828 for _, e := range m.Validators { 7829 l = e.Size() 7830 n += 1 + l + sovDmworker(uint64(l)) 7831 } 7832 } 7833 if len(m.TableStatuses) > 0 { 7834 for _, e := range m.TableStatuses { 7835 l = e.Size() 7836 n += 1 + l + sovDmworker(uint64(l)) 7837 } 7838 } 7839 return n 7840 } 7841 7842 func (m *GetValidationErrorRequest) Size() (n int) { 7843 if m == nil { 7844 return 0 7845 } 7846 var l int 7847 _ = l 7848 if m.ErrState != 0 { 7849 n += 1 + sovDmworker(uint64(m.ErrState)) 7850 } 7851 l = len(m.TaskName) 7852 if l > 0 { 7853 n += 1 + l + sovDmworker(uint64(l)) 7854 } 7855 return n 7856 } 7857 7858 func (m *ValidationError) Size() (n int) { 7859 if m == nil { 7860 return 0 7861 } 7862 var l int 7863 _ = l 7864 l = len(m.Id) 7865 if l > 0 { 7866 n += 1 + l + sovDmworker(uint64(l)) 7867 } 7868 l = len(m.Source) 7869 if l > 0 { 7870 n += 1 + l + sovDmworker(uint64(l)) 7871 } 7872 l = len(m.SrcTable) 7873 if l > 0 { 7874 n += 1 + l + sovDmworker(uint64(l)) 7875 } 7876 l = len(m.SrcData) 7877 if l > 0 { 7878 n += 1 + l + sovDmworker(uint64(l)) 7879 } 7880 l = len(m.DstTable) 7881 if l > 0 { 7882 n += 1 + l + sovDmworker(uint64(l)) 7883 } 7884 l = len(m.DstData) 7885 if l > 0 { 7886 n += 1 + l + sovDmworker(uint64(l)) 7887 } 7888 l = len(m.ErrorType) 7889 if l > 0 { 7890 n += 1 + l + sovDmworker(uint64(l)) 7891 } 7892 if m.Status != 0 { 7893 n += 1 + sovDmworker(uint64(m.Status)) 7894 } 7895 l = len(m.Time) 7896 if l > 0 { 7897 n += 1 + l + sovDmworker(uint64(l)) 7898 } 7899 l = len(m.Message) 7900 if l > 0 { 7901 n += 1 + l + sovDmworker(uint64(l)) 7902 } 7903 return n 7904 } 7905 7906 func (m *GetValidationErrorResponse) Size() (n int) { 7907 if m == nil { 7908 return 0 7909 } 7910 var l int 7911 _ = l 7912 if m.Result { 7913 n += 2 7914 } 7915 l = len(m.Msg) 7916 if l > 0 { 7917 n += 1 + l + sovDmworker(uint64(l)) 7918 } 7919 if len(m.Error) > 0 { 7920 for _, e := range m.Error { 7921 l = e.Size() 7922 n += 1 + l + sovDmworker(uint64(l)) 7923 } 7924 } 7925 return n 7926 } 7927 7928 func (m *OperateValidationErrorRequest) Size() (n int) { 7929 if m == nil { 7930 return 0 7931 } 7932 var l int 7933 _ = l 7934 if m.Op != 0 { 7935 n += 1 + sovDmworker(uint64(m.Op)) 7936 } 7937 if m.IsAllError { 7938 n += 2 7939 } 7940 l = len(m.TaskName) 7941 if l > 0 { 7942 n += 1 + l + sovDmworker(uint64(l)) 7943 } 7944 if m.ErrId != 0 { 7945 n += 1 + sovDmworker(uint64(m.ErrId)) 7946 } 7947 return n 7948 } 7949 7950 func (m *OperateValidationErrorResponse) Size() (n int) { 7951 if m == nil { 7952 return 0 7953 } 7954 var l int 7955 _ = l 7956 if m.Result { 7957 n += 2 7958 } 7959 l = len(m.Msg) 7960 if l > 0 { 7961 n += 1 + l + sovDmworker(uint64(l)) 7962 } 7963 return n 7964 } 7965 7966 func (m *UpdateValidationWorkerRequest) Size() (n int) { 7967 if m == nil { 7968 return 0 7969 } 7970 var l int 7971 _ = l 7972 l = len(m.TaskName) 7973 if l > 0 { 7974 n += 1 + l + sovDmworker(uint64(l)) 7975 } 7976 l = len(m.BinlogPos) 7977 if l > 0 { 7978 n += 1 + l + sovDmworker(uint64(l)) 7979 } 7980 l = len(m.BinlogGTID) 7981 if l > 0 { 7982 n += 1 + l + sovDmworker(uint64(l)) 7983 } 7984 return n 7985 } 7986 7987 func sovDmworker(x uint64) (n int) { 7988 return (math_bits.Len64(x|1) + 6) / 7 7989 } 7990 func sozDmworker(x uint64) (n int) { 7991 return sovDmworker(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 7992 } 7993 func (m *QueryStatusRequest) Unmarshal(dAtA []byte) error { 7994 l := len(dAtA) 7995 iNdEx := 0 7996 for iNdEx < l { 7997 preIndex := iNdEx 7998 var wire uint64 7999 for shift := uint(0); ; shift += 7 { 8000 if shift >= 64 { 8001 return ErrIntOverflowDmworker 8002 } 8003 if iNdEx >= l { 8004 return io.ErrUnexpectedEOF 8005 } 8006 b := dAtA[iNdEx] 8007 iNdEx++ 8008 wire |= uint64(b&0x7F) << shift 8009 if b < 0x80 { 8010 break 8011 } 8012 } 8013 fieldNum := int32(wire >> 3) 8014 wireType := int(wire & 0x7) 8015 if wireType == 4 { 8016 return fmt.Errorf("proto: QueryStatusRequest: wiretype end group for non-group") 8017 } 8018 if fieldNum <= 0 { 8019 return fmt.Errorf("proto: QueryStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8020 } 8021 switch fieldNum { 8022 case 1: 8023 if wireType != 2 { 8024 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 8025 } 8026 var stringLen uint64 8027 for shift := uint(0); ; shift += 7 { 8028 if shift >= 64 { 8029 return ErrIntOverflowDmworker 8030 } 8031 if iNdEx >= l { 8032 return io.ErrUnexpectedEOF 8033 } 8034 b := dAtA[iNdEx] 8035 iNdEx++ 8036 stringLen |= uint64(b&0x7F) << shift 8037 if b < 0x80 { 8038 break 8039 } 8040 } 8041 intStringLen := int(stringLen) 8042 if intStringLen < 0 { 8043 return ErrInvalidLengthDmworker 8044 } 8045 postIndex := iNdEx + intStringLen 8046 if postIndex < 0 { 8047 return ErrInvalidLengthDmworker 8048 } 8049 if postIndex > l { 8050 return io.ErrUnexpectedEOF 8051 } 8052 m.Name = string(dAtA[iNdEx:postIndex]) 8053 iNdEx = postIndex 8054 default: 8055 iNdEx = preIndex 8056 skippy, err := skipDmworker(dAtA[iNdEx:]) 8057 if err != nil { 8058 return err 8059 } 8060 if (skippy < 0) || (iNdEx+skippy) < 0 { 8061 return ErrInvalidLengthDmworker 8062 } 8063 if (iNdEx + skippy) > l { 8064 return io.ErrUnexpectedEOF 8065 } 8066 iNdEx += skippy 8067 } 8068 } 8069 8070 if iNdEx > l { 8071 return io.ErrUnexpectedEOF 8072 } 8073 return nil 8074 } 8075 func (m *CommonWorkerResponse) Unmarshal(dAtA []byte) error { 8076 l := len(dAtA) 8077 iNdEx := 0 8078 for iNdEx < l { 8079 preIndex := iNdEx 8080 var wire uint64 8081 for shift := uint(0); ; shift += 7 { 8082 if shift >= 64 { 8083 return ErrIntOverflowDmworker 8084 } 8085 if iNdEx >= l { 8086 return io.ErrUnexpectedEOF 8087 } 8088 b := dAtA[iNdEx] 8089 iNdEx++ 8090 wire |= uint64(b&0x7F) << shift 8091 if b < 0x80 { 8092 break 8093 } 8094 } 8095 fieldNum := int32(wire >> 3) 8096 wireType := int(wire & 0x7) 8097 if wireType == 4 { 8098 return fmt.Errorf("proto: CommonWorkerResponse: wiretype end group for non-group") 8099 } 8100 if fieldNum <= 0 { 8101 return fmt.Errorf("proto: CommonWorkerResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8102 } 8103 switch fieldNum { 8104 case 1: 8105 if wireType != 0 { 8106 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 8107 } 8108 var v int 8109 for shift := uint(0); ; shift += 7 { 8110 if shift >= 64 { 8111 return ErrIntOverflowDmworker 8112 } 8113 if iNdEx >= l { 8114 return io.ErrUnexpectedEOF 8115 } 8116 b := dAtA[iNdEx] 8117 iNdEx++ 8118 v |= int(b&0x7F) << shift 8119 if b < 0x80 { 8120 break 8121 } 8122 } 8123 m.Result = bool(v != 0) 8124 case 2: 8125 if wireType != 2 { 8126 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 8127 } 8128 var stringLen uint64 8129 for shift := uint(0); ; shift += 7 { 8130 if shift >= 64 { 8131 return ErrIntOverflowDmworker 8132 } 8133 if iNdEx >= l { 8134 return io.ErrUnexpectedEOF 8135 } 8136 b := dAtA[iNdEx] 8137 iNdEx++ 8138 stringLen |= uint64(b&0x7F) << shift 8139 if b < 0x80 { 8140 break 8141 } 8142 } 8143 intStringLen := int(stringLen) 8144 if intStringLen < 0 { 8145 return ErrInvalidLengthDmworker 8146 } 8147 postIndex := iNdEx + intStringLen 8148 if postIndex < 0 { 8149 return ErrInvalidLengthDmworker 8150 } 8151 if postIndex > l { 8152 return io.ErrUnexpectedEOF 8153 } 8154 m.Msg = string(dAtA[iNdEx:postIndex]) 8155 iNdEx = postIndex 8156 case 3: 8157 if wireType != 2 { 8158 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) 8159 } 8160 var stringLen uint64 8161 for shift := uint(0); ; shift += 7 { 8162 if shift >= 64 { 8163 return ErrIntOverflowDmworker 8164 } 8165 if iNdEx >= l { 8166 return io.ErrUnexpectedEOF 8167 } 8168 b := dAtA[iNdEx] 8169 iNdEx++ 8170 stringLen |= uint64(b&0x7F) << shift 8171 if b < 0x80 { 8172 break 8173 } 8174 } 8175 intStringLen := int(stringLen) 8176 if intStringLen < 0 { 8177 return ErrInvalidLengthDmworker 8178 } 8179 postIndex := iNdEx + intStringLen 8180 if postIndex < 0 { 8181 return ErrInvalidLengthDmworker 8182 } 8183 if postIndex > l { 8184 return io.ErrUnexpectedEOF 8185 } 8186 m.Source = string(dAtA[iNdEx:postIndex]) 8187 iNdEx = postIndex 8188 case 4: 8189 if wireType != 2 { 8190 return fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) 8191 } 8192 var stringLen uint64 8193 for shift := uint(0); ; shift += 7 { 8194 if shift >= 64 { 8195 return ErrIntOverflowDmworker 8196 } 8197 if iNdEx >= l { 8198 return io.ErrUnexpectedEOF 8199 } 8200 b := dAtA[iNdEx] 8201 iNdEx++ 8202 stringLen |= uint64(b&0x7F) << shift 8203 if b < 0x80 { 8204 break 8205 } 8206 } 8207 intStringLen := int(stringLen) 8208 if intStringLen < 0 { 8209 return ErrInvalidLengthDmworker 8210 } 8211 postIndex := iNdEx + intStringLen 8212 if postIndex < 0 { 8213 return ErrInvalidLengthDmworker 8214 } 8215 if postIndex > l { 8216 return io.ErrUnexpectedEOF 8217 } 8218 m.Worker = string(dAtA[iNdEx:postIndex]) 8219 iNdEx = postIndex 8220 default: 8221 iNdEx = preIndex 8222 skippy, err := skipDmworker(dAtA[iNdEx:]) 8223 if err != nil { 8224 return err 8225 } 8226 if (skippy < 0) || (iNdEx+skippy) < 0 { 8227 return ErrInvalidLengthDmworker 8228 } 8229 if (iNdEx + skippy) > l { 8230 return io.ErrUnexpectedEOF 8231 } 8232 iNdEx += skippy 8233 } 8234 } 8235 8236 if iNdEx > l { 8237 return io.ErrUnexpectedEOF 8238 } 8239 return nil 8240 } 8241 func (m *QueryStatusResponse) Unmarshal(dAtA []byte) error { 8242 l := len(dAtA) 8243 iNdEx := 0 8244 for iNdEx < l { 8245 preIndex := iNdEx 8246 var wire uint64 8247 for shift := uint(0); ; shift += 7 { 8248 if shift >= 64 { 8249 return ErrIntOverflowDmworker 8250 } 8251 if iNdEx >= l { 8252 return io.ErrUnexpectedEOF 8253 } 8254 b := dAtA[iNdEx] 8255 iNdEx++ 8256 wire |= uint64(b&0x7F) << shift 8257 if b < 0x80 { 8258 break 8259 } 8260 } 8261 fieldNum := int32(wire >> 3) 8262 wireType := int(wire & 0x7) 8263 if wireType == 4 { 8264 return fmt.Errorf("proto: QueryStatusResponse: wiretype end group for non-group") 8265 } 8266 if fieldNum <= 0 { 8267 return fmt.Errorf("proto: QueryStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8268 } 8269 switch fieldNum { 8270 case 1: 8271 if wireType != 0 { 8272 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 8273 } 8274 var v int 8275 for shift := uint(0); ; shift += 7 { 8276 if shift >= 64 { 8277 return ErrIntOverflowDmworker 8278 } 8279 if iNdEx >= l { 8280 return io.ErrUnexpectedEOF 8281 } 8282 b := dAtA[iNdEx] 8283 iNdEx++ 8284 v |= int(b&0x7F) << shift 8285 if b < 0x80 { 8286 break 8287 } 8288 } 8289 m.Result = bool(v != 0) 8290 case 2: 8291 if wireType != 2 { 8292 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 8293 } 8294 var stringLen uint64 8295 for shift := uint(0); ; shift += 7 { 8296 if shift >= 64 { 8297 return ErrIntOverflowDmworker 8298 } 8299 if iNdEx >= l { 8300 return io.ErrUnexpectedEOF 8301 } 8302 b := dAtA[iNdEx] 8303 iNdEx++ 8304 stringLen |= uint64(b&0x7F) << shift 8305 if b < 0x80 { 8306 break 8307 } 8308 } 8309 intStringLen := int(stringLen) 8310 if intStringLen < 0 { 8311 return ErrInvalidLengthDmworker 8312 } 8313 postIndex := iNdEx + intStringLen 8314 if postIndex < 0 { 8315 return ErrInvalidLengthDmworker 8316 } 8317 if postIndex > l { 8318 return io.ErrUnexpectedEOF 8319 } 8320 m.Msg = string(dAtA[iNdEx:postIndex]) 8321 iNdEx = postIndex 8322 case 3: 8323 if wireType != 2 { 8324 return fmt.Errorf("proto: wrong wireType = %d for field SourceStatus", wireType) 8325 } 8326 var msglen int 8327 for shift := uint(0); ; shift += 7 { 8328 if shift >= 64 { 8329 return ErrIntOverflowDmworker 8330 } 8331 if iNdEx >= l { 8332 return io.ErrUnexpectedEOF 8333 } 8334 b := dAtA[iNdEx] 8335 iNdEx++ 8336 msglen |= int(b&0x7F) << shift 8337 if b < 0x80 { 8338 break 8339 } 8340 } 8341 if msglen < 0 { 8342 return ErrInvalidLengthDmworker 8343 } 8344 postIndex := iNdEx + msglen 8345 if postIndex < 0 { 8346 return ErrInvalidLengthDmworker 8347 } 8348 if postIndex > l { 8349 return io.ErrUnexpectedEOF 8350 } 8351 if m.SourceStatus == nil { 8352 m.SourceStatus = &SourceStatus{} 8353 } 8354 if err := m.SourceStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8355 return err 8356 } 8357 iNdEx = postIndex 8358 case 4: 8359 if wireType != 2 { 8360 return fmt.Errorf("proto: wrong wireType = %d for field SubTaskStatus", wireType) 8361 } 8362 var msglen int 8363 for shift := uint(0); ; shift += 7 { 8364 if shift >= 64 { 8365 return ErrIntOverflowDmworker 8366 } 8367 if iNdEx >= l { 8368 return io.ErrUnexpectedEOF 8369 } 8370 b := dAtA[iNdEx] 8371 iNdEx++ 8372 msglen |= int(b&0x7F) << shift 8373 if b < 0x80 { 8374 break 8375 } 8376 } 8377 if msglen < 0 { 8378 return ErrInvalidLengthDmworker 8379 } 8380 postIndex := iNdEx + msglen 8381 if postIndex < 0 { 8382 return ErrInvalidLengthDmworker 8383 } 8384 if postIndex > l { 8385 return io.ErrUnexpectedEOF 8386 } 8387 m.SubTaskStatus = append(m.SubTaskStatus, &SubTaskStatus{}) 8388 if err := m.SubTaskStatus[len(m.SubTaskStatus)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8389 return err 8390 } 8391 iNdEx = postIndex 8392 default: 8393 iNdEx = preIndex 8394 skippy, err := skipDmworker(dAtA[iNdEx:]) 8395 if err != nil { 8396 return err 8397 } 8398 if (skippy < 0) || (iNdEx+skippy) < 0 { 8399 return ErrInvalidLengthDmworker 8400 } 8401 if (iNdEx + skippy) > l { 8402 return io.ErrUnexpectedEOF 8403 } 8404 iNdEx += skippy 8405 } 8406 } 8407 8408 if iNdEx > l { 8409 return io.ErrUnexpectedEOF 8410 } 8411 return nil 8412 } 8413 func (m *CheckStatus) Unmarshal(dAtA []byte) error { 8414 l := len(dAtA) 8415 iNdEx := 0 8416 for iNdEx < l { 8417 preIndex := iNdEx 8418 var wire uint64 8419 for shift := uint(0); ; shift += 7 { 8420 if shift >= 64 { 8421 return ErrIntOverflowDmworker 8422 } 8423 if iNdEx >= l { 8424 return io.ErrUnexpectedEOF 8425 } 8426 b := dAtA[iNdEx] 8427 iNdEx++ 8428 wire |= uint64(b&0x7F) << shift 8429 if b < 0x80 { 8430 break 8431 } 8432 } 8433 fieldNum := int32(wire >> 3) 8434 wireType := int(wire & 0x7) 8435 if wireType == 4 { 8436 return fmt.Errorf("proto: CheckStatus: wiretype end group for non-group") 8437 } 8438 if fieldNum <= 0 { 8439 return fmt.Errorf("proto: CheckStatus: illegal tag %d (wire type %d)", fieldNum, wire) 8440 } 8441 switch fieldNum { 8442 case 1: 8443 if wireType != 0 { 8444 return fmt.Errorf("proto: wrong wireType = %d for field Passed", wireType) 8445 } 8446 var v int 8447 for shift := uint(0); ; shift += 7 { 8448 if shift >= 64 { 8449 return ErrIntOverflowDmworker 8450 } 8451 if iNdEx >= l { 8452 return io.ErrUnexpectedEOF 8453 } 8454 b := dAtA[iNdEx] 8455 iNdEx++ 8456 v |= int(b&0x7F) << shift 8457 if b < 0x80 { 8458 break 8459 } 8460 } 8461 m.Passed = bool(v != 0) 8462 case 2: 8463 if wireType != 0 { 8464 return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) 8465 } 8466 m.Total = 0 8467 for shift := uint(0); ; shift += 7 { 8468 if shift >= 64 { 8469 return ErrIntOverflowDmworker 8470 } 8471 if iNdEx >= l { 8472 return io.ErrUnexpectedEOF 8473 } 8474 b := dAtA[iNdEx] 8475 iNdEx++ 8476 m.Total |= int32(b&0x7F) << shift 8477 if b < 0x80 { 8478 break 8479 } 8480 } 8481 case 3: 8482 if wireType != 0 { 8483 return fmt.Errorf("proto: wrong wireType = %d for field Successful", wireType) 8484 } 8485 m.Successful = 0 8486 for shift := uint(0); ; shift += 7 { 8487 if shift >= 64 { 8488 return ErrIntOverflowDmworker 8489 } 8490 if iNdEx >= l { 8491 return io.ErrUnexpectedEOF 8492 } 8493 b := dAtA[iNdEx] 8494 iNdEx++ 8495 m.Successful |= int32(b&0x7F) << shift 8496 if b < 0x80 { 8497 break 8498 } 8499 } 8500 case 4: 8501 if wireType != 0 { 8502 return fmt.Errorf("proto: wrong wireType = %d for field Failed", wireType) 8503 } 8504 m.Failed = 0 8505 for shift := uint(0); ; shift += 7 { 8506 if shift >= 64 { 8507 return ErrIntOverflowDmworker 8508 } 8509 if iNdEx >= l { 8510 return io.ErrUnexpectedEOF 8511 } 8512 b := dAtA[iNdEx] 8513 iNdEx++ 8514 m.Failed |= int32(b&0x7F) << shift 8515 if b < 0x80 { 8516 break 8517 } 8518 } 8519 case 5: 8520 if wireType != 0 { 8521 return fmt.Errorf("proto: wrong wireType = %d for field Warning", wireType) 8522 } 8523 m.Warning = 0 8524 for shift := uint(0); ; shift += 7 { 8525 if shift >= 64 { 8526 return ErrIntOverflowDmworker 8527 } 8528 if iNdEx >= l { 8529 return io.ErrUnexpectedEOF 8530 } 8531 b := dAtA[iNdEx] 8532 iNdEx++ 8533 m.Warning |= int32(b&0x7F) << shift 8534 if b < 0x80 { 8535 break 8536 } 8537 } 8538 case 6: 8539 if wireType != 2 { 8540 return fmt.Errorf("proto: wrong wireType = %d for field Detail", wireType) 8541 } 8542 var byteLen int 8543 for shift := uint(0); ; shift += 7 { 8544 if shift >= 64 { 8545 return ErrIntOverflowDmworker 8546 } 8547 if iNdEx >= l { 8548 return io.ErrUnexpectedEOF 8549 } 8550 b := dAtA[iNdEx] 8551 iNdEx++ 8552 byteLen |= int(b&0x7F) << shift 8553 if b < 0x80 { 8554 break 8555 } 8556 } 8557 if byteLen < 0 { 8558 return ErrInvalidLengthDmworker 8559 } 8560 postIndex := iNdEx + byteLen 8561 if postIndex < 0 { 8562 return ErrInvalidLengthDmworker 8563 } 8564 if postIndex > l { 8565 return io.ErrUnexpectedEOF 8566 } 8567 m.Detail = append(m.Detail[:0], dAtA[iNdEx:postIndex]...) 8568 if m.Detail == nil { 8569 m.Detail = []byte{} 8570 } 8571 iNdEx = postIndex 8572 default: 8573 iNdEx = preIndex 8574 skippy, err := skipDmworker(dAtA[iNdEx:]) 8575 if err != nil { 8576 return err 8577 } 8578 if (skippy < 0) || (iNdEx+skippy) < 0 { 8579 return ErrInvalidLengthDmworker 8580 } 8581 if (iNdEx + skippy) > l { 8582 return io.ErrUnexpectedEOF 8583 } 8584 iNdEx += skippy 8585 } 8586 } 8587 8588 if iNdEx > l { 8589 return io.ErrUnexpectedEOF 8590 } 8591 return nil 8592 } 8593 func (m *DumpStatus) Unmarshal(dAtA []byte) error { 8594 l := len(dAtA) 8595 iNdEx := 0 8596 for iNdEx < l { 8597 preIndex := iNdEx 8598 var wire uint64 8599 for shift := uint(0); ; shift += 7 { 8600 if shift >= 64 { 8601 return ErrIntOverflowDmworker 8602 } 8603 if iNdEx >= l { 8604 return io.ErrUnexpectedEOF 8605 } 8606 b := dAtA[iNdEx] 8607 iNdEx++ 8608 wire |= uint64(b&0x7F) << shift 8609 if b < 0x80 { 8610 break 8611 } 8612 } 8613 fieldNum := int32(wire >> 3) 8614 wireType := int(wire & 0x7) 8615 if wireType == 4 { 8616 return fmt.Errorf("proto: DumpStatus: wiretype end group for non-group") 8617 } 8618 if fieldNum <= 0 { 8619 return fmt.Errorf("proto: DumpStatus: illegal tag %d (wire type %d)", fieldNum, wire) 8620 } 8621 switch fieldNum { 8622 case 1: 8623 if wireType != 0 { 8624 return fmt.Errorf("proto: wrong wireType = %d for field TotalTables", wireType) 8625 } 8626 m.TotalTables = 0 8627 for shift := uint(0); ; shift += 7 { 8628 if shift >= 64 { 8629 return ErrIntOverflowDmworker 8630 } 8631 if iNdEx >= l { 8632 return io.ErrUnexpectedEOF 8633 } 8634 b := dAtA[iNdEx] 8635 iNdEx++ 8636 m.TotalTables |= int64(b&0x7F) << shift 8637 if b < 0x80 { 8638 break 8639 } 8640 } 8641 case 2: 8642 if wireType != 1 { 8643 return fmt.Errorf("proto: wrong wireType = %d for field CompletedTables", wireType) 8644 } 8645 var v uint64 8646 if (iNdEx + 8) > l { 8647 return io.ErrUnexpectedEOF 8648 } 8649 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 8650 iNdEx += 8 8651 m.CompletedTables = float64(math.Float64frombits(v)) 8652 case 3: 8653 if wireType != 1 { 8654 return fmt.Errorf("proto: wrong wireType = %d for field FinishedBytes", wireType) 8655 } 8656 var v uint64 8657 if (iNdEx + 8) > l { 8658 return io.ErrUnexpectedEOF 8659 } 8660 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 8661 iNdEx += 8 8662 m.FinishedBytes = float64(math.Float64frombits(v)) 8663 case 4: 8664 if wireType != 1 { 8665 return fmt.Errorf("proto: wrong wireType = %d for field FinishedRows", wireType) 8666 } 8667 var v uint64 8668 if (iNdEx + 8) > l { 8669 return io.ErrUnexpectedEOF 8670 } 8671 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 8672 iNdEx += 8 8673 m.FinishedRows = float64(math.Float64frombits(v)) 8674 case 5: 8675 if wireType != 1 { 8676 return fmt.Errorf("proto: wrong wireType = %d for field EstimateTotalRows", wireType) 8677 } 8678 var v uint64 8679 if (iNdEx + 8) > l { 8680 return io.ErrUnexpectedEOF 8681 } 8682 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 8683 iNdEx += 8 8684 m.EstimateTotalRows = float64(math.Float64frombits(v)) 8685 case 6: 8686 if wireType != 0 { 8687 return fmt.Errorf("proto: wrong wireType = %d for field Bps", wireType) 8688 } 8689 m.Bps = 0 8690 for shift := uint(0); ; shift += 7 { 8691 if shift >= 64 { 8692 return ErrIntOverflowDmworker 8693 } 8694 if iNdEx >= l { 8695 return io.ErrUnexpectedEOF 8696 } 8697 b := dAtA[iNdEx] 8698 iNdEx++ 8699 m.Bps |= int64(b&0x7F) << shift 8700 if b < 0x80 { 8701 break 8702 } 8703 } 8704 case 7: 8705 if wireType != 2 { 8706 return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType) 8707 } 8708 var stringLen uint64 8709 for shift := uint(0); ; shift += 7 { 8710 if shift >= 64 { 8711 return ErrIntOverflowDmworker 8712 } 8713 if iNdEx >= l { 8714 return io.ErrUnexpectedEOF 8715 } 8716 b := dAtA[iNdEx] 8717 iNdEx++ 8718 stringLen |= uint64(b&0x7F) << shift 8719 if b < 0x80 { 8720 break 8721 } 8722 } 8723 intStringLen := int(stringLen) 8724 if intStringLen < 0 { 8725 return ErrInvalidLengthDmworker 8726 } 8727 postIndex := iNdEx + intStringLen 8728 if postIndex < 0 { 8729 return ErrInvalidLengthDmworker 8730 } 8731 if postIndex > l { 8732 return io.ErrUnexpectedEOF 8733 } 8734 m.Progress = string(dAtA[iNdEx:postIndex]) 8735 iNdEx = postIndex 8736 default: 8737 iNdEx = preIndex 8738 skippy, err := skipDmworker(dAtA[iNdEx:]) 8739 if err != nil { 8740 return err 8741 } 8742 if (skippy < 0) || (iNdEx+skippy) < 0 { 8743 return ErrInvalidLengthDmworker 8744 } 8745 if (iNdEx + skippy) > l { 8746 return io.ErrUnexpectedEOF 8747 } 8748 iNdEx += skippy 8749 } 8750 } 8751 8752 if iNdEx > l { 8753 return io.ErrUnexpectedEOF 8754 } 8755 return nil 8756 } 8757 func (m *LoadStatus) Unmarshal(dAtA []byte) error { 8758 l := len(dAtA) 8759 iNdEx := 0 8760 for iNdEx < l { 8761 preIndex := iNdEx 8762 var wire uint64 8763 for shift := uint(0); ; shift += 7 { 8764 if shift >= 64 { 8765 return ErrIntOverflowDmworker 8766 } 8767 if iNdEx >= l { 8768 return io.ErrUnexpectedEOF 8769 } 8770 b := dAtA[iNdEx] 8771 iNdEx++ 8772 wire |= uint64(b&0x7F) << shift 8773 if b < 0x80 { 8774 break 8775 } 8776 } 8777 fieldNum := int32(wire >> 3) 8778 wireType := int(wire & 0x7) 8779 if wireType == 4 { 8780 return fmt.Errorf("proto: LoadStatus: wiretype end group for non-group") 8781 } 8782 if fieldNum <= 0 { 8783 return fmt.Errorf("proto: LoadStatus: illegal tag %d (wire type %d)", fieldNum, wire) 8784 } 8785 switch fieldNum { 8786 case 1: 8787 if wireType != 0 { 8788 return fmt.Errorf("proto: wrong wireType = %d for field FinishedBytes", wireType) 8789 } 8790 m.FinishedBytes = 0 8791 for shift := uint(0); ; shift += 7 { 8792 if shift >= 64 { 8793 return ErrIntOverflowDmworker 8794 } 8795 if iNdEx >= l { 8796 return io.ErrUnexpectedEOF 8797 } 8798 b := dAtA[iNdEx] 8799 iNdEx++ 8800 m.FinishedBytes |= int64(b&0x7F) << shift 8801 if b < 0x80 { 8802 break 8803 } 8804 } 8805 case 2: 8806 if wireType != 0 { 8807 return fmt.Errorf("proto: wrong wireType = %d for field TotalBytes", wireType) 8808 } 8809 m.TotalBytes = 0 8810 for shift := uint(0); ; shift += 7 { 8811 if shift >= 64 { 8812 return ErrIntOverflowDmworker 8813 } 8814 if iNdEx >= l { 8815 return io.ErrUnexpectedEOF 8816 } 8817 b := dAtA[iNdEx] 8818 iNdEx++ 8819 m.TotalBytes |= int64(b&0x7F) << shift 8820 if b < 0x80 { 8821 break 8822 } 8823 } 8824 case 3: 8825 if wireType != 2 { 8826 return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType) 8827 } 8828 var stringLen uint64 8829 for shift := uint(0); ; shift += 7 { 8830 if shift >= 64 { 8831 return ErrIntOverflowDmworker 8832 } 8833 if iNdEx >= l { 8834 return io.ErrUnexpectedEOF 8835 } 8836 b := dAtA[iNdEx] 8837 iNdEx++ 8838 stringLen |= uint64(b&0x7F) << shift 8839 if b < 0x80 { 8840 break 8841 } 8842 } 8843 intStringLen := int(stringLen) 8844 if intStringLen < 0 { 8845 return ErrInvalidLengthDmworker 8846 } 8847 postIndex := iNdEx + intStringLen 8848 if postIndex < 0 { 8849 return ErrInvalidLengthDmworker 8850 } 8851 if postIndex > l { 8852 return io.ErrUnexpectedEOF 8853 } 8854 m.Progress = string(dAtA[iNdEx:postIndex]) 8855 iNdEx = postIndex 8856 case 4: 8857 if wireType != 2 { 8858 return fmt.Errorf("proto: wrong wireType = %d for field MetaBinlog", wireType) 8859 } 8860 var stringLen uint64 8861 for shift := uint(0); ; shift += 7 { 8862 if shift >= 64 { 8863 return ErrIntOverflowDmworker 8864 } 8865 if iNdEx >= l { 8866 return io.ErrUnexpectedEOF 8867 } 8868 b := dAtA[iNdEx] 8869 iNdEx++ 8870 stringLen |= uint64(b&0x7F) << shift 8871 if b < 0x80 { 8872 break 8873 } 8874 } 8875 intStringLen := int(stringLen) 8876 if intStringLen < 0 { 8877 return ErrInvalidLengthDmworker 8878 } 8879 postIndex := iNdEx + intStringLen 8880 if postIndex < 0 { 8881 return ErrInvalidLengthDmworker 8882 } 8883 if postIndex > l { 8884 return io.ErrUnexpectedEOF 8885 } 8886 m.MetaBinlog = string(dAtA[iNdEx:postIndex]) 8887 iNdEx = postIndex 8888 case 5: 8889 if wireType != 2 { 8890 return fmt.Errorf("proto: wrong wireType = %d for field MetaBinlogGTID", wireType) 8891 } 8892 var stringLen uint64 8893 for shift := uint(0); ; shift += 7 { 8894 if shift >= 64 { 8895 return ErrIntOverflowDmworker 8896 } 8897 if iNdEx >= l { 8898 return io.ErrUnexpectedEOF 8899 } 8900 b := dAtA[iNdEx] 8901 iNdEx++ 8902 stringLen |= uint64(b&0x7F) << shift 8903 if b < 0x80 { 8904 break 8905 } 8906 } 8907 intStringLen := int(stringLen) 8908 if intStringLen < 0 { 8909 return ErrInvalidLengthDmworker 8910 } 8911 postIndex := iNdEx + intStringLen 8912 if postIndex < 0 { 8913 return ErrInvalidLengthDmworker 8914 } 8915 if postIndex > l { 8916 return io.ErrUnexpectedEOF 8917 } 8918 m.MetaBinlogGTID = string(dAtA[iNdEx:postIndex]) 8919 iNdEx = postIndex 8920 case 6: 8921 if wireType != 0 { 8922 return fmt.Errorf("proto: wrong wireType = %d for field Bps", wireType) 8923 } 8924 m.Bps = 0 8925 for shift := uint(0); ; shift += 7 { 8926 if shift >= 64 { 8927 return ErrIntOverflowDmworker 8928 } 8929 if iNdEx >= l { 8930 return io.ErrUnexpectedEOF 8931 } 8932 b := dAtA[iNdEx] 8933 iNdEx++ 8934 m.Bps |= int64(b&0x7F) << shift 8935 if b < 0x80 { 8936 break 8937 } 8938 } 8939 default: 8940 iNdEx = preIndex 8941 skippy, err := skipDmworker(dAtA[iNdEx:]) 8942 if err != nil { 8943 return err 8944 } 8945 if (skippy < 0) || (iNdEx+skippy) < 0 { 8946 return ErrInvalidLengthDmworker 8947 } 8948 if (iNdEx + skippy) > l { 8949 return io.ErrUnexpectedEOF 8950 } 8951 iNdEx += skippy 8952 } 8953 } 8954 8955 if iNdEx > l { 8956 return io.ErrUnexpectedEOF 8957 } 8958 return nil 8959 } 8960 func (m *ShardingGroup) Unmarshal(dAtA []byte) error { 8961 l := len(dAtA) 8962 iNdEx := 0 8963 for iNdEx < l { 8964 preIndex := iNdEx 8965 var wire uint64 8966 for shift := uint(0); ; shift += 7 { 8967 if shift >= 64 { 8968 return ErrIntOverflowDmworker 8969 } 8970 if iNdEx >= l { 8971 return io.ErrUnexpectedEOF 8972 } 8973 b := dAtA[iNdEx] 8974 iNdEx++ 8975 wire |= uint64(b&0x7F) << shift 8976 if b < 0x80 { 8977 break 8978 } 8979 } 8980 fieldNum := int32(wire >> 3) 8981 wireType := int(wire & 0x7) 8982 if wireType == 4 { 8983 return fmt.Errorf("proto: ShardingGroup: wiretype end group for non-group") 8984 } 8985 if fieldNum <= 0 { 8986 return fmt.Errorf("proto: ShardingGroup: illegal tag %d (wire type %d)", fieldNum, wire) 8987 } 8988 switch fieldNum { 8989 case 1: 8990 if wireType != 2 { 8991 return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) 8992 } 8993 var stringLen uint64 8994 for shift := uint(0); ; shift += 7 { 8995 if shift >= 64 { 8996 return ErrIntOverflowDmworker 8997 } 8998 if iNdEx >= l { 8999 return io.ErrUnexpectedEOF 9000 } 9001 b := dAtA[iNdEx] 9002 iNdEx++ 9003 stringLen |= uint64(b&0x7F) << shift 9004 if b < 0x80 { 9005 break 9006 } 9007 } 9008 intStringLen := int(stringLen) 9009 if intStringLen < 0 { 9010 return ErrInvalidLengthDmworker 9011 } 9012 postIndex := iNdEx + intStringLen 9013 if postIndex < 0 { 9014 return ErrInvalidLengthDmworker 9015 } 9016 if postIndex > l { 9017 return io.ErrUnexpectedEOF 9018 } 9019 m.Target = string(dAtA[iNdEx:postIndex]) 9020 iNdEx = postIndex 9021 case 2: 9022 if wireType != 2 { 9023 return fmt.Errorf("proto: wrong wireType = %d for field DDLs", wireType) 9024 } 9025 var stringLen uint64 9026 for shift := uint(0); ; shift += 7 { 9027 if shift >= 64 { 9028 return ErrIntOverflowDmworker 9029 } 9030 if iNdEx >= l { 9031 return io.ErrUnexpectedEOF 9032 } 9033 b := dAtA[iNdEx] 9034 iNdEx++ 9035 stringLen |= uint64(b&0x7F) << shift 9036 if b < 0x80 { 9037 break 9038 } 9039 } 9040 intStringLen := int(stringLen) 9041 if intStringLen < 0 { 9042 return ErrInvalidLengthDmworker 9043 } 9044 postIndex := iNdEx + intStringLen 9045 if postIndex < 0 { 9046 return ErrInvalidLengthDmworker 9047 } 9048 if postIndex > l { 9049 return io.ErrUnexpectedEOF 9050 } 9051 m.DDLs = append(m.DDLs, string(dAtA[iNdEx:postIndex])) 9052 iNdEx = postIndex 9053 case 3: 9054 if wireType != 2 { 9055 return fmt.Errorf("proto: wrong wireType = %d for field FirstLocation", wireType) 9056 } 9057 var stringLen uint64 9058 for shift := uint(0); ; shift += 7 { 9059 if shift >= 64 { 9060 return ErrIntOverflowDmworker 9061 } 9062 if iNdEx >= l { 9063 return io.ErrUnexpectedEOF 9064 } 9065 b := dAtA[iNdEx] 9066 iNdEx++ 9067 stringLen |= uint64(b&0x7F) << shift 9068 if b < 0x80 { 9069 break 9070 } 9071 } 9072 intStringLen := int(stringLen) 9073 if intStringLen < 0 { 9074 return ErrInvalidLengthDmworker 9075 } 9076 postIndex := iNdEx + intStringLen 9077 if postIndex < 0 { 9078 return ErrInvalidLengthDmworker 9079 } 9080 if postIndex > l { 9081 return io.ErrUnexpectedEOF 9082 } 9083 m.FirstLocation = string(dAtA[iNdEx:postIndex]) 9084 iNdEx = postIndex 9085 case 4: 9086 if wireType != 2 { 9087 return fmt.Errorf("proto: wrong wireType = %d for field Synced", wireType) 9088 } 9089 var stringLen uint64 9090 for shift := uint(0); ; shift += 7 { 9091 if shift >= 64 { 9092 return ErrIntOverflowDmworker 9093 } 9094 if iNdEx >= l { 9095 return io.ErrUnexpectedEOF 9096 } 9097 b := dAtA[iNdEx] 9098 iNdEx++ 9099 stringLen |= uint64(b&0x7F) << shift 9100 if b < 0x80 { 9101 break 9102 } 9103 } 9104 intStringLen := int(stringLen) 9105 if intStringLen < 0 { 9106 return ErrInvalidLengthDmworker 9107 } 9108 postIndex := iNdEx + intStringLen 9109 if postIndex < 0 { 9110 return ErrInvalidLengthDmworker 9111 } 9112 if postIndex > l { 9113 return io.ErrUnexpectedEOF 9114 } 9115 m.Synced = append(m.Synced, string(dAtA[iNdEx:postIndex])) 9116 iNdEx = postIndex 9117 case 5: 9118 if wireType != 2 { 9119 return fmt.Errorf("proto: wrong wireType = %d for field Unsynced", wireType) 9120 } 9121 var stringLen uint64 9122 for shift := uint(0); ; shift += 7 { 9123 if shift >= 64 { 9124 return ErrIntOverflowDmworker 9125 } 9126 if iNdEx >= l { 9127 return io.ErrUnexpectedEOF 9128 } 9129 b := dAtA[iNdEx] 9130 iNdEx++ 9131 stringLen |= uint64(b&0x7F) << shift 9132 if b < 0x80 { 9133 break 9134 } 9135 } 9136 intStringLen := int(stringLen) 9137 if intStringLen < 0 { 9138 return ErrInvalidLengthDmworker 9139 } 9140 postIndex := iNdEx + intStringLen 9141 if postIndex < 0 { 9142 return ErrInvalidLengthDmworker 9143 } 9144 if postIndex > l { 9145 return io.ErrUnexpectedEOF 9146 } 9147 m.Unsynced = append(m.Unsynced, string(dAtA[iNdEx:postIndex])) 9148 iNdEx = postIndex 9149 default: 9150 iNdEx = preIndex 9151 skippy, err := skipDmworker(dAtA[iNdEx:]) 9152 if err != nil { 9153 return err 9154 } 9155 if (skippy < 0) || (iNdEx+skippy) < 0 { 9156 return ErrInvalidLengthDmworker 9157 } 9158 if (iNdEx + skippy) > l { 9159 return io.ErrUnexpectedEOF 9160 } 9161 iNdEx += skippy 9162 } 9163 } 9164 9165 if iNdEx > l { 9166 return io.ErrUnexpectedEOF 9167 } 9168 return nil 9169 } 9170 func (m *SyncStatus) Unmarshal(dAtA []byte) error { 9171 l := len(dAtA) 9172 iNdEx := 0 9173 for iNdEx < l { 9174 preIndex := iNdEx 9175 var wire uint64 9176 for shift := uint(0); ; shift += 7 { 9177 if shift >= 64 { 9178 return ErrIntOverflowDmworker 9179 } 9180 if iNdEx >= l { 9181 return io.ErrUnexpectedEOF 9182 } 9183 b := dAtA[iNdEx] 9184 iNdEx++ 9185 wire |= uint64(b&0x7F) << shift 9186 if b < 0x80 { 9187 break 9188 } 9189 } 9190 fieldNum := int32(wire >> 3) 9191 wireType := int(wire & 0x7) 9192 if wireType == 4 { 9193 return fmt.Errorf("proto: SyncStatus: wiretype end group for non-group") 9194 } 9195 if fieldNum <= 0 { 9196 return fmt.Errorf("proto: SyncStatus: illegal tag %d (wire type %d)", fieldNum, wire) 9197 } 9198 switch fieldNum { 9199 case 1: 9200 if wireType != 0 { 9201 return fmt.Errorf("proto: wrong wireType = %d for field TotalEvents", wireType) 9202 } 9203 m.TotalEvents = 0 9204 for shift := uint(0); ; shift += 7 { 9205 if shift >= 64 { 9206 return ErrIntOverflowDmworker 9207 } 9208 if iNdEx >= l { 9209 return io.ErrUnexpectedEOF 9210 } 9211 b := dAtA[iNdEx] 9212 iNdEx++ 9213 m.TotalEvents |= int64(b&0x7F) << shift 9214 if b < 0x80 { 9215 break 9216 } 9217 } 9218 case 2: 9219 if wireType != 0 { 9220 return fmt.Errorf("proto: wrong wireType = %d for field TotalTps", wireType) 9221 } 9222 m.TotalTps = 0 9223 for shift := uint(0); ; shift += 7 { 9224 if shift >= 64 { 9225 return ErrIntOverflowDmworker 9226 } 9227 if iNdEx >= l { 9228 return io.ErrUnexpectedEOF 9229 } 9230 b := dAtA[iNdEx] 9231 iNdEx++ 9232 m.TotalTps |= int64(b&0x7F) << shift 9233 if b < 0x80 { 9234 break 9235 } 9236 } 9237 case 3: 9238 if wireType != 0 { 9239 return fmt.Errorf("proto: wrong wireType = %d for field RecentTps", wireType) 9240 } 9241 m.RecentTps = 0 9242 for shift := uint(0); ; shift += 7 { 9243 if shift >= 64 { 9244 return ErrIntOverflowDmworker 9245 } 9246 if iNdEx >= l { 9247 return io.ErrUnexpectedEOF 9248 } 9249 b := dAtA[iNdEx] 9250 iNdEx++ 9251 m.RecentTps |= int64(b&0x7F) << shift 9252 if b < 0x80 { 9253 break 9254 } 9255 } 9256 case 4: 9257 if wireType != 2 { 9258 return fmt.Errorf("proto: wrong wireType = %d for field MasterBinlog", wireType) 9259 } 9260 var stringLen uint64 9261 for shift := uint(0); ; shift += 7 { 9262 if shift >= 64 { 9263 return ErrIntOverflowDmworker 9264 } 9265 if iNdEx >= l { 9266 return io.ErrUnexpectedEOF 9267 } 9268 b := dAtA[iNdEx] 9269 iNdEx++ 9270 stringLen |= uint64(b&0x7F) << shift 9271 if b < 0x80 { 9272 break 9273 } 9274 } 9275 intStringLen := int(stringLen) 9276 if intStringLen < 0 { 9277 return ErrInvalidLengthDmworker 9278 } 9279 postIndex := iNdEx + intStringLen 9280 if postIndex < 0 { 9281 return ErrInvalidLengthDmworker 9282 } 9283 if postIndex > l { 9284 return io.ErrUnexpectedEOF 9285 } 9286 m.MasterBinlog = string(dAtA[iNdEx:postIndex]) 9287 iNdEx = postIndex 9288 case 5: 9289 if wireType != 2 { 9290 return fmt.Errorf("proto: wrong wireType = %d for field MasterBinlogGtid", wireType) 9291 } 9292 var stringLen uint64 9293 for shift := uint(0); ; shift += 7 { 9294 if shift >= 64 { 9295 return ErrIntOverflowDmworker 9296 } 9297 if iNdEx >= l { 9298 return io.ErrUnexpectedEOF 9299 } 9300 b := dAtA[iNdEx] 9301 iNdEx++ 9302 stringLen |= uint64(b&0x7F) << shift 9303 if b < 0x80 { 9304 break 9305 } 9306 } 9307 intStringLen := int(stringLen) 9308 if intStringLen < 0 { 9309 return ErrInvalidLengthDmworker 9310 } 9311 postIndex := iNdEx + intStringLen 9312 if postIndex < 0 { 9313 return ErrInvalidLengthDmworker 9314 } 9315 if postIndex > l { 9316 return io.ErrUnexpectedEOF 9317 } 9318 m.MasterBinlogGtid = string(dAtA[iNdEx:postIndex]) 9319 iNdEx = postIndex 9320 case 6: 9321 if wireType != 2 { 9322 return fmt.Errorf("proto: wrong wireType = %d for field SyncerBinlog", wireType) 9323 } 9324 var stringLen uint64 9325 for shift := uint(0); ; shift += 7 { 9326 if shift >= 64 { 9327 return ErrIntOverflowDmworker 9328 } 9329 if iNdEx >= l { 9330 return io.ErrUnexpectedEOF 9331 } 9332 b := dAtA[iNdEx] 9333 iNdEx++ 9334 stringLen |= uint64(b&0x7F) << shift 9335 if b < 0x80 { 9336 break 9337 } 9338 } 9339 intStringLen := int(stringLen) 9340 if intStringLen < 0 { 9341 return ErrInvalidLengthDmworker 9342 } 9343 postIndex := iNdEx + intStringLen 9344 if postIndex < 0 { 9345 return ErrInvalidLengthDmworker 9346 } 9347 if postIndex > l { 9348 return io.ErrUnexpectedEOF 9349 } 9350 m.SyncerBinlog = string(dAtA[iNdEx:postIndex]) 9351 iNdEx = postIndex 9352 case 7: 9353 if wireType != 2 { 9354 return fmt.Errorf("proto: wrong wireType = %d for field SyncerBinlogGtid", wireType) 9355 } 9356 var stringLen uint64 9357 for shift := uint(0); ; shift += 7 { 9358 if shift >= 64 { 9359 return ErrIntOverflowDmworker 9360 } 9361 if iNdEx >= l { 9362 return io.ErrUnexpectedEOF 9363 } 9364 b := dAtA[iNdEx] 9365 iNdEx++ 9366 stringLen |= uint64(b&0x7F) << shift 9367 if b < 0x80 { 9368 break 9369 } 9370 } 9371 intStringLen := int(stringLen) 9372 if intStringLen < 0 { 9373 return ErrInvalidLengthDmworker 9374 } 9375 postIndex := iNdEx + intStringLen 9376 if postIndex < 0 { 9377 return ErrInvalidLengthDmworker 9378 } 9379 if postIndex > l { 9380 return io.ErrUnexpectedEOF 9381 } 9382 m.SyncerBinlogGtid = string(dAtA[iNdEx:postIndex]) 9383 iNdEx = postIndex 9384 case 8: 9385 if wireType != 2 { 9386 return fmt.Errorf("proto: wrong wireType = %d for field BlockingDDLs", wireType) 9387 } 9388 var stringLen uint64 9389 for shift := uint(0); ; shift += 7 { 9390 if shift >= 64 { 9391 return ErrIntOverflowDmworker 9392 } 9393 if iNdEx >= l { 9394 return io.ErrUnexpectedEOF 9395 } 9396 b := dAtA[iNdEx] 9397 iNdEx++ 9398 stringLen |= uint64(b&0x7F) << shift 9399 if b < 0x80 { 9400 break 9401 } 9402 } 9403 intStringLen := int(stringLen) 9404 if intStringLen < 0 { 9405 return ErrInvalidLengthDmworker 9406 } 9407 postIndex := iNdEx + intStringLen 9408 if postIndex < 0 { 9409 return ErrInvalidLengthDmworker 9410 } 9411 if postIndex > l { 9412 return io.ErrUnexpectedEOF 9413 } 9414 m.BlockingDDLs = append(m.BlockingDDLs, string(dAtA[iNdEx:postIndex])) 9415 iNdEx = postIndex 9416 case 9: 9417 if wireType != 2 { 9418 return fmt.Errorf("proto: wrong wireType = %d for field UnresolvedGroups", wireType) 9419 } 9420 var msglen int 9421 for shift := uint(0); ; shift += 7 { 9422 if shift >= 64 { 9423 return ErrIntOverflowDmworker 9424 } 9425 if iNdEx >= l { 9426 return io.ErrUnexpectedEOF 9427 } 9428 b := dAtA[iNdEx] 9429 iNdEx++ 9430 msglen |= int(b&0x7F) << shift 9431 if b < 0x80 { 9432 break 9433 } 9434 } 9435 if msglen < 0 { 9436 return ErrInvalidLengthDmworker 9437 } 9438 postIndex := iNdEx + msglen 9439 if postIndex < 0 { 9440 return ErrInvalidLengthDmworker 9441 } 9442 if postIndex > l { 9443 return io.ErrUnexpectedEOF 9444 } 9445 m.UnresolvedGroups = append(m.UnresolvedGroups, &ShardingGroup{}) 9446 if err := m.UnresolvedGroups[len(m.UnresolvedGroups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9447 return err 9448 } 9449 iNdEx = postIndex 9450 case 10: 9451 if wireType != 0 { 9452 return fmt.Errorf("proto: wrong wireType = %d for field Synced", wireType) 9453 } 9454 var v int 9455 for shift := uint(0); ; shift += 7 { 9456 if shift >= 64 { 9457 return ErrIntOverflowDmworker 9458 } 9459 if iNdEx >= l { 9460 return io.ErrUnexpectedEOF 9461 } 9462 b := dAtA[iNdEx] 9463 iNdEx++ 9464 v |= int(b&0x7F) << shift 9465 if b < 0x80 { 9466 break 9467 } 9468 } 9469 m.Synced = bool(v != 0) 9470 case 11: 9471 if wireType != 2 { 9472 return fmt.Errorf("proto: wrong wireType = %d for field BinlogType", wireType) 9473 } 9474 var stringLen uint64 9475 for shift := uint(0); ; shift += 7 { 9476 if shift >= 64 { 9477 return ErrIntOverflowDmworker 9478 } 9479 if iNdEx >= l { 9480 return io.ErrUnexpectedEOF 9481 } 9482 b := dAtA[iNdEx] 9483 iNdEx++ 9484 stringLen |= uint64(b&0x7F) << shift 9485 if b < 0x80 { 9486 break 9487 } 9488 } 9489 intStringLen := int(stringLen) 9490 if intStringLen < 0 { 9491 return ErrInvalidLengthDmworker 9492 } 9493 postIndex := iNdEx + intStringLen 9494 if postIndex < 0 { 9495 return ErrInvalidLengthDmworker 9496 } 9497 if postIndex > l { 9498 return io.ErrUnexpectedEOF 9499 } 9500 m.BinlogType = string(dAtA[iNdEx:postIndex]) 9501 iNdEx = postIndex 9502 case 12: 9503 if wireType != 0 { 9504 return fmt.Errorf("proto: wrong wireType = %d for field SecondsBehindMaster", wireType) 9505 } 9506 m.SecondsBehindMaster = 0 9507 for shift := uint(0); ; shift += 7 { 9508 if shift >= 64 { 9509 return ErrIntOverflowDmworker 9510 } 9511 if iNdEx >= l { 9512 return io.ErrUnexpectedEOF 9513 } 9514 b := dAtA[iNdEx] 9515 iNdEx++ 9516 m.SecondsBehindMaster |= int64(b&0x7F) << shift 9517 if b < 0x80 { 9518 break 9519 } 9520 } 9521 case 13: 9522 if wireType != 2 { 9523 return fmt.Errorf("proto: wrong wireType = %d for field BlockDDLOwner", wireType) 9524 } 9525 var stringLen uint64 9526 for shift := uint(0); ; shift += 7 { 9527 if shift >= 64 { 9528 return ErrIntOverflowDmworker 9529 } 9530 if iNdEx >= l { 9531 return io.ErrUnexpectedEOF 9532 } 9533 b := dAtA[iNdEx] 9534 iNdEx++ 9535 stringLen |= uint64(b&0x7F) << shift 9536 if b < 0x80 { 9537 break 9538 } 9539 } 9540 intStringLen := int(stringLen) 9541 if intStringLen < 0 { 9542 return ErrInvalidLengthDmworker 9543 } 9544 postIndex := iNdEx + intStringLen 9545 if postIndex < 0 { 9546 return ErrInvalidLengthDmworker 9547 } 9548 if postIndex > l { 9549 return io.ErrUnexpectedEOF 9550 } 9551 m.BlockDDLOwner = string(dAtA[iNdEx:postIndex]) 9552 iNdEx = postIndex 9553 case 14: 9554 if wireType != 2 { 9555 return fmt.Errorf("proto: wrong wireType = %d for field ConflictMsg", wireType) 9556 } 9557 var stringLen uint64 9558 for shift := uint(0); ; shift += 7 { 9559 if shift >= 64 { 9560 return ErrIntOverflowDmworker 9561 } 9562 if iNdEx >= l { 9563 return io.ErrUnexpectedEOF 9564 } 9565 b := dAtA[iNdEx] 9566 iNdEx++ 9567 stringLen |= uint64(b&0x7F) << shift 9568 if b < 0x80 { 9569 break 9570 } 9571 } 9572 intStringLen := int(stringLen) 9573 if intStringLen < 0 { 9574 return ErrInvalidLengthDmworker 9575 } 9576 postIndex := iNdEx + intStringLen 9577 if postIndex < 0 { 9578 return ErrInvalidLengthDmworker 9579 } 9580 if postIndex > l { 9581 return io.ErrUnexpectedEOF 9582 } 9583 m.ConflictMsg = string(dAtA[iNdEx:postIndex]) 9584 iNdEx = postIndex 9585 case 15: 9586 if wireType != 0 { 9587 return fmt.Errorf("proto: wrong wireType = %d for field TotalRows", wireType) 9588 } 9589 m.TotalRows = 0 9590 for shift := uint(0); ; shift += 7 { 9591 if shift >= 64 { 9592 return ErrIntOverflowDmworker 9593 } 9594 if iNdEx >= l { 9595 return io.ErrUnexpectedEOF 9596 } 9597 b := dAtA[iNdEx] 9598 iNdEx++ 9599 m.TotalRows |= int64(b&0x7F) << shift 9600 if b < 0x80 { 9601 break 9602 } 9603 } 9604 case 16: 9605 if wireType != 0 { 9606 return fmt.Errorf("proto: wrong wireType = %d for field TotalRps", wireType) 9607 } 9608 m.TotalRps = 0 9609 for shift := uint(0); ; shift += 7 { 9610 if shift >= 64 { 9611 return ErrIntOverflowDmworker 9612 } 9613 if iNdEx >= l { 9614 return io.ErrUnexpectedEOF 9615 } 9616 b := dAtA[iNdEx] 9617 iNdEx++ 9618 m.TotalRps |= int64(b&0x7F) << shift 9619 if b < 0x80 { 9620 break 9621 } 9622 } 9623 case 17: 9624 if wireType != 0 { 9625 return fmt.Errorf("proto: wrong wireType = %d for field RecentRps", wireType) 9626 } 9627 m.RecentRps = 0 9628 for shift := uint(0); ; shift += 7 { 9629 if shift >= 64 { 9630 return ErrIntOverflowDmworker 9631 } 9632 if iNdEx >= l { 9633 return io.ErrUnexpectedEOF 9634 } 9635 b := dAtA[iNdEx] 9636 iNdEx++ 9637 m.RecentRps |= int64(b&0x7F) << shift 9638 if b < 0x80 { 9639 break 9640 } 9641 } 9642 default: 9643 iNdEx = preIndex 9644 skippy, err := skipDmworker(dAtA[iNdEx:]) 9645 if err != nil { 9646 return err 9647 } 9648 if (skippy < 0) || (iNdEx+skippy) < 0 { 9649 return ErrInvalidLengthDmworker 9650 } 9651 if (iNdEx + skippy) > l { 9652 return io.ErrUnexpectedEOF 9653 } 9654 iNdEx += skippy 9655 } 9656 } 9657 9658 if iNdEx > l { 9659 return io.ErrUnexpectedEOF 9660 } 9661 return nil 9662 } 9663 func (m *SourceStatus) Unmarshal(dAtA []byte) error { 9664 l := len(dAtA) 9665 iNdEx := 0 9666 for iNdEx < l { 9667 preIndex := iNdEx 9668 var wire uint64 9669 for shift := uint(0); ; shift += 7 { 9670 if shift >= 64 { 9671 return ErrIntOverflowDmworker 9672 } 9673 if iNdEx >= l { 9674 return io.ErrUnexpectedEOF 9675 } 9676 b := dAtA[iNdEx] 9677 iNdEx++ 9678 wire |= uint64(b&0x7F) << shift 9679 if b < 0x80 { 9680 break 9681 } 9682 } 9683 fieldNum := int32(wire >> 3) 9684 wireType := int(wire & 0x7) 9685 if wireType == 4 { 9686 return fmt.Errorf("proto: SourceStatus: wiretype end group for non-group") 9687 } 9688 if fieldNum <= 0 { 9689 return fmt.Errorf("proto: SourceStatus: illegal tag %d (wire type %d)", fieldNum, wire) 9690 } 9691 switch fieldNum { 9692 case 1: 9693 if wireType != 2 { 9694 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) 9695 } 9696 var stringLen uint64 9697 for shift := uint(0); ; shift += 7 { 9698 if shift >= 64 { 9699 return ErrIntOverflowDmworker 9700 } 9701 if iNdEx >= l { 9702 return io.ErrUnexpectedEOF 9703 } 9704 b := dAtA[iNdEx] 9705 iNdEx++ 9706 stringLen |= uint64(b&0x7F) << shift 9707 if b < 0x80 { 9708 break 9709 } 9710 } 9711 intStringLen := int(stringLen) 9712 if intStringLen < 0 { 9713 return ErrInvalidLengthDmworker 9714 } 9715 postIndex := iNdEx + intStringLen 9716 if postIndex < 0 { 9717 return ErrInvalidLengthDmworker 9718 } 9719 if postIndex > l { 9720 return io.ErrUnexpectedEOF 9721 } 9722 m.Source = string(dAtA[iNdEx:postIndex]) 9723 iNdEx = postIndex 9724 case 2: 9725 if wireType != 2 { 9726 return fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) 9727 } 9728 var stringLen uint64 9729 for shift := uint(0); ; shift += 7 { 9730 if shift >= 64 { 9731 return ErrIntOverflowDmworker 9732 } 9733 if iNdEx >= l { 9734 return io.ErrUnexpectedEOF 9735 } 9736 b := dAtA[iNdEx] 9737 iNdEx++ 9738 stringLen |= uint64(b&0x7F) << shift 9739 if b < 0x80 { 9740 break 9741 } 9742 } 9743 intStringLen := int(stringLen) 9744 if intStringLen < 0 { 9745 return ErrInvalidLengthDmworker 9746 } 9747 postIndex := iNdEx + intStringLen 9748 if postIndex < 0 { 9749 return ErrInvalidLengthDmworker 9750 } 9751 if postIndex > l { 9752 return io.ErrUnexpectedEOF 9753 } 9754 m.Worker = string(dAtA[iNdEx:postIndex]) 9755 iNdEx = postIndex 9756 case 3: 9757 if wireType != 2 { 9758 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 9759 } 9760 var msglen int 9761 for shift := uint(0); ; shift += 7 { 9762 if shift >= 64 { 9763 return ErrIntOverflowDmworker 9764 } 9765 if iNdEx >= l { 9766 return io.ErrUnexpectedEOF 9767 } 9768 b := dAtA[iNdEx] 9769 iNdEx++ 9770 msglen |= int(b&0x7F) << shift 9771 if b < 0x80 { 9772 break 9773 } 9774 } 9775 if msglen < 0 { 9776 return ErrInvalidLengthDmworker 9777 } 9778 postIndex := iNdEx + msglen 9779 if postIndex < 0 { 9780 return ErrInvalidLengthDmworker 9781 } 9782 if postIndex > l { 9783 return io.ErrUnexpectedEOF 9784 } 9785 if m.Result == nil { 9786 m.Result = &ProcessResult{} 9787 } 9788 if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9789 return err 9790 } 9791 iNdEx = postIndex 9792 case 4: 9793 if wireType != 2 { 9794 return fmt.Errorf("proto: wrong wireType = %d for field RelayStatus", wireType) 9795 } 9796 var msglen int 9797 for shift := uint(0); ; shift += 7 { 9798 if shift >= 64 { 9799 return ErrIntOverflowDmworker 9800 } 9801 if iNdEx >= l { 9802 return io.ErrUnexpectedEOF 9803 } 9804 b := dAtA[iNdEx] 9805 iNdEx++ 9806 msglen |= int(b&0x7F) << shift 9807 if b < 0x80 { 9808 break 9809 } 9810 } 9811 if msglen < 0 { 9812 return ErrInvalidLengthDmworker 9813 } 9814 postIndex := iNdEx + msglen 9815 if postIndex < 0 { 9816 return ErrInvalidLengthDmworker 9817 } 9818 if postIndex > l { 9819 return io.ErrUnexpectedEOF 9820 } 9821 if m.RelayStatus == nil { 9822 m.RelayStatus = &RelayStatus{} 9823 } 9824 if err := m.RelayStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9825 return err 9826 } 9827 iNdEx = postIndex 9828 default: 9829 iNdEx = preIndex 9830 skippy, err := skipDmworker(dAtA[iNdEx:]) 9831 if err != nil { 9832 return err 9833 } 9834 if (skippy < 0) || (iNdEx+skippy) < 0 { 9835 return ErrInvalidLengthDmworker 9836 } 9837 if (iNdEx + skippy) > l { 9838 return io.ErrUnexpectedEOF 9839 } 9840 iNdEx += skippy 9841 } 9842 } 9843 9844 if iNdEx > l { 9845 return io.ErrUnexpectedEOF 9846 } 9847 return nil 9848 } 9849 func (m *RelayStatus) Unmarshal(dAtA []byte) error { 9850 l := len(dAtA) 9851 iNdEx := 0 9852 for iNdEx < l { 9853 preIndex := iNdEx 9854 var wire uint64 9855 for shift := uint(0); ; shift += 7 { 9856 if shift >= 64 { 9857 return ErrIntOverflowDmworker 9858 } 9859 if iNdEx >= l { 9860 return io.ErrUnexpectedEOF 9861 } 9862 b := dAtA[iNdEx] 9863 iNdEx++ 9864 wire |= uint64(b&0x7F) << shift 9865 if b < 0x80 { 9866 break 9867 } 9868 } 9869 fieldNum := int32(wire >> 3) 9870 wireType := int(wire & 0x7) 9871 if wireType == 4 { 9872 return fmt.Errorf("proto: RelayStatus: wiretype end group for non-group") 9873 } 9874 if fieldNum <= 0 { 9875 return fmt.Errorf("proto: RelayStatus: illegal tag %d (wire type %d)", fieldNum, wire) 9876 } 9877 switch fieldNum { 9878 case 1: 9879 if wireType != 2 { 9880 return fmt.Errorf("proto: wrong wireType = %d for field MasterBinlog", wireType) 9881 } 9882 var stringLen uint64 9883 for shift := uint(0); ; shift += 7 { 9884 if shift >= 64 { 9885 return ErrIntOverflowDmworker 9886 } 9887 if iNdEx >= l { 9888 return io.ErrUnexpectedEOF 9889 } 9890 b := dAtA[iNdEx] 9891 iNdEx++ 9892 stringLen |= uint64(b&0x7F) << shift 9893 if b < 0x80 { 9894 break 9895 } 9896 } 9897 intStringLen := int(stringLen) 9898 if intStringLen < 0 { 9899 return ErrInvalidLengthDmworker 9900 } 9901 postIndex := iNdEx + intStringLen 9902 if postIndex < 0 { 9903 return ErrInvalidLengthDmworker 9904 } 9905 if postIndex > l { 9906 return io.ErrUnexpectedEOF 9907 } 9908 m.MasterBinlog = string(dAtA[iNdEx:postIndex]) 9909 iNdEx = postIndex 9910 case 2: 9911 if wireType != 2 { 9912 return fmt.Errorf("proto: wrong wireType = %d for field MasterBinlogGtid", wireType) 9913 } 9914 var stringLen uint64 9915 for shift := uint(0); ; shift += 7 { 9916 if shift >= 64 { 9917 return ErrIntOverflowDmworker 9918 } 9919 if iNdEx >= l { 9920 return io.ErrUnexpectedEOF 9921 } 9922 b := dAtA[iNdEx] 9923 iNdEx++ 9924 stringLen |= uint64(b&0x7F) << shift 9925 if b < 0x80 { 9926 break 9927 } 9928 } 9929 intStringLen := int(stringLen) 9930 if intStringLen < 0 { 9931 return ErrInvalidLengthDmworker 9932 } 9933 postIndex := iNdEx + intStringLen 9934 if postIndex < 0 { 9935 return ErrInvalidLengthDmworker 9936 } 9937 if postIndex > l { 9938 return io.ErrUnexpectedEOF 9939 } 9940 m.MasterBinlogGtid = string(dAtA[iNdEx:postIndex]) 9941 iNdEx = postIndex 9942 case 3: 9943 if wireType != 2 { 9944 return fmt.Errorf("proto: wrong wireType = %d for field RelaySubDir", wireType) 9945 } 9946 var stringLen uint64 9947 for shift := uint(0); ; shift += 7 { 9948 if shift >= 64 { 9949 return ErrIntOverflowDmworker 9950 } 9951 if iNdEx >= l { 9952 return io.ErrUnexpectedEOF 9953 } 9954 b := dAtA[iNdEx] 9955 iNdEx++ 9956 stringLen |= uint64(b&0x7F) << shift 9957 if b < 0x80 { 9958 break 9959 } 9960 } 9961 intStringLen := int(stringLen) 9962 if intStringLen < 0 { 9963 return ErrInvalidLengthDmworker 9964 } 9965 postIndex := iNdEx + intStringLen 9966 if postIndex < 0 { 9967 return ErrInvalidLengthDmworker 9968 } 9969 if postIndex > l { 9970 return io.ErrUnexpectedEOF 9971 } 9972 m.RelaySubDir = string(dAtA[iNdEx:postIndex]) 9973 iNdEx = postIndex 9974 case 4: 9975 if wireType != 2 { 9976 return fmt.Errorf("proto: wrong wireType = %d for field RelayBinlog", wireType) 9977 } 9978 var stringLen uint64 9979 for shift := uint(0); ; shift += 7 { 9980 if shift >= 64 { 9981 return ErrIntOverflowDmworker 9982 } 9983 if iNdEx >= l { 9984 return io.ErrUnexpectedEOF 9985 } 9986 b := dAtA[iNdEx] 9987 iNdEx++ 9988 stringLen |= uint64(b&0x7F) << shift 9989 if b < 0x80 { 9990 break 9991 } 9992 } 9993 intStringLen := int(stringLen) 9994 if intStringLen < 0 { 9995 return ErrInvalidLengthDmworker 9996 } 9997 postIndex := iNdEx + intStringLen 9998 if postIndex < 0 { 9999 return ErrInvalidLengthDmworker 10000 } 10001 if postIndex > l { 10002 return io.ErrUnexpectedEOF 10003 } 10004 m.RelayBinlog = string(dAtA[iNdEx:postIndex]) 10005 iNdEx = postIndex 10006 case 5: 10007 if wireType != 2 { 10008 return fmt.Errorf("proto: wrong wireType = %d for field RelayBinlogGtid", wireType) 10009 } 10010 var stringLen uint64 10011 for shift := uint(0); ; shift += 7 { 10012 if shift >= 64 { 10013 return ErrIntOverflowDmworker 10014 } 10015 if iNdEx >= l { 10016 return io.ErrUnexpectedEOF 10017 } 10018 b := dAtA[iNdEx] 10019 iNdEx++ 10020 stringLen |= uint64(b&0x7F) << shift 10021 if b < 0x80 { 10022 break 10023 } 10024 } 10025 intStringLen := int(stringLen) 10026 if intStringLen < 0 { 10027 return ErrInvalidLengthDmworker 10028 } 10029 postIndex := iNdEx + intStringLen 10030 if postIndex < 0 { 10031 return ErrInvalidLengthDmworker 10032 } 10033 if postIndex > l { 10034 return io.ErrUnexpectedEOF 10035 } 10036 m.RelayBinlogGtid = string(dAtA[iNdEx:postIndex]) 10037 iNdEx = postIndex 10038 case 6: 10039 if wireType != 0 { 10040 return fmt.Errorf("proto: wrong wireType = %d for field RelayCatchUpMaster", wireType) 10041 } 10042 var v int 10043 for shift := uint(0); ; shift += 7 { 10044 if shift >= 64 { 10045 return ErrIntOverflowDmworker 10046 } 10047 if iNdEx >= l { 10048 return io.ErrUnexpectedEOF 10049 } 10050 b := dAtA[iNdEx] 10051 iNdEx++ 10052 v |= int(b&0x7F) << shift 10053 if b < 0x80 { 10054 break 10055 } 10056 } 10057 m.RelayCatchUpMaster = bool(v != 0) 10058 case 7: 10059 if wireType != 0 { 10060 return fmt.Errorf("proto: wrong wireType = %d for field Stage", wireType) 10061 } 10062 m.Stage = 0 10063 for shift := uint(0); ; shift += 7 { 10064 if shift >= 64 { 10065 return ErrIntOverflowDmworker 10066 } 10067 if iNdEx >= l { 10068 return io.ErrUnexpectedEOF 10069 } 10070 b := dAtA[iNdEx] 10071 iNdEx++ 10072 m.Stage |= Stage(b&0x7F) << shift 10073 if b < 0x80 { 10074 break 10075 } 10076 } 10077 case 8: 10078 if wireType != 2 { 10079 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 10080 } 10081 var msglen int 10082 for shift := uint(0); ; shift += 7 { 10083 if shift >= 64 { 10084 return ErrIntOverflowDmworker 10085 } 10086 if iNdEx >= l { 10087 return io.ErrUnexpectedEOF 10088 } 10089 b := dAtA[iNdEx] 10090 iNdEx++ 10091 msglen |= int(b&0x7F) << shift 10092 if b < 0x80 { 10093 break 10094 } 10095 } 10096 if msglen < 0 { 10097 return ErrInvalidLengthDmworker 10098 } 10099 postIndex := iNdEx + msglen 10100 if postIndex < 0 { 10101 return ErrInvalidLengthDmworker 10102 } 10103 if postIndex > l { 10104 return io.ErrUnexpectedEOF 10105 } 10106 if m.Result == nil { 10107 m.Result = &ProcessResult{} 10108 } 10109 if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10110 return err 10111 } 10112 iNdEx = postIndex 10113 default: 10114 iNdEx = preIndex 10115 skippy, err := skipDmworker(dAtA[iNdEx:]) 10116 if err != nil { 10117 return err 10118 } 10119 if (skippy < 0) || (iNdEx+skippy) < 0 { 10120 return ErrInvalidLengthDmworker 10121 } 10122 if (iNdEx + skippy) > l { 10123 return io.ErrUnexpectedEOF 10124 } 10125 iNdEx += skippy 10126 } 10127 } 10128 10129 if iNdEx > l { 10130 return io.ErrUnexpectedEOF 10131 } 10132 return nil 10133 } 10134 func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { 10135 l := len(dAtA) 10136 iNdEx := 0 10137 for iNdEx < l { 10138 preIndex := iNdEx 10139 var wire uint64 10140 for shift := uint(0); ; shift += 7 { 10141 if shift >= 64 { 10142 return ErrIntOverflowDmworker 10143 } 10144 if iNdEx >= l { 10145 return io.ErrUnexpectedEOF 10146 } 10147 b := dAtA[iNdEx] 10148 iNdEx++ 10149 wire |= uint64(b&0x7F) << shift 10150 if b < 0x80 { 10151 break 10152 } 10153 } 10154 fieldNum := int32(wire >> 3) 10155 wireType := int(wire & 0x7) 10156 if wireType == 4 { 10157 return fmt.Errorf("proto: SubTaskStatus: wiretype end group for non-group") 10158 } 10159 if fieldNum <= 0 { 10160 return fmt.Errorf("proto: SubTaskStatus: illegal tag %d (wire type %d)", fieldNum, wire) 10161 } 10162 switch fieldNum { 10163 case 1: 10164 if wireType != 2 { 10165 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 10166 } 10167 var stringLen uint64 10168 for shift := uint(0); ; shift += 7 { 10169 if shift >= 64 { 10170 return ErrIntOverflowDmworker 10171 } 10172 if iNdEx >= l { 10173 return io.ErrUnexpectedEOF 10174 } 10175 b := dAtA[iNdEx] 10176 iNdEx++ 10177 stringLen |= uint64(b&0x7F) << shift 10178 if b < 0x80 { 10179 break 10180 } 10181 } 10182 intStringLen := int(stringLen) 10183 if intStringLen < 0 { 10184 return ErrInvalidLengthDmworker 10185 } 10186 postIndex := iNdEx + intStringLen 10187 if postIndex < 0 { 10188 return ErrInvalidLengthDmworker 10189 } 10190 if postIndex > l { 10191 return io.ErrUnexpectedEOF 10192 } 10193 m.Name = string(dAtA[iNdEx:postIndex]) 10194 iNdEx = postIndex 10195 case 2: 10196 if wireType != 0 { 10197 return fmt.Errorf("proto: wrong wireType = %d for field Stage", wireType) 10198 } 10199 m.Stage = 0 10200 for shift := uint(0); ; shift += 7 { 10201 if shift >= 64 { 10202 return ErrIntOverflowDmworker 10203 } 10204 if iNdEx >= l { 10205 return io.ErrUnexpectedEOF 10206 } 10207 b := dAtA[iNdEx] 10208 iNdEx++ 10209 m.Stage |= Stage(b&0x7F) << shift 10210 if b < 0x80 { 10211 break 10212 } 10213 } 10214 case 3: 10215 if wireType != 0 { 10216 return fmt.Errorf("proto: wrong wireType = %d for field Unit", wireType) 10217 } 10218 m.Unit = 0 10219 for shift := uint(0); ; shift += 7 { 10220 if shift >= 64 { 10221 return ErrIntOverflowDmworker 10222 } 10223 if iNdEx >= l { 10224 return io.ErrUnexpectedEOF 10225 } 10226 b := dAtA[iNdEx] 10227 iNdEx++ 10228 m.Unit |= UnitType(b&0x7F) << shift 10229 if b < 0x80 { 10230 break 10231 } 10232 } 10233 case 4: 10234 if wireType != 2 { 10235 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 10236 } 10237 var msglen int 10238 for shift := uint(0); ; shift += 7 { 10239 if shift >= 64 { 10240 return ErrIntOverflowDmworker 10241 } 10242 if iNdEx >= l { 10243 return io.ErrUnexpectedEOF 10244 } 10245 b := dAtA[iNdEx] 10246 iNdEx++ 10247 msglen |= int(b&0x7F) << shift 10248 if b < 0x80 { 10249 break 10250 } 10251 } 10252 if msglen < 0 { 10253 return ErrInvalidLengthDmworker 10254 } 10255 postIndex := iNdEx + msglen 10256 if postIndex < 0 { 10257 return ErrInvalidLengthDmworker 10258 } 10259 if postIndex > l { 10260 return io.ErrUnexpectedEOF 10261 } 10262 if m.Result == nil { 10263 m.Result = &ProcessResult{} 10264 } 10265 if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10266 return err 10267 } 10268 iNdEx = postIndex 10269 case 5: 10270 if wireType != 2 { 10271 return fmt.Errorf("proto: wrong wireType = %d for field UnresolvedDDLLockID", wireType) 10272 } 10273 var stringLen uint64 10274 for shift := uint(0); ; shift += 7 { 10275 if shift >= 64 { 10276 return ErrIntOverflowDmworker 10277 } 10278 if iNdEx >= l { 10279 return io.ErrUnexpectedEOF 10280 } 10281 b := dAtA[iNdEx] 10282 iNdEx++ 10283 stringLen |= uint64(b&0x7F) << shift 10284 if b < 0x80 { 10285 break 10286 } 10287 } 10288 intStringLen := int(stringLen) 10289 if intStringLen < 0 { 10290 return ErrInvalidLengthDmworker 10291 } 10292 postIndex := iNdEx + intStringLen 10293 if postIndex < 0 { 10294 return ErrInvalidLengthDmworker 10295 } 10296 if postIndex > l { 10297 return io.ErrUnexpectedEOF 10298 } 10299 m.UnresolvedDDLLockID = string(dAtA[iNdEx:postIndex]) 10300 iNdEx = postIndex 10301 case 6: 10302 if wireType != 2 { 10303 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 10304 } 10305 var stringLen uint64 10306 for shift := uint(0); ; shift += 7 { 10307 if shift >= 64 { 10308 return ErrIntOverflowDmworker 10309 } 10310 if iNdEx >= l { 10311 return io.ErrUnexpectedEOF 10312 } 10313 b := dAtA[iNdEx] 10314 iNdEx++ 10315 stringLen |= uint64(b&0x7F) << shift 10316 if b < 0x80 { 10317 break 10318 } 10319 } 10320 intStringLen := int(stringLen) 10321 if intStringLen < 0 { 10322 return ErrInvalidLengthDmworker 10323 } 10324 postIndex := iNdEx + intStringLen 10325 if postIndex < 0 { 10326 return ErrInvalidLengthDmworker 10327 } 10328 if postIndex > l { 10329 return io.ErrUnexpectedEOF 10330 } 10331 m.Status = &SubTaskStatus_Msg{string(dAtA[iNdEx:postIndex])} 10332 iNdEx = postIndex 10333 case 7: 10334 if wireType != 2 { 10335 return fmt.Errorf("proto: wrong wireType = %d for field Check", wireType) 10336 } 10337 var msglen int 10338 for shift := uint(0); ; shift += 7 { 10339 if shift >= 64 { 10340 return ErrIntOverflowDmworker 10341 } 10342 if iNdEx >= l { 10343 return io.ErrUnexpectedEOF 10344 } 10345 b := dAtA[iNdEx] 10346 iNdEx++ 10347 msglen |= int(b&0x7F) << shift 10348 if b < 0x80 { 10349 break 10350 } 10351 } 10352 if msglen < 0 { 10353 return ErrInvalidLengthDmworker 10354 } 10355 postIndex := iNdEx + msglen 10356 if postIndex < 0 { 10357 return ErrInvalidLengthDmworker 10358 } 10359 if postIndex > l { 10360 return io.ErrUnexpectedEOF 10361 } 10362 v := &CheckStatus{} 10363 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10364 return err 10365 } 10366 m.Status = &SubTaskStatus_Check{v} 10367 iNdEx = postIndex 10368 case 8: 10369 if wireType != 2 { 10370 return fmt.Errorf("proto: wrong wireType = %d for field Dump", wireType) 10371 } 10372 var msglen int 10373 for shift := uint(0); ; shift += 7 { 10374 if shift >= 64 { 10375 return ErrIntOverflowDmworker 10376 } 10377 if iNdEx >= l { 10378 return io.ErrUnexpectedEOF 10379 } 10380 b := dAtA[iNdEx] 10381 iNdEx++ 10382 msglen |= int(b&0x7F) << shift 10383 if b < 0x80 { 10384 break 10385 } 10386 } 10387 if msglen < 0 { 10388 return ErrInvalidLengthDmworker 10389 } 10390 postIndex := iNdEx + msglen 10391 if postIndex < 0 { 10392 return ErrInvalidLengthDmworker 10393 } 10394 if postIndex > l { 10395 return io.ErrUnexpectedEOF 10396 } 10397 v := &DumpStatus{} 10398 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10399 return err 10400 } 10401 m.Status = &SubTaskStatus_Dump{v} 10402 iNdEx = postIndex 10403 case 9: 10404 if wireType != 2 { 10405 return fmt.Errorf("proto: wrong wireType = %d for field Load", wireType) 10406 } 10407 var msglen int 10408 for shift := uint(0); ; shift += 7 { 10409 if shift >= 64 { 10410 return ErrIntOverflowDmworker 10411 } 10412 if iNdEx >= l { 10413 return io.ErrUnexpectedEOF 10414 } 10415 b := dAtA[iNdEx] 10416 iNdEx++ 10417 msglen |= int(b&0x7F) << shift 10418 if b < 0x80 { 10419 break 10420 } 10421 } 10422 if msglen < 0 { 10423 return ErrInvalidLengthDmworker 10424 } 10425 postIndex := iNdEx + msglen 10426 if postIndex < 0 { 10427 return ErrInvalidLengthDmworker 10428 } 10429 if postIndex > l { 10430 return io.ErrUnexpectedEOF 10431 } 10432 v := &LoadStatus{} 10433 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10434 return err 10435 } 10436 m.Status = &SubTaskStatus_Load{v} 10437 iNdEx = postIndex 10438 case 10: 10439 if wireType != 2 { 10440 return fmt.Errorf("proto: wrong wireType = %d for field Sync", wireType) 10441 } 10442 var msglen int 10443 for shift := uint(0); ; shift += 7 { 10444 if shift >= 64 { 10445 return ErrIntOverflowDmworker 10446 } 10447 if iNdEx >= l { 10448 return io.ErrUnexpectedEOF 10449 } 10450 b := dAtA[iNdEx] 10451 iNdEx++ 10452 msglen |= int(b&0x7F) << shift 10453 if b < 0x80 { 10454 break 10455 } 10456 } 10457 if msglen < 0 { 10458 return ErrInvalidLengthDmworker 10459 } 10460 postIndex := iNdEx + msglen 10461 if postIndex < 0 { 10462 return ErrInvalidLengthDmworker 10463 } 10464 if postIndex > l { 10465 return io.ErrUnexpectedEOF 10466 } 10467 v := &SyncStatus{} 10468 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10469 return err 10470 } 10471 m.Status = &SubTaskStatus_Sync{v} 10472 iNdEx = postIndex 10473 case 11: 10474 if wireType != 2 { 10475 return fmt.Errorf("proto: wrong wireType = %d for field Validation", wireType) 10476 } 10477 var msglen int 10478 for shift := uint(0); ; shift += 7 { 10479 if shift >= 64 { 10480 return ErrIntOverflowDmworker 10481 } 10482 if iNdEx >= l { 10483 return io.ErrUnexpectedEOF 10484 } 10485 b := dAtA[iNdEx] 10486 iNdEx++ 10487 msglen |= int(b&0x7F) << shift 10488 if b < 0x80 { 10489 break 10490 } 10491 } 10492 if msglen < 0 { 10493 return ErrInvalidLengthDmworker 10494 } 10495 postIndex := iNdEx + msglen 10496 if postIndex < 0 { 10497 return ErrInvalidLengthDmworker 10498 } 10499 if postIndex > l { 10500 return io.ErrUnexpectedEOF 10501 } 10502 if m.Validation == nil { 10503 m.Validation = &ValidationStatus{} 10504 } 10505 if err := m.Validation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10506 return err 10507 } 10508 iNdEx = postIndex 10509 default: 10510 iNdEx = preIndex 10511 skippy, err := skipDmworker(dAtA[iNdEx:]) 10512 if err != nil { 10513 return err 10514 } 10515 if (skippy < 0) || (iNdEx+skippy) < 0 { 10516 return ErrInvalidLengthDmworker 10517 } 10518 if (iNdEx + skippy) > l { 10519 return io.ErrUnexpectedEOF 10520 } 10521 iNdEx += skippy 10522 } 10523 } 10524 10525 if iNdEx > l { 10526 return io.ErrUnexpectedEOF 10527 } 10528 return nil 10529 } 10530 func (m *SubTaskStatusList) Unmarshal(dAtA []byte) error { 10531 l := len(dAtA) 10532 iNdEx := 0 10533 for iNdEx < l { 10534 preIndex := iNdEx 10535 var wire uint64 10536 for shift := uint(0); ; shift += 7 { 10537 if shift >= 64 { 10538 return ErrIntOverflowDmworker 10539 } 10540 if iNdEx >= l { 10541 return io.ErrUnexpectedEOF 10542 } 10543 b := dAtA[iNdEx] 10544 iNdEx++ 10545 wire |= uint64(b&0x7F) << shift 10546 if b < 0x80 { 10547 break 10548 } 10549 } 10550 fieldNum := int32(wire >> 3) 10551 wireType := int(wire & 0x7) 10552 if wireType == 4 { 10553 return fmt.Errorf("proto: SubTaskStatusList: wiretype end group for non-group") 10554 } 10555 if fieldNum <= 0 { 10556 return fmt.Errorf("proto: SubTaskStatusList: illegal tag %d (wire type %d)", fieldNum, wire) 10557 } 10558 switch fieldNum { 10559 case 1: 10560 if wireType != 2 { 10561 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 10562 } 10563 var msglen int 10564 for shift := uint(0); ; shift += 7 { 10565 if shift >= 64 { 10566 return ErrIntOverflowDmworker 10567 } 10568 if iNdEx >= l { 10569 return io.ErrUnexpectedEOF 10570 } 10571 b := dAtA[iNdEx] 10572 iNdEx++ 10573 msglen |= int(b&0x7F) << shift 10574 if b < 0x80 { 10575 break 10576 } 10577 } 10578 if msglen < 0 { 10579 return ErrInvalidLengthDmworker 10580 } 10581 postIndex := iNdEx + msglen 10582 if postIndex < 0 { 10583 return ErrInvalidLengthDmworker 10584 } 10585 if postIndex > l { 10586 return io.ErrUnexpectedEOF 10587 } 10588 m.Status = append(m.Status, &SubTaskStatus{}) 10589 if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10590 return err 10591 } 10592 iNdEx = postIndex 10593 default: 10594 iNdEx = preIndex 10595 skippy, err := skipDmworker(dAtA[iNdEx:]) 10596 if err != nil { 10597 return err 10598 } 10599 if (skippy < 0) || (iNdEx+skippy) < 0 { 10600 return ErrInvalidLengthDmworker 10601 } 10602 if (iNdEx + skippy) > l { 10603 return io.ErrUnexpectedEOF 10604 } 10605 iNdEx += skippy 10606 } 10607 } 10608 10609 if iNdEx > l { 10610 return io.ErrUnexpectedEOF 10611 } 10612 return nil 10613 } 10614 func (m *CheckError) Unmarshal(dAtA []byte) error { 10615 l := len(dAtA) 10616 iNdEx := 0 10617 for iNdEx < l { 10618 preIndex := iNdEx 10619 var wire uint64 10620 for shift := uint(0); ; shift += 7 { 10621 if shift >= 64 { 10622 return ErrIntOverflowDmworker 10623 } 10624 if iNdEx >= l { 10625 return io.ErrUnexpectedEOF 10626 } 10627 b := dAtA[iNdEx] 10628 iNdEx++ 10629 wire |= uint64(b&0x7F) << shift 10630 if b < 0x80 { 10631 break 10632 } 10633 } 10634 fieldNum := int32(wire >> 3) 10635 wireType := int(wire & 0x7) 10636 if wireType == 4 { 10637 return fmt.Errorf("proto: CheckError: wiretype end group for non-group") 10638 } 10639 if fieldNum <= 0 { 10640 return fmt.Errorf("proto: CheckError: illegal tag %d (wire type %d)", fieldNum, wire) 10641 } 10642 switch fieldNum { 10643 case 1: 10644 if wireType != 2 { 10645 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 10646 } 10647 var stringLen uint64 10648 for shift := uint(0); ; shift += 7 { 10649 if shift >= 64 { 10650 return ErrIntOverflowDmworker 10651 } 10652 if iNdEx >= l { 10653 return io.ErrUnexpectedEOF 10654 } 10655 b := dAtA[iNdEx] 10656 iNdEx++ 10657 stringLen |= uint64(b&0x7F) << shift 10658 if b < 0x80 { 10659 break 10660 } 10661 } 10662 intStringLen := int(stringLen) 10663 if intStringLen < 0 { 10664 return ErrInvalidLengthDmworker 10665 } 10666 postIndex := iNdEx + intStringLen 10667 if postIndex < 0 { 10668 return ErrInvalidLengthDmworker 10669 } 10670 if postIndex > l { 10671 return io.ErrUnexpectedEOF 10672 } 10673 m.Msg = string(dAtA[iNdEx:postIndex]) 10674 iNdEx = postIndex 10675 default: 10676 iNdEx = preIndex 10677 skippy, err := skipDmworker(dAtA[iNdEx:]) 10678 if err != nil { 10679 return err 10680 } 10681 if (skippy < 0) || (iNdEx+skippy) < 0 { 10682 return ErrInvalidLengthDmworker 10683 } 10684 if (iNdEx + skippy) > l { 10685 return io.ErrUnexpectedEOF 10686 } 10687 iNdEx += skippy 10688 } 10689 } 10690 10691 if iNdEx > l { 10692 return io.ErrUnexpectedEOF 10693 } 10694 return nil 10695 } 10696 func (m *DumpError) Unmarshal(dAtA []byte) error { 10697 l := len(dAtA) 10698 iNdEx := 0 10699 for iNdEx < l { 10700 preIndex := iNdEx 10701 var wire uint64 10702 for shift := uint(0); ; shift += 7 { 10703 if shift >= 64 { 10704 return ErrIntOverflowDmworker 10705 } 10706 if iNdEx >= l { 10707 return io.ErrUnexpectedEOF 10708 } 10709 b := dAtA[iNdEx] 10710 iNdEx++ 10711 wire |= uint64(b&0x7F) << shift 10712 if b < 0x80 { 10713 break 10714 } 10715 } 10716 fieldNum := int32(wire >> 3) 10717 wireType := int(wire & 0x7) 10718 if wireType == 4 { 10719 return fmt.Errorf("proto: DumpError: wiretype end group for non-group") 10720 } 10721 if fieldNum <= 0 { 10722 return fmt.Errorf("proto: DumpError: illegal tag %d (wire type %d)", fieldNum, wire) 10723 } 10724 switch fieldNum { 10725 case 1: 10726 if wireType != 2 { 10727 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 10728 } 10729 var stringLen uint64 10730 for shift := uint(0); ; shift += 7 { 10731 if shift >= 64 { 10732 return ErrIntOverflowDmworker 10733 } 10734 if iNdEx >= l { 10735 return io.ErrUnexpectedEOF 10736 } 10737 b := dAtA[iNdEx] 10738 iNdEx++ 10739 stringLen |= uint64(b&0x7F) << shift 10740 if b < 0x80 { 10741 break 10742 } 10743 } 10744 intStringLen := int(stringLen) 10745 if intStringLen < 0 { 10746 return ErrInvalidLengthDmworker 10747 } 10748 postIndex := iNdEx + intStringLen 10749 if postIndex < 0 { 10750 return ErrInvalidLengthDmworker 10751 } 10752 if postIndex > l { 10753 return io.ErrUnexpectedEOF 10754 } 10755 m.Msg = string(dAtA[iNdEx:postIndex]) 10756 iNdEx = postIndex 10757 default: 10758 iNdEx = preIndex 10759 skippy, err := skipDmworker(dAtA[iNdEx:]) 10760 if err != nil { 10761 return err 10762 } 10763 if (skippy < 0) || (iNdEx+skippy) < 0 { 10764 return ErrInvalidLengthDmworker 10765 } 10766 if (iNdEx + skippy) > l { 10767 return io.ErrUnexpectedEOF 10768 } 10769 iNdEx += skippy 10770 } 10771 } 10772 10773 if iNdEx > l { 10774 return io.ErrUnexpectedEOF 10775 } 10776 return nil 10777 } 10778 func (m *LoadError) Unmarshal(dAtA []byte) error { 10779 l := len(dAtA) 10780 iNdEx := 0 10781 for iNdEx < l { 10782 preIndex := iNdEx 10783 var wire uint64 10784 for shift := uint(0); ; shift += 7 { 10785 if shift >= 64 { 10786 return ErrIntOverflowDmworker 10787 } 10788 if iNdEx >= l { 10789 return io.ErrUnexpectedEOF 10790 } 10791 b := dAtA[iNdEx] 10792 iNdEx++ 10793 wire |= uint64(b&0x7F) << shift 10794 if b < 0x80 { 10795 break 10796 } 10797 } 10798 fieldNum := int32(wire >> 3) 10799 wireType := int(wire & 0x7) 10800 if wireType == 4 { 10801 return fmt.Errorf("proto: LoadError: wiretype end group for non-group") 10802 } 10803 if fieldNum <= 0 { 10804 return fmt.Errorf("proto: LoadError: illegal tag %d (wire type %d)", fieldNum, wire) 10805 } 10806 switch fieldNum { 10807 case 1: 10808 if wireType != 2 { 10809 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 10810 } 10811 var stringLen uint64 10812 for shift := uint(0); ; shift += 7 { 10813 if shift >= 64 { 10814 return ErrIntOverflowDmworker 10815 } 10816 if iNdEx >= l { 10817 return io.ErrUnexpectedEOF 10818 } 10819 b := dAtA[iNdEx] 10820 iNdEx++ 10821 stringLen |= uint64(b&0x7F) << shift 10822 if b < 0x80 { 10823 break 10824 } 10825 } 10826 intStringLen := int(stringLen) 10827 if intStringLen < 0 { 10828 return ErrInvalidLengthDmworker 10829 } 10830 postIndex := iNdEx + intStringLen 10831 if postIndex < 0 { 10832 return ErrInvalidLengthDmworker 10833 } 10834 if postIndex > l { 10835 return io.ErrUnexpectedEOF 10836 } 10837 m.Msg = string(dAtA[iNdEx:postIndex]) 10838 iNdEx = postIndex 10839 default: 10840 iNdEx = preIndex 10841 skippy, err := skipDmworker(dAtA[iNdEx:]) 10842 if err != nil { 10843 return err 10844 } 10845 if (skippy < 0) || (iNdEx+skippy) < 0 { 10846 return ErrInvalidLengthDmworker 10847 } 10848 if (iNdEx + skippy) > l { 10849 return io.ErrUnexpectedEOF 10850 } 10851 iNdEx += skippy 10852 } 10853 } 10854 10855 if iNdEx > l { 10856 return io.ErrUnexpectedEOF 10857 } 10858 return nil 10859 } 10860 func (m *SyncSQLError) Unmarshal(dAtA []byte) error { 10861 l := len(dAtA) 10862 iNdEx := 0 10863 for iNdEx < l { 10864 preIndex := iNdEx 10865 var wire uint64 10866 for shift := uint(0); ; shift += 7 { 10867 if shift >= 64 { 10868 return ErrIntOverflowDmworker 10869 } 10870 if iNdEx >= l { 10871 return io.ErrUnexpectedEOF 10872 } 10873 b := dAtA[iNdEx] 10874 iNdEx++ 10875 wire |= uint64(b&0x7F) << shift 10876 if b < 0x80 { 10877 break 10878 } 10879 } 10880 fieldNum := int32(wire >> 3) 10881 wireType := int(wire & 0x7) 10882 if wireType == 4 { 10883 return fmt.Errorf("proto: SyncSQLError: wiretype end group for non-group") 10884 } 10885 if fieldNum <= 0 { 10886 return fmt.Errorf("proto: SyncSQLError: illegal tag %d (wire type %d)", fieldNum, wire) 10887 } 10888 switch fieldNum { 10889 case 1: 10890 if wireType != 2 { 10891 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 10892 } 10893 var stringLen uint64 10894 for shift := uint(0); ; shift += 7 { 10895 if shift >= 64 { 10896 return ErrIntOverflowDmworker 10897 } 10898 if iNdEx >= l { 10899 return io.ErrUnexpectedEOF 10900 } 10901 b := dAtA[iNdEx] 10902 iNdEx++ 10903 stringLen |= uint64(b&0x7F) << shift 10904 if b < 0x80 { 10905 break 10906 } 10907 } 10908 intStringLen := int(stringLen) 10909 if intStringLen < 0 { 10910 return ErrInvalidLengthDmworker 10911 } 10912 postIndex := iNdEx + intStringLen 10913 if postIndex < 0 { 10914 return ErrInvalidLengthDmworker 10915 } 10916 if postIndex > l { 10917 return io.ErrUnexpectedEOF 10918 } 10919 m.Msg = string(dAtA[iNdEx:postIndex]) 10920 iNdEx = postIndex 10921 case 2: 10922 if wireType != 2 { 10923 return fmt.Errorf("proto: wrong wireType = %d for field FailedBinlogPosition", wireType) 10924 } 10925 var stringLen uint64 10926 for shift := uint(0); ; shift += 7 { 10927 if shift >= 64 { 10928 return ErrIntOverflowDmworker 10929 } 10930 if iNdEx >= l { 10931 return io.ErrUnexpectedEOF 10932 } 10933 b := dAtA[iNdEx] 10934 iNdEx++ 10935 stringLen |= uint64(b&0x7F) << shift 10936 if b < 0x80 { 10937 break 10938 } 10939 } 10940 intStringLen := int(stringLen) 10941 if intStringLen < 0 { 10942 return ErrInvalidLengthDmworker 10943 } 10944 postIndex := iNdEx + intStringLen 10945 if postIndex < 0 { 10946 return ErrInvalidLengthDmworker 10947 } 10948 if postIndex > l { 10949 return io.ErrUnexpectedEOF 10950 } 10951 m.FailedBinlogPosition = string(dAtA[iNdEx:postIndex]) 10952 iNdEx = postIndex 10953 case 3: 10954 if wireType != 2 { 10955 return fmt.Errorf("proto: wrong wireType = %d for field ErrorSQL", wireType) 10956 } 10957 var stringLen uint64 10958 for shift := uint(0); ; shift += 7 { 10959 if shift >= 64 { 10960 return ErrIntOverflowDmworker 10961 } 10962 if iNdEx >= l { 10963 return io.ErrUnexpectedEOF 10964 } 10965 b := dAtA[iNdEx] 10966 iNdEx++ 10967 stringLen |= uint64(b&0x7F) << shift 10968 if b < 0x80 { 10969 break 10970 } 10971 } 10972 intStringLen := int(stringLen) 10973 if intStringLen < 0 { 10974 return ErrInvalidLengthDmworker 10975 } 10976 postIndex := iNdEx + intStringLen 10977 if postIndex < 0 { 10978 return ErrInvalidLengthDmworker 10979 } 10980 if postIndex > l { 10981 return io.ErrUnexpectedEOF 10982 } 10983 m.ErrorSQL = string(dAtA[iNdEx:postIndex]) 10984 iNdEx = postIndex 10985 default: 10986 iNdEx = preIndex 10987 skippy, err := skipDmworker(dAtA[iNdEx:]) 10988 if err != nil { 10989 return err 10990 } 10991 if (skippy < 0) || (iNdEx+skippy) < 0 { 10992 return ErrInvalidLengthDmworker 10993 } 10994 if (iNdEx + skippy) > l { 10995 return io.ErrUnexpectedEOF 10996 } 10997 iNdEx += skippy 10998 } 10999 } 11000 11001 if iNdEx > l { 11002 return io.ErrUnexpectedEOF 11003 } 11004 return nil 11005 } 11006 func (m *SyncError) Unmarshal(dAtA []byte) error { 11007 l := len(dAtA) 11008 iNdEx := 0 11009 for iNdEx < l { 11010 preIndex := iNdEx 11011 var wire uint64 11012 for shift := uint(0); ; shift += 7 { 11013 if shift >= 64 { 11014 return ErrIntOverflowDmworker 11015 } 11016 if iNdEx >= l { 11017 return io.ErrUnexpectedEOF 11018 } 11019 b := dAtA[iNdEx] 11020 iNdEx++ 11021 wire |= uint64(b&0x7F) << shift 11022 if b < 0x80 { 11023 break 11024 } 11025 } 11026 fieldNum := int32(wire >> 3) 11027 wireType := int(wire & 0x7) 11028 if wireType == 4 { 11029 return fmt.Errorf("proto: SyncError: wiretype end group for non-group") 11030 } 11031 if fieldNum <= 0 { 11032 return fmt.Errorf("proto: SyncError: illegal tag %d (wire type %d)", fieldNum, wire) 11033 } 11034 switch fieldNum { 11035 case 1: 11036 if wireType != 2 { 11037 return fmt.Errorf("proto: wrong wireType = %d for field Errors", wireType) 11038 } 11039 var msglen int 11040 for shift := uint(0); ; shift += 7 { 11041 if shift >= 64 { 11042 return ErrIntOverflowDmworker 11043 } 11044 if iNdEx >= l { 11045 return io.ErrUnexpectedEOF 11046 } 11047 b := dAtA[iNdEx] 11048 iNdEx++ 11049 msglen |= int(b&0x7F) << shift 11050 if b < 0x80 { 11051 break 11052 } 11053 } 11054 if msglen < 0 { 11055 return ErrInvalidLengthDmworker 11056 } 11057 postIndex := iNdEx + msglen 11058 if postIndex < 0 { 11059 return ErrInvalidLengthDmworker 11060 } 11061 if postIndex > l { 11062 return io.ErrUnexpectedEOF 11063 } 11064 m.Errors = append(m.Errors, &SyncSQLError{}) 11065 if err := m.Errors[len(m.Errors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11066 return err 11067 } 11068 iNdEx = postIndex 11069 default: 11070 iNdEx = preIndex 11071 skippy, err := skipDmworker(dAtA[iNdEx:]) 11072 if err != nil { 11073 return err 11074 } 11075 if (skippy < 0) || (iNdEx+skippy) < 0 { 11076 return ErrInvalidLengthDmworker 11077 } 11078 if (iNdEx + skippy) > l { 11079 return io.ErrUnexpectedEOF 11080 } 11081 iNdEx += skippy 11082 } 11083 } 11084 11085 if iNdEx > l { 11086 return io.ErrUnexpectedEOF 11087 } 11088 return nil 11089 } 11090 func (m *SourceError) Unmarshal(dAtA []byte) error { 11091 l := len(dAtA) 11092 iNdEx := 0 11093 for iNdEx < l { 11094 preIndex := iNdEx 11095 var wire uint64 11096 for shift := uint(0); ; shift += 7 { 11097 if shift >= 64 { 11098 return ErrIntOverflowDmworker 11099 } 11100 if iNdEx >= l { 11101 return io.ErrUnexpectedEOF 11102 } 11103 b := dAtA[iNdEx] 11104 iNdEx++ 11105 wire |= uint64(b&0x7F) << shift 11106 if b < 0x80 { 11107 break 11108 } 11109 } 11110 fieldNum := int32(wire >> 3) 11111 wireType := int(wire & 0x7) 11112 if wireType == 4 { 11113 return fmt.Errorf("proto: SourceError: wiretype end group for non-group") 11114 } 11115 if fieldNum <= 0 { 11116 return fmt.Errorf("proto: SourceError: illegal tag %d (wire type %d)", fieldNum, wire) 11117 } 11118 switch fieldNum { 11119 case 1: 11120 if wireType != 2 { 11121 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) 11122 } 11123 var stringLen uint64 11124 for shift := uint(0); ; shift += 7 { 11125 if shift >= 64 { 11126 return ErrIntOverflowDmworker 11127 } 11128 if iNdEx >= l { 11129 return io.ErrUnexpectedEOF 11130 } 11131 b := dAtA[iNdEx] 11132 iNdEx++ 11133 stringLen |= uint64(b&0x7F) << shift 11134 if b < 0x80 { 11135 break 11136 } 11137 } 11138 intStringLen := int(stringLen) 11139 if intStringLen < 0 { 11140 return ErrInvalidLengthDmworker 11141 } 11142 postIndex := iNdEx + intStringLen 11143 if postIndex < 0 { 11144 return ErrInvalidLengthDmworker 11145 } 11146 if postIndex > l { 11147 return io.ErrUnexpectedEOF 11148 } 11149 m.Source = string(dAtA[iNdEx:postIndex]) 11150 iNdEx = postIndex 11151 case 2: 11152 if wireType != 2 { 11153 return fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) 11154 } 11155 var stringLen uint64 11156 for shift := uint(0); ; shift += 7 { 11157 if shift >= 64 { 11158 return ErrIntOverflowDmworker 11159 } 11160 if iNdEx >= l { 11161 return io.ErrUnexpectedEOF 11162 } 11163 b := dAtA[iNdEx] 11164 iNdEx++ 11165 stringLen |= uint64(b&0x7F) << shift 11166 if b < 0x80 { 11167 break 11168 } 11169 } 11170 intStringLen := int(stringLen) 11171 if intStringLen < 0 { 11172 return ErrInvalidLengthDmworker 11173 } 11174 postIndex := iNdEx + intStringLen 11175 if postIndex < 0 { 11176 return ErrInvalidLengthDmworker 11177 } 11178 if postIndex > l { 11179 return io.ErrUnexpectedEOF 11180 } 11181 m.Worker = string(dAtA[iNdEx:postIndex]) 11182 iNdEx = postIndex 11183 case 3: 11184 if wireType != 2 { 11185 return fmt.Errorf("proto: wrong wireType = %d for field SourceError", wireType) 11186 } 11187 var stringLen uint64 11188 for shift := uint(0); ; shift += 7 { 11189 if shift >= 64 { 11190 return ErrIntOverflowDmworker 11191 } 11192 if iNdEx >= l { 11193 return io.ErrUnexpectedEOF 11194 } 11195 b := dAtA[iNdEx] 11196 iNdEx++ 11197 stringLen |= uint64(b&0x7F) << shift 11198 if b < 0x80 { 11199 break 11200 } 11201 } 11202 intStringLen := int(stringLen) 11203 if intStringLen < 0 { 11204 return ErrInvalidLengthDmworker 11205 } 11206 postIndex := iNdEx + intStringLen 11207 if postIndex < 0 { 11208 return ErrInvalidLengthDmworker 11209 } 11210 if postIndex > l { 11211 return io.ErrUnexpectedEOF 11212 } 11213 m.SourceError = string(dAtA[iNdEx:postIndex]) 11214 iNdEx = postIndex 11215 case 4: 11216 if wireType != 2 { 11217 return fmt.Errorf("proto: wrong wireType = %d for field RelayError", wireType) 11218 } 11219 var msglen int 11220 for shift := uint(0); ; shift += 7 { 11221 if shift >= 64 { 11222 return ErrIntOverflowDmworker 11223 } 11224 if iNdEx >= l { 11225 return io.ErrUnexpectedEOF 11226 } 11227 b := dAtA[iNdEx] 11228 iNdEx++ 11229 msglen |= int(b&0x7F) << shift 11230 if b < 0x80 { 11231 break 11232 } 11233 } 11234 if msglen < 0 { 11235 return ErrInvalidLengthDmworker 11236 } 11237 postIndex := iNdEx + msglen 11238 if postIndex < 0 { 11239 return ErrInvalidLengthDmworker 11240 } 11241 if postIndex > l { 11242 return io.ErrUnexpectedEOF 11243 } 11244 if m.RelayError == nil { 11245 m.RelayError = &RelayError{} 11246 } 11247 if err := m.RelayError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11248 return err 11249 } 11250 iNdEx = postIndex 11251 default: 11252 iNdEx = preIndex 11253 skippy, err := skipDmworker(dAtA[iNdEx:]) 11254 if err != nil { 11255 return err 11256 } 11257 if (skippy < 0) || (iNdEx+skippy) < 0 { 11258 return ErrInvalidLengthDmworker 11259 } 11260 if (iNdEx + skippy) > l { 11261 return io.ErrUnexpectedEOF 11262 } 11263 iNdEx += skippy 11264 } 11265 } 11266 11267 if iNdEx > l { 11268 return io.ErrUnexpectedEOF 11269 } 11270 return nil 11271 } 11272 func (m *RelayError) Unmarshal(dAtA []byte) error { 11273 l := len(dAtA) 11274 iNdEx := 0 11275 for iNdEx < l { 11276 preIndex := iNdEx 11277 var wire uint64 11278 for shift := uint(0); ; shift += 7 { 11279 if shift >= 64 { 11280 return ErrIntOverflowDmworker 11281 } 11282 if iNdEx >= l { 11283 return io.ErrUnexpectedEOF 11284 } 11285 b := dAtA[iNdEx] 11286 iNdEx++ 11287 wire |= uint64(b&0x7F) << shift 11288 if b < 0x80 { 11289 break 11290 } 11291 } 11292 fieldNum := int32(wire >> 3) 11293 wireType := int(wire & 0x7) 11294 if wireType == 4 { 11295 return fmt.Errorf("proto: RelayError: wiretype end group for non-group") 11296 } 11297 if fieldNum <= 0 { 11298 return fmt.Errorf("proto: RelayError: illegal tag %d (wire type %d)", fieldNum, wire) 11299 } 11300 switch fieldNum { 11301 case 1: 11302 if wireType != 2 { 11303 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 11304 } 11305 var stringLen uint64 11306 for shift := uint(0); ; shift += 7 { 11307 if shift >= 64 { 11308 return ErrIntOverflowDmworker 11309 } 11310 if iNdEx >= l { 11311 return io.ErrUnexpectedEOF 11312 } 11313 b := dAtA[iNdEx] 11314 iNdEx++ 11315 stringLen |= uint64(b&0x7F) << shift 11316 if b < 0x80 { 11317 break 11318 } 11319 } 11320 intStringLen := int(stringLen) 11321 if intStringLen < 0 { 11322 return ErrInvalidLengthDmworker 11323 } 11324 postIndex := iNdEx + intStringLen 11325 if postIndex < 0 { 11326 return ErrInvalidLengthDmworker 11327 } 11328 if postIndex > l { 11329 return io.ErrUnexpectedEOF 11330 } 11331 m.Msg = string(dAtA[iNdEx:postIndex]) 11332 iNdEx = postIndex 11333 default: 11334 iNdEx = preIndex 11335 skippy, err := skipDmworker(dAtA[iNdEx:]) 11336 if err != nil { 11337 return err 11338 } 11339 if (skippy < 0) || (iNdEx+skippy) < 0 { 11340 return ErrInvalidLengthDmworker 11341 } 11342 if (iNdEx + skippy) > l { 11343 return io.ErrUnexpectedEOF 11344 } 11345 iNdEx += skippy 11346 } 11347 } 11348 11349 if iNdEx > l { 11350 return io.ErrUnexpectedEOF 11351 } 11352 return nil 11353 } 11354 func (m *SubTaskError) Unmarshal(dAtA []byte) error { 11355 l := len(dAtA) 11356 iNdEx := 0 11357 for iNdEx < l { 11358 preIndex := iNdEx 11359 var wire uint64 11360 for shift := uint(0); ; shift += 7 { 11361 if shift >= 64 { 11362 return ErrIntOverflowDmworker 11363 } 11364 if iNdEx >= l { 11365 return io.ErrUnexpectedEOF 11366 } 11367 b := dAtA[iNdEx] 11368 iNdEx++ 11369 wire |= uint64(b&0x7F) << shift 11370 if b < 0x80 { 11371 break 11372 } 11373 } 11374 fieldNum := int32(wire >> 3) 11375 wireType := int(wire & 0x7) 11376 if wireType == 4 { 11377 return fmt.Errorf("proto: SubTaskError: wiretype end group for non-group") 11378 } 11379 if fieldNum <= 0 { 11380 return fmt.Errorf("proto: SubTaskError: illegal tag %d (wire type %d)", fieldNum, wire) 11381 } 11382 switch fieldNum { 11383 case 1: 11384 if wireType != 2 { 11385 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 11386 } 11387 var stringLen uint64 11388 for shift := uint(0); ; shift += 7 { 11389 if shift >= 64 { 11390 return ErrIntOverflowDmworker 11391 } 11392 if iNdEx >= l { 11393 return io.ErrUnexpectedEOF 11394 } 11395 b := dAtA[iNdEx] 11396 iNdEx++ 11397 stringLen |= uint64(b&0x7F) << shift 11398 if b < 0x80 { 11399 break 11400 } 11401 } 11402 intStringLen := int(stringLen) 11403 if intStringLen < 0 { 11404 return ErrInvalidLengthDmworker 11405 } 11406 postIndex := iNdEx + intStringLen 11407 if postIndex < 0 { 11408 return ErrInvalidLengthDmworker 11409 } 11410 if postIndex > l { 11411 return io.ErrUnexpectedEOF 11412 } 11413 m.Name = string(dAtA[iNdEx:postIndex]) 11414 iNdEx = postIndex 11415 case 2: 11416 if wireType != 0 { 11417 return fmt.Errorf("proto: wrong wireType = %d for field Stage", wireType) 11418 } 11419 m.Stage = 0 11420 for shift := uint(0); ; shift += 7 { 11421 if shift >= 64 { 11422 return ErrIntOverflowDmworker 11423 } 11424 if iNdEx >= l { 11425 return io.ErrUnexpectedEOF 11426 } 11427 b := dAtA[iNdEx] 11428 iNdEx++ 11429 m.Stage |= Stage(b&0x7F) << shift 11430 if b < 0x80 { 11431 break 11432 } 11433 } 11434 case 3: 11435 if wireType != 0 { 11436 return fmt.Errorf("proto: wrong wireType = %d for field Unit", wireType) 11437 } 11438 m.Unit = 0 11439 for shift := uint(0); ; shift += 7 { 11440 if shift >= 64 { 11441 return ErrIntOverflowDmworker 11442 } 11443 if iNdEx >= l { 11444 return io.ErrUnexpectedEOF 11445 } 11446 b := dAtA[iNdEx] 11447 iNdEx++ 11448 m.Unit |= UnitType(b&0x7F) << shift 11449 if b < 0x80 { 11450 break 11451 } 11452 } 11453 case 4: 11454 if wireType != 2 { 11455 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 11456 } 11457 var stringLen uint64 11458 for shift := uint(0); ; shift += 7 { 11459 if shift >= 64 { 11460 return ErrIntOverflowDmworker 11461 } 11462 if iNdEx >= l { 11463 return io.ErrUnexpectedEOF 11464 } 11465 b := dAtA[iNdEx] 11466 iNdEx++ 11467 stringLen |= uint64(b&0x7F) << shift 11468 if b < 0x80 { 11469 break 11470 } 11471 } 11472 intStringLen := int(stringLen) 11473 if intStringLen < 0 { 11474 return ErrInvalidLengthDmworker 11475 } 11476 postIndex := iNdEx + intStringLen 11477 if postIndex < 0 { 11478 return ErrInvalidLengthDmworker 11479 } 11480 if postIndex > l { 11481 return io.ErrUnexpectedEOF 11482 } 11483 m.Error = &SubTaskError_Msg{string(dAtA[iNdEx:postIndex])} 11484 iNdEx = postIndex 11485 case 5: 11486 if wireType != 2 { 11487 return fmt.Errorf("proto: wrong wireType = %d for field Check", wireType) 11488 } 11489 var msglen int 11490 for shift := uint(0); ; shift += 7 { 11491 if shift >= 64 { 11492 return ErrIntOverflowDmworker 11493 } 11494 if iNdEx >= l { 11495 return io.ErrUnexpectedEOF 11496 } 11497 b := dAtA[iNdEx] 11498 iNdEx++ 11499 msglen |= int(b&0x7F) << shift 11500 if b < 0x80 { 11501 break 11502 } 11503 } 11504 if msglen < 0 { 11505 return ErrInvalidLengthDmworker 11506 } 11507 postIndex := iNdEx + msglen 11508 if postIndex < 0 { 11509 return ErrInvalidLengthDmworker 11510 } 11511 if postIndex > l { 11512 return io.ErrUnexpectedEOF 11513 } 11514 v := &CheckError{} 11515 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11516 return err 11517 } 11518 m.Error = &SubTaskError_Check{v} 11519 iNdEx = postIndex 11520 case 6: 11521 if wireType != 2 { 11522 return fmt.Errorf("proto: wrong wireType = %d for field Dump", wireType) 11523 } 11524 var msglen int 11525 for shift := uint(0); ; shift += 7 { 11526 if shift >= 64 { 11527 return ErrIntOverflowDmworker 11528 } 11529 if iNdEx >= l { 11530 return io.ErrUnexpectedEOF 11531 } 11532 b := dAtA[iNdEx] 11533 iNdEx++ 11534 msglen |= int(b&0x7F) << shift 11535 if b < 0x80 { 11536 break 11537 } 11538 } 11539 if msglen < 0 { 11540 return ErrInvalidLengthDmworker 11541 } 11542 postIndex := iNdEx + msglen 11543 if postIndex < 0 { 11544 return ErrInvalidLengthDmworker 11545 } 11546 if postIndex > l { 11547 return io.ErrUnexpectedEOF 11548 } 11549 v := &DumpError{} 11550 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11551 return err 11552 } 11553 m.Error = &SubTaskError_Dump{v} 11554 iNdEx = postIndex 11555 case 7: 11556 if wireType != 2 { 11557 return fmt.Errorf("proto: wrong wireType = %d for field Load", wireType) 11558 } 11559 var msglen int 11560 for shift := uint(0); ; shift += 7 { 11561 if shift >= 64 { 11562 return ErrIntOverflowDmworker 11563 } 11564 if iNdEx >= l { 11565 return io.ErrUnexpectedEOF 11566 } 11567 b := dAtA[iNdEx] 11568 iNdEx++ 11569 msglen |= int(b&0x7F) << shift 11570 if b < 0x80 { 11571 break 11572 } 11573 } 11574 if msglen < 0 { 11575 return ErrInvalidLengthDmworker 11576 } 11577 postIndex := iNdEx + msglen 11578 if postIndex < 0 { 11579 return ErrInvalidLengthDmworker 11580 } 11581 if postIndex > l { 11582 return io.ErrUnexpectedEOF 11583 } 11584 v := &LoadError{} 11585 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11586 return err 11587 } 11588 m.Error = &SubTaskError_Load{v} 11589 iNdEx = postIndex 11590 case 8: 11591 if wireType != 2 { 11592 return fmt.Errorf("proto: wrong wireType = %d for field Sync", wireType) 11593 } 11594 var msglen int 11595 for shift := uint(0); ; shift += 7 { 11596 if shift >= 64 { 11597 return ErrIntOverflowDmworker 11598 } 11599 if iNdEx >= l { 11600 return io.ErrUnexpectedEOF 11601 } 11602 b := dAtA[iNdEx] 11603 iNdEx++ 11604 msglen |= int(b&0x7F) << shift 11605 if b < 0x80 { 11606 break 11607 } 11608 } 11609 if msglen < 0 { 11610 return ErrInvalidLengthDmworker 11611 } 11612 postIndex := iNdEx + msglen 11613 if postIndex < 0 { 11614 return ErrInvalidLengthDmworker 11615 } 11616 if postIndex > l { 11617 return io.ErrUnexpectedEOF 11618 } 11619 v := &SyncError{} 11620 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11621 return err 11622 } 11623 m.Error = &SubTaskError_Sync{v} 11624 iNdEx = postIndex 11625 default: 11626 iNdEx = preIndex 11627 skippy, err := skipDmworker(dAtA[iNdEx:]) 11628 if err != nil { 11629 return err 11630 } 11631 if (skippy < 0) || (iNdEx+skippy) < 0 { 11632 return ErrInvalidLengthDmworker 11633 } 11634 if (iNdEx + skippy) > l { 11635 return io.ErrUnexpectedEOF 11636 } 11637 iNdEx += skippy 11638 } 11639 } 11640 11641 if iNdEx > l { 11642 return io.ErrUnexpectedEOF 11643 } 11644 return nil 11645 } 11646 func (m *SubTaskErrorList) Unmarshal(dAtA []byte) error { 11647 l := len(dAtA) 11648 iNdEx := 0 11649 for iNdEx < l { 11650 preIndex := iNdEx 11651 var wire uint64 11652 for shift := uint(0); ; shift += 7 { 11653 if shift >= 64 { 11654 return ErrIntOverflowDmworker 11655 } 11656 if iNdEx >= l { 11657 return io.ErrUnexpectedEOF 11658 } 11659 b := dAtA[iNdEx] 11660 iNdEx++ 11661 wire |= uint64(b&0x7F) << shift 11662 if b < 0x80 { 11663 break 11664 } 11665 } 11666 fieldNum := int32(wire >> 3) 11667 wireType := int(wire & 0x7) 11668 if wireType == 4 { 11669 return fmt.Errorf("proto: SubTaskErrorList: wiretype end group for non-group") 11670 } 11671 if fieldNum <= 0 { 11672 return fmt.Errorf("proto: SubTaskErrorList: illegal tag %d (wire type %d)", fieldNum, wire) 11673 } 11674 switch fieldNum { 11675 case 1: 11676 if wireType != 2 { 11677 return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) 11678 } 11679 var msglen int 11680 for shift := uint(0); ; shift += 7 { 11681 if shift >= 64 { 11682 return ErrIntOverflowDmworker 11683 } 11684 if iNdEx >= l { 11685 return io.ErrUnexpectedEOF 11686 } 11687 b := dAtA[iNdEx] 11688 iNdEx++ 11689 msglen |= int(b&0x7F) << shift 11690 if b < 0x80 { 11691 break 11692 } 11693 } 11694 if msglen < 0 { 11695 return ErrInvalidLengthDmworker 11696 } 11697 postIndex := iNdEx + msglen 11698 if postIndex < 0 { 11699 return ErrInvalidLengthDmworker 11700 } 11701 if postIndex > l { 11702 return io.ErrUnexpectedEOF 11703 } 11704 m.Error = append(m.Error, &SubTaskError{}) 11705 if err := m.Error[len(m.Error)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11706 return err 11707 } 11708 iNdEx = postIndex 11709 default: 11710 iNdEx = preIndex 11711 skippy, err := skipDmworker(dAtA[iNdEx:]) 11712 if err != nil { 11713 return err 11714 } 11715 if (skippy < 0) || (iNdEx+skippy) < 0 { 11716 return ErrInvalidLengthDmworker 11717 } 11718 if (iNdEx + skippy) > l { 11719 return io.ErrUnexpectedEOF 11720 } 11721 iNdEx += skippy 11722 } 11723 } 11724 11725 if iNdEx > l { 11726 return io.ErrUnexpectedEOF 11727 } 11728 return nil 11729 } 11730 func (m *ProcessResult) Unmarshal(dAtA []byte) error { 11731 l := len(dAtA) 11732 iNdEx := 0 11733 for iNdEx < l { 11734 preIndex := iNdEx 11735 var wire uint64 11736 for shift := uint(0); ; shift += 7 { 11737 if shift >= 64 { 11738 return ErrIntOverflowDmworker 11739 } 11740 if iNdEx >= l { 11741 return io.ErrUnexpectedEOF 11742 } 11743 b := dAtA[iNdEx] 11744 iNdEx++ 11745 wire |= uint64(b&0x7F) << shift 11746 if b < 0x80 { 11747 break 11748 } 11749 } 11750 fieldNum := int32(wire >> 3) 11751 wireType := int(wire & 0x7) 11752 if wireType == 4 { 11753 return fmt.Errorf("proto: ProcessResult: wiretype end group for non-group") 11754 } 11755 if fieldNum <= 0 { 11756 return fmt.Errorf("proto: ProcessResult: illegal tag %d (wire type %d)", fieldNum, wire) 11757 } 11758 switch fieldNum { 11759 case 1: 11760 if wireType != 0 { 11761 return fmt.Errorf("proto: wrong wireType = %d for field IsCanceled", wireType) 11762 } 11763 var v int 11764 for shift := uint(0); ; shift += 7 { 11765 if shift >= 64 { 11766 return ErrIntOverflowDmworker 11767 } 11768 if iNdEx >= l { 11769 return io.ErrUnexpectedEOF 11770 } 11771 b := dAtA[iNdEx] 11772 iNdEx++ 11773 v |= int(b&0x7F) << shift 11774 if b < 0x80 { 11775 break 11776 } 11777 } 11778 m.IsCanceled = bool(v != 0) 11779 case 2: 11780 if wireType != 2 { 11781 return fmt.Errorf("proto: wrong wireType = %d for field Errors", wireType) 11782 } 11783 var msglen int 11784 for shift := uint(0); ; shift += 7 { 11785 if shift >= 64 { 11786 return ErrIntOverflowDmworker 11787 } 11788 if iNdEx >= l { 11789 return io.ErrUnexpectedEOF 11790 } 11791 b := dAtA[iNdEx] 11792 iNdEx++ 11793 msglen |= int(b&0x7F) << shift 11794 if b < 0x80 { 11795 break 11796 } 11797 } 11798 if msglen < 0 { 11799 return ErrInvalidLengthDmworker 11800 } 11801 postIndex := iNdEx + msglen 11802 if postIndex < 0 { 11803 return ErrInvalidLengthDmworker 11804 } 11805 if postIndex > l { 11806 return io.ErrUnexpectedEOF 11807 } 11808 m.Errors = append(m.Errors, &ProcessError{}) 11809 if err := m.Errors[len(m.Errors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11810 return err 11811 } 11812 iNdEx = postIndex 11813 case 3: 11814 if wireType != 2 { 11815 return fmt.Errorf("proto: wrong wireType = %d for field Detail", wireType) 11816 } 11817 var byteLen int 11818 for shift := uint(0); ; shift += 7 { 11819 if shift >= 64 { 11820 return ErrIntOverflowDmworker 11821 } 11822 if iNdEx >= l { 11823 return io.ErrUnexpectedEOF 11824 } 11825 b := dAtA[iNdEx] 11826 iNdEx++ 11827 byteLen |= int(b&0x7F) << shift 11828 if b < 0x80 { 11829 break 11830 } 11831 } 11832 if byteLen < 0 { 11833 return ErrInvalidLengthDmworker 11834 } 11835 postIndex := iNdEx + byteLen 11836 if postIndex < 0 { 11837 return ErrInvalidLengthDmworker 11838 } 11839 if postIndex > l { 11840 return io.ErrUnexpectedEOF 11841 } 11842 m.Detail = append(m.Detail[:0], dAtA[iNdEx:postIndex]...) 11843 if m.Detail == nil { 11844 m.Detail = []byte{} 11845 } 11846 iNdEx = postIndex 11847 default: 11848 iNdEx = preIndex 11849 skippy, err := skipDmworker(dAtA[iNdEx:]) 11850 if err != nil { 11851 return err 11852 } 11853 if (skippy < 0) || (iNdEx+skippy) < 0 { 11854 return ErrInvalidLengthDmworker 11855 } 11856 if (iNdEx + skippy) > l { 11857 return io.ErrUnexpectedEOF 11858 } 11859 iNdEx += skippy 11860 } 11861 } 11862 11863 if iNdEx > l { 11864 return io.ErrUnexpectedEOF 11865 } 11866 return nil 11867 } 11868 func (m *ProcessError) Unmarshal(dAtA []byte) error { 11869 l := len(dAtA) 11870 iNdEx := 0 11871 for iNdEx < l { 11872 preIndex := iNdEx 11873 var wire uint64 11874 for shift := uint(0); ; shift += 7 { 11875 if shift >= 64 { 11876 return ErrIntOverflowDmworker 11877 } 11878 if iNdEx >= l { 11879 return io.ErrUnexpectedEOF 11880 } 11881 b := dAtA[iNdEx] 11882 iNdEx++ 11883 wire |= uint64(b&0x7F) << shift 11884 if b < 0x80 { 11885 break 11886 } 11887 } 11888 fieldNum := int32(wire >> 3) 11889 wireType := int(wire & 0x7) 11890 if wireType == 4 { 11891 return fmt.Errorf("proto: ProcessError: wiretype end group for non-group") 11892 } 11893 if fieldNum <= 0 { 11894 return fmt.Errorf("proto: ProcessError: illegal tag %d (wire type %d)", fieldNum, wire) 11895 } 11896 switch fieldNum { 11897 case 1: 11898 if wireType != 0 { 11899 return fmt.Errorf("proto: wrong wireType = %d for field ErrCode", wireType) 11900 } 11901 m.ErrCode = 0 11902 for shift := uint(0); ; shift += 7 { 11903 if shift >= 64 { 11904 return ErrIntOverflowDmworker 11905 } 11906 if iNdEx >= l { 11907 return io.ErrUnexpectedEOF 11908 } 11909 b := dAtA[iNdEx] 11910 iNdEx++ 11911 m.ErrCode |= int32(b&0x7F) << shift 11912 if b < 0x80 { 11913 break 11914 } 11915 } 11916 case 2: 11917 if wireType != 2 { 11918 return fmt.Errorf("proto: wrong wireType = %d for field ErrClass", wireType) 11919 } 11920 var stringLen uint64 11921 for shift := uint(0); ; shift += 7 { 11922 if shift >= 64 { 11923 return ErrIntOverflowDmworker 11924 } 11925 if iNdEx >= l { 11926 return io.ErrUnexpectedEOF 11927 } 11928 b := dAtA[iNdEx] 11929 iNdEx++ 11930 stringLen |= uint64(b&0x7F) << shift 11931 if b < 0x80 { 11932 break 11933 } 11934 } 11935 intStringLen := int(stringLen) 11936 if intStringLen < 0 { 11937 return ErrInvalidLengthDmworker 11938 } 11939 postIndex := iNdEx + intStringLen 11940 if postIndex < 0 { 11941 return ErrInvalidLengthDmworker 11942 } 11943 if postIndex > l { 11944 return io.ErrUnexpectedEOF 11945 } 11946 m.ErrClass = string(dAtA[iNdEx:postIndex]) 11947 iNdEx = postIndex 11948 case 3: 11949 if wireType != 2 { 11950 return fmt.Errorf("proto: wrong wireType = %d for field ErrScope", wireType) 11951 } 11952 var stringLen uint64 11953 for shift := uint(0); ; shift += 7 { 11954 if shift >= 64 { 11955 return ErrIntOverflowDmworker 11956 } 11957 if iNdEx >= l { 11958 return io.ErrUnexpectedEOF 11959 } 11960 b := dAtA[iNdEx] 11961 iNdEx++ 11962 stringLen |= uint64(b&0x7F) << shift 11963 if b < 0x80 { 11964 break 11965 } 11966 } 11967 intStringLen := int(stringLen) 11968 if intStringLen < 0 { 11969 return ErrInvalidLengthDmworker 11970 } 11971 postIndex := iNdEx + intStringLen 11972 if postIndex < 0 { 11973 return ErrInvalidLengthDmworker 11974 } 11975 if postIndex > l { 11976 return io.ErrUnexpectedEOF 11977 } 11978 m.ErrScope = string(dAtA[iNdEx:postIndex]) 11979 iNdEx = postIndex 11980 case 4: 11981 if wireType != 2 { 11982 return fmt.Errorf("proto: wrong wireType = %d for field ErrLevel", wireType) 11983 } 11984 var stringLen uint64 11985 for shift := uint(0); ; shift += 7 { 11986 if shift >= 64 { 11987 return ErrIntOverflowDmworker 11988 } 11989 if iNdEx >= l { 11990 return io.ErrUnexpectedEOF 11991 } 11992 b := dAtA[iNdEx] 11993 iNdEx++ 11994 stringLen |= uint64(b&0x7F) << shift 11995 if b < 0x80 { 11996 break 11997 } 11998 } 11999 intStringLen := int(stringLen) 12000 if intStringLen < 0 { 12001 return ErrInvalidLengthDmworker 12002 } 12003 postIndex := iNdEx + intStringLen 12004 if postIndex < 0 { 12005 return ErrInvalidLengthDmworker 12006 } 12007 if postIndex > l { 12008 return io.ErrUnexpectedEOF 12009 } 12010 m.ErrLevel = string(dAtA[iNdEx:postIndex]) 12011 iNdEx = postIndex 12012 case 5: 12013 if wireType != 2 { 12014 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 12015 } 12016 var stringLen uint64 12017 for shift := uint(0); ; shift += 7 { 12018 if shift >= 64 { 12019 return ErrIntOverflowDmworker 12020 } 12021 if iNdEx >= l { 12022 return io.ErrUnexpectedEOF 12023 } 12024 b := dAtA[iNdEx] 12025 iNdEx++ 12026 stringLen |= uint64(b&0x7F) << shift 12027 if b < 0x80 { 12028 break 12029 } 12030 } 12031 intStringLen := int(stringLen) 12032 if intStringLen < 0 { 12033 return ErrInvalidLengthDmworker 12034 } 12035 postIndex := iNdEx + intStringLen 12036 if postIndex < 0 { 12037 return ErrInvalidLengthDmworker 12038 } 12039 if postIndex > l { 12040 return io.ErrUnexpectedEOF 12041 } 12042 m.Message = string(dAtA[iNdEx:postIndex]) 12043 iNdEx = postIndex 12044 case 6: 12045 if wireType != 2 { 12046 return fmt.Errorf("proto: wrong wireType = %d for field RawCause", wireType) 12047 } 12048 var stringLen uint64 12049 for shift := uint(0); ; shift += 7 { 12050 if shift >= 64 { 12051 return ErrIntOverflowDmworker 12052 } 12053 if iNdEx >= l { 12054 return io.ErrUnexpectedEOF 12055 } 12056 b := dAtA[iNdEx] 12057 iNdEx++ 12058 stringLen |= uint64(b&0x7F) << shift 12059 if b < 0x80 { 12060 break 12061 } 12062 } 12063 intStringLen := int(stringLen) 12064 if intStringLen < 0 { 12065 return ErrInvalidLengthDmworker 12066 } 12067 postIndex := iNdEx + intStringLen 12068 if postIndex < 0 { 12069 return ErrInvalidLengthDmworker 12070 } 12071 if postIndex > l { 12072 return io.ErrUnexpectedEOF 12073 } 12074 m.RawCause = string(dAtA[iNdEx:postIndex]) 12075 iNdEx = postIndex 12076 case 7: 12077 if wireType != 2 { 12078 return fmt.Errorf("proto: wrong wireType = %d for field Workaround", wireType) 12079 } 12080 var stringLen uint64 12081 for shift := uint(0); ; shift += 7 { 12082 if shift >= 64 { 12083 return ErrIntOverflowDmworker 12084 } 12085 if iNdEx >= l { 12086 return io.ErrUnexpectedEOF 12087 } 12088 b := dAtA[iNdEx] 12089 iNdEx++ 12090 stringLen |= uint64(b&0x7F) << shift 12091 if b < 0x80 { 12092 break 12093 } 12094 } 12095 intStringLen := int(stringLen) 12096 if intStringLen < 0 { 12097 return ErrInvalidLengthDmworker 12098 } 12099 postIndex := iNdEx + intStringLen 12100 if postIndex < 0 { 12101 return ErrInvalidLengthDmworker 12102 } 12103 if postIndex > l { 12104 return io.ErrUnexpectedEOF 12105 } 12106 m.Workaround = string(dAtA[iNdEx:postIndex]) 12107 iNdEx = postIndex 12108 default: 12109 iNdEx = preIndex 12110 skippy, err := skipDmworker(dAtA[iNdEx:]) 12111 if err != nil { 12112 return err 12113 } 12114 if (skippy < 0) || (iNdEx+skippy) < 0 { 12115 return ErrInvalidLengthDmworker 12116 } 12117 if (iNdEx + skippy) > l { 12118 return io.ErrUnexpectedEOF 12119 } 12120 iNdEx += skippy 12121 } 12122 } 12123 12124 if iNdEx > l { 12125 return io.ErrUnexpectedEOF 12126 } 12127 return nil 12128 } 12129 func (m *PurgeRelayRequest) Unmarshal(dAtA []byte) error { 12130 l := len(dAtA) 12131 iNdEx := 0 12132 for iNdEx < l { 12133 preIndex := iNdEx 12134 var wire uint64 12135 for shift := uint(0); ; shift += 7 { 12136 if shift >= 64 { 12137 return ErrIntOverflowDmworker 12138 } 12139 if iNdEx >= l { 12140 return io.ErrUnexpectedEOF 12141 } 12142 b := dAtA[iNdEx] 12143 iNdEx++ 12144 wire |= uint64(b&0x7F) << shift 12145 if b < 0x80 { 12146 break 12147 } 12148 } 12149 fieldNum := int32(wire >> 3) 12150 wireType := int(wire & 0x7) 12151 if wireType == 4 { 12152 return fmt.Errorf("proto: PurgeRelayRequest: wiretype end group for non-group") 12153 } 12154 if fieldNum <= 0 { 12155 return fmt.Errorf("proto: PurgeRelayRequest: illegal tag %d (wire type %d)", fieldNum, wire) 12156 } 12157 switch fieldNum { 12158 case 1: 12159 if wireType != 0 { 12160 return fmt.Errorf("proto: wrong wireType = %d for field Inactive", wireType) 12161 } 12162 var v int 12163 for shift := uint(0); ; shift += 7 { 12164 if shift >= 64 { 12165 return ErrIntOverflowDmworker 12166 } 12167 if iNdEx >= l { 12168 return io.ErrUnexpectedEOF 12169 } 12170 b := dAtA[iNdEx] 12171 iNdEx++ 12172 v |= int(b&0x7F) << shift 12173 if b < 0x80 { 12174 break 12175 } 12176 } 12177 m.Inactive = bool(v != 0) 12178 case 2: 12179 if wireType != 0 { 12180 return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) 12181 } 12182 m.Time = 0 12183 for shift := uint(0); ; shift += 7 { 12184 if shift >= 64 { 12185 return ErrIntOverflowDmworker 12186 } 12187 if iNdEx >= l { 12188 return io.ErrUnexpectedEOF 12189 } 12190 b := dAtA[iNdEx] 12191 iNdEx++ 12192 m.Time |= int64(b&0x7F) << shift 12193 if b < 0x80 { 12194 break 12195 } 12196 } 12197 case 3: 12198 if wireType != 2 { 12199 return fmt.Errorf("proto: wrong wireType = %d for field Filename", wireType) 12200 } 12201 var stringLen uint64 12202 for shift := uint(0); ; shift += 7 { 12203 if shift >= 64 { 12204 return ErrIntOverflowDmworker 12205 } 12206 if iNdEx >= l { 12207 return io.ErrUnexpectedEOF 12208 } 12209 b := dAtA[iNdEx] 12210 iNdEx++ 12211 stringLen |= uint64(b&0x7F) << shift 12212 if b < 0x80 { 12213 break 12214 } 12215 } 12216 intStringLen := int(stringLen) 12217 if intStringLen < 0 { 12218 return ErrInvalidLengthDmworker 12219 } 12220 postIndex := iNdEx + intStringLen 12221 if postIndex < 0 { 12222 return ErrInvalidLengthDmworker 12223 } 12224 if postIndex > l { 12225 return io.ErrUnexpectedEOF 12226 } 12227 m.Filename = string(dAtA[iNdEx:postIndex]) 12228 iNdEx = postIndex 12229 case 4: 12230 if wireType != 2 { 12231 return fmt.Errorf("proto: wrong wireType = %d for field SubDir", wireType) 12232 } 12233 var stringLen uint64 12234 for shift := uint(0); ; shift += 7 { 12235 if shift >= 64 { 12236 return ErrIntOverflowDmworker 12237 } 12238 if iNdEx >= l { 12239 return io.ErrUnexpectedEOF 12240 } 12241 b := dAtA[iNdEx] 12242 iNdEx++ 12243 stringLen |= uint64(b&0x7F) << shift 12244 if b < 0x80 { 12245 break 12246 } 12247 } 12248 intStringLen := int(stringLen) 12249 if intStringLen < 0 { 12250 return ErrInvalidLengthDmworker 12251 } 12252 postIndex := iNdEx + intStringLen 12253 if postIndex < 0 { 12254 return ErrInvalidLengthDmworker 12255 } 12256 if postIndex > l { 12257 return io.ErrUnexpectedEOF 12258 } 12259 m.SubDir = string(dAtA[iNdEx:postIndex]) 12260 iNdEx = postIndex 12261 default: 12262 iNdEx = preIndex 12263 skippy, err := skipDmworker(dAtA[iNdEx:]) 12264 if err != nil { 12265 return err 12266 } 12267 if (skippy < 0) || (iNdEx+skippy) < 0 { 12268 return ErrInvalidLengthDmworker 12269 } 12270 if (iNdEx + skippy) > l { 12271 return io.ErrUnexpectedEOF 12272 } 12273 iNdEx += skippy 12274 } 12275 } 12276 12277 if iNdEx > l { 12278 return io.ErrUnexpectedEOF 12279 } 12280 return nil 12281 } 12282 func (m *OperateWorkerSchemaRequest) Unmarshal(dAtA []byte) error { 12283 l := len(dAtA) 12284 iNdEx := 0 12285 for iNdEx < l { 12286 preIndex := iNdEx 12287 var wire uint64 12288 for shift := uint(0); ; shift += 7 { 12289 if shift >= 64 { 12290 return ErrIntOverflowDmworker 12291 } 12292 if iNdEx >= l { 12293 return io.ErrUnexpectedEOF 12294 } 12295 b := dAtA[iNdEx] 12296 iNdEx++ 12297 wire |= uint64(b&0x7F) << shift 12298 if b < 0x80 { 12299 break 12300 } 12301 } 12302 fieldNum := int32(wire >> 3) 12303 wireType := int(wire & 0x7) 12304 if wireType == 4 { 12305 return fmt.Errorf("proto: OperateWorkerSchemaRequest: wiretype end group for non-group") 12306 } 12307 if fieldNum <= 0 { 12308 return fmt.Errorf("proto: OperateWorkerSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) 12309 } 12310 switch fieldNum { 12311 case 1: 12312 if wireType != 0 { 12313 return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType) 12314 } 12315 m.Op = 0 12316 for shift := uint(0); ; shift += 7 { 12317 if shift >= 64 { 12318 return ErrIntOverflowDmworker 12319 } 12320 if iNdEx >= l { 12321 return io.ErrUnexpectedEOF 12322 } 12323 b := dAtA[iNdEx] 12324 iNdEx++ 12325 m.Op |= SchemaOp(b&0x7F) << shift 12326 if b < 0x80 { 12327 break 12328 } 12329 } 12330 case 2: 12331 if wireType != 2 { 12332 return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType) 12333 } 12334 var stringLen uint64 12335 for shift := uint(0); ; shift += 7 { 12336 if shift >= 64 { 12337 return ErrIntOverflowDmworker 12338 } 12339 if iNdEx >= l { 12340 return io.ErrUnexpectedEOF 12341 } 12342 b := dAtA[iNdEx] 12343 iNdEx++ 12344 stringLen |= uint64(b&0x7F) << shift 12345 if b < 0x80 { 12346 break 12347 } 12348 } 12349 intStringLen := int(stringLen) 12350 if intStringLen < 0 { 12351 return ErrInvalidLengthDmworker 12352 } 12353 postIndex := iNdEx + intStringLen 12354 if postIndex < 0 { 12355 return ErrInvalidLengthDmworker 12356 } 12357 if postIndex > l { 12358 return io.ErrUnexpectedEOF 12359 } 12360 m.Task = string(dAtA[iNdEx:postIndex]) 12361 iNdEx = postIndex 12362 case 3: 12363 if wireType != 2 { 12364 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) 12365 } 12366 var stringLen uint64 12367 for shift := uint(0); ; shift += 7 { 12368 if shift >= 64 { 12369 return ErrIntOverflowDmworker 12370 } 12371 if iNdEx >= l { 12372 return io.ErrUnexpectedEOF 12373 } 12374 b := dAtA[iNdEx] 12375 iNdEx++ 12376 stringLen |= uint64(b&0x7F) << shift 12377 if b < 0x80 { 12378 break 12379 } 12380 } 12381 intStringLen := int(stringLen) 12382 if intStringLen < 0 { 12383 return ErrInvalidLengthDmworker 12384 } 12385 postIndex := iNdEx + intStringLen 12386 if postIndex < 0 { 12387 return ErrInvalidLengthDmworker 12388 } 12389 if postIndex > l { 12390 return io.ErrUnexpectedEOF 12391 } 12392 m.Source = string(dAtA[iNdEx:postIndex]) 12393 iNdEx = postIndex 12394 case 4: 12395 if wireType != 2 { 12396 return fmt.Errorf("proto: wrong wireType = %d for field Database", wireType) 12397 } 12398 var stringLen uint64 12399 for shift := uint(0); ; shift += 7 { 12400 if shift >= 64 { 12401 return ErrIntOverflowDmworker 12402 } 12403 if iNdEx >= l { 12404 return io.ErrUnexpectedEOF 12405 } 12406 b := dAtA[iNdEx] 12407 iNdEx++ 12408 stringLen |= uint64(b&0x7F) << shift 12409 if b < 0x80 { 12410 break 12411 } 12412 } 12413 intStringLen := int(stringLen) 12414 if intStringLen < 0 { 12415 return ErrInvalidLengthDmworker 12416 } 12417 postIndex := iNdEx + intStringLen 12418 if postIndex < 0 { 12419 return ErrInvalidLengthDmworker 12420 } 12421 if postIndex > l { 12422 return io.ErrUnexpectedEOF 12423 } 12424 m.Database = string(dAtA[iNdEx:postIndex]) 12425 iNdEx = postIndex 12426 case 5: 12427 if wireType != 2 { 12428 return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) 12429 } 12430 var stringLen uint64 12431 for shift := uint(0); ; shift += 7 { 12432 if shift >= 64 { 12433 return ErrIntOverflowDmworker 12434 } 12435 if iNdEx >= l { 12436 return io.ErrUnexpectedEOF 12437 } 12438 b := dAtA[iNdEx] 12439 iNdEx++ 12440 stringLen |= uint64(b&0x7F) << shift 12441 if b < 0x80 { 12442 break 12443 } 12444 } 12445 intStringLen := int(stringLen) 12446 if intStringLen < 0 { 12447 return ErrInvalidLengthDmworker 12448 } 12449 postIndex := iNdEx + intStringLen 12450 if postIndex < 0 { 12451 return ErrInvalidLengthDmworker 12452 } 12453 if postIndex > l { 12454 return io.ErrUnexpectedEOF 12455 } 12456 m.Table = string(dAtA[iNdEx:postIndex]) 12457 iNdEx = postIndex 12458 case 6: 12459 if wireType != 2 { 12460 return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) 12461 } 12462 var stringLen uint64 12463 for shift := uint(0); ; shift += 7 { 12464 if shift >= 64 { 12465 return ErrIntOverflowDmworker 12466 } 12467 if iNdEx >= l { 12468 return io.ErrUnexpectedEOF 12469 } 12470 b := dAtA[iNdEx] 12471 iNdEx++ 12472 stringLen |= uint64(b&0x7F) << shift 12473 if b < 0x80 { 12474 break 12475 } 12476 } 12477 intStringLen := int(stringLen) 12478 if intStringLen < 0 { 12479 return ErrInvalidLengthDmworker 12480 } 12481 postIndex := iNdEx + intStringLen 12482 if postIndex < 0 { 12483 return ErrInvalidLengthDmworker 12484 } 12485 if postIndex > l { 12486 return io.ErrUnexpectedEOF 12487 } 12488 m.Schema = string(dAtA[iNdEx:postIndex]) 12489 iNdEx = postIndex 12490 case 7: 12491 if wireType != 0 { 12492 return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType) 12493 } 12494 var v int 12495 for shift := uint(0); ; shift += 7 { 12496 if shift >= 64 { 12497 return ErrIntOverflowDmworker 12498 } 12499 if iNdEx >= l { 12500 return io.ErrUnexpectedEOF 12501 } 12502 b := dAtA[iNdEx] 12503 iNdEx++ 12504 v |= int(b&0x7F) << shift 12505 if b < 0x80 { 12506 break 12507 } 12508 } 12509 m.Flush = bool(v != 0) 12510 case 8: 12511 if wireType != 0 { 12512 return fmt.Errorf("proto: wrong wireType = %d for field Sync", wireType) 12513 } 12514 var v int 12515 for shift := uint(0); ; shift += 7 { 12516 if shift >= 64 { 12517 return ErrIntOverflowDmworker 12518 } 12519 if iNdEx >= l { 12520 return io.ErrUnexpectedEOF 12521 } 12522 b := dAtA[iNdEx] 12523 iNdEx++ 12524 v |= int(b&0x7F) << shift 12525 if b < 0x80 { 12526 break 12527 } 12528 } 12529 m.Sync = bool(v != 0) 12530 case 9: 12531 if wireType != 0 { 12532 return fmt.Errorf("proto: wrong wireType = %d for field FromSource", wireType) 12533 } 12534 var v int 12535 for shift := uint(0); ; shift += 7 { 12536 if shift >= 64 { 12537 return ErrIntOverflowDmworker 12538 } 12539 if iNdEx >= l { 12540 return io.ErrUnexpectedEOF 12541 } 12542 b := dAtA[iNdEx] 12543 iNdEx++ 12544 v |= int(b&0x7F) << shift 12545 if b < 0x80 { 12546 break 12547 } 12548 } 12549 m.FromSource = bool(v != 0) 12550 case 10: 12551 if wireType != 0 { 12552 return fmt.Errorf("proto: wrong wireType = %d for field FromTarget", wireType) 12553 } 12554 var v int 12555 for shift := uint(0); ; shift += 7 { 12556 if shift >= 64 { 12557 return ErrIntOverflowDmworker 12558 } 12559 if iNdEx >= l { 12560 return io.ErrUnexpectedEOF 12561 } 12562 b := dAtA[iNdEx] 12563 iNdEx++ 12564 v |= int(b&0x7F) << shift 12565 if b < 0x80 { 12566 break 12567 } 12568 } 12569 m.FromTarget = bool(v != 0) 12570 default: 12571 iNdEx = preIndex 12572 skippy, err := skipDmworker(dAtA[iNdEx:]) 12573 if err != nil { 12574 return err 12575 } 12576 if (skippy < 0) || (iNdEx+skippy) < 0 { 12577 return ErrInvalidLengthDmworker 12578 } 12579 if (iNdEx + skippy) > l { 12580 return io.ErrUnexpectedEOF 12581 } 12582 iNdEx += skippy 12583 } 12584 } 12585 12586 if iNdEx > l { 12587 return io.ErrUnexpectedEOF 12588 } 12589 return nil 12590 } 12591 func (m *V1SubTaskMeta) Unmarshal(dAtA []byte) error { 12592 l := len(dAtA) 12593 iNdEx := 0 12594 for iNdEx < l { 12595 preIndex := iNdEx 12596 var wire uint64 12597 for shift := uint(0); ; shift += 7 { 12598 if shift >= 64 { 12599 return ErrIntOverflowDmworker 12600 } 12601 if iNdEx >= l { 12602 return io.ErrUnexpectedEOF 12603 } 12604 b := dAtA[iNdEx] 12605 iNdEx++ 12606 wire |= uint64(b&0x7F) << shift 12607 if b < 0x80 { 12608 break 12609 } 12610 } 12611 fieldNum := int32(wire >> 3) 12612 wireType := int(wire & 0x7) 12613 if wireType == 4 { 12614 return fmt.Errorf("proto: V1SubTaskMeta: wiretype end group for non-group") 12615 } 12616 if fieldNum <= 0 { 12617 return fmt.Errorf("proto: V1SubTaskMeta: illegal tag %d (wire type %d)", fieldNum, wire) 12618 } 12619 switch fieldNum { 12620 case 1: 12621 if wireType != 0 { 12622 return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType) 12623 } 12624 m.Op = 0 12625 for shift := uint(0); ; shift += 7 { 12626 if shift >= 64 { 12627 return ErrIntOverflowDmworker 12628 } 12629 if iNdEx >= l { 12630 return io.ErrUnexpectedEOF 12631 } 12632 b := dAtA[iNdEx] 12633 iNdEx++ 12634 m.Op |= TaskOp(b&0x7F) << shift 12635 if b < 0x80 { 12636 break 12637 } 12638 } 12639 case 2: 12640 if wireType != 0 { 12641 return fmt.Errorf("proto: wrong wireType = %d for field Stage", wireType) 12642 } 12643 m.Stage = 0 12644 for shift := uint(0); ; shift += 7 { 12645 if shift >= 64 { 12646 return ErrIntOverflowDmworker 12647 } 12648 if iNdEx >= l { 12649 return io.ErrUnexpectedEOF 12650 } 12651 b := dAtA[iNdEx] 12652 iNdEx++ 12653 m.Stage |= Stage(b&0x7F) << shift 12654 if b < 0x80 { 12655 break 12656 } 12657 } 12658 case 3: 12659 if wireType != 2 { 12660 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 12661 } 12662 var stringLen uint64 12663 for shift := uint(0); ; shift += 7 { 12664 if shift >= 64 { 12665 return ErrIntOverflowDmworker 12666 } 12667 if iNdEx >= l { 12668 return io.ErrUnexpectedEOF 12669 } 12670 b := dAtA[iNdEx] 12671 iNdEx++ 12672 stringLen |= uint64(b&0x7F) << shift 12673 if b < 0x80 { 12674 break 12675 } 12676 } 12677 intStringLen := int(stringLen) 12678 if intStringLen < 0 { 12679 return ErrInvalidLengthDmworker 12680 } 12681 postIndex := iNdEx + intStringLen 12682 if postIndex < 0 { 12683 return ErrInvalidLengthDmworker 12684 } 12685 if postIndex > l { 12686 return io.ErrUnexpectedEOF 12687 } 12688 m.Name = string(dAtA[iNdEx:postIndex]) 12689 iNdEx = postIndex 12690 case 4: 12691 if wireType != 2 { 12692 return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType) 12693 } 12694 var byteLen int 12695 for shift := uint(0); ; shift += 7 { 12696 if shift >= 64 { 12697 return ErrIntOverflowDmworker 12698 } 12699 if iNdEx >= l { 12700 return io.ErrUnexpectedEOF 12701 } 12702 b := dAtA[iNdEx] 12703 iNdEx++ 12704 byteLen |= int(b&0x7F) << shift 12705 if b < 0x80 { 12706 break 12707 } 12708 } 12709 if byteLen < 0 { 12710 return ErrInvalidLengthDmworker 12711 } 12712 postIndex := iNdEx + byteLen 12713 if postIndex < 0 { 12714 return ErrInvalidLengthDmworker 12715 } 12716 if postIndex > l { 12717 return io.ErrUnexpectedEOF 12718 } 12719 m.Task = append(m.Task[:0], dAtA[iNdEx:postIndex]...) 12720 if m.Task == nil { 12721 m.Task = []byte{} 12722 } 12723 iNdEx = postIndex 12724 default: 12725 iNdEx = preIndex 12726 skippy, err := skipDmworker(dAtA[iNdEx:]) 12727 if err != nil { 12728 return err 12729 } 12730 if (skippy < 0) || (iNdEx+skippy) < 0 { 12731 return ErrInvalidLengthDmworker 12732 } 12733 if (iNdEx + skippy) > l { 12734 return io.ErrUnexpectedEOF 12735 } 12736 iNdEx += skippy 12737 } 12738 } 12739 12740 if iNdEx > l { 12741 return io.ErrUnexpectedEOF 12742 } 12743 return nil 12744 } 12745 func (m *OperateV1MetaRequest) Unmarshal(dAtA []byte) error { 12746 l := len(dAtA) 12747 iNdEx := 0 12748 for iNdEx < l { 12749 preIndex := iNdEx 12750 var wire uint64 12751 for shift := uint(0); ; shift += 7 { 12752 if shift >= 64 { 12753 return ErrIntOverflowDmworker 12754 } 12755 if iNdEx >= l { 12756 return io.ErrUnexpectedEOF 12757 } 12758 b := dAtA[iNdEx] 12759 iNdEx++ 12760 wire |= uint64(b&0x7F) << shift 12761 if b < 0x80 { 12762 break 12763 } 12764 } 12765 fieldNum := int32(wire >> 3) 12766 wireType := int(wire & 0x7) 12767 if wireType == 4 { 12768 return fmt.Errorf("proto: OperateV1MetaRequest: wiretype end group for non-group") 12769 } 12770 if fieldNum <= 0 { 12771 return fmt.Errorf("proto: OperateV1MetaRequest: illegal tag %d (wire type %d)", fieldNum, wire) 12772 } 12773 switch fieldNum { 12774 case 1: 12775 if wireType != 0 { 12776 return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType) 12777 } 12778 m.Op = 0 12779 for shift := uint(0); ; shift += 7 { 12780 if shift >= 64 { 12781 return ErrIntOverflowDmworker 12782 } 12783 if iNdEx >= l { 12784 return io.ErrUnexpectedEOF 12785 } 12786 b := dAtA[iNdEx] 12787 iNdEx++ 12788 m.Op |= V1MetaOp(b&0x7F) << shift 12789 if b < 0x80 { 12790 break 12791 } 12792 } 12793 default: 12794 iNdEx = preIndex 12795 skippy, err := skipDmworker(dAtA[iNdEx:]) 12796 if err != nil { 12797 return err 12798 } 12799 if (skippy < 0) || (iNdEx+skippy) < 0 { 12800 return ErrInvalidLengthDmworker 12801 } 12802 if (iNdEx + skippy) > l { 12803 return io.ErrUnexpectedEOF 12804 } 12805 iNdEx += skippy 12806 } 12807 } 12808 12809 if iNdEx > l { 12810 return io.ErrUnexpectedEOF 12811 } 12812 return nil 12813 } 12814 func (m *OperateV1MetaResponse) Unmarshal(dAtA []byte) error { 12815 l := len(dAtA) 12816 iNdEx := 0 12817 for iNdEx < l { 12818 preIndex := iNdEx 12819 var wire uint64 12820 for shift := uint(0); ; shift += 7 { 12821 if shift >= 64 { 12822 return ErrIntOverflowDmworker 12823 } 12824 if iNdEx >= l { 12825 return io.ErrUnexpectedEOF 12826 } 12827 b := dAtA[iNdEx] 12828 iNdEx++ 12829 wire |= uint64(b&0x7F) << shift 12830 if b < 0x80 { 12831 break 12832 } 12833 } 12834 fieldNum := int32(wire >> 3) 12835 wireType := int(wire & 0x7) 12836 if wireType == 4 { 12837 return fmt.Errorf("proto: OperateV1MetaResponse: wiretype end group for non-group") 12838 } 12839 if fieldNum <= 0 { 12840 return fmt.Errorf("proto: OperateV1MetaResponse: illegal tag %d (wire type %d)", fieldNum, wire) 12841 } 12842 switch fieldNum { 12843 case 1: 12844 if wireType != 0 { 12845 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 12846 } 12847 var v int 12848 for shift := uint(0); ; shift += 7 { 12849 if shift >= 64 { 12850 return ErrIntOverflowDmworker 12851 } 12852 if iNdEx >= l { 12853 return io.ErrUnexpectedEOF 12854 } 12855 b := dAtA[iNdEx] 12856 iNdEx++ 12857 v |= int(b&0x7F) << shift 12858 if b < 0x80 { 12859 break 12860 } 12861 } 12862 m.Result = bool(v != 0) 12863 case 2: 12864 if wireType != 2 { 12865 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 12866 } 12867 var stringLen uint64 12868 for shift := uint(0); ; shift += 7 { 12869 if shift >= 64 { 12870 return ErrIntOverflowDmworker 12871 } 12872 if iNdEx >= l { 12873 return io.ErrUnexpectedEOF 12874 } 12875 b := dAtA[iNdEx] 12876 iNdEx++ 12877 stringLen |= uint64(b&0x7F) << shift 12878 if b < 0x80 { 12879 break 12880 } 12881 } 12882 intStringLen := int(stringLen) 12883 if intStringLen < 0 { 12884 return ErrInvalidLengthDmworker 12885 } 12886 postIndex := iNdEx + intStringLen 12887 if postIndex < 0 { 12888 return ErrInvalidLengthDmworker 12889 } 12890 if postIndex > l { 12891 return io.ErrUnexpectedEOF 12892 } 12893 m.Msg = string(dAtA[iNdEx:postIndex]) 12894 iNdEx = postIndex 12895 case 3: 12896 if wireType != 2 { 12897 return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) 12898 } 12899 var msglen int 12900 for shift := uint(0); ; shift += 7 { 12901 if shift >= 64 { 12902 return ErrIntOverflowDmworker 12903 } 12904 if iNdEx >= l { 12905 return io.ErrUnexpectedEOF 12906 } 12907 b := dAtA[iNdEx] 12908 iNdEx++ 12909 msglen |= int(b&0x7F) << shift 12910 if b < 0x80 { 12911 break 12912 } 12913 } 12914 if msglen < 0 { 12915 return ErrInvalidLengthDmworker 12916 } 12917 postIndex := iNdEx + msglen 12918 if postIndex < 0 { 12919 return ErrInvalidLengthDmworker 12920 } 12921 if postIndex > l { 12922 return io.ErrUnexpectedEOF 12923 } 12924 if m.Meta == nil { 12925 m.Meta = make(map[string]*V1SubTaskMeta) 12926 } 12927 var mapkey string 12928 var mapvalue *V1SubTaskMeta 12929 for iNdEx < postIndex { 12930 entryPreIndex := iNdEx 12931 var wire uint64 12932 for shift := uint(0); ; shift += 7 { 12933 if shift >= 64 { 12934 return ErrIntOverflowDmworker 12935 } 12936 if iNdEx >= l { 12937 return io.ErrUnexpectedEOF 12938 } 12939 b := dAtA[iNdEx] 12940 iNdEx++ 12941 wire |= uint64(b&0x7F) << shift 12942 if b < 0x80 { 12943 break 12944 } 12945 } 12946 fieldNum := int32(wire >> 3) 12947 if fieldNum == 1 { 12948 var stringLenmapkey uint64 12949 for shift := uint(0); ; shift += 7 { 12950 if shift >= 64 { 12951 return ErrIntOverflowDmworker 12952 } 12953 if iNdEx >= l { 12954 return io.ErrUnexpectedEOF 12955 } 12956 b := dAtA[iNdEx] 12957 iNdEx++ 12958 stringLenmapkey |= uint64(b&0x7F) << shift 12959 if b < 0x80 { 12960 break 12961 } 12962 } 12963 intStringLenmapkey := int(stringLenmapkey) 12964 if intStringLenmapkey < 0 { 12965 return ErrInvalidLengthDmworker 12966 } 12967 postStringIndexmapkey := iNdEx + intStringLenmapkey 12968 if postStringIndexmapkey < 0 { 12969 return ErrInvalidLengthDmworker 12970 } 12971 if postStringIndexmapkey > l { 12972 return io.ErrUnexpectedEOF 12973 } 12974 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 12975 iNdEx = postStringIndexmapkey 12976 } else if fieldNum == 2 { 12977 var mapmsglen int 12978 for shift := uint(0); ; shift += 7 { 12979 if shift >= 64 { 12980 return ErrIntOverflowDmworker 12981 } 12982 if iNdEx >= l { 12983 return io.ErrUnexpectedEOF 12984 } 12985 b := dAtA[iNdEx] 12986 iNdEx++ 12987 mapmsglen |= int(b&0x7F) << shift 12988 if b < 0x80 { 12989 break 12990 } 12991 } 12992 if mapmsglen < 0 { 12993 return ErrInvalidLengthDmworker 12994 } 12995 postmsgIndex := iNdEx + mapmsglen 12996 if postmsgIndex < 0 { 12997 return ErrInvalidLengthDmworker 12998 } 12999 if postmsgIndex > l { 13000 return io.ErrUnexpectedEOF 13001 } 13002 mapvalue = &V1SubTaskMeta{} 13003 if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { 13004 return err 13005 } 13006 iNdEx = postmsgIndex 13007 } else { 13008 iNdEx = entryPreIndex 13009 skippy, err := skipDmworker(dAtA[iNdEx:]) 13010 if err != nil { 13011 return err 13012 } 13013 if (skippy < 0) || (iNdEx+skippy) < 0 { 13014 return ErrInvalidLengthDmworker 13015 } 13016 if (iNdEx + skippy) > postIndex { 13017 return io.ErrUnexpectedEOF 13018 } 13019 iNdEx += skippy 13020 } 13021 } 13022 m.Meta[mapkey] = mapvalue 13023 iNdEx = postIndex 13024 default: 13025 iNdEx = preIndex 13026 skippy, err := skipDmworker(dAtA[iNdEx:]) 13027 if err != nil { 13028 return err 13029 } 13030 if (skippy < 0) || (iNdEx+skippy) < 0 { 13031 return ErrInvalidLengthDmworker 13032 } 13033 if (iNdEx + skippy) > l { 13034 return io.ErrUnexpectedEOF 13035 } 13036 iNdEx += skippy 13037 } 13038 } 13039 13040 if iNdEx > l { 13041 return io.ErrUnexpectedEOF 13042 } 13043 return nil 13044 } 13045 func (m *HandleWorkerErrorRequest) Unmarshal(dAtA []byte) error { 13046 l := len(dAtA) 13047 iNdEx := 0 13048 for iNdEx < l { 13049 preIndex := iNdEx 13050 var wire uint64 13051 for shift := uint(0); ; shift += 7 { 13052 if shift >= 64 { 13053 return ErrIntOverflowDmworker 13054 } 13055 if iNdEx >= l { 13056 return io.ErrUnexpectedEOF 13057 } 13058 b := dAtA[iNdEx] 13059 iNdEx++ 13060 wire |= uint64(b&0x7F) << shift 13061 if b < 0x80 { 13062 break 13063 } 13064 } 13065 fieldNum := int32(wire >> 3) 13066 wireType := int(wire & 0x7) 13067 if wireType == 4 { 13068 return fmt.Errorf("proto: HandleWorkerErrorRequest: wiretype end group for non-group") 13069 } 13070 if fieldNum <= 0 { 13071 return fmt.Errorf("proto: HandleWorkerErrorRequest: illegal tag %d (wire type %d)", fieldNum, wire) 13072 } 13073 switch fieldNum { 13074 case 1: 13075 if wireType != 0 { 13076 return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType) 13077 } 13078 m.Op = 0 13079 for shift := uint(0); ; shift += 7 { 13080 if shift >= 64 { 13081 return ErrIntOverflowDmworker 13082 } 13083 if iNdEx >= l { 13084 return io.ErrUnexpectedEOF 13085 } 13086 b := dAtA[iNdEx] 13087 iNdEx++ 13088 m.Op |= ErrorOp(b&0x7F) << shift 13089 if b < 0x80 { 13090 break 13091 } 13092 } 13093 case 2: 13094 if wireType != 2 { 13095 return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType) 13096 } 13097 var stringLen uint64 13098 for shift := uint(0); ; shift += 7 { 13099 if shift >= 64 { 13100 return ErrIntOverflowDmworker 13101 } 13102 if iNdEx >= l { 13103 return io.ErrUnexpectedEOF 13104 } 13105 b := dAtA[iNdEx] 13106 iNdEx++ 13107 stringLen |= uint64(b&0x7F) << shift 13108 if b < 0x80 { 13109 break 13110 } 13111 } 13112 intStringLen := int(stringLen) 13113 if intStringLen < 0 { 13114 return ErrInvalidLengthDmworker 13115 } 13116 postIndex := iNdEx + intStringLen 13117 if postIndex < 0 { 13118 return ErrInvalidLengthDmworker 13119 } 13120 if postIndex > l { 13121 return io.ErrUnexpectedEOF 13122 } 13123 m.Task = string(dAtA[iNdEx:postIndex]) 13124 iNdEx = postIndex 13125 case 3: 13126 if wireType != 2 { 13127 return fmt.Errorf("proto: wrong wireType = %d for field BinlogPos", wireType) 13128 } 13129 var stringLen uint64 13130 for shift := uint(0); ; shift += 7 { 13131 if shift >= 64 { 13132 return ErrIntOverflowDmworker 13133 } 13134 if iNdEx >= l { 13135 return io.ErrUnexpectedEOF 13136 } 13137 b := dAtA[iNdEx] 13138 iNdEx++ 13139 stringLen |= uint64(b&0x7F) << shift 13140 if b < 0x80 { 13141 break 13142 } 13143 } 13144 intStringLen := int(stringLen) 13145 if intStringLen < 0 { 13146 return ErrInvalidLengthDmworker 13147 } 13148 postIndex := iNdEx + intStringLen 13149 if postIndex < 0 { 13150 return ErrInvalidLengthDmworker 13151 } 13152 if postIndex > l { 13153 return io.ErrUnexpectedEOF 13154 } 13155 m.BinlogPos = string(dAtA[iNdEx:postIndex]) 13156 iNdEx = postIndex 13157 case 4: 13158 if wireType != 2 { 13159 return fmt.Errorf("proto: wrong wireType = %d for field Sqls", wireType) 13160 } 13161 var stringLen uint64 13162 for shift := uint(0); ; shift += 7 { 13163 if shift >= 64 { 13164 return ErrIntOverflowDmworker 13165 } 13166 if iNdEx >= l { 13167 return io.ErrUnexpectedEOF 13168 } 13169 b := dAtA[iNdEx] 13170 iNdEx++ 13171 stringLen |= uint64(b&0x7F) << shift 13172 if b < 0x80 { 13173 break 13174 } 13175 } 13176 intStringLen := int(stringLen) 13177 if intStringLen < 0 { 13178 return ErrInvalidLengthDmworker 13179 } 13180 postIndex := iNdEx + intStringLen 13181 if postIndex < 0 { 13182 return ErrInvalidLengthDmworker 13183 } 13184 if postIndex > l { 13185 return io.ErrUnexpectedEOF 13186 } 13187 m.Sqls = append(m.Sqls, string(dAtA[iNdEx:postIndex])) 13188 iNdEx = postIndex 13189 default: 13190 iNdEx = preIndex 13191 skippy, err := skipDmworker(dAtA[iNdEx:]) 13192 if err != nil { 13193 return err 13194 } 13195 if (skippy < 0) || (iNdEx+skippy) < 0 { 13196 return ErrInvalidLengthDmworker 13197 } 13198 if (iNdEx + skippy) > l { 13199 return io.ErrUnexpectedEOF 13200 } 13201 iNdEx += skippy 13202 } 13203 } 13204 13205 if iNdEx > l { 13206 return io.ErrUnexpectedEOF 13207 } 13208 return nil 13209 } 13210 func (m *GetWorkerCfgRequest) Unmarshal(dAtA []byte) error { 13211 l := len(dAtA) 13212 iNdEx := 0 13213 for iNdEx < l { 13214 preIndex := iNdEx 13215 var wire uint64 13216 for shift := uint(0); ; shift += 7 { 13217 if shift >= 64 { 13218 return ErrIntOverflowDmworker 13219 } 13220 if iNdEx >= l { 13221 return io.ErrUnexpectedEOF 13222 } 13223 b := dAtA[iNdEx] 13224 iNdEx++ 13225 wire |= uint64(b&0x7F) << shift 13226 if b < 0x80 { 13227 break 13228 } 13229 } 13230 fieldNum := int32(wire >> 3) 13231 wireType := int(wire & 0x7) 13232 if wireType == 4 { 13233 return fmt.Errorf("proto: GetWorkerCfgRequest: wiretype end group for non-group") 13234 } 13235 if fieldNum <= 0 { 13236 return fmt.Errorf("proto: GetWorkerCfgRequest: illegal tag %d (wire type %d)", fieldNum, wire) 13237 } 13238 switch fieldNum { 13239 default: 13240 iNdEx = preIndex 13241 skippy, err := skipDmworker(dAtA[iNdEx:]) 13242 if err != nil { 13243 return err 13244 } 13245 if (skippy < 0) || (iNdEx+skippy) < 0 { 13246 return ErrInvalidLengthDmworker 13247 } 13248 if (iNdEx + skippy) > l { 13249 return io.ErrUnexpectedEOF 13250 } 13251 iNdEx += skippy 13252 } 13253 } 13254 13255 if iNdEx > l { 13256 return io.ErrUnexpectedEOF 13257 } 13258 return nil 13259 } 13260 func (m *GetWorkerCfgResponse) Unmarshal(dAtA []byte) error { 13261 l := len(dAtA) 13262 iNdEx := 0 13263 for iNdEx < l { 13264 preIndex := iNdEx 13265 var wire uint64 13266 for shift := uint(0); ; shift += 7 { 13267 if shift >= 64 { 13268 return ErrIntOverflowDmworker 13269 } 13270 if iNdEx >= l { 13271 return io.ErrUnexpectedEOF 13272 } 13273 b := dAtA[iNdEx] 13274 iNdEx++ 13275 wire |= uint64(b&0x7F) << shift 13276 if b < 0x80 { 13277 break 13278 } 13279 } 13280 fieldNum := int32(wire >> 3) 13281 wireType := int(wire & 0x7) 13282 if wireType == 4 { 13283 return fmt.Errorf("proto: GetWorkerCfgResponse: wiretype end group for non-group") 13284 } 13285 if fieldNum <= 0 { 13286 return fmt.Errorf("proto: GetWorkerCfgResponse: illegal tag %d (wire type %d)", fieldNum, wire) 13287 } 13288 switch fieldNum { 13289 case 1: 13290 if wireType != 2 { 13291 return fmt.Errorf("proto: wrong wireType = %d for field Cfg", wireType) 13292 } 13293 var stringLen uint64 13294 for shift := uint(0); ; shift += 7 { 13295 if shift >= 64 { 13296 return ErrIntOverflowDmworker 13297 } 13298 if iNdEx >= l { 13299 return io.ErrUnexpectedEOF 13300 } 13301 b := dAtA[iNdEx] 13302 iNdEx++ 13303 stringLen |= uint64(b&0x7F) << shift 13304 if b < 0x80 { 13305 break 13306 } 13307 } 13308 intStringLen := int(stringLen) 13309 if intStringLen < 0 { 13310 return ErrInvalidLengthDmworker 13311 } 13312 postIndex := iNdEx + intStringLen 13313 if postIndex < 0 { 13314 return ErrInvalidLengthDmworker 13315 } 13316 if postIndex > l { 13317 return io.ErrUnexpectedEOF 13318 } 13319 m.Cfg = string(dAtA[iNdEx:postIndex]) 13320 iNdEx = postIndex 13321 default: 13322 iNdEx = preIndex 13323 skippy, err := skipDmworker(dAtA[iNdEx:]) 13324 if err != nil { 13325 return err 13326 } 13327 if (skippy < 0) || (iNdEx+skippy) < 0 { 13328 return ErrInvalidLengthDmworker 13329 } 13330 if (iNdEx + skippy) > l { 13331 return io.ErrUnexpectedEOF 13332 } 13333 iNdEx += skippy 13334 } 13335 } 13336 13337 if iNdEx > l { 13338 return io.ErrUnexpectedEOF 13339 } 13340 return nil 13341 } 13342 func (m *CheckSubtasksCanUpdateRequest) Unmarshal(dAtA []byte) error { 13343 l := len(dAtA) 13344 iNdEx := 0 13345 for iNdEx < l { 13346 preIndex := iNdEx 13347 var wire uint64 13348 for shift := uint(0); ; shift += 7 { 13349 if shift >= 64 { 13350 return ErrIntOverflowDmworker 13351 } 13352 if iNdEx >= l { 13353 return io.ErrUnexpectedEOF 13354 } 13355 b := dAtA[iNdEx] 13356 iNdEx++ 13357 wire |= uint64(b&0x7F) << shift 13358 if b < 0x80 { 13359 break 13360 } 13361 } 13362 fieldNum := int32(wire >> 3) 13363 wireType := int(wire & 0x7) 13364 if wireType == 4 { 13365 return fmt.Errorf("proto: CheckSubtasksCanUpdateRequest: wiretype end group for non-group") 13366 } 13367 if fieldNum <= 0 { 13368 return fmt.Errorf("proto: CheckSubtasksCanUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 13369 } 13370 switch fieldNum { 13371 case 1: 13372 if wireType != 2 { 13373 return fmt.Errorf("proto: wrong wireType = %d for field SubtaskCfgTomlString", wireType) 13374 } 13375 var stringLen uint64 13376 for shift := uint(0); ; shift += 7 { 13377 if shift >= 64 { 13378 return ErrIntOverflowDmworker 13379 } 13380 if iNdEx >= l { 13381 return io.ErrUnexpectedEOF 13382 } 13383 b := dAtA[iNdEx] 13384 iNdEx++ 13385 stringLen |= uint64(b&0x7F) << shift 13386 if b < 0x80 { 13387 break 13388 } 13389 } 13390 intStringLen := int(stringLen) 13391 if intStringLen < 0 { 13392 return ErrInvalidLengthDmworker 13393 } 13394 postIndex := iNdEx + intStringLen 13395 if postIndex < 0 { 13396 return ErrInvalidLengthDmworker 13397 } 13398 if postIndex > l { 13399 return io.ErrUnexpectedEOF 13400 } 13401 m.SubtaskCfgTomlString = string(dAtA[iNdEx:postIndex]) 13402 iNdEx = postIndex 13403 default: 13404 iNdEx = preIndex 13405 skippy, err := skipDmworker(dAtA[iNdEx:]) 13406 if err != nil { 13407 return err 13408 } 13409 if (skippy < 0) || (iNdEx+skippy) < 0 { 13410 return ErrInvalidLengthDmworker 13411 } 13412 if (iNdEx + skippy) > l { 13413 return io.ErrUnexpectedEOF 13414 } 13415 iNdEx += skippy 13416 } 13417 } 13418 13419 if iNdEx > l { 13420 return io.ErrUnexpectedEOF 13421 } 13422 return nil 13423 } 13424 func (m *CheckSubtasksCanUpdateResponse) Unmarshal(dAtA []byte) error { 13425 l := len(dAtA) 13426 iNdEx := 0 13427 for iNdEx < l { 13428 preIndex := iNdEx 13429 var wire uint64 13430 for shift := uint(0); ; shift += 7 { 13431 if shift >= 64 { 13432 return ErrIntOverflowDmworker 13433 } 13434 if iNdEx >= l { 13435 return io.ErrUnexpectedEOF 13436 } 13437 b := dAtA[iNdEx] 13438 iNdEx++ 13439 wire |= uint64(b&0x7F) << shift 13440 if b < 0x80 { 13441 break 13442 } 13443 } 13444 fieldNum := int32(wire >> 3) 13445 wireType := int(wire & 0x7) 13446 if wireType == 4 { 13447 return fmt.Errorf("proto: CheckSubtasksCanUpdateResponse: wiretype end group for non-group") 13448 } 13449 if fieldNum <= 0 { 13450 return fmt.Errorf("proto: CheckSubtasksCanUpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 13451 } 13452 switch fieldNum { 13453 case 1: 13454 if wireType != 0 { 13455 return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) 13456 } 13457 var v int 13458 for shift := uint(0); ; shift += 7 { 13459 if shift >= 64 { 13460 return ErrIntOverflowDmworker 13461 } 13462 if iNdEx >= l { 13463 return io.ErrUnexpectedEOF 13464 } 13465 b := dAtA[iNdEx] 13466 iNdEx++ 13467 v |= int(b&0x7F) << shift 13468 if b < 0x80 { 13469 break 13470 } 13471 } 13472 m.Success = bool(v != 0) 13473 case 2: 13474 if wireType != 2 { 13475 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 13476 } 13477 var stringLen uint64 13478 for shift := uint(0); ; shift += 7 { 13479 if shift >= 64 { 13480 return ErrIntOverflowDmworker 13481 } 13482 if iNdEx >= l { 13483 return io.ErrUnexpectedEOF 13484 } 13485 b := dAtA[iNdEx] 13486 iNdEx++ 13487 stringLen |= uint64(b&0x7F) << shift 13488 if b < 0x80 { 13489 break 13490 } 13491 } 13492 intStringLen := int(stringLen) 13493 if intStringLen < 0 { 13494 return ErrInvalidLengthDmworker 13495 } 13496 postIndex := iNdEx + intStringLen 13497 if postIndex < 0 { 13498 return ErrInvalidLengthDmworker 13499 } 13500 if postIndex > l { 13501 return io.ErrUnexpectedEOF 13502 } 13503 m.Msg = string(dAtA[iNdEx:postIndex]) 13504 iNdEx = postIndex 13505 default: 13506 iNdEx = preIndex 13507 skippy, err := skipDmworker(dAtA[iNdEx:]) 13508 if err != nil { 13509 return err 13510 } 13511 if (skippy < 0) || (iNdEx+skippy) < 0 { 13512 return ErrInvalidLengthDmworker 13513 } 13514 if (iNdEx + skippy) > l { 13515 return io.ErrUnexpectedEOF 13516 } 13517 iNdEx += skippy 13518 } 13519 } 13520 13521 if iNdEx > l { 13522 return io.ErrUnexpectedEOF 13523 } 13524 return nil 13525 } 13526 func (m *GetValidationStatusRequest) Unmarshal(dAtA []byte) error { 13527 l := len(dAtA) 13528 iNdEx := 0 13529 for iNdEx < l { 13530 preIndex := iNdEx 13531 var wire uint64 13532 for shift := uint(0); ; shift += 7 { 13533 if shift >= 64 { 13534 return ErrIntOverflowDmworker 13535 } 13536 if iNdEx >= l { 13537 return io.ErrUnexpectedEOF 13538 } 13539 b := dAtA[iNdEx] 13540 iNdEx++ 13541 wire |= uint64(b&0x7F) << shift 13542 if b < 0x80 { 13543 break 13544 } 13545 } 13546 fieldNum := int32(wire >> 3) 13547 wireType := int(wire & 0x7) 13548 if wireType == 4 { 13549 return fmt.Errorf("proto: GetValidationStatusRequest: wiretype end group for non-group") 13550 } 13551 if fieldNum <= 0 { 13552 return fmt.Errorf("proto: GetValidationStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) 13553 } 13554 switch fieldNum { 13555 case 1: 13556 if wireType != 2 { 13557 return fmt.Errorf("proto: wrong wireType = %d for field TaskName", wireType) 13558 } 13559 var stringLen uint64 13560 for shift := uint(0); ; shift += 7 { 13561 if shift >= 64 { 13562 return ErrIntOverflowDmworker 13563 } 13564 if iNdEx >= l { 13565 return io.ErrUnexpectedEOF 13566 } 13567 b := dAtA[iNdEx] 13568 iNdEx++ 13569 stringLen |= uint64(b&0x7F) << shift 13570 if b < 0x80 { 13571 break 13572 } 13573 } 13574 intStringLen := int(stringLen) 13575 if intStringLen < 0 { 13576 return ErrInvalidLengthDmworker 13577 } 13578 postIndex := iNdEx + intStringLen 13579 if postIndex < 0 { 13580 return ErrInvalidLengthDmworker 13581 } 13582 if postIndex > l { 13583 return io.ErrUnexpectedEOF 13584 } 13585 m.TaskName = string(dAtA[iNdEx:postIndex]) 13586 iNdEx = postIndex 13587 case 2: 13588 if wireType != 0 { 13589 return fmt.Errorf("proto: wrong wireType = %d for field FilterStatus", wireType) 13590 } 13591 m.FilterStatus = 0 13592 for shift := uint(0); ; shift += 7 { 13593 if shift >= 64 { 13594 return ErrIntOverflowDmworker 13595 } 13596 if iNdEx >= l { 13597 return io.ErrUnexpectedEOF 13598 } 13599 b := dAtA[iNdEx] 13600 iNdEx++ 13601 m.FilterStatus |= Stage(b&0x7F) << shift 13602 if b < 0x80 { 13603 break 13604 } 13605 } 13606 default: 13607 iNdEx = preIndex 13608 skippy, err := skipDmworker(dAtA[iNdEx:]) 13609 if err != nil { 13610 return err 13611 } 13612 if (skippy < 0) || (iNdEx+skippy) < 0 { 13613 return ErrInvalidLengthDmworker 13614 } 13615 if (iNdEx + skippy) > l { 13616 return io.ErrUnexpectedEOF 13617 } 13618 iNdEx += skippy 13619 } 13620 } 13621 13622 if iNdEx > l { 13623 return io.ErrUnexpectedEOF 13624 } 13625 return nil 13626 } 13627 func (m *ValidationStatus) Unmarshal(dAtA []byte) error { 13628 l := len(dAtA) 13629 iNdEx := 0 13630 for iNdEx < l { 13631 preIndex := iNdEx 13632 var wire uint64 13633 for shift := uint(0); ; shift += 7 { 13634 if shift >= 64 { 13635 return ErrIntOverflowDmworker 13636 } 13637 if iNdEx >= l { 13638 return io.ErrUnexpectedEOF 13639 } 13640 b := dAtA[iNdEx] 13641 iNdEx++ 13642 wire |= uint64(b&0x7F) << shift 13643 if b < 0x80 { 13644 break 13645 } 13646 } 13647 fieldNum := int32(wire >> 3) 13648 wireType := int(wire & 0x7) 13649 if wireType == 4 { 13650 return fmt.Errorf("proto: ValidationStatus: wiretype end group for non-group") 13651 } 13652 if fieldNum <= 0 { 13653 return fmt.Errorf("proto: ValidationStatus: illegal tag %d (wire type %d)", fieldNum, wire) 13654 } 13655 switch fieldNum { 13656 case 1: 13657 if wireType != 2 { 13658 return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType) 13659 } 13660 var stringLen uint64 13661 for shift := uint(0); ; shift += 7 { 13662 if shift >= 64 { 13663 return ErrIntOverflowDmworker 13664 } 13665 if iNdEx >= l { 13666 return io.ErrUnexpectedEOF 13667 } 13668 b := dAtA[iNdEx] 13669 iNdEx++ 13670 stringLen |= uint64(b&0x7F) << shift 13671 if b < 0x80 { 13672 break 13673 } 13674 } 13675 intStringLen := int(stringLen) 13676 if intStringLen < 0 { 13677 return ErrInvalidLengthDmworker 13678 } 13679 postIndex := iNdEx + intStringLen 13680 if postIndex < 0 { 13681 return ErrInvalidLengthDmworker 13682 } 13683 if postIndex > l { 13684 return io.ErrUnexpectedEOF 13685 } 13686 m.Task = string(dAtA[iNdEx:postIndex]) 13687 iNdEx = postIndex 13688 case 2: 13689 if wireType != 2 { 13690 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) 13691 } 13692 var stringLen uint64 13693 for shift := uint(0); ; shift += 7 { 13694 if shift >= 64 { 13695 return ErrIntOverflowDmworker 13696 } 13697 if iNdEx >= l { 13698 return io.ErrUnexpectedEOF 13699 } 13700 b := dAtA[iNdEx] 13701 iNdEx++ 13702 stringLen |= uint64(b&0x7F) << shift 13703 if b < 0x80 { 13704 break 13705 } 13706 } 13707 intStringLen := int(stringLen) 13708 if intStringLen < 0 { 13709 return ErrInvalidLengthDmworker 13710 } 13711 postIndex := iNdEx + intStringLen 13712 if postIndex < 0 { 13713 return ErrInvalidLengthDmworker 13714 } 13715 if postIndex > l { 13716 return io.ErrUnexpectedEOF 13717 } 13718 m.Source = string(dAtA[iNdEx:postIndex]) 13719 iNdEx = postIndex 13720 case 3: 13721 if wireType != 2 { 13722 return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) 13723 } 13724 var stringLen uint64 13725 for shift := uint(0); ; shift += 7 { 13726 if shift >= 64 { 13727 return ErrIntOverflowDmworker 13728 } 13729 if iNdEx >= l { 13730 return io.ErrUnexpectedEOF 13731 } 13732 b := dAtA[iNdEx] 13733 iNdEx++ 13734 stringLen |= uint64(b&0x7F) << shift 13735 if b < 0x80 { 13736 break 13737 } 13738 } 13739 intStringLen := int(stringLen) 13740 if intStringLen < 0 { 13741 return ErrInvalidLengthDmworker 13742 } 13743 postIndex := iNdEx + intStringLen 13744 if postIndex < 0 { 13745 return ErrInvalidLengthDmworker 13746 } 13747 if postIndex > l { 13748 return io.ErrUnexpectedEOF 13749 } 13750 m.Mode = string(dAtA[iNdEx:postIndex]) 13751 iNdEx = postIndex 13752 case 4: 13753 if wireType != 0 { 13754 return fmt.Errorf("proto: wrong wireType = %d for field Stage", wireType) 13755 } 13756 m.Stage = 0 13757 for shift := uint(0); ; shift += 7 { 13758 if shift >= 64 { 13759 return ErrIntOverflowDmworker 13760 } 13761 if iNdEx >= l { 13762 return io.ErrUnexpectedEOF 13763 } 13764 b := dAtA[iNdEx] 13765 iNdEx++ 13766 m.Stage |= Stage(b&0x7F) << shift 13767 if b < 0x80 { 13768 break 13769 } 13770 } 13771 case 5: 13772 if wireType != 2 { 13773 return fmt.Errorf("proto: wrong wireType = %d for field ValidatorBinlog", wireType) 13774 } 13775 var stringLen uint64 13776 for shift := uint(0); ; shift += 7 { 13777 if shift >= 64 { 13778 return ErrIntOverflowDmworker 13779 } 13780 if iNdEx >= l { 13781 return io.ErrUnexpectedEOF 13782 } 13783 b := dAtA[iNdEx] 13784 iNdEx++ 13785 stringLen |= uint64(b&0x7F) << shift 13786 if b < 0x80 { 13787 break 13788 } 13789 } 13790 intStringLen := int(stringLen) 13791 if intStringLen < 0 { 13792 return ErrInvalidLengthDmworker 13793 } 13794 postIndex := iNdEx + intStringLen 13795 if postIndex < 0 { 13796 return ErrInvalidLengthDmworker 13797 } 13798 if postIndex > l { 13799 return io.ErrUnexpectedEOF 13800 } 13801 m.ValidatorBinlog = string(dAtA[iNdEx:postIndex]) 13802 iNdEx = postIndex 13803 case 6: 13804 if wireType != 2 { 13805 return fmt.Errorf("proto: wrong wireType = %d for field ValidatorBinlogGtid", wireType) 13806 } 13807 var stringLen uint64 13808 for shift := uint(0); ; shift += 7 { 13809 if shift >= 64 { 13810 return ErrIntOverflowDmworker 13811 } 13812 if iNdEx >= l { 13813 return io.ErrUnexpectedEOF 13814 } 13815 b := dAtA[iNdEx] 13816 iNdEx++ 13817 stringLen |= uint64(b&0x7F) << shift 13818 if b < 0x80 { 13819 break 13820 } 13821 } 13822 intStringLen := int(stringLen) 13823 if intStringLen < 0 { 13824 return ErrInvalidLengthDmworker 13825 } 13826 postIndex := iNdEx + intStringLen 13827 if postIndex < 0 { 13828 return ErrInvalidLengthDmworker 13829 } 13830 if postIndex > l { 13831 return io.ErrUnexpectedEOF 13832 } 13833 m.ValidatorBinlogGtid = string(dAtA[iNdEx:postIndex]) 13834 iNdEx = postIndex 13835 case 7: 13836 if wireType != 2 { 13837 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 13838 } 13839 var msglen int 13840 for shift := uint(0); ; shift += 7 { 13841 if shift >= 64 { 13842 return ErrIntOverflowDmworker 13843 } 13844 if iNdEx >= l { 13845 return io.ErrUnexpectedEOF 13846 } 13847 b := dAtA[iNdEx] 13848 iNdEx++ 13849 msglen |= int(b&0x7F) << shift 13850 if b < 0x80 { 13851 break 13852 } 13853 } 13854 if msglen < 0 { 13855 return ErrInvalidLengthDmworker 13856 } 13857 postIndex := iNdEx + msglen 13858 if postIndex < 0 { 13859 return ErrInvalidLengthDmworker 13860 } 13861 if postIndex > l { 13862 return io.ErrUnexpectedEOF 13863 } 13864 if m.Result == nil { 13865 m.Result = &ProcessResult{} 13866 } 13867 if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13868 return err 13869 } 13870 iNdEx = postIndex 13871 case 8: 13872 if wireType != 2 { 13873 return fmt.Errorf("proto: wrong wireType = %d for field ProcessedRowsStatus", wireType) 13874 } 13875 var stringLen uint64 13876 for shift := uint(0); ; shift += 7 { 13877 if shift >= 64 { 13878 return ErrIntOverflowDmworker 13879 } 13880 if iNdEx >= l { 13881 return io.ErrUnexpectedEOF 13882 } 13883 b := dAtA[iNdEx] 13884 iNdEx++ 13885 stringLen |= uint64(b&0x7F) << shift 13886 if b < 0x80 { 13887 break 13888 } 13889 } 13890 intStringLen := int(stringLen) 13891 if intStringLen < 0 { 13892 return ErrInvalidLengthDmworker 13893 } 13894 postIndex := iNdEx + intStringLen 13895 if postIndex < 0 { 13896 return ErrInvalidLengthDmworker 13897 } 13898 if postIndex > l { 13899 return io.ErrUnexpectedEOF 13900 } 13901 m.ProcessedRowsStatus = string(dAtA[iNdEx:postIndex]) 13902 iNdEx = postIndex 13903 case 9: 13904 if wireType != 2 { 13905 return fmt.Errorf("proto: wrong wireType = %d for field PendingRowsStatus", wireType) 13906 } 13907 var stringLen uint64 13908 for shift := uint(0); ; shift += 7 { 13909 if shift >= 64 { 13910 return ErrIntOverflowDmworker 13911 } 13912 if iNdEx >= l { 13913 return io.ErrUnexpectedEOF 13914 } 13915 b := dAtA[iNdEx] 13916 iNdEx++ 13917 stringLen |= uint64(b&0x7F) << shift 13918 if b < 0x80 { 13919 break 13920 } 13921 } 13922 intStringLen := int(stringLen) 13923 if intStringLen < 0 { 13924 return ErrInvalidLengthDmworker 13925 } 13926 postIndex := iNdEx + intStringLen 13927 if postIndex < 0 { 13928 return ErrInvalidLengthDmworker 13929 } 13930 if postIndex > l { 13931 return io.ErrUnexpectedEOF 13932 } 13933 m.PendingRowsStatus = string(dAtA[iNdEx:postIndex]) 13934 iNdEx = postIndex 13935 case 10: 13936 if wireType != 2 { 13937 return fmt.Errorf("proto: wrong wireType = %d for field ErrorRowsStatus", wireType) 13938 } 13939 var stringLen uint64 13940 for shift := uint(0); ; shift += 7 { 13941 if shift >= 64 { 13942 return ErrIntOverflowDmworker 13943 } 13944 if iNdEx >= l { 13945 return io.ErrUnexpectedEOF 13946 } 13947 b := dAtA[iNdEx] 13948 iNdEx++ 13949 stringLen |= uint64(b&0x7F) << shift 13950 if b < 0x80 { 13951 break 13952 } 13953 } 13954 intStringLen := int(stringLen) 13955 if intStringLen < 0 { 13956 return ErrInvalidLengthDmworker 13957 } 13958 postIndex := iNdEx + intStringLen 13959 if postIndex < 0 { 13960 return ErrInvalidLengthDmworker 13961 } 13962 if postIndex > l { 13963 return io.ErrUnexpectedEOF 13964 } 13965 m.ErrorRowsStatus = string(dAtA[iNdEx:postIndex]) 13966 iNdEx = postIndex 13967 case 11: 13968 if wireType != 2 { 13969 return fmt.Errorf("proto: wrong wireType = %d for field CutoverBinlogPos", wireType) 13970 } 13971 var stringLen uint64 13972 for shift := uint(0); ; shift += 7 { 13973 if shift >= 64 { 13974 return ErrIntOverflowDmworker 13975 } 13976 if iNdEx >= l { 13977 return io.ErrUnexpectedEOF 13978 } 13979 b := dAtA[iNdEx] 13980 iNdEx++ 13981 stringLen |= uint64(b&0x7F) << shift 13982 if b < 0x80 { 13983 break 13984 } 13985 } 13986 intStringLen := int(stringLen) 13987 if intStringLen < 0 { 13988 return ErrInvalidLengthDmworker 13989 } 13990 postIndex := iNdEx + intStringLen 13991 if postIndex < 0 { 13992 return ErrInvalidLengthDmworker 13993 } 13994 if postIndex > l { 13995 return io.ErrUnexpectedEOF 13996 } 13997 m.CutoverBinlogPos = string(dAtA[iNdEx:postIndex]) 13998 iNdEx = postIndex 13999 case 12: 14000 if wireType != 2 { 14001 return fmt.Errorf("proto: wrong wireType = %d for field CutoverBinlogGtid", wireType) 14002 } 14003 var stringLen uint64 14004 for shift := uint(0); ; shift += 7 { 14005 if shift >= 64 { 14006 return ErrIntOverflowDmworker 14007 } 14008 if iNdEx >= l { 14009 return io.ErrUnexpectedEOF 14010 } 14011 b := dAtA[iNdEx] 14012 iNdEx++ 14013 stringLen |= uint64(b&0x7F) << shift 14014 if b < 0x80 { 14015 break 14016 } 14017 } 14018 intStringLen := int(stringLen) 14019 if intStringLen < 0 { 14020 return ErrInvalidLengthDmworker 14021 } 14022 postIndex := iNdEx + intStringLen 14023 if postIndex < 0 { 14024 return ErrInvalidLengthDmworker 14025 } 14026 if postIndex > l { 14027 return io.ErrUnexpectedEOF 14028 } 14029 m.CutoverBinlogGtid = string(dAtA[iNdEx:postIndex]) 14030 iNdEx = postIndex 14031 default: 14032 iNdEx = preIndex 14033 skippy, err := skipDmworker(dAtA[iNdEx:]) 14034 if err != nil { 14035 return err 14036 } 14037 if (skippy < 0) || (iNdEx+skippy) < 0 { 14038 return ErrInvalidLengthDmworker 14039 } 14040 if (iNdEx + skippy) > l { 14041 return io.ErrUnexpectedEOF 14042 } 14043 iNdEx += skippy 14044 } 14045 } 14046 14047 if iNdEx > l { 14048 return io.ErrUnexpectedEOF 14049 } 14050 return nil 14051 } 14052 func (m *ValidationTableStatus) Unmarshal(dAtA []byte) error { 14053 l := len(dAtA) 14054 iNdEx := 0 14055 for iNdEx < l { 14056 preIndex := iNdEx 14057 var wire uint64 14058 for shift := uint(0); ; shift += 7 { 14059 if shift >= 64 { 14060 return ErrIntOverflowDmworker 14061 } 14062 if iNdEx >= l { 14063 return io.ErrUnexpectedEOF 14064 } 14065 b := dAtA[iNdEx] 14066 iNdEx++ 14067 wire |= uint64(b&0x7F) << shift 14068 if b < 0x80 { 14069 break 14070 } 14071 } 14072 fieldNum := int32(wire >> 3) 14073 wireType := int(wire & 0x7) 14074 if wireType == 4 { 14075 return fmt.Errorf("proto: ValidationTableStatus: wiretype end group for non-group") 14076 } 14077 if fieldNum <= 0 { 14078 return fmt.Errorf("proto: ValidationTableStatus: illegal tag %d (wire type %d)", fieldNum, wire) 14079 } 14080 switch fieldNum { 14081 case 1: 14082 if wireType != 2 { 14083 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) 14084 } 14085 var stringLen uint64 14086 for shift := uint(0); ; shift += 7 { 14087 if shift >= 64 { 14088 return ErrIntOverflowDmworker 14089 } 14090 if iNdEx >= l { 14091 return io.ErrUnexpectedEOF 14092 } 14093 b := dAtA[iNdEx] 14094 iNdEx++ 14095 stringLen |= uint64(b&0x7F) << shift 14096 if b < 0x80 { 14097 break 14098 } 14099 } 14100 intStringLen := int(stringLen) 14101 if intStringLen < 0 { 14102 return ErrInvalidLengthDmworker 14103 } 14104 postIndex := iNdEx + intStringLen 14105 if postIndex < 0 { 14106 return ErrInvalidLengthDmworker 14107 } 14108 if postIndex > l { 14109 return io.ErrUnexpectedEOF 14110 } 14111 m.Source = string(dAtA[iNdEx:postIndex]) 14112 iNdEx = postIndex 14113 case 2: 14114 if wireType != 2 { 14115 return fmt.Errorf("proto: wrong wireType = %d for field SrcTable", wireType) 14116 } 14117 var stringLen uint64 14118 for shift := uint(0); ; shift += 7 { 14119 if shift >= 64 { 14120 return ErrIntOverflowDmworker 14121 } 14122 if iNdEx >= l { 14123 return io.ErrUnexpectedEOF 14124 } 14125 b := dAtA[iNdEx] 14126 iNdEx++ 14127 stringLen |= uint64(b&0x7F) << shift 14128 if b < 0x80 { 14129 break 14130 } 14131 } 14132 intStringLen := int(stringLen) 14133 if intStringLen < 0 { 14134 return ErrInvalidLengthDmworker 14135 } 14136 postIndex := iNdEx + intStringLen 14137 if postIndex < 0 { 14138 return ErrInvalidLengthDmworker 14139 } 14140 if postIndex > l { 14141 return io.ErrUnexpectedEOF 14142 } 14143 m.SrcTable = string(dAtA[iNdEx:postIndex]) 14144 iNdEx = postIndex 14145 case 3: 14146 if wireType != 2 { 14147 return fmt.Errorf("proto: wrong wireType = %d for field DstTable", wireType) 14148 } 14149 var stringLen uint64 14150 for shift := uint(0); ; shift += 7 { 14151 if shift >= 64 { 14152 return ErrIntOverflowDmworker 14153 } 14154 if iNdEx >= l { 14155 return io.ErrUnexpectedEOF 14156 } 14157 b := dAtA[iNdEx] 14158 iNdEx++ 14159 stringLen |= uint64(b&0x7F) << shift 14160 if b < 0x80 { 14161 break 14162 } 14163 } 14164 intStringLen := int(stringLen) 14165 if intStringLen < 0 { 14166 return ErrInvalidLengthDmworker 14167 } 14168 postIndex := iNdEx + intStringLen 14169 if postIndex < 0 { 14170 return ErrInvalidLengthDmworker 14171 } 14172 if postIndex > l { 14173 return io.ErrUnexpectedEOF 14174 } 14175 m.DstTable = string(dAtA[iNdEx:postIndex]) 14176 iNdEx = postIndex 14177 case 4: 14178 if wireType != 0 { 14179 return fmt.Errorf("proto: wrong wireType = %d for field Stage", wireType) 14180 } 14181 m.Stage = 0 14182 for shift := uint(0); ; shift += 7 { 14183 if shift >= 64 { 14184 return ErrIntOverflowDmworker 14185 } 14186 if iNdEx >= l { 14187 return io.ErrUnexpectedEOF 14188 } 14189 b := dAtA[iNdEx] 14190 iNdEx++ 14191 m.Stage |= Stage(b&0x7F) << shift 14192 if b < 0x80 { 14193 break 14194 } 14195 } 14196 case 5: 14197 if wireType != 2 { 14198 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 14199 } 14200 var stringLen uint64 14201 for shift := uint(0); ; shift += 7 { 14202 if shift >= 64 { 14203 return ErrIntOverflowDmworker 14204 } 14205 if iNdEx >= l { 14206 return io.ErrUnexpectedEOF 14207 } 14208 b := dAtA[iNdEx] 14209 iNdEx++ 14210 stringLen |= uint64(b&0x7F) << shift 14211 if b < 0x80 { 14212 break 14213 } 14214 } 14215 intStringLen := int(stringLen) 14216 if intStringLen < 0 { 14217 return ErrInvalidLengthDmworker 14218 } 14219 postIndex := iNdEx + intStringLen 14220 if postIndex < 0 { 14221 return ErrInvalidLengthDmworker 14222 } 14223 if postIndex > l { 14224 return io.ErrUnexpectedEOF 14225 } 14226 m.Message = string(dAtA[iNdEx:postIndex]) 14227 iNdEx = postIndex 14228 default: 14229 iNdEx = preIndex 14230 skippy, err := skipDmworker(dAtA[iNdEx:]) 14231 if err != nil { 14232 return err 14233 } 14234 if (skippy < 0) || (iNdEx+skippy) < 0 { 14235 return ErrInvalidLengthDmworker 14236 } 14237 if (iNdEx + skippy) > l { 14238 return io.ErrUnexpectedEOF 14239 } 14240 iNdEx += skippy 14241 } 14242 } 14243 14244 if iNdEx > l { 14245 return io.ErrUnexpectedEOF 14246 } 14247 return nil 14248 } 14249 func (m *GetValidationStatusResponse) Unmarshal(dAtA []byte) error { 14250 l := len(dAtA) 14251 iNdEx := 0 14252 for iNdEx < l { 14253 preIndex := iNdEx 14254 var wire uint64 14255 for shift := uint(0); ; shift += 7 { 14256 if shift >= 64 { 14257 return ErrIntOverflowDmworker 14258 } 14259 if iNdEx >= l { 14260 return io.ErrUnexpectedEOF 14261 } 14262 b := dAtA[iNdEx] 14263 iNdEx++ 14264 wire |= uint64(b&0x7F) << shift 14265 if b < 0x80 { 14266 break 14267 } 14268 } 14269 fieldNum := int32(wire >> 3) 14270 wireType := int(wire & 0x7) 14271 if wireType == 4 { 14272 return fmt.Errorf("proto: GetValidationStatusResponse: wiretype end group for non-group") 14273 } 14274 if fieldNum <= 0 { 14275 return fmt.Errorf("proto: GetValidationStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) 14276 } 14277 switch fieldNum { 14278 case 1: 14279 if wireType != 0 { 14280 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 14281 } 14282 var v int 14283 for shift := uint(0); ; shift += 7 { 14284 if shift >= 64 { 14285 return ErrIntOverflowDmworker 14286 } 14287 if iNdEx >= l { 14288 return io.ErrUnexpectedEOF 14289 } 14290 b := dAtA[iNdEx] 14291 iNdEx++ 14292 v |= int(b&0x7F) << shift 14293 if b < 0x80 { 14294 break 14295 } 14296 } 14297 m.Result = bool(v != 0) 14298 case 2: 14299 if wireType != 2 { 14300 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 14301 } 14302 var stringLen uint64 14303 for shift := uint(0); ; shift += 7 { 14304 if shift >= 64 { 14305 return ErrIntOverflowDmworker 14306 } 14307 if iNdEx >= l { 14308 return io.ErrUnexpectedEOF 14309 } 14310 b := dAtA[iNdEx] 14311 iNdEx++ 14312 stringLen |= uint64(b&0x7F) << shift 14313 if b < 0x80 { 14314 break 14315 } 14316 } 14317 intStringLen := int(stringLen) 14318 if intStringLen < 0 { 14319 return ErrInvalidLengthDmworker 14320 } 14321 postIndex := iNdEx + intStringLen 14322 if postIndex < 0 { 14323 return ErrInvalidLengthDmworker 14324 } 14325 if postIndex > l { 14326 return io.ErrUnexpectedEOF 14327 } 14328 m.Msg = string(dAtA[iNdEx:postIndex]) 14329 iNdEx = postIndex 14330 case 3: 14331 if wireType != 2 { 14332 return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) 14333 } 14334 var msglen int 14335 for shift := uint(0); ; shift += 7 { 14336 if shift >= 64 { 14337 return ErrIntOverflowDmworker 14338 } 14339 if iNdEx >= l { 14340 return io.ErrUnexpectedEOF 14341 } 14342 b := dAtA[iNdEx] 14343 iNdEx++ 14344 msglen |= int(b&0x7F) << shift 14345 if b < 0x80 { 14346 break 14347 } 14348 } 14349 if msglen < 0 { 14350 return ErrInvalidLengthDmworker 14351 } 14352 postIndex := iNdEx + msglen 14353 if postIndex < 0 { 14354 return ErrInvalidLengthDmworker 14355 } 14356 if postIndex > l { 14357 return io.ErrUnexpectedEOF 14358 } 14359 m.Validators = append(m.Validators, &ValidationStatus{}) 14360 if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14361 return err 14362 } 14363 iNdEx = postIndex 14364 case 4: 14365 if wireType != 2 { 14366 return fmt.Errorf("proto: wrong wireType = %d for field TableStatuses", wireType) 14367 } 14368 var msglen int 14369 for shift := uint(0); ; shift += 7 { 14370 if shift >= 64 { 14371 return ErrIntOverflowDmworker 14372 } 14373 if iNdEx >= l { 14374 return io.ErrUnexpectedEOF 14375 } 14376 b := dAtA[iNdEx] 14377 iNdEx++ 14378 msglen |= int(b&0x7F) << shift 14379 if b < 0x80 { 14380 break 14381 } 14382 } 14383 if msglen < 0 { 14384 return ErrInvalidLengthDmworker 14385 } 14386 postIndex := iNdEx + msglen 14387 if postIndex < 0 { 14388 return ErrInvalidLengthDmworker 14389 } 14390 if postIndex > l { 14391 return io.ErrUnexpectedEOF 14392 } 14393 m.TableStatuses = append(m.TableStatuses, &ValidationTableStatus{}) 14394 if err := m.TableStatuses[len(m.TableStatuses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14395 return err 14396 } 14397 iNdEx = postIndex 14398 default: 14399 iNdEx = preIndex 14400 skippy, err := skipDmworker(dAtA[iNdEx:]) 14401 if err != nil { 14402 return err 14403 } 14404 if (skippy < 0) || (iNdEx+skippy) < 0 { 14405 return ErrInvalidLengthDmworker 14406 } 14407 if (iNdEx + skippy) > l { 14408 return io.ErrUnexpectedEOF 14409 } 14410 iNdEx += skippy 14411 } 14412 } 14413 14414 if iNdEx > l { 14415 return io.ErrUnexpectedEOF 14416 } 14417 return nil 14418 } 14419 func (m *GetValidationErrorRequest) Unmarshal(dAtA []byte) error { 14420 l := len(dAtA) 14421 iNdEx := 0 14422 for iNdEx < l { 14423 preIndex := iNdEx 14424 var wire uint64 14425 for shift := uint(0); ; shift += 7 { 14426 if shift >= 64 { 14427 return ErrIntOverflowDmworker 14428 } 14429 if iNdEx >= l { 14430 return io.ErrUnexpectedEOF 14431 } 14432 b := dAtA[iNdEx] 14433 iNdEx++ 14434 wire |= uint64(b&0x7F) << shift 14435 if b < 0x80 { 14436 break 14437 } 14438 } 14439 fieldNum := int32(wire >> 3) 14440 wireType := int(wire & 0x7) 14441 if wireType == 4 { 14442 return fmt.Errorf("proto: GetValidationErrorRequest: wiretype end group for non-group") 14443 } 14444 if fieldNum <= 0 { 14445 return fmt.Errorf("proto: GetValidationErrorRequest: illegal tag %d (wire type %d)", fieldNum, wire) 14446 } 14447 switch fieldNum { 14448 case 1: 14449 if wireType != 0 { 14450 return fmt.Errorf("proto: wrong wireType = %d for field ErrState", wireType) 14451 } 14452 m.ErrState = 0 14453 for shift := uint(0); ; shift += 7 { 14454 if shift >= 64 { 14455 return ErrIntOverflowDmworker 14456 } 14457 if iNdEx >= l { 14458 return io.ErrUnexpectedEOF 14459 } 14460 b := dAtA[iNdEx] 14461 iNdEx++ 14462 m.ErrState |= ValidateErrorState(b&0x7F) << shift 14463 if b < 0x80 { 14464 break 14465 } 14466 } 14467 case 2: 14468 if wireType != 2 { 14469 return fmt.Errorf("proto: wrong wireType = %d for field TaskName", wireType) 14470 } 14471 var stringLen uint64 14472 for shift := uint(0); ; shift += 7 { 14473 if shift >= 64 { 14474 return ErrIntOverflowDmworker 14475 } 14476 if iNdEx >= l { 14477 return io.ErrUnexpectedEOF 14478 } 14479 b := dAtA[iNdEx] 14480 iNdEx++ 14481 stringLen |= uint64(b&0x7F) << shift 14482 if b < 0x80 { 14483 break 14484 } 14485 } 14486 intStringLen := int(stringLen) 14487 if intStringLen < 0 { 14488 return ErrInvalidLengthDmworker 14489 } 14490 postIndex := iNdEx + intStringLen 14491 if postIndex < 0 { 14492 return ErrInvalidLengthDmworker 14493 } 14494 if postIndex > l { 14495 return io.ErrUnexpectedEOF 14496 } 14497 m.TaskName = string(dAtA[iNdEx:postIndex]) 14498 iNdEx = postIndex 14499 default: 14500 iNdEx = preIndex 14501 skippy, err := skipDmworker(dAtA[iNdEx:]) 14502 if err != nil { 14503 return err 14504 } 14505 if (skippy < 0) || (iNdEx+skippy) < 0 { 14506 return ErrInvalidLengthDmworker 14507 } 14508 if (iNdEx + skippy) > l { 14509 return io.ErrUnexpectedEOF 14510 } 14511 iNdEx += skippy 14512 } 14513 } 14514 14515 if iNdEx > l { 14516 return io.ErrUnexpectedEOF 14517 } 14518 return nil 14519 } 14520 func (m *ValidationError) Unmarshal(dAtA []byte) error { 14521 l := len(dAtA) 14522 iNdEx := 0 14523 for iNdEx < l { 14524 preIndex := iNdEx 14525 var wire uint64 14526 for shift := uint(0); ; shift += 7 { 14527 if shift >= 64 { 14528 return ErrIntOverflowDmworker 14529 } 14530 if iNdEx >= l { 14531 return io.ErrUnexpectedEOF 14532 } 14533 b := dAtA[iNdEx] 14534 iNdEx++ 14535 wire |= uint64(b&0x7F) << shift 14536 if b < 0x80 { 14537 break 14538 } 14539 } 14540 fieldNum := int32(wire >> 3) 14541 wireType := int(wire & 0x7) 14542 if wireType == 4 { 14543 return fmt.Errorf("proto: ValidationError: wiretype end group for non-group") 14544 } 14545 if fieldNum <= 0 { 14546 return fmt.Errorf("proto: ValidationError: illegal tag %d (wire type %d)", fieldNum, wire) 14547 } 14548 switch fieldNum { 14549 case 1: 14550 if wireType != 2 { 14551 return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) 14552 } 14553 var stringLen uint64 14554 for shift := uint(0); ; shift += 7 { 14555 if shift >= 64 { 14556 return ErrIntOverflowDmworker 14557 } 14558 if iNdEx >= l { 14559 return io.ErrUnexpectedEOF 14560 } 14561 b := dAtA[iNdEx] 14562 iNdEx++ 14563 stringLen |= uint64(b&0x7F) << shift 14564 if b < 0x80 { 14565 break 14566 } 14567 } 14568 intStringLen := int(stringLen) 14569 if intStringLen < 0 { 14570 return ErrInvalidLengthDmworker 14571 } 14572 postIndex := iNdEx + intStringLen 14573 if postIndex < 0 { 14574 return ErrInvalidLengthDmworker 14575 } 14576 if postIndex > l { 14577 return io.ErrUnexpectedEOF 14578 } 14579 m.Id = string(dAtA[iNdEx:postIndex]) 14580 iNdEx = postIndex 14581 case 2: 14582 if wireType != 2 { 14583 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) 14584 } 14585 var stringLen uint64 14586 for shift := uint(0); ; shift += 7 { 14587 if shift >= 64 { 14588 return ErrIntOverflowDmworker 14589 } 14590 if iNdEx >= l { 14591 return io.ErrUnexpectedEOF 14592 } 14593 b := dAtA[iNdEx] 14594 iNdEx++ 14595 stringLen |= uint64(b&0x7F) << shift 14596 if b < 0x80 { 14597 break 14598 } 14599 } 14600 intStringLen := int(stringLen) 14601 if intStringLen < 0 { 14602 return ErrInvalidLengthDmworker 14603 } 14604 postIndex := iNdEx + intStringLen 14605 if postIndex < 0 { 14606 return ErrInvalidLengthDmworker 14607 } 14608 if postIndex > l { 14609 return io.ErrUnexpectedEOF 14610 } 14611 m.Source = string(dAtA[iNdEx:postIndex]) 14612 iNdEx = postIndex 14613 case 3: 14614 if wireType != 2 { 14615 return fmt.Errorf("proto: wrong wireType = %d for field SrcTable", wireType) 14616 } 14617 var stringLen uint64 14618 for shift := uint(0); ; shift += 7 { 14619 if shift >= 64 { 14620 return ErrIntOverflowDmworker 14621 } 14622 if iNdEx >= l { 14623 return io.ErrUnexpectedEOF 14624 } 14625 b := dAtA[iNdEx] 14626 iNdEx++ 14627 stringLen |= uint64(b&0x7F) << shift 14628 if b < 0x80 { 14629 break 14630 } 14631 } 14632 intStringLen := int(stringLen) 14633 if intStringLen < 0 { 14634 return ErrInvalidLengthDmworker 14635 } 14636 postIndex := iNdEx + intStringLen 14637 if postIndex < 0 { 14638 return ErrInvalidLengthDmworker 14639 } 14640 if postIndex > l { 14641 return io.ErrUnexpectedEOF 14642 } 14643 m.SrcTable = string(dAtA[iNdEx:postIndex]) 14644 iNdEx = postIndex 14645 case 4: 14646 if wireType != 2 { 14647 return fmt.Errorf("proto: wrong wireType = %d for field SrcData", wireType) 14648 } 14649 var stringLen uint64 14650 for shift := uint(0); ; shift += 7 { 14651 if shift >= 64 { 14652 return ErrIntOverflowDmworker 14653 } 14654 if iNdEx >= l { 14655 return io.ErrUnexpectedEOF 14656 } 14657 b := dAtA[iNdEx] 14658 iNdEx++ 14659 stringLen |= uint64(b&0x7F) << shift 14660 if b < 0x80 { 14661 break 14662 } 14663 } 14664 intStringLen := int(stringLen) 14665 if intStringLen < 0 { 14666 return ErrInvalidLengthDmworker 14667 } 14668 postIndex := iNdEx + intStringLen 14669 if postIndex < 0 { 14670 return ErrInvalidLengthDmworker 14671 } 14672 if postIndex > l { 14673 return io.ErrUnexpectedEOF 14674 } 14675 m.SrcData = string(dAtA[iNdEx:postIndex]) 14676 iNdEx = postIndex 14677 case 5: 14678 if wireType != 2 { 14679 return fmt.Errorf("proto: wrong wireType = %d for field DstTable", wireType) 14680 } 14681 var stringLen uint64 14682 for shift := uint(0); ; shift += 7 { 14683 if shift >= 64 { 14684 return ErrIntOverflowDmworker 14685 } 14686 if iNdEx >= l { 14687 return io.ErrUnexpectedEOF 14688 } 14689 b := dAtA[iNdEx] 14690 iNdEx++ 14691 stringLen |= uint64(b&0x7F) << shift 14692 if b < 0x80 { 14693 break 14694 } 14695 } 14696 intStringLen := int(stringLen) 14697 if intStringLen < 0 { 14698 return ErrInvalidLengthDmworker 14699 } 14700 postIndex := iNdEx + intStringLen 14701 if postIndex < 0 { 14702 return ErrInvalidLengthDmworker 14703 } 14704 if postIndex > l { 14705 return io.ErrUnexpectedEOF 14706 } 14707 m.DstTable = string(dAtA[iNdEx:postIndex]) 14708 iNdEx = postIndex 14709 case 6: 14710 if wireType != 2 { 14711 return fmt.Errorf("proto: wrong wireType = %d for field DstData", wireType) 14712 } 14713 var stringLen uint64 14714 for shift := uint(0); ; shift += 7 { 14715 if shift >= 64 { 14716 return ErrIntOverflowDmworker 14717 } 14718 if iNdEx >= l { 14719 return io.ErrUnexpectedEOF 14720 } 14721 b := dAtA[iNdEx] 14722 iNdEx++ 14723 stringLen |= uint64(b&0x7F) << shift 14724 if b < 0x80 { 14725 break 14726 } 14727 } 14728 intStringLen := int(stringLen) 14729 if intStringLen < 0 { 14730 return ErrInvalidLengthDmworker 14731 } 14732 postIndex := iNdEx + intStringLen 14733 if postIndex < 0 { 14734 return ErrInvalidLengthDmworker 14735 } 14736 if postIndex > l { 14737 return io.ErrUnexpectedEOF 14738 } 14739 m.DstData = string(dAtA[iNdEx:postIndex]) 14740 iNdEx = postIndex 14741 case 7: 14742 if wireType != 2 { 14743 return fmt.Errorf("proto: wrong wireType = %d for field ErrorType", wireType) 14744 } 14745 var stringLen uint64 14746 for shift := uint(0); ; shift += 7 { 14747 if shift >= 64 { 14748 return ErrIntOverflowDmworker 14749 } 14750 if iNdEx >= l { 14751 return io.ErrUnexpectedEOF 14752 } 14753 b := dAtA[iNdEx] 14754 iNdEx++ 14755 stringLen |= uint64(b&0x7F) << shift 14756 if b < 0x80 { 14757 break 14758 } 14759 } 14760 intStringLen := int(stringLen) 14761 if intStringLen < 0 { 14762 return ErrInvalidLengthDmworker 14763 } 14764 postIndex := iNdEx + intStringLen 14765 if postIndex < 0 { 14766 return ErrInvalidLengthDmworker 14767 } 14768 if postIndex > l { 14769 return io.ErrUnexpectedEOF 14770 } 14771 m.ErrorType = string(dAtA[iNdEx:postIndex]) 14772 iNdEx = postIndex 14773 case 8: 14774 if wireType != 0 { 14775 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 14776 } 14777 m.Status = 0 14778 for shift := uint(0); ; shift += 7 { 14779 if shift >= 64 { 14780 return ErrIntOverflowDmworker 14781 } 14782 if iNdEx >= l { 14783 return io.ErrUnexpectedEOF 14784 } 14785 b := dAtA[iNdEx] 14786 iNdEx++ 14787 m.Status |= ValidateErrorState(b&0x7F) << shift 14788 if b < 0x80 { 14789 break 14790 } 14791 } 14792 case 9: 14793 if wireType != 2 { 14794 return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) 14795 } 14796 var stringLen uint64 14797 for shift := uint(0); ; shift += 7 { 14798 if shift >= 64 { 14799 return ErrIntOverflowDmworker 14800 } 14801 if iNdEx >= l { 14802 return io.ErrUnexpectedEOF 14803 } 14804 b := dAtA[iNdEx] 14805 iNdEx++ 14806 stringLen |= uint64(b&0x7F) << shift 14807 if b < 0x80 { 14808 break 14809 } 14810 } 14811 intStringLen := int(stringLen) 14812 if intStringLen < 0 { 14813 return ErrInvalidLengthDmworker 14814 } 14815 postIndex := iNdEx + intStringLen 14816 if postIndex < 0 { 14817 return ErrInvalidLengthDmworker 14818 } 14819 if postIndex > l { 14820 return io.ErrUnexpectedEOF 14821 } 14822 m.Time = string(dAtA[iNdEx:postIndex]) 14823 iNdEx = postIndex 14824 case 10: 14825 if wireType != 2 { 14826 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 14827 } 14828 var stringLen uint64 14829 for shift := uint(0); ; shift += 7 { 14830 if shift >= 64 { 14831 return ErrIntOverflowDmworker 14832 } 14833 if iNdEx >= l { 14834 return io.ErrUnexpectedEOF 14835 } 14836 b := dAtA[iNdEx] 14837 iNdEx++ 14838 stringLen |= uint64(b&0x7F) << shift 14839 if b < 0x80 { 14840 break 14841 } 14842 } 14843 intStringLen := int(stringLen) 14844 if intStringLen < 0 { 14845 return ErrInvalidLengthDmworker 14846 } 14847 postIndex := iNdEx + intStringLen 14848 if postIndex < 0 { 14849 return ErrInvalidLengthDmworker 14850 } 14851 if postIndex > l { 14852 return io.ErrUnexpectedEOF 14853 } 14854 m.Message = string(dAtA[iNdEx:postIndex]) 14855 iNdEx = postIndex 14856 default: 14857 iNdEx = preIndex 14858 skippy, err := skipDmworker(dAtA[iNdEx:]) 14859 if err != nil { 14860 return err 14861 } 14862 if (skippy < 0) || (iNdEx+skippy) < 0 { 14863 return ErrInvalidLengthDmworker 14864 } 14865 if (iNdEx + skippy) > l { 14866 return io.ErrUnexpectedEOF 14867 } 14868 iNdEx += skippy 14869 } 14870 } 14871 14872 if iNdEx > l { 14873 return io.ErrUnexpectedEOF 14874 } 14875 return nil 14876 } 14877 func (m *GetValidationErrorResponse) Unmarshal(dAtA []byte) error { 14878 l := len(dAtA) 14879 iNdEx := 0 14880 for iNdEx < l { 14881 preIndex := iNdEx 14882 var wire uint64 14883 for shift := uint(0); ; shift += 7 { 14884 if shift >= 64 { 14885 return ErrIntOverflowDmworker 14886 } 14887 if iNdEx >= l { 14888 return io.ErrUnexpectedEOF 14889 } 14890 b := dAtA[iNdEx] 14891 iNdEx++ 14892 wire |= uint64(b&0x7F) << shift 14893 if b < 0x80 { 14894 break 14895 } 14896 } 14897 fieldNum := int32(wire >> 3) 14898 wireType := int(wire & 0x7) 14899 if wireType == 4 { 14900 return fmt.Errorf("proto: GetValidationErrorResponse: wiretype end group for non-group") 14901 } 14902 if fieldNum <= 0 { 14903 return fmt.Errorf("proto: GetValidationErrorResponse: illegal tag %d (wire type %d)", fieldNum, wire) 14904 } 14905 switch fieldNum { 14906 case 1: 14907 if wireType != 0 { 14908 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 14909 } 14910 var v int 14911 for shift := uint(0); ; shift += 7 { 14912 if shift >= 64 { 14913 return ErrIntOverflowDmworker 14914 } 14915 if iNdEx >= l { 14916 return io.ErrUnexpectedEOF 14917 } 14918 b := dAtA[iNdEx] 14919 iNdEx++ 14920 v |= int(b&0x7F) << shift 14921 if b < 0x80 { 14922 break 14923 } 14924 } 14925 m.Result = bool(v != 0) 14926 case 2: 14927 if wireType != 2 { 14928 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 14929 } 14930 var stringLen uint64 14931 for shift := uint(0); ; shift += 7 { 14932 if shift >= 64 { 14933 return ErrIntOverflowDmworker 14934 } 14935 if iNdEx >= l { 14936 return io.ErrUnexpectedEOF 14937 } 14938 b := dAtA[iNdEx] 14939 iNdEx++ 14940 stringLen |= uint64(b&0x7F) << shift 14941 if b < 0x80 { 14942 break 14943 } 14944 } 14945 intStringLen := int(stringLen) 14946 if intStringLen < 0 { 14947 return ErrInvalidLengthDmworker 14948 } 14949 postIndex := iNdEx + intStringLen 14950 if postIndex < 0 { 14951 return ErrInvalidLengthDmworker 14952 } 14953 if postIndex > l { 14954 return io.ErrUnexpectedEOF 14955 } 14956 m.Msg = string(dAtA[iNdEx:postIndex]) 14957 iNdEx = postIndex 14958 case 3: 14959 if wireType != 2 { 14960 return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) 14961 } 14962 var msglen int 14963 for shift := uint(0); ; shift += 7 { 14964 if shift >= 64 { 14965 return ErrIntOverflowDmworker 14966 } 14967 if iNdEx >= l { 14968 return io.ErrUnexpectedEOF 14969 } 14970 b := dAtA[iNdEx] 14971 iNdEx++ 14972 msglen |= int(b&0x7F) << shift 14973 if b < 0x80 { 14974 break 14975 } 14976 } 14977 if msglen < 0 { 14978 return ErrInvalidLengthDmworker 14979 } 14980 postIndex := iNdEx + msglen 14981 if postIndex < 0 { 14982 return ErrInvalidLengthDmworker 14983 } 14984 if postIndex > l { 14985 return io.ErrUnexpectedEOF 14986 } 14987 m.Error = append(m.Error, &ValidationError{}) 14988 if err := m.Error[len(m.Error)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14989 return err 14990 } 14991 iNdEx = postIndex 14992 default: 14993 iNdEx = preIndex 14994 skippy, err := skipDmworker(dAtA[iNdEx:]) 14995 if err != nil { 14996 return err 14997 } 14998 if (skippy < 0) || (iNdEx+skippy) < 0 { 14999 return ErrInvalidLengthDmworker 15000 } 15001 if (iNdEx + skippy) > l { 15002 return io.ErrUnexpectedEOF 15003 } 15004 iNdEx += skippy 15005 } 15006 } 15007 15008 if iNdEx > l { 15009 return io.ErrUnexpectedEOF 15010 } 15011 return nil 15012 } 15013 func (m *OperateValidationErrorRequest) Unmarshal(dAtA []byte) error { 15014 l := len(dAtA) 15015 iNdEx := 0 15016 for iNdEx < l { 15017 preIndex := iNdEx 15018 var wire uint64 15019 for shift := uint(0); ; shift += 7 { 15020 if shift >= 64 { 15021 return ErrIntOverflowDmworker 15022 } 15023 if iNdEx >= l { 15024 return io.ErrUnexpectedEOF 15025 } 15026 b := dAtA[iNdEx] 15027 iNdEx++ 15028 wire |= uint64(b&0x7F) << shift 15029 if b < 0x80 { 15030 break 15031 } 15032 } 15033 fieldNum := int32(wire >> 3) 15034 wireType := int(wire & 0x7) 15035 if wireType == 4 { 15036 return fmt.Errorf("proto: OperateValidationErrorRequest: wiretype end group for non-group") 15037 } 15038 if fieldNum <= 0 { 15039 return fmt.Errorf("proto: OperateValidationErrorRequest: illegal tag %d (wire type %d)", fieldNum, wire) 15040 } 15041 switch fieldNum { 15042 case 1: 15043 if wireType != 0 { 15044 return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType) 15045 } 15046 m.Op = 0 15047 for shift := uint(0); ; shift += 7 { 15048 if shift >= 64 { 15049 return ErrIntOverflowDmworker 15050 } 15051 if iNdEx >= l { 15052 return io.ErrUnexpectedEOF 15053 } 15054 b := dAtA[iNdEx] 15055 iNdEx++ 15056 m.Op |= ValidationErrOp(b&0x7F) << shift 15057 if b < 0x80 { 15058 break 15059 } 15060 } 15061 case 2: 15062 if wireType != 0 { 15063 return fmt.Errorf("proto: wrong wireType = %d for field IsAllError", wireType) 15064 } 15065 var v int 15066 for shift := uint(0); ; shift += 7 { 15067 if shift >= 64 { 15068 return ErrIntOverflowDmworker 15069 } 15070 if iNdEx >= l { 15071 return io.ErrUnexpectedEOF 15072 } 15073 b := dAtA[iNdEx] 15074 iNdEx++ 15075 v |= int(b&0x7F) << shift 15076 if b < 0x80 { 15077 break 15078 } 15079 } 15080 m.IsAllError = bool(v != 0) 15081 case 3: 15082 if wireType != 2 { 15083 return fmt.Errorf("proto: wrong wireType = %d for field TaskName", wireType) 15084 } 15085 var stringLen uint64 15086 for shift := uint(0); ; shift += 7 { 15087 if shift >= 64 { 15088 return ErrIntOverflowDmworker 15089 } 15090 if iNdEx >= l { 15091 return io.ErrUnexpectedEOF 15092 } 15093 b := dAtA[iNdEx] 15094 iNdEx++ 15095 stringLen |= uint64(b&0x7F) << shift 15096 if b < 0x80 { 15097 break 15098 } 15099 } 15100 intStringLen := int(stringLen) 15101 if intStringLen < 0 { 15102 return ErrInvalidLengthDmworker 15103 } 15104 postIndex := iNdEx + intStringLen 15105 if postIndex < 0 { 15106 return ErrInvalidLengthDmworker 15107 } 15108 if postIndex > l { 15109 return io.ErrUnexpectedEOF 15110 } 15111 m.TaskName = string(dAtA[iNdEx:postIndex]) 15112 iNdEx = postIndex 15113 case 4: 15114 if wireType != 0 { 15115 return fmt.Errorf("proto: wrong wireType = %d for field ErrId", wireType) 15116 } 15117 m.ErrId = 0 15118 for shift := uint(0); ; shift += 7 { 15119 if shift >= 64 { 15120 return ErrIntOverflowDmworker 15121 } 15122 if iNdEx >= l { 15123 return io.ErrUnexpectedEOF 15124 } 15125 b := dAtA[iNdEx] 15126 iNdEx++ 15127 m.ErrId |= uint64(b&0x7F) << shift 15128 if b < 0x80 { 15129 break 15130 } 15131 } 15132 default: 15133 iNdEx = preIndex 15134 skippy, err := skipDmworker(dAtA[iNdEx:]) 15135 if err != nil { 15136 return err 15137 } 15138 if (skippy < 0) || (iNdEx+skippy) < 0 { 15139 return ErrInvalidLengthDmworker 15140 } 15141 if (iNdEx + skippy) > l { 15142 return io.ErrUnexpectedEOF 15143 } 15144 iNdEx += skippy 15145 } 15146 } 15147 15148 if iNdEx > l { 15149 return io.ErrUnexpectedEOF 15150 } 15151 return nil 15152 } 15153 func (m *OperateValidationErrorResponse) Unmarshal(dAtA []byte) error { 15154 l := len(dAtA) 15155 iNdEx := 0 15156 for iNdEx < l { 15157 preIndex := iNdEx 15158 var wire uint64 15159 for shift := uint(0); ; shift += 7 { 15160 if shift >= 64 { 15161 return ErrIntOverflowDmworker 15162 } 15163 if iNdEx >= l { 15164 return io.ErrUnexpectedEOF 15165 } 15166 b := dAtA[iNdEx] 15167 iNdEx++ 15168 wire |= uint64(b&0x7F) << shift 15169 if b < 0x80 { 15170 break 15171 } 15172 } 15173 fieldNum := int32(wire >> 3) 15174 wireType := int(wire & 0x7) 15175 if wireType == 4 { 15176 return fmt.Errorf("proto: OperateValidationErrorResponse: wiretype end group for non-group") 15177 } 15178 if fieldNum <= 0 { 15179 return fmt.Errorf("proto: OperateValidationErrorResponse: illegal tag %d (wire type %d)", fieldNum, wire) 15180 } 15181 switch fieldNum { 15182 case 1: 15183 if wireType != 0 { 15184 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 15185 } 15186 var v int 15187 for shift := uint(0); ; shift += 7 { 15188 if shift >= 64 { 15189 return ErrIntOverflowDmworker 15190 } 15191 if iNdEx >= l { 15192 return io.ErrUnexpectedEOF 15193 } 15194 b := dAtA[iNdEx] 15195 iNdEx++ 15196 v |= int(b&0x7F) << shift 15197 if b < 0x80 { 15198 break 15199 } 15200 } 15201 m.Result = bool(v != 0) 15202 case 2: 15203 if wireType != 2 { 15204 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 15205 } 15206 var stringLen uint64 15207 for shift := uint(0); ; shift += 7 { 15208 if shift >= 64 { 15209 return ErrIntOverflowDmworker 15210 } 15211 if iNdEx >= l { 15212 return io.ErrUnexpectedEOF 15213 } 15214 b := dAtA[iNdEx] 15215 iNdEx++ 15216 stringLen |= uint64(b&0x7F) << shift 15217 if b < 0x80 { 15218 break 15219 } 15220 } 15221 intStringLen := int(stringLen) 15222 if intStringLen < 0 { 15223 return ErrInvalidLengthDmworker 15224 } 15225 postIndex := iNdEx + intStringLen 15226 if postIndex < 0 { 15227 return ErrInvalidLengthDmworker 15228 } 15229 if postIndex > l { 15230 return io.ErrUnexpectedEOF 15231 } 15232 m.Msg = string(dAtA[iNdEx:postIndex]) 15233 iNdEx = postIndex 15234 default: 15235 iNdEx = preIndex 15236 skippy, err := skipDmworker(dAtA[iNdEx:]) 15237 if err != nil { 15238 return err 15239 } 15240 if (skippy < 0) || (iNdEx+skippy) < 0 { 15241 return ErrInvalidLengthDmworker 15242 } 15243 if (iNdEx + skippy) > l { 15244 return io.ErrUnexpectedEOF 15245 } 15246 iNdEx += skippy 15247 } 15248 } 15249 15250 if iNdEx > l { 15251 return io.ErrUnexpectedEOF 15252 } 15253 return nil 15254 } 15255 func (m *UpdateValidationWorkerRequest) Unmarshal(dAtA []byte) error { 15256 l := len(dAtA) 15257 iNdEx := 0 15258 for iNdEx < l { 15259 preIndex := iNdEx 15260 var wire uint64 15261 for shift := uint(0); ; shift += 7 { 15262 if shift >= 64 { 15263 return ErrIntOverflowDmworker 15264 } 15265 if iNdEx >= l { 15266 return io.ErrUnexpectedEOF 15267 } 15268 b := dAtA[iNdEx] 15269 iNdEx++ 15270 wire |= uint64(b&0x7F) << shift 15271 if b < 0x80 { 15272 break 15273 } 15274 } 15275 fieldNum := int32(wire >> 3) 15276 wireType := int(wire & 0x7) 15277 if wireType == 4 { 15278 return fmt.Errorf("proto: UpdateValidationWorkerRequest: wiretype end group for non-group") 15279 } 15280 if fieldNum <= 0 { 15281 return fmt.Errorf("proto: UpdateValidationWorkerRequest: illegal tag %d (wire type %d)", fieldNum, wire) 15282 } 15283 switch fieldNum { 15284 case 1: 15285 if wireType != 2 { 15286 return fmt.Errorf("proto: wrong wireType = %d for field TaskName", wireType) 15287 } 15288 var stringLen uint64 15289 for shift := uint(0); ; shift += 7 { 15290 if shift >= 64 { 15291 return ErrIntOverflowDmworker 15292 } 15293 if iNdEx >= l { 15294 return io.ErrUnexpectedEOF 15295 } 15296 b := dAtA[iNdEx] 15297 iNdEx++ 15298 stringLen |= uint64(b&0x7F) << shift 15299 if b < 0x80 { 15300 break 15301 } 15302 } 15303 intStringLen := int(stringLen) 15304 if intStringLen < 0 { 15305 return ErrInvalidLengthDmworker 15306 } 15307 postIndex := iNdEx + intStringLen 15308 if postIndex < 0 { 15309 return ErrInvalidLengthDmworker 15310 } 15311 if postIndex > l { 15312 return io.ErrUnexpectedEOF 15313 } 15314 m.TaskName = string(dAtA[iNdEx:postIndex]) 15315 iNdEx = postIndex 15316 case 2: 15317 if wireType != 2 { 15318 return fmt.Errorf("proto: wrong wireType = %d for field BinlogPos", wireType) 15319 } 15320 var stringLen uint64 15321 for shift := uint(0); ; shift += 7 { 15322 if shift >= 64 { 15323 return ErrIntOverflowDmworker 15324 } 15325 if iNdEx >= l { 15326 return io.ErrUnexpectedEOF 15327 } 15328 b := dAtA[iNdEx] 15329 iNdEx++ 15330 stringLen |= uint64(b&0x7F) << shift 15331 if b < 0x80 { 15332 break 15333 } 15334 } 15335 intStringLen := int(stringLen) 15336 if intStringLen < 0 { 15337 return ErrInvalidLengthDmworker 15338 } 15339 postIndex := iNdEx + intStringLen 15340 if postIndex < 0 { 15341 return ErrInvalidLengthDmworker 15342 } 15343 if postIndex > l { 15344 return io.ErrUnexpectedEOF 15345 } 15346 m.BinlogPos = string(dAtA[iNdEx:postIndex]) 15347 iNdEx = postIndex 15348 case 3: 15349 if wireType != 2 { 15350 return fmt.Errorf("proto: wrong wireType = %d for field BinlogGTID", wireType) 15351 } 15352 var stringLen uint64 15353 for shift := uint(0); ; shift += 7 { 15354 if shift >= 64 { 15355 return ErrIntOverflowDmworker 15356 } 15357 if iNdEx >= l { 15358 return io.ErrUnexpectedEOF 15359 } 15360 b := dAtA[iNdEx] 15361 iNdEx++ 15362 stringLen |= uint64(b&0x7F) << shift 15363 if b < 0x80 { 15364 break 15365 } 15366 } 15367 intStringLen := int(stringLen) 15368 if intStringLen < 0 { 15369 return ErrInvalidLengthDmworker 15370 } 15371 postIndex := iNdEx + intStringLen 15372 if postIndex < 0 { 15373 return ErrInvalidLengthDmworker 15374 } 15375 if postIndex > l { 15376 return io.ErrUnexpectedEOF 15377 } 15378 m.BinlogGTID = string(dAtA[iNdEx:postIndex]) 15379 iNdEx = postIndex 15380 default: 15381 iNdEx = preIndex 15382 skippy, err := skipDmworker(dAtA[iNdEx:]) 15383 if err != nil { 15384 return err 15385 } 15386 if (skippy < 0) || (iNdEx+skippy) < 0 { 15387 return ErrInvalidLengthDmworker 15388 } 15389 if (iNdEx + skippy) > l { 15390 return io.ErrUnexpectedEOF 15391 } 15392 iNdEx += skippy 15393 } 15394 } 15395 15396 if iNdEx > l { 15397 return io.ErrUnexpectedEOF 15398 } 15399 return nil 15400 } 15401 func skipDmworker(dAtA []byte) (n int, err error) { 15402 l := len(dAtA) 15403 iNdEx := 0 15404 depth := 0 15405 for iNdEx < l { 15406 var wire uint64 15407 for shift := uint(0); ; shift += 7 { 15408 if shift >= 64 { 15409 return 0, ErrIntOverflowDmworker 15410 } 15411 if iNdEx >= l { 15412 return 0, io.ErrUnexpectedEOF 15413 } 15414 b := dAtA[iNdEx] 15415 iNdEx++ 15416 wire |= (uint64(b) & 0x7F) << shift 15417 if b < 0x80 { 15418 break 15419 } 15420 } 15421 wireType := int(wire & 0x7) 15422 switch wireType { 15423 case 0: 15424 for shift := uint(0); ; shift += 7 { 15425 if shift >= 64 { 15426 return 0, ErrIntOverflowDmworker 15427 } 15428 if iNdEx >= l { 15429 return 0, io.ErrUnexpectedEOF 15430 } 15431 iNdEx++ 15432 if dAtA[iNdEx-1] < 0x80 { 15433 break 15434 } 15435 } 15436 case 1: 15437 iNdEx += 8 15438 case 2: 15439 var length int 15440 for shift := uint(0); ; shift += 7 { 15441 if shift >= 64 { 15442 return 0, ErrIntOverflowDmworker 15443 } 15444 if iNdEx >= l { 15445 return 0, io.ErrUnexpectedEOF 15446 } 15447 b := dAtA[iNdEx] 15448 iNdEx++ 15449 length |= (int(b) & 0x7F) << shift 15450 if b < 0x80 { 15451 break 15452 } 15453 } 15454 if length < 0 { 15455 return 0, ErrInvalidLengthDmworker 15456 } 15457 iNdEx += length 15458 case 3: 15459 depth++ 15460 case 4: 15461 if depth == 0 { 15462 return 0, ErrUnexpectedEndOfGroupDmworker 15463 } 15464 depth-- 15465 case 5: 15466 iNdEx += 4 15467 default: 15468 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 15469 } 15470 if iNdEx < 0 { 15471 return 0, ErrInvalidLengthDmworker 15472 } 15473 if depth == 0 { 15474 return iNdEx, nil 15475 } 15476 } 15477 return 0, io.ErrUnexpectedEOF 15478 } 15479 15480 var ( 15481 ErrInvalidLengthDmworker = fmt.Errorf("proto: negative length found during unmarshaling") 15482 ErrIntOverflowDmworker = fmt.Errorf("proto: integer overflow") 15483 ErrUnexpectedEndOfGroupDmworker = fmt.Errorf("proto: unexpected end of group") 15484 )