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