github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/kv/kvserver/kvserverpb/log.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: kv/kvserver/kvserverpb/log.proto 3 4 package kvserverpb 5 6 import proto "github.com/gogo/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 import roachpb "github.com/cockroachdb/cockroach/pkg/roachpb" 10 11 import time "time" 12 import github_com_cockroachdb_cockroach_pkg_roachpb "github.com/cockroachdb/cockroach/pkg/roachpb" 13 14 import github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" 15 16 import io "io" 17 18 // Reference imports to suppress errors if they are not otherwise used. 19 var _ = proto.Marshal 20 var _ = fmt.Errorf 21 var _ = math.Inf 22 var _ = time.Kitchen 23 24 // This is a compile-time assertion to ensure that this generated file 25 // is compatible with the proto package it is being compiled against. 26 // A compilation error at this line likely means your copy of the 27 // proto package needs to be updated. 28 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 29 30 type RangeLogEventType int32 31 32 const ( 33 // These are lower case to maintain compatibility with how they were 34 // originally stored. 35 // Split is the event type recorded when a range splits. 36 RangeLogEventType_split RangeLogEventType = 0 37 // Merge is the event type recorded when a range merges. 38 RangeLogEventType_merge RangeLogEventType = 3 39 // Add is the event type recorded when a range adds a new replica. 40 RangeLogEventType_add RangeLogEventType = 1 41 // Remove is the event type recorded when a range removed an existing replica. 42 RangeLogEventType_remove RangeLogEventType = 2 43 ) 44 45 var RangeLogEventType_name = map[int32]string{ 46 0: "split", 47 3: "merge", 48 1: "add", 49 2: "remove", 50 } 51 var RangeLogEventType_value = map[string]int32{ 52 "split": 0, 53 "merge": 3, 54 "add": 1, 55 "remove": 2, 56 } 57 58 func (x RangeLogEventType) String() string { 59 return proto.EnumName(RangeLogEventType_name, int32(x)) 60 } 61 func (RangeLogEventType) EnumDescriptor() ([]byte, []int) { 62 return fileDescriptor_log_142242c3cd66101c, []int{0} 63 } 64 65 type RangeLogEvent struct { 66 Timestamp time.Time `protobuf:"bytes,1,opt,name=timestamp,proto3,stdtime" json:"timestamp"` 67 RangeID github_com_cockroachdb_cockroach_pkg_roachpb.RangeID `protobuf:"varint,2,opt,name=range_id,json=rangeId,proto3,casttype=github.com/cockroachdb/cockroach/pkg/roachpb.RangeID" json:"range_id,omitempty"` 68 StoreID github_com_cockroachdb_cockroach_pkg_roachpb.StoreID `protobuf:"varint,3,opt,name=store_id,json=storeId,proto3,casttype=github.com/cockroachdb/cockroach/pkg/roachpb.StoreID" json:"store_id,omitempty"` 69 EventType RangeLogEventType `protobuf:"varint,4,opt,name=event_type,json=eventType,proto3,enum=cockroach.kv.kvserver.storagepb.RangeLogEventType" json:"event_type,omitempty"` 70 OtherRangeID github_com_cockroachdb_cockroach_pkg_roachpb.RangeID `protobuf:"varint,5,opt,name=other_range_id,json=otherRangeId,proto3,casttype=github.com/cockroachdb/cockroach/pkg/roachpb.RangeID" json:"other_range_id,omitempty"` 71 Info *RangeLogEvent_Info `protobuf:"bytes,6,opt,name=info,proto3" json:"info,omitempty"` 72 } 73 74 func (m *RangeLogEvent) Reset() { *m = RangeLogEvent{} } 75 func (m *RangeLogEvent) String() string { return proto.CompactTextString(m) } 76 func (*RangeLogEvent) ProtoMessage() {} 77 func (*RangeLogEvent) Descriptor() ([]byte, []int) { 78 return fileDescriptor_log_142242c3cd66101c, []int{0} 79 } 80 func (m *RangeLogEvent) XXX_Unmarshal(b []byte) error { 81 return m.Unmarshal(b) 82 } 83 func (m *RangeLogEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 84 b = b[:cap(b)] 85 n, err := m.MarshalTo(b) 86 if err != nil { 87 return nil, err 88 } 89 return b[:n], nil 90 } 91 func (dst *RangeLogEvent) XXX_Merge(src proto.Message) { 92 xxx_messageInfo_RangeLogEvent.Merge(dst, src) 93 } 94 func (m *RangeLogEvent) XXX_Size() int { 95 return m.Size() 96 } 97 func (m *RangeLogEvent) XXX_DiscardUnknown() { 98 xxx_messageInfo_RangeLogEvent.DiscardUnknown(m) 99 } 100 101 var xxx_messageInfo_RangeLogEvent proto.InternalMessageInfo 102 103 type RangeLogEvent_Info struct { 104 UpdatedDesc *roachpb.RangeDescriptor `protobuf:"bytes,1,opt,name=updated_desc,json=updatedDesc,proto3" json:"UpdatedDesc,omitempty"` 105 NewDesc *roachpb.RangeDescriptor `protobuf:"bytes,2,opt,name=new_desc,json=newDesc,proto3" json:"NewDesc,omitempty"` 106 RemovedDesc *roachpb.RangeDescriptor `protobuf:"bytes,7,opt,name=removed_desc,json=removedDesc,proto3" json:"RemovedDesc,omitempty"` 107 AddedReplica *roachpb.ReplicaDescriptor `protobuf:"bytes,3,opt,name=added_replica,json=addedReplica,proto3" json:"AddReplica,omitempty"` 108 RemovedReplica *roachpb.ReplicaDescriptor `protobuf:"bytes,4,opt,name=removed_replica,json=removedReplica,proto3" json:"RemovedReplica,omitempty"` 109 Reason RangeLogEventReason `protobuf:"bytes,5,opt,name=reason,proto3,casttype=RangeLogEventReason" json:"Reason,omitempty"` 110 Details string `protobuf:"bytes,6,opt,name=details,proto3" json:"Details,omitempty"` 111 } 112 113 func (m *RangeLogEvent_Info) Reset() { *m = RangeLogEvent_Info{} } 114 func (m *RangeLogEvent_Info) String() string { return proto.CompactTextString(m) } 115 func (*RangeLogEvent_Info) ProtoMessage() {} 116 func (*RangeLogEvent_Info) Descriptor() ([]byte, []int) { 117 return fileDescriptor_log_142242c3cd66101c, []int{0, 0} 118 } 119 func (m *RangeLogEvent_Info) XXX_Unmarshal(b []byte) error { 120 return m.Unmarshal(b) 121 } 122 func (m *RangeLogEvent_Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 123 b = b[:cap(b)] 124 n, err := m.MarshalTo(b) 125 if err != nil { 126 return nil, err 127 } 128 return b[:n], nil 129 } 130 func (dst *RangeLogEvent_Info) XXX_Merge(src proto.Message) { 131 xxx_messageInfo_RangeLogEvent_Info.Merge(dst, src) 132 } 133 func (m *RangeLogEvent_Info) XXX_Size() int { 134 return m.Size() 135 } 136 func (m *RangeLogEvent_Info) XXX_DiscardUnknown() { 137 xxx_messageInfo_RangeLogEvent_Info.DiscardUnknown(m) 138 } 139 140 var xxx_messageInfo_RangeLogEvent_Info proto.InternalMessageInfo 141 142 func init() { 143 proto.RegisterType((*RangeLogEvent)(nil), "cockroach.kv.kvserver.storagepb.RangeLogEvent") 144 proto.RegisterType((*RangeLogEvent_Info)(nil), "cockroach.kv.kvserver.storagepb.RangeLogEvent.Info") 145 proto.RegisterEnum("cockroach.kv.kvserver.storagepb.RangeLogEventType", RangeLogEventType_name, RangeLogEventType_value) 146 } 147 func (m *RangeLogEvent) Marshal() (dAtA []byte, err error) { 148 size := m.Size() 149 dAtA = make([]byte, size) 150 n, err := m.MarshalTo(dAtA) 151 if err != nil { 152 return nil, err 153 } 154 return dAtA[:n], nil 155 } 156 157 func (m *RangeLogEvent) MarshalTo(dAtA []byte) (int, error) { 158 var i int 159 _ = i 160 var l int 161 _ = l 162 dAtA[i] = 0xa 163 i++ 164 i = encodeVarintLog(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp))) 165 n1, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Timestamp, dAtA[i:]) 166 if err != nil { 167 return 0, err 168 } 169 i += n1 170 if m.RangeID != 0 { 171 dAtA[i] = 0x10 172 i++ 173 i = encodeVarintLog(dAtA, i, uint64(m.RangeID)) 174 } 175 if m.StoreID != 0 { 176 dAtA[i] = 0x18 177 i++ 178 i = encodeVarintLog(dAtA, i, uint64(m.StoreID)) 179 } 180 if m.EventType != 0 { 181 dAtA[i] = 0x20 182 i++ 183 i = encodeVarintLog(dAtA, i, uint64(m.EventType)) 184 } 185 if m.OtherRangeID != 0 { 186 dAtA[i] = 0x28 187 i++ 188 i = encodeVarintLog(dAtA, i, uint64(m.OtherRangeID)) 189 } 190 if m.Info != nil { 191 dAtA[i] = 0x32 192 i++ 193 i = encodeVarintLog(dAtA, i, uint64(m.Info.Size())) 194 n2, err := m.Info.MarshalTo(dAtA[i:]) 195 if err != nil { 196 return 0, err 197 } 198 i += n2 199 } 200 return i, nil 201 } 202 203 func (m *RangeLogEvent_Info) Marshal() (dAtA []byte, err error) { 204 size := m.Size() 205 dAtA = make([]byte, size) 206 n, err := m.MarshalTo(dAtA) 207 if err != nil { 208 return nil, err 209 } 210 return dAtA[:n], nil 211 } 212 213 func (m *RangeLogEvent_Info) MarshalTo(dAtA []byte) (int, error) { 214 var i int 215 _ = i 216 var l int 217 _ = l 218 if m.UpdatedDesc != nil { 219 dAtA[i] = 0xa 220 i++ 221 i = encodeVarintLog(dAtA, i, uint64(m.UpdatedDesc.Size())) 222 n3, err := m.UpdatedDesc.MarshalTo(dAtA[i:]) 223 if err != nil { 224 return 0, err 225 } 226 i += n3 227 } 228 if m.NewDesc != nil { 229 dAtA[i] = 0x12 230 i++ 231 i = encodeVarintLog(dAtA, i, uint64(m.NewDesc.Size())) 232 n4, err := m.NewDesc.MarshalTo(dAtA[i:]) 233 if err != nil { 234 return 0, err 235 } 236 i += n4 237 } 238 if m.AddedReplica != nil { 239 dAtA[i] = 0x1a 240 i++ 241 i = encodeVarintLog(dAtA, i, uint64(m.AddedReplica.Size())) 242 n5, err := m.AddedReplica.MarshalTo(dAtA[i:]) 243 if err != nil { 244 return 0, err 245 } 246 i += n5 247 } 248 if m.RemovedReplica != nil { 249 dAtA[i] = 0x22 250 i++ 251 i = encodeVarintLog(dAtA, i, uint64(m.RemovedReplica.Size())) 252 n6, err := m.RemovedReplica.MarshalTo(dAtA[i:]) 253 if err != nil { 254 return 0, err 255 } 256 i += n6 257 } 258 if len(m.Reason) > 0 { 259 dAtA[i] = 0x2a 260 i++ 261 i = encodeVarintLog(dAtA, i, uint64(len(m.Reason))) 262 i += copy(dAtA[i:], m.Reason) 263 } 264 if len(m.Details) > 0 { 265 dAtA[i] = 0x32 266 i++ 267 i = encodeVarintLog(dAtA, i, uint64(len(m.Details))) 268 i += copy(dAtA[i:], m.Details) 269 } 270 if m.RemovedDesc != nil { 271 dAtA[i] = 0x3a 272 i++ 273 i = encodeVarintLog(dAtA, i, uint64(m.RemovedDesc.Size())) 274 n7, err := m.RemovedDesc.MarshalTo(dAtA[i:]) 275 if err != nil { 276 return 0, err 277 } 278 i += n7 279 } 280 return i, nil 281 } 282 283 func encodeVarintLog(dAtA []byte, offset int, v uint64) int { 284 for v >= 1<<7 { 285 dAtA[offset] = uint8(v&0x7f | 0x80) 286 v >>= 7 287 offset++ 288 } 289 dAtA[offset] = uint8(v) 290 return offset + 1 291 } 292 func (m *RangeLogEvent) Size() (n int) { 293 if m == nil { 294 return 0 295 } 296 var l int 297 _ = l 298 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp) 299 n += 1 + l + sovLog(uint64(l)) 300 if m.RangeID != 0 { 301 n += 1 + sovLog(uint64(m.RangeID)) 302 } 303 if m.StoreID != 0 { 304 n += 1 + sovLog(uint64(m.StoreID)) 305 } 306 if m.EventType != 0 { 307 n += 1 + sovLog(uint64(m.EventType)) 308 } 309 if m.OtherRangeID != 0 { 310 n += 1 + sovLog(uint64(m.OtherRangeID)) 311 } 312 if m.Info != nil { 313 l = m.Info.Size() 314 n += 1 + l + sovLog(uint64(l)) 315 } 316 return n 317 } 318 319 func (m *RangeLogEvent_Info) Size() (n int) { 320 if m == nil { 321 return 0 322 } 323 var l int 324 _ = l 325 if m.UpdatedDesc != nil { 326 l = m.UpdatedDesc.Size() 327 n += 1 + l + sovLog(uint64(l)) 328 } 329 if m.NewDesc != nil { 330 l = m.NewDesc.Size() 331 n += 1 + l + sovLog(uint64(l)) 332 } 333 if m.AddedReplica != nil { 334 l = m.AddedReplica.Size() 335 n += 1 + l + sovLog(uint64(l)) 336 } 337 if m.RemovedReplica != nil { 338 l = m.RemovedReplica.Size() 339 n += 1 + l + sovLog(uint64(l)) 340 } 341 l = len(m.Reason) 342 if l > 0 { 343 n += 1 + l + sovLog(uint64(l)) 344 } 345 l = len(m.Details) 346 if l > 0 { 347 n += 1 + l + sovLog(uint64(l)) 348 } 349 if m.RemovedDesc != nil { 350 l = m.RemovedDesc.Size() 351 n += 1 + l + sovLog(uint64(l)) 352 } 353 return n 354 } 355 356 func sovLog(x uint64) (n int) { 357 for { 358 n++ 359 x >>= 7 360 if x == 0 { 361 break 362 } 363 } 364 return n 365 } 366 func sozLog(x uint64) (n int) { 367 return sovLog(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 368 } 369 func (m *RangeLogEvent) Unmarshal(dAtA []byte) error { 370 l := len(dAtA) 371 iNdEx := 0 372 for iNdEx < l { 373 preIndex := iNdEx 374 var wire uint64 375 for shift := uint(0); ; shift += 7 { 376 if shift >= 64 { 377 return ErrIntOverflowLog 378 } 379 if iNdEx >= l { 380 return io.ErrUnexpectedEOF 381 } 382 b := dAtA[iNdEx] 383 iNdEx++ 384 wire |= (uint64(b) & 0x7F) << shift 385 if b < 0x80 { 386 break 387 } 388 } 389 fieldNum := int32(wire >> 3) 390 wireType := int(wire & 0x7) 391 if wireType == 4 { 392 return fmt.Errorf("proto: RangeLogEvent: wiretype end group for non-group") 393 } 394 if fieldNum <= 0 { 395 return fmt.Errorf("proto: RangeLogEvent: illegal tag %d (wire type %d)", fieldNum, wire) 396 } 397 switch fieldNum { 398 case 1: 399 if wireType != 2 { 400 return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) 401 } 402 var msglen int 403 for shift := uint(0); ; shift += 7 { 404 if shift >= 64 { 405 return ErrIntOverflowLog 406 } 407 if iNdEx >= l { 408 return io.ErrUnexpectedEOF 409 } 410 b := dAtA[iNdEx] 411 iNdEx++ 412 msglen |= (int(b) & 0x7F) << shift 413 if b < 0x80 { 414 break 415 } 416 } 417 if msglen < 0 { 418 return ErrInvalidLengthLog 419 } 420 postIndex := iNdEx + msglen 421 if postIndex > l { 422 return io.ErrUnexpectedEOF 423 } 424 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { 425 return err 426 } 427 iNdEx = postIndex 428 case 2: 429 if wireType != 0 { 430 return fmt.Errorf("proto: wrong wireType = %d for field RangeID", wireType) 431 } 432 m.RangeID = 0 433 for shift := uint(0); ; shift += 7 { 434 if shift >= 64 { 435 return ErrIntOverflowLog 436 } 437 if iNdEx >= l { 438 return io.ErrUnexpectedEOF 439 } 440 b := dAtA[iNdEx] 441 iNdEx++ 442 m.RangeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift 443 if b < 0x80 { 444 break 445 } 446 } 447 case 3: 448 if wireType != 0 { 449 return fmt.Errorf("proto: wrong wireType = %d for field StoreID", wireType) 450 } 451 m.StoreID = 0 452 for shift := uint(0); ; shift += 7 { 453 if shift >= 64 { 454 return ErrIntOverflowLog 455 } 456 if iNdEx >= l { 457 return io.ErrUnexpectedEOF 458 } 459 b := dAtA[iNdEx] 460 iNdEx++ 461 m.StoreID |= (github_com_cockroachdb_cockroach_pkg_roachpb.StoreID(b) & 0x7F) << shift 462 if b < 0x80 { 463 break 464 } 465 } 466 case 4: 467 if wireType != 0 { 468 return fmt.Errorf("proto: wrong wireType = %d for field EventType", wireType) 469 } 470 m.EventType = 0 471 for shift := uint(0); ; shift += 7 { 472 if shift >= 64 { 473 return ErrIntOverflowLog 474 } 475 if iNdEx >= l { 476 return io.ErrUnexpectedEOF 477 } 478 b := dAtA[iNdEx] 479 iNdEx++ 480 m.EventType |= (RangeLogEventType(b) & 0x7F) << shift 481 if b < 0x80 { 482 break 483 } 484 } 485 case 5: 486 if wireType != 0 { 487 return fmt.Errorf("proto: wrong wireType = %d for field OtherRangeID", wireType) 488 } 489 m.OtherRangeID = 0 490 for shift := uint(0); ; shift += 7 { 491 if shift >= 64 { 492 return ErrIntOverflowLog 493 } 494 if iNdEx >= l { 495 return io.ErrUnexpectedEOF 496 } 497 b := dAtA[iNdEx] 498 iNdEx++ 499 m.OtherRangeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift 500 if b < 0x80 { 501 break 502 } 503 } 504 case 6: 505 if wireType != 2 { 506 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 507 } 508 var msglen int 509 for shift := uint(0); ; shift += 7 { 510 if shift >= 64 { 511 return ErrIntOverflowLog 512 } 513 if iNdEx >= l { 514 return io.ErrUnexpectedEOF 515 } 516 b := dAtA[iNdEx] 517 iNdEx++ 518 msglen |= (int(b) & 0x7F) << shift 519 if b < 0x80 { 520 break 521 } 522 } 523 if msglen < 0 { 524 return ErrInvalidLengthLog 525 } 526 postIndex := iNdEx + msglen 527 if postIndex > l { 528 return io.ErrUnexpectedEOF 529 } 530 if m.Info == nil { 531 m.Info = &RangeLogEvent_Info{} 532 } 533 if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 534 return err 535 } 536 iNdEx = postIndex 537 default: 538 iNdEx = preIndex 539 skippy, err := skipLog(dAtA[iNdEx:]) 540 if err != nil { 541 return err 542 } 543 if skippy < 0 { 544 return ErrInvalidLengthLog 545 } 546 if (iNdEx + skippy) > l { 547 return io.ErrUnexpectedEOF 548 } 549 iNdEx += skippy 550 } 551 } 552 553 if iNdEx > l { 554 return io.ErrUnexpectedEOF 555 } 556 return nil 557 } 558 func (m *RangeLogEvent_Info) Unmarshal(dAtA []byte) error { 559 l := len(dAtA) 560 iNdEx := 0 561 for iNdEx < l { 562 preIndex := iNdEx 563 var wire uint64 564 for shift := uint(0); ; shift += 7 { 565 if shift >= 64 { 566 return ErrIntOverflowLog 567 } 568 if iNdEx >= l { 569 return io.ErrUnexpectedEOF 570 } 571 b := dAtA[iNdEx] 572 iNdEx++ 573 wire |= (uint64(b) & 0x7F) << shift 574 if b < 0x80 { 575 break 576 } 577 } 578 fieldNum := int32(wire >> 3) 579 wireType := int(wire & 0x7) 580 if wireType == 4 { 581 return fmt.Errorf("proto: Info: wiretype end group for non-group") 582 } 583 if fieldNum <= 0 { 584 return fmt.Errorf("proto: Info: illegal tag %d (wire type %d)", fieldNum, wire) 585 } 586 switch fieldNum { 587 case 1: 588 if wireType != 2 { 589 return fmt.Errorf("proto: wrong wireType = %d for field UpdatedDesc", wireType) 590 } 591 var msglen int 592 for shift := uint(0); ; shift += 7 { 593 if shift >= 64 { 594 return ErrIntOverflowLog 595 } 596 if iNdEx >= l { 597 return io.ErrUnexpectedEOF 598 } 599 b := dAtA[iNdEx] 600 iNdEx++ 601 msglen |= (int(b) & 0x7F) << shift 602 if b < 0x80 { 603 break 604 } 605 } 606 if msglen < 0 { 607 return ErrInvalidLengthLog 608 } 609 postIndex := iNdEx + msglen 610 if postIndex > l { 611 return io.ErrUnexpectedEOF 612 } 613 if m.UpdatedDesc == nil { 614 m.UpdatedDesc = &roachpb.RangeDescriptor{} 615 } 616 if err := m.UpdatedDesc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 617 return err 618 } 619 iNdEx = postIndex 620 case 2: 621 if wireType != 2 { 622 return fmt.Errorf("proto: wrong wireType = %d for field NewDesc", wireType) 623 } 624 var msglen int 625 for shift := uint(0); ; shift += 7 { 626 if shift >= 64 { 627 return ErrIntOverflowLog 628 } 629 if iNdEx >= l { 630 return io.ErrUnexpectedEOF 631 } 632 b := dAtA[iNdEx] 633 iNdEx++ 634 msglen |= (int(b) & 0x7F) << shift 635 if b < 0x80 { 636 break 637 } 638 } 639 if msglen < 0 { 640 return ErrInvalidLengthLog 641 } 642 postIndex := iNdEx + msglen 643 if postIndex > l { 644 return io.ErrUnexpectedEOF 645 } 646 if m.NewDesc == nil { 647 m.NewDesc = &roachpb.RangeDescriptor{} 648 } 649 if err := m.NewDesc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 650 return err 651 } 652 iNdEx = postIndex 653 case 3: 654 if wireType != 2 { 655 return fmt.Errorf("proto: wrong wireType = %d for field AddedReplica", wireType) 656 } 657 var msglen int 658 for shift := uint(0); ; shift += 7 { 659 if shift >= 64 { 660 return ErrIntOverflowLog 661 } 662 if iNdEx >= l { 663 return io.ErrUnexpectedEOF 664 } 665 b := dAtA[iNdEx] 666 iNdEx++ 667 msglen |= (int(b) & 0x7F) << shift 668 if b < 0x80 { 669 break 670 } 671 } 672 if msglen < 0 { 673 return ErrInvalidLengthLog 674 } 675 postIndex := iNdEx + msglen 676 if postIndex > l { 677 return io.ErrUnexpectedEOF 678 } 679 if m.AddedReplica == nil { 680 m.AddedReplica = &roachpb.ReplicaDescriptor{} 681 } 682 if err := m.AddedReplica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 683 return err 684 } 685 iNdEx = postIndex 686 case 4: 687 if wireType != 2 { 688 return fmt.Errorf("proto: wrong wireType = %d for field RemovedReplica", wireType) 689 } 690 var msglen int 691 for shift := uint(0); ; shift += 7 { 692 if shift >= 64 { 693 return ErrIntOverflowLog 694 } 695 if iNdEx >= l { 696 return io.ErrUnexpectedEOF 697 } 698 b := dAtA[iNdEx] 699 iNdEx++ 700 msglen |= (int(b) & 0x7F) << shift 701 if b < 0x80 { 702 break 703 } 704 } 705 if msglen < 0 { 706 return ErrInvalidLengthLog 707 } 708 postIndex := iNdEx + msglen 709 if postIndex > l { 710 return io.ErrUnexpectedEOF 711 } 712 if m.RemovedReplica == nil { 713 m.RemovedReplica = &roachpb.ReplicaDescriptor{} 714 } 715 if err := m.RemovedReplica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 716 return err 717 } 718 iNdEx = postIndex 719 case 5: 720 if wireType != 2 { 721 return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) 722 } 723 var stringLen uint64 724 for shift := uint(0); ; shift += 7 { 725 if shift >= 64 { 726 return ErrIntOverflowLog 727 } 728 if iNdEx >= l { 729 return io.ErrUnexpectedEOF 730 } 731 b := dAtA[iNdEx] 732 iNdEx++ 733 stringLen |= (uint64(b) & 0x7F) << shift 734 if b < 0x80 { 735 break 736 } 737 } 738 intStringLen := int(stringLen) 739 if intStringLen < 0 { 740 return ErrInvalidLengthLog 741 } 742 postIndex := iNdEx + intStringLen 743 if postIndex > l { 744 return io.ErrUnexpectedEOF 745 } 746 m.Reason = RangeLogEventReason(dAtA[iNdEx:postIndex]) 747 iNdEx = postIndex 748 case 6: 749 if wireType != 2 { 750 return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) 751 } 752 var stringLen uint64 753 for shift := uint(0); ; shift += 7 { 754 if shift >= 64 { 755 return ErrIntOverflowLog 756 } 757 if iNdEx >= l { 758 return io.ErrUnexpectedEOF 759 } 760 b := dAtA[iNdEx] 761 iNdEx++ 762 stringLen |= (uint64(b) & 0x7F) << shift 763 if b < 0x80 { 764 break 765 } 766 } 767 intStringLen := int(stringLen) 768 if intStringLen < 0 { 769 return ErrInvalidLengthLog 770 } 771 postIndex := iNdEx + intStringLen 772 if postIndex > l { 773 return io.ErrUnexpectedEOF 774 } 775 m.Details = string(dAtA[iNdEx:postIndex]) 776 iNdEx = postIndex 777 case 7: 778 if wireType != 2 { 779 return fmt.Errorf("proto: wrong wireType = %d for field RemovedDesc", wireType) 780 } 781 var msglen int 782 for shift := uint(0); ; shift += 7 { 783 if shift >= 64 { 784 return ErrIntOverflowLog 785 } 786 if iNdEx >= l { 787 return io.ErrUnexpectedEOF 788 } 789 b := dAtA[iNdEx] 790 iNdEx++ 791 msglen |= (int(b) & 0x7F) << shift 792 if b < 0x80 { 793 break 794 } 795 } 796 if msglen < 0 { 797 return ErrInvalidLengthLog 798 } 799 postIndex := iNdEx + msglen 800 if postIndex > l { 801 return io.ErrUnexpectedEOF 802 } 803 if m.RemovedDesc == nil { 804 m.RemovedDesc = &roachpb.RangeDescriptor{} 805 } 806 if err := m.RemovedDesc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 807 return err 808 } 809 iNdEx = postIndex 810 default: 811 iNdEx = preIndex 812 skippy, err := skipLog(dAtA[iNdEx:]) 813 if err != nil { 814 return err 815 } 816 if skippy < 0 { 817 return ErrInvalidLengthLog 818 } 819 if (iNdEx + skippy) > l { 820 return io.ErrUnexpectedEOF 821 } 822 iNdEx += skippy 823 } 824 } 825 826 if iNdEx > l { 827 return io.ErrUnexpectedEOF 828 } 829 return nil 830 } 831 func skipLog(dAtA []byte) (n int, err error) { 832 l := len(dAtA) 833 iNdEx := 0 834 for iNdEx < l { 835 var wire uint64 836 for shift := uint(0); ; shift += 7 { 837 if shift >= 64 { 838 return 0, ErrIntOverflowLog 839 } 840 if iNdEx >= l { 841 return 0, io.ErrUnexpectedEOF 842 } 843 b := dAtA[iNdEx] 844 iNdEx++ 845 wire |= (uint64(b) & 0x7F) << shift 846 if b < 0x80 { 847 break 848 } 849 } 850 wireType := int(wire & 0x7) 851 switch wireType { 852 case 0: 853 for shift := uint(0); ; shift += 7 { 854 if shift >= 64 { 855 return 0, ErrIntOverflowLog 856 } 857 if iNdEx >= l { 858 return 0, io.ErrUnexpectedEOF 859 } 860 iNdEx++ 861 if dAtA[iNdEx-1] < 0x80 { 862 break 863 } 864 } 865 return iNdEx, nil 866 case 1: 867 iNdEx += 8 868 return iNdEx, nil 869 case 2: 870 var length int 871 for shift := uint(0); ; shift += 7 { 872 if shift >= 64 { 873 return 0, ErrIntOverflowLog 874 } 875 if iNdEx >= l { 876 return 0, io.ErrUnexpectedEOF 877 } 878 b := dAtA[iNdEx] 879 iNdEx++ 880 length |= (int(b) & 0x7F) << shift 881 if b < 0x80 { 882 break 883 } 884 } 885 iNdEx += length 886 if length < 0 { 887 return 0, ErrInvalidLengthLog 888 } 889 return iNdEx, nil 890 case 3: 891 for { 892 var innerWire uint64 893 var start int = iNdEx 894 for shift := uint(0); ; shift += 7 { 895 if shift >= 64 { 896 return 0, ErrIntOverflowLog 897 } 898 if iNdEx >= l { 899 return 0, io.ErrUnexpectedEOF 900 } 901 b := dAtA[iNdEx] 902 iNdEx++ 903 innerWire |= (uint64(b) & 0x7F) << shift 904 if b < 0x80 { 905 break 906 } 907 } 908 innerWireType := int(innerWire & 0x7) 909 if innerWireType == 4 { 910 break 911 } 912 next, err := skipLog(dAtA[start:]) 913 if err != nil { 914 return 0, err 915 } 916 iNdEx = start + next 917 } 918 return iNdEx, nil 919 case 4: 920 return iNdEx, nil 921 case 5: 922 iNdEx += 4 923 return iNdEx, nil 924 default: 925 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 926 } 927 } 928 panic("unreachable") 929 } 930 931 var ( 932 ErrInvalidLengthLog = fmt.Errorf("proto: negative length found during unmarshaling") 933 ErrIntOverflowLog = fmt.Errorf("proto: integer overflow") 934 ) 935 936 func init() { 937 proto.RegisterFile("kv/kvserver/kvserverpb/log.proto", fileDescriptor_log_142242c3cd66101c) 938 } 939 940 var fileDescriptor_log_142242c3cd66101c = []byte{ 941 // 656 bytes of a gzipped FileDescriptorProto 942 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xc1, 0x6e, 0xd3, 0x40, 943 0x10, 0x86, 0xe3, 0x26, 0x6d, 0x9a, 0x6d, 0x5a, 0xd2, 0xa5, 0x45, 0x21, 0x42, 0x76, 0x54, 0x71, 944 0x88, 0xa0, 0xb2, 0xa5, 0x94, 0x33, 0x12, 0x69, 0x11, 0x44, 0x42, 0x20, 0x4c, 0xb9, 0x70, 0x20, 945 0xd8, 0xde, 0xa9, 0x6b, 0x25, 0xf6, 0xae, 0xd6, 0x9b, 0x54, 0x7d, 0x05, 0x4e, 0x7d, 0xac, 0x1e, 946 0x7b, 0xec, 0xc9, 0x40, 0x7a, 0x41, 0x79, 0x84, 0x9e, 0xd0, 0xae, 0x9d, 0x38, 0x69, 0x91, 0xa0, 947 0x70, 0x1b, 0xff, 0x3b, 0xf3, 0xad, 0xe7, 0x9f, 0xb1, 0x51, 0xb3, 0x3f, 0xb2, 0xfa, 0xa3, 0x18, 948 0xf8, 0x08, 0xf8, 0x2c, 0x60, 0xae, 0x35, 0xa0, 0xbe, 0xc9, 0x38, 0x15, 0x14, 0x1b, 0x1e, 0xf5, 949 0xfa, 0x9c, 0x3a, 0xde, 0xb1, 0xd9, 0x1f, 0x99, 0xd3, 0x14, 0x33, 0x16, 0x94, 0x3b, 0x3e, 0x30, 950 0xb7, 0xf1, 0x40, 0x1d, 0x32, 0xd7, 0x0a, 0x41, 0x38, 0xc4, 0x11, 0x4e, 0x5a, 0xd8, 0xd8, 0xf2, 951 0xa9, 0x4f, 0x55, 0x68, 0xc9, 0x28, 0x53, 0x0d, 0x9f, 0x52, 0x7f, 0x00, 0x96, 0x7a, 0x72, 0x87, 952 0x47, 0x96, 0x08, 0x42, 0x88, 0x85, 0x13, 0xb2, 0x34, 0x61, 0xe7, 0x6b, 0x05, 0xad, 0xdb, 0x4e, 953 0xe4, 0xc3, 0x1b, 0xea, 0xbf, 0x1c, 0x41, 0x24, 0x70, 0x07, 0x55, 0x66, 0x49, 0x75, 0xad, 0xa9, 954 0xb5, 0xd6, 0xda, 0x0d, 0x33, 0xc5, 0x98, 0x53, 0x8c, 0x79, 0x38, 0xcd, 0xe8, 0xac, 0x9e, 0x27, 955 0x46, 0xe1, 0xec, 0x9b, 0xa1, 0xd9, 0x79, 0x19, 0xfe, 0x8c, 0x56, 0xb9, 0x84, 0xf6, 0x02, 0x52, 956 0x5f, 0x6a, 0x6a, 0xad, 0x62, 0x67, 0x7f, 0x9c, 0x18, 0x65, 0x75, 0x51, 0xf7, 0xe0, 0x3a, 0x31, 957 0x9e, 0xf9, 0x81, 0x38, 0x1e, 0xba, 0xa6, 0x47, 0x43, 0x6b, 0xd6, 0x31, 0x71, 0xf3, 0xd8, 0x62, 958 0x7d, 0xdf, 0xca, 0x5a, 0x35, 0xb3, 0x3a, 0xbb, 0xac, 0xa0, 0x5d, 0x22, 0xf9, 0xd2, 0x11, 0xc5, 959 0x2f, 0x36, 0xb5, 0xd6, 0x72, 0xca, 0xff, 0x20, 0xb5, 0x7f, 0xe0, 0x67, 0x75, 0x76, 0x59, 0x41, 960 0xbb, 0x04, 0xbf, 0x47, 0x08, 0xa4, 0x19, 0x3d, 0x71, 0xca, 0xa0, 0x5e, 0x6a, 0x6a, 0xad, 0x8d, 961 0x76, 0xdb, 0xfc, 0xc3, 0x68, 0xcc, 0x05, 0x1f, 0x0f, 0x4f, 0x19, 0xd8, 0x15, 0x98, 0x86, 0x38, 962 0x42, 0x1b, 0x54, 0x1c, 0x03, 0xef, 0xcd, 0x8c, 0x59, 0x56, 0xc6, 0xbc, 0x1e, 0x27, 0x46, 0xf5, 963 0x9d, 0x3c, 0xf9, 0x5f, 0x77, 0xaa, 0x34, 0xa7, 0x10, 0xfc, 0x0a, 0x95, 0x82, 0xe8, 0x88, 0xd6, 964 0x57, 0xd4, 0x04, 0xf7, 0xee, 0xf6, 0xf2, 0x66, 0x37, 0x3a, 0xa2, 0xb6, 0x02, 0x34, 0x7e, 0x96, 965 0x50, 0x49, 0x3e, 0xe2, 0x2f, 0xa8, 0x3a, 0x64, 0xc4, 0x11, 0x40, 0x7a, 0x04, 0x62, 0x2f, 0xdb, 966 0x8d, 0x9d, 0x39, 0xf2, 0xc2, 0x1b, 0x1d, 0x40, 0xec, 0xf1, 0x80, 0x09, 0xca, 0x3b, 0x0f, 0x27, 967 0x89, 0xb1, 0xfd, 0x31, 0xad, 0x95, 0xf2, 0x2e, 0x0d, 0x03, 0x01, 0x21, 0x13, 0xa7, 0xf6, 0xda, 968 0x30, 0x97, 0xf1, 0x21, 0x5a, 0x8d, 0xe0, 0x24, 0xa5, 0x2f, 0xfd, 0x35, 0x7d, 0x7b, 0x92, 0x18, 969 0x9b, 0x6f, 0xe1, 0xe4, 0x06, 0xb9, 0x1c, 0xa5, 0x12, 0xf6, 0xd0, 0xba, 0x43, 0x08, 0x90, 0x1e, 970 0x07, 0x36, 0x08, 0x3c, 0x47, 0x6d, 0xcc, 0x5a, 0xfb, 0xf1, 0xef, 0xd0, 0x69, 0xc6, 0x1c, 0xbc, 971 0x3e, 0x49, 0x8c, 0xad, 0x17, 0x84, 0x64, 0x27, 0x73, 0xfc, 0xaa, 0x82, 0x66, 0x3a, 0xee, 0xa3, 972 0x7b, 0x1c, 0x42, 0x3a, 0x9a, 0xbb, 0xa6, 0x74, 0x87, 0x6b, 0x1e, 0x4d, 0x12, 0xa3, 0x6e, 0xa7, 973 0x80, 0xdb, 0x57, 0x6d, 0xf0, 0x85, 0x13, 0xbc, 0x8f, 0x56, 0x38, 0x38, 0x31, 0x8d, 0xd4, 0x0e, 974 0x55, 0x3a, 0x4f, 0x27, 0x89, 0x51, 0xb3, 0x95, 0x92, 0x57, 0x5d, 0x27, 0xc6, 0xfd, 0x85, 0xa1, 975 0xa6, 0x09, 0x76, 0x56, 0x8a, 0x2d, 0x54, 0x26, 0x20, 0x9c, 0x60, 0x10, 0xab, 0x1d, 0xa9, 0xa4, 976 0x3e, 0x1e, 0xa4, 0xd2, 0xbc, 0x8f, 0x59, 0x96, 0x9c, 0xff, 0xb4, 0x45, 0x35, 0xa1, 0xf2, 0xdd, 977 0xe6, 0x9f, 0x75, 0x77, 0x73, 0xfe, 0x3c, 0x97, 0x9f, 0x3c, 0x47, 0x9b, 0xb7, 0xbe, 0x21, 0x5c, 978 0x41, 0xcb, 0x31, 0x1b, 0x04, 0xa2, 0x56, 0x90, 0x61, 0x08, 0xdc, 0x87, 0x5a, 0x11, 0x97, 0x51, 979 0xd1, 0x21, 0xa4, 0xa6, 0x61, 0x24, 0xbd, 0x90, 0x88, 0xda, 0x52, 0x67, 0xf7, 0xfc, 0x87, 0x5e, 980 0x38, 0x1f, 0xeb, 0xda, 0xc5, 0x58, 0xd7, 0x2e, 0xc7, 0xba, 0xf6, 0x7d, 0xac, 0x6b, 0x67, 0x57, 981 0x7a, 0xe1, 0xe2, 0x4a, 0x2f, 0x5c, 0x5e, 0xe9, 0x85, 0x4f, 0x28, 0xff, 0xe9, 0xba, 0x2b, 0xea, 982 0x6f, 0xb6, 0xf7, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x03, 0x5b, 0x91, 0xce, 0x95, 0x05, 0x00, 0x00, 983 }