github.com/matrixorigin/matrixone@v1.2.0/pkg/pb/lock/lock.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: lock.proto 3 4 package lock 5 6 import ( 7 fmt "fmt" 8 io "io" 9 math "math" 10 math_bits "math/bits" 11 12 _ "github.com/gogo/protobuf/gogoproto" 13 proto "github.com/gogo/protobuf/proto" 14 timestamp "github.com/matrixorigin/matrixone/pkg/pb/timestamp" 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 22 // This is a compile-time assertion to ensure that this generated file 23 // is compatible with the proto package it is being compiled against. 24 // A compilation error at this line likely means your copy of the 25 // proto package needs to be updated. 26 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 27 28 // Granularity row granularity, single row or row range 29 type Granularity int32 30 31 const ( 32 Granularity_Row Granularity = 0 33 Granularity_Range Granularity = 1 34 ) 35 36 var Granularity_name = map[int32]string{ 37 0: "Row", 38 1: "Range", 39 } 40 41 var Granularity_value = map[string]int32{ 42 "Row": 0, 43 "Range": 1, 44 } 45 46 func (x Granularity) String() string { 47 return proto.EnumName(Granularity_name, int32(x)) 48 } 49 50 func (Granularity) EnumDescriptor() ([]byte, []int) { 51 return fileDescriptor_164ad2988c7acaf1, []int{0} 52 } 53 54 // LockMode lock mode 55 type LockMode int32 56 57 const ( 58 LockMode_Exclusive LockMode = 0 59 LockMode_Shared LockMode = 1 60 ) 61 62 var LockMode_name = map[int32]string{ 63 0: "Exclusive", 64 1: "Shared", 65 } 66 67 var LockMode_value = map[string]int32{ 68 "Exclusive": 0, 69 "Shared": 1, 70 } 71 72 func (x LockMode) String() string { 73 return proto.EnumName(LockMode_name, int32(x)) 74 } 75 76 func (LockMode) EnumDescriptor() ([]byte, []int) { 77 return fileDescriptor_164ad2988c7acaf1, []int{1} 78 } 79 80 // WaitPolicy wait policy 81 type WaitPolicy int32 82 83 const ( 84 WaitPolicy_Wait WaitPolicy = 0 85 WaitPolicy_FastFail WaitPolicy = 1 86 ) 87 88 var WaitPolicy_name = map[int32]string{ 89 0: "Wait", 90 1: "FastFail", 91 } 92 93 var WaitPolicy_value = map[string]int32{ 94 "Wait": 0, 95 "FastFail": 1, 96 } 97 98 func (x WaitPolicy) String() string { 99 return proto.EnumName(WaitPolicy_name, int32(x)) 100 } 101 102 func (WaitPolicy) EnumDescriptor() ([]byte, []int) { 103 return fileDescriptor_164ad2988c7acaf1, []int{2} 104 } 105 106 type Sharding int32 107 108 const ( 109 Sharding_None Sharding = 0 110 Sharding_ByRow Sharding = 1 111 ) 112 113 var Sharding_name = map[int32]string{ 114 0: "None", 115 1: "ByRow", 116 } 117 118 var Sharding_value = map[string]int32{ 119 "None": 0, 120 "ByRow": 1, 121 } 122 123 func (x Sharding) String() string { 124 return proto.EnumName(Sharding_name, int32(x)) 125 } 126 127 func (Sharding) EnumDescriptor() ([]byte, []int) { 128 return fileDescriptor_164ad2988c7acaf1, []int{3} 129 } 130 131 // Method lock table operations 132 type Method int32 133 134 const ( 135 // Lock lock rows on remote lock table 136 Method_Lock Method = 0 137 // Write unlock rows from remote lock table 138 Method_Unlock Method = 1 139 // GetTxnLock get lock data on a special lock 140 Method_GetTxnLock Method = 2 141 // GetWaitingList get waiting txns on a special lock 142 Method_GetWaitingList Method = 3 143 // KeepRemoteLock keep remote lock on remote lock service 144 Method_KeepRemoteLock Method = 4 145 // GetBind get or create lock table bind from lock table allocator 146 Method_GetBind Method = 5 147 // KeepLockTableBind keep the lock table bind on lock table allocator 148 Method_KeepLockTableBind Method = 6 149 // ForwardLock forward lock request to another service 150 Method_ForwardLock Method = 7 151 // ForwardUnlock forward unlock request to another service 152 Method_ForwardUnlock Method = 8 153 // ValidateService validate if lock service alive 154 Method_ValidateService Method = 9 155 // CannotCommit for orphaned transactions that are found, the lock is released 156 // immediately, and you need to mark these transactions as not being able to be 157 // committed in the TN 158 Method_CannotCommit Method = 10 159 // GetActiveTxn used to get the active txn on the lock service 160 Method_GetActiveTxn Method = 11 161 // SetRestartService set restart lock service 162 Method_SetRestartService Method = 12 163 // RemainTxnInService get remain txn in lock service 164 Method_RemainTxnInService Method = 13 165 // canRestartService judge if can restart lock service 166 Method_CanRestartService Method = 14 167 ) 168 169 var Method_name = map[int32]string{ 170 0: "Lock", 171 1: "Unlock", 172 2: "GetTxnLock", 173 3: "GetWaitingList", 174 4: "KeepRemoteLock", 175 5: "GetBind", 176 6: "KeepLockTableBind", 177 7: "ForwardLock", 178 8: "ForwardUnlock", 179 9: "ValidateService", 180 10: "CannotCommit", 181 11: "GetActiveTxn", 182 12: "SetRestartService", 183 13: "RemainTxnInService", 184 14: "CanRestartService", 185 } 186 187 var Method_value = map[string]int32{ 188 "Lock": 0, 189 "Unlock": 1, 190 "GetTxnLock": 2, 191 "GetWaitingList": 3, 192 "KeepRemoteLock": 4, 193 "GetBind": 5, 194 "KeepLockTableBind": 6, 195 "ForwardLock": 7, 196 "ForwardUnlock": 8, 197 "ValidateService": 9, 198 "CannotCommit": 10, 199 "GetActiveTxn": 11, 200 "SetRestartService": 12, 201 "RemainTxnInService": 13, 202 "CanRestartService": 14, 203 } 204 205 func (x Method) String() string { 206 return proto.EnumName(Method_name, int32(x)) 207 } 208 209 func (Method) EnumDescriptor() ([]byte, []int) { 210 return fileDescriptor_164ad2988c7acaf1, []int{4} 211 } 212 213 type Status int32 214 215 const ( 216 Status_ServiceLockEnable Status = 0 217 Status_ServiceLockWaiting Status = 1 218 Status_ServiceUnLockSucc Status = 2 219 Status_ServiceCanRestart Status = 3 220 ) 221 222 var Status_name = map[int32]string{ 223 0: "ServiceLockEnable", 224 1: "ServiceLockWaiting", 225 2: "ServiceUnLockSucc", 226 3: "ServiceCanRestart", 227 } 228 229 var Status_value = map[string]int32{ 230 "ServiceLockEnable": 0, 231 "ServiceLockWaiting": 1, 232 "ServiceUnLockSucc": 2, 233 "ServiceCanRestart": 3, 234 } 235 236 func (x Status) String() string { 237 return proto.EnumName(Status_name, int32(x)) 238 } 239 240 func (Status) EnumDescriptor() ([]byte, []int) { 241 return fileDescriptor_164ad2988c7acaf1, []int{5} 242 } 243 244 // LockOptions lock options 245 type LockOptions struct { 246 Granularity Granularity `protobuf:"varint,1,opt,name=Granularity,proto3,enum=lock.Granularity" json:"Granularity,omitempty"` 247 Mode LockMode `protobuf:"varint,2,opt,name=Mode,proto3,enum=lock.LockMode" json:"Mode,omitempty"` 248 Policy WaitPolicy `protobuf:"varint,3,opt,name=Policy,proto3,enum=lock.WaitPolicy" json:"Policy,omitempty"` 249 ForwardTo string `protobuf:"bytes,4,opt,name=ForwardTo,proto3" json:"ForwardTo,omitempty"` 250 TableDefChanged bool `protobuf:"varint,5,opt,name=TableDefChanged,proto3" json:"TableDefChanged,omitempty"` 251 RetryWait int64 `protobuf:"varint,6,opt,name=RetryWait,proto3" json:"RetryWait,omitempty"` 252 Group uint32 `protobuf:"varint,7,opt,name=Group,proto3" json:"Group,omitempty"` 253 Sharding Sharding `protobuf:"varint,8,opt,name=Sharding,proto3,enum=lock.Sharding" json:"Sharding,omitempty"` 254 SnapShotTs timestamp.Timestamp `protobuf:"bytes,9,opt,name=SnapShotTs,proto3" json:"SnapShotTs"` 255 XXX_NoUnkeyedLiteral struct{} `json:"-"` 256 XXX_unrecognized []byte `json:"-"` 257 XXX_sizecache int32 `json:"-"` 258 } 259 260 func (m *LockOptions) Reset() { *m = LockOptions{} } 261 func (m *LockOptions) String() string { return proto.CompactTextString(m) } 262 func (*LockOptions) ProtoMessage() {} 263 func (*LockOptions) Descriptor() ([]byte, []int) { 264 return fileDescriptor_164ad2988c7acaf1, []int{0} 265 } 266 func (m *LockOptions) XXX_Unmarshal(b []byte) error { 267 return m.Unmarshal(b) 268 } 269 func (m *LockOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 270 if deterministic { 271 return xxx_messageInfo_LockOptions.Marshal(b, m, deterministic) 272 } else { 273 b = b[:cap(b)] 274 n, err := m.MarshalToSizedBuffer(b) 275 if err != nil { 276 return nil, err 277 } 278 return b[:n], nil 279 } 280 } 281 func (m *LockOptions) XXX_Merge(src proto.Message) { 282 xxx_messageInfo_LockOptions.Merge(m, src) 283 } 284 func (m *LockOptions) XXX_Size() int { 285 return m.Size() 286 } 287 func (m *LockOptions) XXX_DiscardUnknown() { 288 xxx_messageInfo_LockOptions.DiscardUnknown(m) 289 } 290 291 var xxx_messageInfo_LockOptions proto.InternalMessageInfo 292 293 func (m *LockOptions) GetGranularity() Granularity { 294 if m != nil { 295 return m.Granularity 296 } 297 return Granularity_Row 298 } 299 300 func (m *LockOptions) GetMode() LockMode { 301 if m != nil { 302 return m.Mode 303 } 304 return LockMode_Exclusive 305 } 306 307 func (m *LockOptions) GetPolicy() WaitPolicy { 308 if m != nil { 309 return m.Policy 310 } 311 return WaitPolicy_Wait 312 } 313 314 func (m *LockOptions) GetForwardTo() string { 315 if m != nil { 316 return m.ForwardTo 317 } 318 return "" 319 } 320 321 func (m *LockOptions) GetTableDefChanged() bool { 322 if m != nil { 323 return m.TableDefChanged 324 } 325 return false 326 } 327 328 func (m *LockOptions) GetRetryWait() int64 { 329 if m != nil { 330 return m.RetryWait 331 } 332 return 0 333 } 334 335 func (m *LockOptions) GetGroup() uint32 { 336 if m != nil { 337 return m.Group 338 } 339 return 0 340 } 341 342 func (m *LockOptions) GetSharding() Sharding { 343 if m != nil { 344 return m.Sharding 345 } 346 return Sharding_None 347 } 348 349 func (m *LockOptions) GetSnapShotTs() timestamp.Timestamp { 350 if m != nil { 351 return m.SnapShotTs 352 } 353 return timestamp.Timestamp{} 354 } 355 356 // LockTable describes which CN manages a Table's Locks. 357 type LockTable struct { 358 // Table table id 359 Table uint64 `protobuf:"varint,1,opt,name=Table,proto3" json:"Table,omitempty"` 360 // ServiceID lock service id, a cn node will only run one instance of LockService 361 ServiceID string `protobuf:"bytes,2,opt,name=ServiceID,proto3" json:"ServiceID,omitempty"` 362 // Version will incr if CN-Table bind changed. 363 Version uint64 `protobuf:"varint,3,opt,name=Version,proto3" json:"Version,omitempty"` 364 // Valid false if the service is disabled, and no new service bind this table 365 Valid bool `protobuf:"varint,4,opt,name=Valid,proto3" json:"Valid,omitempty"` 366 Group uint32 `protobuf:"varint,5,opt,name=Group,proto3" json:"Group,omitempty"` 367 Sharding Sharding `protobuf:"varint,6,opt,name=Sharding,proto3,enum=lock.Sharding" json:"Sharding,omitempty"` 368 OriginTable uint64 `protobuf:"varint,7,opt,name=OriginTable,proto3" json:"OriginTable,omitempty"` 369 XXX_NoUnkeyedLiteral struct{} `json:"-"` 370 XXX_unrecognized []byte `json:"-"` 371 XXX_sizecache int32 `json:"-"` 372 } 373 374 func (m *LockTable) Reset() { *m = LockTable{} } 375 func (m *LockTable) String() string { return proto.CompactTextString(m) } 376 func (*LockTable) ProtoMessage() {} 377 func (*LockTable) Descriptor() ([]byte, []int) { 378 return fileDescriptor_164ad2988c7acaf1, []int{1} 379 } 380 func (m *LockTable) XXX_Unmarshal(b []byte) error { 381 return m.Unmarshal(b) 382 } 383 func (m *LockTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 384 if deterministic { 385 return xxx_messageInfo_LockTable.Marshal(b, m, deterministic) 386 } else { 387 b = b[:cap(b)] 388 n, err := m.MarshalToSizedBuffer(b) 389 if err != nil { 390 return nil, err 391 } 392 return b[:n], nil 393 } 394 } 395 func (m *LockTable) XXX_Merge(src proto.Message) { 396 xxx_messageInfo_LockTable.Merge(m, src) 397 } 398 func (m *LockTable) XXX_Size() int { 399 return m.Size() 400 } 401 func (m *LockTable) XXX_DiscardUnknown() { 402 xxx_messageInfo_LockTable.DiscardUnknown(m) 403 } 404 405 var xxx_messageInfo_LockTable proto.InternalMessageInfo 406 407 func (m *LockTable) GetTable() uint64 { 408 if m != nil { 409 return m.Table 410 } 411 return 0 412 } 413 414 func (m *LockTable) GetServiceID() string { 415 if m != nil { 416 return m.ServiceID 417 } 418 return "" 419 } 420 421 func (m *LockTable) GetVersion() uint64 { 422 if m != nil { 423 return m.Version 424 } 425 return 0 426 } 427 428 func (m *LockTable) GetValid() bool { 429 if m != nil { 430 return m.Valid 431 } 432 return false 433 } 434 435 func (m *LockTable) GetGroup() uint32 { 436 if m != nil { 437 return m.Group 438 } 439 return 0 440 } 441 442 func (m *LockTable) GetSharding() Sharding { 443 if m != nil { 444 return m.Sharding 445 } 446 return Sharding_None 447 } 448 449 func (m *LockTable) GetOriginTable() uint64 { 450 if m != nil { 451 return m.OriginTable 452 } 453 return 0 454 } 455 456 // Request is used to send a request for a LockTable related operation to another 457 // service. 458 type Request struct { 459 // RequestID request id 460 RequestID uint64 `protobuf:"varint,1,opt,name=RequestID,proto3" json:"RequestID,omitempty"` 461 // LockTable lock target table 462 LockTable LockTable `protobuf:"bytes,2,opt,name=LockTable,proto3" json:"LockTable"` 463 Method Method `protobuf:"varint,3,opt,name=Method,proto3,enum=lock.Method" json:"Method,omitempty"` 464 Lock LockRequest `protobuf:"bytes,4,opt,name=Lock,proto3" json:"Lock"` 465 Unlock UnlockRequest `protobuf:"bytes,5,opt,name=Unlock,proto3" json:"Unlock"` 466 GetTxnLock GetTxnLockRequest `protobuf:"bytes,6,opt,name=GetTxnLock,proto3" json:"GetTxnLock"` 467 GetWaitingList GetWaitingListRequest `protobuf:"bytes,7,opt,name=GetWaitingList,proto3" json:"GetWaitingList"` 468 GetBind GetBindRequest `protobuf:"bytes,8,opt,name=GetBind,proto3" json:"GetBind"` 469 KeepLockTableBind KeepLockTableBindRequest `protobuf:"bytes,9,opt,name=KeepLockTableBind,proto3" json:"KeepLockTableBind"` 470 KeepRemoteLock KeepRemoteLockRequest `protobuf:"bytes,10,opt,name=KeepRemoteLock,proto3" json:"KeepRemoteLock"` 471 ValidateService ValidateServiceRequest `protobuf:"bytes,11,opt,name=ValidateService,proto3" json:"ValidateService"` 472 CannotCommit CannotCommitRequest `protobuf:"bytes,12,opt,name=CannotCommit,proto3" json:"CannotCommit"` 473 GetActiveTxn GetActiveTxnRequest `protobuf:"bytes,13,opt,name=GetActiveTxn,proto3" json:"GetActiveTxn"` 474 SetRestartService SetRestartServiceRequest `protobuf:"bytes,14,opt,name=SetRestartService,proto3" json:"SetRestartService"` 475 CanRestartService CanRestartServiceRequest `protobuf:"bytes,15,opt,name=CanRestartService,proto3" json:"CanRestartService"` 476 RemainTxnInService RemainTxnInServiceRequest `protobuf:"bytes,16,opt,name=RemainTxnInService,proto3" json:"RemainTxnInService"` 477 XXX_NoUnkeyedLiteral struct{} `json:"-"` 478 XXX_unrecognized []byte `json:"-"` 479 XXX_sizecache int32 `json:"-"` 480 } 481 482 func (m *Request) Reset() { *m = Request{} } 483 func (m *Request) String() string { return proto.CompactTextString(m) } 484 func (*Request) ProtoMessage() {} 485 func (*Request) Descriptor() ([]byte, []int) { 486 return fileDescriptor_164ad2988c7acaf1, []int{2} 487 } 488 func (m *Request) XXX_Unmarshal(b []byte) error { 489 return m.Unmarshal(b) 490 } 491 func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 492 if deterministic { 493 return xxx_messageInfo_Request.Marshal(b, m, deterministic) 494 } else { 495 b = b[:cap(b)] 496 n, err := m.MarshalToSizedBuffer(b) 497 if err != nil { 498 return nil, err 499 } 500 return b[:n], nil 501 } 502 } 503 func (m *Request) XXX_Merge(src proto.Message) { 504 xxx_messageInfo_Request.Merge(m, src) 505 } 506 func (m *Request) XXX_Size() int { 507 return m.Size() 508 } 509 func (m *Request) XXX_DiscardUnknown() { 510 xxx_messageInfo_Request.DiscardUnknown(m) 511 } 512 513 var xxx_messageInfo_Request proto.InternalMessageInfo 514 515 func (m *Request) GetRequestID() uint64 { 516 if m != nil { 517 return m.RequestID 518 } 519 return 0 520 } 521 522 func (m *Request) GetLockTable() LockTable { 523 if m != nil { 524 return m.LockTable 525 } 526 return LockTable{} 527 } 528 529 func (m *Request) GetMethod() Method { 530 if m != nil { 531 return m.Method 532 } 533 return Method_Lock 534 } 535 536 func (m *Request) GetLock() LockRequest { 537 if m != nil { 538 return m.Lock 539 } 540 return LockRequest{} 541 } 542 543 func (m *Request) GetUnlock() UnlockRequest { 544 if m != nil { 545 return m.Unlock 546 } 547 return UnlockRequest{} 548 } 549 550 func (m *Request) GetGetTxnLock() GetTxnLockRequest { 551 if m != nil { 552 return m.GetTxnLock 553 } 554 return GetTxnLockRequest{} 555 } 556 557 func (m *Request) GetGetWaitingList() GetWaitingListRequest { 558 if m != nil { 559 return m.GetWaitingList 560 } 561 return GetWaitingListRequest{} 562 } 563 564 func (m *Request) GetGetBind() GetBindRequest { 565 if m != nil { 566 return m.GetBind 567 } 568 return GetBindRequest{} 569 } 570 571 func (m *Request) GetKeepLockTableBind() KeepLockTableBindRequest { 572 if m != nil { 573 return m.KeepLockTableBind 574 } 575 return KeepLockTableBindRequest{} 576 } 577 578 func (m *Request) GetKeepRemoteLock() KeepRemoteLockRequest { 579 if m != nil { 580 return m.KeepRemoteLock 581 } 582 return KeepRemoteLockRequest{} 583 } 584 585 func (m *Request) GetValidateService() ValidateServiceRequest { 586 if m != nil { 587 return m.ValidateService 588 } 589 return ValidateServiceRequest{} 590 } 591 592 func (m *Request) GetCannotCommit() CannotCommitRequest { 593 if m != nil { 594 return m.CannotCommit 595 } 596 return CannotCommitRequest{} 597 } 598 599 func (m *Request) GetGetActiveTxn() GetActiveTxnRequest { 600 if m != nil { 601 return m.GetActiveTxn 602 } 603 return GetActiveTxnRequest{} 604 } 605 606 func (m *Request) GetSetRestartService() SetRestartServiceRequest { 607 if m != nil { 608 return m.SetRestartService 609 } 610 return SetRestartServiceRequest{} 611 } 612 613 func (m *Request) GetCanRestartService() CanRestartServiceRequest { 614 if m != nil { 615 return m.CanRestartService 616 } 617 return CanRestartServiceRequest{} 618 } 619 620 func (m *Request) GetRemainTxnInService() RemainTxnInServiceRequest { 621 if m != nil { 622 return m.RemainTxnInService 623 } 624 return RemainTxnInServiceRequest{} 625 } 626 627 // Response response 628 type Response struct { 629 // RequestID corresponding request id 630 RequestID uint64 `protobuf:"varint,1,opt,name=RequestID,proto3" json:"RequestID,omitempty"` 631 Method Method `protobuf:"varint,2,opt,name=Method,proto3,enum=lock.Method" json:"Method,omitempty"` 632 // Error we use this field to send moerr from service to another cn. Set with 633 // moerr.MarshalBinary, and use moerr.UnmarshalBinary to restore moerr. 634 Error []byte `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` 635 NewBind *LockTable `protobuf:"bytes,4,opt,name=NewBind,proto3" json:"NewBind,omitempty"` 636 Lock LockResponse `protobuf:"bytes,5,opt,name=Lock,proto3" json:"Lock"` 637 Unlock UnlockResponse `protobuf:"bytes,6,opt,name=Unlock,proto3" json:"Unlock"` 638 GetTxnLock GetTxnLockResponse `protobuf:"bytes,7,opt,name=GetTxnLock,proto3" json:"GetTxnLock"` 639 GetWaitingList GetWaitingListResponse `protobuf:"bytes,8,opt,name=GetWaitingList,proto3" json:"GetWaitingList"` 640 GetBind GetBindResponse `protobuf:"bytes,9,opt,name=GetBind,proto3" json:"GetBind"` 641 KeepLockTableBind KeepLockTableBindResponse `protobuf:"bytes,10,opt,name=KeepLockTableBind,proto3" json:"KeepLockTableBind"` 642 KeepRemoteLock KeepRemoteLockResponse `protobuf:"bytes,11,opt,name=KeepRemoteLock,proto3" json:"KeepRemoteLock"` 643 ValidateService ValidateServiceResponse `protobuf:"bytes,12,opt,name=ValidateService,proto3" json:"ValidateService"` 644 CannotCommit CannotCommitResponse `protobuf:"bytes,13,opt,name=CannotCommit,proto3" json:"CannotCommit"` 645 GetActiveTxn GetActiveTxnResponse `protobuf:"bytes,14,opt,name=GetActiveTxn,proto3" json:"GetActiveTxn"` 646 SetRestartService SetRestartServiceResponse `protobuf:"bytes,15,opt,name=SetRestartService,proto3" json:"SetRestartService"` 647 CanRestartService CanRestartServiceResponse `protobuf:"bytes,16,opt,name=CanRestartService,proto3" json:"CanRestartService"` 648 RemainTxnInService RemainTxnInServiceResponse `protobuf:"bytes,17,opt,name=RemainTxnInService,proto3" json:"RemainTxnInService"` 649 XXX_NoUnkeyedLiteral struct{} `json:"-"` 650 XXX_unrecognized []byte `json:"-"` 651 XXX_sizecache int32 `json:"-"` 652 } 653 654 func (m *Response) Reset() { *m = Response{} } 655 func (m *Response) String() string { return proto.CompactTextString(m) } 656 func (*Response) ProtoMessage() {} 657 func (*Response) Descriptor() ([]byte, []int) { 658 return fileDescriptor_164ad2988c7acaf1, []int{3} 659 } 660 func (m *Response) XXX_Unmarshal(b []byte) error { 661 return m.Unmarshal(b) 662 } 663 func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 664 if deterministic { 665 return xxx_messageInfo_Response.Marshal(b, m, deterministic) 666 } else { 667 b = b[:cap(b)] 668 n, err := m.MarshalToSizedBuffer(b) 669 if err != nil { 670 return nil, err 671 } 672 return b[:n], nil 673 } 674 } 675 func (m *Response) XXX_Merge(src proto.Message) { 676 xxx_messageInfo_Response.Merge(m, src) 677 } 678 func (m *Response) XXX_Size() int { 679 return m.Size() 680 } 681 func (m *Response) XXX_DiscardUnknown() { 682 xxx_messageInfo_Response.DiscardUnknown(m) 683 } 684 685 var xxx_messageInfo_Response proto.InternalMessageInfo 686 687 func (m *Response) GetRequestID() uint64 { 688 if m != nil { 689 return m.RequestID 690 } 691 return 0 692 } 693 694 func (m *Response) GetMethod() Method { 695 if m != nil { 696 return m.Method 697 } 698 return Method_Lock 699 } 700 701 func (m *Response) GetError() []byte { 702 if m != nil { 703 return m.Error 704 } 705 return nil 706 } 707 708 func (m *Response) GetNewBind() *LockTable { 709 if m != nil { 710 return m.NewBind 711 } 712 return nil 713 } 714 715 func (m *Response) GetLock() LockResponse { 716 if m != nil { 717 return m.Lock 718 } 719 return LockResponse{} 720 } 721 722 func (m *Response) GetUnlock() UnlockResponse { 723 if m != nil { 724 return m.Unlock 725 } 726 return UnlockResponse{} 727 } 728 729 func (m *Response) GetGetTxnLock() GetTxnLockResponse { 730 if m != nil { 731 return m.GetTxnLock 732 } 733 return GetTxnLockResponse{} 734 } 735 736 func (m *Response) GetGetWaitingList() GetWaitingListResponse { 737 if m != nil { 738 return m.GetWaitingList 739 } 740 return GetWaitingListResponse{} 741 } 742 743 func (m *Response) GetGetBind() GetBindResponse { 744 if m != nil { 745 return m.GetBind 746 } 747 return GetBindResponse{} 748 } 749 750 func (m *Response) GetKeepLockTableBind() KeepLockTableBindResponse { 751 if m != nil { 752 return m.KeepLockTableBind 753 } 754 return KeepLockTableBindResponse{} 755 } 756 757 func (m *Response) GetKeepRemoteLock() KeepRemoteLockResponse { 758 if m != nil { 759 return m.KeepRemoteLock 760 } 761 return KeepRemoteLockResponse{} 762 } 763 764 func (m *Response) GetValidateService() ValidateServiceResponse { 765 if m != nil { 766 return m.ValidateService 767 } 768 return ValidateServiceResponse{} 769 } 770 771 func (m *Response) GetCannotCommit() CannotCommitResponse { 772 if m != nil { 773 return m.CannotCommit 774 } 775 return CannotCommitResponse{} 776 } 777 778 func (m *Response) GetGetActiveTxn() GetActiveTxnResponse { 779 if m != nil { 780 return m.GetActiveTxn 781 } 782 return GetActiveTxnResponse{} 783 } 784 785 func (m *Response) GetSetRestartService() SetRestartServiceResponse { 786 if m != nil { 787 return m.SetRestartService 788 } 789 return SetRestartServiceResponse{} 790 } 791 792 func (m *Response) GetCanRestartService() CanRestartServiceResponse { 793 if m != nil { 794 return m.CanRestartService 795 } 796 return CanRestartServiceResponse{} 797 } 798 799 func (m *Response) GetRemainTxnInService() RemainTxnInServiceResponse { 800 if m != nil { 801 return m.RemainTxnInService 802 } 803 return RemainTxnInServiceResponse{} 804 } 805 806 // LockRequest lock request 807 type LockRequest struct { 808 TxnID []byte `protobuf:"bytes,1,opt,name=TxnID,proto3" json:"TxnID,omitempty"` 809 ServiceID string `protobuf:"bytes,2,opt,name=ServiceID,proto3" json:"ServiceID,omitempty"` 810 Rows [][]byte `protobuf:"bytes,3,rep,name=Rows,proto3" json:"Rows,omitempty"` 811 // LockOptions lock options 812 Options LockOptions `protobuf:"bytes,4,opt,name=Options,proto3" json:"Options"` 813 XXX_NoUnkeyedLiteral struct{} `json:"-"` 814 XXX_unrecognized []byte `json:"-"` 815 XXX_sizecache int32 `json:"-"` 816 } 817 818 func (m *LockRequest) Reset() { *m = LockRequest{} } 819 func (m *LockRequest) String() string { return proto.CompactTextString(m) } 820 func (*LockRequest) ProtoMessage() {} 821 func (*LockRequest) Descriptor() ([]byte, []int) { 822 return fileDescriptor_164ad2988c7acaf1, []int{4} 823 } 824 func (m *LockRequest) XXX_Unmarshal(b []byte) error { 825 return m.Unmarshal(b) 826 } 827 func (m *LockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 828 if deterministic { 829 return xxx_messageInfo_LockRequest.Marshal(b, m, deterministic) 830 } else { 831 b = b[:cap(b)] 832 n, err := m.MarshalToSizedBuffer(b) 833 if err != nil { 834 return nil, err 835 } 836 return b[:n], nil 837 } 838 } 839 func (m *LockRequest) XXX_Merge(src proto.Message) { 840 xxx_messageInfo_LockRequest.Merge(m, src) 841 } 842 func (m *LockRequest) XXX_Size() int { 843 return m.Size() 844 } 845 func (m *LockRequest) XXX_DiscardUnknown() { 846 xxx_messageInfo_LockRequest.DiscardUnknown(m) 847 } 848 849 var xxx_messageInfo_LockRequest proto.InternalMessageInfo 850 851 func (m *LockRequest) GetTxnID() []byte { 852 if m != nil { 853 return m.TxnID 854 } 855 return nil 856 } 857 858 func (m *LockRequest) GetServiceID() string { 859 if m != nil { 860 return m.ServiceID 861 } 862 return "" 863 } 864 865 func (m *LockRequest) GetRows() [][]byte { 866 if m != nil { 867 return m.Rows 868 } 869 return nil 870 } 871 872 func (m *LockRequest) GetOptions() LockOptions { 873 if m != nil { 874 return m.Options 875 } 876 return LockOptions{} 877 } 878 879 // LockResponse lock response 880 type LockResponse struct { 881 Result Result `protobuf:"bytes,1,opt,name=Result,proto3" json:"Result"` 882 XXX_NoUnkeyedLiteral struct{} `json:"-"` 883 XXX_unrecognized []byte `json:"-"` 884 XXX_sizecache int32 `json:"-"` 885 } 886 887 func (m *LockResponse) Reset() { *m = LockResponse{} } 888 func (m *LockResponse) String() string { return proto.CompactTextString(m) } 889 func (*LockResponse) ProtoMessage() {} 890 func (*LockResponse) Descriptor() ([]byte, []int) { 891 return fileDescriptor_164ad2988c7acaf1, []int{5} 892 } 893 func (m *LockResponse) XXX_Unmarshal(b []byte) error { 894 return m.Unmarshal(b) 895 } 896 func (m *LockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 897 if deterministic { 898 return xxx_messageInfo_LockResponse.Marshal(b, m, deterministic) 899 } else { 900 b = b[:cap(b)] 901 n, err := m.MarshalToSizedBuffer(b) 902 if err != nil { 903 return nil, err 904 } 905 return b[:n], nil 906 } 907 } 908 func (m *LockResponse) XXX_Merge(src proto.Message) { 909 xxx_messageInfo_LockResponse.Merge(m, src) 910 } 911 func (m *LockResponse) XXX_Size() int { 912 return m.Size() 913 } 914 func (m *LockResponse) XXX_DiscardUnknown() { 915 xxx_messageInfo_LockResponse.DiscardUnknown(m) 916 } 917 918 var xxx_messageInfo_LockResponse proto.InternalMessageInfo 919 920 func (m *LockResponse) GetResult() Result { 921 if m != nil { 922 return m.Result 923 } 924 return Result{} 925 } 926 927 // GetTxnLockRequest get a waiting txn list on a special lock 928 // request, used to dead lock detect 929 type GetTxnLockRequest struct { 930 TxnID []byte `protobuf:"bytes,1,opt,name=TxnID,proto3" json:"TxnID,omitempty"` 931 Row []byte `protobuf:"bytes,2,opt,name=Row,proto3" json:"Row,omitempty"` 932 XXX_NoUnkeyedLiteral struct{} `json:"-"` 933 XXX_unrecognized []byte `json:"-"` 934 XXX_sizecache int32 `json:"-"` 935 } 936 937 func (m *GetTxnLockRequest) Reset() { *m = GetTxnLockRequest{} } 938 func (m *GetTxnLockRequest) String() string { return proto.CompactTextString(m) } 939 func (*GetTxnLockRequest) ProtoMessage() {} 940 func (*GetTxnLockRequest) Descriptor() ([]byte, []int) { 941 return fileDescriptor_164ad2988c7acaf1, []int{6} 942 } 943 func (m *GetTxnLockRequest) XXX_Unmarshal(b []byte) error { 944 return m.Unmarshal(b) 945 } 946 func (m *GetTxnLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 947 if deterministic { 948 return xxx_messageInfo_GetTxnLockRequest.Marshal(b, m, deterministic) 949 } else { 950 b = b[:cap(b)] 951 n, err := m.MarshalToSizedBuffer(b) 952 if err != nil { 953 return nil, err 954 } 955 return b[:n], nil 956 } 957 } 958 func (m *GetTxnLockRequest) XXX_Merge(src proto.Message) { 959 xxx_messageInfo_GetTxnLockRequest.Merge(m, src) 960 } 961 func (m *GetTxnLockRequest) XXX_Size() int { 962 return m.Size() 963 } 964 func (m *GetTxnLockRequest) XXX_DiscardUnknown() { 965 xxx_messageInfo_GetTxnLockRequest.DiscardUnknown(m) 966 } 967 968 var xxx_messageInfo_GetTxnLockRequest proto.InternalMessageInfo 969 970 func (m *GetTxnLockRequest) GetTxnID() []byte { 971 if m != nil { 972 return m.TxnID 973 } 974 return nil 975 } 976 977 func (m *GetTxnLockRequest) GetRow() []byte { 978 if m != nil { 979 return m.Row 980 } 981 return nil 982 } 983 984 // GetTxnLockResponse get txn Lock response 985 type GetTxnLockResponse struct { 986 Value int32 `protobuf:"varint,1,opt,name=Value,proto3" json:"Value,omitempty"` 987 WaitingList []WaitTxn `protobuf:"bytes,2,rep,name=WaitingList,proto3" json:"WaitingList"` 988 XXX_NoUnkeyedLiteral struct{} `json:"-"` 989 XXX_unrecognized []byte `json:"-"` 990 XXX_sizecache int32 `json:"-"` 991 } 992 993 func (m *GetTxnLockResponse) Reset() { *m = GetTxnLockResponse{} } 994 func (m *GetTxnLockResponse) String() string { return proto.CompactTextString(m) } 995 func (*GetTxnLockResponse) ProtoMessage() {} 996 func (*GetTxnLockResponse) Descriptor() ([]byte, []int) { 997 return fileDescriptor_164ad2988c7acaf1, []int{7} 998 } 999 func (m *GetTxnLockResponse) XXX_Unmarshal(b []byte) error { 1000 return m.Unmarshal(b) 1001 } 1002 func (m *GetTxnLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1003 if deterministic { 1004 return xxx_messageInfo_GetTxnLockResponse.Marshal(b, m, deterministic) 1005 } else { 1006 b = b[:cap(b)] 1007 n, err := m.MarshalToSizedBuffer(b) 1008 if err != nil { 1009 return nil, err 1010 } 1011 return b[:n], nil 1012 } 1013 } 1014 func (m *GetTxnLockResponse) XXX_Merge(src proto.Message) { 1015 xxx_messageInfo_GetTxnLockResponse.Merge(m, src) 1016 } 1017 func (m *GetTxnLockResponse) XXX_Size() int { 1018 return m.Size() 1019 } 1020 func (m *GetTxnLockResponse) XXX_DiscardUnknown() { 1021 xxx_messageInfo_GetTxnLockResponse.DiscardUnknown(m) 1022 } 1023 1024 var xxx_messageInfo_GetTxnLockResponse proto.InternalMessageInfo 1025 1026 func (m *GetTxnLockResponse) GetValue() int32 { 1027 if m != nil { 1028 return m.Value 1029 } 1030 return 0 1031 } 1032 1033 func (m *GetTxnLockResponse) GetWaitingList() []WaitTxn { 1034 if m != nil { 1035 return m.WaitingList 1036 } 1037 return nil 1038 } 1039 1040 // GetWaitingListRequest get a waiting txn list on a specical txn request. CN -> CN 1041 type GetWaitingListRequest struct { 1042 Txn WaitTxn `protobuf:"bytes,1,opt,name=Txn,proto3" json:"Txn"` 1043 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1044 XXX_unrecognized []byte `json:"-"` 1045 XXX_sizecache int32 `json:"-"` 1046 } 1047 1048 func (m *GetWaitingListRequest) Reset() { *m = GetWaitingListRequest{} } 1049 func (m *GetWaitingListRequest) String() string { return proto.CompactTextString(m) } 1050 func (*GetWaitingListRequest) ProtoMessage() {} 1051 func (*GetWaitingListRequest) Descriptor() ([]byte, []int) { 1052 return fileDescriptor_164ad2988c7acaf1, []int{8} 1053 } 1054 func (m *GetWaitingListRequest) XXX_Unmarshal(b []byte) error { 1055 return m.Unmarshal(b) 1056 } 1057 func (m *GetWaitingListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1058 if deterministic { 1059 return xxx_messageInfo_GetWaitingListRequest.Marshal(b, m, deterministic) 1060 } else { 1061 b = b[:cap(b)] 1062 n, err := m.MarshalToSizedBuffer(b) 1063 if err != nil { 1064 return nil, err 1065 } 1066 return b[:n], nil 1067 } 1068 } 1069 func (m *GetWaitingListRequest) XXX_Merge(src proto.Message) { 1070 xxx_messageInfo_GetWaitingListRequest.Merge(m, src) 1071 } 1072 func (m *GetWaitingListRequest) XXX_Size() int { 1073 return m.Size() 1074 } 1075 func (m *GetWaitingListRequest) XXX_DiscardUnknown() { 1076 xxx_messageInfo_GetWaitingListRequest.DiscardUnknown(m) 1077 } 1078 1079 var xxx_messageInfo_GetWaitingListRequest proto.InternalMessageInfo 1080 1081 func (m *GetWaitingListRequest) GetTxn() WaitTxn { 1082 if m != nil { 1083 return m.Txn 1084 } 1085 return WaitTxn{} 1086 } 1087 1088 // GetWaitingListResponse get a waiting txn list on a specical txn response. CN -> CN 1089 type GetWaitingListResponse struct { 1090 WaitingList []WaitTxn `protobuf:"bytes,1,rep,name=WaitingList,proto3" json:"WaitingList"` 1091 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1092 XXX_unrecognized []byte `json:"-"` 1093 XXX_sizecache int32 `json:"-"` 1094 } 1095 1096 func (m *GetWaitingListResponse) Reset() { *m = GetWaitingListResponse{} } 1097 func (m *GetWaitingListResponse) String() string { return proto.CompactTextString(m) } 1098 func (*GetWaitingListResponse) ProtoMessage() {} 1099 func (*GetWaitingListResponse) Descriptor() ([]byte, []int) { 1100 return fileDescriptor_164ad2988c7acaf1, []int{9} 1101 } 1102 func (m *GetWaitingListResponse) XXX_Unmarshal(b []byte) error { 1103 return m.Unmarshal(b) 1104 } 1105 func (m *GetWaitingListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1106 if deterministic { 1107 return xxx_messageInfo_GetWaitingListResponse.Marshal(b, m, deterministic) 1108 } else { 1109 b = b[:cap(b)] 1110 n, err := m.MarshalToSizedBuffer(b) 1111 if err != nil { 1112 return nil, err 1113 } 1114 return b[:n], nil 1115 } 1116 } 1117 func (m *GetWaitingListResponse) XXX_Merge(src proto.Message) { 1118 xxx_messageInfo_GetWaitingListResponse.Merge(m, src) 1119 } 1120 func (m *GetWaitingListResponse) XXX_Size() int { 1121 return m.Size() 1122 } 1123 func (m *GetWaitingListResponse) XXX_DiscardUnknown() { 1124 xxx_messageInfo_GetWaitingListResponse.DiscardUnknown(m) 1125 } 1126 1127 var xxx_messageInfo_GetWaitingListResponse proto.InternalMessageInfo 1128 1129 func (m *GetWaitingListResponse) GetWaitingList() []WaitTxn { 1130 if m != nil { 1131 return m.WaitingList 1132 } 1133 return nil 1134 } 1135 1136 // WaitTxn wait txn include txn created on 1137 type WaitTxn struct { 1138 TxnID []byte `protobuf:"bytes,1,opt,name=TxnID,proto3" json:"TxnID,omitempty"` 1139 CreatedOn string `protobuf:"bytes,2,opt,name=CreatedOn,proto3" json:"CreatedOn,omitempty"` 1140 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1141 XXX_unrecognized []byte `json:"-"` 1142 XXX_sizecache int32 `json:"-"` 1143 } 1144 1145 func (m *WaitTxn) Reset() { *m = WaitTxn{} } 1146 func (m *WaitTxn) String() string { return proto.CompactTextString(m) } 1147 func (*WaitTxn) ProtoMessage() {} 1148 func (*WaitTxn) Descriptor() ([]byte, []int) { 1149 return fileDescriptor_164ad2988c7acaf1, []int{10} 1150 } 1151 func (m *WaitTxn) XXX_Unmarshal(b []byte) error { 1152 return m.Unmarshal(b) 1153 } 1154 func (m *WaitTxn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1155 if deterministic { 1156 return xxx_messageInfo_WaitTxn.Marshal(b, m, deterministic) 1157 } else { 1158 b = b[:cap(b)] 1159 n, err := m.MarshalToSizedBuffer(b) 1160 if err != nil { 1161 return nil, err 1162 } 1163 return b[:n], nil 1164 } 1165 } 1166 func (m *WaitTxn) XXX_Merge(src proto.Message) { 1167 xxx_messageInfo_WaitTxn.Merge(m, src) 1168 } 1169 func (m *WaitTxn) XXX_Size() int { 1170 return m.Size() 1171 } 1172 func (m *WaitTxn) XXX_DiscardUnknown() { 1173 xxx_messageInfo_WaitTxn.DiscardUnknown(m) 1174 } 1175 1176 var xxx_messageInfo_WaitTxn proto.InternalMessageInfo 1177 1178 func (m *WaitTxn) GetTxnID() []byte { 1179 if m != nil { 1180 return m.TxnID 1181 } 1182 return nil 1183 } 1184 1185 func (m *WaitTxn) GetCreatedOn() string { 1186 if m != nil { 1187 return m.CreatedOn 1188 } 1189 return "" 1190 } 1191 1192 // UnlockRequest unlock lock on remote lock service request. CN -> CN 1193 type UnlockRequest struct { 1194 TxnID []byte `protobuf:"bytes,1,opt,name=TxnID,proto3" json:"TxnID,omitempty"` 1195 // CommitTS is the commit timestamp of the current txn. Empty if txn is 1196 // roll backed 1197 CommitTS timestamp.Timestamp `protobuf:"bytes,2,opt,name=CommitTS,proto3" json:"CommitTS"` 1198 Mutations []ExtraMutation `protobuf:"bytes,3,rep,name=Mutations,proto3" json:"Mutations"` 1199 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1200 XXX_unrecognized []byte `json:"-"` 1201 XXX_sizecache int32 `json:"-"` 1202 } 1203 1204 func (m *UnlockRequest) Reset() { *m = UnlockRequest{} } 1205 func (m *UnlockRequest) String() string { return proto.CompactTextString(m) } 1206 func (*UnlockRequest) ProtoMessage() {} 1207 func (*UnlockRequest) Descriptor() ([]byte, []int) { 1208 return fileDescriptor_164ad2988c7acaf1, []int{11} 1209 } 1210 func (m *UnlockRequest) XXX_Unmarshal(b []byte) error { 1211 return m.Unmarshal(b) 1212 } 1213 func (m *UnlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1214 if deterministic { 1215 return xxx_messageInfo_UnlockRequest.Marshal(b, m, deterministic) 1216 } else { 1217 b = b[:cap(b)] 1218 n, err := m.MarshalToSizedBuffer(b) 1219 if err != nil { 1220 return nil, err 1221 } 1222 return b[:n], nil 1223 } 1224 } 1225 func (m *UnlockRequest) XXX_Merge(src proto.Message) { 1226 xxx_messageInfo_UnlockRequest.Merge(m, src) 1227 } 1228 func (m *UnlockRequest) XXX_Size() int { 1229 return m.Size() 1230 } 1231 func (m *UnlockRequest) XXX_DiscardUnknown() { 1232 xxx_messageInfo_UnlockRequest.DiscardUnknown(m) 1233 } 1234 1235 var xxx_messageInfo_UnlockRequest proto.InternalMessageInfo 1236 1237 func (m *UnlockRequest) GetTxnID() []byte { 1238 if m != nil { 1239 return m.TxnID 1240 } 1241 return nil 1242 } 1243 1244 func (m *UnlockRequest) GetCommitTS() timestamp.Timestamp { 1245 if m != nil { 1246 return m.CommitTS 1247 } 1248 return timestamp.Timestamp{} 1249 } 1250 1251 func (m *UnlockRequest) GetMutations() []ExtraMutation { 1252 if m != nil { 1253 return m.Mutations 1254 } 1255 return nil 1256 } 1257 1258 // UnlockResponse unlock lock on remote lock service response. CN -> CN 1259 type UnlockResponse struct { 1260 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1261 XXX_unrecognized []byte `json:"-"` 1262 XXX_sizecache int32 `json:"-"` 1263 } 1264 1265 func (m *UnlockResponse) Reset() { *m = UnlockResponse{} } 1266 func (m *UnlockResponse) String() string { return proto.CompactTextString(m) } 1267 func (*UnlockResponse) ProtoMessage() {} 1268 func (*UnlockResponse) Descriptor() ([]byte, []int) { 1269 return fileDescriptor_164ad2988c7acaf1, []int{12} 1270 } 1271 func (m *UnlockResponse) XXX_Unmarshal(b []byte) error { 1272 return m.Unmarshal(b) 1273 } 1274 func (m *UnlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1275 if deterministic { 1276 return xxx_messageInfo_UnlockResponse.Marshal(b, m, deterministic) 1277 } else { 1278 b = b[:cap(b)] 1279 n, err := m.MarshalToSizedBuffer(b) 1280 if err != nil { 1281 return nil, err 1282 } 1283 return b[:n], nil 1284 } 1285 } 1286 func (m *UnlockResponse) XXX_Merge(src proto.Message) { 1287 xxx_messageInfo_UnlockResponse.Merge(m, src) 1288 } 1289 func (m *UnlockResponse) XXX_Size() int { 1290 return m.Size() 1291 } 1292 func (m *UnlockResponse) XXX_DiscardUnknown() { 1293 xxx_messageInfo_UnlockResponse.DiscardUnknown(m) 1294 } 1295 1296 var xxx_messageInfo_UnlockResponse proto.InternalMessageInfo 1297 1298 // GetBindRequest get bind request from allocator request. CN -> TN 1299 type GetBindRequest struct { 1300 ServiceID string `protobuf:"bytes,1,opt,name=ServiceID,proto3" json:"ServiceID,omitempty"` 1301 Table uint64 `protobuf:"varint,2,opt,name=Table,proto3" json:"Table,omitempty"` 1302 Group uint32 `protobuf:"varint,3,opt,name=Group,proto3" json:"Group,omitempty"` 1303 Sharding Sharding `protobuf:"varint,4,opt,name=Sharding,proto3,enum=lock.Sharding" json:"Sharding,omitempty"` 1304 OriginTable uint64 `protobuf:"varint,5,opt,name=OriginTable,proto3" json:"OriginTable,omitempty"` 1305 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1306 XXX_unrecognized []byte `json:"-"` 1307 XXX_sizecache int32 `json:"-"` 1308 } 1309 1310 func (m *GetBindRequest) Reset() { *m = GetBindRequest{} } 1311 func (m *GetBindRequest) String() string { return proto.CompactTextString(m) } 1312 func (*GetBindRequest) ProtoMessage() {} 1313 func (*GetBindRequest) Descriptor() ([]byte, []int) { 1314 return fileDescriptor_164ad2988c7acaf1, []int{13} 1315 } 1316 func (m *GetBindRequest) XXX_Unmarshal(b []byte) error { 1317 return m.Unmarshal(b) 1318 } 1319 func (m *GetBindRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1320 if deterministic { 1321 return xxx_messageInfo_GetBindRequest.Marshal(b, m, deterministic) 1322 } else { 1323 b = b[:cap(b)] 1324 n, err := m.MarshalToSizedBuffer(b) 1325 if err != nil { 1326 return nil, err 1327 } 1328 return b[:n], nil 1329 } 1330 } 1331 func (m *GetBindRequest) XXX_Merge(src proto.Message) { 1332 xxx_messageInfo_GetBindRequest.Merge(m, src) 1333 } 1334 func (m *GetBindRequest) XXX_Size() int { 1335 return m.Size() 1336 } 1337 func (m *GetBindRequest) XXX_DiscardUnknown() { 1338 xxx_messageInfo_GetBindRequest.DiscardUnknown(m) 1339 } 1340 1341 var xxx_messageInfo_GetBindRequest proto.InternalMessageInfo 1342 1343 func (m *GetBindRequest) GetServiceID() string { 1344 if m != nil { 1345 return m.ServiceID 1346 } 1347 return "" 1348 } 1349 1350 func (m *GetBindRequest) GetTable() uint64 { 1351 if m != nil { 1352 return m.Table 1353 } 1354 return 0 1355 } 1356 1357 func (m *GetBindRequest) GetGroup() uint32 { 1358 if m != nil { 1359 return m.Group 1360 } 1361 return 0 1362 } 1363 1364 func (m *GetBindRequest) GetSharding() Sharding { 1365 if m != nil { 1366 return m.Sharding 1367 } 1368 return Sharding_None 1369 } 1370 1371 func (m *GetBindRequest) GetOriginTable() uint64 { 1372 if m != nil { 1373 return m.OriginTable 1374 } 1375 return 0 1376 } 1377 1378 // GetBindResponse get bind request from allocator response. TN -> CN 1379 type GetBindResponse struct { 1380 LockTable LockTable `protobuf:"bytes,2,opt,name=LockTable,proto3" json:"LockTable"` 1381 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1382 XXX_unrecognized []byte `json:"-"` 1383 XXX_sizecache int32 `json:"-"` 1384 } 1385 1386 func (m *GetBindResponse) Reset() { *m = GetBindResponse{} } 1387 func (m *GetBindResponse) String() string { return proto.CompactTextString(m) } 1388 func (*GetBindResponse) ProtoMessage() {} 1389 func (*GetBindResponse) Descriptor() ([]byte, []int) { 1390 return fileDescriptor_164ad2988c7acaf1, []int{14} 1391 } 1392 func (m *GetBindResponse) XXX_Unmarshal(b []byte) error { 1393 return m.Unmarshal(b) 1394 } 1395 func (m *GetBindResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1396 if deterministic { 1397 return xxx_messageInfo_GetBindResponse.Marshal(b, m, deterministic) 1398 } else { 1399 b = b[:cap(b)] 1400 n, err := m.MarshalToSizedBuffer(b) 1401 if err != nil { 1402 return nil, err 1403 } 1404 return b[:n], nil 1405 } 1406 } 1407 func (m *GetBindResponse) XXX_Merge(src proto.Message) { 1408 xxx_messageInfo_GetBindResponse.Merge(m, src) 1409 } 1410 func (m *GetBindResponse) XXX_Size() int { 1411 return m.Size() 1412 } 1413 func (m *GetBindResponse) XXX_DiscardUnknown() { 1414 xxx_messageInfo_GetBindResponse.DiscardUnknown(m) 1415 } 1416 1417 var xxx_messageInfo_GetBindResponse proto.InternalMessageInfo 1418 1419 func (m *GetBindResponse) GetLockTable() LockTable { 1420 if m != nil { 1421 return m.LockTable 1422 } 1423 return LockTable{} 1424 } 1425 1426 // KeepLockTableBindRequest keep lock table bind request. CN -> TN 1427 type KeepLockTableBindRequest struct { 1428 ServiceID string `protobuf:"bytes,1,opt,name=ServiceID,proto3" json:"ServiceID,omitempty"` 1429 Status Status `protobuf:"varint,2,opt,name=Status,proto3,enum=lock.Status" json:"Status,omitempty"` 1430 TxnIDs [][]byte `protobuf:"bytes,3,rep,name=TxnIDs,proto3" json:"TxnIDs,omitempty"` 1431 LockTables []LockTable `protobuf:"bytes,4,rep,name=LockTables,proto3" json:"LockTables"` 1432 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1433 XXX_unrecognized []byte `json:"-"` 1434 XXX_sizecache int32 `json:"-"` 1435 } 1436 1437 func (m *KeepLockTableBindRequest) Reset() { *m = KeepLockTableBindRequest{} } 1438 func (m *KeepLockTableBindRequest) String() string { return proto.CompactTextString(m) } 1439 func (*KeepLockTableBindRequest) ProtoMessage() {} 1440 func (*KeepLockTableBindRequest) Descriptor() ([]byte, []int) { 1441 return fileDescriptor_164ad2988c7acaf1, []int{15} 1442 } 1443 func (m *KeepLockTableBindRequest) XXX_Unmarshal(b []byte) error { 1444 return m.Unmarshal(b) 1445 } 1446 func (m *KeepLockTableBindRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1447 if deterministic { 1448 return xxx_messageInfo_KeepLockTableBindRequest.Marshal(b, m, deterministic) 1449 } else { 1450 b = b[:cap(b)] 1451 n, err := m.MarshalToSizedBuffer(b) 1452 if err != nil { 1453 return nil, err 1454 } 1455 return b[:n], nil 1456 } 1457 } 1458 func (m *KeepLockTableBindRequest) XXX_Merge(src proto.Message) { 1459 xxx_messageInfo_KeepLockTableBindRequest.Merge(m, src) 1460 } 1461 func (m *KeepLockTableBindRequest) XXX_Size() int { 1462 return m.Size() 1463 } 1464 func (m *KeepLockTableBindRequest) XXX_DiscardUnknown() { 1465 xxx_messageInfo_KeepLockTableBindRequest.DiscardUnknown(m) 1466 } 1467 1468 var xxx_messageInfo_KeepLockTableBindRequest proto.InternalMessageInfo 1469 1470 func (m *KeepLockTableBindRequest) GetServiceID() string { 1471 if m != nil { 1472 return m.ServiceID 1473 } 1474 return "" 1475 } 1476 1477 func (m *KeepLockTableBindRequest) GetStatus() Status { 1478 if m != nil { 1479 return m.Status 1480 } 1481 return Status_ServiceLockEnable 1482 } 1483 1484 func (m *KeepLockTableBindRequest) GetTxnIDs() [][]byte { 1485 if m != nil { 1486 return m.TxnIDs 1487 } 1488 return nil 1489 } 1490 1491 func (m *KeepLockTableBindRequest) GetLockTables() []LockTable { 1492 if m != nil { 1493 return m.LockTables 1494 } 1495 return nil 1496 } 1497 1498 // KeepLockTableBindResponse keep lock table bind response. TN -> CN 1499 type KeepLockTableBindResponse struct { 1500 OK bool `protobuf:"varint,1,opt,name=OK,proto3" json:"OK,omitempty"` 1501 Status Status `protobuf:"varint,2,opt,name=Status,proto3,enum=lock.Status" json:"Status,omitempty"` 1502 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1503 XXX_unrecognized []byte `json:"-"` 1504 XXX_sizecache int32 `json:"-"` 1505 } 1506 1507 func (m *KeepLockTableBindResponse) Reset() { *m = KeepLockTableBindResponse{} } 1508 func (m *KeepLockTableBindResponse) String() string { return proto.CompactTextString(m) } 1509 func (*KeepLockTableBindResponse) ProtoMessage() {} 1510 func (*KeepLockTableBindResponse) Descriptor() ([]byte, []int) { 1511 return fileDescriptor_164ad2988c7acaf1, []int{16} 1512 } 1513 func (m *KeepLockTableBindResponse) XXX_Unmarshal(b []byte) error { 1514 return m.Unmarshal(b) 1515 } 1516 func (m *KeepLockTableBindResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1517 if deterministic { 1518 return xxx_messageInfo_KeepLockTableBindResponse.Marshal(b, m, deterministic) 1519 } else { 1520 b = b[:cap(b)] 1521 n, err := m.MarshalToSizedBuffer(b) 1522 if err != nil { 1523 return nil, err 1524 } 1525 return b[:n], nil 1526 } 1527 } 1528 func (m *KeepLockTableBindResponse) XXX_Merge(src proto.Message) { 1529 xxx_messageInfo_KeepLockTableBindResponse.Merge(m, src) 1530 } 1531 func (m *KeepLockTableBindResponse) XXX_Size() int { 1532 return m.Size() 1533 } 1534 func (m *KeepLockTableBindResponse) XXX_DiscardUnknown() { 1535 xxx_messageInfo_KeepLockTableBindResponse.DiscardUnknown(m) 1536 } 1537 1538 var xxx_messageInfo_KeepLockTableBindResponse proto.InternalMessageInfo 1539 1540 func (m *KeepLockTableBindResponse) GetOK() bool { 1541 if m != nil { 1542 return m.OK 1543 } 1544 return false 1545 } 1546 1547 func (m *KeepLockTableBindResponse) GetStatus() Status { 1548 if m != nil { 1549 return m.Status 1550 } 1551 return Status_ServiceLockEnable 1552 } 1553 1554 // SetRestartServiceRequest set restart lock service request from allocator request. operator -> TN 1555 type SetRestartServiceRequest struct { 1556 ServiceID string `protobuf:"bytes,1,opt,name=ServiceID,proto3" json:"ServiceID,omitempty"` 1557 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1558 XXX_unrecognized []byte `json:"-"` 1559 XXX_sizecache int32 `json:"-"` 1560 } 1561 1562 func (m *SetRestartServiceRequest) Reset() { *m = SetRestartServiceRequest{} } 1563 func (m *SetRestartServiceRequest) String() string { return proto.CompactTextString(m) } 1564 func (*SetRestartServiceRequest) ProtoMessage() {} 1565 func (*SetRestartServiceRequest) Descriptor() ([]byte, []int) { 1566 return fileDescriptor_164ad2988c7acaf1, []int{17} 1567 } 1568 func (m *SetRestartServiceRequest) XXX_Unmarshal(b []byte) error { 1569 return m.Unmarshal(b) 1570 } 1571 func (m *SetRestartServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1572 if deterministic { 1573 return xxx_messageInfo_SetRestartServiceRequest.Marshal(b, m, deterministic) 1574 } else { 1575 b = b[:cap(b)] 1576 n, err := m.MarshalToSizedBuffer(b) 1577 if err != nil { 1578 return nil, err 1579 } 1580 return b[:n], nil 1581 } 1582 } 1583 func (m *SetRestartServiceRequest) XXX_Merge(src proto.Message) { 1584 xxx_messageInfo_SetRestartServiceRequest.Merge(m, src) 1585 } 1586 func (m *SetRestartServiceRequest) XXX_Size() int { 1587 return m.Size() 1588 } 1589 func (m *SetRestartServiceRequest) XXX_DiscardUnknown() { 1590 xxx_messageInfo_SetRestartServiceRequest.DiscardUnknown(m) 1591 } 1592 1593 var xxx_messageInfo_SetRestartServiceRequest proto.InternalMessageInfo 1594 1595 func (m *SetRestartServiceRequest) GetServiceID() string { 1596 if m != nil { 1597 return m.ServiceID 1598 } 1599 return "" 1600 } 1601 1602 // SetRestartServiceResponse set restart lock service request from allocator response. TN -> operator 1603 type SetRestartServiceResponse struct { 1604 OK bool `protobuf:"varint,1,opt,name=OK,proto3" json:"OK,omitempty"` 1605 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1606 XXX_unrecognized []byte `json:"-"` 1607 XXX_sizecache int32 `json:"-"` 1608 } 1609 1610 func (m *SetRestartServiceResponse) Reset() { *m = SetRestartServiceResponse{} } 1611 func (m *SetRestartServiceResponse) String() string { return proto.CompactTextString(m) } 1612 func (*SetRestartServiceResponse) ProtoMessage() {} 1613 func (*SetRestartServiceResponse) Descriptor() ([]byte, []int) { 1614 return fileDescriptor_164ad2988c7acaf1, []int{18} 1615 } 1616 func (m *SetRestartServiceResponse) XXX_Unmarshal(b []byte) error { 1617 return m.Unmarshal(b) 1618 } 1619 func (m *SetRestartServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1620 if deterministic { 1621 return xxx_messageInfo_SetRestartServiceResponse.Marshal(b, m, deterministic) 1622 } else { 1623 b = b[:cap(b)] 1624 n, err := m.MarshalToSizedBuffer(b) 1625 if err != nil { 1626 return nil, err 1627 } 1628 return b[:n], nil 1629 } 1630 } 1631 func (m *SetRestartServiceResponse) XXX_Merge(src proto.Message) { 1632 xxx_messageInfo_SetRestartServiceResponse.Merge(m, src) 1633 } 1634 func (m *SetRestartServiceResponse) XXX_Size() int { 1635 return m.Size() 1636 } 1637 func (m *SetRestartServiceResponse) XXX_DiscardUnknown() { 1638 xxx_messageInfo_SetRestartServiceResponse.DiscardUnknown(m) 1639 } 1640 1641 var xxx_messageInfo_SetRestartServiceResponse proto.InternalMessageInfo 1642 1643 func (m *SetRestartServiceResponse) GetOK() bool { 1644 if m != nil { 1645 return m.OK 1646 } 1647 return false 1648 } 1649 1650 // CanRestartServiceRequest can restart lock service request from allocator request. operator -> TN 1651 type CanRestartServiceRequest struct { 1652 ServiceID string `protobuf:"bytes,1,opt,name=ServiceID,proto3" json:"ServiceID,omitempty"` 1653 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1654 XXX_unrecognized []byte `json:"-"` 1655 XXX_sizecache int32 `json:"-"` 1656 } 1657 1658 func (m *CanRestartServiceRequest) Reset() { *m = CanRestartServiceRequest{} } 1659 func (m *CanRestartServiceRequest) String() string { return proto.CompactTextString(m) } 1660 func (*CanRestartServiceRequest) ProtoMessage() {} 1661 func (*CanRestartServiceRequest) Descriptor() ([]byte, []int) { 1662 return fileDescriptor_164ad2988c7acaf1, []int{19} 1663 } 1664 func (m *CanRestartServiceRequest) XXX_Unmarshal(b []byte) error { 1665 return m.Unmarshal(b) 1666 } 1667 func (m *CanRestartServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1668 if deterministic { 1669 return xxx_messageInfo_CanRestartServiceRequest.Marshal(b, m, deterministic) 1670 } else { 1671 b = b[:cap(b)] 1672 n, err := m.MarshalToSizedBuffer(b) 1673 if err != nil { 1674 return nil, err 1675 } 1676 return b[:n], nil 1677 } 1678 } 1679 func (m *CanRestartServiceRequest) XXX_Merge(src proto.Message) { 1680 xxx_messageInfo_CanRestartServiceRequest.Merge(m, src) 1681 } 1682 func (m *CanRestartServiceRequest) XXX_Size() int { 1683 return m.Size() 1684 } 1685 func (m *CanRestartServiceRequest) XXX_DiscardUnknown() { 1686 xxx_messageInfo_CanRestartServiceRequest.DiscardUnknown(m) 1687 } 1688 1689 var xxx_messageInfo_CanRestartServiceRequest proto.InternalMessageInfo 1690 1691 func (m *CanRestartServiceRequest) GetServiceID() string { 1692 if m != nil { 1693 return m.ServiceID 1694 } 1695 return "" 1696 } 1697 1698 // CanRestartServiceResponse can restart lock service request from allocator response. TN -> operator 1699 type CanRestartServiceResponse struct { 1700 OK bool `protobuf:"varint,1,opt,name=OK,proto3" json:"OK,omitempty"` 1701 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1702 XXX_unrecognized []byte `json:"-"` 1703 XXX_sizecache int32 `json:"-"` 1704 } 1705 1706 func (m *CanRestartServiceResponse) Reset() { *m = CanRestartServiceResponse{} } 1707 func (m *CanRestartServiceResponse) String() string { return proto.CompactTextString(m) } 1708 func (*CanRestartServiceResponse) ProtoMessage() {} 1709 func (*CanRestartServiceResponse) Descriptor() ([]byte, []int) { 1710 return fileDescriptor_164ad2988c7acaf1, []int{20} 1711 } 1712 func (m *CanRestartServiceResponse) XXX_Unmarshal(b []byte) error { 1713 return m.Unmarshal(b) 1714 } 1715 func (m *CanRestartServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1716 if deterministic { 1717 return xxx_messageInfo_CanRestartServiceResponse.Marshal(b, m, deterministic) 1718 } else { 1719 b = b[:cap(b)] 1720 n, err := m.MarshalToSizedBuffer(b) 1721 if err != nil { 1722 return nil, err 1723 } 1724 return b[:n], nil 1725 } 1726 } 1727 func (m *CanRestartServiceResponse) XXX_Merge(src proto.Message) { 1728 xxx_messageInfo_CanRestartServiceResponse.Merge(m, src) 1729 } 1730 func (m *CanRestartServiceResponse) XXX_Size() int { 1731 return m.Size() 1732 } 1733 func (m *CanRestartServiceResponse) XXX_DiscardUnknown() { 1734 xxx_messageInfo_CanRestartServiceResponse.DiscardUnknown(m) 1735 } 1736 1737 var xxx_messageInfo_CanRestartServiceResponse proto.InternalMessageInfo 1738 1739 func (m *CanRestartServiceResponse) GetOK() bool { 1740 if m != nil { 1741 return m.OK 1742 } 1743 return false 1744 } 1745 1746 // RemainTxnInServiceRequest get remain txn in service request from allocator request. operator -> TN 1747 type RemainTxnInServiceRequest struct { 1748 ServiceID string `protobuf:"bytes,1,opt,name=ServiceID,proto3" json:"ServiceID,omitempty"` 1749 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1750 XXX_unrecognized []byte `json:"-"` 1751 XXX_sizecache int32 `json:"-"` 1752 } 1753 1754 func (m *RemainTxnInServiceRequest) Reset() { *m = RemainTxnInServiceRequest{} } 1755 func (m *RemainTxnInServiceRequest) String() string { return proto.CompactTextString(m) } 1756 func (*RemainTxnInServiceRequest) ProtoMessage() {} 1757 func (*RemainTxnInServiceRequest) Descriptor() ([]byte, []int) { 1758 return fileDescriptor_164ad2988c7acaf1, []int{21} 1759 } 1760 func (m *RemainTxnInServiceRequest) XXX_Unmarshal(b []byte) error { 1761 return m.Unmarshal(b) 1762 } 1763 func (m *RemainTxnInServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1764 if deterministic { 1765 return xxx_messageInfo_RemainTxnInServiceRequest.Marshal(b, m, deterministic) 1766 } else { 1767 b = b[:cap(b)] 1768 n, err := m.MarshalToSizedBuffer(b) 1769 if err != nil { 1770 return nil, err 1771 } 1772 return b[:n], nil 1773 } 1774 } 1775 func (m *RemainTxnInServiceRequest) XXX_Merge(src proto.Message) { 1776 xxx_messageInfo_RemainTxnInServiceRequest.Merge(m, src) 1777 } 1778 func (m *RemainTxnInServiceRequest) XXX_Size() int { 1779 return m.Size() 1780 } 1781 func (m *RemainTxnInServiceRequest) XXX_DiscardUnknown() { 1782 xxx_messageInfo_RemainTxnInServiceRequest.DiscardUnknown(m) 1783 } 1784 1785 var xxx_messageInfo_RemainTxnInServiceRequest proto.InternalMessageInfo 1786 1787 func (m *RemainTxnInServiceRequest) GetServiceID() string { 1788 if m != nil { 1789 return m.ServiceID 1790 } 1791 return "" 1792 } 1793 1794 // RemainTxnInServiceResponse get remain txn in service request from allocator response. TN -> operator 1795 type RemainTxnInServiceResponse struct { 1796 RemainTxn int32 `protobuf:"varint,1,opt,name=RemainTxn,proto3" json:"RemainTxn,omitempty"` 1797 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1798 XXX_unrecognized []byte `json:"-"` 1799 XXX_sizecache int32 `json:"-"` 1800 } 1801 1802 func (m *RemainTxnInServiceResponse) Reset() { *m = RemainTxnInServiceResponse{} } 1803 func (m *RemainTxnInServiceResponse) String() string { return proto.CompactTextString(m) } 1804 func (*RemainTxnInServiceResponse) ProtoMessage() {} 1805 func (*RemainTxnInServiceResponse) Descriptor() ([]byte, []int) { 1806 return fileDescriptor_164ad2988c7acaf1, []int{22} 1807 } 1808 func (m *RemainTxnInServiceResponse) XXX_Unmarshal(b []byte) error { 1809 return m.Unmarshal(b) 1810 } 1811 func (m *RemainTxnInServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1812 if deterministic { 1813 return xxx_messageInfo_RemainTxnInServiceResponse.Marshal(b, m, deterministic) 1814 } else { 1815 b = b[:cap(b)] 1816 n, err := m.MarshalToSizedBuffer(b) 1817 if err != nil { 1818 return nil, err 1819 } 1820 return b[:n], nil 1821 } 1822 } 1823 func (m *RemainTxnInServiceResponse) XXX_Merge(src proto.Message) { 1824 xxx_messageInfo_RemainTxnInServiceResponse.Merge(m, src) 1825 } 1826 func (m *RemainTxnInServiceResponse) XXX_Size() int { 1827 return m.Size() 1828 } 1829 func (m *RemainTxnInServiceResponse) XXX_DiscardUnknown() { 1830 xxx_messageInfo_RemainTxnInServiceResponse.DiscardUnknown(m) 1831 } 1832 1833 var xxx_messageInfo_RemainTxnInServiceResponse proto.InternalMessageInfo 1834 1835 func (m *RemainTxnInServiceResponse) GetRemainTxn() int32 { 1836 if m != nil { 1837 return m.RemainTxn 1838 } 1839 return 0 1840 } 1841 1842 // KeepRemoteLockRequest keep lock on remote lockservice request. CN -> CN 1843 type KeepRemoteLockRequest struct { 1844 ServiceID string `protobuf:"bytes,1,opt,name=ServiceID,proto3" json:"ServiceID,omitempty"` 1845 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1846 XXX_unrecognized []byte `json:"-"` 1847 XXX_sizecache int32 `json:"-"` 1848 } 1849 1850 func (m *KeepRemoteLockRequest) Reset() { *m = KeepRemoteLockRequest{} } 1851 func (m *KeepRemoteLockRequest) String() string { return proto.CompactTextString(m) } 1852 func (*KeepRemoteLockRequest) ProtoMessage() {} 1853 func (*KeepRemoteLockRequest) Descriptor() ([]byte, []int) { 1854 return fileDescriptor_164ad2988c7acaf1, []int{23} 1855 } 1856 func (m *KeepRemoteLockRequest) XXX_Unmarshal(b []byte) error { 1857 return m.Unmarshal(b) 1858 } 1859 func (m *KeepRemoteLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1860 if deterministic { 1861 return xxx_messageInfo_KeepRemoteLockRequest.Marshal(b, m, deterministic) 1862 } else { 1863 b = b[:cap(b)] 1864 n, err := m.MarshalToSizedBuffer(b) 1865 if err != nil { 1866 return nil, err 1867 } 1868 return b[:n], nil 1869 } 1870 } 1871 func (m *KeepRemoteLockRequest) XXX_Merge(src proto.Message) { 1872 xxx_messageInfo_KeepRemoteLockRequest.Merge(m, src) 1873 } 1874 func (m *KeepRemoteLockRequest) XXX_Size() int { 1875 return m.Size() 1876 } 1877 func (m *KeepRemoteLockRequest) XXX_DiscardUnknown() { 1878 xxx_messageInfo_KeepRemoteLockRequest.DiscardUnknown(m) 1879 } 1880 1881 var xxx_messageInfo_KeepRemoteLockRequest proto.InternalMessageInfo 1882 1883 func (m *KeepRemoteLockRequest) GetServiceID() string { 1884 if m != nil { 1885 return m.ServiceID 1886 } 1887 return "" 1888 } 1889 1890 // KeepRemoteLockResponse keep lock on remote lockservice response. TN -> CN 1891 type KeepRemoteLockResponse struct { 1892 OK bool `protobuf:"varint,1,opt,name=OK,proto3" json:"OK,omitempty"` 1893 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1894 XXX_unrecognized []byte `json:"-"` 1895 XXX_sizecache int32 `json:"-"` 1896 } 1897 1898 func (m *KeepRemoteLockResponse) Reset() { *m = KeepRemoteLockResponse{} } 1899 func (m *KeepRemoteLockResponse) String() string { return proto.CompactTextString(m) } 1900 func (*KeepRemoteLockResponse) ProtoMessage() {} 1901 func (*KeepRemoteLockResponse) Descriptor() ([]byte, []int) { 1902 return fileDescriptor_164ad2988c7acaf1, []int{24} 1903 } 1904 func (m *KeepRemoteLockResponse) XXX_Unmarshal(b []byte) error { 1905 return m.Unmarshal(b) 1906 } 1907 func (m *KeepRemoteLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1908 if deterministic { 1909 return xxx_messageInfo_KeepRemoteLockResponse.Marshal(b, m, deterministic) 1910 } else { 1911 b = b[:cap(b)] 1912 n, err := m.MarshalToSizedBuffer(b) 1913 if err != nil { 1914 return nil, err 1915 } 1916 return b[:n], nil 1917 } 1918 } 1919 func (m *KeepRemoteLockResponse) XXX_Merge(src proto.Message) { 1920 xxx_messageInfo_KeepRemoteLockResponse.Merge(m, src) 1921 } 1922 func (m *KeepRemoteLockResponse) XXX_Size() int { 1923 return m.Size() 1924 } 1925 func (m *KeepRemoteLockResponse) XXX_DiscardUnknown() { 1926 xxx_messageInfo_KeepRemoteLockResponse.DiscardUnknown(m) 1927 } 1928 1929 var xxx_messageInfo_KeepRemoteLockResponse proto.InternalMessageInfo 1930 1931 func (m *KeepRemoteLockResponse) GetOK() bool { 1932 if m != nil { 1933 return m.OK 1934 } 1935 return false 1936 } 1937 1938 // ValidateServiceRequest validate if lock service alive request. TN -> CN 1939 type ValidateServiceRequest struct { 1940 ServiceID string `protobuf:"bytes,1,opt,name=ServiceID,proto3" json:"ServiceID,omitempty"` 1941 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1942 XXX_unrecognized []byte `json:"-"` 1943 XXX_sizecache int32 `json:"-"` 1944 } 1945 1946 func (m *ValidateServiceRequest) Reset() { *m = ValidateServiceRequest{} } 1947 func (m *ValidateServiceRequest) String() string { return proto.CompactTextString(m) } 1948 func (*ValidateServiceRequest) ProtoMessage() {} 1949 func (*ValidateServiceRequest) Descriptor() ([]byte, []int) { 1950 return fileDescriptor_164ad2988c7acaf1, []int{25} 1951 } 1952 func (m *ValidateServiceRequest) XXX_Unmarshal(b []byte) error { 1953 return m.Unmarshal(b) 1954 } 1955 func (m *ValidateServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1956 if deterministic { 1957 return xxx_messageInfo_ValidateServiceRequest.Marshal(b, m, deterministic) 1958 } else { 1959 b = b[:cap(b)] 1960 n, err := m.MarshalToSizedBuffer(b) 1961 if err != nil { 1962 return nil, err 1963 } 1964 return b[:n], nil 1965 } 1966 } 1967 func (m *ValidateServiceRequest) XXX_Merge(src proto.Message) { 1968 xxx_messageInfo_ValidateServiceRequest.Merge(m, src) 1969 } 1970 func (m *ValidateServiceRequest) XXX_Size() int { 1971 return m.Size() 1972 } 1973 func (m *ValidateServiceRequest) XXX_DiscardUnknown() { 1974 xxx_messageInfo_ValidateServiceRequest.DiscardUnknown(m) 1975 } 1976 1977 var xxx_messageInfo_ValidateServiceRequest proto.InternalMessageInfo 1978 1979 func (m *ValidateServiceRequest) GetServiceID() string { 1980 if m != nil { 1981 return m.ServiceID 1982 } 1983 return "" 1984 } 1985 1986 // KeepLockTableBindResponse keep lock table bind response. CN -> DN 1987 type ValidateServiceResponse struct { 1988 OK bool `protobuf:"varint,1,opt,name=OK,proto3" json:"OK,omitempty"` 1989 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1990 XXX_unrecognized []byte `json:"-"` 1991 XXX_sizecache int32 `json:"-"` 1992 } 1993 1994 func (m *ValidateServiceResponse) Reset() { *m = ValidateServiceResponse{} } 1995 func (m *ValidateServiceResponse) String() string { return proto.CompactTextString(m) } 1996 func (*ValidateServiceResponse) ProtoMessage() {} 1997 func (*ValidateServiceResponse) Descriptor() ([]byte, []int) { 1998 return fileDescriptor_164ad2988c7acaf1, []int{26} 1999 } 2000 func (m *ValidateServiceResponse) XXX_Unmarshal(b []byte) error { 2001 return m.Unmarshal(b) 2002 } 2003 func (m *ValidateServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2004 if deterministic { 2005 return xxx_messageInfo_ValidateServiceResponse.Marshal(b, m, deterministic) 2006 } else { 2007 b = b[:cap(b)] 2008 n, err := m.MarshalToSizedBuffer(b) 2009 if err != nil { 2010 return nil, err 2011 } 2012 return b[:n], nil 2013 } 2014 } 2015 func (m *ValidateServiceResponse) XXX_Merge(src proto.Message) { 2016 xxx_messageInfo_ValidateServiceResponse.Merge(m, src) 2017 } 2018 func (m *ValidateServiceResponse) XXX_Size() int { 2019 return m.Size() 2020 } 2021 func (m *ValidateServiceResponse) XXX_DiscardUnknown() { 2022 xxx_messageInfo_ValidateServiceResponse.DiscardUnknown(m) 2023 } 2024 2025 var xxx_messageInfo_ValidateServiceResponse proto.InternalMessageInfo 2026 2027 func (m *ValidateServiceResponse) GetOK() bool { 2028 if m != nil { 2029 return m.OK 2030 } 2031 return false 2032 } 2033 2034 // CannotCommitRequest cannot commit request. CN -> TN 2035 type CannotCommitRequest struct { 2036 OrphanTxnList []OrphanTxn `protobuf:"bytes,1,rep,name=OrphanTxnList,proto3" json:"OrphanTxnList"` 2037 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2038 XXX_unrecognized []byte `json:"-"` 2039 XXX_sizecache int32 `json:"-"` 2040 } 2041 2042 func (m *CannotCommitRequest) Reset() { *m = CannotCommitRequest{} } 2043 func (m *CannotCommitRequest) String() string { return proto.CompactTextString(m) } 2044 func (*CannotCommitRequest) ProtoMessage() {} 2045 func (*CannotCommitRequest) Descriptor() ([]byte, []int) { 2046 return fileDescriptor_164ad2988c7acaf1, []int{27} 2047 } 2048 func (m *CannotCommitRequest) XXX_Unmarshal(b []byte) error { 2049 return m.Unmarshal(b) 2050 } 2051 func (m *CannotCommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2052 if deterministic { 2053 return xxx_messageInfo_CannotCommitRequest.Marshal(b, m, deterministic) 2054 } else { 2055 b = b[:cap(b)] 2056 n, err := m.MarshalToSizedBuffer(b) 2057 if err != nil { 2058 return nil, err 2059 } 2060 return b[:n], nil 2061 } 2062 } 2063 func (m *CannotCommitRequest) XXX_Merge(src proto.Message) { 2064 xxx_messageInfo_CannotCommitRequest.Merge(m, src) 2065 } 2066 func (m *CannotCommitRequest) XXX_Size() int { 2067 return m.Size() 2068 } 2069 func (m *CannotCommitRequest) XXX_DiscardUnknown() { 2070 xxx_messageInfo_CannotCommitRequest.DiscardUnknown(m) 2071 } 2072 2073 var xxx_messageInfo_CannotCommitRequest proto.InternalMessageInfo 2074 2075 func (m *CannotCommitRequest) GetOrphanTxnList() []OrphanTxn { 2076 if m != nil { 2077 return m.OrphanTxnList 2078 } 2079 return nil 2080 } 2081 2082 // CannotCommitResponse cannot commit response. TN -> CN 2083 type CannotCommitResponse struct { 2084 CommittingTxn [][]byte `protobuf:"bytes,1,rep,name=CommittingTxn,proto3" json:"CommittingTxn,omitempty"` 2085 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2086 XXX_unrecognized []byte `json:"-"` 2087 XXX_sizecache int32 `json:"-"` 2088 } 2089 2090 func (m *CannotCommitResponse) Reset() { *m = CannotCommitResponse{} } 2091 func (m *CannotCommitResponse) String() string { return proto.CompactTextString(m) } 2092 func (*CannotCommitResponse) ProtoMessage() {} 2093 func (*CannotCommitResponse) Descriptor() ([]byte, []int) { 2094 return fileDescriptor_164ad2988c7acaf1, []int{28} 2095 } 2096 func (m *CannotCommitResponse) XXX_Unmarshal(b []byte) error { 2097 return m.Unmarshal(b) 2098 } 2099 func (m *CannotCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2100 if deterministic { 2101 return xxx_messageInfo_CannotCommitResponse.Marshal(b, m, deterministic) 2102 } else { 2103 b = b[:cap(b)] 2104 n, err := m.MarshalToSizedBuffer(b) 2105 if err != nil { 2106 return nil, err 2107 } 2108 return b[:n], nil 2109 } 2110 } 2111 func (m *CannotCommitResponse) XXX_Merge(src proto.Message) { 2112 xxx_messageInfo_CannotCommitResponse.Merge(m, src) 2113 } 2114 func (m *CannotCommitResponse) XXX_Size() int { 2115 return m.Size() 2116 } 2117 func (m *CannotCommitResponse) XXX_DiscardUnknown() { 2118 xxx_messageInfo_CannotCommitResponse.DiscardUnknown(m) 2119 } 2120 2121 var xxx_messageInfo_CannotCommitResponse proto.InternalMessageInfo 2122 2123 func (m *CannotCommitResponse) GetCommittingTxn() [][]byte { 2124 if m != nil { 2125 return m.CommittingTxn 2126 } 2127 return nil 2128 } 2129 2130 type GetActiveTxnRequest struct { 2131 ServiceID string `protobuf:"bytes,1,opt,name=ServiceID,proto3" json:"ServiceID,omitempty"` 2132 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2133 XXX_unrecognized []byte `json:"-"` 2134 XXX_sizecache int32 `json:"-"` 2135 } 2136 2137 func (m *GetActiveTxnRequest) Reset() { *m = GetActiveTxnRequest{} } 2138 func (m *GetActiveTxnRequest) String() string { return proto.CompactTextString(m) } 2139 func (*GetActiveTxnRequest) ProtoMessage() {} 2140 func (*GetActiveTxnRequest) Descriptor() ([]byte, []int) { 2141 return fileDescriptor_164ad2988c7acaf1, []int{29} 2142 } 2143 func (m *GetActiveTxnRequest) XXX_Unmarshal(b []byte) error { 2144 return m.Unmarshal(b) 2145 } 2146 func (m *GetActiveTxnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2147 if deterministic { 2148 return xxx_messageInfo_GetActiveTxnRequest.Marshal(b, m, deterministic) 2149 } else { 2150 b = b[:cap(b)] 2151 n, err := m.MarshalToSizedBuffer(b) 2152 if err != nil { 2153 return nil, err 2154 } 2155 return b[:n], nil 2156 } 2157 } 2158 func (m *GetActiveTxnRequest) XXX_Merge(src proto.Message) { 2159 xxx_messageInfo_GetActiveTxnRequest.Merge(m, src) 2160 } 2161 func (m *GetActiveTxnRequest) XXX_Size() int { 2162 return m.Size() 2163 } 2164 func (m *GetActiveTxnRequest) XXX_DiscardUnknown() { 2165 xxx_messageInfo_GetActiveTxnRequest.DiscardUnknown(m) 2166 } 2167 2168 var xxx_messageInfo_GetActiveTxnRequest proto.InternalMessageInfo 2169 2170 func (m *GetActiveTxnRequest) GetServiceID() string { 2171 if m != nil { 2172 return m.ServiceID 2173 } 2174 return "" 2175 } 2176 2177 type GetActiveTxnResponse struct { 2178 Valid bool `protobuf:"varint,1,opt,name=Valid,proto3" json:"Valid,omitempty"` 2179 Txn [][]byte `protobuf:"bytes,2,rep,name=Txn,proto3" json:"Txn,omitempty"` 2180 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2181 XXX_unrecognized []byte `json:"-"` 2182 XXX_sizecache int32 `json:"-"` 2183 } 2184 2185 func (m *GetActiveTxnResponse) Reset() { *m = GetActiveTxnResponse{} } 2186 func (m *GetActiveTxnResponse) String() string { return proto.CompactTextString(m) } 2187 func (*GetActiveTxnResponse) ProtoMessage() {} 2188 func (*GetActiveTxnResponse) Descriptor() ([]byte, []int) { 2189 return fileDescriptor_164ad2988c7acaf1, []int{30} 2190 } 2191 func (m *GetActiveTxnResponse) XXX_Unmarshal(b []byte) error { 2192 return m.Unmarshal(b) 2193 } 2194 func (m *GetActiveTxnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2195 if deterministic { 2196 return xxx_messageInfo_GetActiveTxnResponse.Marshal(b, m, deterministic) 2197 } else { 2198 b = b[:cap(b)] 2199 n, err := m.MarshalToSizedBuffer(b) 2200 if err != nil { 2201 return nil, err 2202 } 2203 return b[:n], nil 2204 } 2205 } 2206 func (m *GetActiveTxnResponse) XXX_Merge(src proto.Message) { 2207 xxx_messageInfo_GetActiveTxnResponse.Merge(m, src) 2208 } 2209 func (m *GetActiveTxnResponse) XXX_Size() int { 2210 return m.Size() 2211 } 2212 func (m *GetActiveTxnResponse) XXX_DiscardUnknown() { 2213 xxx_messageInfo_GetActiveTxnResponse.DiscardUnknown(m) 2214 } 2215 2216 var xxx_messageInfo_GetActiveTxnResponse proto.InternalMessageInfo 2217 2218 func (m *GetActiveTxnResponse) GetValid() bool { 2219 if m != nil { 2220 return m.Valid 2221 } 2222 return false 2223 } 2224 2225 func (m *GetActiveTxnResponse) GetTxn() [][]byte { 2226 if m != nil { 2227 return m.Txn 2228 } 2229 return nil 2230 } 2231 2232 type OrphanTxn struct { 2233 Service string `protobuf:"bytes,1,opt,name=Service,proto3" json:"Service,omitempty"` 2234 Txn [][]byte `protobuf:"bytes,2,rep,name=Txn,proto3" json:"Txn,omitempty"` 2235 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2236 XXX_unrecognized []byte `json:"-"` 2237 XXX_sizecache int32 `json:"-"` 2238 } 2239 2240 func (m *OrphanTxn) Reset() { *m = OrphanTxn{} } 2241 func (m *OrphanTxn) String() string { return proto.CompactTextString(m) } 2242 func (*OrphanTxn) ProtoMessage() {} 2243 func (*OrphanTxn) Descriptor() ([]byte, []int) { 2244 return fileDescriptor_164ad2988c7acaf1, []int{31} 2245 } 2246 func (m *OrphanTxn) XXX_Unmarshal(b []byte) error { 2247 return m.Unmarshal(b) 2248 } 2249 func (m *OrphanTxn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2250 if deterministic { 2251 return xxx_messageInfo_OrphanTxn.Marshal(b, m, deterministic) 2252 } else { 2253 b = b[:cap(b)] 2254 n, err := m.MarshalToSizedBuffer(b) 2255 if err != nil { 2256 return nil, err 2257 } 2258 return b[:n], nil 2259 } 2260 } 2261 func (m *OrphanTxn) XXX_Merge(src proto.Message) { 2262 xxx_messageInfo_OrphanTxn.Merge(m, src) 2263 } 2264 func (m *OrphanTxn) XXX_Size() int { 2265 return m.Size() 2266 } 2267 func (m *OrphanTxn) XXX_DiscardUnknown() { 2268 xxx_messageInfo_OrphanTxn.DiscardUnknown(m) 2269 } 2270 2271 var xxx_messageInfo_OrphanTxn proto.InternalMessageInfo 2272 2273 func (m *OrphanTxn) GetService() string { 2274 if m != nil { 2275 return m.Service 2276 } 2277 return "" 2278 } 2279 2280 func (m *OrphanTxn) GetTxn() [][]byte { 2281 if m != nil { 2282 return m.Txn 2283 } 2284 return nil 2285 } 2286 2287 // Result result is used to tell the caller the result of the lock operation. 2288 type Result struct { 2289 // LockedOn lock is locked on which locktable 2290 LockedOn LockTable `protobuf:"bytes,1,opt,name=LockedOn,proto3" json:"LockedOn"` 2291 // HasConflict if true means encounter lock conflict 2292 HasConflict bool `protobuf:"varint,2,opt,name=HasConflict,proto3" json:"HasConflict,omitempty"` 2293 // HasPrevCommit if HasPrevCommit && HasConflict, Timestamp is the latest commit 2294 // timestamp. 2295 HasPrevCommit bool `protobuf:"varint,3,opt,name=HasPrevCommit,proto3" json:"HasPrevCommit,omitempty"` 2296 // Timestamp is used to help determine which version of RC should be queried 2297 // under the RC isolation level, this timestamp ensures that the latest data 2298 // is always read. 2299 Timestamp timestamp.Timestamp `protobuf:"bytes,4,opt,name=Timestamp,proto3" json:"Timestamp"` 2300 // TableDefChanged conflict with ddl lock, need rebuild plan to get new table def 2301 TableDefChanged bool `protobuf:"varint,5,opt,name=TableDefChanged,proto3" json:"TableDefChanged,omitempty"` 2302 ConflictKey []byte `protobuf:"bytes,6,opt,name=ConflictKey,proto3" json:"ConflictKey,omitempty"` 2303 ConflictTxn []byte `protobuf:"bytes,7,opt,name=ConflictTxn,proto3" json:"ConflictTxn,omitempty"` 2304 PrevWaiter []byte `protobuf:"bytes,8,opt,name=PrevWaiter,proto3" json:"PrevWaiter,omitempty"` 2305 Waiters uint32 `protobuf:"varint,9,opt,name=Waiters,proto3" json:"Waiters,omitempty"` 2306 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2307 XXX_unrecognized []byte `json:"-"` 2308 XXX_sizecache int32 `json:"-"` 2309 } 2310 2311 func (m *Result) Reset() { *m = Result{} } 2312 func (m *Result) String() string { return proto.CompactTextString(m) } 2313 func (*Result) ProtoMessage() {} 2314 func (*Result) Descriptor() ([]byte, []int) { 2315 return fileDescriptor_164ad2988c7acaf1, []int{32} 2316 } 2317 func (m *Result) XXX_Unmarshal(b []byte) error { 2318 return m.Unmarshal(b) 2319 } 2320 func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2321 if deterministic { 2322 return xxx_messageInfo_Result.Marshal(b, m, deterministic) 2323 } else { 2324 b = b[:cap(b)] 2325 n, err := m.MarshalToSizedBuffer(b) 2326 if err != nil { 2327 return nil, err 2328 } 2329 return b[:n], nil 2330 } 2331 } 2332 func (m *Result) XXX_Merge(src proto.Message) { 2333 xxx_messageInfo_Result.Merge(m, src) 2334 } 2335 func (m *Result) XXX_Size() int { 2336 return m.Size() 2337 } 2338 func (m *Result) XXX_DiscardUnknown() { 2339 xxx_messageInfo_Result.DiscardUnknown(m) 2340 } 2341 2342 var xxx_messageInfo_Result proto.InternalMessageInfo 2343 2344 func (m *Result) GetLockedOn() LockTable { 2345 if m != nil { 2346 return m.LockedOn 2347 } 2348 return LockTable{} 2349 } 2350 2351 func (m *Result) GetHasConflict() bool { 2352 if m != nil { 2353 return m.HasConflict 2354 } 2355 return false 2356 } 2357 2358 func (m *Result) GetHasPrevCommit() bool { 2359 if m != nil { 2360 return m.HasPrevCommit 2361 } 2362 return false 2363 } 2364 2365 func (m *Result) GetTimestamp() timestamp.Timestamp { 2366 if m != nil { 2367 return m.Timestamp 2368 } 2369 return timestamp.Timestamp{} 2370 } 2371 2372 func (m *Result) GetTableDefChanged() bool { 2373 if m != nil { 2374 return m.TableDefChanged 2375 } 2376 return false 2377 } 2378 2379 func (m *Result) GetConflictKey() []byte { 2380 if m != nil { 2381 return m.ConflictKey 2382 } 2383 return nil 2384 } 2385 2386 func (m *Result) GetConflictTxn() []byte { 2387 if m != nil { 2388 return m.ConflictTxn 2389 } 2390 return nil 2391 } 2392 2393 func (m *Result) GetPrevWaiter() []byte { 2394 if m != nil { 2395 return m.PrevWaiter 2396 } 2397 return nil 2398 } 2399 2400 func (m *Result) GetWaiters() uint32 { 2401 if m != nil { 2402 return m.Waiters 2403 } 2404 return 0 2405 } 2406 2407 type ExtraMutation struct { 2408 Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 2409 Skip bool `protobuf:"varint,2,opt,name=skip,proto3" json:"skip,omitempty"` 2410 ReplaceTo []byte `protobuf:"bytes,3,opt,name=replaceTo,proto3" json:"replaceTo,omitempty"` 2411 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2412 XXX_unrecognized []byte `json:"-"` 2413 XXX_sizecache int32 `json:"-"` 2414 } 2415 2416 func (m *ExtraMutation) Reset() { *m = ExtraMutation{} } 2417 func (m *ExtraMutation) String() string { return proto.CompactTextString(m) } 2418 func (*ExtraMutation) ProtoMessage() {} 2419 func (*ExtraMutation) Descriptor() ([]byte, []int) { 2420 return fileDescriptor_164ad2988c7acaf1, []int{33} 2421 } 2422 func (m *ExtraMutation) XXX_Unmarshal(b []byte) error { 2423 return m.Unmarshal(b) 2424 } 2425 func (m *ExtraMutation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2426 if deterministic { 2427 return xxx_messageInfo_ExtraMutation.Marshal(b, m, deterministic) 2428 } else { 2429 b = b[:cap(b)] 2430 n, err := m.MarshalToSizedBuffer(b) 2431 if err != nil { 2432 return nil, err 2433 } 2434 return b[:n], nil 2435 } 2436 } 2437 func (m *ExtraMutation) XXX_Merge(src proto.Message) { 2438 xxx_messageInfo_ExtraMutation.Merge(m, src) 2439 } 2440 func (m *ExtraMutation) XXX_Size() int { 2441 return m.Size() 2442 } 2443 func (m *ExtraMutation) XXX_DiscardUnknown() { 2444 xxx_messageInfo_ExtraMutation.DiscardUnknown(m) 2445 } 2446 2447 var xxx_messageInfo_ExtraMutation proto.InternalMessageInfo 2448 2449 func (m *ExtraMutation) GetKey() []byte { 2450 if m != nil { 2451 return m.Key 2452 } 2453 return nil 2454 } 2455 2456 func (m *ExtraMutation) GetSkip() bool { 2457 if m != nil { 2458 return m.Skip 2459 } 2460 return false 2461 } 2462 2463 func (m *ExtraMutation) GetReplaceTo() []byte { 2464 if m != nil { 2465 return m.ReplaceTo 2466 } 2467 return nil 2468 } 2469 2470 func init() { 2471 proto.RegisterEnum("lock.Granularity", Granularity_name, Granularity_value) 2472 proto.RegisterEnum("lock.LockMode", LockMode_name, LockMode_value) 2473 proto.RegisterEnum("lock.WaitPolicy", WaitPolicy_name, WaitPolicy_value) 2474 proto.RegisterEnum("lock.Sharding", Sharding_name, Sharding_value) 2475 proto.RegisterEnum("lock.Method", Method_name, Method_value) 2476 proto.RegisterEnum("lock.Status", Status_name, Status_value) 2477 proto.RegisterType((*LockOptions)(nil), "lock.LockOptions") 2478 proto.RegisterType((*LockTable)(nil), "lock.LockTable") 2479 proto.RegisterType((*Request)(nil), "lock.Request") 2480 proto.RegisterType((*Response)(nil), "lock.Response") 2481 proto.RegisterType((*LockRequest)(nil), "lock.LockRequest") 2482 proto.RegisterType((*LockResponse)(nil), "lock.LockResponse") 2483 proto.RegisterType((*GetTxnLockRequest)(nil), "lock.GetTxnLockRequest") 2484 proto.RegisterType((*GetTxnLockResponse)(nil), "lock.GetTxnLockResponse") 2485 proto.RegisterType((*GetWaitingListRequest)(nil), "lock.GetWaitingListRequest") 2486 proto.RegisterType((*GetWaitingListResponse)(nil), "lock.GetWaitingListResponse") 2487 proto.RegisterType((*WaitTxn)(nil), "lock.WaitTxn") 2488 proto.RegisterType((*UnlockRequest)(nil), "lock.UnlockRequest") 2489 proto.RegisterType((*UnlockResponse)(nil), "lock.UnlockResponse") 2490 proto.RegisterType((*GetBindRequest)(nil), "lock.GetBindRequest") 2491 proto.RegisterType((*GetBindResponse)(nil), "lock.GetBindResponse") 2492 proto.RegisterType((*KeepLockTableBindRequest)(nil), "lock.KeepLockTableBindRequest") 2493 proto.RegisterType((*KeepLockTableBindResponse)(nil), "lock.KeepLockTableBindResponse") 2494 proto.RegisterType((*SetRestartServiceRequest)(nil), "lock.SetRestartServiceRequest") 2495 proto.RegisterType((*SetRestartServiceResponse)(nil), "lock.SetRestartServiceResponse") 2496 proto.RegisterType((*CanRestartServiceRequest)(nil), "lock.CanRestartServiceRequest") 2497 proto.RegisterType((*CanRestartServiceResponse)(nil), "lock.CanRestartServiceResponse") 2498 proto.RegisterType((*RemainTxnInServiceRequest)(nil), "lock.RemainTxnInServiceRequest") 2499 proto.RegisterType((*RemainTxnInServiceResponse)(nil), "lock.RemainTxnInServiceResponse") 2500 proto.RegisterType((*KeepRemoteLockRequest)(nil), "lock.KeepRemoteLockRequest") 2501 proto.RegisterType((*KeepRemoteLockResponse)(nil), "lock.KeepRemoteLockResponse") 2502 proto.RegisterType((*ValidateServiceRequest)(nil), "lock.ValidateServiceRequest") 2503 proto.RegisterType((*ValidateServiceResponse)(nil), "lock.ValidateServiceResponse") 2504 proto.RegisterType((*CannotCommitRequest)(nil), "lock.CannotCommitRequest") 2505 proto.RegisterType((*CannotCommitResponse)(nil), "lock.CannotCommitResponse") 2506 proto.RegisterType((*GetActiveTxnRequest)(nil), "lock.GetActiveTxnRequest") 2507 proto.RegisterType((*GetActiveTxnResponse)(nil), "lock.GetActiveTxnResponse") 2508 proto.RegisterType((*OrphanTxn)(nil), "lock.OrphanTxn") 2509 proto.RegisterType((*Result)(nil), "lock.Result") 2510 proto.RegisterType((*ExtraMutation)(nil), "lock.ExtraMutation") 2511 } 2512 2513 func init() { proto.RegisterFile("lock.proto", fileDescriptor_164ad2988c7acaf1) } 2514 2515 var fileDescriptor_164ad2988c7acaf1 = []byte{ 2516 // 1873 bytes of a gzipped FileDescriptorProto 2517 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0xdd, 0x72, 0xdb, 0xc6, 2518 0x15, 0x16, 0x48, 0x8a, 0x3f, 0x07, 0xfc, 0x81, 0xd6, 0xb2, 0x02, 0xbb, 0xa9, 0xcc, 0x62, 0x9c, 2519 0x19, 0x86, 0x69, 0xad, 0xb1, 0x5c, 0x27, 0xa9, 0xd3, 0xb8, 0x53, 0x4b, 0xb6, 0xe2, 0xd8, 0x8e, 2520 0xd2, 0x25, 0xed, 0xce, 0xf4, 0x0e, 0x22, 0xd7, 0x14, 0x46, 0x24, 0xc0, 0x02, 0x4b, 0x9b, 0x7a, 2521 0x83, 0x3e, 0x41, 0xa7, 0x37, 0xbd, 0xef, 0x4d, 0x6f, 0xfa, 0x14, 0xb9, 0xcc, 0x4c, 0xef, 0x3b, 2522 0xad, 0x67, 0xfa, 0x06, 0x7d, 0x80, 0xce, 0xfe, 0x00, 0xd8, 0xc5, 0x8f, 0x18, 0xe7, 0x0e, 0x7b, 2523 0xce, 0xd9, 0x73, 0xf6, 0x1c, 0xec, 0x7e, 0xe7, 0xdb, 0x05, 0x98, 0x07, 0x93, 0x8b, 0x3b, 0xcb, 2524 0x30, 0xa0, 0x01, 0xaa, 0xb1, 0xef, 0x9b, 0xbf, 0x98, 0x79, 0xf4, 0x7c, 0x75, 0x76, 0x67, 0x12, 2525 0x2c, 0x0e, 0x66, 0xc1, 0x2c, 0x38, 0xe0, 0xca, 0xb3, 0xd5, 0x6b, 0x3e, 0xe2, 0x03, 0xfe, 0x25, 2526 0x26, 0xdd, 0xec, 0x51, 0x6f, 0x41, 0x22, 0xea, 0x2e, 0x96, 0x42, 0xe0, 0xfc, 0xaf, 0x02, 0xe6, 2527 0xf3, 0x60, 0x72, 0x71, 0xba, 0xa4, 0x5e, 0xe0, 0x47, 0xe8, 0x1e, 0x98, 0x27, 0xa1, 0xeb, 0xaf, 2528 0xe6, 0x6e, 0xe8, 0xd1, 0x4b, 0xdb, 0xe8, 0x1b, 0x83, 0xee, 0xe1, 0xce, 0x1d, 0x1e, 0x57, 0x51, 2529 0x60, 0xd5, 0x0a, 0x39, 0x50, 0x7b, 0x11, 0x4c, 0x89, 0x5d, 0xe1, 0xd6, 0x5d, 0x61, 0xcd, 0xbc, 2530 0x32, 0x29, 0xe6, 0x3a, 0x34, 0x80, 0xfa, 0xb7, 0xc1, 0xdc, 0x9b, 0x5c, 0xda, 0x55, 0x6e, 0x65, 2531 0x09, 0xab, 0xdf, 0xbb, 0x1e, 0x15, 0x72, 0x2c, 0xf5, 0xe8, 0x43, 0x68, 0x3d, 0x09, 0xc2, 0xb7, 2532 0x6e, 0x38, 0x1d, 0x07, 0x76, 0xad, 0x6f, 0x0c, 0x5a, 0x38, 0x15, 0xa0, 0x01, 0xf4, 0xc6, 0xee, 2533 0xd9, 0x9c, 0x1c, 0x93, 0xd7, 0x47, 0xe7, 0xae, 0x3f, 0x23, 0x53, 0x7b, 0xbb, 0x6f, 0x0c, 0x9a, 2534 0x38, 0x2b, 0x66, 0x7e, 0x30, 0xa1, 0xe1, 0x25, 0x0b, 0x61, 0xd7, 0xfb, 0xc6, 0xa0, 0x8a, 0x53, 2535 0x01, 0xda, 0x85, 0xed, 0x93, 0x30, 0x58, 0x2d, 0xed, 0x46, 0xdf, 0x18, 0x74, 0xb0, 0x18, 0xa0, 2536 0x21, 0x34, 0x47, 0xe7, 0x6e, 0x38, 0xf5, 0xfc, 0x99, 0xdd, 0x54, 0xb3, 0x89, 0xa5, 0x38, 0xd1, 2537 0xa3, 0x07, 0x00, 0x23, 0xdf, 0x5d, 0x8e, 0xce, 0x03, 0x3a, 0x8e, 0xec, 0x56, 0xdf, 0x18, 0x98, 2538 0x87, 0xbb, 0x77, 0xd2, 0x02, 0x8f, 0xe3, 0xaf, 0x47, 0xb5, 0xef, 0xfe, 0x75, 0x6b, 0x0b, 0x2b, 2539 0xd6, 0xce, 0x3f, 0x0d, 0x68, 0xb1, 0x02, 0xf1, 0x35, 0xb3, 0xb5, 0xf0, 0x0f, 0x5e, 0xee, 0x1a, 2540 0x16, 0x03, 0xb6, 0xfe, 0x11, 0x09, 0xdf, 0x78, 0x13, 0xf2, 0xf4, 0x98, 0x97, 0xb6, 0x85, 0x53, 2541 0x01, 0xb2, 0xa1, 0xf1, 0x8a, 0x84, 0x91, 0x17, 0xf8, 0xbc, 0xa0, 0x35, 0x1c, 0x0f, 0x99, 0xb7, 2542 0x57, 0xee, 0xdc, 0x9b, 0xf2, 0xda, 0x35, 0xb1, 0x18, 0xa4, 0xf9, 0x6e, 0x97, 0xe5, 0x5b, 0xdf, 2543 0x90, 0x6f, 0x1f, 0xcc, 0xd3, 0xd0, 0x9b, 0x79, 0xbe, 0x58, 0x6b, 0x83, 0x47, 0x55, 0x45, 0xce, 2544 0x5f, 0x9a, 0xd0, 0xc0, 0xe4, 0x8f, 0x2b, 0x12, 0x51, 0x51, 0x7d, 0xfe, 0xf9, 0xf4, 0x58, 0xe6, 2545 0x95, 0x0a, 0xd0, 0x3d, 0x25, 0x7d, 0x9e, 0x9b, 0x79, 0xd8, 0x4b, 0xb7, 0x0d, 0x17, 0xcb, 0xaa, 2546 0x29, 0x65, 0xba, 0x0d, 0xf5, 0x17, 0x84, 0x9e, 0x07, 0x53, 0xb9, 0x85, 0xda, 0x62, 0x86, 0x90, 2547 0x61, 0xa9, 0x43, 0x9f, 0x40, 0x8d, 0x4d, 0xe1, 0xd9, 0x9b, 0xf1, 0xd6, 0x65, 0x12, 0x19, 0x5d, 2548 0xfa, 0xe5, 0x46, 0xe8, 0x2e, 0xd4, 0x5f, 0xfa, 0xcc, 0x82, 0x97, 0xc5, 0x3c, 0xbc, 0x26, 0xcc, 2549 0x85, 0x4c, 0x9f, 0x20, 0x0d, 0xd1, 0x97, 0x00, 0x27, 0x84, 0x8e, 0xd7, 0x3e, 0x8f, 0x52, 0xe7, 2550 0xd3, 0x3e, 0x90, 0x07, 0x24, 0x91, 0xeb, 0x53, 0x95, 0x09, 0xe8, 0x29, 0x74, 0x4f, 0x08, 0x65, 2551 0x5b, 0xd0, 0xf3, 0x67, 0xcf, 0xbd, 0x88, 0xf2, 0x42, 0x9a, 0x87, 0x3f, 0x49, 0x5c, 0x28, 0x3a, 2552 0xdd, 0x4d, 0x66, 0x22, 0xfa, 0x25, 0x34, 0x4e, 0x08, 0x7d, 0xe4, 0xf9, 0x53, 0xbe, 0x57, 0xd9, 2553 0xee, 0x8b, 0x7d, 0x30, 0xa1, 0x3e, 0x39, 0x36, 0x45, 0x18, 0x76, 0x9e, 0x11, 0xb2, 0x4c, 0xeb, 2554 0xcc, 0xe6, 0x8b, 0xdd, 0xbb, 0x2f, 0xe6, 0xe7, 0xd4, 0xba, 0xa7, 0xfc, 0x74, 0x96, 0x14, 0x13, 2555 0x62, 0xb2, 0x08, 0x28, 0xe1, 0x75, 0x01, 0x35, 0x29, 0x5d, 0x97, 0x49, 0x4a, 0x57, 0xa2, 0xe7, 2556 0xd0, 0xe3, 0x1b, 0xd6, 0xa5, 0x44, 0x6e, 0x76, 0xdb, 0xe4, 0xbe, 0x3e, 0x14, 0xbe, 0x32, 0x4a, 2557 0xdd, 0x59, 0x76, 0x2a, 0x3a, 0x82, 0xf6, 0x91, 0xeb, 0xfb, 0x01, 0x3d, 0x0a, 0x16, 0x0b, 0x8f, 2558 0xda, 0x6d, 0xee, 0xea, 0x86, 0x70, 0xa5, 0x6a, 0x74, 0x3f, 0xda, 0x24, 0xe6, 0xe4, 0x84, 0xd0, 2559 0xdf, 0x4e, 0xa8, 0xf7, 0x86, 0x8c, 0xd7, 0xbe, 0xdd, 0x51, 0x9d, 0xa8, 0x9a, 0x8c, 0x13, 0x55, 2560 0xc5, 0xca, 0x3e, 0x22, 0x14, 0x33, 0x44, 0x08, 0x69, 0x9c, 0x59, 0x57, 0x2d, 0x7b, 0x4e, 0x9d, 2561 0x29, 0x7b, 0x4e, 0xcf, 0x7c, 0x1e, 0xb9, 0x7e, 0xc6, 0x67, 0x4f, 0xf5, 0x99, 0x53, 0x67, 0x7c, 2562 0xe6, 0xf4, 0xe8, 0x25, 0x20, 0x4c, 0x16, 0xae, 0xe7, 0x8f, 0xd7, 0xfe, 0x53, 0x3f, 0x76, 0x6a, 2563 0x71, 0xa7, 0xb7, 0x84, 0xd3, 0xbc, 0x5e, 0xf7, 0x5a, 0xe0, 0xc0, 0xf9, 0x47, 0x13, 0x9a, 0x98, 2564 0x44, 0xcb, 0xc0, 0x8f, 0xc8, 0x06, 0x6c, 0x48, 0x8f, 0x79, 0xe5, 0x8a, 0x63, 0xbe, 0x0b, 0xdb, 2565 0x8f, 0xc3, 0x30, 0x08, 0x39, 0x16, 0xb4, 0xb1, 0x18, 0xa0, 0x8f, 0xa1, 0xf1, 0x0d, 0x79, 0xcb, 2566 0xb7, 0x74, 0xad, 0x10, 0x55, 0x70, 0xac, 0x47, 0x3f, 0x97, 0x38, 0x21, 0x0e, 0x3e, 0x52, 0x71, 2567 0x42, 0x2c, 0x53, 0x03, 0x8a, 0xc3, 0x04, 0x28, 0xea, 0xea, 0x51, 0x8b, 0x81, 0x42, 0x9b, 0x11, 2568 0x23, 0xc5, 0x43, 0x0d, 0x29, 0xc4, 0x31, 0xb7, 0xf3, 0x48, 0xa1, 0xcd, 0x55, 0xa1, 0xe2, 0xeb, 2569 0x1c, 0x54, 0x34, 0xd5, 0x93, 0x90, 0x85, 0x0a, 0xcd, 0x4f, 0x16, 0x2b, 0xee, 0xa7, 0x58, 0x21, 2570 0xce, 0xfa, 0xf5, 0x0c, 0x56, 0x68, 0xb3, 0x13, 0xb0, 0x18, 0x15, 0x81, 0x05, 0xa8, 0x9b, 0xa1, 2571 0x00, 0x2c, 0x34, 0x57, 0x05, 0x68, 0xf1, 0x75, 0x0e, 0x2d, 0xb4, 0x13, 0x9e, 0x45, 0x0b, 0x3d, 2572 0xaf, 0x0c, 0x5c, 0xbc, 0xc8, 0xc3, 0x85, 0x38, 0xe3, 0x3f, 0x2d, 0x81, 0x0b, 0xcd, 0x5b, 0x0e, 2573 0x2f, 0x8e, 0x33, 0x78, 0x21, 0x8e, 0xfa, 0xcd, 0x22, 0xbc, 0xd0, 0x1c, 0xe9, 0x80, 0x71, 0x9c, 2574 0x01, 0x8c, 0xae, 0xea, 0x45, 0x07, 0x0c, 0xdd, 0x8b, 0x86, 0x18, 0xa3, 0x22, 0xc4, 0xe8, 0xa9, 2575 0xb5, 0x2f, 0x40, 0x0c, 0xbd, 0xf6, 0x79, 0xc8, 0x18, 0x15, 0x41, 0x86, 0x76, 0xba, 0x0b, 0x20, 2576 0x43, 0x77, 0x9a, 0xc7, 0x8c, 0x57, 0x85, 0x98, 0xb1, 0xc3, 0xbd, 0xf6, 0xcb, 0x31, 0x43, 0x73, 2577 0x5b, 0x04, 0x1a, 0x7f, 0x32, 0x04, 0x39, 0x8d, 0x39, 0x05, 0xe3, 0x49, 0x6b, 0x5f, 0x62, 0x46, 2578 0x1b, 0x8b, 0xc1, 0x06, 0x9e, 0x84, 0xa0, 0x86, 0x83, 0xb7, 0x91, 0x5d, 0xed, 0x57, 0x07, 0x6d, 2579 0xcc, 0xbf, 0xd1, 0x5d, 0x68, 0x48, 0xbe, 0x9b, 0x67, 0x09, 0x52, 0x11, 0x1f, 0x04, 0x39, 0x74, 2580 0x1e, 0x40, 0x5b, 0xdd, 0x8d, 0x68, 0x08, 0x75, 0x4c, 0xa2, 0xd5, 0x9c, 0xf2, 0xb5, 0x98, 0x31, 2581 0x48, 0x09, 0x59, 0x8c, 0x03, 0x62, 0xe4, 0x7c, 0x01, 0x3b, 0x39, 0x66, 0x50, 0x92, 0x8b, 0x05, 2582 0x55, 0x1c, 0xbc, 0xe5, 0x59, 0xb4, 0x31, 0xfb, 0x74, 0x5c, 0x40, 0x79, 0xb0, 0x90, 0x1c, 0x6f, 2583 0x25, 0x18, 0xe3, 0x36, 0x16, 0x03, 0x74, 0x1f, 0x4c, 0x15, 0x2d, 0x2a, 0xfd, 0xea, 0xc0, 0x3c, 2584 0xec, 0xa4, 0x44, 0x7b, 0xbc, 0xf6, 0xe5, 0xd2, 0x54, 0x3b, 0xe7, 0x21, 0x5c, 0x2f, 0xa4, 0x1d, 2585 0xe8, 0x23, 0xa8, 0xb2, 0xed, 0x2b, 0x32, 0x2c, 0xf4, 0xc3, 0xf4, 0xce, 0x29, 0xec, 0x15, 0x63, 2586 0x51, 0x76, 0x41, 0xc6, 0x0f, 0x5c, 0xd0, 0x97, 0xd0, 0x90, 0xda, 0xf2, 0x5f, 0x7e, 0x14, 0x12, 2587 0x97, 0x92, 0xe9, 0xa9, 0x1f, 0xff, 0xf2, 0x44, 0xe0, 0xfc, 0xd9, 0x80, 0x8e, 0xc6, 0xe0, 0x4a, 2588 0xbc, 0x7c, 0x0a, 0x4d, 0x71, 0x60, 0xc7, 0x23, 0xc9, 0x41, 0xaf, 0xa2, 0xef, 0x89, 0x2d, 0xfa, 2589 0x0c, 0x5a, 0x2f, 0x56, 0xd4, 0x15, 0x1b, 0xa8, 0xca, 0x73, 0x92, 0xbc, 0xf1, 0xf1, 0x9a, 0x86, 2590 0x6e, 0xac, 0x8b, 0x09, 0x6c, 0x62, 0xeb, 0x58, 0xd0, 0xd5, 0x1b, 0x86, 0xf3, 0x37, 0x83, 0x63, 2591 0xbc, 0x42, 0xb2, 0xf4, 0xed, 0x6c, 0x64, 0xb7, 0x73, 0x72, 0x55, 0xa8, 0xa8, 0x57, 0x85, 0x84, 2592 0xdc, 0x57, 0xcb, 0xc8, 0x7d, 0xed, 0xfd, 0xc8, 0xfd, 0x76, 0x9e, 0xdc, 0x3f, 0x81, 0x5e, 0xa6, 2593 0x59, 0xfc, 0x28, 0x16, 0xef, 0xfc, 0xdd, 0x00, 0xbb, 0x8c, 0x61, 0x6e, 0x48, 0xfe, 0x36, 0xd4, 2594 0x47, 0xd4, 0xa5, 0xab, 0x48, 0x67, 0x06, 0x42, 0x86, 0xa5, 0x0e, 0xed, 0x41, 0x9d, 0xff, 0xdf, 2595 0xf8, 0xcc, 0xcb, 0x11, 0xba, 0x0f, 0x90, 0xc4, 0x64, 0x07, 0xbf, 0x5a, 0xbe, 0x5c, 0xc5, 0xd0, 2596 0xf9, 0x1d, 0xdc, 0x28, 0xed, 0x71, 0xa8, 0x0b, 0x95, 0xd3, 0x67, 0x7c, 0xa1, 0x4d, 0x5c, 0x39, 2597 0x7d, 0xf6, 0xc3, 0x56, 0xe8, 0x7c, 0x0e, 0x76, 0x19, 0xd9, 0xbb, 0xba, 0x02, 0xce, 0x27, 0x70, 2598 0xa3, 0x14, 0xf4, 0xb3, 0x8b, 0x61, 0x61, 0xca, 0xf8, 0xdf, 0xe6, 0x30, 0xa5, 0x6d, 0x20, 0x17, 2599 0xe6, 0x57, 0x70, 0xa3, 0x94, 0x11, 0x6e, 0x88, 0xf3, 0x00, 0x6e, 0x96, 0x37, 0x06, 0x41, 0x13, 2600 0xa5, 0x56, 0x02, 0x5d, 0x2a, 0x70, 0xee, 0xc3, 0xf5, 0xc2, 0x7b, 0xc5, 0x86, 0x90, 0x03, 0xd8, 2601 0x2b, 0x26, 0x18, 0xb9, 0xbc, 0x3e, 0x85, 0xbd, 0xe2, 0xcb, 0xc6, 0x86, 0x08, 0x1f, 0xc3, 0x07, 2602 0x25, 0xac, 0x23, 0x17, 0x02, 0xc3, 0xb5, 0x82, 0x4b, 0x08, 0xfa, 0x02, 0x3a, 0xa7, 0xe1, 0xf2, 2603 0xdc, 0x65, 0x79, 0x2a, 0xc0, 0x29, 0x37, 0x6b, 0xa2, 0x92, 0x9b, 0x55, 0xb7, 0x75, 0x7e, 0x0d, 2604 0xbb, 0x45, 0x44, 0x05, 0xdd, 0x86, 0x8e, 0x90, 0x30, 0x98, 0x15, 0x15, 0x65, 0xa7, 0x43, 0x17, 2605 0x3a, 0xf7, 0xe0, 0x5a, 0xc1, 0x8d, 0x66, 0x43, 0xc6, 0x0f, 0x61, 0xb7, 0x88, 0xd5, 0xa4, 0x2f, 2606 0x11, 0x86, 0xfa, 0x12, 0x61, 0x89, 0xae, 0x52, 0xe1, 0xe1, 0x79, 0x03, 0xf9, 0x0c, 0x5a, 0x49, 2607 0x0e, 0xc8, 0x86, 0x46, 0xcc, 0x20, 0x44, 0xa0, 0x78, 0x58, 0x30, 0xf1, 0xbf, 0x95, 0xb8, 0x0d, 2608 0xa3, 0xbb, 0xd0, 0x64, 0x7f, 0x93, 0x77, 0x04, 0xe3, 0x2a, 0x28, 0x4a, 0xcc, 0x18, 0xe6, 0x7d, 2609 0xe5, 0x46, 0x47, 0x81, 0xff, 0x7a, 0xee, 0x4d, 0x28, 0x3f, 0xb1, 0x4d, 0xac, 0x8a, 0x58, 0xcd, 2610 0xbe, 0x72, 0xa3, 0x6f, 0x43, 0xf2, 0x46, 0xf2, 0xc1, 0x2a, 0xb7, 0xd1, 0x85, 0xe8, 0x73, 0x68, 2611 0x25, 0xcd, 0x42, 0x12, 0x8a, 0xab, 0x1a, 0x49, 0x6a, 0xfc, 0x1e, 0x8f, 0x59, 0x7d, 0x30, 0xe3, 2612 0x55, 0x3d, 0x23, 0x97, 0xfc, 0x12, 0xd2, 0xc6, 0xaa, 0x48, 0xb5, 0x60, 0x55, 0x6a, 0xe8, 0x16, 2613 0xac, 0xb2, 0xfb, 0x00, 0x6c, 0xd5, 0xac, 0xb5, 0x92, 0x90, 0xdf, 0x25, 0xda, 0x58, 0x91, 0xb0, 2614 0xca, 0x8b, 0x2f, 0xf1, 0x9a, 0xd5, 0xc1, 0xf1, 0xd0, 0x19, 0x41, 0x47, 0x6b, 0x6d, 0xec, 0x57, 2615 0x5c, 0x90, 0x4b, 0xd9, 0x4e, 0xd9, 0x27, 0xe3, 0x59, 0xd1, 0x85, 0xb7, 0x94, 0x55, 0xe4, 0xdf, 2616 0x6c, 0xd7, 0x84, 0x64, 0x39, 0x77, 0x27, 0x64, 0x1c, 0xc8, 0x7b, 0x5a, 0x2a, 0x18, 0xfe, 0x4c, 2617 0x7b, 0x6a, 0x44, 0x0d, 0x4e, 0x7d, 0xac, 0x2d, 0xd4, 0x82, 0x6d, 0xcc, 0x92, 0xb6, 0x8c, 0xe1, 2618 0x47, 0xe2, 0xa7, 0xf2, 0x07, 0xc4, 0x0e, 0xb4, 0x1e, 0xaf, 0x27, 0xf3, 0x55, 0xe4, 0xbd, 0x21, 2619 0xd6, 0x16, 0x02, 0xa8, 0xb3, 0xe6, 0x45, 0xa6, 0x96, 0x31, 0xbc, 0x0d, 0x90, 0xbe, 0x23, 0xa2, 2620 0x26, 0xd4, 0xd8, 0xc8, 0xda, 0x42, 0x6d, 0x68, 0x3e, 0x71, 0x23, 0xfa, 0xc4, 0xf5, 0xe6, 0x96, 2621 0x31, 0xbc, 0x95, 0xb6, 0x43, 0x66, 0xf3, 0x4d, 0xe0, 0x13, 0x11, 0xed, 0xd1, 0x25, 0x0b, 0x6c, 2622 0x0c, 0xff, 0x5a, 0x89, 0x6f, 0x9e, 0x4c, 0xcf, 0x02, 0x8b, 0x38, 0xa2, 0x67, 0x5b, 0x06, 0xea, 2623 0xaa, 0x17, 0x3a, 0xab, 0x82, 0x50, 0xf6, 0x82, 0x66, 0x55, 0x99, 0x4c, 0xc7, 0x17, 0xab, 0x86, 2624 0xcc, 0xe4, 0xf2, 0x65, 0x6d, 0xa3, 0xeb, 0x05, 0x57, 0x2a, 0xab, 0x8e, 0x7a, 0x60, 0xca, 0x47, 2625 0x4e, 0x3e, 0xa9, 0x81, 0x76, 0xa0, 0x23, 0x05, 0x32, 0x7e, 0x13, 0x5d, 0xcb, 0x5d, 0x76, 0xac, 2626 0x16, 0xb2, 0xf4, 0x2b, 0x8b, 0x05, 0x4c, 0xa2, 0x1e, 0x47, 0xcb, 0x64, 0x31, 0x73, 0x6d, 0xc3, 2627 0x6a, 0xa3, 0xbd, 0x22, 0xde, 0x6e, 0x75, 0x98, 0x79, 0x0e, 0xfe, 0xad, 0xee, 0x90, 0xc4, 0xcd, 2628 0x4d, 0xf8, 0xe3, 0x62, 0xb6, 0xd8, 0xc7, 0x3e, 0xcb, 0xc3, 0xda, 0x62, 0xfe, 0x14, 0xb1, 0xac, 2629 0x8b, 0x65, 0x28, 0xe6, 0x2f, 0x79, 0xe9, 0x46, 0xab, 0xc9, 0xc4, 0xaa, 0x28, 0xe2, 0x34, 0x9a, 2630 0x55, 0x7d, 0xf4, 0x9b, 0xef, 0xff, 0xb3, 0x6f, 0x7c, 0xf7, 0x6e, 0xdf, 0xf8, 0xfe, 0xdd, 0xbe, 2631 0xf1, 0xef, 0x77, 0xfb, 0xc6, 0x1f, 0xd4, 0x47, 0xee, 0x85, 0x4b, 0x43, 0x6f, 0x1d, 0x70, 0x62, 2632 0x12, 0x0f, 0x7c, 0x72, 0xb0, 0xbc, 0x98, 0x1d, 0x2c, 0xcf, 0x0e, 0x58, 0xa1, 0xce, 0xea, 0xfc, 2633 0x69, 0xfb, 0xde, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0x8b, 0x43, 0x22, 0x1b, 0x2e, 0x17, 0x00, 2634 0x00, 2635 } 2636 2637 func (m *LockOptions) Marshal() (dAtA []byte, err error) { 2638 size := m.Size() 2639 dAtA = make([]byte, size) 2640 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2641 if err != nil { 2642 return nil, err 2643 } 2644 return dAtA[:n], nil 2645 } 2646 2647 func (m *LockOptions) MarshalTo(dAtA []byte) (int, error) { 2648 size := m.Size() 2649 return m.MarshalToSizedBuffer(dAtA[:size]) 2650 } 2651 2652 func (m *LockOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2653 i := len(dAtA) 2654 _ = i 2655 var l int 2656 _ = l 2657 if m.XXX_unrecognized != nil { 2658 i -= len(m.XXX_unrecognized) 2659 copy(dAtA[i:], m.XXX_unrecognized) 2660 } 2661 { 2662 size, err := m.SnapShotTs.MarshalToSizedBuffer(dAtA[:i]) 2663 if err != nil { 2664 return 0, err 2665 } 2666 i -= size 2667 i = encodeVarintLock(dAtA, i, uint64(size)) 2668 } 2669 i-- 2670 dAtA[i] = 0x4a 2671 if m.Sharding != 0 { 2672 i = encodeVarintLock(dAtA, i, uint64(m.Sharding)) 2673 i-- 2674 dAtA[i] = 0x40 2675 } 2676 if m.Group != 0 { 2677 i = encodeVarintLock(dAtA, i, uint64(m.Group)) 2678 i-- 2679 dAtA[i] = 0x38 2680 } 2681 if m.RetryWait != 0 { 2682 i = encodeVarintLock(dAtA, i, uint64(m.RetryWait)) 2683 i-- 2684 dAtA[i] = 0x30 2685 } 2686 if m.TableDefChanged { 2687 i-- 2688 if m.TableDefChanged { 2689 dAtA[i] = 1 2690 } else { 2691 dAtA[i] = 0 2692 } 2693 i-- 2694 dAtA[i] = 0x28 2695 } 2696 if len(m.ForwardTo) > 0 { 2697 i -= len(m.ForwardTo) 2698 copy(dAtA[i:], m.ForwardTo) 2699 i = encodeVarintLock(dAtA, i, uint64(len(m.ForwardTo))) 2700 i-- 2701 dAtA[i] = 0x22 2702 } 2703 if m.Policy != 0 { 2704 i = encodeVarintLock(dAtA, i, uint64(m.Policy)) 2705 i-- 2706 dAtA[i] = 0x18 2707 } 2708 if m.Mode != 0 { 2709 i = encodeVarintLock(dAtA, i, uint64(m.Mode)) 2710 i-- 2711 dAtA[i] = 0x10 2712 } 2713 if m.Granularity != 0 { 2714 i = encodeVarintLock(dAtA, i, uint64(m.Granularity)) 2715 i-- 2716 dAtA[i] = 0x8 2717 } 2718 return len(dAtA) - i, nil 2719 } 2720 2721 func (m *LockTable) Marshal() (dAtA []byte, err error) { 2722 size := m.Size() 2723 dAtA = make([]byte, size) 2724 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2725 if err != nil { 2726 return nil, err 2727 } 2728 return dAtA[:n], nil 2729 } 2730 2731 func (m *LockTable) MarshalTo(dAtA []byte) (int, error) { 2732 size := m.Size() 2733 return m.MarshalToSizedBuffer(dAtA[:size]) 2734 } 2735 2736 func (m *LockTable) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2737 i := len(dAtA) 2738 _ = i 2739 var l int 2740 _ = l 2741 if m.XXX_unrecognized != nil { 2742 i -= len(m.XXX_unrecognized) 2743 copy(dAtA[i:], m.XXX_unrecognized) 2744 } 2745 if m.OriginTable != 0 { 2746 i = encodeVarintLock(dAtA, i, uint64(m.OriginTable)) 2747 i-- 2748 dAtA[i] = 0x38 2749 } 2750 if m.Sharding != 0 { 2751 i = encodeVarintLock(dAtA, i, uint64(m.Sharding)) 2752 i-- 2753 dAtA[i] = 0x30 2754 } 2755 if m.Group != 0 { 2756 i = encodeVarintLock(dAtA, i, uint64(m.Group)) 2757 i-- 2758 dAtA[i] = 0x28 2759 } 2760 if m.Valid { 2761 i-- 2762 if m.Valid { 2763 dAtA[i] = 1 2764 } else { 2765 dAtA[i] = 0 2766 } 2767 i-- 2768 dAtA[i] = 0x20 2769 } 2770 if m.Version != 0 { 2771 i = encodeVarintLock(dAtA, i, uint64(m.Version)) 2772 i-- 2773 dAtA[i] = 0x18 2774 } 2775 if len(m.ServiceID) > 0 { 2776 i -= len(m.ServiceID) 2777 copy(dAtA[i:], m.ServiceID) 2778 i = encodeVarintLock(dAtA, i, uint64(len(m.ServiceID))) 2779 i-- 2780 dAtA[i] = 0x12 2781 } 2782 if m.Table != 0 { 2783 i = encodeVarintLock(dAtA, i, uint64(m.Table)) 2784 i-- 2785 dAtA[i] = 0x8 2786 } 2787 return len(dAtA) - i, nil 2788 } 2789 2790 func (m *Request) Marshal() (dAtA []byte, err error) { 2791 size := m.Size() 2792 dAtA = make([]byte, size) 2793 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2794 if err != nil { 2795 return nil, err 2796 } 2797 return dAtA[:n], nil 2798 } 2799 2800 func (m *Request) MarshalTo(dAtA []byte) (int, error) { 2801 size := m.Size() 2802 return m.MarshalToSizedBuffer(dAtA[:size]) 2803 } 2804 2805 func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2806 i := len(dAtA) 2807 _ = i 2808 var l int 2809 _ = l 2810 if m.XXX_unrecognized != nil { 2811 i -= len(m.XXX_unrecognized) 2812 copy(dAtA[i:], m.XXX_unrecognized) 2813 } 2814 { 2815 size, err := m.RemainTxnInService.MarshalToSizedBuffer(dAtA[:i]) 2816 if err != nil { 2817 return 0, err 2818 } 2819 i -= size 2820 i = encodeVarintLock(dAtA, i, uint64(size)) 2821 } 2822 i-- 2823 dAtA[i] = 0x1 2824 i-- 2825 dAtA[i] = 0x82 2826 { 2827 size, err := m.CanRestartService.MarshalToSizedBuffer(dAtA[:i]) 2828 if err != nil { 2829 return 0, err 2830 } 2831 i -= size 2832 i = encodeVarintLock(dAtA, i, uint64(size)) 2833 } 2834 i-- 2835 dAtA[i] = 0x7a 2836 { 2837 size, err := m.SetRestartService.MarshalToSizedBuffer(dAtA[:i]) 2838 if err != nil { 2839 return 0, err 2840 } 2841 i -= size 2842 i = encodeVarintLock(dAtA, i, uint64(size)) 2843 } 2844 i-- 2845 dAtA[i] = 0x72 2846 { 2847 size, err := m.GetActiveTxn.MarshalToSizedBuffer(dAtA[:i]) 2848 if err != nil { 2849 return 0, err 2850 } 2851 i -= size 2852 i = encodeVarintLock(dAtA, i, uint64(size)) 2853 } 2854 i-- 2855 dAtA[i] = 0x6a 2856 { 2857 size, err := m.CannotCommit.MarshalToSizedBuffer(dAtA[:i]) 2858 if err != nil { 2859 return 0, err 2860 } 2861 i -= size 2862 i = encodeVarintLock(dAtA, i, uint64(size)) 2863 } 2864 i-- 2865 dAtA[i] = 0x62 2866 { 2867 size, err := m.ValidateService.MarshalToSizedBuffer(dAtA[:i]) 2868 if err != nil { 2869 return 0, err 2870 } 2871 i -= size 2872 i = encodeVarintLock(dAtA, i, uint64(size)) 2873 } 2874 i-- 2875 dAtA[i] = 0x5a 2876 { 2877 size, err := m.KeepRemoteLock.MarshalToSizedBuffer(dAtA[:i]) 2878 if err != nil { 2879 return 0, err 2880 } 2881 i -= size 2882 i = encodeVarintLock(dAtA, i, uint64(size)) 2883 } 2884 i-- 2885 dAtA[i] = 0x52 2886 { 2887 size, err := m.KeepLockTableBind.MarshalToSizedBuffer(dAtA[:i]) 2888 if err != nil { 2889 return 0, err 2890 } 2891 i -= size 2892 i = encodeVarintLock(dAtA, i, uint64(size)) 2893 } 2894 i-- 2895 dAtA[i] = 0x4a 2896 { 2897 size, err := m.GetBind.MarshalToSizedBuffer(dAtA[:i]) 2898 if err != nil { 2899 return 0, err 2900 } 2901 i -= size 2902 i = encodeVarintLock(dAtA, i, uint64(size)) 2903 } 2904 i-- 2905 dAtA[i] = 0x42 2906 { 2907 size, err := m.GetWaitingList.MarshalToSizedBuffer(dAtA[:i]) 2908 if err != nil { 2909 return 0, err 2910 } 2911 i -= size 2912 i = encodeVarintLock(dAtA, i, uint64(size)) 2913 } 2914 i-- 2915 dAtA[i] = 0x3a 2916 { 2917 size, err := m.GetTxnLock.MarshalToSizedBuffer(dAtA[:i]) 2918 if err != nil { 2919 return 0, err 2920 } 2921 i -= size 2922 i = encodeVarintLock(dAtA, i, uint64(size)) 2923 } 2924 i-- 2925 dAtA[i] = 0x32 2926 { 2927 size, err := m.Unlock.MarshalToSizedBuffer(dAtA[:i]) 2928 if err != nil { 2929 return 0, err 2930 } 2931 i -= size 2932 i = encodeVarintLock(dAtA, i, uint64(size)) 2933 } 2934 i-- 2935 dAtA[i] = 0x2a 2936 { 2937 size, err := m.Lock.MarshalToSizedBuffer(dAtA[:i]) 2938 if err != nil { 2939 return 0, err 2940 } 2941 i -= size 2942 i = encodeVarintLock(dAtA, i, uint64(size)) 2943 } 2944 i-- 2945 dAtA[i] = 0x22 2946 if m.Method != 0 { 2947 i = encodeVarintLock(dAtA, i, uint64(m.Method)) 2948 i-- 2949 dAtA[i] = 0x18 2950 } 2951 { 2952 size, err := m.LockTable.MarshalToSizedBuffer(dAtA[:i]) 2953 if err != nil { 2954 return 0, err 2955 } 2956 i -= size 2957 i = encodeVarintLock(dAtA, i, uint64(size)) 2958 } 2959 i-- 2960 dAtA[i] = 0x12 2961 if m.RequestID != 0 { 2962 i = encodeVarintLock(dAtA, i, uint64(m.RequestID)) 2963 i-- 2964 dAtA[i] = 0x8 2965 } 2966 return len(dAtA) - i, nil 2967 } 2968 2969 func (m *Response) Marshal() (dAtA []byte, err error) { 2970 size := m.Size() 2971 dAtA = make([]byte, size) 2972 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2973 if err != nil { 2974 return nil, err 2975 } 2976 return dAtA[:n], nil 2977 } 2978 2979 func (m *Response) MarshalTo(dAtA []byte) (int, error) { 2980 size := m.Size() 2981 return m.MarshalToSizedBuffer(dAtA[:size]) 2982 } 2983 2984 func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2985 i := len(dAtA) 2986 _ = i 2987 var l int 2988 _ = l 2989 if m.XXX_unrecognized != nil { 2990 i -= len(m.XXX_unrecognized) 2991 copy(dAtA[i:], m.XXX_unrecognized) 2992 } 2993 { 2994 size, err := m.RemainTxnInService.MarshalToSizedBuffer(dAtA[:i]) 2995 if err != nil { 2996 return 0, err 2997 } 2998 i -= size 2999 i = encodeVarintLock(dAtA, i, uint64(size)) 3000 } 3001 i-- 3002 dAtA[i] = 0x1 3003 i-- 3004 dAtA[i] = 0x8a 3005 { 3006 size, err := m.CanRestartService.MarshalToSizedBuffer(dAtA[:i]) 3007 if err != nil { 3008 return 0, err 3009 } 3010 i -= size 3011 i = encodeVarintLock(dAtA, i, uint64(size)) 3012 } 3013 i-- 3014 dAtA[i] = 0x1 3015 i-- 3016 dAtA[i] = 0x82 3017 { 3018 size, err := m.SetRestartService.MarshalToSizedBuffer(dAtA[:i]) 3019 if err != nil { 3020 return 0, err 3021 } 3022 i -= size 3023 i = encodeVarintLock(dAtA, i, uint64(size)) 3024 } 3025 i-- 3026 dAtA[i] = 0x7a 3027 { 3028 size, err := m.GetActiveTxn.MarshalToSizedBuffer(dAtA[:i]) 3029 if err != nil { 3030 return 0, err 3031 } 3032 i -= size 3033 i = encodeVarintLock(dAtA, i, uint64(size)) 3034 } 3035 i-- 3036 dAtA[i] = 0x72 3037 { 3038 size, err := m.CannotCommit.MarshalToSizedBuffer(dAtA[:i]) 3039 if err != nil { 3040 return 0, err 3041 } 3042 i -= size 3043 i = encodeVarintLock(dAtA, i, uint64(size)) 3044 } 3045 i-- 3046 dAtA[i] = 0x6a 3047 { 3048 size, err := m.ValidateService.MarshalToSizedBuffer(dAtA[:i]) 3049 if err != nil { 3050 return 0, err 3051 } 3052 i -= size 3053 i = encodeVarintLock(dAtA, i, uint64(size)) 3054 } 3055 i-- 3056 dAtA[i] = 0x62 3057 { 3058 size, err := m.KeepRemoteLock.MarshalToSizedBuffer(dAtA[:i]) 3059 if err != nil { 3060 return 0, err 3061 } 3062 i -= size 3063 i = encodeVarintLock(dAtA, i, uint64(size)) 3064 } 3065 i-- 3066 dAtA[i] = 0x5a 3067 { 3068 size, err := m.KeepLockTableBind.MarshalToSizedBuffer(dAtA[:i]) 3069 if err != nil { 3070 return 0, err 3071 } 3072 i -= size 3073 i = encodeVarintLock(dAtA, i, uint64(size)) 3074 } 3075 i-- 3076 dAtA[i] = 0x52 3077 { 3078 size, err := m.GetBind.MarshalToSizedBuffer(dAtA[:i]) 3079 if err != nil { 3080 return 0, err 3081 } 3082 i -= size 3083 i = encodeVarintLock(dAtA, i, uint64(size)) 3084 } 3085 i-- 3086 dAtA[i] = 0x4a 3087 { 3088 size, err := m.GetWaitingList.MarshalToSizedBuffer(dAtA[:i]) 3089 if err != nil { 3090 return 0, err 3091 } 3092 i -= size 3093 i = encodeVarintLock(dAtA, i, uint64(size)) 3094 } 3095 i-- 3096 dAtA[i] = 0x42 3097 { 3098 size, err := m.GetTxnLock.MarshalToSizedBuffer(dAtA[:i]) 3099 if err != nil { 3100 return 0, err 3101 } 3102 i -= size 3103 i = encodeVarintLock(dAtA, i, uint64(size)) 3104 } 3105 i-- 3106 dAtA[i] = 0x3a 3107 { 3108 size, err := m.Unlock.MarshalToSizedBuffer(dAtA[:i]) 3109 if err != nil { 3110 return 0, err 3111 } 3112 i -= size 3113 i = encodeVarintLock(dAtA, i, uint64(size)) 3114 } 3115 i-- 3116 dAtA[i] = 0x32 3117 { 3118 size, err := m.Lock.MarshalToSizedBuffer(dAtA[:i]) 3119 if err != nil { 3120 return 0, err 3121 } 3122 i -= size 3123 i = encodeVarintLock(dAtA, i, uint64(size)) 3124 } 3125 i-- 3126 dAtA[i] = 0x2a 3127 if m.NewBind != nil { 3128 { 3129 size, err := m.NewBind.MarshalToSizedBuffer(dAtA[:i]) 3130 if err != nil { 3131 return 0, err 3132 } 3133 i -= size 3134 i = encodeVarintLock(dAtA, i, uint64(size)) 3135 } 3136 i-- 3137 dAtA[i] = 0x22 3138 } 3139 if len(m.Error) > 0 { 3140 i -= len(m.Error) 3141 copy(dAtA[i:], m.Error) 3142 i = encodeVarintLock(dAtA, i, uint64(len(m.Error))) 3143 i-- 3144 dAtA[i] = 0x1a 3145 } 3146 if m.Method != 0 { 3147 i = encodeVarintLock(dAtA, i, uint64(m.Method)) 3148 i-- 3149 dAtA[i] = 0x10 3150 } 3151 if m.RequestID != 0 { 3152 i = encodeVarintLock(dAtA, i, uint64(m.RequestID)) 3153 i-- 3154 dAtA[i] = 0x8 3155 } 3156 return len(dAtA) - i, nil 3157 } 3158 3159 func (m *LockRequest) Marshal() (dAtA []byte, err error) { 3160 size := m.Size() 3161 dAtA = make([]byte, size) 3162 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3163 if err != nil { 3164 return nil, err 3165 } 3166 return dAtA[:n], nil 3167 } 3168 3169 func (m *LockRequest) MarshalTo(dAtA []byte) (int, error) { 3170 size := m.Size() 3171 return m.MarshalToSizedBuffer(dAtA[:size]) 3172 } 3173 3174 func (m *LockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3175 i := len(dAtA) 3176 _ = i 3177 var l int 3178 _ = l 3179 if m.XXX_unrecognized != nil { 3180 i -= len(m.XXX_unrecognized) 3181 copy(dAtA[i:], m.XXX_unrecognized) 3182 } 3183 { 3184 size, err := m.Options.MarshalToSizedBuffer(dAtA[:i]) 3185 if err != nil { 3186 return 0, err 3187 } 3188 i -= size 3189 i = encodeVarintLock(dAtA, i, uint64(size)) 3190 } 3191 i-- 3192 dAtA[i] = 0x22 3193 if len(m.Rows) > 0 { 3194 for iNdEx := len(m.Rows) - 1; iNdEx >= 0; iNdEx-- { 3195 i -= len(m.Rows[iNdEx]) 3196 copy(dAtA[i:], m.Rows[iNdEx]) 3197 i = encodeVarintLock(dAtA, i, uint64(len(m.Rows[iNdEx]))) 3198 i-- 3199 dAtA[i] = 0x1a 3200 } 3201 } 3202 if len(m.ServiceID) > 0 { 3203 i -= len(m.ServiceID) 3204 copy(dAtA[i:], m.ServiceID) 3205 i = encodeVarintLock(dAtA, i, uint64(len(m.ServiceID))) 3206 i-- 3207 dAtA[i] = 0x12 3208 } 3209 if len(m.TxnID) > 0 { 3210 i -= len(m.TxnID) 3211 copy(dAtA[i:], m.TxnID) 3212 i = encodeVarintLock(dAtA, i, uint64(len(m.TxnID))) 3213 i-- 3214 dAtA[i] = 0xa 3215 } 3216 return len(dAtA) - i, nil 3217 } 3218 3219 func (m *LockResponse) Marshal() (dAtA []byte, err error) { 3220 size := m.Size() 3221 dAtA = make([]byte, size) 3222 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3223 if err != nil { 3224 return nil, err 3225 } 3226 return dAtA[:n], nil 3227 } 3228 3229 func (m *LockResponse) MarshalTo(dAtA []byte) (int, error) { 3230 size := m.Size() 3231 return m.MarshalToSizedBuffer(dAtA[:size]) 3232 } 3233 3234 func (m *LockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3235 i := len(dAtA) 3236 _ = i 3237 var l int 3238 _ = l 3239 if m.XXX_unrecognized != nil { 3240 i -= len(m.XXX_unrecognized) 3241 copy(dAtA[i:], m.XXX_unrecognized) 3242 } 3243 { 3244 size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) 3245 if err != nil { 3246 return 0, err 3247 } 3248 i -= size 3249 i = encodeVarintLock(dAtA, i, uint64(size)) 3250 } 3251 i-- 3252 dAtA[i] = 0xa 3253 return len(dAtA) - i, nil 3254 } 3255 3256 func (m *GetTxnLockRequest) Marshal() (dAtA []byte, err error) { 3257 size := m.Size() 3258 dAtA = make([]byte, size) 3259 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3260 if err != nil { 3261 return nil, err 3262 } 3263 return dAtA[:n], nil 3264 } 3265 3266 func (m *GetTxnLockRequest) MarshalTo(dAtA []byte) (int, error) { 3267 size := m.Size() 3268 return m.MarshalToSizedBuffer(dAtA[:size]) 3269 } 3270 3271 func (m *GetTxnLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3272 i := len(dAtA) 3273 _ = i 3274 var l int 3275 _ = l 3276 if m.XXX_unrecognized != nil { 3277 i -= len(m.XXX_unrecognized) 3278 copy(dAtA[i:], m.XXX_unrecognized) 3279 } 3280 if len(m.Row) > 0 { 3281 i -= len(m.Row) 3282 copy(dAtA[i:], m.Row) 3283 i = encodeVarintLock(dAtA, i, uint64(len(m.Row))) 3284 i-- 3285 dAtA[i] = 0x12 3286 } 3287 if len(m.TxnID) > 0 { 3288 i -= len(m.TxnID) 3289 copy(dAtA[i:], m.TxnID) 3290 i = encodeVarintLock(dAtA, i, uint64(len(m.TxnID))) 3291 i-- 3292 dAtA[i] = 0xa 3293 } 3294 return len(dAtA) - i, nil 3295 } 3296 3297 func (m *GetTxnLockResponse) Marshal() (dAtA []byte, err error) { 3298 size := m.Size() 3299 dAtA = make([]byte, size) 3300 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3301 if err != nil { 3302 return nil, err 3303 } 3304 return dAtA[:n], nil 3305 } 3306 3307 func (m *GetTxnLockResponse) MarshalTo(dAtA []byte) (int, error) { 3308 size := m.Size() 3309 return m.MarshalToSizedBuffer(dAtA[:size]) 3310 } 3311 3312 func (m *GetTxnLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3313 i := len(dAtA) 3314 _ = i 3315 var l int 3316 _ = l 3317 if m.XXX_unrecognized != nil { 3318 i -= len(m.XXX_unrecognized) 3319 copy(dAtA[i:], m.XXX_unrecognized) 3320 } 3321 if len(m.WaitingList) > 0 { 3322 for iNdEx := len(m.WaitingList) - 1; iNdEx >= 0; iNdEx-- { 3323 { 3324 size, err := m.WaitingList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3325 if err != nil { 3326 return 0, err 3327 } 3328 i -= size 3329 i = encodeVarintLock(dAtA, i, uint64(size)) 3330 } 3331 i-- 3332 dAtA[i] = 0x12 3333 } 3334 } 3335 if m.Value != 0 { 3336 i = encodeVarintLock(dAtA, i, uint64(m.Value)) 3337 i-- 3338 dAtA[i] = 0x8 3339 } 3340 return len(dAtA) - i, nil 3341 } 3342 3343 func (m *GetWaitingListRequest) Marshal() (dAtA []byte, err error) { 3344 size := m.Size() 3345 dAtA = make([]byte, size) 3346 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3347 if err != nil { 3348 return nil, err 3349 } 3350 return dAtA[:n], nil 3351 } 3352 3353 func (m *GetWaitingListRequest) MarshalTo(dAtA []byte) (int, error) { 3354 size := m.Size() 3355 return m.MarshalToSizedBuffer(dAtA[:size]) 3356 } 3357 3358 func (m *GetWaitingListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3359 i := len(dAtA) 3360 _ = i 3361 var l int 3362 _ = l 3363 if m.XXX_unrecognized != nil { 3364 i -= len(m.XXX_unrecognized) 3365 copy(dAtA[i:], m.XXX_unrecognized) 3366 } 3367 { 3368 size, err := m.Txn.MarshalToSizedBuffer(dAtA[:i]) 3369 if err != nil { 3370 return 0, err 3371 } 3372 i -= size 3373 i = encodeVarintLock(dAtA, i, uint64(size)) 3374 } 3375 i-- 3376 dAtA[i] = 0xa 3377 return len(dAtA) - i, nil 3378 } 3379 3380 func (m *GetWaitingListResponse) Marshal() (dAtA []byte, err error) { 3381 size := m.Size() 3382 dAtA = make([]byte, size) 3383 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3384 if err != nil { 3385 return nil, err 3386 } 3387 return dAtA[:n], nil 3388 } 3389 3390 func (m *GetWaitingListResponse) MarshalTo(dAtA []byte) (int, error) { 3391 size := m.Size() 3392 return m.MarshalToSizedBuffer(dAtA[:size]) 3393 } 3394 3395 func (m *GetWaitingListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3396 i := len(dAtA) 3397 _ = i 3398 var l int 3399 _ = l 3400 if m.XXX_unrecognized != nil { 3401 i -= len(m.XXX_unrecognized) 3402 copy(dAtA[i:], m.XXX_unrecognized) 3403 } 3404 if len(m.WaitingList) > 0 { 3405 for iNdEx := len(m.WaitingList) - 1; iNdEx >= 0; iNdEx-- { 3406 { 3407 size, err := m.WaitingList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3408 if err != nil { 3409 return 0, err 3410 } 3411 i -= size 3412 i = encodeVarintLock(dAtA, i, uint64(size)) 3413 } 3414 i-- 3415 dAtA[i] = 0xa 3416 } 3417 } 3418 return len(dAtA) - i, nil 3419 } 3420 3421 func (m *WaitTxn) Marshal() (dAtA []byte, err error) { 3422 size := m.Size() 3423 dAtA = make([]byte, size) 3424 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3425 if err != nil { 3426 return nil, err 3427 } 3428 return dAtA[:n], nil 3429 } 3430 3431 func (m *WaitTxn) MarshalTo(dAtA []byte) (int, error) { 3432 size := m.Size() 3433 return m.MarshalToSizedBuffer(dAtA[:size]) 3434 } 3435 3436 func (m *WaitTxn) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3437 i := len(dAtA) 3438 _ = i 3439 var l int 3440 _ = l 3441 if m.XXX_unrecognized != nil { 3442 i -= len(m.XXX_unrecognized) 3443 copy(dAtA[i:], m.XXX_unrecognized) 3444 } 3445 if len(m.CreatedOn) > 0 { 3446 i -= len(m.CreatedOn) 3447 copy(dAtA[i:], m.CreatedOn) 3448 i = encodeVarintLock(dAtA, i, uint64(len(m.CreatedOn))) 3449 i-- 3450 dAtA[i] = 0x12 3451 } 3452 if len(m.TxnID) > 0 { 3453 i -= len(m.TxnID) 3454 copy(dAtA[i:], m.TxnID) 3455 i = encodeVarintLock(dAtA, i, uint64(len(m.TxnID))) 3456 i-- 3457 dAtA[i] = 0xa 3458 } 3459 return len(dAtA) - i, nil 3460 } 3461 3462 func (m *UnlockRequest) Marshal() (dAtA []byte, err error) { 3463 size := m.Size() 3464 dAtA = make([]byte, size) 3465 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3466 if err != nil { 3467 return nil, err 3468 } 3469 return dAtA[:n], nil 3470 } 3471 3472 func (m *UnlockRequest) MarshalTo(dAtA []byte) (int, error) { 3473 size := m.Size() 3474 return m.MarshalToSizedBuffer(dAtA[:size]) 3475 } 3476 3477 func (m *UnlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3478 i := len(dAtA) 3479 _ = i 3480 var l int 3481 _ = l 3482 if m.XXX_unrecognized != nil { 3483 i -= len(m.XXX_unrecognized) 3484 copy(dAtA[i:], m.XXX_unrecognized) 3485 } 3486 if len(m.Mutations) > 0 { 3487 for iNdEx := len(m.Mutations) - 1; iNdEx >= 0; iNdEx-- { 3488 { 3489 size, err := m.Mutations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3490 if err != nil { 3491 return 0, err 3492 } 3493 i -= size 3494 i = encodeVarintLock(dAtA, i, uint64(size)) 3495 } 3496 i-- 3497 dAtA[i] = 0x1a 3498 } 3499 } 3500 { 3501 size, err := m.CommitTS.MarshalToSizedBuffer(dAtA[:i]) 3502 if err != nil { 3503 return 0, err 3504 } 3505 i -= size 3506 i = encodeVarintLock(dAtA, i, uint64(size)) 3507 } 3508 i-- 3509 dAtA[i] = 0x12 3510 if len(m.TxnID) > 0 { 3511 i -= len(m.TxnID) 3512 copy(dAtA[i:], m.TxnID) 3513 i = encodeVarintLock(dAtA, i, uint64(len(m.TxnID))) 3514 i-- 3515 dAtA[i] = 0xa 3516 } 3517 return len(dAtA) - i, nil 3518 } 3519 3520 func (m *UnlockResponse) Marshal() (dAtA []byte, err error) { 3521 size := m.Size() 3522 dAtA = make([]byte, size) 3523 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3524 if err != nil { 3525 return nil, err 3526 } 3527 return dAtA[:n], nil 3528 } 3529 3530 func (m *UnlockResponse) MarshalTo(dAtA []byte) (int, error) { 3531 size := m.Size() 3532 return m.MarshalToSizedBuffer(dAtA[:size]) 3533 } 3534 3535 func (m *UnlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3536 i := len(dAtA) 3537 _ = i 3538 var l int 3539 _ = l 3540 if m.XXX_unrecognized != nil { 3541 i -= len(m.XXX_unrecognized) 3542 copy(dAtA[i:], m.XXX_unrecognized) 3543 } 3544 return len(dAtA) - i, nil 3545 } 3546 3547 func (m *GetBindRequest) Marshal() (dAtA []byte, err error) { 3548 size := m.Size() 3549 dAtA = make([]byte, size) 3550 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3551 if err != nil { 3552 return nil, err 3553 } 3554 return dAtA[:n], nil 3555 } 3556 3557 func (m *GetBindRequest) MarshalTo(dAtA []byte) (int, error) { 3558 size := m.Size() 3559 return m.MarshalToSizedBuffer(dAtA[:size]) 3560 } 3561 3562 func (m *GetBindRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3563 i := len(dAtA) 3564 _ = i 3565 var l int 3566 _ = l 3567 if m.XXX_unrecognized != nil { 3568 i -= len(m.XXX_unrecognized) 3569 copy(dAtA[i:], m.XXX_unrecognized) 3570 } 3571 if m.OriginTable != 0 { 3572 i = encodeVarintLock(dAtA, i, uint64(m.OriginTable)) 3573 i-- 3574 dAtA[i] = 0x28 3575 } 3576 if m.Sharding != 0 { 3577 i = encodeVarintLock(dAtA, i, uint64(m.Sharding)) 3578 i-- 3579 dAtA[i] = 0x20 3580 } 3581 if m.Group != 0 { 3582 i = encodeVarintLock(dAtA, i, uint64(m.Group)) 3583 i-- 3584 dAtA[i] = 0x18 3585 } 3586 if m.Table != 0 { 3587 i = encodeVarintLock(dAtA, i, uint64(m.Table)) 3588 i-- 3589 dAtA[i] = 0x10 3590 } 3591 if len(m.ServiceID) > 0 { 3592 i -= len(m.ServiceID) 3593 copy(dAtA[i:], m.ServiceID) 3594 i = encodeVarintLock(dAtA, i, uint64(len(m.ServiceID))) 3595 i-- 3596 dAtA[i] = 0xa 3597 } 3598 return len(dAtA) - i, nil 3599 } 3600 3601 func (m *GetBindResponse) Marshal() (dAtA []byte, err error) { 3602 size := m.Size() 3603 dAtA = make([]byte, size) 3604 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3605 if err != nil { 3606 return nil, err 3607 } 3608 return dAtA[:n], nil 3609 } 3610 3611 func (m *GetBindResponse) MarshalTo(dAtA []byte) (int, error) { 3612 size := m.Size() 3613 return m.MarshalToSizedBuffer(dAtA[:size]) 3614 } 3615 3616 func (m *GetBindResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3617 i := len(dAtA) 3618 _ = i 3619 var l int 3620 _ = l 3621 if m.XXX_unrecognized != nil { 3622 i -= len(m.XXX_unrecognized) 3623 copy(dAtA[i:], m.XXX_unrecognized) 3624 } 3625 { 3626 size, err := m.LockTable.MarshalToSizedBuffer(dAtA[:i]) 3627 if err != nil { 3628 return 0, err 3629 } 3630 i -= size 3631 i = encodeVarintLock(dAtA, i, uint64(size)) 3632 } 3633 i-- 3634 dAtA[i] = 0x12 3635 return len(dAtA) - i, nil 3636 } 3637 3638 func (m *KeepLockTableBindRequest) Marshal() (dAtA []byte, err error) { 3639 size := m.Size() 3640 dAtA = make([]byte, size) 3641 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3642 if err != nil { 3643 return nil, err 3644 } 3645 return dAtA[:n], nil 3646 } 3647 3648 func (m *KeepLockTableBindRequest) MarshalTo(dAtA []byte) (int, error) { 3649 size := m.Size() 3650 return m.MarshalToSizedBuffer(dAtA[:size]) 3651 } 3652 3653 func (m *KeepLockTableBindRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3654 i := len(dAtA) 3655 _ = i 3656 var l int 3657 _ = l 3658 if m.XXX_unrecognized != nil { 3659 i -= len(m.XXX_unrecognized) 3660 copy(dAtA[i:], m.XXX_unrecognized) 3661 } 3662 if len(m.LockTables) > 0 { 3663 for iNdEx := len(m.LockTables) - 1; iNdEx >= 0; iNdEx-- { 3664 { 3665 size, err := m.LockTables[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3666 if err != nil { 3667 return 0, err 3668 } 3669 i -= size 3670 i = encodeVarintLock(dAtA, i, uint64(size)) 3671 } 3672 i-- 3673 dAtA[i] = 0x22 3674 } 3675 } 3676 if len(m.TxnIDs) > 0 { 3677 for iNdEx := len(m.TxnIDs) - 1; iNdEx >= 0; iNdEx-- { 3678 i -= len(m.TxnIDs[iNdEx]) 3679 copy(dAtA[i:], m.TxnIDs[iNdEx]) 3680 i = encodeVarintLock(dAtA, i, uint64(len(m.TxnIDs[iNdEx]))) 3681 i-- 3682 dAtA[i] = 0x1a 3683 } 3684 } 3685 if m.Status != 0 { 3686 i = encodeVarintLock(dAtA, i, uint64(m.Status)) 3687 i-- 3688 dAtA[i] = 0x10 3689 } 3690 if len(m.ServiceID) > 0 { 3691 i -= len(m.ServiceID) 3692 copy(dAtA[i:], m.ServiceID) 3693 i = encodeVarintLock(dAtA, i, uint64(len(m.ServiceID))) 3694 i-- 3695 dAtA[i] = 0xa 3696 } 3697 return len(dAtA) - i, nil 3698 } 3699 3700 func (m *KeepLockTableBindResponse) Marshal() (dAtA []byte, err error) { 3701 size := m.Size() 3702 dAtA = make([]byte, size) 3703 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3704 if err != nil { 3705 return nil, err 3706 } 3707 return dAtA[:n], nil 3708 } 3709 3710 func (m *KeepLockTableBindResponse) MarshalTo(dAtA []byte) (int, error) { 3711 size := m.Size() 3712 return m.MarshalToSizedBuffer(dAtA[:size]) 3713 } 3714 3715 func (m *KeepLockTableBindResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3716 i := len(dAtA) 3717 _ = i 3718 var l int 3719 _ = l 3720 if m.XXX_unrecognized != nil { 3721 i -= len(m.XXX_unrecognized) 3722 copy(dAtA[i:], m.XXX_unrecognized) 3723 } 3724 if m.Status != 0 { 3725 i = encodeVarintLock(dAtA, i, uint64(m.Status)) 3726 i-- 3727 dAtA[i] = 0x10 3728 } 3729 if m.OK { 3730 i-- 3731 if m.OK { 3732 dAtA[i] = 1 3733 } else { 3734 dAtA[i] = 0 3735 } 3736 i-- 3737 dAtA[i] = 0x8 3738 } 3739 return len(dAtA) - i, nil 3740 } 3741 3742 func (m *SetRestartServiceRequest) Marshal() (dAtA []byte, err error) { 3743 size := m.Size() 3744 dAtA = make([]byte, size) 3745 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3746 if err != nil { 3747 return nil, err 3748 } 3749 return dAtA[:n], nil 3750 } 3751 3752 func (m *SetRestartServiceRequest) MarshalTo(dAtA []byte) (int, error) { 3753 size := m.Size() 3754 return m.MarshalToSizedBuffer(dAtA[:size]) 3755 } 3756 3757 func (m *SetRestartServiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3758 i := len(dAtA) 3759 _ = i 3760 var l int 3761 _ = l 3762 if m.XXX_unrecognized != nil { 3763 i -= len(m.XXX_unrecognized) 3764 copy(dAtA[i:], m.XXX_unrecognized) 3765 } 3766 if len(m.ServiceID) > 0 { 3767 i -= len(m.ServiceID) 3768 copy(dAtA[i:], m.ServiceID) 3769 i = encodeVarintLock(dAtA, i, uint64(len(m.ServiceID))) 3770 i-- 3771 dAtA[i] = 0xa 3772 } 3773 return len(dAtA) - i, nil 3774 } 3775 3776 func (m *SetRestartServiceResponse) Marshal() (dAtA []byte, err error) { 3777 size := m.Size() 3778 dAtA = make([]byte, size) 3779 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3780 if err != nil { 3781 return nil, err 3782 } 3783 return dAtA[:n], nil 3784 } 3785 3786 func (m *SetRestartServiceResponse) MarshalTo(dAtA []byte) (int, error) { 3787 size := m.Size() 3788 return m.MarshalToSizedBuffer(dAtA[:size]) 3789 } 3790 3791 func (m *SetRestartServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3792 i := len(dAtA) 3793 _ = i 3794 var l int 3795 _ = l 3796 if m.XXX_unrecognized != nil { 3797 i -= len(m.XXX_unrecognized) 3798 copy(dAtA[i:], m.XXX_unrecognized) 3799 } 3800 if m.OK { 3801 i-- 3802 if m.OK { 3803 dAtA[i] = 1 3804 } else { 3805 dAtA[i] = 0 3806 } 3807 i-- 3808 dAtA[i] = 0x8 3809 } 3810 return len(dAtA) - i, nil 3811 } 3812 3813 func (m *CanRestartServiceRequest) Marshal() (dAtA []byte, err error) { 3814 size := m.Size() 3815 dAtA = make([]byte, size) 3816 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3817 if err != nil { 3818 return nil, err 3819 } 3820 return dAtA[:n], nil 3821 } 3822 3823 func (m *CanRestartServiceRequest) MarshalTo(dAtA []byte) (int, error) { 3824 size := m.Size() 3825 return m.MarshalToSizedBuffer(dAtA[:size]) 3826 } 3827 3828 func (m *CanRestartServiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3829 i := len(dAtA) 3830 _ = i 3831 var l int 3832 _ = l 3833 if m.XXX_unrecognized != nil { 3834 i -= len(m.XXX_unrecognized) 3835 copy(dAtA[i:], m.XXX_unrecognized) 3836 } 3837 if len(m.ServiceID) > 0 { 3838 i -= len(m.ServiceID) 3839 copy(dAtA[i:], m.ServiceID) 3840 i = encodeVarintLock(dAtA, i, uint64(len(m.ServiceID))) 3841 i-- 3842 dAtA[i] = 0xa 3843 } 3844 return len(dAtA) - i, nil 3845 } 3846 3847 func (m *CanRestartServiceResponse) Marshal() (dAtA []byte, err error) { 3848 size := m.Size() 3849 dAtA = make([]byte, size) 3850 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3851 if err != nil { 3852 return nil, err 3853 } 3854 return dAtA[:n], nil 3855 } 3856 3857 func (m *CanRestartServiceResponse) MarshalTo(dAtA []byte) (int, error) { 3858 size := m.Size() 3859 return m.MarshalToSizedBuffer(dAtA[:size]) 3860 } 3861 3862 func (m *CanRestartServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3863 i := len(dAtA) 3864 _ = i 3865 var l int 3866 _ = l 3867 if m.XXX_unrecognized != nil { 3868 i -= len(m.XXX_unrecognized) 3869 copy(dAtA[i:], m.XXX_unrecognized) 3870 } 3871 if m.OK { 3872 i-- 3873 if m.OK { 3874 dAtA[i] = 1 3875 } else { 3876 dAtA[i] = 0 3877 } 3878 i-- 3879 dAtA[i] = 0x8 3880 } 3881 return len(dAtA) - i, nil 3882 } 3883 3884 func (m *RemainTxnInServiceRequest) Marshal() (dAtA []byte, err error) { 3885 size := m.Size() 3886 dAtA = make([]byte, size) 3887 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3888 if err != nil { 3889 return nil, err 3890 } 3891 return dAtA[:n], nil 3892 } 3893 3894 func (m *RemainTxnInServiceRequest) MarshalTo(dAtA []byte) (int, error) { 3895 size := m.Size() 3896 return m.MarshalToSizedBuffer(dAtA[:size]) 3897 } 3898 3899 func (m *RemainTxnInServiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3900 i := len(dAtA) 3901 _ = i 3902 var l int 3903 _ = l 3904 if m.XXX_unrecognized != nil { 3905 i -= len(m.XXX_unrecognized) 3906 copy(dAtA[i:], m.XXX_unrecognized) 3907 } 3908 if len(m.ServiceID) > 0 { 3909 i -= len(m.ServiceID) 3910 copy(dAtA[i:], m.ServiceID) 3911 i = encodeVarintLock(dAtA, i, uint64(len(m.ServiceID))) 3912 i-- 3913 dAtA[i] = 0xa 3914 } 3915 return len(dAtA) - i, nil 3916 } 3917 3918 func (m *RemainTxnInServiceResponse) Marshal() (dAtA []byte, err error) { 3919 size := m.Size() 3920 dAtA = make([]byte, size) 3921 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3922 if err != nil { 3923 return nil, err 3924 } 3925 return dAtA[:n], nil 3926 } 3927 3928 func (m *RemainTxnInServiceResponse) MarshalTo(dAtA []byte) (int, error) { 3929 size := m.Size() 3930 return m.MarshalToSizedBuffer(dAtA[:size]) 3931 } 3932 3933 func (m *RemainTxnInServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3934 i := len(dAtA) 3935 _ = i 3936 var l int 3937 _ = l 3938 if m.XXX_unrecognized != nil { 3939 i -= len(m.XXX_unrecognized) 3940 copy(dAtA[i:], m.XXX_unrecognized) 3941 } 3942 if m.RemainTxn != 0 { 3943 i = encodeVarintLock(dAtA, i, uint64(m.RemainTxn)) 3944 i-- 3945 dAtA[i] = 0x8 3946 } 3947 return len(dAtA) - i, nil 3948 } 3949 3950 func (m *KeepRemoteLockRequest) Marshal() (dAtA []byte, err error) { 3951 size := m.Size() 3952 dAtA = make([]byte, size) 3953 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3954 if err != nil { 3955 return nil, err 3956 } 3957 return dAtA[:n], nil 3958 } 3959 3960 func (m *KeepRemoteLockRequest) MarshalTo(dAtA []byte) (int, error) { 3961 size := m.Size() 3962 return m.MarshalToSizedBuffer(dAtA[:size]) 3963 } 3964 3965 func (m *KeepRemoteLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3966 i := len(dAtA) 3967 _ = i 3968 var l int 3969 _ = l 3970 if m.XXX_unrecognized != nil { 3971 i -= len(m.XXX_unrecognized) 3972 copy(dAtA[i:], m.XXX_unrecognized) 3973 } 3974 if len(m.ServiceID) > 0 { 3975 i -= len(m.ServiceID) 3976 copy(dAtA[i:], m.ServiceID) 3977 i = encodeVarintLock(dAtA, i, uint64(len(m.ServiceID))) 3978 i-- 3979 dAtA[i] = 0xa 3980 } 3981 return len(dAtA) - i, nil 3982 } 3983 3984 func (m *KeepRemoteLockResponse) Marshal() (dAtA []byte, err error) { 3985 size := m.Size() 3986 dAtA = make([]byte, size) 3987 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3988 if err != nil { 3989 return nil, err 3990 } 3991 return dAtA[:n], nil 3992 } 3993 3994 func (m *KeepRemoteLockResponse) MarshalTo(dAtA []byte) (int, error) { 3995 size := m.Size() 3996 return m.MarshalToSizedBuffer(dAtA[:size]) 3997 } 3998 3999 func (m *KeepRemoteLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4000 i := len(dAtA) 4001 _ = i 4002 var l int 4003 _ = l 4004 if m.XXX_unrecognized != nil { 4005 i -= len(m.XXX_unrecognized) 4006 copy(dAtA[i:], m.XXX_unrecognized) 4007 } 4008 if m.OK { 4009 i-- 4010 if m.OK { 4011 dAtA[i] = 1 4012 } else { 4013 dAtA[i] = 0 4014 } 4015 i-- 4016 dAtA[i] = 0x8 4017 } 4018 return len(dAtA) - i, nil 4019 } 4020 4021 func (m *ValidateServiceRequest) Marshal() (dAtA []byte, err error) { 4022 size := m.Size() 4023 dAtA = make([]byte, size) 4024 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4025 if err != nil { 4026 return nil, err 4027 } 4028 return dAtA[:n], nil 4029 } 4030 4031 func (m *ValidateServiceRequest) MarshalTo(dAtA []byte) (int, error) { 4032 size := m.Size() 4033 return m.MarshalToSizedBuffer(dAtA[:size]) 4034 } 4035 4036 func (m *ValidateServiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4037 i := len(dAtA) 4038 _ = i 4039 var l int 4040 _ = l 4041 if m.XXX_unrecognized != nil { 4042 i -= len(m.XXX_unrecognized) 4043 copy(dAtA[i:], m.XXX_unrecognized) 4044 } 4045 if len(m.ServiceID) > 0 { 4046 i -= len(m.ServiceID) 4047 copy(dAtA[i:], m.ServiceID) 4048 i = encodeVarintLock(dAtA, i, uint64(len(m.ServiceID))) 4049 i-- 4050 dAtA[i] = 0xa 4051 } 4052 return len(dAtA) - i, nil 4053 } 4054 4055 func (m *ValidateServiceResponse) Marshal() (dAtA []byte, err error) { 4056 size := m.Size() 4057 dAtA = make([]byte, size) 4058 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4059 if err != nil { 4060 return nil, err 4061 } 4062 return dAtA[:n], nil 4063 } 4064 4065 func (m *ValidateServiceResponse) MarshalTo(dAtA []byte) (int, error) { 4066 size := m.Size() 4067 return m.MarshalToSizedBuffer(dAtA[:size]) 4068 } 4069 4070 func (m *ValidateServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4071 i := len(dAtA) 4072 _ = i 4073 var l int 4074 _ = l 4075 if m.XXX_unrecognized != nil { 4076 i -= len(m.XXX_unrecognized) 4077 copy(dAtA[i:], m.XXX_unrecognized) 4078 } 4079 if m.OK { 4080 i-- 4081 if m.OK { 4082 dAtA[i] = 1 4083 } else { 4084 dAtA[i] = 0 4085 } 4086 i-- 4087 dAtA[i] = 0x8 4088 } 4089 return len(dAtA) - i, nil 4090 } 4091 4092 func (m *CannotCommitRequest) Marshal() (dAtA []byte, err error) { 4093 size := m.Size() 4094 dAtA = make([]byte, size) 4095 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4096 if err != nil { 4097 return nil, err 4098 } 4099 return dAtA[:n], nil 4100 } 4101 4102 func (m *CannotCommitRequest) MarshalTo(dAtA []byte) (int, error) { 4103 size := m.Size() 4104 return m.MarshalToSizedBuffer(dAtA[:size]) 4105 } 4106 4107 func (m *CannotCommitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4108 i := len(dAtA) 4109 _ = i 4110 var l int 4111 _ = l 4112 if m.XXX_unrecognized != nil { 4113 i -= len(m.XXX_unrecognized) 4114 copy(dAtA[i:], m.XXX_unrecognized) 4115 } 4116 if len(m.OrphanTxnList) > 0 { 4117 for iNdEx := len(m.OrphanTxnList) - 1; iNdEx >= 0; iNdEx-- { 4118 { 4119 size, err := m.OrphanTxnList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4120 if err != nil { 4121 return 0, err 4122 } 4123 i -= size 4124 i = encodeVarintLock(dAtA, i, uint64(size)) 4125 } 4126 i-- 4127 dAtA[i] = 0xa 4128 } 4129 } 4130 return len(dAtA) - i, nil 4131 } 4132 4133 func (m *CannotCommitResponse) Marshal() (dAtA []byte, err error) { 4134 size := m.Size() 4135 dAtA = make([]byte, size) 4136 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4137 if err != nil { 4138 return nil, err 4139 } 4140 return dAtA[:n], nil 4141 } 4142 4143 func (m *CannotCommitResponse) MarshalTo(dAtA []byte) (int, error) { 4144 size := m.Size() 4145 return m.MarshalToSizedBuffer(dAtA[:size]) 4146 } 4147 4148 func (m *CannotCommitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4149 i := len(dAtA) 4150 _ = i 4151 var l int 4152 _ = l 4153 if m.XXX_unrecognized != nil { 4154 i -= len(m.XXX_unrecognized) 4155 copy(dAtA[i:], m.XXX_unrecognized) 4156 } 4157 if len(m.CommittingTxn) > 0 { 4158 for iNdEx := len(m.CommittingTxn) - 1; iNdEx >= 0; iNdEx-- { 4159 i -= len(m.CommittingTxn[iNdEx]) 4160 copy(dAtA[i:], m.CommittingTxn[iNdEx]) 4161 i = encodeVarintLock(dAtA, i, uint64(len(m.CommittingTxn[iNdEx]))) 4162 i-- 4163 dAtA[i] = 0xa 4164 } 4165 } 4166 return len(dAtA) - i, nil 4167 } 4168 4169 func (m *GetActiveTxnRequest) Marshal() (dAtA []byte, err error) { 4170 size := m.Size() 4171 dAtA = make([]byte, size) 4172 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4173 if err != nil { 4174 return nil, err 4175 } 4176 return dAtA[:n], nil 4177 } 4178 4179 func (m *GetActiveTxnRequest) MarshalTo(dAtA []byte) (int, error) { 4180 size := m.Size() 4181 return m.MarshalToSizedBuffer(dAtA[:size]) 4182 } 4183 4184 func (m *GetActiveTxnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4185 i := len(dAtA) 4186 _ = i 4187 var l int 4188 _ = l 4189 if m.XXX_unrecognized != nil { 4190 i -= len(m.XXX_unrecognized) 4191 copy(dAtA[i:], m.XXX_unrecognized) 4192 } 4193 if len(m.ServiceID) > 0 { 4194 i -= len(m.ServiceID) 4195 copy(dAtA[i:], m.ServiceID) 4196 i = encodeVarintLock(dAtA, i, uint64(len(m.ServiceID))) 4197 i-- 4198 dAtA[i] = 0xa 4199 } 4200 return len(dAtA) - i, nil 4201 } 4202 4203 func (m *GetActiveTxnResponse) Marshal() (dAtA []byte, err error) { 4204 size := m.Size() 4205 dAtA = make([]byte, size) 4206 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4207 if err != nil { 4208 return nil, err 4209 } 4210 return dAtA[:n], nil 4211 } 4212 4213 func (m *GetActiveTxnResponse) MarshalTo(dAtA []byte) (int, error) { 4214 size := m.Size() 4215 return m.MarshalToSizedBuffer(dAtA[:size]) 4216 } 4217 4218 func (m *GetActiveTxnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4219 i := len(dAtA) 4220 _ = i 4221 var l int 4222 _ = l 4223 if m.XXX_unrecognized != nil { 4224 i -= len(m.XXX_unrecognized) 4225 copy(dAtA[i:], m.XXX_unrecognized) 4226 } 4227 if len(m.Txn) > 0 { 4228 for iNdEx := len(m.Txn) - 1; iNdEx >= 0; iNdEx-- { 4229 i -= len(m.Txn[iNdEx]) 4230 copy(dAtA[i:], m.Txn[iNdEx]) 4231 i = encodeVarintLock(dAtA, i, uint64(len(m.Txn[iNdEx]))) 4232 i-- 4233 dAtA[i] = 0x12 4234 } 4235 } 4236 if m.Valid { 4237 i-- 4238 if m.Valid { 4239 dAtA[i] = 1 4240 } else { 4241 dAtA[i] = 0 4242 } 4243 i-- 4244 dAtA[i] = 0x8 4245 } 4246 return len(dAtA) - i, nil 4247 } 4248 4249 func (m *OrphanTxn) Marshal() (dAtA []byte, err error) { 4250 size := m.Size() 4251 dAtA = make([]byte, size) 4252 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4253 if err != nil { 4254 return nil, err 4255 } 4256 return dAtA[:n], nil 4257 } 4258 4259 func (m *OrphanTxn) MarshalTo(dAtA []byte) (int, error) { 4260 size := m.Size() 4261 return m.MarshalToSizedBuffer(dAtA[:size]) 4262 } 4263 4264 func (m *OrphanTxn) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4265 i := len(dAtA) 4266 _ = i 4267 var l int 4268 _ = l 4269 if m.XXX_unrecognized != nil { 4270 i -= len(m.XXX_unrecognized) 4271 copy(dAtA[i:], m.XXX_unrecognized) 4272 } 4273 if len(m.Txn) > 0 { 4274 for iNdEx := len(m.Txn) - 1; iNdEx >= 0; iNdEx-- { 4275 i -= len(m.Txn[iNdEx]) 4276 copy(dAtA[i:], m.Txn[iNdEx]) 4277 i = encodeVarintLock(dAtA, i, uint64(len(m.Txn[iNdEx]))) 4278 i-- 4279 dAtA[i] = 0x12 4280 } 4281 } 4282 if len(m.Service) > 0 { 4283 i -= len(m.Service) 4284 copy(dAtA[i:], m.Service) 4285 i = encodeVarintLock(dAtA, i, uint64(len(m.Service))) 4286 i-- 4287 dAtA[i] = 0xa 4288 } 4289 return len(dAtA) - i, nil 4290 } 4291 4292 func (m *Result) Marshal() (dAtA []byte, err error) { 4293 size := m.Size() 4294 dAtA = make([]byte, size) 4295 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4296 if err != nil { 4297 return nil, err 4298 } 4299 return dAtA[:n], nil 4300 } 4301 4302 func (m *Result) MarshalTo(dAtA []byte) (int, error) { 4303 size := m.Size() 4304 return m.MarshalToSizedBuffer(dAtA[:size]) 4305 } 4306 4307 func (m *Result) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4308 i := len(dAtA) 4309 _ = i 4310 var l int 4311 _ = l 4312 if m.XXX_unrecognized != nil { 4313 i -= len(m.XXX_unrecognized) 4314 copy(dAtA[i:], m.XXX_unrecognized) 4315 } 4316 if m.Waiters != 0 { 4317 i = encodeVarintLock(dAtA, i, uint64(m.Waiters)) 4318 i-- 4319 dAtA[i] = 0x48 4320 } 4321 if len(m.PrevWaiter) > 0 { 4322 i -= len(m.PrevWaiter) 4323 copy(dAtA[i:], m.PrevWaiter) 4324 i = encodeVarintLock(dAtA, i, uint64(len(m.PrevWaiter))) 4325 i-- 4326 dAtA[i] = 0x42 4327 } 4328 if len(m.ConflictTxn) > 0 { 4329 i -= len(m.ConflictTxn) 4330 copy(dAtA[i:], m.ConflictTxn) 4331 i = encodeVarintLock(dAtA, i, uint64(len(m.ConflictTxn))) 4332 i-- 4333 dAtA[i] = 0x3a 4334 } 4335 if len(m.ConflictKey) > 0 { 4336 i -= len(m.ConflictKey) 4337 copy(dAtA[i:], m.ConflictKey) 4338 i = encodeVarintLock(dAtA, i, uint64(len(m.ConflictKey))) 4339 i-- 4340 dAtA[i] = 0x32 4341 } 4342 if m.TableDefChanged { 4343 i-- 4344 if m.TableDefChanged { 4345 dAtA[i] = 1 4346 } else { 4347 dAtA[i] = 0 4348 } 4349 i-- 4350 dAtA[i] = 0x28 4351 } 4352 { 4353 size, err := m.Timestamp.MarshalToSizedBuffer(dAtA[:i]) 4354 if err != nil { 4355 return 0, err 4356 } 4357 i -= size 4358 i = encodeVarintLock(dAtA, i, uint64(size)) 4359 } 4360 i-- 4361 dAtA[i] = 0x22 4362 if m.HasPrevCommit { 4363 i-- 4364 if m.HasPrevCommit { 4365 dAtA[i] = 1 4366 } else { 4367 dAtA[i] = 0 4368 } 4369 i-- 4370 dAtA[i] = 0x18 4371 } 4372 if m.HasConflict { 4373 i-- 4374 if m.HasConflict { 4375 dAtA[i] = 1 4376 } else { 4377 dAtA[i] = 0 4378 } 4379 i-- 4380 dAtA[i] = 0x10 4381 } 4382 { 4383 size, err := m.LockedOn.MarshalToSizedBuffer(dAtA[:i]) 4384 if err != nil { 4385 return 0, err 4386 } 4387 i -= size 4388 i = encodeVarintLock(dAtA, i, uint64(size)) 4389 } 4390 i-- 4391 dAtA[i] = 0xa 4392 return len(dAtA) - i, nil 4393 } 4394 4395 func (m *ExtraMutation) Marshal() (dAtA []byte, err error) { 4396 size := m.Size() 4397 dAtA = make([]byte, size) 4398 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4399 if err != nil { 4400 return nil, err 4401 } 4402 return dAtA[:n], nil 4403 } 4404 4405 func (m *ExtraMutation) MarshalTo(dAtA []byte) (int, error) { 4406 size := m.Size() 4407 return m.MarshalToSizedBuffer(dAtA[:size]) 4408 } 4409 4410 func (m *ExtraMutation) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4411 i := len(dAtA) 4412 _ = i 4413 var l int 4414 _ = l 4415 if m.XXX_unrecognized != nil { 4416 i -= len(m.XXX_unrecognized) 4417 copy(dAtA[i:], m.XXX_unrecognized) 4418 } 4419 if len(m.ReplaceTo) > 0 { 4420 i -= len(m.ReplaceTo) 4421 copy(dAtA[i:], m.ReplaceTo) 4422 i = encodeVarintLock(dAtA, i, uint64(len(m.ReplaceTo))) 4423 i-- 4424 dAtA[i] = 0x1a 4425 } 4426 if m.Skip { 4427 i-- 4428 if m.Skip { 4429 dAtA[i] = 1 4430 } else { 4431 dAtA[i] = 0 4432 } 4433 i-- 4434 dAtA[i] = 0x10 4435 } 4436 if len(m.Key) > 0 { 4437 i -= len(m.Key) 4438 copy(dAtA[i:], m.Key) 4439 i = encodeVarintLock(dAtA, i, uint64(len(m.Key))) 4440 i-- 4441 dAtA[i] = 0xa 4442 } 4443 return len(dAtA) - i, nil 4444 } 4445 4446 func encodeVarintLock(dAtA []byte, offset int, v uint64) int { 4447 offset -= sovLock(v) 4448 base := offset 4449 for v >= 1<<7 { 4450 dAtA[offset] = uint8(v&0x7f | 0x80) 4451 v >>= 7 4452 offset++ 4453 } 4454 dAtA[offset] = uint8(v) 4455 return base 4456 } 4457 func (m *LockOptions) Size() (n int) { 4458 if m == nil { 4459 return 0 4460 } 4461 var l int 4462 _ = l 4463 if m.Granularity != 0 { 4464 n += 1 + sovLock(uint64(m.Granularity)) 4465 } 4466 if m.Mode != 0 { 4467 n += 1 + sovLock(uint64(m.Mode)) 4468 } 4469 if m.Policy != 0 { 4470 n += 1 + sovLock(uint64(m.Policy)) 4471 } 4472 l = len(m.ForwardTo) 4473 if l > 0 { 4474 n += 1 + l + sovLock(uint64(l)) 4475 } 4476 if m.TableDefChanged { 4477 n += 2 4478 } 4479 if m.RetryWait != 0 { 4480 n += 1 + sovLock(uint64(m.RetryWait)) 4481 } 4482 if m.Group != 0 { 4483 n += 1 + sovLock(uint64(m.Group)) 4484 } 4485 if m.Sharding != 0 { 4486 n += 1 + sovLock(uint64(m.Sharding)) 4487 } 4488 l = m.SnapShotTs.Size() 4489 n += 1 + l + sovLock(uint64(l)) 4490 if m.XXX_unrecognized != nil { 4491 n += len(m.XXX_unrecognized) 4492 } 4493 return n 4494 } 4495 4496 func (m *LockTable) Size() (n int) { 4497 if m == nil { 4498 return 0 4499 } 4500 var l int 4501 _ = l 4502 if m.Table != 0 { 4503 n += 1 + sovLock(uint64(m.Table)) 4504 } 4505 l = len(m.ServiceID) 4506 if l > 0 { 4507 n += 1 + l + sovLock(uint64(l)) 4508 } 4509 if m.Version != 0 { 4510 n += 1 + sovLock(uint64(m.Version)) 4511 } 4512 if m.Valid { 4513 n += 2 4514 } 4515 if m.Group != 0 { 4516 n += 1 + sovLock(uint64(m.Group)) 4517 } 4518 if m.Sharding != 0 { 4519 n += 1 + sovLock(uint64(m.Sharding)) 4520 } 4521 if m.OriginTable != 0 { 4522 n += 1 + sovLock(uint64(m.OriginTable)) 4523 } 4524 if m.XXX_unrecognized != nil { 4525 n += len(m.XXX_unrecognized) 4526 } 4527 return n 4528 } 4529 4530 func (m *Request) Size() (n int) { 4531 if m == nil { 4532 return 0 4533 } 4534 var l int 4535 _ = l 4536 if m.RequestID != 0 { 4537 n += 1 + sovLock(uint64(m.RequestID)) 4538 } 4539 l = m.LockTable.Size() 4540 n += 1 + l + sovLock(uint64(l)) 4541 if m.Method != 0 { 4542 n += 1 + sovLock(uint64(m.Method)) 4543 } 4544 l = m.Lock.Size() 4545 n += 1 + l + sovLock(uint64(l)) 4546 l = m.Unlock.Size() 4547 n += 1 + l + sovLock(uint64(l)) 4548 l = m.GetTxnLock.Size() 4549 n += 1 + l + sovLock(uint64(l)) 4550 l = m.GetWaitingList.Size() 4551 n += 1 + l + sovLock(uint64(l)) 4552 l = m.GetBind.Size() 4553 n += 1 + l + sovLock(uint64(l)) 4554 l = m.KeepLockTableBind.Size() 4555 n += 1 + l + sovLock(uint64(l)) 4556 l = m.KeepRemoteLock.Size() 4557 n += 1 + l + sovLock(uint64(l)) 4558 l = m.ValidateService.Size() 4559 n += 1 + l + sovLock(uint64(l)) 4560 l = m.CannotCommit.Size() 4561 n += 1 + l + sovLock(uint64(l)) 4562 l = m.GetActiveTxn.Size() 4563 n += 1 + l + sovLock(uint64(l)) 4564 l = m.SetRestartService.Size() 4565 n += 1 + l + sovLock(uint64(l)) 4566 l = m.CanRestartService.Size() 4567 n += 1 + l + sovLock(uint64(l)) 4568 l = m.RemainTxnInService.Size() 4569 n += 2 + l + sovLock(uint64(l)) 4570 if m.XXX_unrecognized != nil { 4571 n += len(m.XXX_unrecognized) 4572 } 4573 return n 4574 } 4575 4576 func (m *Response) Size() (n int) { 4577 if m == nil { 4578 return 0 4579 } 4580 var l int 4581 _ = l 4582 if m.RequestID != 0 { 4583 n += 1 + sovLock(uint64(m.RequestID)) 4584 } 4585 if m.Method != 0 { 4586 n += 1 + sovLock(uint64(m.Method)) 4587 } 4588 l = len(m.Error) 4589 if l > 0 { 4590 n += 1 + l + sovLock(uint64(l)) 4591 } 4592 if m.NewBind != nil { 4593 l = m.NewBind.Size() 4594 n += 1 + l + sovLock(uint64(l)) 4595 } 4596 l = m.Lock.Size() 4597 n += 1 + l + sovLock(uint64(l)) 4598 l = m.Unlock.Size() 4599 n += 1 + l + sovLock(uint64(l)) 4600 l = m.GetTxnLock.Size() 4601 n += 1 + l + sovLock(uint64(l)) 4602 l = m.GetWaitingList.Size() 4603 n += 1 + l + sovLock(uint64(l)) 4604 l = m.GetBind.Size() 4605 n += 1 + l + sovLock(uint64(l)) 4606 l = m.KeepLockTableBind.Size() 4607 n += 1 + l + sovLock(uint64(l)) 4608 l = m.KeepRemoteLock.Size() 4609 n += 1 + l + sovLock(uint64(l)) 4610 l = m.ValidateService.Size() 4611 n += 1 + l + sovLock(uint64(l)) 4612 l = m.CannotCommit.Size() 4613 n += 1 + l + sovLock(uint64(l)) 4614 l = m.GetActiveTxn.Size() 4615 n += 1 + l + sovLock(uint64(l)) 4616 l = m.SetRestartService.Size() 4617 n += 1 + l + sovLock(uint64(l)) 4618 l = m.CanRestartService.Size() 4619 n += 2 + l + sovLock(uint64(l)) 4620 l = m.RemainTxnInService.Size() 4621 n += 2 + l + sovLock(uint64(l)) 4622 if m.XXX_unrecognized != nil { 4623 n += len(m.XXX_unrecognized) 4624 } 4625 return n 4626 } 4627 4628 func (m *LockRequest) Size() (n int) { 4629 if m == nil { 4630 return 0 4631 } 4632 var l int 4633 _ = l 4634 l = len(m.TxnID) 4635 if l > 0 { 4636 n += 1 + l + sovLock(uint64(l)) 4637 } 4638 l = len(m.ServiceID) 4639 if l > 0 { 4640 n += 1 + l + sovLock(uint64(l)) 4641 } 4642 if len(m.Rows) > 0 { 4643 for _, b := range m.Rows { 4644 l = len(b) 4645 n += 1 + l + sovLock(uint64(l)) 4646 } 4647 } 4648 l = m.Options.Size() 4649 n += 1 + l + sovLock(uint64(l)) 4650 if m.XXX_unrecognized != nil { 4651 n += len(m.XXX_unrecognized) 4652 } 4653 return n 4654 } 4655 4656 func (m *LockResponse) Size() (n int) { 4657 if m == nil { 4658 return 0 4659 } 4660 var l int 4661 _ = l 4662 l = m.Result.Size() 4663 n += 1 + l + sovLock(uint64(l)) 4664 if m.XXX_unrecognized != nil { 4665 n += len(m.XXX_unrecognized) 4666 } 4667 return n 4668 } 4669 4670 func (m *GetTxnLockRequest) Size() (n int) { 4671 if m == nil { 4672 return 0 4673 } 4674 var l int 4675 _ = l 4676 l = len(m.TxnID) 4677 if l > 0 { 4678 n += 1 + l + sovLock(uint64(l)) 4679 } 4680 l = len(m.Row) 4681 if l > 0 { 4682 n += 1 + l + sovLock(uint64(l)) 4683 } 4684 if m.XXX_unrecognized != nil { 4685 n += len(m.XXX_unrecognized) 4686 } 4687 return n 4688 } 4689 4690 func (m *GetTxnLockResponse) Size() (n int) { 4691 if m == nil { 4692 return 0 4693 } 4694 var l int 4695 _ = l 4696 if m.Value != 0 { 4697 n += 1 + sovLock(uint64(m.Value)) 4698 } 4699 if len(m.WaitingList) > 0 { 4700 for _, e := range m.WaitingList { 4701 l = e.Size() 4702 n += 1 + l + sovLock(uint64(l)) 4703 } 4704 } 4705 if m.XXX_unrecognized != nil { 4706 n += len(m.XXX_unrecognized) 4707 } 4708 return n 4709 } 4710 4711 func (m *GetWaitingListRequest) Size() (n int) { 4712 if m == nil { 4713 return 0 4714 } 4715 var l int 4716 _ = l 4717 l = m.Txn.Size() 4718 n += 1 + l + sovLock(uint64(l)) 4719 if m.XXX_unrecognized != nil { 4720 n += len(m.XXX_unrecognized) 4721 } 4722 return n 4723 } 4724 4725 func (m *GetWaitingListResponse) Size() (n int) { 4726 if m == nil { 4727 return 0 4728 } 4729 var l int 4730 _ = l 4731 if len(m.WaitingList) > 0 { 4732 for _, e := range m.WaitingList { 4733 l = e.Size() 4734 n += 1 + l + sovLock(uint64(l)) 4735 } 4736 } 4737 if m.XXX_unrecognized != nil { 4738 n += len(m.XXX_unrecognized) 4739 } 4740 return n 4741 } 4742 4743 func (m *WaitTxn) Size() (n int) { 4744 if m == nil { 4745 return 0 4746 } 4747 var l int 4748 _ = l 4749 l = len(m.TxnID) 4750 if l > 0 { 4751 n += 1 + l + sovLock(uint64(l)) 4752 } 4753 l = len(m.CreatedOn) 4754 if l > 0 { 4755 n += 1 + l + sovLock(uint64(l)) 4756 } 4757 if m.XXX_unrecognized != nil { 4758 n += len(m.XXX_unrecognized) 4759 } 4760 return n 4761 } 4762 4763 func (m *UnlockRequest) Size() (n int) { 4764 if m == nil { 4765 return 0 4766 } 4767 var l int 4768 _ = l 4769 l = len(m.TxnID) 4770 if l > 0 { 4771 n += 1 + l + sovLock(uint64(l)) 4772 } 4773 l = m.CommitTS.Size() 4774 n += 1 + l + sovLock(uint64(l)) 4775 if len(m.Mutations) > 0 { 4776 for _, e := range m.Mutations { 4777 l = e.Size() 4778 n += 1 + l + sovLock(uint64(l)) 4779 } 4780 } 4781 if m.XXX_unrecognized != nil { 4782 n += len(m.XXX_unrecognized) 4783 } 4784 return n 4785 } 4786 4787 func (m *UnlockResponse) Size() (n int) { 4788 if m == nil { 4789 return 0 4790 } 4791 var l int 4792 _ = l 4793 if m.XXX_unrecognized != nil { 4794 n += len(m.XXX_unrecognized) 4795 } 4796 return n 4797 } 4798 4799 func (m *GetBindRequest) Size() (n int) { 4800 if m == nil { 4801 return 0 4802 } 4803 var l int 4804 _ = l 4805 l = len(m.ServiceID) 4806 if l > 0 { 4807 n += 1 + l + sovLock(uint64(l)) 4808 } 4809 if m.Table != 0 { 4810 n += 1 + sovLock(uint64(m.Table)) 4811 } 4812 if m.Group != 0 { 4813 n += 1 + sovLock(uint64(m.Group)) 4814 } 4815 if m.Sharding != 0 { 4816 n += 1 + sovLock(uint64(m.Sharding)) 4817 } 4818 if m.OriginTable != 0 { 4819 n += 1 + sovLock(uint64(m.OriginTable)) 4820 } 4821 if m.XXX_unrecognized != nil { 4822 n += len(m.XXX_unrecognized) 4823 } 4824 return n 4825 } 4826 4827 func (m *GetBindResponse) Size() (n int) { 4828 if m == nil { 4829 return 0 4830 } 4831 var l int 4832 _ = l 4833 l = m.LockTable.Size() 4834 n += 1 + l + sovLock(uint64(l)) 4835 if m.XXX_unrecognized != nil { 4836 n += len(m.XXX_unrecognized) 4837 } 4838 return n 4839 } 4840 4841 func (m *KeepLockTableBindRequest) Size() (n int) { 4842 if m == nil { 4843 return 0 4844 } 4845 var l int 4846 _ = l 4847 l = len(m.ServiceID) 4848 if l > 0 { 4849 n += 1 + l + sovLock(uint64(l)) 4850 } 4851 if m.Status != 0 { 4852 n += 1 + sovLock(uint64(m.Status)) 4853 } 4854 if len(m.TxnIDs) > 0 { 4855 for _, b := range m.TxnIDs { 4856 l = len(b) 4857 n += 1 + l + sovLock(uint64(l)) 4858 } 4859 } 4860 if len(m.LockTables) > 0 { 4861 for _, e := range m.LockTables { 4862 l = e.Size() 4863 n += 1 + l + sovLock(uint64(l)) 4864 } 4865 } 4866 if m.XXX_unrecognized != nil { 4867 n += len(m.XXX_unrecognized) 4868 } 4869 return n 4870 } 4871 4872 func (m *KeepLockTableBindResponse) Size() (n int) { 4873 if m == nil { 4874 return 0 4875 } 4876 var l int 4877 _ = l 4878 if m.OK { 4879 n += 2 4880 } 4881 if m.Status != 0 { 4882 n += 1 + sovLock(uint64(m.Status)) 4883 } 4884 if m.XXX_unrecognized != nil { 4885 n += len(m.XXX_unrecognized) 4886 } 4887 return n 4888 } 4889 4890 func (m *SetRestartServiceRequest) Size() (n int) { 4891 if m == nil { 4892 return 0 4893 } 4894 var l int 4895 _ = l 4896 l = len(m.ServiceID) 4897 if l > 0 { 4898 n += 1 + l + sovLock(uint64(l)) 4899 } 4900 if m.XXX_unrecognized != nil { 4901 n += len(m.XXX_unrecognized) 4902 } 4903 return n 4904 } 4905 4906 func (m *SetRestartServiceResponse) Size() (n int) { 4907 if m == nil { 4908 return 0 4909 } 4910 var l int 4911 _ = l 4912 if m.OK { 4913 n += 2 4914 } 4915 if m.XXX_unrecognized != nil { 4916 n += len(m.XXX_unrecognized) 4917 } 4918 return n 4919 } 4920 4921 func (m *CanRestartServiceRequest) Size() (n int) { 4922 if m == nil { 4923 return 0 4924 } 4925 var l int 4926 _ = l 4927 l = len(m.ServiceID) 4928 if l > 0 { 4929 n += 1 + l + sovLock(uint64(l)) 4930 } 4931 if m.XXX_unrecognized != nil { 4932 n += len(m.XXX_unrecognized) 4933 } 4934 return n 4935 } 4936 4937 func (m *CanRestartServiceResponse) Size() (n int) { 4938 if m == nil { 4939 return 0 4940 } 4941 var l int 4942 _ = l 4943 if m.OK { 4944 n += 2 4945 } 4946 if m.XXX_unrecognized != nil { 4947 n += len(m.XXX_unrecognized) 4948 } 4949 return n 4950 } 4951 4952 func (m *RemainTxnInServiceRequest) Size() (n int) { 4953 if m == nil { 4954 return 0 4955 } 4956 var l int 4957 _ = l 4958 l = len(m.ServiceID) 4959 if l > 0 { 4960 n += 1 + l + sovLock(uint64(l)) 4961 } 4962 if m.XXX_unrecognized != nil { 4963 n += len(m.XXX_unrecognized) 4964 } 4965 return n 4966 } 4967 4968 func (m *RemainTxnInServiceResponse) Size() (n int) { 4969 if m == nil { 4970 return 0 4971 } 4972 var l int 4973 _ = l 4974 if m.RemainTxn != 0 { 4975 n += 1 + sovLock(uint64(m.RemainTxn)) 4976 } 4977 if m.XXX_unrecognized != nil { 4978 n += len(m.XXX_unrecognized) 4979 } 4980 return n 4981 } 4982 4983 func (m *KeepRemoteLockRequest) Size() (n int) { 4984 if m == nil { 4985 return 0 4986 } 4987 var l int 4988 _ = l 4989 l = len(m.ServiceID) 4990 if l > 0 { 4991 n += 1 + l + sovLock(uint64(l)) 4992 } 4993 if m.XXX_unrecognized != nil { 4994 n += len(m.XXX_unrecognized) 4995 } 4996 return n 4997 } 4998 4999 func (m *KeepRemoteLockResponse) Size() (n int) { 5000 if m == nil { 5001 return 0 5002 } 5003 var l int 5004 _ = l 5005 if m.OK { 5006 n += 2 5007 } 5008 if m.XXX_unrecognized != nil { 5009 n += len(m.XXX_unrecognized) 5010 } 5011 return n 5012 } 5013 5014 func (m *ValidateServiceRequest) Size() (n int) { 5015 if m == nil { 5016 return 0 5017 } 5018 var l int 5019 _ = l 5020 l = len(m.ServiceID) 5021 if l > 0 { 5022 n += 1 + l + sovLock(uint64(l)) 5023 } 5024 if m.XXX_unrecognized != nil { 5025 n += len(m.XXX_unrecognized) 5026 } 5027 return n 5028 } 5029 5030 func (m *ValidateServiceResponse) Size() (n int) { 5031 if m == nil { 5032 return 0 5033 } 5034 var l int 5035 _ = l 5036 if m.OK { 5037 n += 2 5038 } 5039 if m.XXX_unrecognized != nil { 5040 n += len(m.XXX_unrecognized) 5041 } 5042 return n 5043 } 5044 5045 func (m *CannotCommitRequest) Size() (n int) { 5046 if m == nil { 5047 return 0 5048 } 5049 var l int 5050 _ = l 5051 if len(m.OrphanTxnList) > 0 { 5052 for _, e := range m.OrphanTxnList { 5053 l = e.Size() 5054 n += 1 + l + sovLock(uint64(l)) 5055 } 5056 } 5057 if m.XXX_unrecognized != nil { 5058 n += len(m.XXX_unrecognized) 5059 } 5060 return n 5061 } 5062 5063 func (m *CannotCommitResponse) Size() (n int) { 5064 if m == nil { 5065 return 0 5066 } 5067 var l int 5068 _ = l 5069 if len(m.CommittingTxn) > 0 { 5070 for _, b := range m.CommittingTxn { 5071 l = len(b) 5072 n += 1 + l + sovLock(uint64(l)) 5073 } 5074 } 5075 if m.XXX_unrecognized != nil { 5076 n += len(m.XXX_unrecognized) 5077 } 5078 return n 5079 } 5080 5081 func (m *GetActiveTxnRequest) Size() (n int) { 5082 if m == nil { 5083 return 0 5084 } 5085 var l int 5086 _ = l 5087 l = len(m.ServiceID) 5088 if l > 0 { 5089 n += 1 + l + sovLock(uint64(l)) 5090 } 5091 if m.XXX_unrecognized != nil { 5092 n += len(m.XXX_unrecognized) 5093 } 5094 return n 5095 } 5096 5097 func (m *GetActiveTxnResponse) Size() (n int) { 5098 if m == nil { 5099 return 0 5100 } 5101 var l int 5102 _ = l 5103 if m.Valid { 5104 n += 2 5105 } 5106 if len(m.Txn) > 0 { 5107 for _, b := range m.Txn { 5108 l = len(b) 5109 n += 1 + l + sovLock(uint64(l)) 5110 } 5111 } 5112 if m.XXX_unrecognized != nil { 5113 n += len(m.XXX_unrecognized) 5114 } 5115 return n 5116 } 5117 5118 func (m *OrphanTxn) Size() (n int) { 5119 if m == nil { 5120 return 0 5121 } 5122 var l int 5123 _ = l 5124 l = len(m.Service) 5125 if l > 0 { 5126 n += 1 + l + sovLock(uint64(l)) 5127 } 5128 if len(m.Txn) > 0 { 5129 for _, b := range m.Txn { 5130 l = len(b) 5131 n += 1 + l + sovLock(uint64(l)) 5132 } 5133 } 5134 if m.XXX_unrecognized != nil { 5135 n += len(m.XXX_unrecognized) 5136 } 5137 return n 5138 } 5139 5140 func (m *Result) Size() (n int) { 5141 if m == nil { 5142 return 0 5143 } 5144 var l int 5145 _ = l 5146 l = m.LockedOn.Size() 5147 n += 1 + l + sovLock(uint64(l)) 5148 if m.HasConflict { 5149 n += 2 5150 } 5151 if m.HasPrevCommit { 5152 n += 2 5153 } 5154 l = m.Timestamp.Size() 5155 n += 1 + l + sovLock(uint64(l)) 5156 if m.TableDefChanged { 5157 n += 2 5158 } 5159 l = len(m.ConflictKey) 5160 if l > 0 { 5161 n += 1 + l + sovLock(uint64(l)) 5162 } 5163 l = len(m.ConflictTxn) 5164 if l > 0 { 5165 n += 1 + l + sovLock(uint64(l)) 5166 } 5167 l = len(m.PrevWaiter) 5168 if l > 0 { 5169 n += 1 + l + sovLock(uint64(l)) 5170 } 5171 if m.Waiters != 0 { 5172 n += 1 + sovLock(uint64(m.Waiters)) 5173 } 5174 if m.XXX_unrecognized != nil { 5175 n += len(m.XXX_unrecognized) 5176 } 5177 return n 5178 } 5179 5180 func (m *ExtraMutation) Size() (n int) { 5181 if m == nil { 5182 return 0 5183 } 5184 var l int 5185 _ = l 5186 l = len(m.Key) 5187 if l > 0 { 5188 n += 1 + l + sovLock(uint64(l)) 5189 } 5190 if m.Skip { 5191 n += 2 5192 } 5193 l = len(m.ReplaceTo) 5194 if l > 0 { 5195 n += 1 + l + sovLock(uint64(l)) 5196 } 5197 if m.XXX_unrecognized != nil { 5198 n += len(m.XXX_unrecognized) 5199 } 5200 return n 5201 } 5202 5203 func sovLock(x uint64) (n int) { 5204 return (math_bits.Len64(x|1) + 6) / 7 5205 } 5206 func sozLock(x uint64) (n int) { 5207 return sovLock(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 5208 } 5209 func (m *LockOptions) Unmarshal(dAtA []byte) error { 5210 l := len(dAtA) 5211 iNdEx := 0 5212 for iNdEx < l { 5213 preIndex := iNdEx 5214 var wire uint64 5215 for shift := uint(0); ; shift += 7 { 5216 if shift >= 64 { 5217 return ErrIntOverflowLock 5218 } 5219 if iNdEx >= l { 5220 return io.ErrUnexpectedEOF 5221 } 5222 b := dAtA[iNdEx] 5223 iNdEx++ 5224 wire |= uint64(b&0x7F) << shift 5225 if b < 0x80 { 5226 break 5227 } 5228 } 5229 fieldNum := int32(wire >> 3) 5230 wireType := int(wire & 0x7) 5231 if wireType == 4 { 5232 return fmt.Errorf("proto: LockOptions: wiretype end group for non-group") 5233 } 5234 if fieldNum <= 0 { 5235 return fmt.Errorf("proto: LockOptions: illegal tag %d (wire type %d)", fieldNum, wire) 5236 } 5237 switch fieldNum { 5238 case 1: 5239 if wireType != 0 { 5240 return fmt.Errorf("proto: wrong wireType = %d for field Granularity", wireType) 5241 } 5242 m.Granularity = 0 5243 for shift := uint(0); ; shift += 7 { 5244 if shift >= 64 { 5245 return ErrIntOverflowLock 5246 } 5247 if iNdEx >= l { 5248 return io.ErrUnexpectedEOF 5249 } 5250 b := dAtA[iNdEx] 5251 iNdEx++ 5252 m.Granularity |= Granularity(b&0x7F) << shift 5253 if b < 0x80 { 5254 break 5255 } 5256 } 5257 case 2: 5258 if wireType != 0 { 5259 return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) 5260 } 5261 m.Mode = 0 5262 for shift := uint(0); ; shift += 7 { 5263 if shift >= 64 { 5264 return ErrIntOverflowLock 5265 } 5266 if iNdEx >= l { 5267 return io.ErrUnexpectedEOF 5268 } 5269 b := dAtA[iNdEx] 5270 iNdEx++ 5271 m.Mode |= LockMode(b&0x7F) << shift 5272 if b < 0x80 { 5273 break 5274 } 5275 } 5276 case 3: 5277 if wireType != 0 { 5278 return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType) 5279 } 5280 m.Policy = 0 5281 for shift := uint(0); ; shift += 7 { 5282 if shift >= 64 { 5283 return ErrIntOverflowLock 5284 } 5285 if iNdEx >= l { 5286 return io.ErrUnexpectedEOF 5287 } 5288 b := dAtA[iNdEx] 5289 iNdEx++ 5290 m.Policy |= WaitPolicy(b&0x7F) << shift 5291 if b < 0x80 { 5292 break 5293 } 5294 } 5295 case 4: 5296 if wireType != 2 { 5297 return fmt.Errorf("proto: wrong wireType = %d for field ForwardTo", wireType) 5298 } 5299 var stringLen uint64 5300 for shift := uint(0); ; shift += 7 { 5301 if shift >= 64 { 5302 return ErrIntOverflowLock 5303 } 5304 if iNdEx >= l { 5305 return io.ErrUnexpectedEOF 5306 } 5307 b := dAtA[iNdEx] 5308 iNdEx++ 5309 stringLen |= uint64(b&0x7F) << shift 5310 if b < 0x80 { 5311 break 5312 } 5313 } 5314 intStringLen := int(stringLen) 5315 if intStringLen < 0 { 5316 return ErrInvalidLengthLock 5317 } 5318 postIndex := iNdEx + intStringLen 5319 if postIndex < 0 { 5320 return ErrInvalidLengthLock 5321 } 5322 if postIndex > l { 5323 return io.ErrUnexpectedEOF 5324 } 5325 m.ForwardTo = string(dAtA[iNdEx:postIndex]) 5326 iNdEx = postIndex 5327 case 5: 5328 if wireType != 0 { 5329 return fmt.Errorf("proto: wrong wireType = %d for field TableDefChanged", wireType) 5330 } 5331 var v int 5332 for shift := uint(0); ; shift += 7 { 5333 if shift >= 64 { 5334 return ErrIntOverflowLock 5335 } 5336 if iNdEx >= l { 5337 return io.ErrUnexpectedEOF 5338 } 5339 b := dAtA[iNdEx] 5340 iNdEx++ 5341 v |= int(b&0x7F) << shift 5342 if b < 0x80 { 5343 break 5344 } 5345 } 5346 m.TableDefChanged = bool(v != 0) 5347 case 6: 5348 if wireType != 0 { 5349 return fmt.Errorf("proto: wrong wireType = %d for field RetryWait", wireType) 5350 } 5351 m.RetryWait = 0 5352 for shift := uint(0); ; shift += 7 { 5353 if shift >= 64 { 5354 return ErrIntOverflowLock 5355 } 5356 if iNdEx >= l { 5357 return io.ErrUnexpectedEOF 5358 } 5359 b := dAtA[iNdEx] 5360 iNdEx++ 5361 m.RetryWait |= int64(b&0x7F) << shift 5362 if b < 0x80 { 5363 break 5364 } 5365 } 5366 case 7: 5367 if wireType != 0 { 5368 return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) 5369 } 5370 m.Group = 0 5371 for shift := uint(0); ; shift += 7 { 5372 if shift >= 64 { 5373 return ErrIntOverflowLock 5374 } 5375 if iNdEx >= l { 5376 return io.ErrUnexpectedEOF 5377 } 5378 b := dAtA[iNdEx] 5379 iNdEx++ 5380 m.Group |= uint32(b&0x7F) << shift 5381 if b < 0x80 { 5382 break 5383 } 5384 } 5385 case 8: 5386 if wireType != 0 { 5387 return fmt.Errorf("proto: wrong wireType = %d for field Sharding", wireType) 5388 } 5389 m.Sharding = 0 5390 for shift := uint(0); ; shift += 7 { 5391 if shift >= 64 { 5392 return ErrIntOverflowLock 5393 } 5394 if iNdEx >= l { 5395 return io.ErrUnexpectedEOF 5396 } 5397 b := dAtA[iNdEx] 5398 iNdEx++ 5399 m.Sharding |= Sharding(b&0x7F) << shift 5400 if b < 0x80 { 5401 break 5402 } 5403 } 5404 case 9: 5405 if wireType != 2 { 5406 return fmt.Errorf("proto: wrong wireType = %d for field SnapShotTs", wireType) 5407 } 5408 var msglen int 5409 for shift := uint(0); ; shift += 7 { 5410 if shift >= 64 { 5411 return ErrIntOverflowLock 5412 } 5413 if iNdEx >= l { 5414 return io.ErrUnexpectedEOF 5415 } 5416 b := dAtA[iNdEx] 5417 iNdEx++ 5418 msglen |= int(b&0x7F) << shift 5419 if b < 0x80 { 5420 break 5421 } 5422 } 5423 if msglen < 0 { 5424 return ErrInvalidLengthLock 5425 } 5426 postIndex := iNdEx + msglen 5427 if postIndex < 0 { 5428 return ErrInvalidLengthLock 5429 } 5430 if postIndex > l { 5431 return io.ErrUnexpectedEOF 5432 } 5433 if err := m.SnapShotTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5434 return err 5435 } 5436 iNdEx = postIndex 5437 default: 5438 iNdEx = preIndex 5439 skippy, err := skipLock(dAtA[iNdEx:]) 5440 if err != nil { 5441 return err 5442 } 5443 if (skippy < 0) || (iNdEx+skippy) < 0 { 5444 return ErrInvalidLengthLock 5445 } 5446 if (iNdEx + skippy) > l { 5447 return io.ErrUnexpectedEOF 5448 } 5449 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5450 iNdEx += skippy 5451 } 5452 } 5453 5454 if iNdEx > l { 5455 return io.ErrUnexpectedEOF 5456 } 5457 return nil 5458 } 5459 func (m *LockTable) Unmarshal(dAtA []byte) error { 5460 l := len(dAtA) 5461 iNdEx := 0 5462 for iNdEx < l { 5463 preIndex := iNdEx 5464 var wire uint64 5465 for shift := uint(0); ; shift += 7 { 5466 if shift >= 64 { 5467 return ErrIntOverflowLock 5468 } 5469 if iNdEx >= l { 5470 return io.ErrUnexpectedEOF 5471 } 5472 b := dAtA[iNdEx] 5473 iNdEx++ 5474 wire |= uint64(b&0x7F) << shift 5475 if b < 0x80 { 5476 break 5477 } 5478 } 5479 fieldNum := int32(wire >> 3) 5480 wireType := int(wire & 0x7) 5481 if wireType == 4 { 5482 return fmt.Errorf("proto: LockTable: wiretype end group for non-group") 5483 } 5484 if fieldNum <= 0 { 5485 return fmt.Errorf("proto: LockTable: illegal tag %d (wire type %d)", fieldNum, wire) 5486 } 5487 switch fieldNum { 5488 case 1: 5489 if wireType != 0 { 5490 return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) 5491 } 5492 m.Table = 0 5493 for shift := uint(0); ; shift += 7 { 5494 if shift >= 64 { 5495 return ErrIntOverflowLock 5496 } 5497 if iNdEx >= l { 5498 return io.ErrUnexpectedEOF 5499 } 5500 b := dAtA[iNdEx] 5501 iNdEx++ 5502 m.Table |= uint64(b&0x7F) << shift 5503 if b < 0x80 { 5504 break 5505 } 5506 } 5507 case 2: 5508 if wireType != 2 { 5509 return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType) 5510 } 5511 var stringLen uint64 5512 for shift := uint(0); ; shift += 7 { 5513 if shift >= 64 { 5514 return ErrIntOverflowLock 5515 } 5516 if iNdEx >= l { 5517 return io.ErrUnexpectedEOF 5518 } 5519 b := dAtA[iNdEx] 5520 iNdEx++ 5521 stringLen |= uint64(b&0x7F) << shift 5522 if b < 0x80 { 5523 break 5524 } 5525 } 5526 intStringLen := int(stringLen) 5527 if intStringLen < 0 { 5528 return ErrInvalidLengthLock 5529 } 5530 postIndex := iNdEx + intStringLen 5531 if postIndex < 0 { 5532 return ErrInvalidLengthLock 5533 } 5534 if postIndex > l { 5535 return io.ErrUnexpectedEOF 5536 } 5537 m.ServiceID = string(dAtA[iNdEx:postIndex]) 5538 iNdEx = postIndex 5539 case 3: 5540 if wireType != 0 { 5541 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 5542 } 5543 m.Version = 0 5544 for shift := uint(0); ; shift += 7 { 5545 if shift >= 64 { 5546 return ErrIntOverflowLock 5547 } 5548 if iNdEx >= l { 5549 return io.ErrUnexpectedEOF 5550 } 5551 b := dAtA[iNdEx] 5552 iNdEx++ 5553 m.Version |= uint64(b&0x7F) << shift 5554 if b < 0x80 { 5555 break 5556 } 5557 } 5558 case 4: 5559 if wireType != 0 { 5560 return fmt.Errorf("proto: wrong wireType = %d for field Valid", wireType) 5561 } 5562 var v int 5563 for shift := uint(0); ; shift += 7 { 5564 if shift >= 64 { 5565 return ErrIntOverflowLock 5566 } 5567 if iNdEx >= l { 5568 return io.ErrUnexpectedEOF 5569 } 5570 b := dAtA[iNdEx] 5571 iNdEx++ 5572 v |= int(b&0x7F) << shift 5573 if b < 0x80 { 5574 break 5575 } 5576 } 5577 m.Valid = bool(v != 0) 5578 case 5: 5579 if wireType != 0 { 5580 return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) 5581 } 5582 m.Group = 0 5583 for shift := uint(0); ; shift += 7 { 5584 if shift >= 64 { 5585 return ErrIntOverflowLock 5586 } 5587 if iNdEx >= l { 5588 return io.ErrUnexpectedEOF 5589 } 5590 b := dAtA[iNdEx] 5591 iNdEx++ 5592 m.Group |= uint32(b&0x7F) << shift 5593 if b < 0x80 { 5594 break 5595 } 5596 } 5597 case 6: 5598 if wireType != 0 { 5599 return fmt.Errorf("proto: wrong wireType = %d for field Sharding", wireType) 5600 } 5601 m.Sharding = 0 5602 for shift := uint(0); ; shift += 7 { 5603 if shift >= 64 { 5604 return ErrIntOverflowLock 5605 } 5606 if iNdEx >= l { 5607 return io.ErrUnexpectedEOF 5608 } 5609 b := dAtA[iNdEx] 5610 iNdEx++ 5611 m.Sharding |= Sharding(b&0x7F) << shift 5612 if b < 0x80 { 5613 break 5614 } 5615 } 5616 case 7: 5617 if wireType != 0 { 5618 return fmt.Errorf("proto: wrong wireType = %d for field OriginTable", wireType) 5619 } 5620 m.OriginTable = 0 5621 for shift := uint(0); ; shift += 7 { 5622 if shift >= 64 { 5623 return ErrIntOverflowLock 5624 } 5625 if iNdEx >= l { 5626 return io.ErrUnexpectedEOF 5627 } 5628 b := dAtA[iNdEx] 5629 iNdEx++ 5630 m.OriginTable |= uint64(b&0x7F) << shift 5631 if b < 0x80 { 5632 break 5633 } 5634 } 5635 default: 5636 iNdEx = preIndex 5637 skippy, err := skipLock(dAtA[iNdEx:]) 5638 if err != nil { 5639 return err 5640 } 5641 if (skippy < 0) || (iNdEx+skippy) < 0 { 5642 return ErrInvalidLengthLock 5643 } 5644 if (iNdEx + skippy) > l { 5645 return io.ErrUnexpectedEOF 5646 } 5647 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5648 iNdEx += skippy 5649 } 5650 } 5651 5652 if iNdEx > l { 5653 return io.ErrUnexpectedEOF 5654 } 5655 return nil 5656 } 5657 func (m *Request) Unmarshal(dAtA []byte) error { 5658 l := len(dAtA) 5659 iNdEx := 0 5660 for iNdEx < l { 5661 preIndex := iNdEx 5662 var wire uint64 5663 for shift := uint(0); ; shift += 7 { 5664 if shift >= 64 { 5665 return ErrIntOverflowLock 5666 } 5667 if iNdEx >= l { 5668 return io.ErrUnexpectedEOF 5669 } 5670 b := dAtA[iNdEx] 5671 iNdEx++ 5672 wire |= uint64(b&0x7F) << shift 5673 if b < 0x80 { 5674 break 5675 } 5676 } 5677 fieldNum := int32(wire >> 3) 5678 wireType := int(wire & 0x7) 5679 if wireType == 4 { 5680 return fmt.Errorf("proto: Request: wiretype end group for non-group") 5681 } 5682 if fieldNum <= 0 { 5683 return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) 5684 } 5685 switch fieldNum { 5686 case 1: 5687 if wireType != 0 { 5688 return fmt.Errorf("proto: wrong wireType = %d for field RequestID", wireType) 5689 } 5690 m.RequestID = 0 5691 for shift := uint(0); ; shift += 7 { 5692 if shift >= 64 { 5693 return ErrIntOverflowLock 5694 } 5695 if iNdEx >= l { 5696 return io.ErrUnexpectedEOF 5697 } 5698 b := dAtA[iNdEx] 5699 iNdEx++ 5700 m.RequestID |= uint64(b&0x7F) << shift 5701 if b < 0x80 { 5702 break 5703 } 5704 } 5705 case 2: 5706 if wireType != 2 { 5707 return fmt.Errorf("proto: wrong wireType = %d for field LockTable", wireType) 5708 } 5709 var msglen int 5710 for shift := uint(0); ; shift += 7 { 5711 if shift >= 64 { 5712 return ErrIntOverflowLock 5713 } 5714 if iNdEx >= l { 5715 return io.ErrUnexpectedEOF 5716 } 5717 b := dAtA[iNdEx] 5718 iNdEx++ 5719 msglen |= int(b&0x7F) << shift 5720 if b < 0x80 { 5721 break 5722 } 5723 } 5724 if msglen < 0 { 5725 return ErrInvalidLengthLock 5726 } 5727 postIndex := iNdEx + msglen 5728 if postIndex < 0 { 5729 return ErrInvalidLengthLock 5730 } 5731 if postIndex > l { 5732 return io.ErrUnexpectedEOF 5733 } 5734 if err := m.LockTable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5735 return err 5736 } 5737 iNdEx = postIndex 5738 case 3: 5739 if wireType != 0 { 5740 return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) 5741 } 5742 m.Method = 0 5743 for shift := uint(0); ; shift += 7 { 5744 if shift >= 64 { 5745 return ErrIntOverflowLock 5746 } 5747 if iNdEx >= l { 5748 return io.ErrUnexpectedEOF 5749 } 5750 b := dAtA[iNdEx] 5751 iNdEx++ 5752 m.Method |= Method(b&0x7F) << shift 5753 if b < 0x80 { 5754 break 5755 } 5756 } 5757 case 4: 5758 if wireType != 2 { 5759 return fmt.Errorf("proto: wrong wireType = %d for field Lock", wireType) 5760 } 5761 var msglen int 5762 for shift := uint(0); ; shift += 7 { 5763 if shift >= 64 { 5764 return ErrIntOverflowLock 5765 } 5766 if iNdEx >= l { 5767 return io.ErrUnexpectedEOF 5768 } 5769 b := dAtA[iNdEx] 5770 iNdEx++ 5771 msglen |= int(b&0x7F) << shift 5772 if b < 0x80 { 5773 break 5774 } 5775 } 5776 if msglen < 0 { 5777 return ErrInvalidLengthLock 5778 } 5779 postIndex := iNdEx + msglen 5780 if postIndex < 0 { 5781 return ErrInvalidLengthLock 5782 } 5783 if postIndex > l { 5784 return io.ErrUnexpectedEOF 5785 } 5786 if err := m.Lock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5787 return err 5788 } 5789 iNdEx = postIndex 5790 case 5: 5791 if wireType != 2 { 5792 return fmt.Errorf("proto: wrong wireType = %d for field Unlock", wireType) 5793 } 5794 var msglen int 5795 for shift := uint(0); ; shift += 7 { 5796 if shift >= 64 { 5797 return ErrIntOverflowLock 5798 } 5799 if iNdEx >= l { 5800 return io.ErrUnexpectedEOF 5801 } 5802 b := dAtA[iNdEx] 5803 iNdEx++ 5804 msglen |= int(b&0x7F) << shift 5805 if b < 0x80 { 5806 break 5807 } 5808 } 5809 if msglen < 0 { 5810 return ErrInvalidLengthLock 5811 } 5812 postIndex := iNdEx + msglen 5813 if postIndex < 0 { 5814 return ErrInvalidLengthLock 5815 } 5816 if postIndex > l { 5817 return io.ErrUnexpectedEOF 5818 } 5819 if err := m.Unlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5820 return err 5821 } 5822 iNdEx = postIndex 5823 case 6: 5824 if wireType != 2 { 5825 return fmt.Errorf("proto: wrong wireType = %d for field GetTxnLock", wireType) 5826 } 5827 var msglen int 5828 for shift := uint(0); ; shift += 7 { 5829 if shift >= 64 { 5830 return ErrIntOverflowLock 5831 } 5832 if iNdEx >= l { 5833 return io.ErrUnexpectedEOF 5834 } 5835 b := dAtA[iNdEx] 5836 iNdEx++ 5837 msglen |= int(b&0x7F) << shift 5838 if b < 0x80 { 5839 break 5840 } 5841 } 5842 if msglen < 0 { 5843 return ErrInvalidLengthLock 5844 } 5845 postIndex := iNdEx + msglen 5846 if postIndex < 0 { 5847 return ErrInvalidLengthLock 5848 } 5849 if postIndex > l { 5850 return io.ErrUnexpectedEOF 5851 } 5852 if err := m.GetTxnLock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5853 return err 5854 } 5855 iNdEx = postIndex 5856 case 7: 5857 if wireType != 2 { 5858 return fmt.Errorf("proto: wrong wireType = %d for field GetWaitingList", wireType) 5859 } 5860 var msglen int 5861 for shift := uint(0); ; shift += 7 { 5862 if shift >= 64 { 5863 return ErrIntOverflowLock 5864 } 5865 if iNdEx >= l { 5866 return io.ErrUnexpectedEOF 5867 } 5868 b := dAtA[iNdEx] 5869 iNdEx++ 5870 msglen |= int(b&0x7F) << shift 5871 if b < 0x80 { 5872 break 5873 } 5874 } 5875 if msglen < 0 { 5876 return ErrInvalidLengthLock 5877 } 5878 postIndex := iNdEx + msglen 5879 if postIndex < 0 { 5880 return ErrInvalidLengthLock 5881 } 5882 if postIndex > l { 5883 return io.ErrUnexpectedEOF 5884 } 5885 if err := m.GetWaitingList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5886 return err 5887 } 5888 iNdEx = postIndex 5889 case 8: 5890 if wireType != 2 { 5891 return fmt.Errorf("proto: wrong wireType = %d for field GetBind", wireType) 5892 } 5893 var msglen int 5894 for shift := uint(0); ; shift += 7 { 5895 if shift >= 64 { 5896 return ErrIntOverflowLock 5897 } 5898 if iNdEx >= l { 5899 return io.ErrUnexpectedEOF 5900 } 5901 b := dAtA[iNdEx] 5902 iNdEx++ 5903 msglen |= int(b&0x7F) << shift 5904 if b < 0x80 { 5905 break 5906 } 5907 } 5908 if msglen < 0 { 5909 return ErrInvalidLengthLock 5910 } 5911 postIndex := iNdEx + msglen 5912 if postIndex < 0 { 5913 return ErrInvalidLengthLock 5914 } 5915 if postIndex > l { 5916 return io.ErrUnexpectedEOF 5917 } 5918 if err := m.GetBind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5919 return err 5920 } 5921 iNdEx = postIndex 5922 case 9: 5923 if wireType != 2 { 5924 return fmt.Errorf("proto: wrong wireType = %d for field KeepLockTableBind", wireType) 5925 } 5926 var msglen int 5927 for shift := uint(0); ; shift += 7 { 5928 if shift >= 64 { 5929 return ErrIntOverflowLock 5930 } 5931 if iNdEx >= l { 5932 return io.ErrUnexpectedEOF 5933 } 5934 b := dAtA[iNdEx] 5935 iNdEx++ 5936 msglen |= int(b&0x7F) << shift 5937 if b < 0x80 { 5938 break 5939 } 5940 } 5941 if msglen < 0 { 5942 return ErrInvalidLengthLock 5943 } 5944 postIndex := iNdEx + msglen 5945 if postIndex < 0 { 5946 return ErrInvalidLengthLock 5947 } 5948 if postIndex > l { 5949 return io.ErrUnexpectedEOF 5950 } 5951 if err := m.KeepLockTableBind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5952 return err 5953 } 5954 iNdEx = postIndex 5955 case 10: 5956 if wireType != 2 { 5957 return fmt.Errorf("proto: wrong wireType = %d for field KeepRemoteLock", wireType) 5958 } 5959 var msglen int 5960 for shift := uint(0); ; shift += 7 { 5961 if shift >= 64 { 5962 return ErrIntOverflowLock 5963 } 5964 if iNdEx >= l { 5965 return io.ErrUnexpectedEOF 5966 } 5967 b := dAtA[iNdEx] 5968 iNdEx++ 5969 msglen |= int(b&0x7F) << shift 5970 if b < 0x80 { 5971 break 5972 } 5973 } 5974 if msglen < 0 { 5975 return ErrInvalidLengthLock 5976 } 5977 postIndex := iNdEx + msglen 5978 if postIndex < 0 { 5979 return ErrInvalidLengthLock 5980 } 5981 if postIndex > l { 5982 return io.ErrUnexpectedEOF 5983 } 5984 if err := m.KeepRemoteLock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5985 return err 5986 } 5987 iNdEx = postIndex 5988 case 11: 5989 if wireType != 2 { 5990 return fmt.Errorf("proto: wrong wireType = %d for field ValidateService", wireType) 5991 } 5992 var msglen int 5993 for shift := uint(0); ; shift += 7 { 5994 if shift >= 64 { 5995 return ErrIntOverflowLock 5996 } 5997 if iNdEx >= l { 5998 return io.ErrUnexpectedEOF 5999 } 6000 b := dAtA[iNdEx] 6001 iNdEx++ 6002 msglen |= int(b&0x7F) << shift 6003 if b < 0x80 { 6004 break 6005 } 6006 } 6007 if msglen < 0 { 6008 return ErrInvalidLengthLock 6009 } 6010 postIndex := iNdEx + msglen 6011 if postIndex < 0 { 6012 return ErrInvalidLengthLock 6013 } 6014 if postIndex > l { 6015 return io.ErrUnexpectedEOF 6016 } 6017 if err := m.ValidateService.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6018 return err 6019 } 6020 iNdEx = postIndex 6021 case 12: 6022 if wireType != 2 { 6023 return fmt.Errorf("proto: wrong wireType = %d for field CannotCommit", wireType) 6024 } 6025 var msglen int 6026 for shift := uint(0); ; shift += 7 { 6027 if shift >= 64 { 6028 return ErrIntOverflowLock 6029 } 6030 if iNdEx >= l { 6031 return io.ErrUnexpectedEOF 6032 } 6033 b := dAtA[iNdEx] 6034 iNdEx++ 6035 msglen |= int(b&0x7F) << shift 6036 if b < 0x80 { 6037 break 6038 } 6039 } 6040 if msglen < 0 { 6041 return ErrInvalidLengthLock 6042 } 6043 postIndex := iNdEx + msglen 6044 if postIndex < 0 { 6045 return ErrInvalidLengthLock 6046 } 6047 if postIndex > l { 6048 return io.ErrUnexpectedEOF 6049 } 6050 if err := m.CannotCommit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6051 return err 6052 } 6053 iNdEx = postIndex 6054 case 13: 6055 if wireType != 2 { 6056 return fmt.Errorf("proto: wrong wireType = %d for field GetActiveTxn", wireType) 6057 } 6058 var msglen int 6059 for shift := uint(0); ; shift += 7 { 6060 if shift >= 64 { 6061 return ErrIntOverflowLock 6062 } 6063 if iNdEx >= l { 6064 return io.ErrUnexpectedEOF 6065 } 6066 b := dAtA[iNdEx] 6067 iNdEx++ 6068 msglen |= int(b&0x7F) << shift 6069 if b < 0x80 { 6070 break 6071 } 6072 } 6073 if msglen < 0 { 6074 return ErrInvalidLengthLock 6075 } 6076 postIndex := iNdEx + msglen 6077 if postIndex < 0 { 6078 return ErrInvalidLengthLock 6079 } 6080 if postIndex > l { 6081 return io.ErrUnexpectedEOF 6082 } 6083 if err := m.GetActiveTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6084 return err 6085 } 6086 iNdEx = postIndex 6087 case 14: 6088 if wireType != 2 { 6089 return fmt.Errorf("proto: wrong wireType = %d for field SetRestartService", wireType) 6090 } 6091 var msglen int 6092 for shift := uint(0); ; shift += 7 { 6093 if shift >= 64 { 6094 return ErrIntOverflowLock 6095 } 6096 if iNdEx >= l { 6097 return io.ErrUnexpectedEOF 6098 } 6099 b := dAtA[iNdEx] 6100 iNdEx++ 6101 msglen |= int(b&0x7F) << shift 6102 if b < 0x80 { 6103 break 6104 } 6105 } 6106 if msglen < 0 { 6107 return ErrInvalidLengthLock 6108 } 6109 postIndex := iNdEx + msglen 6110 if postIndex < 0 { 6111 return ErrInvalidLengthLock 6112 } 6113 if postIndex > l { 6114 return io.ErrUnexpectedEOF 6115 } 6116 if err := m.SetRestartService.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6117 return err 6118 } 6119 iNdEx = postIndex 6120 case 15: 6121 if wireType != 2 { 6122 return fmt.Errorf("proto: wrong wireType = %d for field CanRestartService", wireType) 6123 } 6124 var msglen int 6125 for shift := uint(0); ; shift += 7 { 6126 if shift >= 64 { 6127 return ErrIntOverflowLock 6128 } 6129 if iNdEx >= l { 6130 return io.ErrUnexpectedEOF 6131 } 6132 b := dAtA[iNdEx] 6133 iNdEx++ 6134 msglen |= int(b&0x7F) << shift 6135 if b < 0x80 { 6136 break 6137 } 6138 } 6139 if msglen < 0 { 6140 return ErrInvalidLengthLock 6141 } 6142 postIndex := iNdEx + msglen 6143 if postIndex < 0 { 6144 return ErrInvalidLengthLock 6145 } 6146 if postIndex > l { 6147 return io.ErrUnexpectedEOF 6148 } 6149 if err := m.CanRestartService.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6150 return err 6151 } 6152 iNdEx = postIndex 6153 case 16: 6154 if wireType != 2 { 6155 return fmt.Errorf("proto: wrong wireType = %d for field RemainTxnInService", wireType) 6156 } 6157 var msglen int 6158 for shift := uint(0); ; shift += 7 { 6159 if shift >= 64 { 6160 return ErrIntOverflowLock 6161 } 6162 if iNdEx >= l { 6163 return io.ErrUnexpectedEOF 6164 } 6165 b := dAtA[iNdEx] 6166 iNdEx++ 6167 msglen |= int(b&0x7F) << shift 6168 if b < 0x80 { 6169 break 6170 } 6171 } 6172 if msglen < 0 { 6173 return ErrInvalidLengthLock 6174 } 6175 postIndex := iNdEx + msglen 6176 if postIndex < 0 { 6177 return ErrInvalidLengthLock 6178 } 6179 if postIndex > l { 6180 return io.ErrUnexpectedEOF 6181 } 6182 if err := m.RemainTxnInService.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6183 return err 6184 } 6185 iNdEx = postIndex 6186 default: 6187 iNdEx = preIndex 6188 skippy, err := skipLock(dAtA[iNdEx:]) 6189 if err != nil { 6190 return err 6191 } 6192 if (skippy < 0) || (iNdEx+skippy) < 0 { 6193 return ErrInvalidLengthLock 6194 } 6195 if (iNdEx + skippy) > l { 6196 return io.ErrUnexpectedEOF 6197 } 6198 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6199 iNdEx += skippy 6200 } 6201 } 6202 6203 if iNdEx > l { 6204 return io.ErrUnexpectedEOF 6205 } 6206 return nil 6207 } 6208 func (m *Response) Unmarshal(dAtA []byte) error { 6209 l := len(dAtA) 6210 iNdEx := 0 6211 for iNdEx < l { 6212 preIndex := iNdEx 6213 var wire uint64 6214 for shift := uint(0); ; shift += 7 { 6215 if shift >= 64 { 6216 return ErrIntOverflowLock 6217 } 6218 if iNdEx >= l { 6219 return io.ErrUnexpectedEOF 6220 } 6221 b := dAtA[iNdEx] 6222 iNdEx++ 6223 wire |= uint64(b&0x7F) << shift 6224 if b < 0x80 { 6225 break 6226 } 6227 } 6228 fieldNum := int32(wire >> 3) 6229 wireType := int(wire & 0x7) 6230 if wireType == 4 { 6231 return fmt.Errorf("proto: Response: wiretype end group for non-group") 6232 } 6233 if fieldNum <= 0 { 6234 return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) 6235 } 6236 switch fieldNum { 6237 case 1: 6238 if wireType != 0 { 6239 return fmt.Errorf("proto: wrong wireType = %d for field RequestID", wireType) 6240 } 6241 m.RequestID = 0 6242 for shift := uint(0); ; shift += 7 { 6243 if shift >= 64 { 6244 return ErrIntOverflowLock 6245 } 6246 if iNdEx >= l { 6247 return io.ErrUnexpectedEOF 6248 } 6249 b := dAtA[iNdEx] 6250 iNdEx++ 6251 m.RequestID |= uint64(b&0x7F) << shift 6252 if b < 0x80 { 6253 break 6254 } 6255 } 6256 case 2: 6257 if wireType != 0 { 6258 return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) 6259 } 6260 m.Method = 0 6261 for shift := uint(0); ; shift += 7 { 6262 if shift >= 64 { 6263 return ErrIntOverflowLock 6264 } 6265 if iNdEx >= l { 6266 return io.ErrUnexpectedEOF 6267 } 6268 b := dAtA[iNdEx] 6269 iNdEx++ 6270 m.Method |= Method(b&0x7F) << shift 6271 if b < 0x80 { 6272 break 6273 } 6274 } 6275 case 3: 6276 if wireType != 2 { 6277 return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) 6278 } 6279 var byteLen int 6280 for shift := uint(0); ; shift += 7 { 6281 if shift >= 64 { 6282 return ErrIntOverflowLock 6283 } 6284 if iNdEx >= l { 6285 return io.ErrUnexpectedEOF 6286 } 6287 b := dAtA[iNdEx] 6288 iNdEx++ 6289 byteLen |= int(b&0x7F) << shift 6290 if b < 0x80 { 6291 break 6292 } 6293 } 6294 if byteLen < 0 { 6295 return ErrInvalidLengthLock 6296 } 6297 postIndex := iNdEx + byteLen 6298 if postIndex < 0 { 6299 return ErrInvalidLengthLock 6300 } 6301 if postIndex > l { 6302 return io.ErrUnexpectedEOF 6303 } 6304 m.Error = append(m.Error[:0], dAtA[iNdEx:postIndex]...) 6305 if m.Error == nil { 6306 m.Error = []byte{} 6307 } 6308 iNdEx = postIndex 6309 case 4: 6310 if wireType != 2 { 6311 return fmt.Errorf("proto: wrong wireType = %d for field NewBind", wireType) 6312 } 6313 var msglen int 6314 for shift := uint(0); ; shift += 7 { 6315 if shift >= 64 { 6316 return ErrIntOverflowLock 6317 } 6318 if iNdEx >= l { 6319 return io.ErrUnexpectedEOF 6320 } 6321 b := dAtA[iNdEx] 6322 iNdEx++ 6323 msglen |= int(b&0x7F) << shift 6324 if b < 0x80 { 6325 break 6326 } 6327 } 6328 if msglen < 0 { 6329 return ErrInvalidLengthLock 6330 } 6331 postIndex := iNdEx + msglen 6332 if postIndex < 0 { 6333 return ErrInvalidLengthLock 6334 } 6335 if postIndex > l { 6336 return io.ErrUnexpectedEOF 6337 } 6338 if m.NewBind == nil { 6339 m.NewBind = &LockTable{} 6340 } 6341 if err := m.NewBind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6342 return err 6343 } 6344 iNdEx = postIndex 6345 case 5: 6346 if wireType != 2 { 6347 return fmt.Errorf("proto: wrong wireType = %d for field Lock", wireType) 6348 } 6349 var msglen int 6350 for shift := uint(0); ; shift += 7 { 6351 if shift >= 64 { 6352 return ErrIntOverflowLock 6353 } 6354 if iNdEx >= l { 6355 return io.ErrUnexpectedEOF 6356 } 6357 b := dAtA[iNdEx] 6358 iNdEx++ 6359 msglen |= int(b&0x7F) << shift 6360 if b < 0x80 { 6361 break 6362 } 6363 } 6364 if msglen < 0 { 6365 return ErrInvalidLengthLock 6366 } 6367 postIndex := iNdEx + msglen 6368 if postIndex < 0 { 6369 return ErrInvalidLengthLock 6370 } 6371 if postIndex > l { 6372 return io.ErrUnexpectedEOF 6373 } 6374 if err := m.Lock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6375 return err 6376 } 6377 iNdEx = postIndex 6378 case 6: 6379 if wireType != 2 { 6380 return fmt.Errorf("proto: wrong wireType = %d for field Unlock", wireType) 6381 } 6382 var msglen int 6383 for shift := uint(0); ; shift += 7 { 6384 if shift >= 64 { 6385 return ErrIntOverflowLock 6386 } 6387 if iNdEx >= l { 6388 return io.ErrUnexpectedEOF 6389 } 6390 b := dAtA[iNdEx] 6391 iNdEx++ 6392 msglen |= int(b&0x7F) << shift 6393 if b < 0x80 { 6394 break 6395 } 6396 } 6397 if msglen < 0 { 6398 return ErrInvalidLengthLock 6399 } 6400 postIndex := iNdEx + msglen 6401 if postIndex < 0 { 6402 return ErrInvalidLengthLock 6403 } 6404 if postIndex > l { 6405 return io.ErrUnexpectedEOF 6406 } 6407 if err := m.Unlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6408 return err 6409 } 6410 iNdEx = postIndex 6411 case 7: 6412 if wireType != 2 { 6413 return fmt.Errorf("proto: wrong wireType = %d for field GetTxnLock", wireType) 6414 } 6415 var msglen int 6416 for shift := uint(0); ; shift += 7 { 6417 if shift >= 64 { 6418 return ErrIntOverflowLock 6419 } 6420 if iNdEx >= l { 6421 return io.ErrUnexpectedEOF 6422 } 6423 b := dAtA[iNdEx] 6424 iNdEx++ 6425 msglen |= int(b&0x7F) << shift 6426 if b < 0x80 { 6427 break 6428 } 6429 } 6430 if msglen < 0 { 6431 return ErrInvalidLengthLock 6432 } 6433 postIndex := iNdEx + msglen 6434 if postIndex < 0 { 6435 return ErrInvalidLengthLock 6436 } 6437 if postIndex > l { 6438 return io.ErrUnexpectedEOF 6439 } 6440 if err := m.GetTxnLock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6441 return err 6442 } 6443 iNdEx = postIndex 6444 case 8: 6445 if wireType != 2 { 6446 return fmt.Errorf("proto: wrong wireType = %d for field GetWaitingList", wireType) 6447 } 6448 var msglen int 6449 for shift := uint(0); ; shift += 7 { 6450 if shift >= 64 { 6451 return ErrIntOverflowLock 6452 } 6453 if iNdEx >= l { 6454 return io.ErrUnexpectedEOF 6455 } 6456 b := dAtA[iNdEx] 6457 iNdEx++ 6458 msglen |= int(b&0x7F) << shift 6459 if b < 0x80 { 6460 break 6461 } 6462 } 6463 if msglen < 0 { 6464 return ErrInvalidLengthLock 6465 } 6466 postIndex := iNdEx + msglen 6467 if postIndex < 0 { 6468 return ErrInvalidLengthLock 6469 } 6470 if postIndex > l { 6471 return io.ErrUnexpectedEOF 6472 } 6473 if err := m.GetWaitingList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6474 return err 6475 } 6476 iNdEx = postIndex 6477 case 9: 6478 if wireType != 2 { 6479 return fmt.Errorf("proto: wrong wireType = %d for field GetBind", wireType) 6480 } 6481 var msglen int 6482 for shift := uint(0); ; shift += 7 { 6483 if shift >= 64 { 6484 return ErrIntOverflowLock 6485 } 6486 if iNdEx >= l { 6487 return io.ErrUnexpectedEOF 6488 } 6489 b := dAtA[iNdEx] 6490 iNdEx++ 6491 msglen |= int(b&0x7F) << shift 6492 if b < 0x80 { 6493 break 6494 } 6495 } 6496 if msglen < 0 { 6497 return ErrInvalidLengthLock 6498 } 6499 postIndex := iNdEx + msglen 6500 if postIndex < 0 { 6501 return ErrInvalidLengthLock 6502 } 6503 if postIndex > l { 6504 return io.ErrUnexpectedEOF 6505 } 6506 if err := m.GetBind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6507 return err 6508 } 6509 iNdEx = postIndex 6510 case 10: 6511 if wireType != 2 { 6512 return fmt.Errorf("proto: wrong wireType = %d for field KeepLockTableBind", wireType) 6513 } 6514 var msglen int 6515 for shift := uint(0); ; shift += 7 { 6516 if shift >= 64 { 6517 return ErrIntOverflowLock 6518 } 6519 if iNdEx >= l { 6520 return io.ErrUnexpectedEOF 6521 } 6522 b := dAtA[iNdEx] 6523 iNdEx++ 6524 msglen |= int(b&0x7F) << shift 6525 if b < 0x80 { 6526 break 6527 } 6528 } 6529 if msglen < 0 { 6530 return ErrInvalidLengthLock 6531 } 6532 postIndex := iNdEx + msglen 6533 if postIndex < 0 { 6534 return ErrInvalidLengthLock 6535 } 6536 if postIndex > l { 6537 return io.ErrUnexpectedEOF 6538 } 6539 if err := m.KeepLockTableBind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6540 return err 6541 } 6542 iNdEx = postIndex 6543 case 11: 6544 if wireType != 2 { 6545 return fmt.Errorf("proto: wrong wireType = %d for field KeepRemoteLock", wireType) 6546 } 6547 var msglen int 6548 for shift := uint(0); ; shift += 7 { 6549 if shift >= 64 { 6550 return ErrIntOverflowLock 6551 } 6552 if iNdEx >= l { 6553 return io.ErrUnexpectedEOF 6554 } 6555 b := dAtA[iNdEx] 6556 iNdEx++ 6557 msglen |= int(b&0x7F) << shift 6558 if b < 0x80 { 6559 break 6560 } 6561 } 6562 if msglen < 0 { 6563 return ErrInvalidLengthLock 6564 } 6565 postIndex := iNdEx + msglen 6566 if postIndex < 0 { 6567 return ErrInvalidLengthLock 6568 } 6569 if postIndex > l { 6570 return io.ErrUnexpectedEOF 6571 } 6572 if err := m.KeepRemoteLock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6573 return err 6574 } 6575 iNdEx = postIndex 6576 case 12: 6577 if wireType != 2 { 6578 return fmt.Errorf("proto: wrong wireType = %d for field ValidateService", wireType) 6579 } 6580 var msglen int 6581 for shift := uint(0); ; shift += 7 { 6582 if shift >= 64 { 6583 return ErrIntOverflowLock 6584 } 6585 if iNdEx >= l { 6586 return io.ErrUnexpectedEOF 6587 } 6588 b := dAtA[iNdEx] 6589 iNdEx++ 6590 msglen |= int(b&0x7F) << shift 6591 if b < 0x80 { 6592 break 6593 } 6594 } 6595 if msglen < 0 { 6596 return ErrInvalidLengthLock 6597 } 6598 postIndex := iNdEx + msglen 6599 if postIndex < 0 { 6600 return ErrInvalidLengthLock 6601 } 6602 if postIndex > l { 6603 return io.ErrUnexpectedEOF 6604 } 6605 if err := m.ValidateService.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6606 return err 6607 } 6608 iNdEx = postIndex 6609 case 13: 6610 if wireType != 2 { 6611 return fmt.Errorf("proto: wrong wireType = %d for field CannotCommit", wireType) 6612 } 6613 var msglen int 6614 for shift := uint(0); ; shift += 7 { 6615 if shift >= 64 { 6616 return ErrIntOverflowLock 6617 } 6618 if iNdEx >= l { 6619 return io.ErrUnexpectedEOF 6620 } 6621 b := dAtA[iNdEx] 6622 iNdEx++ 6623 msglen |= int(b&0x7F) << shift 6624 if b < 0x80 { 6625 break 6626 } 6627 } 6628 if msglen < 0 { 6629 return ErrInvalidLengthLock 6630 } 6631 postIndex := iNdEx + msglen 6632 if postIndex < 0 { 6633 return ErrInvalidLengthLock 6634 } 6635 if postIndex > l { 6636 return io.ErrUnexpectedEOF 6637 } 6638 if err := m.CannotCommit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6639 return err 6640 } 6641 iNdEx = postIndex 6642 case 14: 6643 if wireType != 2 { 6644 return fmt.Errorf("proto: wrong wireType = %d for field GetActiveTxn", wireType) 6645 } 6646 var msglen int 6647 for shift := uint(0); ; shift += 7 { 6648 if shift >= 64 { 6649 return ErrIntOverflowLock 6650 } 6651 if iNdEx >= l { 6652 return io.ErrUnexpectedEOF 6653 } 6654 b := dAtA[iNdEx] 6655 iNdEx++ 6656 msglen |= int(b&0x7F) << shift 6657 if b < 0x80 { 6658 break 6659 } 6660 } 6661 if msglen < 0 { 6662 return ErrInvalidLengthLock 6663 } 6664 postIndex := iNdEx + msglen 6665 if postIndex < 0 { 6666 return ErrInvalidLengthLock 6667 } 6668 if postIndex > l { 6669 return io.ErrUnexpectedEOF 6670 } 6671 if err := m.GetActiveTxn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6672 return err 6673 } 6674 iNdEx = postIndex 6675 case 15: 6676 if wireType != 2 { 6677 return fmt.Errorf("proto: wrong wireType = %d for field SetRestartService", wireType) 6678 } 6679 var msglen int 6680 for shift := uint(0); ; shift += 7 { 6681 if shift >= 64 { 6682 return ErrIntOverflowLock 6683 } 6684 if iNdEx >= l { 6685 return io.ErrUnexpectedEOF 6686 } 6687 b := dAtA[iNdEx] 6688 iNdEx++ 6689 msglen |= int(b&0x7F) << shift 6690 if b < 0x80 { 6691 break 6692 } 6693 } 6694 if msglen < 0 { 6695 return ErrInvalidLengthLock 6696 } 6697 postIndex := iNdEx + msglen 6698 if postIndex < 0 { 6699 return ErrInvalidLengthLock 6700 } 6701 if postIndex > l { 6702 return io.ErrUnexpectedEOF 6703 } 6704 if err := m.SetRestartService.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6705 return err 6706 } 6707 iNdEx = postIndex 6708 case 16: 6709 if wireType != 2 { 6710 return fmt.Errorf("proto: wrong wireType = %d for field CanRestartService", wireType) 6711 } 6712 var msglen int 6713 for shift := uint(0); ; shift += 7 { 6714 if shift >= 64 { 6715 return ErrIntOverflowLock 6716 } 6717 if iNdEx >= l { 6718 return io.ErrUnexpectedEOF 6719 } 6720 b := dAtA[iNdEx] 6721 iNdEx++ 6722 msglen |= int(b&0x7F) << shift 6723 if b < 0x80 { 6724 break 6725 } 6726 } 6727 if msglen < 0 { 6728 return ErrInvalidLengthLock 6729 } 6730 postIndex := iNdEx + msglen 6731 if postIndex < 0 { 6732 return ErrInvalidLengthLock 6733 } 6734 if postIndex > l { 6735 return io.ErrUnexpectedEOF 6736 } 6737 if err := m.CanRestartService.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6738 return err 6739 } 6740 iNdEx = postIndex 6741 case 17: 6742 if wireType != 2 { 6743 return fmt.Errorf("proto: wrong wireType = %d for field RemainTxnInService", wireType) 6744 } 6745 var msglen int 6746 for shift := uint(0); ; shift += 7 { 6747 if shift >= 64 { 6748 return ErrIntOverflowLock 6749 } 6750 if iNdEx >= l { 6751 return io.ErrUnexpectedEOF 6752 } 6753 b := dAtA[iNdEx] 6754 iNdEx++ 6755 msglen |= int(b&0x7F) << shift 6756 if b < 0x80 { 6757 break 6758 } 6759 } 6760 if msglen < 0 { 6761 return ErrInvalidLengthLock 6762 } 6763 postIndex := iNdEx + msglen 6764 if postIndex < 0 { 6765 return ErrInvalidLengthLock 6766 } 6767 if postIndex > l { 6768 return io.ErrUnexpectedEOF 6769 } 6770 if err := m.RemainTxnInService.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6771 return err 6772 } 6773 iNdEx = postIndex 6774 default: 6775 iNdEx = preIndex 6776 skippy, err := skipLock(dAtA[iNdEx:]) 6777 if err != nil { 6778 return err 6779 } 6780 if (skippy < 0) || (iNdEx+skippy) < 0 { 6781 return ErrInvalidLengthLock 6782 } 6783 if (iNdEx + skippy) > l { 6784 return io.ErrUnexpectedEOF 6785 } 6786 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6787 iNdEx += skippy 6788 } 6789 } 6790 6791 if iNdEx > l { 6792 return io.ErrUnexpectedEOF 6793 } 6794 return nil 6795 } 6796 func (m *LockRequest) Unmarshal(dAtA []byte) error { 6797 l := len(dAtA) 6798 iNdEx := 0 6799 for iNdEx < l { 6800 preIndex := iNdEx 6801 var wire uint64 6802 for shift := uint(0); ; shift += 7 { 6803 if shift >= 64 { 6804 return ErrIntOverflowLock 6805 } 6806 if iNdEx >= l { 6807 return io.ErrUnexpectedEOF 6808 } 6809 b := dAtA[iNdEx] 6810 iNdEx++ 6811 wire |= uint64(b&0x7F) << shift 6812 if b < 0x80 { 6813 break 6814 } 6815 } 6816 fieldNum := int32(wire >> 3) 6817 wireType := int(wire & 0x7) 6818 if wireType == 4 { 6819 return fmt.Errorf("proto: LockRequest: wiretype end group for non-group") 6820 } 6821 if fieldNum <= 0 { 6822 return fmt.Errorf("proto: LockRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6823 } 6824 switch fieldNum { 6825 case 1: 6826 if wireType != 2 { 6827 return fmt.Errorf("proto: wrong wireType = %d for field TxnID", wireType) 6828 } 6829 var byteLen int 6830 for shift := uint(0); ; shift += 7 { 6831 if shift >= 64 { 6832 return ErrIntOverflowLock 6833 } 6834 if iNdEx >= l { 6835 return io.ErrUnexpectedEOF 6836 } 6837 b := dAtA[iNdEx] 6838 iNdEx++ 6839 byteLen |= int(b&0x7F) << shift 6840 if b < 0x80 { 6841 break 6842 } 6843 } 6844 if byteLen < 0 { 6845 return ErrInvalidLengthLock 6846 } 6847 postIndex := iNdEx + byteLen 6848 if postIndex < 0 { 6849 return ErrInvalidLengthLock 6850 } 6851 if postIndex > l { 6852 return io.ErrUnexpectedEOF 6853 } 6854 m.TxnID = append(m.TxnID[:0], dAtA[iNdEx:postIndex]...) 6855 if m.TxnID == nil { 6856 m.TxnID = []byte{} 6857 } 6858 iNdEx = postIndex 6859 case 2: 6860 if wireType != 2 { 6861 return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType) 6862 } 6863 var stringLen uint64 6864 for shift := uint(0); ; shift += 7 { 6865 if shift >= 64 { 6866 return ErrIntOverflowLock 6867 } 6868 if iNdEx >= l { 6869 return io.ErrUnexpectedEOF 6870 } 6871 b := dAtA[iNdEx] 6872 iNdEx++ 6873 stringLen |= uint64(b&0x7F) << shift 6874 if b < 0x80 { 6875 break 6876 } 6877 } 6878 intStringLen := int(stringLen) 6879 if intStringLen < 0 { 6880 return ErrInvalidLengthLock 6881 } 6882 postIndex := iNdEx + intStringLen 6883 if postIndex < 0 { 6884 return ErrInvalidLengthLock 6885 } 6886 if postIndex > l { 6887 return io.ErrUnexpectedEOF 6888 } 6889 m.ServiceID = string(dAtA[iNdEx:postIndex]) 6890 iNdEx = postIndex 6891 case 3: 6892 if wireType != 2 { 6893 return fmt.Errorf("proto: wrong wireType = %d for field Rows", wireType) 6894 } 6895 var byteLen int 6896 for shift := uint(0); ; shift += 7 { 6897 if shift >= 64 { 6898 return ErrIntOverflowLock 6899 } 6900 if iNdEx >= l { 6901 return io.ErrUnexpectedEOF 6902 } 6903 b := dAtA[iNdEx] 6904 iNdEx++ 6905 byteLen |= int(b&0x7F) << shift 6906 if b < 0x80 { 6907 break 6908 } 6909 } 6910 if byteLen < 0 { 6911 return ErrInvalidLengthLock 6912 } 6913 postIndex := iNdEx + byteLen 6914 if postIndex < 0 { 6915 return ErrInvalidLengthLock 6916 } 6917 if postIndex > l { 6918 return io.ErrUnexpectedEOF 6919 } 6920 m.Rows = append(m.Rows, make([]byte, postIndex-iNdEx)) 6921 copy(m.Rows[len(m.Rows)-1], dAtA[iNdEx:postIndex]) 6922 iNdEx = postIndex 6923 case 4: 6924 if wireType != 2 { 6925 return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) 6926 } 6927 var msglen int 6928 for shift := uint(0); ; shift += 7 { 6929 if shift >= 64 { 6930 return ErrIntOverflowLock 6931 } 6932 if iNdEx >= l { 6933 return io.ErrUnexpectedEOF 6934 } 6935 b := dAtA[iNdEx] 6936 iNdEx++ 6937 msglen |= int(b&0x7F) << shift 6938 if b < 0x80 { 6939 break 6940 } 6941 } 6942 if msglen < 0 { 6943 return ErrInvalidLengthLock 6944 } 6945 postIndex := iNdEx + msglen 6946 if postIndex < 0 { 6947 return ErrInvalidLengthLock 6948 } 6949 if postIndex > l { 6950 return io.ErrUnexpectedEOF 6951 } 6952 if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6953 return err 6954 } 6955 iNdEx = postIndex 6956 default: 6957 iNdEx = preIndex 6958 skippy, err := skipLock(dAtA[iNdEx:]) 6959 if err != nil { 6960 return err 6961 } 6962 if (skippy < 0) || (iNdEx+skippy) < 0 { 6963 return ErrInvalidLengthLock 6964 } 6965 if (iNdEx + skippy) > l { 6966 return io.ErrUnexpectedEOF 6967 } 6968 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6969 iNdEx += skippy 6970 } 6971 } 6972 6973 if iNdEx > l { 6974 return io.ErrUnexpectedEOF 6975 } 6976 return nil 6977 } 6978 func (m *LockResponse) Unmarshal(dAtA []byte) error { 6979 l := len(dAtA) 6980 iNdEx := 0 6981 for iNdEx < l { 6982 preIndex := iNdEx 6983 var wire uint64 6984 for shift := uint(0); ; shift += 7 { 6985 if shift >= 64 { 6986 return ErrIntOverflowLock 6987 } 6988 if iNdEx >= l { 6989 return io.ErrUnexpectedEOF 6990 } 6991 b := dAtA[iNdEx] 6992 iNdEx++ 6993 wire |= uint64(b&0x7F) << shift 6994 if b < 0x80 { 6995 break 6996 } 6997 } 6998 fieldNum := int32(wire >> 3) 6999 wireType := int(wire & 0x7) 7000 if wireType == 4 { 7001 return fmt.Errorf("proto: LockResponse: wiretype end group for non-group") 7002 } 7003 if fieldNum <= 0 { 7004 return fmt.Errorf("proto: LockResponse: illegal tag %d (wire type %d)", fieldNum, wire) 7005 } 7006 switch fieldNum { 7007 case 1: 7008 if wireType != 2 { 7009 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 7010 } 7011 var msglen int 7012 for shift := uint(0); ; shift += 7 { 7013 if shift >= 64 { 7014 return ErrIntOverflowLock 7015 } 7016 if iNdEx >= l { 7017 return io.ErrUnexpectedEOF 7018 } 7019 b := dAtA[iNdEx] 7020 iNdEx++ 7021 msglen |= int(b&0x7F) << shift 7022 if b < 0x80 { 7023 break 7024 } 7025 } 7026 if msglen < 0 { 7027 return ErrInvalidLengthLock 7028 } 7029 postIndex := iNdEx + msglen 7030 if postIndex < 0 { 7031 return ErrInvalidLengthLock 7032 } 7033 if postIndex > l { 7034 return io.ErrUnexpectedEOF 7035 } 7036 if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7037 return err 7038 } 7039 iNdEx = postIndex 7040 default: 7041 iNdEx = preIndex 7042 skippy, err := skipLock(dAtA[iNdEx:]) 7043 if err != nil { 7044 return err 7045 } 7046 if (skippy < 0) || (iNdEx+skippy) < 0 { 7047 return ErrInvalidLengthLock 7048 } 7049 if (iNdEx + skippy) > l { 7050 return io.ErrUnexpectedEOF 7051 } 7052 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7053 iNdEx += skippy 7054 } 7055 } 7056 7057 if iNdEx > l { 7058 return io.ErrUnexpectedEOF 7059 } 7060 return nil 7061 } 7062 func (m *GetTxnLockRequest) Unmarshal(dAtA []byte) error { 7063 l := len(dAtA) 7064 iNdEx := 0 7065 for iNdEx < l { 7066 preIndex := iNdEx 7067 var wire uint64 7068 for shift := uint(0); ; shift += 7 { 7069 if shift >= 64 { 7070 return ErrIntOverflowLock 7071 } 7072 if iNdEx >= l { 7073 return io.ErrUnexpectedEOF 7074 } 7075 b := dAtA[iNdEx] 7076 iNdEx++ 7077 wire |= uint64(b&0x7F) << shift 7078 if b < 0x80 { 7079 break 7080 } 7081 } 7082 fieldNum := int32(wire >> 3) 7083 wireType := int(wire & 0x7) 7084 if wireType == 4 { 7085 return fmt.Errorf("proto: GetTxnLockRequest: wiretype end group for non-group") 7086 } 7087 if fieldNum <= 0 { 7088 return fmt.Errorf("proto: GetTxnLockRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7089 } 7090 switch fieldNum { 7091 case 1: 7092 if wireType != 2 { 7093 return fmt.Errorf("proto: wrong wireType = %d for field TxnID", wireType) 7094 } 7095 var byteLen int 7096 for shift := uint(0); ; shift += 7 { 7097 if shift >= 64 { 7098 return ErrIntOverflowLock 7099 } 7100 if iNdEx >= l { 7101 return io.ErrUnexpectedEOF 7102 } 7103 b := dAtA[iNdEx] 7104 iNdEx++ 7105 byteLen |= int(b&0x7F) << shift 7106 if b < 0x80 { 7107 break 7108 } 7109 } 7110 if byteLen < 0 { 7111 return ErrInvalidLengthLock 7112 } 7113 postIndex := iNdEx + byteLen 7114 if postIndex < 0 { 7115 return ErrInvalidLengthLock 7116 } 7117 if postIndex > l { 7118 return io.ErrUnexpectedEOF 7119 } 7120 m.TxnID = append(m.TxnID[:0], dAtA[iNdEx:postIndex]...) 7121 if m.TxnID == nil { 7122 m.TxnID = []byte{} 7123 } 7124 iNdEx = postIndex 7125 case 2: 7126 if wireType != 2 { 7127 return fmt.Errorf("proto: wrong wireType = %d for field Row", wireType) 7128 } 7129 var byteLen int 7130 for shift := uint(0); ; shift += 7 { 7131 if shift >= 64 { 7132 return ErrIntOverflowLock 7133 } 7134 if iNdEx >= l { 7135 return io.ErrUnexpectedEOF 7136 } 7137 b := dAtA[iNdEx] 7138 iNdEx++ 7139 byteLen |= int(b&0x7F) << shift 7140 if b < 0x80 { 7141 break 7142 } 7143 } 7144 if byteLen < 0 { 7145 return ErrInvalidLengthLock 7146 } 7147 postIndex := iNdEx + byteLen 7148 if postIndex < 0 { 7149 return ErrInvalidLengthLock 7150 } 7151 if postIndex > l { 7152 return io.ErrUnexpectedEOF 7153 } 7154 m.Row = append(m.Row[:0], dAtA[iNdEx:postIndex]...) 7155 if m.Row == nil { 7156 m.Row = []byte{} 7157 } 7158 iNdEx = postIndex 7159 default: 7160 iNdEx = preIndex 7161 skippy, err := skipLock(dAtA[iNdEx:]) 7162 if err != nil { 7163 return err 7164 } 7165 if (skippy < 0) || (iNdEx+skippy) < 0 { 7166 return ErrInvalidLengthLock 7167 } 7168 if (iNdEx + skippy) > l { 7169 return io.ErrUnexpectedEOF 7170 } 7171 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7172 iNdEx += skippy 7173 } 7174 } 7175 7176 if iNdEx > l { 7177 return io.ErrUnexpectedEOF 7178 } 7179 return nil 7180 } 7181 func (m *GetTxnLockResponse) Unmarshal(dAtA []byte) error { 7182 l := len(dAtA) 7183 iNdEx := 0 7184 for iNdEx < l { 7185 preIndex := iNdEx 7186 var wire uint64 7187 for shift := uint(0); ; shift += 7 { 7188 if shift >= 64 { 7189 return ErrIntOverflowLock 7190 } 7191 if iNdEx >= l { 7192 return io.ErrUnexpectedEOF 7193 } 7194 b := dAtA[iNdEx] 7195 iNdEx++ 7196 wire |= uint64(b&0x7F) << shift 7197 if b < 0x80 { 7198 break 7199 } 7200 } 7201 fieldNum := int32(wire >> 3) 7202 wireType := int(wire & 0x7) 7203 if wireType == 4 { 7204 return fmt.Errorf("proto: GetTxnLockResponse: wiretype end group for non-group") 7205 } 7206 if fieldNum <= 0 { 7207 return fmt.Errorf("proto: GetTxnLockResponse: illegal tag %d (wire type %d)", fieldNum, wire) 7208 } 7209 switch fieldNum { 7210 case 1: 7211 if wireType != 0 { 7212 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 7213 } 7214 m.Value = 0 7215 for shift := uint(0); ; shift += 7 { 7216 if shift >= 64 { 7217 return ErrIntOverflowLock 7218 } 7219 if iNdEx >= l { 7220 return io.ErrUnexpectedEOF 7221 } 7222 b := dAtA[iNdEx] 7223 iNdEx++ 7224 m.Value |= int32(b&0x7F) << shift 7225 if b < 0x80 { 7226 break 7227 } 7228 } 7229 case 2: 7230 if wireType != 2 { 7231 return fmt.Errorf("proto: wrong wireType = %d for field WaitingList", wireType) 7232 } 7233 var msglen int 7234 for shift := uint(0); ; shift += 7 { 7235 if shift >= 64 { 7236 return ErrIntOverflowLock 7237 } 7238 if iNdEx >= l { 7239 return io.ErrUnexpectedEOF 7240 } 7241 b := dAtA[iNdEx] 7242 iNdEx++ 7243 msglen |= int(b&0x7F) << shift 7244 if b < 0x80 { 7245 break 7246 } 7247 } 7248 if msglen < 0 { 7249 return ErrInvalidLengthLock 7250 } 7251 postIndex := iNdEx + msglen 7252 if postIndex < 0 { 7253 return ErrInvalidLengthLock 7254 } 7255 if postIndex > l { 7256 return io.ErrUnexpectedEOF 7257 } 7258 m.WaitingList = append(m.WaitingList, WaitTxn{}) 7259 if err := m.WaitingList[len(m.WaitingList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7260 return err 7261 } 7262 iNdEx = postIndex 7263 default: 7264 iNdEx = preIndex 7265 skippy, err := skipLock(dAtA[iNdEx:]) 7266 if err != nil { 7267 return err 7268 } 7269 if (skippy < 0) || (iNdEx+skippy) < 0 { 7270 return ErrInvalidLengthLock 7271 } 7272 if (iNdEx + skippy) > l { 7273 return io.ErrUnexpectedEOF 7274 } 7275 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7276 iNdEx += skippy 7277 } 7278 } 7279 7280 if iNdEx > l { 7281 return io.ErrUnexpectedEOF 7282 } 7283 return nil 7284 } 7285 func (m *GetWaitingListRequest) Unmarshal(dAtA []byte) error { 7286 l := len(dAtA) 7287 iNdEx := 0 7288 for iNdEx < l { 7289 preIndex := iNdEx 7290 var wire uint64 7291 for shift := uint(0); ; shift += 7 { 7292 if shift >= 64 { 7293 return ErrIntOverflowLock 7294 } 7295 if iNdEx >= l { 7296 return io.ErrUnexpectedEOF 7297 } 7298 b := dAtA[iNdEx] 7299 iNdEx++ 7300 wire |= uint64(b&0x7F) << shift 7301 if b < 0x80 { 7302 break 7303 } 7304 } 7305 fieldNum := int32(wire >> 3) 7306 wireType := int(wire & 0x7) 7307 if wireType == 4 { 7308 return fmt.Errorf("proto: GetWaitingListRequest: wiretype end group for non-group") 7309 } 7310 if fieldNum <= 0 { 7311 return fmt.Errorf("proto: GetWaitingListRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7312 } 7313 switch fieldNum { 7314 case 1: 7315 if wireType != 2 { 7316 return fmt.Errorf("proto: wrong wireType = %d for field Txn", wireType) 7317 } 7318 var msglen int 7319 for shift := uint(0); ; shift += 7 { 7320 if shift >= 64 { 7321 return ErrIntOverflowLock 7322 } 7323 if iNdEx >= l { 7324 return io.ErrUnexpectedEOF 7325 } 7326 b := dAtA[iNdEx] 7327 iNdEx++ 7328 msglen |= int(b&0x7F) << shift 7329 if b < 0x80 { 7330 break 7331 } 7332 } 7333 if msglen < 0 { 7334 return ErrInvalidLengthLock 7335 } 7336 postIndex := iNdEx + msglen 7337 if postIndex < 0 { 7338 return ErrInvalidLengthLock 7339 } 7340 if postIndex > l { 7341 return io.ErrUnexpectedEOF 7342 } 7343 if err := m.Txn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7344 return err 7345 } 7346 iNdEx = postIndex 7347 default: 7348 iNdEx = preIndex 7349 skippy, err := skipLock(dAtA[iNdEx:]) 7350 if err != nil { 7351 return err 7352 } 7353 if (skippy < 0) || (iNdEx+skippy) < 0 { 7354 return ErrInvalidLengthLock 7355 } 7356 if (iNdEx + skippy) > l { 7357 return io.ErrUnexpectedEOF 7358 } 7359 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7360 iNdEx += skippy 7361 } 7362 } 7363 7364 if iNdEx > l { 7365 return io.ErrUnexpectedEOF 7366 } 7367 return nil 7368 } 7369 func (m *GetWaitingListResponse) Unmarshal(dAtA []byte) error { 7370 l := len(dAtA) 7371 iNdEx := 0 7372 for iNdEx < l { 7373 preIndex := iNdEx 7374 var wire uint64 7375 for shift := uint(0); ; shift += 7 { 7376 if shift >= 64 { 7377 return ErrIntOverflowLock 7378 } 7379 if iNdEx >= l { 7380 return io.ErrUnexpectedEOF 7381 } 7382 b := dAtA[iNdEx] 7383 iNdEx++ 7384 wire |= uint64(b&0x7F) << shift 7385 if b < 0x80 { 7386 break 7387 } 7388 } 7389 fieldNum := int32(wire >> 3) 7390 wireType := int(wire & 0x7) 7391 if wireType == 4 { 7392 return fmt.Errorf("proto: GetWaitingListResponse: wiretype end group for non-group") 7393 } 7394 if fieldNum <= 0 { 7395 return fmt.Errorf("proto: GetWaitingListResponse: illegal tag %d (wire type %d)", fieldNum, wire) 7396 } 7397 switch fieldNum { 7398 case 1: 7399 if wireType != 2 { 7400 return fmt.Errorf("proto: wrong wireType = %d for field WaitingList", wireType) 7401 } 7402 var msglen int 7403 for shift := uint(0); ; shift += 7 { 7404 if shift >= 64 { 7405 return ErrIntOverflowLock 7406 } 7407 if iNdEx >= l { 7408 return io.ErrUnexpectedEOF 7409 } 7410 b := dAtA[iNdEx] 7411 iNdEx++ 7412 msglen |= int(b&0x7F) << shift 7413 if b < 0x80 { 7414 break 7415 } 7416 } 7417 if msglen < 0 { 7418 return ErrInvalidLengthLock 7419 } 7420 postIndex := iNdEx + msglen 7421 if postIndex < 0 { 7422 return ErrInvalidLengthLock 7423 } 7424 if postIndex > l { 7425 return io.ErrUnexpectedEOF 7426 } 7427 m.WaitingList = append(m.WaitingList, WaitTxn{}) 7428 if err := m.WaitingList[len(m.WaitingList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7429 return err 7430 } 7431 iNdEx = postIndex 7432 default: 7433 iNdEx = preIndex 7434 skippy, err := skipLock(dAtA[iNdEx:]) 7435 if err != nil { 7436 return err 7437 } 7438 if (skippy < 0) || (iNdEx+skippy) < 0 { 7439 return ErrInvalidLengthLock 7440 } 7441 if (iNdEx + skippy) > l { 7442 return io.ErrUnexpectedEOF 7443 } 7444 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7445 iNdEx += skippy 7446 } 7447 } 7448 7449 if iNdEx > l { 7450 return io.ErrUnexpectedEOF 7451 } 7452 return nil 7453 } 7454 func (m *WaitTxn) Unmarshal(dAtA []byte) error { 7455 l := len(dAtA) 7456 iNdEx := 0 7457 for iNdEx < l { 7458 preIndex := iNdEx 7459 var wire uint64 7460 for shift := uint(0); ; shift += 7 { 7461 if shift >= 64 { 7462 return ErrIntOverflowLock 7463 } 7464 if iNdEx >= l { 7465 return io.ErrUnexpectedEOF 7466 } 7467 b := dAtA[iNdEx] 7468 iNdEx++ 7469 wire |= uint64(b&0x7F) << shift 7470 if b < 0x80 { 7471 break 7472 } 7473 } 7474 fieldNum := int32(wire >> 3) 7475 wireType := int(wire & 0x7) 7476 if wireType == 4 { 7477 return fmt.Errorf("proto: WaitTxn: wiretype end group for non-group") 7478 } 7479 if fieldNum <= 0 { 7480 return fmt.Errorf("proto: WaitTxn: illegal tag %d (wire type %d)", fieldNum, wire) 7481 } 7482 switch fieldNum { 7483 case 1: 7484 if wireType != 2 { 7485 return fmt.Errorf("proto: wrong wireType = %d for field TxnID", wireType) 7486 } 7487 var byteLen int 7488 for shift := uint(0); ; shift += 7 { 7489 if shift >= 64 { 7490 return ErrIntOverflowLock 7491 } 7492 if iNdEx >= l { 7493 return io.ErrUnexpectedEOF 7494 } 7495 b := dAtA[iNdEx] 7496 iNdEx++ 7497 byteLen |= int(b&0x7F) << shift 7498 if b < 0x80 { 7499 break 7500 } 7501 } 7502 if byteLen < 0 { 7503 return ErrInvalidLengthLock 7504 } 7505 postIndex := iNdEx + byteLen 7506 if postIndex < 0 { 7507 return ErrInvalidLengthLock 7508 } 7509 if postIndex > l { 7510 return io.ErrUnexpectedEOF 7511 } 7512 m.TxnID = append(m.TxnID[:0], dAtA[iNdEx:postIndex]...) 7513 if m.TxnID == nil { 7514 m.TxnID = []byte{} 7515 } 7516 iNdEx = postIndex 7517 case 2: 7518 if wireType != 2 { 7519 return fmt.Errorf("proto: wrong wireType = %d for field CreatedOn", wireType) 7520 } 7521 var stringLen uint64 7522 for shift := uint(0); ; shift += 7 { 7523 if shift >= 64 { 7524 return ErrIntOverflowLock 7525 } 7526 if iNdEx >= l { 7527 return io.ErrUnexpectedEOF 7528 } 7529 b := dAtA[iNdEx] 7530 iNdEx++ 7531 stringLen |= uint64(b&0x7F) << shift 7532 if b < 0x80 { 7533 break 7534 } 7535 } 7536 intStringLen := int(stringLen) 7537 if intStringLen < 0 { 7538 return ErrInvalidLengthLock 7539 } 7540 postIndex := iNdEx + intStringLen 7541 if postIndex < 0 { 7542 return ErrInvalidLengthLock 7543 } 7544 if postIndex > l { 7545 return io.ErrUnexpectedEOF 7546 } 7547 m.CreatedOn = string(dAtA[iNdEx:postIndex]) 7548 iNdEx = postIndex 7549 default: 7550 iNdEx = preIndex 7551 skippy, err := skipLock(dAtA[iNdEx:]) 7552 if err != nil { 7553 return err 7554 } 7555 if (skippy < 0) || (iNdEx+skippy) < 0 { 7556 return ErrInvalidLengthLock 7557 } 7558 if (iNdEx + skippy) > l { 7559 return io.ErrUnexpectedEOF 7560 } 7561 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7562 iNdEx += skippy 7563 } 7564 } 7565 7566 if iNdEx > l { 7567 return io.ErrUnexpectedEOF 7568 } 7569 return nil 7570 } 7571 func (m *UnlockRequest) Unmarshal(dAtA []byte) error { 7572 l := len(dAtA) 7573 iNdEx := 0 7574 for iNdEx < l { 7575 preIndex := iNdEx 7576 var wire uint64 7577 for shift := uint(0); ; shift += 7 { 7578 if shift >= 64 { 7579 return ErrIntOverflowLock 7580 } 7581 if iNdEx >= l { 7582 return io.ErrUnexpectedEOF 7583 } 7584 b := dAtA[iNdEx] 7585 iNdEx++ 7586 wire |= uint64(b&0x7F) << shift 7587 if b < 0x80 { 7588 break 7589 } 7590 } 7591 fieldNum := int32(wire >> 3) 7592 wireType := int(wire & 0x7) 7593 if wireType == 4 { 7594 return fmt.Errorf("proto: UnlockRequest: wiretype end group for non-group") 7595 } 7596 if fieldNum <= 0 { 7597 return fmt.Errorf("proto: UnlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7598 } 7599 switch fieldNum { 7600 case 1: 7601 if wireType != 2 { 7602 return fmt.Errorf("proto: wrong wireType = %d for field TxnID", wireType) 7603 } 7604 var byteLen int 7605 for shift := uint(0); ; shift += 7 { 7606 if shift >= 64 { 7607 return ErrIntOverflowLock 7608 } 7609 if iNdEx >= l { 7610 return io.ErrUnexpectedEOF 7611 } 7612 b := dAtA[iNdEx] 7613 iNdEx++ 7614 byteLen |= int(b&0x7F) << shift 7615 if b < 0x80 { 7616 break 7617 } 7618 } 7619 if byteLen < 0 { 7620 return ErrInvalidLengthLock 7621 } 7622 postIndex := iNdEx + byteLen 7623 if postIndex < 0 { 7624 return ErrInvalidLengthLock 7625 } 7626 if postIndex > l { 7627 return io.ErrUnexpectedEOF 7628 } 7629 m.TxnID = append(m.TxnID[:0], dAtA[iNdEx:postIndex]...) 7630 if m.TxnID == nil { 7631 m.TxnID = []byte{} 7632 } 7633 iNdEx = postIndex 7634 case 2: 7635 if wireType != 2 { 7636 return fmt.Errorf("proto: wrong wireType = %d for field CommitTS", wireType) 7637 } 7638 var msglen int 7639 for shift := uint(0); ; shift += 7 { 7640 if shift >= 64 { 7641 return ErrIntOverflowLock 7642 } 7643 if iNdEx >= l { 7644 return io.ErrUnexpectedEOF 7645 } 7646 b := dAtA[iNdEx] 7647 iNdEx++ 7648 msglen |= int(b&0x7F) << shift 7649 if b < 0x80 { 7650 break 7651 } 7652 } 7653 if msglen < 0 { 7654 return ErrInvalidLengthLock 7655 } 7656 postIndex := iNdEx + msglen 7657 if postIndex < 0 { 7658 return ErrInvalidLengthLock 7659 } 7660 if postIndex > l { 7661 return io.ErrUnexpectedEOF 7662 } 7663 if err := m.CommitTS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7664 return err 7665 } 7666 iNdEx = postIndex 7667 case 3: 7668 if wireType != 2 { 7669 return fmt.Errorf("proto: wrong wireType = %d for field Mutations", wireType) 7670 } 7671 var msglen int 7672 for shift := uint(0); ; shift += 7 { 7673 if shift >= 64 { 7674 return ErrIntOverflowLock 7675 } 7676 if iNdEx >= l { 7677 return io.ErrUnexpectedEOF 7678 } 7679 b := dAtA[iNdEx] 7680 iNdEx++ 7681 msglen |= int(b&0x7F) << shift 7682 if b < 0x80 { 7683 break 7684 } 7685 } 7686 if msglen < 0 { 7687 return ErrInvalidLengthLock 7688 } 7689 postIndex := iNdEx + msglen 7690 if postIndex < 0 { 7691 return ErrInvalidLengthLock 7692 } 7693 if postIndex > l { 7694 return io.ErrUnexpectedEOF 7695 } 7696 m.Mutations = append(m.Mutations, ExtraMutation{}) 7697 if err := m.Mutations[len(m.Mutations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7698 return err 7699 } 7700 iNdEx = postIndex 7701 default: 7702 iNdEx = preIndex 7703 skippy, err := skipLock(dAtA[iNdEx:]) 7704 if err != nil { 7705 return err 7706 } 7707 if (skippy < 0) || (iNdEx+skippy) < 0 { 7708 return ErrInvalidLengthLock 7709 } 7710 if (iNdEx + skippy) > l { 7711 return io.ErrUnexpectedEOF 7712 } 7713 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7714 iNdEx += skippy 7715 } 7716 } 7717 7718 if iNdEx > l { 7719 return io.ErrUnexpectedEOF 7720 } 7721 return nil 7722 } 7723 func (m *UnlockResponse) Unmarshal(dAtA []byte) error { 7724 l := len(dAtA) 7725 iNdEx := 0 7726 for iNdEx < l { 7727 preIndex := iNdEx 7728 var wire uint64 7729 for shift := uint(0); ; shift += 7 { 7730 if shift >= 64 { 7731 return ErrIntOverflowLock 7732 } 7733 if iNdEx >= l { 7734 return io.ErrUnexpectedEOF 7735 } 7736 b := dAtA[iNdEx] 7737 iNdEx++ 7738 wire |= uint64(b&0x7F) << shift 7739 if b < 0x80 { 7740 break 7741 } 7742 } 7743 fieldNum := int32(wire >> 3) 7744 wireType := int(wire & 0x7) 7745 if wireType == 4 { 7746 return fmt.Errorf("proto: UnlockResponse: wiretype end group for non-group") 7747 } 7748 if fieldNum <= 0 { 7749 return fmt.Errorf("proto: UnlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) 7750 } 7751 switch fieldNum { 7752 default: 7753 iNdEx = preIndex 7754 skippy, err := skipLock(dAtA[iNdEx:]) 7755 if err != nil { 7756 return err 7757 } 7758 if (skippy < 0) || (iNdEx+skippy) < 0 { 7759 return ErrInvalidLengthLock 7760 } 7761 if (iNdEx + skippy) > l { 7762 return io.ErrUnexpectedEOF 7763 } 7764 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7765 iNdEx += skippy 7766 } 7767 } 7768 7769 if iNdEx > l { 7770 return io.ErrUnexpectedEOF 7771 } 7772 return nil 7773 } 7774 func (m *GetBindRequest) Unmarshal(dAtA []byte) error { 7775 l := len(dAtA) 7776 iNdEx := 0 7777 for iNdEx < l { 7778 preIndex := iNdEx 7779 var wire uint64 7780 for shift := uint(0); ; shift += 7 { 7781 if shift >= 64 { 7782 return ErrIntOverflowLock 7783 } 7784 if iNdEx >= l { 7785 return io.ErrUnexpectedEOF 7786 } 7787 b := dAtA[iNdEx] 7788 iNdEx++ 7789 wire |= uint64(b&0x7F) << shift 7790 if b < 0x80 { 7791 break 7792 } 7793 } 7794 fieldNum := int32(wire >> 3) 7795 wireType := int(wire & 0x7) 7796 if wireType == 4 { 7797 return fmt.Errorf("proto: GetBindRequest: wiretype end group for non-group") 7798 } 7799 if fieldNum <= 0 { 7800 return fmt.Errorf("proto: GetBindRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7801 } 7802 switch fieldNum { 7803 case 1: 7804 if wireType != 2 { 7805 return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType) 7806 } 7807 var stringLen uint64 7808 for shift := uint(0); ; shift += 7 { 7809 if shift >= 64 { 7810 return ErrIntOverflowLock 7811 } 7812 if iNdEx >= l { 7813 return io.ErrUnexpectedEOF 7814 } 7815 b := dAtA[iNdEx] 7816 iNdEx++ 7817 stringLen |= uint64(b&0x7F) << shift 7818 if b < 0x80 { 7819 break 7820 } 7821 } 7822 intStringLen := int(stringLen) 7823 if intStringLen < 0 { 7824 return ErrInvalidLengthLock 7825 } 7826 postIndex := iNdEx + intStringLen 7827 if postIndex < 0 { 7828 return ErrInvalidLengthLock 7829 } 7830 if postIndex > l { 7831 return io.ErrUnexpectedEOF 7832 } 7833 m.ServiceID = string(dAtA[iNdEx:postIndex]) 7834 iNdEx = postIndex 7835 case 2: 7836 if wireType != 0 { 7837 return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) 7838 } 7839 m.Table = 0 7840 for shift := uint(0); ; shift += 7 { 7841 if shift >= 64 { 7842 return ErrIntOverflowLock 7843 } 7844 if iNdEx >= l { 7845 return io.ErrUnexpectedEOF 7846 } 7847 b := dAtA[iNdEx] 7848 iNdEx++ 7849 m.Table |= uint64(b&0x7F) << shift 7850 if b < 0x80 { 7851 break 7852 } 7853 } 7854 case 3: 7855 if wireType != 0 { 7856 return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) 7857 } 7858 m.Group = 0 7859 for shift := uint(0); ; shift += 7 { 7860 if shift >= 64 { 7861 return ErrIntOverflowLock 7862 } 7863 if iNdEx >= l { 7864 return io.ErrUnexpectedEOF 7865 } 7866 b := dAtA[iNdEx] 7867 iNdEx++ 7868 m.Group |= uint32(b&0x7F) << shift 7869 if b < 0x80 { 7870 break 7871 } 7872 } 7873 case 4: 7874 if wireType != 0 { 7875 return fmt.Errorf("proto: wrong wireType = %d for field Sharding", wireType) 7876 } 7877 m.Sharding = 0 7878 for shift := uint(0); ; shift += 7 { 7879 if shift >= 64 { 7880 return ErrIntOverflowLock 7881 } 7882 if iNdEx >= l { 7883 return io.ErrUnexpectedEOF 7884 } 7885 b := dAtA[iNdEx] 7886 iNdEx++ 7887 m.Sharding |= Sharding(b&0x7F) << shift 7888 if b < 0x80 { 7889 break 7890 } 7891 } 7892 case 5: 7893 if wireType != 0 { 7894 return fmt.Errorf("proto: wrong wireType = %d for field OriginTable", wireType) 7895 } 7896 m.OriginTable = 0 7897 for shift := uint(0); ; shift += 7 { 7898 if shift >= 64 { 7899 return ErrIntOverflowLock 7900 } 7901 if iNdEx >= l { 7902 return io.ErrUnexpectedEOF 7903 } 7904 b := dAtA[iNdEx] 7905 iNdEx++ 7906 m.OriginTable |= uint64(b&0x7F) << shift 7907 if b < 0x80 { 7908 break 7909 } 7910 } 7911 default: 7912 iNdEx = preIndex 7913 skippy, err := skipLock(dAtA[iNdEx:]) 7914 if err != nil { 7915 return err 7916 } 7917 if (skippy < 0) || (iNdEx+skippy) < 0 { 7918 return ErrInvalidLengthLock 7919 } 7920 if (iNdEx + skippy) > l { 7921 return io.ErrUnexpectedEOF 7922 } 7923 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7924 iNdEx += skippy 7925 } 7926 } 7927 7928 if iNdEx > l { 7929 return io.ErrUnexpectedEOF 7930 } 7931 return nil 7932 } 7933 func (m *GetBindResponse) Unmarshal(dAtA []byte) error { 7934 l := len(dAtA) 7935 iNdEx := 0 7936 for iNdEx < l { 7937 preIndex := iNdEx 7938 var wire uint64 7939 for shift := uint(0); ; shift += 7 { 7940 if shift >= 64 { 7941 return ErrIntOverflowLock 7942 } 7943 if iNdEx >= l { 7944 return io.ErrUnexpectedEOF 7945 } 7946 b := dAtA[iNdEx] 7947 iNdEx++ 7948 wire |= uint64(b&0x7F) << shift 7949 if b < 0x80 { 7950 break 7951 } 7952 } 7953 fieldNum := int32(wire >> 3) 7954 wireType := int(wire & 0x7) 7955 if wireType == 4 { 7956 return fmt.Errorf("proto: GetBindResponse: wiretype end group for non-group") 7957 } 7958 if fieldNum <= 0 { 7959 return fmt.Errorf("proto: GetBindResponse: illegal tag %d (wire type %d)", fieldNum, wire) 7960 } 7961 switch fieldNum { 7962 case 2: 7963 if wireType != 2 { 7964 return fmt.Errorf("proto: wrong wireType = %d for field LockTable", wireType) 7965 } 7966 var msglen int 7967 for shift := uint(0); ; shift += 7 { 7968 if shift >= 64 { 7969 return ErrIntOverflowLock 7970 } 7971 if iNdEx >= l { 7972 return io.ErrUnexpectedEOF 7973 } 7974 b := dAtA[iNdEx] 7975 iNdEx++ 7976 msglen |= int(b&0x7F) << shift 7977 if b < 0x80 { 7978 break 7979 } 7980 } 7981 if msglen < 0 { 7982 return ErrInvalidLengthLock 7983 } 7984 postIndex := iNdEx + msglen 7985 if postIndex < 0 { 7986 return ErrInvalidLengthLock 7987 } 7988 if postIndex > l { 7989 return io.ErrUnexpectedEOF 7990 } 7991 if err := m.LockTable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7992 return err 7993 } 7994 iNdEx = postIndex 7995 default: 7996 iNdEx = preIndex 7997 skippy, err := skipLock(dAtA[iNdEx:]) 7998 if err != nil { 7999 return err 8000 } 8001 if (skippy < 0) || (iNdEx+skippy) < 0 { 8002 return ErrInvalidLengthLock 8003 } 8004 if (iNdEx + skippy) > l { 8005 return io.ErrUnexpectedEOF 8006 } 8007 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8008 iNdEx += skippy 8009 } 8010 } 8011 8012 if iNdEx > l { 8013 return io.ErrUnexpectedEOF 8014 } 8015 return nil 8016 } 8017 func (m *KeepLockTableBindRequest) Unmarshal(dAtA []byte) error { 8018 l := len(dAtA) 8019 iNdEx := 0 8020 for iNdEx < l { 8021 preIndex := iNdEx 8022 var wire uint64 8023 for shift := uint(0); ; shift += 7 { 8024 if shift >= 64 { 8025 return ErrIntOverflowLock 8026 } 8027 if iNdEx >= l { 8028 return io.ErrUnexpectedEOF 8029 } 8030 b := dAtA[iNdEx] 8031 iNdEx++ 8032 wire |= uint64(b&0x7F) << shift 8033 if b < 0x80 { 8034 break 8035 } 8036 } 8037 fieldNum := int32(wire >> 3) 8038 wireType := int(wire & 0x7) 8039 if wireType == 4 { 8040 return fmt.Errorf("proto: KeepLockTableBindRequest: wiretype end group for non-group") 8041 } 8042 if fieldNum <= 0 { 8043 return fmt.Errorf("proto: KeepLockTableBindRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8044 } 8045 switch fieldNum { 8046 case 1: 8047 if wireType != 2 { 8048 return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType) 8049 } 8050 var stringLen uint64 8051 for shift := uint(0); ; shift += 7 { 8052 if shift >= 64 { 8053 return ErrIntOverflowLock 8054 } 8055 if iNdEx >= l { 8056 return io.ErrUnexpectedEOF 8057 } 8058 b := dAtA[iNdEx] 8059 iNdEx++ 8060 stringLen |= uint64(b&0x7F) << shift 8061 if b < 0x80 { 8062 break 8063 } 8064 } 8065 intStringLen := int(stringLen) 8066 if intStringLen < 0 { 8067 return ErrInvalidLengthLock 8068 } 8069 postIndex := iNdEx + intStringLen 8070 if postIndex < 0 { 8071 return ErrInvalidLengthLock 8072 } 8073 if postIndex > l { 8074 return io.ErrUnexpectedEOF 8075 } 8076 m.ServiceID = string(dAtA[iNdEx:postIndex]) 8077 iNdEx = postIndex 8078 case 2: 8079 if wireType != 0 { 8080 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 8081 } 8082 m.Status = 0 8083 for shift := uint(0); ; shift += 7 { 8084 if shift >= 64 { 8085 return ErrIntOverflowLock 8086 } 8087 if iNdEx >= l { 8088 return io.ErrUnexpectedEOF 8089 } 8090 b := dAtA[iNdEx] 8091 iNdEx++ 8092 m.Status |= Status(b&0x7F) << shift 8093 if b < 0x80 { 8094 break 8095 } 8096 } 8097 case 3: 8098 if wireType != 2 { 8099 return fmt.Errorf("proto: wrong wireType = %d for field TxnIDs", wireType) 8100 } 8101 var byteLen int 8102 for shift := uint(0); ; shift += 7 { 8103 if shift >= 64 { 8104 return ErrIntOverflowLock 8105 } 8106 if iNdEx >= l { 8107 return io.ErrUnexpectedEOF 8108 } 8109 b := dAtA[iNdEx] 8110 iNdEx++ 8111 byteLen |= int(b&0x7F) << shift 8112 if b < 0x80 { 8113 break 8114 } 8115 } 8116 if byteLen < 0 { 8117 return ErrInvalidLengthLock 8118 } 8119 postIndex := iNdEx + byteLen 8120 if postIndex < 0 { 8121 return ErrInvalidLengthLock 8122 } 8123 if postIndex > l { 8124 return io.ErrUnexpectedEOF 8125 } 8126 m.TxnIDs = append(m.TxnIDs, make([]byte, postIndex-iNdEx)) 8127 copy(m.TxnIDs[len(m.TxnIDs)-1], dAtA[iNdEx:postIndex]) 8128 iNdEx = postIndex 8129 case 4: 8130 if wireType != 2 { 8131 return fmt.Errorf("proto: wrong wireType = %d for field LockTables", wireType) 8132 } 8133 var msglen int 8134 for shift := uint(0); ; shift += 7 { 8135 if shift >= 64 { 8136 return ErrIntOverflowLock 8137 } 8138 if iNdEx >= l { 8139 return io.ErrUnexpectedEOF 8140 } 8141 b := dAtA[iNdEx] 8142 iNdEx++ 8143 msglen |= int(b&0x7F) << shift 8144 if b < 0x80 { 8145 break 8146 } 8147 } 8148 if msglen < 0 { 8149 return ErrInvalidLengthLock 8150 } 8151 postIndex := iNdEx + msglen 8152 if postIndex < 0 { 8153 return ErrInvalidLengthLock 8154 } 8155 if postIndex > l { 8156 return io.ErrUnexpectedEOF 8157 } 8158 m.LockTables = append(m.LockTables, LockTable{}) 8159 if err := m.LockTables[len(m.LockTables)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8160 return err 8161 } 8162 iNdEx = postIndex 8163 default: 8164 iNdEx = preIndex 8165 skippy, err := skipLock(dAtA[iNdEx:]) 8166 if err != nil { 8167 return err 8168 } 8169 if (skippy < 0) || (iNdEx+skippy) < 0 { 8170 return ErrInvalidLengthLock 8171 } 8172 if (iNdEx + skippy) > l { 8173 return io.ErrUnexpectedEOF 8174 } 8175 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8176 iNdEx += skippy 8177 } 8178 } 8179 8180 if iNdEx > l { 8181 return io.ErrUnexpectedEOF 8182 } 8183 return nil 8184 } 8185 func (m *KeepLockTableBindResponse) Unmarshal(dAtA []byte) error { 8186 l := len(dAtA) 8187 iNdEx := 0 8188 for iNdEx < l { 8189 preIndex := iNdEx 8190 var wire uint64 8191 for shift := uint(0); ; shift += 7 { 8192 if shift >= 64 { 8193 return ErrIntOverflowLock 8194 } 8195 if iNdEx >= l { 8196 return io.ErrUnexpectedEOF 8197 } 8198 b := dAtA[iNdEx] 8199 iNdEx++ 8200 wire |= uint64(b&0x7F) << shift 8201 if b < 0x80 { 8202 break 8203 } 8204 } 8205 fieldNum := int32(wire >> 3) 8206 wireType := int(wire & 0x7) 8207 if wireType == 4 { 8208 return fmt.Errorf("proto: KeepLockTableBindResponse: wiretype end group for non-group") 8209 } 8210 if fieldNum <= 0 { 8211 return fmt.Errorf("proto: KeepLockTableBindResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8212 } 8213 switch fieldNum { 8214 case 1: 8215 if wireType != 0 { 8216 return fmt.Errorf("proto: wrong wireType = %d for field OK", wireType) 8217 } 8218 var v int 8219 for shift := uint(0); ; shift += 7 { 8220 if shift >= 64 { 8221 return ErrIntOverflowLock 8222 } 8223 if iNdEx >= l { 8224 return io.ErrUnexpectedEOF 8225 } 8226 b := dAtA[iNdEx] 8227 iNdEx++ 8228 v |= int(b&0x7F) << shift 8229 if b < 0x80 { 8230 break 8231 } 8232 } 8233 m.OK = bool(v != 0) 8234 case 2: 8235 if wireType != 0 { 8236 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 8237 } 8238 m.Status = 0 8239 for shift := uint(0); ; shift += 7 { 8240 if shift >= 64 { 8241 return ErrIntOverflowLock 8242 } 8243 if iNdEx >= l { 8244 return io.ErrUnexpectedEOF 8245 } 8246 b := dAtA[iNdEx] 8247 iNdEx++ 8248 m.Status |= Status(b&0x7F) << shift 8249 if b < 0x80 { 8250 break 8251 } 8252 } 8253 default: 8254 iNdEx = preIndex 8255 skippy, err := skipLock(dAtA[iNdEx:]) 8256 if err != nil { 8257 return err 8258 } 8259 if (skippy < 0) || (iNdEx+skippy) < 0 { 8260 return ErrInvalidLengthLock 8261 } 8262 if (iNdEx + skippy) > l { 8263 return io.ErrUnexpectedEOF 8264 } 8265 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8266 iNdEx += skippy 8267 } 8268 } 8269 8270 if iNdEx > l { 8271 return io.ErrUnexpectedEOF 8272 } 8273 return nil 8274 } 8275 func (m *SetRestartServiceRequest) Unmarshal(dAtA []byte) error { 8276 l := len(dAtA) 8277 iNdEx := 0 8278 for iNdEx < l { 8279 preIndex := iNdEx 8280 var wire uint64 8281 for shift := uint(0); ; shift += 7 { 8282 if shift >= 64 { 8283 return ErrIntOverflowLock 8284 } 8285 if iNdEx >= l { 8286 return io.ErrUnexpectedEOF 8287 } 8288 b := dAtA[iNdEx] 8289 iNdEx++ 8290 wire |= uint64(b&0x7F) << shift 8291 if b < 0x80 { 8292 break 8293 } 8294 } 8295 fieldNum := int32(wire >> 3) 8296 wireType := int(wire & 0x7) 8297 if wireType == 4 { 8298 return fmt.Errorf("proto: SetRestartServiceRequest: wiretype end group for non-group") 8299 } 8300 if fieldNum <= 0 { 8301 return fmt.Errorf("proto: SetRestartServiceRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8302 } 8303 switch fieldNum { 8304 case 1: 8305 if wireType != 2 { 8306 return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType) 8307 } 8308 var stringLen uint64 8309 for shift := uint(0); ; shift += 7 { 8310 if shift >= 64 { 8311 return ErrIntOverflowLock 8312 } 8313 if iNdEx >= l { 8314 return io.ErrUnexpectedEOF 8315 } 8316 b := dAtA[iNdEx] 8317 iNdEx++ 8318 stringLen |= uint64(b&0x7F) << shift 8319 if b < 0x80 { 8320 break 8321 } 8322 } 8323 intStringLen := int(stringLen) 8324 if intStringLen < 0 { 8325 return ErrInvalidLengthLock 8326 } 8327 postIndex := iNdEx + intStringLen 8328 if postIndex < 0 { 8329 return ErrInvalidLengthLock 8330 } 8331 if postIndex > l { 8332 return io.ErrUnexpectedEOF 8333 } 8334 m.ServiceID = string(dAtA[iNdEx:postIndex]) 8335 iNdEx = postIndex 8336 default: 8337 iNdEx = preIndex 8338 skippy, err := skipLock(dAtA[iNdEx:]) 8339 if err != nil { 8340 return err 8341 } 8342 if (skippy < 0) || (iNdEx+skippy) < 0 { 8343 return ErrInvalidLengthLock 8344 } 8345 if (iNdEx + skippy) > l { 8346 return io.ErrUnexpectedEOF 8347 } 8348 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8349 iNdEx += skippy 8350 } 8351 } 8352 8353 if iNdEx > l { 8354 return io.ErrUnexpectedEOF 8355 } 8356 return nil 8357 } 8358 func (m *SetRestartServiceResponse) Unmarshal(dAtA []byte) error { 8359 l := len(dAtA) 8360 iNdEx := 0 8361 for iNdEx < l { 8362 preIndex := iNdEx 8363 var wire uint64 8364 for shift := uint(0); ; shift += 7 { 8365 if shift >= 64 { 8366 return ErrIntOverflowLock 8367 } 8368 if iNdEx >= l { 8369 return io.ErrUnexpectedEOF 8370 } 8371 b := dAtA[iNdEx] 8372 iNdEx++ 8373 wire |= uint64(b&0x7F) << shift 8374 if b < 0x80 { 8375 break 8376 } 8377 } 8378 fieldNum := int32(wire >> 3) 8379 wireType := int(wire & 0x7) 8380 if wireType == 4 { 8381 return fmt.Errorf("proto: SetRestartServiceResponse: wiretype end group for non-group") 8382 } 8383 if fieldNum <= 0 { 8384 return fmt.Errorf("proto: SetRestartServiceResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8385 } 8386 switch fieldNum { 8387 case 1: 8388 if wireType != 0 { 8389 return fmt.Errorf("proto: wrong wireType = %d for field OK", wireType) 8390 } 8391 var v int 8392 for shift := uint(0); ; shift += 7 { 8393 if shift >= 64 { 8394 return ErrIntOverflowLock 8395 } 8396 if iNdEx >= l { 8397 return io.ErrUnexpectedEOF 8398 } 8399 b := dAtA[iNdEx] 8400 iNdEx++ 8401 v |= int(b&0x7F) << shift 8402 if b < 0x80 { 8403 break 8404 } 8405 } 8406 m.OK = bool(v != 0) 8407 default: 8408 iNdEx = preIndex 8409 skippy, err := skipLock(dAtA[iNdEx:]) 8410 if err != nil { 8411 return err 8412 } 8413 if (skippy < 0) || (iNdEx+skippy) < 0 { 8414 return ErrInvalidLengthLock 8415 } 8416 if (iNdEx + skippy) > l { 8417 return io.ErrUnexpectedEOF 8418 } 8419 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8420 iNdEx += skippy 8421 } 8422 } 8423 8424 if iNdEx > l { 8425 return io.ErrUnexpectedEOF 8426 } 8427 return nil 8428 } 8429 func (m *CanRestartServiceRequest) Unmarshal(dAtA []byte) error { 8430 l := len(dAtA) 8431 iNdEx := 0 8432 for iNdEx < l { 8433 preIndex := iNdEx 8434 var wire uint64 8435 for shift := uint(0); ; shift += 7 { 8436 if shift >= 64 { 8437 return ErrIntOverflowLock 8438 } 8439 if iNdEx >= l { 8440 return io.ErrUnexpectedEOF 8441 } 8442 b := dAtA[iNdEx] 8443 iNdEx++ 8444 wire |= uint64(b&0x7F) << shift 8445 if b < 0x80 { 8446 break 8447 } 8448 } 8449 fieldNum := int32(wire >> 3) 8450 wireType := int(wire & 0x7) 8451 if wireType == 4 { 8452 return fmt.Errorf("proto: CanRestartServiceRequest: wiretype end group for non-group") 8453 } 8454 if fieldNum <= 0 { 8455 return fmt.Errorf("proto: CanRestartServiceRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8456 } 8457 switch fieldNum { 8458 case 1: 8459 if wireType != 2 { 8460 return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType) 8461 } 8462 var stringLen uint64 8463 for shift := uint(0); ; shift += 7 { 8464 if shift >= 64 { 8465 return ErrIntOverflowLock 8466 } 8467 if iNdEx >= l { 8468 return io.ErrUnexpectedEOF 8469 } 8470 b := dAtA[iNdEx] 8471 iNdEx++ 8472 stringLen |= uint64(b&0x7F) << shift 8473 if b < 0x80 { 8474 break 8475 } 8476 } 8477 intStringLen := int(stringLen) 8478 if intStringLen < 0 { 8479 return ErrInvalidLengthLock 8480 } 8481 postIndex := iNdEx + intStringLen 8482 if postIndex < 0 { 8483 return ErrInvalidLengthLock 8484 } 8485 if postIndex > l { 8486 return io.ErrUnexpectedEOF 8487 } 8488 m.ServiceID = string(dAtA[iNdEx:postIndex]) 8489 iNdEx = postIndex 8490 default: 8491 iNdEx = preIndex 8492 skippy, err := skipLock(dAtA[iNdEx:]) 8493 if err != nil { 8494 return err 8495 } 8496 if (skippy < 0) || (iNdEx+skippy) < 0 { 8497 return ErrInvalidLengthLock 8498 } 8499 if (iNdEx + skippy) > l { 8500 return io.ErrUnexpectedEOF 8501 } 8502 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8503 iNdEx += skippy 8504 } 8505 } 8506 8507 if iNdEx > l { 8508 return io.ErrUnexpectedEOF 8509 } 8510 return nil 8511 } 8512 func (m *CanRestartServiceResponse) Unmarshal(dAtA []byte) error { 8513 l := len(dAtA) 8514 iNdEx := 0 8515 for iNdEx < l { 8516 preIndex := iNdEx 8517 var wire uint64 8518 for shift := uint(0); ; shift += 7 { 8519 if shift >= 64 { 8520 return ErrIntOverflowLock 8521 } 8522 if iNdEx >= l { 8523 return io.ErrUnexpectedEOF 8524 } 8525 b := dAtA[iNdEx] 8526 iNdEx++ 8527 wire |= uint64(b&0x7F) << shift 8528 if b < 0x80 { 8529 break 8530 } 8531 } 8532 fieldNum := int32(wire >> 3) 8533 wireType := int(wire & 0x7) 8534 if wireType == 4 { 8535 return fmt.Errorf("proto: CanRestartServiceResponse: wiretype end group for non-group") 8536 } 8537 if fieldNum <= 0 { 8538 return fmt.Errorf("proto: CanRestartServiceResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8539 } 8540 switch fieldNum { 8541 case 1: 8542 if wireType != 0 { 8543 return fmt.Errorf("proto: wrong wireType = %d for field OK", wireType) 8544 } 8545 var v int 8546 for shift := uint(0); ; shift += 7 { 8547 if shift >= 64 { 8548 return ErrIntOverflowLock 8549 } 8550 if iNdEx >= l { 8551 return io.ErrUnexpectedEOF 8552 } 8553 b := dAtA[iNdEx] 8554 iNdEx++ 8555 v |= int(b&0x7F) << shift 8556 if b < 0x80 { 8557 break 8558 } 8559 } 8560 m.OK = bool(v != 0) 8561 default: 8562 iNdEx = preIndex 8563 skippy, err := skipLock(dAtA[iNdEx:]) 8564 if err != nil { 8565 return err 8566 } 8567 if (skippy < 0) || (iNdEx+skippy) < 0 { 8568 return ErrInvalidLengthLock 8569 } 8570 if (iNdEx + skippy) > l { 8571 return io.ErrUnexpectedEOF 8572 } 8573 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8574 iNdEx += skippy 8575 } 8576 } 8577 8578 if iNdEx > l { 8579 return io.ErrUnexpectedEOF 8580 } 8581 return nil 8582 } 8583 func (m *RemainTxnInServiceRequest) Unmarshal(dAtA []byte) error { 8584 l := len(dAtA) 8585 iNdEx := 0 8586 for iNdEx < l { 8587 preIndex := iNdEx 8588 var wire uint64 8589 for shift := uint(0); ; shift += 7 { 8590 if shift >= 64 { 8591 return ErrIntOverflowLock 8592 } 8593 if iNdEx >= l { 8594 return io.ErrUnexpectedEOF 8595 } 8596 b := dAtA[iNdEx] 8597 iNdEx++ 8598 wire |= uint64(b&0x7F) << shift 8599 if b < 0x80 { 8600 break 8601 } 8602 } 8603 fieldNum := int32(wire >> 3) 8604 wireType := int(wire & 0x7) 8605 if wireType == 4 { 8606 return fmt.Errorf("proto: RemainTxnInServiceRequest: wiretype end group for non-group") 8607 } 8608 if fieldNum <= 0 { 8609 return fmt.Errorf("proto: RemainTxnInServiceRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8610 } 8611 switch fieldNum { 8612 case 1: 8613 if wireType != 2 { 8614 return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType) 8615 } 8616 var stringLen uint64 8617 for shift := uint(0); ; shift += 7 { 8618 if shift >= 64 { 8619 return ErrIntOverflowLock 8620 } 8621 if iNdEx >= l { 8622 return io.ErrUnexpectedEOF 8623 } 8624 b := dAtA[iNdEx] 8625 iNdEx++ 8626 stringLen |= uint64(b&0x7F) << shift 8627 if b < 0x80 { 8628 break 8629 } 8630 } 8631 intStringLen := int(stringLen) 8632 if intStringLen < 0 { 8633 return ErrInvalidLengthLock 8634 } 8635 postIndex := iNdEx + intStringLen 8636 if postIndex < 0 { 8637 return ErrInvalidLengthLock 8638 } 8639 if postIndex > l { 8640 return io.ErrUnexpectedEOF 8641 } 8642 m.ServiceID = string(dAtA[iNdEx:postIndex]) 8643 iNdEx = postIndex 8644 default: 8645 iNdEx = preIndex 8646 skippy, err := skipLock(dAtA[iNdEx:]) 8647 if err != nil { 8648 return err 8649 } 8650 if (skippy < 0) || (iNdEx+skippy) < 0 { 8651 return ErrInvalidLengthLock 8652 } 8653 if (iNdEx + skippy) > l { 8654 return io.ErrUnexpectedEOF 8655 } 8656 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8657 iNdEx += skippy 8658 } 8659 } 8660 8661 if iNdEx > l { 8662 return io.ErrUnexpectedEOF 8663 } 8664 return nil 8665 } 8666 func (m *RemainTxnInServiceResponse) Unmarshal(dAtA []byte) error { 8667 l := len(dAtA) 8668 iNdEx := 0 8669 for iNdEx < l { 8670 preIndex := iNdEx 8671 var wire uint64 8672 for shift := uint(0); ; shift += 7 { 8673 if shift >= 64 { 8674 return ErrIntOverflowLock 8675 } 8676 if iNdEx >= l { 8677 return io.ErrUnexpectedEOF 8678 } 8679 b := dAtA[iNdEx] 8680 iNdEx++ 8681 wire |= uint64(b&0x7F) << shift 8682 if b < 0x80 { 8683 break 8684 } 8685 } 8686 fieldNum := int32(wire >> 3) 8687 wireType := int(wire & 0x7) 8688 if wireType == 4 { 8689 return fmt.Errorf("proto: RemainTxnInServiceResponse: wiretype end group for non-group") 8690 } 8691 if fieldNum <= 0 { 8692 return fmt.Errorf("proto: RemainTxnInServiceResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8693 } 8694 switch fieldNum { 8695 case 1: 8696 if wireType != 0 { 8697 return fmt.Errorf("proto: wrong wireType = %d for field RemainTxn", wireType) 8698 } 8699 m.RemainTxn = 0 8700 for shift := uint(0); ; shift += 7 { 8701 if shift >= 64 { 8702 return ErrIntOverflowLock 8703 } 8704 if iNdEx >= l { 8705 return io.ErrUnexpectedEOF 8706 } 8707 b := dAtA[iNdEx] 8708 iNdEx++ 8709 m.RemainTxn |= int32(b&0x7F) << shift 8710 if b < 0x80 { 8711 break 8712 } 8713 } 8714 default: 8715 iNdEx = preIndex 8716 skippy, err := skipLock(dAtA[iNdEx:]) 8717 if err != nil { 8718 return err 8719 } 8720 if (skippy < 0) || (iNdEx+skippy) < 0 { 8721 return ErrInvalidLengthLock 8722 } 8723 if (iNdEx + skippy) > l { 8724 return io.ErrUnexpectedEOF 8725 } 8726 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8727 iNdEx += skippy 8728 } 8729 } 8730 8731 if iNdEx > l { 8732 return io.ErrUnexpectedEOF 8733 } 8734 return nil 8735 } 8736 func (m *KeepRemoteLockRequest) Unmarshal(dAtA []byte) error { 8737 l := len(dAtA) 8738 iNdEx := 0 8739 for iNdEx < l { 8740 preIndex := iNdEx 8741 var wire uint64 8742 for shift := uint(0); ; shift += 7 { 8743 if shift >= 64 { 8744 return ErrIntOverflowLock 8745 } 8746 if iNdEx >= l { 8747 return io.ErrUnexpectedEOF 8748 } 8749 b := dAtA[iNdEx] 8750 iNdEx++ 8751 wire |= uint64(b&0x7F) << shift 8752 if b < 0x80 { 8753 break 8754 } 8755 } 8756 fieldNum := int32(wire >> 3) 8757 wireType := int(wire & 0x7) 8758 if wireType == 4 { 8759 return fmt.Errorf("proto: KeepRemoteLockRequest: wiretype end group for non-group") 8760 } 8761 if fieldNum <= 0 { 8762 return fmt.Errorf("proto: KeepRemoteLockRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8763 } 8764 switch fieldNum { 8765 case 1: 8766 if wireType != 2 { 8767 return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType) 8768 } 8769 var stringLen uint64 8770 for shift := uint(0); ; shift += 7 { 8771 if shift >= 64 { 8772 return ErrIntOverflowLock 8773 } 8774 if iNdEx >= l { 8775 return io.ErrUnexpectedEOF 8776 } 8777 b := dAtA[iNdEx] 8778 iNdEx++ 8779 stringLen |= uint64(b&0x7F) << shift 8780 if b < 0x80 { 8781 break 8782 } 8783 } 8784 intStringLen := int(stringLen) 8785 if intStringLen < 0 { 8786 return ErrInvalidLengthLock 8787 } 8788 postIndex := iNdEx + intStringLen 8789 if postIndex < 0 { 8790 return ErrInvalidLengthLock 8791 } 8792 if postIndex > l { 8793 return io.ErrUnexpectedEOF 8794 } 8795 m.ServiceID = string(dAtA[iNdEx:postIndex]) 8796 iNdEx = postIndex 8797 default: 8798 iNdEx = preIndex 8799 skippy, err := skipLock(dAtA[iNdEx:]) 8800 if err != nil { 8801 return err 8802 } 8803 if (skippy < 0) || (iNdEx+skippy) < 0 { 8804 return ErrInvalidLengthLock 8805 } 8806 if (iNdEx + skippy) > l { 8807 return io.ErrUnexpectedEOF 8808 } 8809 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8810 iNdEx += skippy 8811 } 8812 } 8813 8814 if iNdEx > l { 8815 return io.ErrUnexpectedEOF 8816 } 8817 return nil 8818 } 8819 func (m *KeepRemoteLockResponse) Unmarshal(dAtA []byte) error { 8820 l := len(dAtA) 8821 iNdEx := 0 8822 for iNdEx < l { 8823 preIndex := iNdEx 8824 var wire uint64 8825 for shift := uint(0); ; shift += 7 { 8826 if shift >= 64 { 8827 return ErrIntOverflowLock 8828 } 8829 if iNdEx >= l { 8830 return io.ErrUnexpectedEOF 8831 } 8832 b := dAtA[iNdEx] 8833 iNdEx++ 8834 wire |= uint64(b&0x7F) << shift 8835 if b < 0x80 { 8836 break 8837 } 8838 } 8839 fieldNum := int32(wire >> 3) 8840 wireType := int(wire & 0x7) 8841 if wireType == 4 { 8842 return fmt.Errorf("proto: KeepRemoteLockResponse: wiretype end group for non-group") 8843 } 8844 if fieldNum <= 0 { 8845 return fmt.Errorf("proto: KeepRemoteLockResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8846 } 8847 switch fieldNum { 8848 case 1: 8849 if wireType != 0 { 8850 return fmt.Errorf("proto: wrong wireType = %d for field OK", wireType) 8851 } 8852 var v int 8853 for shift := uint(0); ; shift += 7 { 8854 if shift >= 64 { 8855 return ErrIntOverflowLock 8856 } 8857 if iNdEx >= l { 8858 return io.ErrUnexpectedEOF 8859 } 8860 b := dAtA[iNdEx] 8861 iNdEx++ 8862 v |= int(b&0x7F) << shift 8863 if b < 0x80 { 8864 break 8865 } 8866 } 8867 m.OK = bool(v != 0) 8868 default: 8869 iNdEx = preIndex 8870 skippy, err := skipLock(dAtA[iNdEx:]) 8871 if err != nil { 8872 return err 8873 } 8874 if (skippy < 0) || (iNdEx+skippy) < 0 { 8875 return ErrInvalidLengthLock 8876 } 8877 if (iNdEx + skippy) > l { 8878 return io.ErrUnexpectedEOF 8879 } 8880 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8881 iNdEx += skippy 8882 } 8883 } 8884 8885 if iNdEx > l { 8886 return io.ErrUnexpectedEOF 8887 } 8888 return nil 8889 } 8890 func (m *ValidateServiceRequest) Unmarshal(dAtA []byte) error { 8891 l := len(dAtA) 8892 iNdEx := 0 8893 for iNdEx < l { 8894 preIndex := iNdEx 8895 var wire uint64 8896 for shift := uint(0); ; shift += 7 { 8897 if shift >= 64 { 8898 return ErrIntOverflowLock 8899 } 8900 if iNdEx >= l { 8901 return io.ErrUnexpectedEOF 8902 } 8903 b := dAtA[iNdEx] 8904 iNdEx++ 8905 wire |= uint64(b&0x7F) << shift 8906 if b < 0x80 { 8907 break 8908 } 8909 } 8910 fieldNum := int32(wire >> 3) 8911 wireType := int(wire & 0x7) 8912 if wireType == 4 { 8913 return fmt.Errorf("proto: ValidateServiceRequest: wiretype end group for non-group") 8914 } 8915 if fieldNum <= 0 { 8916 return fmt.Errorf("proto: ValidateServiceRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8917 } 8918 switch fieldNum { 8919 case 1: 8920 if wireType != 2 { 8921 return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType) 8922 } 8923 var stringLen uint64 8924 for shift := uint(0); ; shift += 7 { 8925 if shift >= 64 { 8926 return ErrIntOverflowLock 8927 } 8928 if iNdEx >= l { 8929 return io.ErrUnexpectedEOF 8930 } 8931 b := dAtA[iNdEx] 8932 iNdEx++ 8933 stringLen |= uint64(b&0x7F) << shift 8934 if b < 0x80 { 8935 break 8936 } 8937 } 8938 intStringLen := int(stringLen) 8939 if intStringLen < 0 { 8940 return ErrInvalidLengthLock 8941 } 8942 postIndex := iNdEx + intStringLen 8943 if postIndex < 0 { 8944 return ErrInvalidLengthLock 8945 } 8946 if postIndex > l { 8947 return io.ErrUnexpectedEOF 8948 } 8949 m.ServiceID = string(dAtA[iNdEx:postIndex]) 8950 iNdEx = postIndex 8951 default: 8952 iNdEx = preIndex 8953 skippy, err := skipLock(dAtA[iNdEx:]) 8954 if err != nil { 8955 return err 8956 } 8957 if (skippy < 0) || (iNdEx+skippy) < 0 { 8958 return ErrInvalidLengthLock 8959 } 8960 if (iNdEx + skippy) > l { 8961 return io.ErrUnexpectedEOF 8962 } 8963 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8964 iNdEx += skippy 8965 } 8966 } 8967 8968 if iNdEx > l { 8969 return io.ErrUnexpectedEOF 8970 } 8971 return nil 8972 } 8973 func (m *ValidateServiceResponse) Unmarshal(dAtA []byte) error { 8974 l := len(dAtA) 8975 iNdEx := 0 8976 for iNdEx < l { 8977 preIndex := iNdEx 8978 var wire uint64 8979 for shift := uint(0); ; shift += 7 { 8980 if shift >= 64 { 8981 return ErrIntOverflowLock 8982 } 8983 if iNdEx >= l { 8984 return io.ErrUnexpectedEOF 8985 } 8986 b := dAtA[iNdEx] 8987 iNdEx++ 8988 wire |= uint64(b&0x7F) << shift 8989 if b < 0x80 { 8990 break 8991 } 8992 } 8993 fieldNum := int32(wire >> 3) 8994 wireType := int(wire & 0x7) 8995 if wireType == 4 { 8996 return fmt.Errorf("proto: ValidateServiceResponse: wiretype end group for non-group") 8997 } 8998 if fieldNum <= 0 { 8999 return fmt.Errorf("proto: ValidateServiceResponse: illegal tag %d (wire type %d)", fieldNum, wire) 9000 } 9001 switch fieldNum { 9002 case 1: 9003 if wireType != 0 { 9004 return fmt.Errorf("proto: wrong wireType = %d for field OK", wireType) 9005 } 9006 var v int 9007 for shift := uint(0); ; shift += 7 { 9008 if shift >= 64 { 9009 return ErrIntOverflowLock 9010 } 9011 if iNdEx >= l { 9012 return io.ErrUnexpectedEOF 9013 } 9014 b := dAtA[iNdEx] 9015 iNdEx++ 9016 v |= int(b&0x7F) << shift 9017 if b < 0x80 { 9018 break 9019 } 9020 } 9021 m.OK = bool(v != 0) 9022 default: 9023 iNdEx = preIndex 9024 skippy, err := skipLock(dAtA[iNdEx:]) 9025 if err != nil { 9026 return err 9027 } 9028 if (skippy < 0) || (iNdEx+skippy) < 0 { 9029 return ErrInvalidLengthLock 9030 } 9031 if (iNdEx + skippy) > l { 9032 return io.ErrUnexpectedEOF 9033 } 9034 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9035 iNdEx += skippy 9036 } 9037 } 9038 9039 if iNdEx > l { 9040 return io.ErrUnexpectedEOF 9041 } 9042 return nil 9043 } 9044 func (m *CannotCommitRequest) Unmarshal(dAtA []byte) error { 9045 l := len(dAtA) 9046 iNdEx := 0 9047 for iNdEx < l { 9048 preIndex := iNdEx 9049 var wire uint64 9050 for shift := uint(0); ; shift += 7 { 9051 if shift >= 64 { 9052 return ErrIntOverflowLock 9053 } 9054 if iNdEx >= l { 9055 return io.ErrUnexpectedEOF 9056 } 9057 b := dAtA[iNdEx] 9058 iNdEx++ 9059 wire |= uint64(b&0x7F) << shift 9060 if b < 0x80 { 9061 break 9062 } 9063 } 9064 fieldNum := int32(wire >> 3) 9065 wireType := int(wire & 0x7) 9066 if wireType == 4 { 9067 return fmt.Errorf("proto: CannotCommitRequest: wiretype end group for non-group") 9068 } 9069 if fieldNum <= 0 { 9070 return fmt.Errorf("proto: CannotCommitRequest: illegal tag %d (wire type %d)", fieldNum, wire) 9071 } 9072 switch fieldNum { 9073 case 1: 9074 if wireType != 2 { 9075 return fmt.Errorf("proto: wrong wireType = %d for field OrphanTxnList", wireType) 9076 } 9077 var msglen int 9078 for shift := uint(0); ; shift += 7 { 9079 if shift >= 64 { 9080 return ErrIntOverflowLock 9081 } 9082 if iNdEx >= l { 9083 return io.ErrUnexpectedEOF 9084 } 9085 b := dAtA[iNdEx] 9086 iNdEx++ 9087 msglen |= int(b&0x7F) << shift 9088 if b < 0x80 { 9089 break 9090 } 9091 } 9092 if msglen < 0 { 9093 return ErrInvalidLengthLock 9094 } 9095 postIndex := iNdEx + msglen 9096 if postIndex < 0 { 9097 return ErrInvalidLengthLock 9098 } 9099 if postIndex > l { 9100 return io.ErrUnexpectedEOF 9101 } 9102 m.OrphanTxnList = append(m.OrphanTxnList, OrphanTxn{}) 9103 if err := m.OrphanTxnList[len(m.OrphanTxnList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9104 return err 9105 } 9106 iNdEx = postIndex 9107 default: 9108 iNdEx = preIndex 9109 skippy, err := skipLock(dAtA[iNdEx:]) 9110 if err != nil { 9111 return err 9112 } 9113 if (skippy < 0) || (iNdEx+skippy) < 0 { 9114 return ErrInvalidLengthLock 9115 } 9116 if (iNdEx + skippy) > l { 9117 return io.ErrUnexpectedEOF 9118 } 9119 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9120 iNdEx += skippy 9121 } 9122 } 9123 9124 if iNdEx > l { 9125 return io.ErrUnexpectedEOF 9126 } 9127 return nil 9128 } 9129 func (m *CannotCommitResponse) Unmarshal(dAtA []byte) error { 9130 l := len(dAtA) 9131 iNdEx := 0 9132 for iNdEx < l { 9133 preIndex := iNdEx 9134 var wire uint64 9135 for shift := uint(0); ; shift += 7 { 9136 if shift >= 64 { 9137 return ErrIntOverflowLock 9138 } 9139 if iNdEx >= l { 9140 return io.ErrUnexpectedEOF 9141 } 9142 b := dAtA[iNdEx] 9143 iNdEx++ 9144 wire |= uint64(b&0x7F) << shift 9145 if b < 0x80 { 9146 break 9147 } 9148 } 9149 fieldNum := int32(wire >> 3) 9150 wireType := int(wire & 0x7) 9151 if wireType == 4 { 9152 return fmt.Errorf("proto: CannotCommitResponse: wiretype end group for non-group") 9153 } 9154 if fieldNum <= 0 { 9155 return fmt.Errorf("proto: CannotCommitResponse: illegal tag %d (wire type %d)", fieldNum, wire) 9156 } 9157 switch fieldNum { 9158 case 1: 9159 if wireType != 2 { 9160 return fmt.Errorf("proto: wrong wireType = %d for field CommittingTxn", wireType) 9161 } 9162 var byteLen int 9163 for shift := uint(0); ; shift += 7 { 9164 if shift >= 64 { 9165 return ErrIntOverflowLock 9166 } 9167 if iNdEx >= l { 9168 return io.ErrUnexpectedEOF 9169 } 9170 b := dAtA[iNdEx] 9171 iNdEx++ 9172 byteLen |= int(b&0x7F) << shift 9173 if b < 0x80 { 9174 break 9175 } 9176 } 9177 if byteLen < 0 { 9178 return ErrInvalidLengthLock 9179 } 9180 postIndex := iNdEx + byteLen 9181 if postIndex < 0 { 9182 return ErrInvalidLengthLock 9183 } 9184 if postIndex > l { 9185 return io.ErrUnexpectedEOF 9186 } 9187 m.CommittingTxn = append(m.CommittingTxn, make([]byte, postIndex-iNdEx)) 9188 copy(m.CommittingTxn[len(m.CommittingTxn)-1], dAtA[iNdEx:postIndex]) 9189 iNdEx = postIndex 9190 default: 9191 iNdEx = preIndex 9192 skippy, err := skipLock(dAtA[iNdEx:]) 9193 if err != nil { 9194 return err 9195 } 9196 if (skippy < 0) || (iNdEx+skippy) < 0 { 9197 return ErrInvalidLengthLock 9198 } 9199 if (iNdEx + skippy) > l { 9200 return io.ErrUnexpectedEOF 9201 } 9202 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9203 iNdEx += skippy 9204 } 9205 } 9206 9207 if iNdEx > l { 9208 return io.ErrUnexpectedEOF 9209 } 9210 return nil 9211 } 9212 func (m *GetActiveTxnRequest) Unmarshal(dAtA []byte) error { 9213 l := len(dAtA) 9214 iNdEx := 0 9215 for iNdEx < l { 9216 preIndex := iNdEx 9217 var wire uint64 9218 for shift := uint(0); ; shift += 7 { 9219 if shift >= 64 { 9220 return ErrIntOverflowLock 9221 } 9222 if iNdEx >= l { 9223 return io.ErrUnexpectedEOF 9224 } 9225 b := dAtA[iNdEx] 9226 iNdEx++ 9227 wire |= uint64(b&0x7F) << shift 9228 if b < 0x80 { 9229 break 9230 } 9231 } 9232 fieldNum := int32(wire >> 3) 9233 wireType := int(wire & 0x7) 9234 if wireType == 4 { 9235 return fmt.Errorf("proto: GetActiveTxnRequest: wiretype end group for non-group") 9236 } 9237 if fieldNum <= 0 { 9238 return fmt.Errorf("proto: GetActiveTxnRequest: illegal tag %d (wire type %d)", fieldNum, wire) 9239 } 9240 switch fieldNum { 9241 case 1: 9242 if wireType != 2 { 9243 return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType) 9244 } 9245 var stringLen uint64 9246 for shift := uint(0); ; shift += 7 { 9247 if shift >= 64 { 9248 return ErrIntOverflowLock 9249 } 9250 if iNdEx >= l { 9251 return io.ErrUnexpectedEOF 9252 } 9253 b := dAtA[iNdEx] 9254 iNdEx++ 9255 stringLen |= uint64(b&0x7F) << shift 9256 if b < 0x80 { 9257 break 9258 } 9259 } 9260 intStringLen := int(stringLen) 9261 if intStringLen < 0 { 9262 return ErrInvalidLengthLock 9263 } 9264 postIndex := iNdEx + intStringLen 9265 if postIndex < 0 { 9266 return ErrInvalidLengthLock 9267 } 9268 if postIndex > l { 9269 return io.ErrUnexpectedEOF 9270 } 9271 m.ServiceID = string(dAtA[iNdEx:postIndex]) 9272 iNdEx = postIndex 9273 default: 9274 iNdEx = preIndex 9275 skippy, err := skipLock(dAtA[iNdEx:]) 9276 if err != nil { 9277 return err 9278 } 9279 if (skippy < 0) || (iNdEx+skippy) < 0 { 9280 return ErrInvalidLengthLock 9281 } 9282 if (iNdEx + skippy) > l { 9283 return io.ErrUnexpectedEOF 9284 } 9285 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9286 iNdEx += skippy 9287 } 9288 } 9289 9290 if iNdEx > l { 9291 return io.ErrUnexpectedEOF 9292 } 9293 return nil 9294 } 9295 func (m *GetActiveTxnResponse) Unmarshal(dAtA []byte) error { 9296 l := len(dAtA) 9297 iNdEx := 0 9298 for iNdEx < l { 9299 preIndex := iNdEx 9300 var wire uint64 9301 for shift := uint(0); ; shift += 7 { 9302 if shift >= 64 { 9303 return ErrIntOverflowLock 9304 } 9305 if iNdEx >= l { 9306 return io.ErrUnexpectedEOF 9307 } 9308 b := dAtA[iNdEx] 9309 iNdEx++ 9310 wire |= uint64(b&0x7F) << shift 9311 if b < 0x80 { 9312 break 9313 } 9314 } 9315 fieldNum := int32(wire >> 3) 9316 wireType := int(wire & 0x7) 9317 if wireType == 4 { 9318 return fmt.Errorf("proto: GetActiveTxnResponse: wiretype end group for non-group") 9319 } 9320 if fieldNum <= 0 { 9321 return fmt.Errorf("proto: GetActiveTxnResponse: illegal tag %d (wire type %d)", fieldNum, wire) 9322 } 9323 switch fieldNum { 9324 case 1: 9325 if wireType != 0 { 9326 return fmt.Errorf("proto: wrong wireType = %d for field Valid", wireType) 9327 } 9328 var v int 9329 for shift := uint(0); ; shift += 7 { 9330 if shift >= 64 { 9331 return ErrIntOverflowLock 9332 } 9333 if iNdEx >= l { 9334 return io.ErrUnexpectedEOF 9335 } 9336 b := dAtA[iNdEx] 9337 iNdEx++ 9338 v |= int(b&0x7F) << shift 9339 if b < 0x80 { 9340 break 9341 } 9342 } 9343 m.Valid = bool(v != 0) 9344 case 2: 9345 if wireType != 2 { 9346 return fmt.Errorf("proto: wrong wireType = %d for field Txn", wireType) 9347 } 9348 var byteLen int 9349 for shift := uint(0); ; shift += 7 { 9350 if shift >= 64 { 9351 return ErrIntOverflowLock 9352 } 9353 if iNdEx >= l { 9354 return io.ErrUnexpectedEOF 9355 } 9356 b := dAtA[iNdEx] 9357 iNdEx++ 9358 byteLen |= int(b&0x7F) << shift 9359 if b < 0x80 { 9360 break 9361 } 9362 } 9363 if byteLen < 0 { 9364 return ErrInvalidLengthLock 9365 } 9366 postIndex := iNdEx + byteLen 9367 if postIndex < 0 { 9368 return ErrInvalidLengthLock 9369 } 9370 if postIndex > l { 9371 return io.ErrUnexpectedEOF 9372 } 9373 m.Txn = append(m.Txn, make([]byte, postIndex-iNdEx)) 9374 copy(m.Txn[len(m.Txn)-1], dAtA[iNdEx:postIndex]) 9375 iNdEx = postIndex 9376 default: 9377 iNdEx = preIndex 9378 skippy, err := skipLock(dAtA[iNdEx:]) 9379 if err != nil { 9380 return err 9381 } 9382 if (skippy < 0) || (iNdEx+skippy) < 0 { 9383 return ErrInvalidLengthLock 9384 } 9385 if (iNdEx + skippy) > l { 9386 return io.ErrUnexpectedEOF 9387 } 9388 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9389 iNdEx += skippy 9390 } 9391 } 9392 9393 if iNdEx > l { 9394 return io.ErrUnexpectedEOF 9395 } 9396 return nil 9397 } 9398 func (m *OrphanTxn) Unmarshal(dAtA []byte) error { 9399 l := len(dAtA) 9400 iNdEx := 0 9401 for iNdEx < l { 9402 preIndex := iNdEx 9403 var wire uint64 9404 for shift := uint(0); ; shift += 7 { 9405 if shift >= 64 { 9406 return ErrIntOverflowLock 9407 } 9408 if iNdEx >= l { 9409 return io.ErrUnexpectedEOF 9410 } 9411 b := dAtA[iNdEx] 9412 iNdEx++ 9413 wire |= uint64(b&0x7F) << shift 9414 if b < 0x80 { 9415 break 9416 } 9417 } 9418 fieldNum := int32(wire >> 3) 9419 wireType := int(wire & 0x7) 9420 if wireType == 4 { 9421 return fmt.Errorf("proto: OrphanTxn: wiretype end group for non-group") 9422 } 9423 if fieldNum <= 0 { 9424 return fmt.Errorf("proto: OrphanTxn: illegal tag %d (wire type %d)", fieldNum, wire) 9425 } 9426 switch fieldNum { 9427 case 1: 9428 if wireType != 2 { 9429 return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) 9430 } 9431 var stringLen uint64 9432 for shift := uint(0); ; shift += 7 { 9433 if shift >= 64 { 9434 return ErrIntOverflowLock 9435 } 9436 if iNdEx >= l { 9437 return io.ErrUnexpectedEOF 9438 } 9439 b := dAtA[iNdEx] 9440 iNdEx++ 9441 stringLen |= uint64(b&0x7F) << shift 9442 if b < 0x80 { 9443 break 9444 } 9445 } 9446 intStringLen := int(stringLen) 9447 if intStringLen < 0 { 9448 return ErrInvalidLengthLock 9449 } 9450 postIndex := iNdEx + intStringLen 9451 if postIndex < 0 { 9452 return ErrInvalidLengthLock 9453 } 9454 if postIndex > l { 9455 return io.ErrUnexpectedEOF 9456 } 9457 m.Service = string(dAtA[iNdEx:postIndex]) 9458 iNdEx = postIndex 9459 case 2: 9460 if wireType != 2 { 9461 return fmt.Errorf("proto: wrong wireType = %d for field Txn", wireType) 9462 } 9463 var byteLen int 9464 for shift := uint(0); ; shift += 7 { 9465 if shift >= 64 { 9466 return ErrIntOverflowLock 9467 } 9468 if iNdEx >= l { 9469 return io.ErrUnexpectedEOF 9470 } 9471 b := dAtA[iNdEx] 9472 iNdEx++ 9473 byteLen |= int(b&0x7F) << shift 9474 if b < 0x80 { 9475 break 9476 } 9477 } 9478 if byteLen < 0 { 9479 return ErrInvalidLengthLock 9480 } 9481 postIndex := iNdEx + byteLen 9482 if postIndex < 0 { 9483 return ErrInvalidLengthLock 9484 } 9485 if postIndex > l { 9486 return io.ErrUnexpectedEOF 9487 } 9488 m.Txn = append(m.Txn, make([]byte, postIndex-iNdEx)) 9489 copy(m.Txn[len(m.Txn)-1], dAtA[iNdEx:postIndex]) 9490 iNdEx = postIndex 9491 default: 9492 iNdEx = preIndex 9493 skippy, err := skipLock(dAtA[iNdEx:]) 9494 if err != nil { 9495 return err 9496 } 9497 if (skippy < 0) || (iNdEx+skippy) < 0 { 9498 return ErrInvalidLengthLock 9499 } 9500 if (iNdEx + skippy) > l { 9501 return io.ErrUnexpectedEOF 9502 } 9503 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9504 iNdEx += skippy 9505 } 9506 } 9507 9508 if iNdEx > l { 9509 return io.ErrUnexpectedEOF 9510 } 9511 return nil 9512 } 9513 func (m *Result) Unmarshal(dAtA []byte) error { 9514 l := len(dAtA) 9515 iNdEx := 0 9516 for iNdEx < l { 9517 preIndex := iNdEx 9518 var wire uint64 9519 for shift := uint(0); ; shift += 7 { 9520 if shift >= 64 { 9521 return ErrIntOverflowLock 9522 } 9523 if iNdEx >= l { 9524 return io.ErrUnexpectedEOF 9525 } 9526 b := dAtA[iNdEx] 9527 iNdEx++ 9528 wire |= uint64(b&0x7F) << shift 9529 if b < 0x80 { 9530 break 9531 } 9532 } 9533 fieldNum := int32(wire >> 3) 9534 wireType := int(wire & 0x7) 9535 if wireType == 4 { 9536 return fmt.Errorf("proto: Result: wiretype end group for non-group") 9537 } 9538 if fieldNum <= 0 { 9539 return fmt.Errorf("proto: Result: illegal tag %d (wire type %d)", fieldNum, wire) 9540 } 9541 switch fieldNum { 9542 case 1: 9543 if wireType != 2 { 9544 return fmt.Errorf("proto: wrong wireType = %d for field LockedOn", wireType) 9545 } 9546 var msglen int 9547 for shift := uint(0); ; shift += 7 { 9548 if shift >= 64 { 9549 return ErrIntOverflowLock 9550 } 9551 if iNdEx >= l { 9552 return io.ErrUnexpectedEOF 9553 } 9554 b := dAtA[iNdEx] 9555 iNdEx++ 9556 msglen |= int(b&0x7F) << shift 9557 if b < 0x80 { 9558 break 9559 } 9560 } 9561 if msglen < 0 { 9562 return ErrInvalidLengthLock 9563 } 9564 postIndex := iNdEx + msglen 9565 if postIndex < 0 { 9566 return ErrInvalidLengthLock 9567 } 9568 if postIndex > l { 9569 return io.ErrUnexpectedEOF 9570 } 9571 if err := m.LockedOn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9572 return err 9573 } 9574 iNdEx = postIndex 9575 case 2: 9576 if wireType != 0 { 9577 return fmt.Errorf("proto: wrong wireType = %d for field HasConflict", wireType) 9578 } 9579 var v int 9580 for shift := uint(0); ; shift += 7 { 9581 if shift >= 64 { 9582 return ErrIntOverflowLock 9583 } 9584 if iNdEx >= l { 9585 return io.ErrUnexpectedEOF 9586 } 9587 b := dAtA[iNdEx] 9588 iNdEx++ 9589 v |= int(b&0x7F) << shift 9590 if b < 0x80 { 9591 break 9592 } 9593 } 9594 m.HasConflict = bool(v != 0) 9595 case 3: 9596 if wireType != 0 { 9597 return fmt.Errorf("proto: wrong wireType = %d for field HasPrevCommit", wireType) 9598 } 9599 var v int 9600 for shift := uint(0); ; shift += 7 { 9601 if shift >= 64 { 9602 return ErrIntOverflowLock 9603 } 9604 if iNdEx >= l { 9605 return io.ErrUnexpectedEOF 9606 } 9607 b := dAtA[iNdEx] 9608 iNdEx++ 9609 v |= int(b&0x7F) << shift 9610 if b < 0x80 { 9611 break 9612 } 9613 } 9614 m.HasPrevCommit = bool(v != 0) 9615 case 4: 9616 if wireType != 2 { 9617 return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) 9618 } 9619 var msglen int 9620 for shift := uint(0); ; shift += 7 { 9621 if shift >= 64 { 9622 return ErrIntOverflowLock 9623 } 9624 if iNdEx >= l { 9625 return io.ErrUnexpectedEOF 9626 } 9627 b := dAtA[iNdEx] 9628 iNdEx++ 9629 msglen |= int(b&0x7F) << shift 9630 if b < 0x80 { 9631 break 9632 } 9633 } 9634 if msglen < 0 { 9635 return ErrInvalidLengthLock 9636 } 9637 postIndex := iNdEx + msglen 9638 if postIndex < 0 { 9639 return ErrInvalidLengthLock 9640 } 9641 if postIndex > l { 9642 return io.ErrUnexpectedEOF 9643 } 9644 if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9645 return err 9646 } 9647 iNdEx = postIndex 9648 case 5: 9649 if wireType != 0 { 9650 return fmt.Errorf("proto: wrong wireType = %d for field TableDefChanged", wireType) 9651 } 9652 var v int 9653 for shift := uint(0); ; shift += 7 { 9654 if shift >= 64 { 9655 return ErrIntOverflowLock 9656 } 9657 if iNdEx >= l { 9658 return io.ErrUnexpectedEOF 9659 } 9660 b := dAtA[iNdEx] 9661 iNdEx++ 9662 v |= int(b&0x7F) << shift 9663 if b < 0x80 { 9664 break 9665 } 9666 } 9667 m.TableDefChanged = bool(v != 0) 9668 case 6: 9669 if wireType != 2 { 9670 return fmt.Errorf("proto: wrong wireType = %d for field ConflictKey", wireType) 9671 } 9672 var byteLen int 9673 for shift := uint(0); ; shift += 7 { 9674 if shift >= 64 { 9675 return ErrIntOverflowLock 9676 } 9677 if iNdEx >= l { 9678 return io.ErrUnexpectedEOF 9679 } 9680 b := dAtA[iNdEx] 9681 iNdEx++ 9682 byteLen |= int(b&0x7F) << shift 9683 if b < 0x80 { 9684 break 9685 } 9686 } 9687 if byteLen < 0 { 9688 return ErrInvalidLengthLock 9689 } 9690 postIndex := iNdEx + byteLen 9691 if postIndex < 0 { 9692 return ErrInvalidLengthLock 9693 } 9694 if postIndex > l { 9695 return io.ErrUnexpectedEOF 9696 } 9697 m.ConflictKey = append(m.ConflictKey[:0], dAtA[iNdEx:postIndex]...) 9698 if m.ConflictKey == nil { 9699 m.ConflictKey = []byte{} 9700 } 9701 iNdEx = postIndex 9702 case 7: 9703 if wireType != 2 { 9704 return fmt.Errorf("proto: wrong wireType = %d for field ConflictTxn", wireType) 9705 } 9706 var byteLen int 9707 for shift := uint(0); ; shift += 7 { 9708 if shift >= 64 { 9709 return ErrIntOverflowLock 9710 } 9711 if iNdEx >= l { 9712 return io.ErrUnexpectedEOF 9713 } 9714 b := dAtA[iNdEx] 9715 iNdEx++ 9716 byteLen |= int(b&0x7F) << shift 9717 if b < 0x80 { 9718 break 9719 } 9720 } 9721 if byteLen < 0 { 9722 return ErrInvalidLengthLock 9723 } 9724 postIndex := iNdEx + byteLen 9725 if postIndex < 0 { 9726 return ErrInvalidLengthLock 9727 } 9728 if postIndex > l { 9729 return io.ErrUnexpectedEOF 9730 } 9731 m.ConflictTxn = append(m.ConflictTxn[:0], dAtA[iNdEx:postIndex]...) 9732 if m.ConflictTxn == nil { 9733 m.ConflictTxn = []byte{} 9734 } 9735 iNdEx = postIndex 9736 case 8: 9737 if wireType != 2 { 9738 return fmt.Errorf("proto: wrong wireType = %d for field PrevWaiter", wireType) 9739 } 9740 var byteLen int 9741 for shift := uint(0); ; shift += 7 { 9742 if shift >= 64 { 9743 return ErrIntOverflowLock 9744 } 9745 if iNdEx >= l { 9746 return io.ErrUnexpectedEOF 9747 } 9748 b := dAtA[iNdEx] 9749 iNdEx++ 9750 byteLen |= int(b&0x7F) << shift 9751 if b < 0x80 { 9752 break 9753 } 9754 } 9755 if byteLen < 0 { 9756 return ErrInvalidLengthLock 9757 } 9758 postIndex := iNdEx + byteLen 9759 if postIndex < 0 { 9760 return ErrInvalidLengthLock 9761 } 9762 if postIndex > l { 9763 return io.ErrUnexpectedEOF 9764 } 9765 m.PrevWaiter = append(m.PrevWaiter[:0], dAtA[iNdEx:postIndex]...) 9766 if m.PrevWaiter == nil { 9767 m.PrevWaiter = []byte{} 9768 } 9769 iNdEx = postIndex 9770 case 9: 9771 if wireType != 0 { 9772 return fmt.Errorf("proto: wrong wireType = %d for field Waiters", wireType) 9773 } 9774 m.Waiters = 0 9775 for shift := uint(0); ; shift += 7 { 9776 if shift >= 64 { 9777 return ErrIntOverflowLock 9778 } 9779 if iNdEx >= l { 9780 return io.ErrUnexpectedEOF 9781 } 9782 b := dAtA[iNdEx] 9783 iNdEx++ 9784 m.Waiters |= uint32(b&0x7F) << shift 9785 if b < 0x80 { 9786 break 9787 } 9788 } 9789 default: 9790 iNdEx = preIndex 9791 skippy, err := skipLock(dAtA[iNdEx:]) 9792 if err != nil { 9793 return err 9794 } 9795 if (skippy < 0) || (iNdEx+skippy) < 0 { 9796 return ErrInvalidLengthLock 9797 } 9798 if (iNdEx + skippy) > l { 9799 return io.ErrUnexpectedEOF 9800 } 9801 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9802 iNdEx += skippy 9803 } 9804 } 9805 9806 if iNdEx > l { 9807 return io.ErrUnexpectedEOF 9808 } 9809 return nil 9810 } 9811 func (m *ExtraMutation) Unmarshal(dAtA []byte) error { 9812 l := len(dAtA) 9813 iNdEx := 0 9814 for iNdEx < l { 9815 preIndex := iNdEx 9816 var wire uint64 9817 for shift := uint(0); ; shift += 7 { 9818 if shift >= 64 { 9819 return ErrIntOverflowLock 9820 } 9821 if iNdEx >= l { 9822 return io.ErrUnexpectedEOF 9823 } 9824 b := dAtA[iNdEx] 9825 iNdEx++ 9826 wire |= uint64(b&0x7F) << shift 9827 if b < 0x80 { 9828 break 9829 } 9830 } 9831 fieldNum := int32(wire >> 3) 9832 wireType := int(wire & 0x7) 9833 if wireType == 4 { 9834 return fmt.Errorf("proto: ExtraMutation: wiretype end group for non-group") 9835 } 9836 if fieldNum <= 0 { 9837 return fmt.Errorf("proto: ExtraMutation: illegal tag %d (wire type %d)", fieldNum, wire) 9838 } 9839 switch fieldNum { 9840 case 1: 9841 if wireType != 2 { 9842 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 9843 } 9844 var byteLen int 9845 for shift := uint(0); ; shift += 7 { 9846 if shift >= 64 { 9847 return ErrIntOverflowLock 9848 } 9849 if iNdEx >= l { 9850 return io.ErrUnexpectedEOF 9851 } 9852 b := dAtA[iNdEx] 9853 iNdEx++ 9854 byteLen |= int(b&0x7F) << shift 9855 if b < 0x80 { 9856 break 9857 } 9858 } 9859 if byteLen < 0 { 9860 return ErrInvalidLengthLock 9861 } 9862 postIndex := iNdEx + byteLen 9863 if postIndex < 0 { 9864 return ErrInvalidLengthLock 9865 } 9866 if postIndex > l { 9867 return io.ErrUnexpectedEOF 9868 } 9869 m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) 9870 if m.Key == nil { 9871 m.Key = []byte{} 9872 } 9873 iNdEx = postIndex 9874 case 2: 9875 if wireType != 0 { 9876 return fmt.Errorf("proto: wrong wireType = %d for field Skip", wireType) 9877 } 9878 var v int 9879 for shift := uint(0); ; shift += 7 { 9880 if shift >= 64 { 9881 return ErrIntOverflowLock 9882 } 9883 if iNdEx >= l { 9884 return io.ErrUnexpectedEOF 9885 } 9886 b := dAtA[iNdEx] 9887 iNdEx++ 9888 v |= int(b&0x7F) << shift 9889 if b < 0x80 { 9890 break 9891 } 9892 } 9893 m.Skip = bool(v != 0) 9894 case 3: 9895 if wireType != 2 { 9896 return fmt.Errorf("proto: wrong wireType = %d for field ReplaceTo", wireType) 9897 } 9898 var byteLen int 9899 for shift := uint(0); ; shift += 7 { 9900 if shift >= 64 { 9901 return ErrIntOverflowLock 9902 } 9903 if iNdEx >= l { 9904 return io.ErrUnexpectedEOF 9905 } 9906 b := dAtA[iNdEx] 9907 iNdEx++ 9908 byteLen |= int(b&0x7F) << shift 9909 if b < 0x80 { 9910 break 9911 } 9912 } 9913 if byteLen < 0 { 9914 return ErrInvalidLengthLock 9915 } 9916 postIndex := iNdEx + byteLen 9917 if postIndex < 0 { 9918 return ErrInvalidLengthLock 9919 } 9920 if postIndex > l { 9921 return io.ErrUnexpectedEOF 9922 } 9923 m.ReplaceTo = append(m.ReplaceTo[:0], dAtA[iNdEx:postIndex]...) 9924 if m.ReplaceTo == nil { 9925 m.ReplaceTo = []byte{} 9926 } 9927 iNdEx = postIndex 9928 default: 9929 iNdEx = preIndex 9930 skippy, err := skipLock(dAtA[iNdEx:]) 9931 if err != nil { 9932 return err 9933 } 9934 if (skippy < 0) || (iNdEx+skippy) < 0 { 9935 return ErrInvalidLengthLock 9936 } 9937 if (iNdEx + skippy) > l { 9938 return io.ErrUnexpectedEOF 9939 } 9940 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9941 iNdEx += skippy 9942 } 9943 } 9944 9945 if iNdEx > l { 9946 return io.ErrUnexpectedEOF 9947 } 9948 return nil 9949 } 9950 func skipLock(dAtA []byte) (n int, err error) { 9951 l := len(dAtA) 9952 iNdEx := 0 9953 depth := 0 9954 for iNdEx < l { 9955 var wire uint64 9956 for shift := uint(0); ; shift += 7 { 9957 if shift >= 64 { 9958 return 0, ErrIntOverflowLock 9959 } 9960 if iNdEx >= l { 9961 return 0, io.ErrUnexpectedEOF 9962 } 9963 b := dAtA[iNdEx] 9964 iNdEx++ 9965 wire |= (uint64(b) & 0x7F) << shift 9966 if b < 0x80 { 9967 break 9968 } 9969 } 9970 wireType := int(wire & 0x7) 9971 switch wireType { 9972 case 0: 9973 for shift := uint(0); ; shift += 7 { 9974 if shift >= 64 { 9975 return 0, ErrIntOverflowLock 9976 } 9977 if iNdEx >= l { 9978 return 0, io.ErrUnexpectedEOF 9979 } 9980 iNdEx++ 9981 if dAtA[iNdEx-1] < 0x80 { 9982 break 9983 } 9984 } 9985 case 1: 9986 iNdEx += 8 9987 case 2: 9988 var length int 9989 for shift := uint(0); ; shift += 7 { 9990 if shift >= 64 { 9991 return 0, ErrIntOverflowLock 9992 } 9993 if iNdEx >= l { 9994 return 0, io.ErrUnexpectedEOF 9995 } 9996 b := dAtA[iNdEx] 9997 iNdEx++ 9998 length |= (int(b) & 0x7F) << shift 9999 if b < 0x80 { 10000 break 10001 } 10002 } 10003 if length < 0 { 10004 return 0, ErrInvalidLengthLock 10005 } 10006 iNdEx += length 10007 case 3: 10008 depth++ 10009 case 4: 10010 if depth == 0 { 10011 return 0, ErrUnexpectedEndOfGroupLock 10012 } 10013 depth-- 10014 case 5: 10015 iNdEx += 4 10016 default: 10017 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 10018 } 10019 if iNdEx < 0 { 10020 return 0, ErrInvalidLengthLock 10021 } 10022 if depth == 0 { 10023 return iNdEx, nil 10024 } 10025 } 10026 return 0, io.ErrUnexpectedEOF 10027 } 10028 10029 var ( 10030 ErrInvalidLengthLock = fmt.Errorf("proto: negative length found during unmarshaling") 10031 ErrIntOverflowLock = fmt.Errorf("proto: integer overflow") 10032 ErrUnexpectedEndOfGroupLock = fmt.Errorf("proto: unexpected end of group") 10033 )