github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/kv/kvserver/api.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: kv/kvserver/api.proto 3 4 package kvserver 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 import enginepb "github.com/cockroachdb/cockroach/pkg/storage/enginepb" 11 12 import github_com_cockroachdb_cockroach_pkg_roachpb "github.com/cockroachdb/cockroach/pkg/roachpb" 13 import github_com_cockroachdb_cockroach_pkg_util_uuid "github.com/cockroachdb/cockroach/pkg/util/uuid" 14 15 import io "io" 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package 27 28 // StoreRequestHeader locates a Store on a Node. 29 type StoreRequestHeader struct { 30 NodeID github_com_cockroachdb_cockroach_pkg_roachpb.NodeID `protobuf:"varint,1,opt,name=node_id,json=nodeId,proto3,casttype=github.com/cockroachdb/cockroach/pkg/roachpb.NodeID" json:"node_id,omitempty"` 31 StoreID github_com_cockroachdb_cockroach_pkg_roachpb.StoreID `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3,casttype=github.com/cockroachdb/cockroach/pkg/roachpb.StoreID" json:"store_id,omitempty"` 32 } 33 34 func (m *StoreRequestHeader) Reset() { *m = StoreRequestHeader{} } 35 func (m *StoreRequestHeader) String() string { return proto.CompactTextString(m) } 36 func (*StoreRequestHeader) ProtoMessage() {} 37 func (*StoreRequestHeader) Descriptor() ([]byte, []int) { 38 return fileDescriptor_api_cef23d12e9246cb3, []int{0} 39 } 40 func (m *StoreRequestHeader) XXX_Unmarshal(b []byte) error { 41 return m.Unmarshal(b) 42 } 43 func (m *StoreRequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 b = b[:cap(b)] 45 n, err := m.MarshalTo(b) 46 if err != nil { 47 return nil, err 48 } 49 return b[:n], nil 50 } 51 func (dst *StoreRequestHeader) XXX_Merge(src proto.Message) { 52 xxx_messageInfo_StoreRequestHeader.Merge(dst, src) 53 } 54 func (m *StoreRequestHeader) XXX_Size() int { 55 return m.Size() 56 } 57 func (m *StoreRequestHeader) XXX_DiscardUnknown() { 58 xxx_messageInfo_StoreRequestHeader.DiscardUnknown(m) 59 } 60 61 var xxx_messageInfo_StoreRequestHeader proto.InternalMessageInfo 62 63 // A CollectChecksumRequest asks the addressed replica for the result of a 64 // roachpb.ComputeChecksumRequest. 65 type CollectChecksumRequest struct { 66 StoreRequestHeader `protobuf:"bytes,1,opt,name=header,proto3,embedded=header" json:"header"` 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 // checksum_id identifies the corresponding roachpb.ComputeChecksumRequest. 69 ChecksumID github_com_cockroachdb_cockroach_pkg_util_uuid.UUID `protobuf:"bytes,3,opt,name=checksum_id,json=checksumId,proto3,customtype=github.com/cockroachdb/cockroach/pkg/util/uuid.UUID" json:"checksum_id"` 70 Checksum []byte `protobuf:"bytes,4,opt,name=checksum,proto3" json:"checksum,omitempty"` 71 } 72 73 func (m *CollectChecksumRequest) Reset() { *m = CollectChecksumRequest{} } 74 func (m *CollectChecksumRequest) String() string { return proto.CompactTextString(m) } 75 func (*CollectChecksumRequest) ProtoMessage() {} 76 func (*CollectChecksumRequest) Descriptor() ([]byte, []int) { 77 return fileDescriptor_api_cef23d12e9246cb3, []int{1} 78 } 79 func (m *CollectChecksumRequest) XXX_Unmarshal(b []byte) error { 80 return m.Unmarshal(b) 81 } 82 func (m *CollectChecksumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 83 b = b[:cap(b)] 84 n, err := m.MarshalTo(b) 85 if err != nil { 86 return nil, err 87 } 88 return b[:n], nil 89 } 90 func (dst *CollectChecksumRequest) XXX_Merge(src proto.Message) { 91 xxx_messageInfo_CollectChecksumRequest.Merge(dst, src) 92 } 93 func (m *CollectChecksumRequest) XXX_Size() int { 94 return m.Size() 95 } 96 func (m *CollectChecksumRequest) XXX_DiscardUnknown() { 97 xxx_messageInfo_CollectChecksumRequest.DiscardUnknown(m) 98 } 99 100 var xxx_messageInfo_CollectChecksumRequest proto.InternalMessageInfo 101 102 type CollectChecksumResponse struct { 103 // The checksum is the sha512 hash of the requested computation. It is empty 104 // if the computation failed. 105 Checksum []byte `protobuf:"bytes,1,opt,name=checksum,proto3" json:"checksum,omitempty"` 106 // snapshot is set if the roachpb.ComputeChecksumRequest had snapshot = true 107 // and the response checksum is different from the request checksum. 108 // 109 // TODO(tschottdorf): with larger ranges, this is no longer tenable. 110 // See https://github.com/cockroachdb/cockroach/issues/21128. 111 Snapshot *roachpb.RaftSnapshotData `protobuf:"bytes,2,opt,name=snapshot,proto3" json:"snapshot,omitempty"` 112 // delta carries the stats of the range minus the recomputed stats. 113 Delta enginepb.MVCCStatsDelta `protobuf:"bytes,3,opt,name=delta,proto3" json:"delta"` 114 // persisted carries the persisted stats of the replica. 115 Persisted enginepb.MVCCStats `protobuf:"bytes,4,opt,name=persisted,proto3" json:"persisted"` 116 } 117 118 func (m *CollectChecksumResponse) Reset() { *m = CollectChecksumResponse{} } 119 func (m *CollectChecksumResponse) String() string { return proto.CompactTextString(m) } 120 func (*CollectChecksumResponse) ProtoMessage() {} 121 func (*CollectChecksumResponse) Descriptor() ([]byte, []int) { 122 return fileDescriptor_api_cef23d12e9246cb3, []int{2} 123 } 124 func (m *CollectChecksumResponse) XXX_Unmarshal(b []byte) error { 125 return m.Unmarshal(b) 126 } 127 func (m *CollectChecksumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 128 b = b[:cap(b)] 129 n, err := m.MarshalTo(b) 130 if err != nil { 131 return nil, err 132 } 133 return b[:n], nil 134 } 135 func (dst *CollectChecksumResponse) XXX_Merge(src proto.Message) { 136 xxx_messageInfo_CollectChecksumResponse.Merge(dst, src) 137 } 138 func (m *CollectChecksumResponse) XXX_Size() int { 139 return m.Size() 140 } 141 func (m *CollectChecksumResponse) XXX_DiscardUnknown() { 142 xxx_messageInfo_CollectChecksumResponse.DiscardUnknown(m) 143 } 144 145 var xxx_messageInfo_CollectChecksumResponse proto.InternalMessageInfo 146 147 // WaitForApplicationRequest blocks until the addressed replica has applied the 148 // command with the specified lease index. 149 type WaitForApplicationRequest struct { 150 StoreRequestHeader `protobuf:"bytes,1,opt,name=header,proto3,embedded=header" json:"header"` 151 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"` 152 LeaseIndex uint64 `protobuf:"varint,3,opt,name=lease_index,json=leaseIndex,proto3" json:"lease_index,omitempty"` 153 } 154 155 func (m *WaitForApplicationRequest) Reset() { *m = WaitForApplicationRequest{} } 156 func (m *WaitForApplicationRequest) String() string { return proto.CompactTextString(m) } 157 func (*WaitForApplicationRequest) ProtoMessage() {} 158 func (*WaitForApplicationRequest) Descriptor() ([]byte, []int) { 159 return fileDescriptor_api_cef23d12e9246cb3, []int{3} 160 } 161 func (m *WaitForApplicationRequest) XXX_Unmarshal(b []byte) error { 162 return m.Unmarshal(b) 163 } 164 func (m *WaitForApplicationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 165 b = b[:cap(b)] 166 n, err := m.MarshalTo(b) 167 if err != nil { 168 return nil, err 169 } 170 return b[:n], nil 171 } 172 func (dst *WaitForApplicationRequest) XXX_Merge(src proto.Message) { 173 xxx_messageInfo_WaitForApplicationRequest.Merge(dst, src) 174 } 175 func (m *WaitForApplicationRequest) XXX_Size() int { 176 return m.Size() 177 } 178 func (m *WaitForApplicationRequest) XXX_DiscardUnknown() { 179 xxx_messageInfo_WaitForApplicationRequest.DiscardUnknown(m) 180 } 181 182 var xxx_messageInfo_WaitForApplicationRequest proto.InternalMessageInfo 183 184 type WaitForApplicationResponse struct { 185 } 186 187 func (m *WaitForApplicationResponse) Reset() { *m = WaitForApplicationResponse{} } 188 func (m *WaitForApplicationResponse) String() string { return proto.CompactTextString(m) } 189 func (*WaitForApplicationResponse) ProtoMessage() {} 190 func (*WaitForApplicationResponse) Descriptor() ([]byte, []int) { 191 return fileDescriptor_api_cef23d12e9246cb3, []int{4} 192 } 193 func (m *WaitForApplicationResponse) XXX_Unmarshal(b []byte) error { 194 return m.Unmarshal(b) 195 } 196 func (m *WaitForApplicationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 197 b = b[:cap(b)] 198 n, err := m.MarshalTo(b) 199 if err != nil { 200 return nil, err 201 } 202 return b[:n], nil 203 } 204 func (dst *WaitForApplicationResponse) XXX_Merge(src proto.Message) { 205 xxx_messageInfo_WaitForApplicationResponse.Merge(dst, src) 206 } 207 func (m *WaitForApplicationResponse) XXX_Size() int { 208 return m.Size() 209 } 210 func (m *WaitForApplicationResponse) XXX_DiscardUnknown() { 211 xxx_messageInfo_WaitForApplicationResponse.DiscardUnknown(m) 212 } 213 214 var xxx_messageInfo_WaitForApplicationResponse proto.InternalMessageInfo 215 216 type WaitForReplicaInitRequest struct { 217 StoreRequestHeader `protobuf:"bytes,1,opt,name=header,proto3,embedded=header" json:"header"` 218 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"` 219 } 220 221 func (m *WaitForReplicaInitRequest) Reset() { *m = WaitForReplicaInitRequest{} } 222 func (m *WaitForReplicaInitRequest) String() string { return proto.CompactTextString(m) } 223 func (*WaitForReplicaInitRequest) ProtoMessage() {} 224 func (*WaitForReplicaInitRequest) Descriptor() ([]byte, []int) { 225 return fileDescriptor_api_cef23d12e9246cb3, []int{5} 226 } 227 func (m *WaitForReplicaInitRequest) XXX_Unmarshal(b []byte) error { 228 return m.Unmarshal(b) 229 } 230 func (m *WaitForReplicaInitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 231 b = b[:cap(b)] 232 n, err := m.MarshalTo(b) 233 if err != nil { 234 return nil, err 235 } 236 return b[:n], nil 237 } 238 func (dst *WaitForReplicaInitRequest) XXX_Merge(src proto.Message) { 239 xxx_messageInfo_WaitForReplicaInitRequest.Merge(dst, src) 240 } 241 func (m *WaitForReplicaInitRequest) XXX_Size() int { 242 return m.Size() 243 } 244 func (m *WaitForReplicaInitRequest) XXX_DiscardUnknown() { 245 xxx_messageInfo_WaitForReplicaInitRequest.DiscardUnknown(m) 246 } 247 248 var xxx_messageInfo_WaitForReplicaInitRequest proto.InternalMessageInfo 249 250 type WaitForReplicaInitResponse struct { 251 } 252 253 func (m *WaitForReplicaInitResponse) Reset() { *m = WaitForReplicaInitResponse{} } 254 func (m *WaitForReplicaInitResponse) String() string { return proto.CompactTextString(m) } 255 func (*WaitForReplicaInitResponse) ProtoMessage() {} 256 func (*WaitForReplicaInitResponse) Descriptor() ([]byte, []int) { 257 return fileDescriptor_api_cef23d12e9246cb3, []int{6} 258 } 259 func (m *WaitForReplicaInitResponse) XXX_Unmarshal(b []byte) error { 260 return m.Unmarshal(b) 261 } 262 func (m *WaitForReplicaInitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 263 b = b[:cap(b)] 264 n, err := m.MarshalTo(b) 265 if err != nil { 266 return nil, err 267 } 268 return b[:n], nil 269 } 270 func (dst *WaitForReplicaInitResponse) XXX_Merge(src proto.Message) { 271 xxx_messageInfo_WaitForReplicaInitResponse.Merge(dst, src) 272 } 273 func (m *WaitForReplicaInitResponse) XXX_Size() int { 274 return m.Size() 275 } 276 func (m *WaitForReplicaInitResponse) XXX_DiscardUnknown() { 277 xxx_messageInfo_WaitForReplicaInitResponse.DiscardUnknown(m) 278 } 279 280 var xxx_messageInfo_WaitForReplicaInitResponse proto.InternalMessageInfo 281 282 func init() { 283 proto.RegisterType((*StoreRequestHeader)(nil), "cockroach.kv.kvserver.StoreRequestHeader") 284 proto.RegisterType((*CollectChecksumRequest)(nil), "cockroach.kv.kvserver.CollectChecksumRequest") 285 proto.RegisterType((*CollectChecksumResponse)(nil), "cockroach.kv.kvserver.CollectChecksumResponse") 286 proto.RegisterType((*WaitForApplicationRequest)(nil), "cockroach.kv.kvserver.WaitForApplicationRequest") 287 proto.RegisterType((*WaitForApplicationResponse)(nil), "cockroach.kv.kvserver.WaitForApplicationResponse") 288 proto.RegisterType((*WaitForReplicaInitRequest)(nil), "cockroach.kv.kvserver.WaitForReplicaInitRequest") 289 proto.RegisterType((*WaitForReplicaInitResponse)(nil), "cockroach.kv.kvserver.WaitForReplicaInitResponse") 290 } 291 func (m *StoreRequestHeader) Marshal() (dAtA []byte, err error) { 292 size := m.Size() 293 dAtA = make([]byte, size) 294 n, err := m.MarshalTo(dAtA) 295 if err != nil { 296 return nil, err 297 } 298 return dAtA[:n], nil 299 } 300 301 func (m *StoreRequestHeader) MarshalTo(dAtA []byte) (int, error) { 302 var i int 303 _ = i 304 var l int 305 _ = l 306 if m.NodeID != 0 { 307 dAtA[i] = 0x8 308 i++ 309 i = encodeVarintApi(dAtA, i, uint64(m.NodeID)) 310 } 311 if m.StoreID != 0 { 312 dAtA[i] = 0x10 313 i++ 314 i = encodeVarintApi(dAtA, i, uint64(m.StoreID)) 315 } 316 return i, nil 317 } 318 319 func (m *CollectChecksumRequest) Marshal() (dAtA []byte, err error) { 320 size := m.Size() 321 dAtA = make([]byte, size) 322 n, err := m.MarshalTo(dAtA) 323 if err != nil { 324 return nil, err 325 } 326 return dAtA[:n], nil 327 } 328 329 func (m *CollectChecksumRequest) MarshalTo(dAtA []byte) (int, error) { 330 var i int 331 _ = i 332 var l int 333 _ = l 334 dAtA[i] = 0xa 335 i++ 336 i = encodeVarintApi(dAtA, i, uint64(m.StoreRequestHeader.Size())) 337 n1, err := m.StoreRequestHeader.MarshalTo(dAtA[i:]) 338 if err != nil { 339 return 0, err 340 } 341 i += n1 342 if m.RangeID != 0 { 343 dAtA[i] = 0x10 344 i++ 345 i = encodeVarintApi(dAtA, i, uint64(m.RangeID)) 346 } 347 dAtA[i] = 0x1a 348 i++ 349 i = encodeVarintApi(dAtA, i, uint64(m.ChecksumID.Size())) 350 n2, err := m.ChecksumID.MarshalTo(dAtA[i:]) 351 if err != nil { 352 return 0, err 353 } 354 i += n2 355 if len(m.Checksum) > 0 { 356 dAtA[i] = 0x22 357 i++ 358 i = encodeVarintApi(dAtA, i, uint64(len(m.Checksum))) 359 i += copy(dAtA[i:], m.Checksum) 360 } 361 return i, nil 362 } 363 364 func (m *CollectChecksumResponse) Marshal() (dAtA []byte, err error) { 365 size := m.Size() 366 dAtA = make([]byte, size) 367 n, err := m.MarshalTo(dAtA) 368 if err != nil { 369 return nil, err 370 } 371 return dAtA[:n], nil 372 } 373 374 func (m *CollectChecksumResponse) MarshalTo(dAtA []byte) (int, error) { 375 var i int 376 _ = i 377 var l int 378 _ = l 379 if len(m.Checksum) > 0 { 380 dAtA[i] = 0xa 381 i++ 382 i = encodeVarintApi(dAtA, i, uint64(len(m.Checksum))) 383 i += copy(dAtA[i:], m.Checksum) 384 } 385 if m.Snapshot != nil { 386 dAtA[i] = 0x12 387 i++ 388 i = encodeVarintApi(dAtA, i, uint64(m.Snapshot.Size())) 389 n3, err := m.Snapshot.MarshalTo(dAtA[i:]) 390 if err != nil { 391 return 0, err 392 } 393 i += n3 394 } 395 dAtA[i] = 0x1a 396 i++ 397 i = encodeVarintApi(dAtA, i, uint64(m.Delta.Size())) 398 n4, err := m.Delta.MarshalTo(dAtA[i:]) 399 if err != nil { 400 return 0, err 401 } 402 i += n4 403 dAtA[i] = 0x22 404 i++ 405 i = encodeVarintApi(dAtA, i, uint64(m.Persisted.Size())) 406 n5, err := m.Persisted.MarshalTo(dAtA[i:]) 407 if err != nil { 408 return 0, err 409 } 410 i += n5 411 return i, nil 412 } 413 414 func (m *WaitForApplicationRequest) Marshal() (dAtA []byte, err error) { 415 size := m.Size() 416 dAtA = make([]byte, size) 417 n, err := m.MarshalTo(dAtA) 418 if err != nil { 419 return nil, err 420 } 421 return dAtA[:n], nil 422 } 423 424 func (m *WaitForApplicationRequest) MarshalTo(dAtA []byte) (int, error) { 425 var i int 426 _ = i 427 var l int 428 _ = l 429 dAtA[i] = 0xa 430 i++ 431 i = encodeVarintApi(dAtA, i, uint64(m.StoreRequestHeader.Size())) 432 n6, err := m.StoreRequestHeader.MarshalTo(dAtA[i:]) 433 if err != nil { 434 return 0, err 435 } 436 i += n6 437 if m.RangeID != 0 { 438 dAtA[i] = 0x10 439 i++ 440 i = encodeVarintApi(dAtA, i, uint64(m.RangeID)) 441 } 442 if m.LeaseIndex != 0 { 443 dAtA[i] = 0x18 444 i++ 445 i = encodeVarintApi(dAtA, i, uint64(m.LeaseIndex)) 446 } 447 return i, nil 448 } 449 450 func (m *WaitForApplicationResponse) Marshal() (dAtA []byte, err error) { 451 size := m.Size() 452 dAtA = make([]byte, size) 453 n, err := m.MarshalTo(dAtA) 454 if err != nil { 455 return nil, err 456 } 457 return dAtA[:n], nil 458 } 459 460 func (m *WaitForApplicationResponse) MarshalTo(dAtA []byte) (int, error) { 461 var i int 462 _ = i 463 var l int 464 _ = l 465 return i, nil 466 } 467 468 func (m *WaitForReplicaInitRequest) Marshal() (dAtA []byte, err error) { 469 size := m.Size() 470 dAtA = make([]byte, size) 471 n, err := m.MarshalTo(dAtA) 472 if err != nil { 473 return nil, err 474 } 475 return dAtA[:n], nil 476 } 477 478 func (m *WaitForReplicaInitRequest) MarshalTo(dAtA []byte) (int, error) { 479 var i int 480 _ = i 481 var l int 482 _ = l 483 dAtA[i] = 0xa 484 i++ 485 i = encodeVarintApi(dAtA, i, uint64(m.StoreRequestHeader.Size())) 486 n7, err := m.StoreRequestHeader.MarshalTo(dAtA[i:]) 487 if err != nil { 488 return 0, err 489 } 490 i += n7 491 if m.RangeID != 0 { 492 dAtA[i] = 0x10 493 i++ 494 i = encodeVarintApi(dAtA, i, uint64(m.RangeID)) 495 } 496 return i, nil 497 } 498 499 func (m *WaitForReplicaInitResponse) Marshal() (dAtA []byte, err error) { 500 size := m.Size() 501 dAtA = make([]byte, size) 502 n, err := m.MarshalTo(dAtA) 503 if err != nil { 504 return nil, err 505 } 506 return dAtA[:n], nil 507 } 508 509 func (m *WaitForReplicaInitResponse) MarshalTo(dAtA []byte) (int, error) { 510 var i int 511 _ = i 512 var l int 513 _ = l 514 return i, nil 515 } 516 517 func encodeVarintApi(dAtA []byte, offset int, v uint64) int { 518 for v >= 1<<7 { 519 dAtA[offset] = uint8(v&0x7f | 0x80) 520 v >>= 7 521 offset++ 522 } 523 dAtA[offset] = uint8(v) 524 return offset + 1 525 } 526 func (m *StoreRequestHeader) Size() (n int) { 527 if m == nil { 528 return 0 529 } 530 var l int 531 _ = l 532 if m.NodeID != 0 { 533 n += 1 + sovApi(uint64(m.NodeID)) 534 } 535 if m.StoreID != 0 { 536 n += 1 + sovApi(uint64(m.StoreID)) 537 } 538 return n 539 } 540 541 func (m *CollectChecksumRequest) Size() (n int) { 542 if m == nil { 543 return 0 544 } 545 var l int 546 _ = l 547 l = m.StoreRequestHeader.Size() 548 n += 1 + l + sovApi(uint64(l)) 549 if m.RangeID != 0 { 550 n += 1 + sovApi(uint64(m.RangeID)) 551 } 552 l = m.ChecksumID.Size() 553 n += 1 + l + sovApi(uint64(l)) 554 l = len(m.Checksum) 555 if l > 0 { 556 n += 1 + l + sovApi(uint64(l)) 557 } 558 return n 559 } 560 561 func (m *CollectChecksumResponse) Size() (n int) { 562 if m == nil { 563 return 0 564 } 565 var l int 566 _ = l 567 l = len(m.Checksum) 568 if l > 0 { 569 n += 1 + l + sovApi(uint64(l)) 570 } 571 if m.Snapshot != nil { 572 l = m.Snapshot.Size() 573 n += 1 + l + sovApi(uint64(l)) 574 } 575 l = m.Delta.Size() 576 n += 1 + l + sovApi(uint64(l)) 577 l = m.Persisted.Size() 578 n += 1 + l + sovApi(uint64(l)) 579 return n 580 } 581 582 func (m *WaitForApplicationRequest) Size() (n int) { 583 if m == nil { 584 return 0 585 } 586 var l int 587 _ = l 588 l = m.StoreRequestHeader.Size() 589 n += 1 + l + sovApi(uint64(l)) 590 if m.RangeID != 0 { 591 n += 1 + sovApi(uint64(m.RangeID)) 592 } 593 if m.LeaseIndex != 0 { 594 n += 1 + sovApi(uint64(m.LeaseIndex)) 595 } 596 return n 597 } 598 599 func (m *WaitForApplicationResponse) Size() (n int) { 600 if m == nil { 601 return 0 602 } 603 var l int 604 _ = l 605 return n 606 } 607 608 func (m *WaitForReplicaInitRequest) Size() (n int) { 609 if m == nil { 610 return 0 611 } 612 var l int 613 _ = l 614 l = m.StoreRequestHeader.Size() 615 n += 1 + l + sovApi(uint64(l)) 616 if m.RangeID != 0 { 617 n += 1 + sovApi(uint64(m.RangeID)) 618 } 619 return n 620 } 621 622 func (m *WaitForReplicaInitResponse) Size() (n int) { 623 if m == nil { 624 return 0 625 } 626 var l int 627 _ = l 628 return n 629 } 630 631 func sovApi(x uint64) (n int) { 632 for { 633 n++ 634 x >>= 7 635 if x == 0 { 636 break 637 } 638 } 639 return n 640 } 641 func sozApi(x uint64) (n int) { 642 return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 643 } 644 func (m *StoreRequestHeader) Unmarshal(dAtA []byte) error { 645 l := len(dAtA) 646 iNdEx := 0 647 for iNdEx < l { 648 preIndex := iNdEx 649 var wire uint64 650 for shift := uint(0); ; shift += 7 { 651 if shift >= 64 { 652 return ErrIntOverflowApi 653 } 654 if iNdEx >= l { 655 return io.ErrUnexpectedEOF 656 } 657 b := dAtA[iNdEx] 658 iNdEx++ 659 wire |= (uint64(b) & 0x7F) << shift 660 if b < 0x80 { 661 break 662 } 663 } 664 fieldNum := int32(wire >> 3) 665 wireType := int(wire & 0x7) 666 if wireType == 4 { 667 return fmt.Errorf("proto: StoreRequestHeader: wiretype end group for non-group") 668 } 669 if fieldNum <= 0 { 670 return fmt.Errorf("proto: StoreRequestHeader: illegal tag %d (wire type %d)", fieldNum, wire) 671 } 672 switch fieldNum { 673 case 1: 674 if wireType != 0 { 675 return fmt.Errorf("proto: wrong wireType = %d for field NodeID", wireType) 676 } 677 m.NodeID = 0 678 for shift := uint(0); ; shift += 7 { 679 if shift >= 64 { 680 return ErrIntOverflowApi 681 } 682 if iNdEx >= l { 683 return io.ErrUnexpectedEOF 684 } 685 b := dAtA[iNdEx] 686 iNdEx++ 687 m.NodeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.NodeID(b) & 0x7F) << shift 688 if b < 0x80 { 689 break 690 } 691 } 692 case 2: 693 if wireType != 0 { 694 return fmt.Errorf("proto: wrong wireType = %d for field StoreID", wireType) 695 } 696 m.StoreID = 0 697 for shift := uint(0); ; shift += 7 { 698 if shift >= 64 { 699 return ErrIntOverflowApi 700 } 701 if iNdEx >= l { 702 return io.ErrUnexpectedEOF 703 } 704 b := dAtA[iNdEx] 705 iNdEx++ 706 m.StoreID |= (github_com_cockroachdb_cockroach_pkg_roachpb.StoreID(b) & 0x7F) << shift 707 if b < 0x80 { 708 break 709 } 710 } 711 default: 712 iNdEx = preIndex 713 skippy, err := skipApi(dAtA[iNdEx:]) 714 if err != nil { 715 return err 716 } 717 if skippy < 0 { 718 return ErrInvalidLengthApi 719 } 720 if (iNdEx + skippy) > l { 721 return io.ErrUnexpectedEOF 722 } 723 iNdEx += skippy 724 } 725 } 726 727 if iNdEx > l { 728 return io.ErrUnexpectedEOF 729 } 730 return nil 731 } 732 func (m *CollectChecksumRequest) Unmarshal(dAtA []byte) error { 733 l := len(dAtA) 734 iNdEx := 0 735 for iNdEx < l { 736 preIndex := iNdEx 737 var wire uint64 738 for shift := uint(0); ; shift += 7 { 739 if shift >= 64 { 740 return ErrIntOverflowApi 741 } 742 if iNdEx >= l { 743 return io.ErrUnexpectedEOF 744 } 745 b := dAtA[iNdEx] 746 iNdEx++ 747 wire |= (uint64(b) & 0x7F) << shift 748 if b < 0x80 { 749 break 750 } 751 } 752 fieldNum := int32(wire >> 3) 753 wireType := int(wire & 0x7) 754 if wireType == 4 { 755 return fmt.Errorf("proto: CollectChecksumRequest: wiretype end group for non-group") 756 } 757 if fieldNum <= 0 { 758 return fmt.Errorf("proto: CollectChecksumRequest: illegal tag %d (wire type %d)", fieldNum, wire) 759 } 760 switch fieldNum { 761 case 1: 762 if wireType != 2 { 763 return fmt.Errorf("proto: wrong wireType = %d for field StoreRequestHeader", wireType) 764 } 765 var msglen int 766 for shift := uint(0); ; shift += 7 { 767 if shift >= 64 { 768 return ErrIntOverflowApi 769 } 770 if iNdEx >= l { 771 return io.ErrUnexpectedEOF 772 } 773 b := dAtA[iNdEx] 774 iNdEx++ 775 msglen |= (int(b) & 0x7F) << shift 776 if b < 0x80 { 777 break 778 } 779 } 780 if msglen < 0 { 781 return ErrInvalidLengthApi 782 } 783 postIndex := iNdEx + msglen 784 if postIndex > l { 785 return io.ErrUnexpectedEOF 786 } 787 if err := m.StoreRequestHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 788 return err 789 } 790 iNdEx = postIndex 791 case 2: 792 if wireType != 0 { 793 return fmt.Errorf("proto: wrong wireType = %d for field RangeID", wireType) 794 } 795 m.RangeID = 0 796 for shift := uint(0); ; shift += 7 { 797 if shift >= 64 { 798 return ErrIntOverflowApi 799 } 800 if iNdEx >= l { 801 return io.ErrUnexpectedEOF 802 } 803 b := dAtA[iNdEx] 804 iNdEx++ 805 m.RangeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift 806 if b < 0x80 { 807 break 808 } 809 } 810 case 3: 811 if wireType != 2 { 812 return fmt.Errorf("proto: wrong wireType = %d for field ChecksumID", wireType) 813 } 814 var byteLen int 815 for shift := uint(0); ; shift += 7 { 816 if shift >= 64 { 817 return ErrIntOverflowApi 818 } 819 if iNdEx >= l { 820 return io.ErrUnexpectedEOF 821 } 822 b := dAtA[iNdEx] 823 iNdEx++ 824 byteLen |= (int(b) & 0x7F) << shift 825 if b < 0x80 { 826 break 827 } 828 } 829 if byteLen < 0 { 830 return ErrInvalidLengthApi 831 } 832 postIndex := iNdEx + byteLen 833 if postIndex > l { 834 return io.ErrUnexpectedEOF 835 } 836 if err := m.ChecksumID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 837 return err 838 } 839 iNdEx = postIndex 840 case 4: 841 if wireType != 2 { 842 return fmt.Errorf("proto: wrong wireType = %d for field Checksum", wireType) 843 } 844 var byteLen int 845 for shift := uint(0); ; shift += 7 { 846 if shift >= 64 { 847 return ErrIntOverflowApi 848 } 849 if iNdEx >= l { 850 return io.ErrUnexpectedEOF 851 } 852 b := dAtA[iNdEx] 853 iNdEx++ 854 byteLen |= (int(b) & 0x7F) << shift 855 if b < 0x80 { 856 break 857 } 858 } 859 if byteLen < 0 { 860 return ErrInvalidLengthApi 861 } 862 postIndex := iNdEx + byteLen 863 if postIndex > l { 864 return io.ErrUnexpectedEOF 865 } 866 m.Checksum = append(m.Checksum[:0], dAtA[iNdEx:postIndex]...) 867 if m.Checksum == nil { 868 m.Checksum = []byte{} 869 } 870 iNdEx = postIndex 871 default: 872 iNdEx = preIndex 873 skippy, err := skipApi(dAtA[iNdEx:]) 874 if err != nil { 875 return err 876 } 877 if skippy < 0 { 878 return ErrInvalidLengthApi 879 } 880 if (iNdEx + skippy) > l { 881 return io.ErrUnexpectedEOF 882 } 883 iNdEx += skippy 884 } 885 } 886 887 if iNdEx > l { 888 return io.ErrUnexpectedEOF 889 } 890 return nil 891 } 892 func (m *CollectChecksumResponse) Unmarshal(dAtA []byte) error { 893 l := len(dAtA) 894 iNdEx := 0 895 for iNdEx < l { 896 preIndex := iNdEx 897 var wire uint64 898 for shift := uint(0); ; shift += 7 { 899 if shift >= 64 { 900 return ErrIntOverflowApi 901 } 902 if iNdEx >= l { 903 return io.ErrUnexpectedEOF 904 } 905 b := dAtA[iNdEx] 906 iNdEx++ 907 wire |= (uint64(b) & 0x7F) << shift 908 if b < 0x80 { 909 break 910 } 911 } 912 fieldNum := int32(wire >> 3) 913 wireType := int(wire & 0x7) 914 if wireType == 4 { 915 return fmt.Errorf("proto: CollectChecksumResponse: wiretype end group for non-group") 916 } 917 if fieldNum <= 0 { 918 return fmt.Errorf("proto: CollectChecksumResponse: illegal tag %d (wire type %d)", fieldNum, wire) 919 } 920 switch fieldNum { 921 case 1: 922 if wireType != 2 { 923 return fmt.Errorf("proto: wrong wireType = %d for field Checksum", wireType) 924 } 925 var byteLen int 926 for shift := uint(0); ; shift += 7 { 927 if shift >= 64 { 928 return ErrIntOverflowApi 929 } 930 if iNdEx >= l { 931 return io.ErrUnexpectedEOF 932 } 933 b := dAtA[iNdEx] 934 iNdEx++ 935 byteLen |= (int(b) & 0x7F) << shift 936 if b < 0x80 { 937 break 938 } 939 } 940 if byteLen < 0 { 941 return ErrInvalidLengthApi 942 } 943 postIndex := iNdEx + byteLen 944 if postIndex > l { 945 return io.ErrUnexpectedEOF 946 } 947 m.Checksum = append(m.Checksum[:0], dAtA[iNdEx:postIndex]...) 948 if m.Checksum == nil { 949 m.Checksum = []byte{} 950 } 951 iNdEx = postIndex 952 case 2: 953 if wireType != 2 { 954 return fmt.Errorf("proto: wrong wireType = %d for field Snapshot", wireType) 955 } 956 var msglen int 957 for shift := uint(0); ; shift += 7 { 958 if shift >= 64 { 959 return ErrIntOverflowApi 960 } 961 if iNdEx >= l { 962 return io.ErrUnexpectedEOF 963 } 964 b := dAtA[iNdEx] 965 iNdEx++ 966 msglen |= (int(b) & 0x7F) << shift 967 if b < 0x80 { 968 break 969 } 970 } 971 if msglen < 0 { 972 return ErrInvalidLengthApi 973 } 974 postIndex := iNdEx + msglen 975 if postIndex > l { 976 return io.ErrUnexpectedEOF 977 } 978 if m.Snapshot == nil { 979 m.Snapshot = &roachpb.RaftSnapshotData{} 980 } 981 if err := m.Snapshot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 982 return err 983 } 984 iNdEx = postIndex 985 case 3: 986 if wireType != 2 { 987 return fmt.Errorf("proto: wrong wireType = %d for field Delta", wireType) 988 } 989 var msglen int 990 for shift := uint(0); ; shift += 7 { 991 if shift >= 64 { 992 return ErrIntOverflowApi 993 } 994 if iNdEx >= l { 995 return io.ErrUnexpectedEOF 996 } 997 b := dAtA[iNdEx] 998 iNdEx++ 999 msglen |= (int(b) & 0x7F) << shift 1000 if b < 0x80 { 1001 break 1002 } 1003 } 1004 if msglen < 0 { 1005 return ErrInvalidLengthApi 1006 } 1007 postIndex := iNdEx + msglen 1008 if postIndex > l { 1009 return io.ErrUnexpectedEOF 1010 } 1011 if err := m.Delta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1012 return err 1013 } 1014 iNdEx = postIndex 1015 case 4: 1016 if wireType != 2 { 1017 return fmt.Errorf("proto: wrong wireType = %d for field Persisted", wireType) 1018 } 1019 var msglen int 1020 for shift := uint(0); ; shift += 7 { 1021 if shift >= 64 { 1022 return ErrIntOverflowApi 1023 } 1024 if iNdEx >= l { 1025 return io.ErrUnexpectedEOF 1026 } 1027 b := dAtA[iNdEx] 1028 iNdEx++ 1029 msglen |= (int(b) & 0x7F) << shift 1030 if b < 0x80 { 1031 break 1032 } 1033 } 1034 if msglen < 0 { 1035 return ErrInvalidLengthApi 1036 } 1037 postIndex := iNdEx + msglen 1038 if postIndex > l { 1039 return io.ErrUnexpectedEOF 1040 } 1041 if err := m.Persisted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1042 return err 1043 } 1044 iNdEx = postIndex 1045 default: 1046 iNdEx = preIndex 1047 skippy, err := skipApi(dAtA[iNdEx:]) 1048 if err != nil { 1049 return err 1050 } 1051 if skippy < 0 { 1052 return ErrInvalidLengthApi 1053 } 1054 if (iNdEx + skippy) > l { 1055 return io.ErrUnexpectedEOF 1056 } 1057 iNdEx += skippy 1058 } 1059 } 1060 1061 if iNdEx > l { 1062 return io.ErrUnexpectedEOF 1063 } 1064 return nil 1065 } 1066 func (m *WaitForApplicationRequest) Unmarshal(dAtA []byte) error { 1067 l := len(dAtA) 1068 iNdEx := 0 1069 for iNdEx < l { 1070 preIndex := iNdEx 1071 var wire uint64 1072 for shift := uint(0); ; shift += 7 { 1073 if shift >= 64 { 1074 return ErrIntOverflowApi 1075 } 1076 if iNdEx >= l { 1077 return io.ErrUnexpectedEOF 1078 } 1079 b := dAtA[iNdEx] 1080 iNdEx++ 1081 wire |= (uint64(b) & 0x7F) << shift 1082 if b < 0x80 { 1083 break 1084 } 1085 } 1086 fieldNum := int32(wire >> 3) 1087 wireType := int(wire & 0x7) 1088 if wireType == 4 { 1089 return fmt.Errorf("proto: WaitForApplicationRequest: wiretype end group for non-group") 1090 } 1091 if fieldNum <= 0 { 1092 return fmt.Errorf("proto: WaitForApplicationRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1093 } 1094 switch fieldNum { 1095 case 1: 1096 if wireType != 2 { 1097 return fmt.Errorf("proto: wrong wireType = %d for field StoreRequestHeader", wireType) 1098 } 1099 var msglen int 1100 for shift := uint(0); ; shift += 7 { 1101 if shift >= 64 { 1102 return ErrIntOverflowApi 1103 } 1104 if iNdEx >= l { 1105 return io.ErrUnexpectedEOF 1106 } 1107 b := dAtA[iNdEx] 1108 iNdEx++ 1109 msglen |= (int(b) & 0x7F) << shift 1110 if b < 0x80 { 1111 break 1112 } 1113 } 1114 if msglen < 0 { 1115 return ErrInvalidLengthApi 1116 } 1117 postIndex := iNdEx + msglen 1118 if postIndex > l { 1119 return io.ErrUnexpectedEOF 1120 } 1121 if err := m.StoreRequestHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1122 return err 1123 } 1124 iNdEx = postIndex 1125 case 2: 1126 if wireType != 0 { 1127 return fmt.Errorf("proto: wrong wireType = %d for field RangeID", wireType) 1128 } 1129 m.RangeID = 0 1130 for shift := uint(0); ; shift += 7 { 1131 if shift >= 64 { 1132 return ErrIntOverflowApi 1133 } 1134 if iNdEx >= l { 1135 return io.ErrUnexpectedEOF 1136 } 1137 b := dAtA[iNdEx] 1138 iNdEx++ 1139 m.RangeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift 1140 if b < 0x80 { 1141 break 1142 } 1143 } 1144 case 3: 1145 if wireType != 0 { 1146 return fmt.Errorf("proto: wrong wireType = %d for field LeaseIndex", wireType) 1147 } 1148 m.LeaseIndex = 0 1149 for shift := uint(0); ; shift += 7 { 1150 if shift >= 64 { 1151 return ErrIntOverflowApi 1152 } 1153 if iNdEx >= l { 1154 return io.ErrUnexpectedEOF 1155 } 1156 b := dAtA[iNdEx] 1157 iNdEx++ 1158 m.LeaseIndex |= (uint64(b) & 0x7F) << shift 1159 if b < 0x80 { 1160 break 1161 } 1162 } 1163 default: 1164 iNdEx = preIndex 1165 skippy, err := skipApi(dAtA[iNdEx:]) 1166 if err != nil { 1167 return err 1168 } 1169 if skippy < 0 { 1170 return ErrInvalidLengthApi 1171 } 1172 if (iNdEx + skippy) > l { 1173 return io.ErrUnexpectedEOF 1174 } 1175 iNdEx += skippy 1176 } 1177 } 1178 1179 if iNdEx > l { 1180 return io.ErrUnexpectedEOF 1181 } 1182 return nil 1183 } 1184 func (m *WaitForApplicationResponse) Unmarshal(dAtA []byte) error { 1185 l := len(dAtA) 1186 iNdEx := 0 1187 for iNdEx < l { 1188 preIndex := iNdEx 1189 var wire uint64 1190 for shift := uint(0); ; shift += 7 { 1191 if shift >= 64 { 1192 return ErrIntOverflowApi 1193 } 1194 if iNdEx >= l { 1195 return io.ErrUnexpectedEOF 1196 } 1197 b := dAtA[iNdEx] 1198 iNdEx++ 1199 wire |= (uint64(b) & 0x7F) << shift 1200 if b < 0x80 { 1201 break 1202 } 1203 } 1204 fieldNum := int32(wire >> 3) 1205 wireType := int(wire & 0x7) 1206 if wireType == 4 { 1207 return fmt.Errorf("proto: WaitForApplicationResponse: wiretype end group for non-group") 1208 } 1209 if fieldNum <= 0 { 1210 return fmt.Errorf("proto: WaitForApplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1211 } 1212 switch fieldNum { 1213 default: 1214 iNdEx = preIndex 1215 skippy, err := skipApi(dAtA[iNdEx:]) 1216 if err != nil { 1217 return err 1218 } 1219 if skippy < 0 { 1220 return ErrInvalidLengthApi 1221 } 1222 if (iNdEx + skippy) > l { 1223 return io.ErrUnexpectedEOF 1224 } 1225 iNdEx += skippy 1226 } 1227 } 1228 1229 if iNdEx > l { 1230 return io.ErrUnexpectedEOF 1231 } 1232 return nil 1233 } 1234 func (m *WaitForReplicaInitRequest) Unmarshal(dAtA []byte) error { 1235 l := len(dAtA) 1236 iNdEx := 0 1237 for iNdEx < l { 1238 preIndex := iNdEx 1239 var wire uint64 1240 for shift := uint(0); ; shift += 7 { 1241 if shift >= 64 { 1242 return ErrIntOverflowApi 1243 } 1244 if iNdEx >= l { 1245 return io.ErrUnexpectedEOF 1246 } 1247 b := dAtA[iNdEx] 1248 iNdEx++ 1249 wire |= (uint64(b) & 0x7F) << shift 1250 if b < 0x80 { 1251 break 1252 } 1253 } 1254 fieldNum := int32(wire >> 3) 1255 wireType := int(wire & 0x7) 1256 if wireType == 4 { 1257 return fmt.Errorf("proto: WaitForReplicaInitRequest: wiretype end group for non-group") 1258 } 1259 if fieldNum <= 0 { 1260 return fmt.Errorf("proto: WaitForReplicaInitRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1261 } 1262 switch fieldNum { 1263 case 1: 1264 if wireType != 2 { 1265 return fmt.Errorf("proto: wrong wireType = %d for field StoreRequestHeader", wireType) 1266 } 1267 var msglen int 1268 for shift := uint(0); ; shift += 7 { 1269 if shift >= 64 { 1270 return ErrIntOverflowApi 1271 } 1272 if iNdEx >= l { 1273 return io.ErrUnexpectedEOF 1274 } 1275 b := dAtA[iNdEx] 1276 iNdEx++ 1277 msglen |= (int(b) & 0x7F) << shift 1278 if b < 0x80 { 1279 break 1280 } 1281 } 1282 if msglen < 0 { 1283 return ErrInvalidLengthApi 1284 } 1285 postIndex := iNdEx + msglen 1286 if postIndex > l { 1287 return io.ErrUnexpectedEOF 1288 } 1289 if err := m.StoreRequestHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1290 return err 1291 } 1292 iNdEx = postIndex 1293 case 2: 1294 if wireType != 0 { 1295 return fmt.Errorf("proto: wrong wireType = %d for field RangeID", wireType) 1296 } 1297 m.RangeID = 0 1298 for shift := uint(0); ; shift += 7 { 1299 if shift >= 64 { 1300 return ErrIntOverflowApi 1301 } 1302 if iNdEx >= l { 1303 return io.ErrUnexpectedEOF 1304 } 1305 b := dAtA[iNdEx] 1306 iNdEx++ 1307 m.RangeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift 1308 if b < 0x80 { 1309 break 1310 } 1311 } 1312 default: 1313 iNdEx = preIndex 1314 skippy, err := skipApi(dAtA[iNdEx:]) 1315 if err != nil { 1316 return err 1317 } 1318 if skippy < 0 { 1319 return ErrInvalidLengthApi 1320 } 1321 if (iNdEx + skippy) > l { 1322 return io.ErrUnexpectedEOF 1323 } 1324 iNdEx += skippy 1325 } 1326 } 1327 1328 if iNdEx > l { 1329 return io.ErrUnexpectedEOF 1330 } 1331 return nil 1332 } 1333 func (m *WaitForReplicaInitResponse) Unmarshal(dAtA []byte) error { 1334 l := len(dAtA) 1335 iNdEx := 0 1336 for iNdEx < l { 1337 preIndex := iNdEx 1338 var wire uint64 1339 for shift := uint(0); ; shift += 7 { 1340 if shift >= 64 { 1341 return ErrIntOverflowApi 1342 } 1343 if iNdEx >= l { 1344 return io.ErrUnexpectedEOF 1345 } 1346 b := dAtA[iNdEx] 1347 iNdEx++ 1348 wire |= (uint64(b) & 0x7F) << shift 1349 if b < 0x80 { 1350 break 1351 } 1352 } 1353 fieldNum := int32(wire >> 3) 1354 wireType := int(wire & 0x7) 1355 if wireType == 4 { 1356 return fmt.Errorf("proto: WaitForReplicaInitResponse: wiretype end group for non-group") 1357 } 1358 if fieldNum <= 0 { 1359 return fmt.Errorf("proto: WaitForReplicaInitResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1360 } 1361 switch fieldNum { 1362 default: 1363 iNdEx = preIndex 1364 skippy, err := skipApi(dAtA[iNdEx:]) 1365 if err != nil { 1366 return err 1367 } 1368 if skippy < 0 { 1369 return ErrInvalidLengthApi 1370 } 1371 if (iNdEx + skippy) > l { 1372 return io.ErrUnexpectedEOF 1373 } 1374 iNdEx += skippy 1375 } 1376 } 1377 1378 if iNdEx > l { 1379 return io.ErrUnexpectedEOF 1380 } 1381 return nil 1382 } 1383 func skipApi(dAtA []byte) (n int, err error) { 1384 l := len(dAtA) 1385 iNdEx := 0 1386 for iNdEx < l { 1387 var wire uint64 1388 for shift := uint(0); ; shift += 7 { 1389 if shift >= 64 { 1390 return 0, ErrIntOverflowApi 1391 } 1392 if iNdEx >= l { 1393 return 0, io.ErrUnexpectedEOF 1394 } 1395 b := dAtA[iNdEx] 1396 iNdEx++ 1397 wire |= (uint64(b) & 0x7F) << shift 1398 if b < 0x80 { 1399 break 1400 } 1401 } 1402 wireType := int(wire & 0x7) 1403 switch wireType { 1404 case 0: 1405 for shift := uint(0); ; shift += 7 { 1406 if shift >= 64 { 1407 return 0, ErrIntOverflowApi 1408 } 1409 if iNdEx >= l { 1410 return 0, io.ErrUnexpectedEOF 1411 } 1412 iNdEx++ 1413 if dAtA[iNdEx-1] < 0x80 { 1414 break 1415 } 1416 } 1417 return iNdEx, nil 1418 case 1: 1419 iNdEx += 8 1420 return iNdEx, nil 1421 case 2: 1422 var length int 1423 for shift := uint(0); ; shift += 7 { 1424 if shift >= 64 { 1425 return 0, ErrIntOverflowApi 1426 } 1427 if iNdEx >= l { 1428 return 0, io.ErrUnexpectedEOF 1429 } 1430 b := dAtA[iNdEx] 1431 iNdEx++ 1432 length |= (int(b) & 0x7F) << shift 1433 if b < 0x80 { 1434 break 1435 } 1436 } 1437 iNdEx += length 1438 if length < 0 { 1439 return 0, ErrInvalidLengthApi 1440 } 1441 return iNdEx, nil 1442 case 3: 1443 for { 1444 var innerWire uint64 1445 var start int = iNdEx 1446 for shift := uint(0); ; shift += 7 { 1447 if shift >= 64 { 1448 return 0, ErrIntOverflowApi 1449 } 1450 if iNdEx >= l { 1451 return 0, io.ErrUnexpectedEOF 1452 } 1453 b := dAtA[iNdEx] 1454 iNdEx++ 1455 innerWire |= (uint64(b) & 0x7F) << shift 1456 if b < 0x80 { 1457 break 1458 } 1459 } 1460 innerWireType := int(innerWire & 0x7) 1461 if innerWireType == 4 { 1462 break 1463 } 1464 next, err := skipApi(dAtA[start:]) 1465 if err != nil { 1466 return 0, err 1467 } 1468 iNdEx = start + next 1469 } 1470 return iNdEx, nil 1471 case 4: 1472 return iNdEx, nil 1473 case 5: 1474 iNdEx += 4 1475 return iNdEx, nil 1476 default: 1477 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1478 } 1479 } 1480 panic("unreachable") 1481 } 1482 1483 var ( 1484 ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") 1485 ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") 1486 ) 1487 1488 func init() { proto.RegisterFile("kv/kvserver/api.proto", fileDescriptor_api_cef23d12e9246cb3) } 1489 1490 var fileDescriptor_api_cef23d12e9246cb3 = []byte{ 1491 // 597 bytes of a gzipped FileDescriptorProto 1492 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x94, 0x4f, 0x6f, 0xd3, 0x30, 1493 0x18, 0xc6, 0x9b, 0xfd, 0x69, 0x8b, 0xc3, 0x29, 0x62, 0x30, 0xba, 0x29, 0x99, 0x82, 0x90, 0xc6, 1494 0x0e, 0x89, 0xd4, 0x71, 0x47, 0x6b, 0xab, 0x89, 0x08, 0xc1, 0xc1, 0xd3, 0x40, 0xda, 0x81, 0xc9, 1495 0x8d, 0xbd, 0xd4, 0x24, 0x8b, 0x83, 0xed, 0x54, 0x7c, 0x05, 0x6e, 0x7c, 0xac, 0x5e, 0x90, 0x7a, 1496 0x9c, 0x38, 0x44, 0x90, 0x9e, 0xf8, 0x0a, 0x9c, 0x50, 0x9c, 0xa4, 0x7f, 0xb4, 0x1e, 0x06, 0xb7, 1497 0xdd, 0x9c, 0xf7, 0xf5, 0xf3, 0xf8, 0xfd, 0x3d, 0xb6, 0x02, 0x76, 0xc2, 0xb1, 0x1b, 0x8e, 0x05, 1498 0xe1, 0x63, 0xc2, 0x5d, 0x94, 0x50, 0x27, 0xe1, 0x4c, 0x32, 0x63, 0xc7, 0x67, 0x7e, 0xc8, 0x19, 1499 0xf2, 0x47, 0x4e, 0x38, 0x76, 0xea, 0x0d, 0x9d, 0x3d, 0x55, 0x4a, 0x86, 0x2e, 0x8d, 0x25, 0xe1, 1500 0x31, 0x8a, 0x2e, 0x39, 0xba, 0x92, 0xa5, 0xa6, 0xb3, 0x27, 0x24, 0xe3, 0x28, 0x20, 0x2e, 0x89, 1501 0x03, 0x1a, 0x93, 0x64, 0xe8, 0x5e, 0x8f, 0x7d, 0xbf, 0x6a, 0xee, 0xaf, 0x6d, 0x1e, 0x57, 0xdd, 1502 0x47, 0x01, 0x0b, 0x98, 0x5a, 0xba, 0xc5, 0xaa, 0xac, 0xda, 0x53, 0x0d, 0x18, 0x67, 0x92, 0x71, 1503 0x02, 0xc9, 0xe7, 0x94, 0x08, 0xf9, 0x9a, 0x20, 0x4c, 0xb8, 0x71, 0x01, 0x5a, 0x31, 0xc3, 0xe4, 1504 0x92, 0xe2, 0x5d, 0xed, 0x40, 0x3b, 0xdc, 0xee, 0x9d, 0xe4, 0x99, 0xd5, 0x7c, 0xc7, 0x30, 0xf1, 1505 0x06, 0x7f, 0x32, 0xeb, 0x38, 0xa0, 0x72, 0x94, 0x0e, 0x1d, 0x9f, 0x5d, 0xbb, 0x73, 0x0a, 0x3c, 1506 0x5c, 0xac, 0xdd, 0x24, 0x0c, 0xdc, 0x0a, 0xc4, 0x29, 0x65, 0xb0, 0x59, 0x38, 0x7a, 0xd8, 0xf8, 1507 0x08, 0xda, 0xc5, 0xa0, 0xca, 0x7c, 0x43, 0x99, 0xf7, 0xf3, 0xcc, 0x6a, 0xa9, 0x29, 0x94, 0xfb, 1508 0xcb, 0x7f, 0x72, 0xaf, 0x74, 0xb0, 0xa5, 0x4c, 0x3d, 0x6c, 0x7f, 0xdf, 0x00, 0x8f, 0xfb, 0x2c, 1509 0x8a, 0x88, 0x2f, 0xfb, 0x23, 0xe2, 0x87, 0x22, 0xbd, 0xae, 0xe0, 0x8c, 0x37, 0xa0, 0x39, 0x52, 1510 0x80, 0x8a, 0x4a, 0xef, 0xbe, 0x70, 0xd6, 0xde, 0x81, 0x73, 0x3b, 0x91, 0x5e, 0x7b, 0x92, 0x59, 1511 0x8d, 0x69, 0x66, 0x69, 0xb0, 0xb2, 0x28, 0x38, 0x38, 0x8a, 0x83, 0x39, 0xc7, 0x66, 0xc9, 0x01, 1512 0x8b, 0xda, 0x7f, 0x70, 0x54, 0x3a, 0xd8, 0x52, 0xa6, 0x1e, 0x36, 0x3e, 0x01, 0xdd, 0xaf, 0xe6, 1513 0x2f, 0x8e, 0xd8, 0x3c, 0xd0, 0x0e, 0x1f, 0xf6, 0xbc, 0x62, 0x8c, 0x1f, 0x77, 0xbd, 0x81, 0x54, 1514 0xd2, 0xc8, 0x4d, 0x53, 0x8a, 0x9d, 0xf3, 0x73, 0x6f, 0x90, 0x67, 0x16, 0xa8, 0x13, 0xf1, 0x06, 1515 0x10, 0xd4, 0xee, 0x1e, 0x36, 0x3a, 0xa0, 0x5d, 0x7f, 0xed, 0x6e, 0x15, 0x07, 0xc1, 0xf9, 0xb7, 1516 0xfd, 0x75, 0x03, 0x3c, 0xb9, 0x95, 0xa7, 0x48, 0x58, 0x2c, 0xc8, 0x8a, 0x4e, 0x5b, 0xd5, 0x19, 1517 0xaf, 0x40, 0x5b, 0xc4, 0x28, 0x11, 0x23, 0x26, 0x55, 0x3e, 0x7a, 0xf7, 0xd9, 0x52, 0xdc, 0x0b, 1518 0xec, 0x2b, 0x79, 0x56, 0x6d, 0x1b, 0x20, 0x89, 0xe0, 0x5c, 0x64, 0x9c, 0x82, 0x6d, 0x4c, 0x22, 1519 0x89, 0x14, 0xba, 0xde, 0x3d, 0x5a, 0x52, 0x57, 0x2f, 0xdd, 0xa9, 0x5f, 0xba, 0xf3, 0xf6, 0x7d, 1520 0xbf, 0x7f, 0x26, 0x91, 0x14, 0x83, 0x42, 0xd1, 0xdb, 0x2a, 0x62, 0x82, 0xa5, 0xdc, 0xf0, 0xc0, 1521 0x83, 0x84, 0x70, 0x41, 0x85, 0x24, 0x58, 0xd1, 0xe9, 0xdd, 0xe7, 0x77, 0xf2, 0xaa, 0x6c, 0x16, 1522 0x6a, 0xfb, 0xb7, 0x06, 0x9e, 0x7e, 0x40, 0x54, 0x9e, 0x32, 0x7e, 0x92, 0x24, 0x11, 0xf5, 0x91, 1523 0xa4, 0x2c, 0xbe, 0x97, 0xcf, 0xcb, 0x02, 0x7a, 0x44, 0x90, 0x20, 0x97, 0x34, 0xc6, 0xe4, 0x8b, 1524 0xca, 0x78, 0x0b, 0x02, 0x55, 0xf2, 0x8a, 0x8a, 0xbd, 0x0f, 0x3a, 0xeb, 0x50, 0xcb, 0x9b, 0xb7, 1525 0x27, 0x8b, 0x24, 0x20, 0x51, 0x6d, 0x2f, 0xa6, 0xf2, 0x3e, 0x26, 0xb1, 0x04, 0xba, 0x42, 0x52, 1526 0x82, 0xf6, 0x8e, 0x26, 0xbf, 0xcc, 0xc6, 0x24, 0x37, 0xb5, 0x69, 0x6e, 0x6a, 0x37, 0xb9, 0xa9, 1527 0xfd, 0xcc, 0x4d, 0xed, 0xdb, 0xcc, 0x6c, 0x4c, 0x67, 0x66, 0xe3, 0x66, 0x66, 0x36, 0x2e, 0xda, 1528 0x35, 0xce, 0xb0, 0xa9, 0x7e, 0xaa, 0xc7, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe4, 0xde, 0x21, 1529 0x8e, 0xf2, 0x05, 0x00, 0x00, 1530 }